parser-typescript.js 2.9 MB

1234567891011121314
  1. !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(this,(function(){"use strict";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&&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"}});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=Object.keys(t),o=a.map(e=>m(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+i).join("");if(!e){if(0===a.length)return"";if(1===a.length&&!Array.isArray(t[a[0]])){const e=t[a[0]];return"".concat("/**"," ").concat(m(a[0],e)[0]).concat(" */")}}const s=e.split(i).map(e=>"".concat(" *"," ").concat(e)).join(i)+i;return"/**"+i+(e?s:"")+(e&&a.length?" *"+i:"")+o+" */"};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<e.length;r++){const n=e.codePointAt(r);n<=31||n>=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 h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function b(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var D=b,S=x;function T(e){if(D===setTimeout)return setTimeout(e,0);if((D===b||!D)&&setTimeout)return D=setTimeout,setTimeout(e,0);try{return D(e,0)}catch(t){try{return D.call(null,e,0)}catch(t){return D.call(this,e,0)}}}"function"==typeof v.setTimeout&&(D=setTimeout),"function"==typeof v.clearTimeout&&(S=clearTimeout);var E,C=[],k=!1,N=-1;function A(){k&&E&&(k=!1,E.length?C=E.concat(C):N=-1,C.length&&F())}function F(){if(!k){var e=T(A);k=!0;for(var t=C.length;t;){for(E=C,C=[];++N<t;)E&&E[N].run();N=-1,t=C.length}E=null,k=!1,function(e){if(S===clearTimeout)return clearTimeout(e);if((S===x||!S)&&clearTimeout)return S=clearTimeout,clearTimeout(e);try{S(e)}catch(t){try{return S.call(null,e)}catch(t){return S.call(this,e)}}}(e)}}function P(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];C.push(new w(e,t)),1!==C.length||k||T(F)}function w(e,t){this.fun=e,this.array=t}w.prototype.run=function(){this.fun.apply(null,this.array)};function I(){}var O=I,M=I,L=I,R=I,B=I,j=I,J=I;var K=v.performance||{},z=K.now||K.mozNow||K.msNow||K.oNow||K.webkitNow||function(){return(new Date).getTime()};var U=new Date;var V={nextTick:P,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:O,addListener:M,once:L,off:R,removeListener:B,removeAllListeners:j,emit:J,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*z.call(K),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-U)/1e3}};var q="object"==typeof V&&V.env&&V.env.NODE_DEBUG&&/\bsemver\b/i.test(V.env.NODE_DEBUG)?(...e)=>console.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:e<t?-1:1};var X={compareIdentifiers:Y,rcompareIdentifiers:(e,t)=>Y(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="Prettier is an opinionated code formatter",ce="./bin/prettier.js",ue={node:">=10.13.0"},le=["index.js","standalone.js","src","bin"],de={"@angular/compiler":"10.0.12","@babel/code-frame":"7.10.4","@babel/parser":"7.11.2","@glimmer/syntax":"0.59.0","@iarna/toml":"2.2.5","@typescript-eslint/typescript-estree":"3.10.0","angular-estree-parser":"2.2.0","angular-html-parser":"1.7.1",camelcase:"6.0.0",chalk:"4.1.0","ci-info":"watson/ci-info#f43f6a1cefff47fb361c88cf4b943fdbcaafe540","cjk-regex":"2.0.0",cosmiconfig:"7.0.0",dashify:"2.0.0",diff:"4.0.2",editorconfig:"0.15.3","editorconfig-to-prettier":"0.1.1","escape-string-regexp":"4.0.0",esutils:"2.0.3","fast-glob":"3.2.4","fast-json-stable-stringify":"2.1.0","find-parent-dir":"0.3.0","flow-parser":"0.132.0","get-stream":"6.0.0",globby:"11.0.1",graphql:"15.3.0","html-element-attributes":"2.2.1","html-styles":"1.0.0","html-tag-names":"1.1.5","html-void-elements":"1.0.5",ignore:"4.0.6","jest-docblock":"26.0.0",json5:"2.1.3",leven:"3.1.0","lines-and-columns":"1.1.6","linguist-languages":"7.10.0",lodash:"4.17.20",mem:"6.1.0",minimatch:"3.0.4",minimist:"1.2.5","n-readlines":"1.0.0",outdent:"0.7.1","parse-srcset":"ikatyang/parse-srcset#54eb9c1cb21db5c62b4d0e275d7249516df6f0ee","please-upgrade-node":"3.2.0","postcss-less":"3.1.4","postcss-media-query-parser":"0.2.3","postcss-scss":"2.1.1","postcss-selector-parser":"2.2.3","postcss-values-parser":"2.0.1","regexp-util":"1.2.2","remark-footnotes":"2.0.0","remark-math":"1.0.6","remark-parse":"8.0.3",resolve:"1.17.0",semver:"7.3.2","string-width":"4.2.0",typescript:"4.0.2","unicode-regex":"3.0.0",unified:"9.2.0",vnopts:"1.0.2","yaml-unist-parser":"1.3.1"},_e={"@babel/core":"7.11.4","@babel/preset-env":"7.11.0","@babel/types":"7.11.0","@glimmer/reference":"0.59.0","@rollup/plugin-alias":"3.1.1","@rollup/plugin-babel":"5.2.0","@rollup/plugin-commonjs":"14.0.0","@rollup/plugin-json":"4.1.0","@rollup/plugin-node-resolve":"9.0.0","@rollup/plugin-replace":"2.3.3","@types/estree":"0.0.45","@types/node":"14.6.0","@typescript-eslint/types":"3.10.0","babel-loader":"8.1.0",benchmark:"2.1.4","builtin-modules":"3.1.0","cross-env":"7.0.2",cspell:"4.1.0",eslint:"7.7.0","eslint-config-prettier":"6.11.0","eslint-formatter-friendly":"7.0.0","eslint-plugin-import":"2.22.0","eslint-plugin-jest":"23.20.0","eslint-plugin-prettier-internal-rules":"file:scripts/tools/eslint-plugin-prettier-internal-rules","eslint-plugin-react":"7.20.6","eslint-plugin-unicorn":"21.0.0",execa:"4.0.3",jest:"26.4.2","jest-snapshot-serializer-ansi":"1.0.0","jest-snapshot-serializer-raw":"1.1.0","jest-watch-typeahead":"0.6.0","npm-run-all":"4.1.5",prettier:"2.1.1",rimraf:"3.0.2",rollup:"2.26.5","rollup-plugin-node-globals":"1.4.0","rollup-plugin-terser":"7.0.0",shelljs:"0.8.4","snapshot-diff":"0.8.1","strip-ansi":"6.0.0","synchronous-promise":"2.0.13",tempy:"0.6.0","terser-webpack-plugin":"4.1.0",webpack:"4.44.1"},pe={prepublishOnly:'echo "Error: must publish from dist/" && exit 1',"prepare-release":"yarn && yarn build && yarn test:dist",test:"jest","test:dev-package":"cross-env INSTALL_PACKAGE=1 jest","test:dist":"cross-env NODE_ENV=production jest","test:dist-standalone":"cross-env NODE_ENV=production TEST_STANDALONE=1 jest","test:integration":"jest tests_integration","perf:repeat":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:repeat-inspect":"yarn && yarn build && cross-env NODE_ENV=production node --inspect-brk ./dist/bin-prettier.js --debug-repeat ${PERF_REPEAT:-1000} --loglevel debug ${PERF_FILE:-./index.js} > /dev/null","perf:benchmark":"yarn && yarn build && cross-env NODE_ENV=production node ./dist/bin-prettier.js --debug-benchmark --loglevel debug ${PERF_FILE:-./index.js} > /dev/null",lint:"run-p lint:*","lint:typecheck":"tsc","lint:eslint":"cross-env EFF_NO_LINK_RULES=true eslint . --format friendly","lint:changelog":"node ./scripts/lint-changelog.js","lint:prettier":'prettier . "!test*" --check',"lint:dist":'eslint --no-eslintrc --no-ignore --env=es6,browser --parser-options=ecmaVersion:2016 "dist/!(bin-prettier|index|third-party).js"',"lint:spellcheck":'cspell "**/*" ".github/**/*"',"lint:deps":"node ./scripts/check-deps.js",fix:"run-s fix:eslint fix:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"yarn lint:prettier --write",build:"node ./scripts/build/build.js","build-docs":"node ./scripts/build-docs.js"},fe={name:"prettier",version:"2.1.2",description:se,bin:ce,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:ue,files:le,dependencies:de,devDependencies:_e,scripts:pe},ge=Object.freeze({__proto__:null,name:"prettier",version:"2.1.2",description:se,bin:ce,repository:"prettier/prettier",homepage:"https://prettier.io",author:"James Long",license:"MIT",main:"./index.js",browser:"./standalone.js",unpkg:"./standalone.js",engines:ue,files:le,dependencies:de,devDependencies:_e,scripts:pe,default:fe}),me=r((function(e,t){function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}function n(){return"undefined"!=typeof WeakMap?new WeakMap:{add:r,delete:r,get:r,set:r,has:function(e){return!1}}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty,a=function(e,t){return i.call(e,t)};function o(e,t){for(var r in t)a(t,r)&&(e[r]=t[r]);return e}var s=/^[ \t]*(?:\r\n|\r|\n)/,c=/(?:\r\n|\r|\n)[ \t]*$/,u=/^(?:[\r\n]|$)/,l=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,d=/^[ \t]*[\r\n][ \t\r\n]*$/;function _(e,t,r){var n=0,i=e[0].match(l);i&&(n=i[1].length);var a=new RegExp("(\\r\\n|\\r|\\n).{0,"+n+"}","g");t&&(e=e.slice(1));var o=r.newline,u=r.trimLeadingNewline,d=r.trimTrailingNewline,_="string"==typeof o,p=e.length;return e.map((function(e,t){return e=e.replace(a,"$1"),0===t&&u&&(e=e.replace(s,"")),t===p-1&&d&&(e=e.replace(c,"")),_&&(e=e.replace(/\r\n|\n|\r/g,(function(e){return o}))),e}))}function p(e,t){for(var r="",n=0,i=e.length;n<i;n++)r+=e[n],n<i-1&&(r+=t[n]);return r}function f(e){return a(e,"raw")&&a(e,"length")}var g=function e(t){var r=n(),i=n();return o((function n(a){for(var s=[],c=1;c<arguments.length;c++)s[c-1]=arguments[c];if(f(a)){var l=a,m=(s[0]===n||s[0]===g)&&d.test(l[0])&&u.test(l[1]),y=m?i:r,h=y.get(l);if(h||(h=_(l,m,t),y.set(l,h)),0===s.length)return h[0];var v=p(h,m?s.slice(1):s);return v}return e(o(o({},t),a||{}))}),{string:function(e){return _([e],!1,t)[0]}})}({trimLeadingNewline:!0,trimTrailingNewline:!0});t.outdent=g,t.default=g;try{e.exports=g,Object.defineProperty(g,"__esModule",{value:!0}),g.default=g,g.outdent=g}catch(e){}}));function ye(){const e=h(["\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 "]);return ye=function(){return e},e}function he(){const e=h(["\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 "]);return he=function(){return e},e}function ve(){const e=h(["\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 "]);return ve=function(){return e},e}function be(){const e=h(["\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 "]);return be=function(){return e},e}function xe(){const e=h(["\n Maintain existing\n (mixed values within one file are normalised by looking at what's used after the first line)\n "]);return xe=function(){return e},e}function De(){const e=h(["\n Print (to stderr) where a cursor at the given position would move to after formatting.\n This option cannot be used with --range-start and --range-end.\n "]);return De=function(){return e},e}const{outdent:Se}=me;var Te={CATEGORY_CONFIG:"Config",CATEGORY_EDITOR:"Editor",CATEGORY_FORMAT:"Format",CATEGORY_OTHER:"Other",CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:"Global",CATEGORY_SPECIAL:"Special",options:{cursorOffset:{since:"1.4.0",category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:Se(De()),cliCategory:"Editor"},endOfLine:{since:"1.15.0",category:"Global",type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:Se(xe())}]},filepath:{since:"1.4.0",category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{since:"0.0.10",category:"Global",type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:e=>"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:"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:Se(be()),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:Se(ve()),cliCategory:"Editor"},rangeStart:{since:"1.4.0",category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:Se(he()),cliCategory:"Editor"},requirePragma:{since:"1.7.0",category:"Special",type:"boolean",default:!1,description:Se(ye()),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."}]}}},Ee=n(ge);const Ce={compare:ie,lt:ae,gte:oe},ke=Ee.version,Ne=Te.options;var Ae={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){const i=ke.split("-",1)[0],a=e.reduce((e,t)=>e.concat(t.languages||[]),[]).filter(u),o=(s=Object.assign({},...e.map(({options:e})=>e),Ne),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<t.name?-1:1).map((function(e){if(n)return e;return function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=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)=>Ce.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&&Ce.gte(i,e.since)}function l(e){return r||!("deprecated"in e)||e.deprecated&&Ce.lt(i,e.deprecated)}}};const Fe=/[^\x20-\x7F]/;function Pe(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<a;){const r=t.charAt(o);if(e instanceof RegExp){if(!e.test(r))return o}else if(!e.includes(r))return o;i?o--:o++}return(-1===o||o===a)&&o}}const we=Pe(/\s/),Ie=Pe(" \t"),Oe=Pe(",; \t"),Me=Pe(/[^\n\r]/);function Le(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;r<e.length;++r)if("*"===e.charAt(r)&&"/"===e.charAt(r+1))return r+2;return t}function Re(e,t){return!1!==t&&("/"===e.charAt(t)&&"/"===e.charAt(t+1)?Me(e,t):t)}function Be(e,t,r){const n=r&&r.backwards;if(!1===t)return!1;const i=e.charAt(t);if(n){if("\r"===e.charAt(t-1)&&"\n"===i)return t-2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t-1}else{if("\r"===i&&"\n"===e.charAt(t+1))return t+2;if("\n"===i||"\r"===i||"\u2028"===i||"\u2029"===i)return t+1}return t}function je(e,t,r){const n=Ie(e,(r=r||{}).backwards?t-1:t,r);return n!==Be(e,n,r)}function Je(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Oe(e,n),n=Le(e,n),n=Ie(e,n);return n=Re(e,n),n=Be(e,n),!1!==n&&je(e,n)}function Ke(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Ie(e,n),n=Le(e,n),n=Re(e,n),n=Be(e,n);return n}function ze(e,t,r){return Ke(e,r(t))}function Ue(e,t,r){let n=0;for(let i=r=r||0;i<e.length;++i)"\t"===e[i]?n=n+t-n%t:n++;return n}function Ve(e,t){const r=e.slice(1,-1),n={quote:'"',regex:/"/g},i={quote:"'",regex:/'/g},a="'"===t?i:n,o=a===i?n:i;let s=a.quote;if(r.includes(a.quote)||r.includes(o.quote)){s=(r.match(a.regex)||[]).length>(r.match(o.regex)||[]).length?o.quote:a.quote}return s}function qe(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 We(e){return e&&(e.comments&&e.comments.length>0&&e.comments.some(e=>He(e)&&!e.unignore)||e.prettierIgnore)}function He(e){return"prettier-ignore"===e.value.trim()}function Ge(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,"JSXText"===e.type&&(t.printed=!0)}var Ye={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?Fe.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;e<i;e++)if(!n.get(e))return e;return i+1},getParserName:function(e,t){const r=Ae.getSupportInfo({plugins:t.plugins}).languages.find(t=>t.name.toLowerCase()===e||t.aliases&&t.aliases.includes(e)||t.extensions&&t.extensions.some(t=>t===".".concat(e)));return r?r.parsers[0]:null},getPenultimate:e=>e[e.length-2],getLast:e=>e[e.length-1],getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Ke,getNextNonSpaceNonCommentCharacterIndex:ze,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(ze(e,t,r))},skip:Pe,skipWhitespace:we,skipSpaces:Ie,skipToLineEnd:Oe,skipEverythingButNewLine:Me,skipInlineComment:Le,skipTrailingComment:Re,skipNewline:Be,isNextLineEmptyAfterIndex:Je,isNextLineEmpty:function(e,t,r){return Je(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Ie(e,n,{backwards:!0}),n=Be(e,n,{backwards:!0}),n=Ie(e,n,{backwards:!0}),n!==Be(e,n,{backwards:!0})},hasNewline:je,hasNewlineInRange:function(e,t,r){for(let n=t;n<r;++n)if("\n"===e.charAt(n))return!0;return!1},hasSpaces:function(e,t,r){return Ie(e,(r=r||{}).backwards?t-1:t,r)!==t},getAlignmentSize:Ue,getIndentSize:function(e,t){const r=e.lastIndexOf("\n");return-1===r?0:Ue(e.slice(r+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:Ve,printString:function(e,t,r){const n=e.slice(1,-1),i=!n.includes('"')&&!n.includes("'"),a="json"===t.parser?'"':t.__isInHtmlAttribute?"'":Ve(e,t.singleQuote?"'":'"');return r?i?a+n+a:e:qe(n,a,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},hasIgnoreComment:function(e){return We(e.getValue())},hasNodeIgnoreComment:We,isNodeIgnoreComment:He,makeString:qe,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,Ge(e,t)},addDanglingComment:function(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Ge(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,Ge(e,t)},isWithinParentArrayProperty:function(e,t){const r=e.getValue(),n=e.getParentNode();if(null==n)return!1;if(!Array.isArray(n[t]))return!1;const i=e.getName();return n[t][i]===r},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)}};var Xe={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:Qe,strip:$e,extract:Ze,print:et}=u,{getShebang:tt}=Ye,{normalizeEndOfLine:rt}=Xe;function nt(e){const t=tt(e);t&&(e=e.slice(t.length+1));const r=Ze(e),{pragmas:n,comments:i}=Qe(r);return{shebang:t,text:e,pragmas:n,comments:i}}var it={hasPragma:function(e){const t=Object.keys(nt(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:r,pragmas:n,comments:i}=nt(e),a=$e(r),o=et({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+rt(o)+(a.startsWith("\n")?"\n":"\n\n")+a}};function at(e,t){const{ignoreDecorators:r}=t||{};if(!r){const t=e.declaration&&e.declaration.decorators||e.decorators;if(t&&t.length>0)return at(t[0])}return e.range?e.range[0]:e.start}function ot(e){const t=e.range?e.range[1]:e.end;return e.typeAnnotation?Math.max(t,ot(e.typeAnnotation)):t}var st={locStart:at,locEnd:ot,composeLoc:function(e,t=e){const r=at(e);return[r,"number"==typeof t?r+t:ot(t)]}};const{getLast:ct,hasNewline:ut,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:lt,getNextNonSpaceNonCommentCharacter:dt,hasNewlineInRange:_t,isNodeIgnoreComment:pt,addLeadingComment:ft,addTrailingComment:gt,addDanglingComment:mt,getNextNonSpaceNonCommentCharacterIndex:yt}=Ye;function ht(e,t){const r=(e.body||e.properties).filter(e=>"EmptyStatement"!==e.type);0===r.length?mt(e,t):ft(r[0],t)}function vt(e,t){"BlockStatement"===e.type?ht(e,t):ft(e,t)}function bt(e,t,r,n,i,a){if(!r||"IfStatement"!==r.type||!n)return!1;return")"===dt(e,i,a.locEnd)?(gt(t,i),!0):t===r.consequent&&n===r.alternate?("BlockStatement"===t.type?gt(t,i):mt(r,i),!0):"BlockStatement"===n.type?(ht(n,i),!0):"IfStatement"===n.type?(vt(n.consequent,i),!0):r.consequent===n&&(ft(n,i),!0)}function xt(e,t,r,n,i,a){if(!r||"WhileStatement"!==r.type||!n)return!1;return")"===dt(e,i,a.locEnd)?(gt(t,i),!0):"BlockStatement"===n.type&&(ht(n,i),!0)}function Dt(e,t,r,n){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!r)&&("CatchClause"===e.type&&t?(gt(t,n),!0):"BlockStatement"===r.type?(ht(r,n),!0):"TryStatement"===r.type?(vt(r.finalizer,n),!0):"CatchClause"===r.type&&(vt(r.body,n),!0))}function St(e,t,r,n){if(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type||"DeclareClass"===e.type||"DeclareInterface"===e.type||"InterfaceDeclaration"===e.type||"TSInterfaceDeclaration"===e.type)){if(e.decorators&&e.decorators.length>0&&(!r||"Decorator"!==r.type))return gt(e.decorators[e.decorators.length-1],n),!0;if(e.body&&r===e.body)return ht(e.body,n),!0;if(r)for(const i of["implements","extends","mixins"])if(e[i]&&r===e[i][0])return!t||t!==e.id&&t!==e.typeParameters&&t!==e.superClass?mt(e,n,i):gt(t,n),!0}return!1}function Tt(e,t,r,n,i){return(t&&r&&("Property"===t.type||"TSDeclareMethod"===t.type||"TSAbstractMethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==dt(e,r,i.locEnd)||!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"TSDeclareMethod"!==t.type&&"MethodDefinition"!==t.type))&&(gt(r,n),!0)}function Et(e,t,r,n,i,a){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return gt(t,i),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&Ft(r)&&")"===dt(e,i,a.locEnd))return gt(t,i),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){const t=(()=>{if(0!==(r.params||r.parameters).length)return lt(e,a.locEnd(ct(r.params||r.parameters)));const t=lt(e,a.locEnd(r.id));return!1!==t&&lt(e,t+1)})();if(a.locStart(i)>t)return ht(n,i),!0}return!1}function Ct(e,t){return!(!e||"ImportSpecifier"!==e.type)&&(ft(e,t),!0)}function kt(e,t){return!(!e||"LabeledStatement"!==e.type)&&(ft(e,t),!0)}function Nt(e,t,r,n){return t&&t.body&&0===t.body.length?(n?mt(t,r):ft(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length)&&(n?mt(e,r):ft(e,r),!0)}function At(e){return"Block"===e.type||"CommentBlock"===e.type}function Ft(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||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function Pt(e){return At(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var wt={handleOwnLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return Et(t,a,o,s,e,r)||function(e,t,r){if(e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&t&&"Identifier"===t.type)return ft(e,r),!0;return!1}(o,s,e)||bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||Dt(o,a,s,e)||St(o,a,s,e)||Ct(o,e)||function(e,t,r){if(e&&("ForInStatement"===e.type||"ForOfStatement"===e.type))return ft(e,r),!0;return!1}(o,0,e)||function(e,t,r,n){if(t&&("UnionTypeAnnotation"===t.type||"TSUnionType"===t.type))return pt(n)&&(r.prettierIgnore=!0,n.unignore=!0),!!e&&(gt(e,n),!0);r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&pt(n)&&(r.types[0].prettierIgnore=!0,n.unignore=!0);return!1}(a,o,s,e)||Nt(o,n,e,i)||function(e,t,r,n,i){if(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&ut(e,i.locEnd(n)))return gt(r,n),!0;return!1}(t,o,a,e,r)||function(e,t){if(e&&"AssignmentPattern"===e.type)return ft(e,t),!0;return!1}(o,e)||Tt(t,o,a,e,r)||kt(o,e)},handleEndOfLineComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return function(e,t){if(e&&Pt(t))return ft(e,t),!0;return!1}(s,e)||Et(t,a,o,s,e,r)||function(e,t,r,n,i,a){const o=t&&!_t(i,a.locEnd(t),a.locStart(n));if((!t||!o)&&e&&("ConditionalExpression"===e.type||"TSConditionalType"===e.type)&&r)return ft(r,n),!0;return!1}(o,a,s,e,t,r)||Ct(o,e)||bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||Dt(o,a,s,e)||St(o,a,s,e)||kt(o,e)||function(e,t,r){if(t&&("CallExpression"===t.type||"OptionalCallExpression"===t.type)&&e&&t.callee===e&&t.arguments.length>0)return ft(t.arguments[0],r),!0;return!1}(a,o,e)||function(e,t){if(e&&("Property"===e.type||"ObjectProperty"===e.type))return ft(e,t),!0;return!1}(o,e)||Nt(o,n,e,i)||function(e,t,r){if(e&&"TypeAlias"===e.type)return ft(e,r),!0;return!1}(o,0,e)||function(e,t,r){if(e&&("VariableDeclarator"===e.type||"AssignmentExpression"===e.type)&&t&&("ObjectExpression"===t.type||"ArrayExpression"===t.type||"TemplateLiteral"===t.type||"TaggedTemplateExpression"===t.type||At(r)))return ft(t,r),!0;return!1}(o,s,e)},handleRemainingComment:function(e,t,r,n,i){const{precedingNode:a,enclosingNode:o,followingNode:s}=e;return!!(bt(t,a,o,s,e,r)||xt(t,a,o,s,e,r)||function(e,t,r){if(e&&("ObjectProperty"===e.type||"Property"===e.type)&&e.shorthand&&e.key===t&&"AssignmentPattern"===e.value.type)return gt(e.value.left,r),!0;return!1}(o,a,e)||function(e,t,r,n){if(")"!==dt(e,r,n.locEnd))return!1;if(t&&(Ft(t)&&0===(t.params||t.parameters).length||("CallExpression"===t.type||"OptionalCallExpression"===t.type||"NewExpression"===t.type)&&0===t.arguments.length))return mt(t,r),!0;if(t&&"MethodDefinition"===t.type&&0===t.value.params.length)return mt(t.value,r),!0;return!1}(t,o,e,r)||Tt(t,o,a,e,r)||Nt(o,n,e,i)||function(e,t,r,n){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=yt(e,r,n.locEnd);if(!1!==i&&"=>"===e.slice(i,i+2))return mt(t,r),!0;return!1}(t,o,e,r)||function(e,t,r,n,i){if("("!==dt(e,n,i.locEnd))return!1;if(r&&t&&("FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ClassMethod"===t.type||"MethodDefinition"===t.type||"ObjectMethod"===t.type))return gt(r,n),!0;return!1}(t,o,a,e,r)||function(e,t,r,n,i){if(!t||"TSMappedType"!==t.type)return!1;if(n&&"TSTypeParameter"===n.type&&n.name)return ft(n.name,i),!0;if(r&&"TSTypeParameter"===r.type&&r.constraint)return gt(r.constraint,i),!0;return!1}(0,o,a,s,e)||function(e,t){if(e&&("ContinueStatement"===e.type||"BreakStatement"===e.type)&&!e.label)return gt(e,t),!0;return!1}(o,e)||function(e,t,r,n,i){if(!r&&t&&("TSMethodSignature"===t.type||"TSDeclareFunction"===t.type||"TSAbstractMethodDefinition"===t.type)&&";"===dt(e,n,i.locEnd))return gt(t,n),!0;return!1}(t,o,s,e,r))},hasLeadingComment:function(e,t=(()=>!0)){return e.leadingComments?e.leadingComments.some(t):!!e.comments&&e.comments.some(e=>e.leading&&t(e))},isBlockComment:At,isTypeCastComment:Pt,getGapRegex:function(e){if(e&&"BinaryExpression"!==e.type&&"LogicalExpression"!==e.type)return/^[\s&(|]*$/},getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===e.value.params.length&&!e.value.returnType&&(!e.value.typeParameters||0===e.value.typeParameters.length)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}};const{getLast:It,getNextNonSpaceNonCommentCharacter:Ot,getShebang:Mt}=Ye,{composeLoc:Lt,locStart:Rt,locEnd:Bt}=st,{isTypeCastComment:jt}=wt;function Jt(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]=Jt(i,t);return t(e)||e}function Kt(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}var zt=function(e,t){if("typescript"!==t.parser&&"flow"!==t.parser||function(e,t){const r=Mt(t.originalText);r&&e.comments.unshift({type:"Line",value:r.slice(2),range:[0,r.length]})}(e,t),"typescript"!==t.parser&&"flow"!==t.parser){const t=new Set;e=Jt(e,e=>{e.leadingComments&&e.leadingComments.some(jt)&&t.add(Rt(e))}),e=Jt(e,e=>{if("ParenthesizedExpression"===e.type){const r=Rt(e);if(!t.has(r)){const{expression:t}=e;return t.extra||(t.extra={}),t.extra.parenthesized=!0,t.extra.parenStart=r,t}}})}return e=Jt(e,e=>{switch(e.type){case"LogicalExpression":if(Kt(e))return function e(t){if(!Kt(t))return t;return e({type:"LogicalExpression",operator:t.operator,left:e({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:Lt(t.left,t.right.left)}),right:t.right.right,range:Lt(t)})}(e);break;case"VariableDeclaration":{const r=It(e.declarations);r&&r.init&&function(e,r){if(";"===t.originalText[Bt(r)])return;e.range=Lt(e,r)}(e,r);break}case"TSParenthesizedType":return e.typeAnnotation.range=Lt(e),e.typeAnnotation;case"TSUnionType":case"TSIntersectionType":if(1===e.types.length){const[t]=e.types;return t.range=Lt(e),t}break;case"TSTypeParameter":"string"==typeof e.name&&(e.name={type:"Identifier",name:e.name,range:Lt(e,e.name.length)});break;case"SequenceExpression":{const t=It(e.expressions);Bt(e)>Bt(t)&&(e.range=Lt(e,t));break}case"ClassProperty":e.key&&"TSPrivateIdentifier"===e.key.type&&"?"===Ot(t.originalText,e.key,Bt)&&(e.optional=!0)}})},Ut=1e3,Vt=6e4,qt=60*Vt,Wt=24*qt,Ht=7*Wt,Gt=365.25*Wt,Yt=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*Gt;case"weeks":case"week":case"w":return r*Ht;case"days":case"day":case"d":return r*Wt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*qt;case"minutes":case"minute":case"mins":case"min":case"m":return r*Vt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ut;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>=Wt)return Xt(e,t,Wt,"day");if(t>=qt)return Xt(e,t,qt,"hour");if(t>=Vt)return Xt(e,t,Vt,"minute");if(t>=Ut)return Xt(e,t,Ut,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Wt)return Math.round(e/Wt)+"d";if(t>=qt)return Math.round(e/qt)+"h";if(t>=Vt)return Math.round(e/Vt)+"m";if(t>=Ut)return Math.round(e/Ut)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Xt(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Qt=function(e){function t(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return r.colors[Math.abs(t)%r.colors.length]}function r(e){let a;function o(...e){if(!o.enabled)return;const t=o,n=Number(new Date),i=n-(a||n);t.diff=i,t.prev=a,t.curr=n,a=n,e[0]=r.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{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<i;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+e.substr(1)+"$")):r.names.push(new RegExp("^"+e+"$")));for(t=0;t<r.instances.length;t++){const e=r.instances[t];e.enabled=r.enabled(e.namespace)}},r.enabled=function(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=r.skips.length;t<n;t++)if(r.skips[t].test(e))return!1;for(t=0,n=r.names.length;t<n;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=Yt,Object.keys(e).forEach(t=>{r[t]=e[t]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=t,r.enable(r.load()),r},$t=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=Qt(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}})),Zt={isatty:()=>!1},er=Object.freeze({__proto__:null,default:Zt}),tr=Object.freeze({__proto__:null,default:{}}),rr=(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<i)},nr=n(er);const{env:ir}=V;let ar;function or(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function sr(e,t){if(0===ar)return 0;if(rr("color=16m")||rr("color=full")||rr("color=truecolor"))return 3;if(rr("color=256"))return 2;if(e&&!t&&void 0===ar)return 0;const r=ar||0;if("dumb"===ir.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 ir)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in ir)||"codeship"===ir.CI_NAME?1:r;if("TEAMCITY_VERSION"in ir)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ir.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in ir)return 1;if("truecolor"===ir.COLORTERM)return 3;if("TERM_PROGRAM"in ir){const e=parseInt((ir.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ir.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ir.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ir.TERM)||"COLORTERM"in ir?1:r}rr("no-color")||rr("no-colors")||rr("color=false")||rr("color=never")?ar=0:(rr("color")||rr("colors")||rr("color=true")||rr("color=always"))&&(ar=1),"FORCE_COLOR"in ir&&(ar="true"===ir.FORCE_COLOR?1:"false"===ir.FORCE_COLOR?0:0===ir.FORCE_COLOR.length?1:Math.min(parseInt(ir.FORCE_COLOR,10),3));var cr={supportsColor:function(e){return or(sr(e,e&&e.isTTY))},stdout:or(sr(!0,nr.isatty(1))),stderr:or(sr(!0,nr.isatty(2)))},ur=n(tr),lr=(r((function(e,t){t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return V.stderr.write(ur.format(...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),a=" ".concat(i,";1m").concat(n," ");r[0]=a+r[0].split("\n").join("\n"+a),r.push(i+"m+"+e.exports.humanize(this.diff)+"")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?V.env.DEBUG=e:delete V.env.DEBUG},t.load=function(){return V.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):nr.isatty(V.stderr.fd)},t.colors=[6,2,3,4,5,1];try{const e=cr;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(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=Qt(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,ur.inspect(e,this.inspectOpts).replace(/\s*\n\s*/g," ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,ur.inspect(e,this.inspectOpts)}})),r((function(e){void 0===V||V.type,e.exports=$t}))),dr=Object.freeze({__proto__:null,default:{}});const _r=/[/\\]/;function pr(e){return e.split(_r).pop()}var fr=n(Object.freeze({__proto__:null,extname:function(e){const t=pr(e),r=t.lastIndexOf(".");return-1===r?"":t.slice(r)},basename:pr,isAbsolute:function(){return!0}})),gr=n(dr),mr="win32"===V.platform,yr=V.env.NODE_DEBUG&&/fs/.test(V.env.NODE_DEBUG);function hr(e){return"function"==typeof e?e:function(){var e;if(yr){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(V.throwDeprecation)throw e;if(!V.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);V.traceDeprecation?console.trace(t):console.error(t)}}}}()}fr.normalize;if(mr)var vr=/(.*?)(?:[\/\\]+|$)/g;else vr=/(.*?)(?:[\/]+|$)/g;if(mr)var br=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else br=/^[\/]*/;var xr=function(e,t){if(e=fr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,n,i,a,o=e,s={},c={};function u(){var t=br.exec(e);r=t[0].length,n=t[0],i=t[0],a="",mr&&!c[i]&&(gr.lstatSync(i),c[i]=!0)}for(u();r<e.length;){vr.lastIndex=r;var l=vr.exec(e);if(a=n,n+=l[0],i=a+l[1],r=vr.lastIndex,!(c[i]||t&&t[i]===i)){var d;if(t&&Object.prototype.hasOwnProperty.call(t,i))d=t[i];else{var _=gr.lstatSync(i);if(!_.isSymbolicLink()){c[i]=!0,t&&(t[i]=i);continue}var p=null;if(!mr){var f=_.dev.toString(32)+":"+_.ino.toString(32);s.hasOwnProperty(f)&&(p=s[f])}null===p&&(gr.statSync(i),p=gr.readlinkSync(i)),d=fr.resolve(a,p),t&&(t[i]=d),mr||(s[f]=p)}e=fr.resolve(d,e.slice(r)),u()}}return t&&(t[o]=e),e},Dr=function(e,t,r){if("function"!=typeof r&&(r=hr(t),t=null),e=fr.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return P(r.bind(null,null,t[e]));var n,i,a,o,s=e,c={},u={};function l(){var t=br.exec(e);n=t[0].length,i=t[0],a=t[0],o="",mr&&!u[a]?gr.lstat(a,(function(e){if(e)return r(e);u[a]=!0,d()})):P(d)}function d(){if(n>=e.length)return t&&(t[s]=e),r(null,e);vr.lastIndex=n;var c=vr.exec(e);return o=i,i+=c[0],a=o+c[1],n=vr.lastIndex,u[a]||t&&t[a]===a?P(d):t&&Object.prototype.hasOwnProperty.call(t,a)?f(t[a]):gr.lstat(a,_)}function _(e,n){if(e)return r(e);if(!n.isSymbolicLink())return u[a]=!0,t&&(t[a]=a),P(d);if(!mr){var i=n.dev.toString(32)+":"+n.ino.toString(32);if(c.hasOwnProperty(i))return p(null,c[i],a)}gr.stat(a,(function(e){if(e)return r(e);gr.readlink(a,(function(e,t){mr||(c[i]=t),p(e,t)}))}))}function p(e,n,i){if(e)return r(e);var a=fr.resolve(o,n);t&&(t[i]=a),f(a)}function f(t){e=fr.resolve(t,e.slice(n)),l()}l()},Sr=Ar;Ar.realpath=Ar,Ar.sync=Fr,Ar.realpathSync=Fr,Ar.monkeypatch=function(){gr.realpath=Ar,gr.realpathSync=Fr},Ar.unmonkeypatch=function(){gr.realpath=Tr,gr.realpathSync=Er};var Tr=gr.realpath,Er=gr.realpathSync,Cr=V.version,kr=/^v[0-5]\./.test(Cr);function Nr(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function Ar(e,t,r){if(kr)return Tr(e,t,r);"function"==typeof t&&(r=t,t=null),Tr(e,t,(function(n,i){Nr(n)?Dr(e,t,r):r(n,i)}))}function Fr(e,t){if(kr)return Er(e,t);try{return Er(e,t)}catch(r){if(Nr(r))return xr(e,t);throw r}}var Pr=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},wr=Ir;function Ir(e,t,r){e instanceof RegExp&&(e=Or(e,r)),t instanceof RegExp&&(t=Or(t,r));var n=Mr(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function Or(e,t){var r=t.match(e);return r?r[0]:null}function Mr(e,t,r){var n,i,a,o,s,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],a=r.length;l>=0&&!s;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?s=[n.pop(),u]:((i=n.pop())<a&&(a=i,o=u),u=r.indexOf(t,l+1)),l=c<u&&c>=0?c:u;n.length&&(s=[a,o])}return s}Ir.range=Mr;var Lr=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var n=[],i=wr("{","}",t);if(!i||/\$$/.test(i.pre))return[t];var a,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),s=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),c=o||s,u=i.body.indexOf(",")>=0;if(!c&&!u)return i.post.match(/,.*\}/)?(t=i.pre+"{"+i.body+jr+i.post,e(t)):[t];if(c)a=i.body.split(/\.\./);else{if(1===(a=function e(t){if(!t)return[""];var r=[],n=wr("{","}",t);if(!n)return t.split(",");var i=n.pre,a=n.body,o=n.post,s=i.split(",");s[s.length-1]+="{"+a+"}";var c=e(o);o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c));return r.push.apply(r,s),r}(i.body)).length)if(1===(a=e(a[0],!1).map(Vr)).length)return(_=i.post.length?e(i.post,!1):[""]).map((function(e){return i.pre+a[0]+e}))}var l,d=i.pre,_=i.post.length?e(i.post,!1):[""];if(c){var p=zr(a[0]),f=zr(a[1]),g=Math.max(a[0].length,a[1].length),m=3==a.length?Math.abs(zr(a[2])):1,y=Wr;f<p&&(m*=-1,y=Hr);var h=a.some(qr);l=[];for(var v=p;y(v,f);v+=m){var b;if(s)"\\"===(b=String.fromCharCode(v))&&(b="");else if(b=String(v),h){var x=g-b.length;if(x>0){var D=new Array(x+1).join("0");b=v<0?"-"+D+b.slice(1):D+b}}l.push(b)}}else l=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);Pr(i)?r.push.apply(r,i):r.push(i)}return r}(a,(function(t){return e(t,!1)}));for(var S=0;S<l.length;S++)for(var T=0;T<_.length;T++){var E=d+l[S]+_[T];(!r||c||E)&&n.push(E)}return n}(function(e){return e.split("\\\\").join(Rr).split("\\{").join(Br).split("\\}").join(jr).split("\\,").join(Jr).split("\\.").join(Kr)}(e),!0).map(Ur)},Rr="\0SLASH"+Math.random()+"\0",Br="\0OPEN"+Math.random()+"\0",jr="\0CLOSE"+Math.random()+"\0",Jr="\0COMMA"+Math.random()+"\0",Kr="\0PERIOD"+Math.random()+"\0";function zr(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function Ur(e){return e.split(Rr).join("\\").split(Br).join("{").split(jr).join("}").split(Jr).join(",").split(Kr).join(".")}function Vr(e){return"{"+e+"}"}function qr(e){return/^-?0\d/.test(e)}function Wr(e,t){return e<=t}function Hr(e,t){return e>=t}var Gr=tn;tn.Minimatch=rn;var Yr={sep:"/"};try{Yr=fr}catch(e){}var Xr=tn.GLOBSTAR=rn.GLOBSTAR={},Qr={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},$r=function(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var Zr=/\/+/;function en(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.keys(e).forEach((function(t){r[t]=e[t]})),r}function tn(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new rn(t,r).match(e))}function rn(e,t){if(!(this instanceof rn))return new rn(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==Yr.sep&&(e=e.split(Yr.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function nn(e,t){if(t||(t=this instanceof rn?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:Lr(e)}tn.filter=function(e,t){return t=t||{},function(r,n,i){return tn(r,e,t)}},tn.defaults=function(e){if(!e||!Object.keys(e).length)return tn;var t=tn,r=function(r,n,i){return t.minimatch(r,n,en(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,en(e,n))},r},rn.defaults=function(e){return e&&Object.keys(e).length?tn.defaults(e).Minimatch:rn},rn.prototype.debug=function(){},rn.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map((function(e){return e.split(Zr)})),this.debug(this.pattern,r),r=r.map((function(e,t,r){return e.map(this.parse,this)}),this),this.debug(this.pattern,r),r=r.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,r),this.set=r},rn.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,a=e.length;i<a&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.substr(n));this.negate=t},tn.braceExpand=function(e,t){return nn(e,t)},rn.prototype.braceExpand=nn,rn.prototype.parse=function(e,t){if(e.length>65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return Xr;if(""===e)return"";var n,i="",a=!!r.nocase,o=!1,s=[],c=[],u=!1,l=-1,d=-1,_="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",p=this;function f(){if(n){switch(n){case"*":i+="[^/]*?",a=!0;break;case"?":i+="[^/]",a=!0;break;default:i+="\\"+n}p.debug("clearStateChar %j %j",n,i),n=!1}}for(var g,m=0,y=e.length;m<y&&(g=e.charAt(m));m++)if(this.debug("%s\t%s %s %j",e,m,i,g),o&&$r[g])i+="\\"+g,o=!1;else switch(g){case"/":return!1;case"\\":f(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,m,i,g),u){this.debug(" in class"),"!"===g&&m===d+1&&(g="^"),i+=g;continue}p.debug("call clearStateChar %j",n),f(),n=g,r.noext&&f();continue;case"(":if(u){i+="(";continue}if(!n){i+="\\(";continue}s.push({type:n,start:m-1,reStart:i.length,open:Qr[n].open,close:Qr[n].close}),i+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,i),n=!1;continue;case")":if(u||!s.length){i+="\\)";continue}f(),a=!0;var h=s.pop();i+=h.close,"!"===h.type&&c.push(h),h.reEnd=i.length;continue;case"|":if(u||!s.length||o){i+="\\|",o=!1;continue}f(),i+="|";continue;case"[":if(f(),u){i+="\\"+g;continue}u=!0,d=m,l=i.length,i+=g;continue;case"]":if(m===d+1||!u){i+="\\"+g,o=!1;continue}if(u){var v=e.substring(d+1,m);try{RegExp("["+v+"]")}catch(e){var b=this.parse(v,an);i=i.substr(0,l)+"\\["+b[0]+"\\]",a=a||b[1],u=!1;continue}}a=!0,u=!1,i+=g;continue;default:f(),o?o=!1:!$r[g]||"^"===g&&u||(i+="\\"),i+=g}u&&(v=e.substr(d+1),b=this.parse(v,an),i=i.substr(0,l)+"\\["+b[0],a=a||b[1]);for(h=s.pop();h;h=s.pop()){var x=i.slice(h.reStart+h.open.length);this.debug("setting tail",i,h),x=x.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){return r||(r="\\"),t+t+r+"|"})),this.debug("tail=%j\n %s",x,x,h,i);var D="*"===h.type?"[^/]*?":"?"===h.type?"[^/]":"\\"+h.type;a=!0,i=i.slice(0,h.reStart)+D+"\\("+x}f(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var T=c.length-1;T>-1;T--){var E=c[T],C=i.slice(0,E.reStart),k=i.slice(E.reStart,E.reEnd-8),N=i.slice(E.reEnd-8,E.reEnd),A=i.slice(E.reEnd);N+=A;var F=C.split("(").length-1,P=A;for(m=0;m<F;m++)P=P.replace(/\)[+*?]?/,"");var w="";""===(A=P)&&t!==an&&(w="$"),i=C+k+A+w+N}""!==i&&a&&(i="(?=.)"+i);S&&(i=_+i);if(t===an)return[i,a];if(!a)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var I=r.nocase?"i":"";try{var O=new RegExp("^"+i+"$",I)}catch(e){return new RegExp("$.")}return O._glob=e,O._src=i,O};var an={};tn.makeRe=function(e,t){return new rn(e,t||{}).makeRe()},rn.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map((function(e){return e.map((function(e){return e===Xr?r:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},tn.match=function(e,t,r){var n=new rn(t,r=r||{});return e=e.filter((function(e){return n.match(e)})),n.options.nonull&&!e.length&&e.push(t),e},rn.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==Yr.sep&&(e=e.split(Yr.sep).join("/"));e=e.split(Zr),this.debug(this.pattern,"split",e);var n,i,a=this.set;for(this.debug(this.pattern,"set",a),i=e.length-1;i>=0&&!(n=e[i]);i--);for(i=0;i<a.length;i++){var o=a[i],s=e;if(r.matchBase&&1===o.length&&(s=[n]),this.matchOne(s,o,t))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate},rn.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var i=0,a=0,o=e.length,s=t.length;i<o&&a<s;i++,a++){this.debug("matchOne loop");var c,u=t[a],l=e[i];if(this.debug(t,u,l),!1===u)return!1;if(u===Xr){this.debug("GLOBSTAR",[t,u,l]);var d=i,_=a+1;if(_===s){for(this.debug("** at the end");i<o;i++)if("."===e[i]||".."===e[i]||!n.dot&&"."===e[i].charAt(0))return!1;return!0}for(;d<o;){var p=e[d];if(this.debug("\nglobstar while",e,d,t,_,p),this.matchOne(e.slice(d),t.slice(_),r))return this.debug("globstar found match!",d,o,p),!0;if("."===p||".."===p||!n.dot&&"."===p.charAt(0)){this.debug("dot detected!",e,d,t,_);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!r||(this.debug("\n>>> no match, partial?",e,d,t,_),d!==o))}if("string"==typeof u?(c=n.nocase?l.toLowerCase()===u.toLowerCase():l===u,this.debug("string match",u,l,c)):(c=l.match(u),this.debug("pattern match",u,l,c)),!c)return!1}if(i===o&&a===s)return!0;if(i===o)return r;if(a===s)return i===o-1&&""===e[i];throw new Error("wtf?")};var on=r((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),sn=r((function(e){try{var t=ur;if("function"!=typeof t.inherits)throw"";e.exports=t.inherits}catch(t){e.exports=on}}));var cn=Object.freeze({__proto__:null,EventEmitter:class{}});function un(){}un.ok=function(){},un.strictEqual=function(){};var ln=Object.freeze({__proto__:null,default:un});function dn(e){return"/"===e.charAt(0)}function _n(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}var pn="win32"===V.platform?_n:dn,fn=dn,gn=_n;pn.posix=fn,pn.win32=gn;var mn=Nn,yn=kn,hn=function(e,t,r){r||(r={});if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!r.silent,e.pattern=t,e.strict=!1!==r.strict,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0);e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(An))}(e,r),e.changedCwd=!1;var n=V.cwd();En(r,"cwd")?(e.cwd=fr.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=n;e.root=r.root||fr.resolve(e.cwd,"/"),e.root=fr.resolve(e.root),"win32"===V.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=pn(e.cwd)?e.cwd:Fn(e,e.cwd),"win32"===V.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!r.nomount,r.nonegate=!0,r.nocomment=!0,e.minimatch=new Cn(t,r),e.options=e.minimatch.options},vn=En,bn=Fn,xn=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var a=e.matches[n];if(a&&0!==Object.keys(a).length){var o=Object.keys(a);t?r.push.apply(r,o):o.forEach((function(e){r[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[n];t?r.push(s):r[s]=!0}}t||(r=Object.keys(r));e.nosort||(r=r.sort(e.nocase?kn:Nn));if(e.mark){for(n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter((function(t){var r=!/\/$/.test(t),n=e.cache[t]||e.cache[Fn(e,t)];return r&&n&&(r="DIR"!==n&&!Array.isArray(n)),r})))}e.ignore.length&&(r=r.filter((function(t){return!Pn(e,t)})));e.found=r},Dn=function(e,t){var r=Fn(e,t),n=e.cache[r],i=t;if(n){var a="DIR"===n||Array.isArray(n),o="/"===t.slice(-1);if(a&&!o?i+="/":!a&&o&&(i=i.slice(0,-1)),i!==t){var s=Fn(e,i);e.statCache[s]=e.statCache[r],e.cache[s]=e.cache[r]}}return i},Sn=Pn,Tn=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};function En(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Cn=Gr.Minimatch;function kn(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Nn(e,t){return e.localeCompare(t)}function An(e){var t=null;if("/**"===e.slice(-3)){var r=e.replace(/(\/\*\*)+$/,"");t=new Cn(r,{dot:!0})}return{matcher:new Cn(e,{dot:!0}),gmatcher:t}}function Fn(e,t){var r=t;return r="/"===t.charAt(0)?fr.join(e.root,t):pn(t)||""===t?t:e.changedCwd?fr.resolve(e.cwd,t):fr.resolve(t),"win32"===V.platform&&(r=r.replace(/\\/g,"/")),r}function Pn(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}var wn={alphasort:mn,alphasorti:yn,setopts:hn,ownProp:vn,makeAbs:bn,finish:xn,mark:Dn,isIgnored:Sn,childrenIgnored:Tn},In=n(ln),On=jn;jn.GlobSync=Jn;var Mn=wn.setopts,Ln=wn.ownProp,Rn=wn.childrenIgnored,Bn=wn.isIgnored;function jn(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new Jn(e,t).found}function Jn(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof Jn))return new Jn(e,t);if(Mn(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}Jn.prototype._finish=function(){if(In(this instanceof Jn),this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i),n[Sr.realpathSync(i,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;n[e._makeAbs(i)]=!0}}))}wn.finish(this)},Jn.prototype._process=function(e,t,r){In(this instanceof Jn);for(var n,i=0;"string"==typeof e[i];)i++;switch(i){case e.length:return void this._processSimple(e.join("/"),t);case 0:n=null;break;default:n=e.slice(0,i).join("/")}var a,o=e.slice(i);null===n?a=".":pn(n)||pn(e.join("/"))?(n&&pn(n)||(n="/"+n),a=n):a=n;var s=this._makeAbs(a);Rn(this,a)||(o[0]===Gr.GLOBSTAR?this._processGlobStar(n,a,s,o,t,r):this._processReaddir(n,a,s,o,t,r))},Jn.prototype._processReaddir=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){for(var s=n[0],c=!!this.minimatch.negate,u=s._glob,l=this.dot||"."===u.charAt(0),d=[],_=0;_<o.length;_++){if("."!==(g=o[_]).charAt(0)||l)(c&&!e?!g.match(s):g.match(s))&&d.push(g)}var p=d.length;if(0!==p)if(1!==n.length||this.mark||this.stat){n.shift();for(_=0;_<p;_++){var f;g=d[_];f=e?[e,g]:[g],this._process(f.concat(n),i,a)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var _=0;_<p;_++){var g=d[_];e&&(g="/"!==e.slice(-1)?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=fr.join(this.root,g)),this._emitMatch(i,g)}}}},Jn.prototype._emitMatch=function(e,t){if(!Bn(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}},Jn.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r;try{r=gr.lstatSync(e)}catch(e){if("ENOENT"===e.code)return null}var n=r&&r.isSymbolicLink();return this.symlinks[e]=n,n||!r||r.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},Jn.prototype._readdir=function(e,t){if(t&&!Ln(this.symlinks,e))return this._readdirInGlobStar(e);if(Ln(this.cache,e)){var r=this.cache[e];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(e,gr.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},Jn.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];n="/"===e?e+n:e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t},Jn.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},Jn.prototype._processGlobStar=function(e,t,r,n,i,a){var o=this._readdir(r,a);if(o){var s=n.slice(1),c=e?[e]:[],u=c.concat(s);this._process(u,i,!1);var l=o.length;if(!this.symlinks[r]||!a)for(var d=0;d<l;d++){if("."!==o[d].charAt(0)||this.dot){var _=c.concat(o[d],s);this._process(_,i,!0);var p=c.concat(o[d],n);this._process(p,i,!0)}}}},Jn.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),r){if(e&&pn(e)&&!this.nomount){var n=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=fr.join(this.root,e):(e=fr.resolve(this.root,e),n&&(e+="/"))}"win32"===V.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}},Jn.prototype._stat=function(e){var t=this._makeAbs(e),r="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&Ln(this.cache,t)){var n=this.cache[t];if(Array.isArray(n)&&(n="DIR"),!r||"DIR"===n)return n;if(r&&"FILE"===n)return!1}var i=this.statCache[t];if(!i){var a;try{a=gr.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(a&&a.isSymbolicLink())try{i=gr.statSync(t)}catch(e){i=a}else i=a}this.statCache[t]=i;n=!0;return i&&(n=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||n,(!r||"FILE"!==n)&&n},Jn.prototype._mark=function(e){return wn.mark(this,e)},Jn.prototype._makeAbs=function(e){return wn.makeAbs(this,e)};var Kn=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}};var zn=Kn(Vn),Un=Kn(qn);function Vn(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function qn(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}Vn.proto=Vn((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Vn(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return qn(this)},configurable:!0})})),zn.strict=Un;var Wn=Object.create(null),Hn=Kn((function(e,t){return Wn[e]?(Wn[e].push(t),null):(Wn[e]=[t],function(e){return zn((function t(){var r=Wn[e],n=r.length,i=Gn(arguments);try{for(var a=0;a<n;a++)r[a].apply(null,i)}finally{r.length>n?(r.splice(0,n),P((function(){t.apply(null,i)}))):delete Wn[e]}}))}(e))}));function Gn(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}var Yn=ti,Xn=cn.EventEmitter,Qn=wn.setopts,$n=wn.ownProp,Zn=wn.childrenIgnored,ei=wn.isIgnored;function ti(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return On(e,t)}return new ni(e,t,r)}ti.sync=On;var ri=ti.GlobSync=On.GlobSync;function ni(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new ri(e,t)}if(!(this instanceof ni))return new ni(e,t,r);Qn(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=zn(r),this.on("error",r),this.on("end",(function(e){r(null,e)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return o();for(var a=0;a<n;a++)this._process(this.minimatch.set[a],a,!1,o);function o(){--i._processing,i._processing<=0&&i._finish()}}ti.glob=ti,ti.hasMagic=function(e,t){var r=function(e,t){if(null===t||"object"!=typeof t)return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}({},t);r.noprocess=!0;var n=new ni(e,r).minimatch.set;if(!e)return!1;if(n.length>1)return!0;for(var i=0;i<n[0].length;i++)if("string"!=typeof n[0][i])return!0;return!1},ti.Glob=ni,sn(ni,Xn),ni.prototype._finish=function(){if(In(this instanceof ni),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();wn.finish(this),this.emit("end",this.found)}},ni.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n)}function n(){0==--e&&t._finish()}},ni.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,a=n.length;if(0===a)return t();var o=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=i._makeAbs(r),Sr.realpath(r,i.realpathCache,(function(n,s){n?"stat"===n.syscall?o[r]=!0:i.emit("error",n):o[s]=!0,0==--a&&(i.matches[e]=o,t())}))}))},ni.prototype._mark=function(e){return wn.mark(this,e)},ni.prototype._makeAbs=function(e){return wn.makeAbs(this,e)},ni.prototype.abort=function(){this.aborted=!0,this.emit("abort")},ni.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},ni.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},ni.prototype._process=function(e,t,r,n){if(In(this instanceof ni),In("function"==typeof n),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,r,n]);else{for(var i,a=0;"string"==typeof e[a];)a++;switch(a){case e.length:return void this._processSimple(e.join("/"),t,n);case 0:i=null;break;default:i=e.slice(0,a).join("/")}var o,s=e.slice(a);null===i?o=".":pn(i)||pn(e.join("/"))?(i&&pn(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(Zn(this,o))return n();s[0]===Gr.GLOBSTAR?this._processGlobStar(i,o,c,s,t,r,n):this._processReaddir(i,o,c,s,t,r,n)}},ni.prototype._processReaddir=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){return s._processReaddir2(e,t,r,n,i,a,u,o)}))},ni.prototype._processReaddir2=function(e,t,r,n,i,a,o,s){if(!o)return s();for(var c=n[0],u=!!this.minimatch.negate,l=c._glob,d=this.dot||"."===l.charAt(0),_=[],p=0;p<o.length;p++){if("."!==(g=o[p]).charAt(0)||d)(u&&!e?!g.match(c):g.match(c))&&_.push(g)}var f=_.length;if(0===f)return s();if(1===n.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(p=0;p<f;p++){var g=_[p];e&&(g="/"!==e?e+"/"+g:e+g),"/"!==g.charAt(0)||this.nomount||(g=fr.join(this.root,g)),this._emitMatch(i,g)}return s()}n.shift();for(p=0;p<f;p++){g=_[p];e&&(g="/"!==e?e+"/"+g:e+g),this._process([g].concat(n),i,a,s)}s()},ni.prototype._emitMatch=function(e,t){if(!this.aborted&&!ei(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var r=pn(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}},ni.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var r=this,n=Hn("lstat\0"+e,(function(n,i){if(n&&"ENOENT"===n.code)return t();var a=i&&i.isSymbolicLink();r.symlinks[e]=a,a||!i||i.isDirectory()?r._readdir(e,!1,t):(r.cache[e]="FILE",t())}));n&&gr.lstat(e,n)}},ni.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Hn("readdir\0"+e+"\0"+t,r))){if(t&&!$n(this.symlinks,e))return this._readdirInGlobStar(e,r);if($n(this.cache,e)){var n=this.cache[e];if(!n||"FILE"===n)return r();if(Array.isArray(n))return r(null,n)}gr.readdir(e,function(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}(this,e,r))}},ni.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}},ni.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return r()}},ni.prototype._processGlobStar=function(e,t,r,n,i,a,o){var s=this;this._readdir(r,a,(function(c,u){s._processGlobStar2(e,t,r,n,i,a,u,o)}))},ni.prototype._processGlobStar2=function(e,t,r,n,i,a,o,s){if(!o)return s();var c=n.slice(1),u=e?[e]:[],l=u.concat(c);this._process(l,i,!1,s);var d=this.symlinks[r],_=o.length;if(d&&a)return s();for(var p=0;p<_;p++){if("."!==o[p].charAt(0)||this.dot){var f=u.concat(o[p],c);this._process(f,i,!0,s);var g=u.concat(o[p],n);this._process(g,i,!0,s)}}s()},ni.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,(function(i,a){n._processSimple2(e,t,i,a,r)}))},ni.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&pn(e)&&!this.nomount){var a=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=fr.join(this.root,e):(e=fr.resolve(this.root,e),a&&(e+="/"))}"win32"===V.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()},ni.prototype._stat=function(e,t){var r=this._makeAbs(e),n="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&$n(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||"DIR"===i)return t(null,i);if(n&&"FILE"===i)return t()}var a=this.statCache[r];if(void 0!==a){if(!1===a)return t(null,a);var o=a.isDirectory()?"DIR":"FILE";return n&&"FILE"===o?t():t(null,o,a)}var s=this,c=Hn("stat\0"+r,(function(n,i){if(i&&i.isSymbolicLink())return gr.stat(r,(function(n,a){n?s._stat2(e,r,null,i,t):s._stat2(e,r,n,a,t)}));s._stat2(e,r,n,i,t)}));c&&gr.lstat(r,c)},ni.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var a="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,a&&"FILE"===o?i():i(null,o,n)};
  2. /*!
  3. * is-extglob <https://github.com/jonschlinkert/is-extglob>
  4. *
  5. * Copyright (c) 2014-2016, Jon Schlinkert.
  6. * Licensed under the MIT License.
  7. */
  8. var ii={"{":"}","(":")","[":"]"},ai=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,oi=/\\(.)|(^!|[*?{}()[\]]|\(\?)/,si=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=ai;for(t&&!1===t.strict&&(n=oi);r=n.exec(e);){if(r[2])return!0;var i=r.index+r[0].length,a=r[1],o=a?ii[a]:null;if(a&&o){var s=e.indexOf(o,i);-1!==s&&(i=s+1)}e=e.slice(i)}return!1};
  9. /*!
  10. * is-glob <https://github.com/jonschlinkert/is-glob>
  11. *
  12. * Copyright (c) 2014-2017, Jon Schlinkert.
  13. * Released under the MIT License.
  14. */const{MAX_LENGTH:ci}=W,{re:ui,t:li}=H;var di=(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>ci)return null;if(!(t.loose?ui[li.LOOSE]:ui[li.FULL]).test(e))return null;try{return new ne(e,t)}catch(e){return null}};var _i=(e,t)=>{const r=di(e,t);return r?r.version:null};var pi=(e,t)=>{const r=di(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var fi=(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 gi=(e,t,r)=>0===ie(e,t,r);var mi=(e,t)=>{if(gi(e,t))return null;{const r=di(e),n=di(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 yi=(e,t)=>new ne(e,t).major;var hi=(e,t)=>new ne(e,t).minor;var vi=(e,t)=>new ne(e,t).patch;var bi=(e,t)=>{const r=di(e,t);return r&&r.prerelease.length?r.prerelease:null};var xi=(e,t,r)=>ie(t,e,r);var Di=(e,t)=>ie(e,t,!0);var Si=(e,t,r)=>{const n=new ne(e,r),i=new ne(t,r);return n.compare(i)||n.compareBuild(i)};var Ti=(e,t)=>e.sort((e,r)=>Si(e,r,t));var Ei=(e,t)=>e.sort((e,r)=>Si(r,e,t));var Ci=(e,t,r)=>ie(e,t,r)>0;var ki=(e,t,r)=>0!==ie(e,t,r);var Ni=(e,t,r)=>ie(e,t,r)<=0;var Ai=(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 gi(e,r,n);case"!=":return ki(e,r,n);case">":return Ci(e,r,n);case">=":return oe(e,r,n);case"<":return ae(e,r,n);case"<=":return Ni(e,r,n);default:throw new TypeError("Invalid operator: ".concat(t))}};const{re:Fi,t:Pi}=H;var wi=(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=Fi[Pi.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),Fi[Pi.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;Fi[Pi.COERCERTL].lastIndex=-1}else r=e.match(Fi[Pi.COERCE]);return null===r?null:di("".concat(r[2],".").concat(r[3]||"0",".").concat(r[4]||"0"),t)};class Ii{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Ii)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Ii(e.raw,t);if(e instanceof ta)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?Mi[Li.HYPHENRANGELOOSE]:Mi[Li.HYPHENRANGE];e=e.replace(r,Qi(this.options.includePrerelease)),q("hyphen replace",e),e=e.replace(Mi[Li.COMPARATORTRIM],Ri),q("comparator trim",e,Mi[Li.COMPARATORTRIM]),e=(e=(e=e.replace(Mi[Li.TILDETRIM],Bi)).replace(Mi[Li.CARETTRIM],ji)).split(/\s+/).join(" ");const n=t?Mi[Li.COMPARATORLOOSE]:Mi[Li.COMPARATOR];return e.split(" ").map(e=>Ki(e,this.options)).join(" ").split(/\s+/).map(e=>Xi(e,this.options)).filter(this.options.loose?e=>!!e.match(n):()=>!0).map(e=>new ta(e,this.options))}intersects(e,t){if(!(e instanceof Ii))throw new TypeError("a Range is required");return this.set.some(r=>Ji(r,t)&&e.set.some(e=>Ji(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<this.set.length;t++)if($i(this.set[t],e,this.options))return!0;return!1}}var Oi=Ii;const{re:Mi,t:Li,comparatorTrimReplace:Ri,tildeTrimReplace:Bi,caretTrimReplace:ji}=H,Ji=(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},Ki=(e,t)=>(q("comp",e,t),e=qi(e,t),q("caret",e),e=Ui(e,t),q("tildes",e),e=Hi(e,t),q("xrange",e),e=Yi(e,t),q("stars",e),e),zi=e=>!e||"x"===e.toLowerCase()||"*"===e,Ui=(e,t)=>e.trim().split(/\s+/).map(e=>Vi(e,t)).join(" "),Vi=(e,t)=>{const r=t.loose?Mi[Li.TILDELOOSE]:Mi[Li.TILDE];return e.replace(r,(t,r,n,i,a)=>{let o;return q("tilde",e,t,r,n,i,a),zi(r)?o="":zi(n)?o=">=".concat(r,".0.0 <").concat(+r+1,".0.0-0"):zi(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})},qi=(e,t)=>e.trim().split(/\s+/).map(e=>Wi(e,t)).join(" "),Wi=(e,t)=>{q("caret",e,t);const r=t.loose?Mi[Li.CARETLOOSE]:Mi[Li.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),zi(r)?s="":zi(i)?s=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0"):zi(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})},Hi=(e,t)=>(q("replaceXRanges",e,t),e.split(/\s+/).map(e=>Gi(e,t)).join(" ")),Gi=(e,t)=>{e=e.trim();const r=t.loose?Mi[Li.XRANGELOOSE]:Mi[Li.XRANGE];return e.replace(r,(r,n,i,a,o,s)=>{q("xRange",e,r,n,i,a,o,s);const c=zi(i),u=c||zi(a),l=u||zi(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})},Yi=(e,t)=>(q("replaceStars",e,t),e.trim().replace(Mi[Li.STAR],"")),Xi=(e,t)=>(q("replaceGTE0",e,t),e.trim().replace(Mi[t.includePrerelease?Li.GTE0PRE:Li.GTE0],"")),Qi=e=>(t,r,n,i,a,o,s,c,u,l,d,_,p)=>(r=zi(n)?"":zi(i)?">=".concat(n,".0.0").concat(e?"-0":""):zi(a)?">=".concat(n,".").concat(i,".0").concat(e?"-0":""):o?">=".concat(r):">=".concat(r).concat(e?"-0":""),c=zi(u)?"":zi(l)?"<".concat(+u+1,".0.0-0"):zi(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()),$i=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(q(e[r].semver),e[r].semver!==ta.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},Zi=Symbol("SemVer ANY");class ea{static get ANY(){return Zi}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ea){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===Zi?this.value="":this.value=this.operator+this.semver.version,q("comp",this)}parse(e){const t=this.options.loose?ra[na.COMPARATORLOOSE]:ra[na.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=Zi}toString(){return this.value}test(e){if(q("Comparator.test",e,this.options.loose),this.semver===Zi||e===Zi)return!0;if("string"==typeof e)try{e=new ne(e,this.options)}catch(e){return!1}return Ai(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof ea))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new Oi(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new Oi(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=Ai(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=Ai(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||o||s}}var ta=ea;const{re:ra,t:na}=H;var ia=(e,t,r)=>{try{t=new Oi(t,r)}catch(e){return!1}return t.test(e)};var aa=(e,t)=>new Oi(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));var oa=(e,t,r)=>{let n=null,i=null,a=null;try{a=new Oi(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 sa=(e,t,r)=>{let n=null,i=null,a=null;try{a=new Oi(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 ca=(e,t)=>{e=new Oi(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<e.set.length;++t){e.set[t].forEach(e=>{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&&!Ci(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 ua=(e,t)=>{try{return new Oi(e,t).range||"*"}catch(e){return null}};const{ANY:la}=ta;var da=(e,t,r,n)=>{let i,a,o,s,c;switch(e=new ne(e,n),t=new Oi(t,n),r){case">":i=Ci,a=Ni,o=ae,s=">",c=">=";break;case"<":i=ae,a=oe,o=Ci,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ia(e,t,n))return!1;for(let r=0;r<t.set.length;++r){const u=t.set[r];let l=null,d=null;if(u.forEach(e=>{e.semver===la&&(e=new ta(">=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 _a=(e,t,r)=>da(e,t,">",r);var pa=(e,t,r)=>da(e,t,"<",r);var fa=(e,t,r)=>(e=new Oi(e,r),t=new Oi(t,r),e.intersects(t));const{ANY:ga}=ta,ma=(e,t,r)=>{if(1===e.length&&e[0].semver===ga)return 1===t.length&&t[0].semver===ga;const n=new Set;let i,a,o,s,c,u,l;for(const t of e)">"===t.operator||">="===t.operator?i=ya(i,t,r):"<"===t.operator||"<="===t.operator?a=ha(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&&!ia(e,String(i),r))return null;if(a&&!ia(e,String(a),r))return null;for(const n of t)if(!ia(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=ya(i,e,r),s===e)return!1}else if(">="===i.operator&&!ia(i.semver,String(e),r))return!1;if(a)if("<"===e.operator||"<="===e.operator){if(c=ha(a,e,r),c===e)return!1}else if("<="===a.operator&&!ia(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)},ya=(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},ha=(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 va=(e,t,r)=>{e=new Oi(e,r),t=new Oi(t,r);let n=!1;e:for(const i of e.set){for(const e of t.set){const t=ma(i,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0},ba={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:di,valid:_i,clean:pi,inc:fi,diff:mi,major:yi,minor:hi,patch:vi,prerelease:bi,compare:ie,rcompare:xi,compareLoose:Di,compareBuild:Si,sort:Ti,rsort:Ei,gt:Ci,lt:ae,eq:gi,neq:ki,gte:oe,lte:Ni,cmp:Ai,coerce:wi,Comparator:ta,Range:Oi,satisfies:ia,toComparators:aa,maxSatisfying:oa,minSatisfying:sa,minVersion:ca,validRange:ua,outside:da,gtr:_a,ltr:pa,intersects:fa,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){ia(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<u.length?c:t},subset:va},xa=Object.freeze({__proto__:null,default:{}}),Da=Object.freeze({__proto__:null,default:{}}),Sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ta=function(e){if(0<=e&&e<Sa.length)return Sa[e];throw new TypeError("Must be between 0 and 63: "+e)},Ea=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Ca=function(e){var t,r="",n=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&n,(n>>>=5)>0&&(t|=32),r+=Ta(t)}while(n>0);return r},ka=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=Ea(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));n=!!(32&i),c+=(i&=31)<<u,u+=5}while(n);r.value=(o=(a=c)>>1,1==(1&a)?-o:o),r.rest=t},Na=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)}})),Aa=Object.prototype.hasOwnProperty,Fa="undefined"!=typeof Map;function Pa(){this._array=[],this._set=Fa?new Map:Object.create(null)}Pa.fromArray=function(e,t){for(var r=new Pa,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},Pa.prototype.size=function(){return Fa?this._set.size:Object.getOwnPropertyNames(this._set).length},Pa.prototype.add=function(e,t){var r=Fa?e:Na.toSetString(e),n=Fa?this.has(e):Aa.call(this._set,r),i=this._array.length;n&&!t||this._array.push(e),n||(Fa?this._set.set(e,i):this._set[r]=i)},Pa.prototype.has=function(e){if(Fa)return this._set.has(e);var t=Na.toSetString(e);return Aa.call(this._set,t)},Pa.prototype.indexOf=function(e){if(Fa){var t=this._set.get(e);if(t>=0)return t}else{var r=Na.toSetString(e);if(Aa.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},Pa.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},Pa.prototype.toArray=function(){return this._array.slice()};var wa={ArraySet:Pa};function Ia(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ia.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},Ia.prototype.add=function(e){var t,r,n,i,a,o;t=this._last,r=e,n=t.generatedLine,i=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,i>n||i==n&&o>=a||Na.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Ia.prototype.toArray=function(){return this._sorted||(this._array.sort(Na.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};var Oa=wa.ArraySet,Ma={MappingList:Ia}.MappingList;function La(e){e||(e={}),this._file=Na.getArg(e,"file",null),this._sourceRoot=Na.getArg(e,"sourceRoot",null),this._skipValidation=Na.getArg(e,"skipValidation",!1),this._sources=new Oa,this._names=new Oa,this._mappings=new Ma,this._sourcesContents=null}La.prototype._version=3,La.fromSourceMap=function(e){var t=e.sourceRoot,r=new La({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=Na.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=Na.relative(t,n)),r._sources.has(i)||r._sources.add(i);var a=e.sourceContentFor(n);null!=a&&r.setSourceContent(n,a)})),r},La.prototype.addMapping=function(e){var t=Na.getArg(e,"generated"),r=Na.getArg(e,"original",null),n=Na.getArg(e,"source",null),i=Na.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})},La.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Na.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Na.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Na.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},La.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=Na.relative(i,n));var a=new Oa,o=new Oa;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=Na.join(r,t.source)),null!=i&&(t.source=Na.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=Na.join(r,t)),null!=i&&(t=Na.relative(i,t)),this.setSourceContent(t,n))}),this)},La.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}))},La.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;_<p;_++){if(e="",(t=d[_]).generatedLine!==a)for(i=0;t.generatedLine!==a;)e+=";",a++;else if(_>0){if(!Na.compareByGeneratedPositionsInflated(t,d[_-1]))continue;e+=","}e+=Ca(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=Ca(n-u),u=n,e+=Ca(t.originalLine-1-s),s=t.originalLine-1,e+=Ca(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=Ca(r-c),c=r)),l+=e}return l},La.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Na.relative(t,e));var r=Na.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},La.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},La.prototype.toString=function(){return JSON.stringify(this.toJSON())};var Ra={SourceMapGenerator:La},Ba=r((function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-r>1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}}));function ja(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Ja(e,t,r,n){if(r<n){var i=r-1;ja(e,(c=r,u=n,Math.round(c+Math.random()*(u-c))),n);for(var a=e[n],o=r;o<n;o++)t(e[o],a)<=0&&ja(e,i+=1,o);ja(e,i+1,o);var s=i+1;Ja(e,t,r,s-1),Ja(e,t,s+1,n)}var c,u}var Ka=wa.ArraySet,za=function(e,t){Ja(e,t,0,e.length-1)};function Ua(e,t){var r=e;return"string"==typeof e&&(r=Na.parseSourceMapInput(e)),null!=r.sections?new Ga(r,t):new qa(r,t)}Ua.fromSourceMap=function(e,t){return qa.fromSourceMap(e,t)},Ua.prototype._version=3,Ua.prototype.__generatedMappings=null,Object.defineProperty(Ua.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),Ua.prototype.__originalMappings=null,Object.defineProperty(Ua.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),Ua.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},Ua.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},Ua.GENERATED_ORDER=1,Ua.ORIGINAL_ORDER=2,Ua.GREATEST_LOWER_BOUND=1,Ua.LEAST_UPPER_BOUND=2,Ua.prototype.eachMapping=function(e,t,r){var n,i=t||null;switch(r||Ua.GENERATED_ORDER){case Ua.GENERATED_ORDER:n=this._generatedMappings;break;case Ua.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;n.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=Na.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},Ua.prototype.allGeneratedPositionsFor=function(e){var t=Na.getArg(e,"line"),r={source:Na.getArg(e,"source"),originalLine:t,originalColumn:Na.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var n=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Na.compareByOriginalPositions,Ba.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)n.push({line:Na.getArg(a,"generatedLine",null),column:Na.getArg(a,"generatedColumn",null),lastColumn:Na.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)n.push({line:Na.getArg(a,"generatedLine",null),column:Na.getArg(a,"generatedColumn",null),lastColumn:Na.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return n};var Va=Ua;function qa(e,t){var r=e;"string"==typeof e&&(r=Na.parseSourceMapInput(e));var n=Na.getArg(r,"version"),i=Na.getArg(r,"sources"),a=Na.getArg(r,"names",[]),o=Na.getArg(r,"sourceRoot",null),s=Na.getArg(r,"sourcesContent",null),c=Na.getArg(r,"mappings"),u=Na.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Na.normalize(o)),i=i.map(String).map(Na.normalize).map((function(e){return o&&Na.isAbsolute(o)&&Na.isAbsolute(e)?Na.relative(o,e):e})),this._names=Ka.fromArray(a.map(String),!0),this._sources=Ka.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map((function(e){return Na.computeSourceURL(o,e,t)})),this.sourceRoot=o,this.sourcesContent=s,this._mappings=c,this._sourceMapURL=t,this.file=u}function Wa(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}qa.prototype=Object.create(Ua.prototype),qa.prototype.consumer=Ua,qa.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=Na.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},qa.fromSourceMap=function(e,t){var r=Object.create(qa.prototype),n=r._names=Ka.fromArray(e._names.toArray(),!0),i=r._sources=Ka.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((function(e){return Na.computeSourceURL(r.sourceRoot,e,t)}));for(var a=e._mappings.toArray().slice(),o=r.__generatedMappings=[],s=r.__originalMappings=[],c=0,u=a.length;c<u;c++){var l=a[c],d=new Wa;d.generatedLine=l.generatedLine,d.generatedColumn=l.generatedColumn,l.source&&(d.source=i.indexOf(l.source),d.originalLine=l.originalLine,d.originalColumn=l.originalColumn,l.name&&(d.name=n.indexOf(l.name)),s.push(d)),o.push(d)}return za(r.__originalMappings,Na.compareByOriginalPositions),r},qa.prototype._version=3,Object.defineProperty(qa.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),qa.prototype._parseMappings=function(e,t){for(var r,n,i,a,o,s=1,c=0,u=0,l=0,d=0,_=0,p=e.length,f=0,g={},m={},y=[],h=[];f<p;)if(";"===e.charAt(f))s++,f++,c=0;else if(","===e.charAt(f))f++;else{for((r=new Wa).generatedLine=s,a=f;a<p&&!this._charIsMappingSeparator(e,a);a++);if(i=g[n=e.slice(f,a)])f+=n.length;else{for(i=[];f<a;)ka(e,f,m),o=m.value,f=m.rest,i.push(o);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");g[n]=i}r.generatedColumn=c+i[0],c=r.generatedColumn,i.length>1&&(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])),h.push(r),"number"==typeof r.originalLine&&y.push(r)}za(h,Na.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,za(y,Na.compareByOriginalPositions),this.__originalMappings=y},qa.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 Ba.search(e,t,i,a)},qa.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},qa.prototype.originalPositionFor=function(e){var t={generatedLine:Na.getArg(e,"line"),generatedColumn:Na.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",Na.compareByGeneratedPositionsDeflated,Na.getArg(e,"bias",Ua.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var i=Na.getArg(n,"source",null);null!==i&&(i=this._sources.at(i),i=Na.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=Na.getArg(n,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:Na.getArg(n,"originalLine",null),column:Na.getArg(n,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},qa.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},qa.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=Na.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=Na.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.')},qa.prototype.generatedPositionFor=function(e){var t=Na.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:Na.getArg(e,"line"),originalColumn:Na.getArg(e,"column")},n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",Na.compareByOriginalPositions,Na.getArg(e,"bias",Ua.GREATEST_LOWER_BOUND));if(n>=0){var i=this._originalMappings[n];if(i.source===r.source)return{line:Na.getArg(i,"generatedLine",null),column:Na.getArg(i,"generatedColumn",null),lastColumn:Na.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var Ha=qa;function Ga(e,t){var r=e;"string"==typeof e&&(r=Na.parseSourceMapInput(e));var n=Na.getArg(r,"version"),i=Na.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Ka,this._names=new Ka;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=Na.getArg(e,"offset"),n=Na.getArg(r,"line"),i=Na.getArg(r,"column");if(n<a.line||n===a.line&&i<a.column)throw new Error("Section offsets must be ordered and non-overlapping.");return a=r,{generatedOffset:{generatedLine:n+1,generatedColumn:i+1},consumer:new Ua(Na.getArg(e,"map"),t)}}))}Ga.prototype=Object.create(Ua.prototype),Ga.prototype.constructor=Ua,Ga.prototype._version=3,Object.defineProperty(Ga.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),Ga.prototype.originalPositionFor=function(e){var t={generatedLine:Na.getArg(e,"line"),generatedColumn:Na.getArg(e,"column")},r=Ba.search(t,this._sections,(function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn})),n=this._sections[r];return n?n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},Ga.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},Ga.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},Ga.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(Na.getArg(e,"source"))){var n=r.consumer.generatedPositionFor(e);if(n)return{line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},Ga.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var n=this._sections[r],i=n.consumer._generatedMappings,a=0;a<i.length;a++){var o=i[a],s=n.consumer._sources.at(o.source);s=Na.computeSourceURL(n.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var c=null;o.name&&(c=n.consumer._names.at(o.name),this._names.add(c),c=this._names.indexOf(c));var u={source:s,generatedLine:o.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:o.generatedColumn+(n.generatedOffset.generatedLine===o.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:o.originalLine,originalColumn:o.originalColumn,name:c};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}za(this.__generatedMappings,Na.compareByGeneratedPositionsDeflated),za(this.__originalMappings,Na.compareByOriginalPositions)};var Ya={SourceMapConsumer:Va,BasicSourceMapConsumer:Ha,IndexedSourceMapConsumer:Ga},Xa=Ra.SourceMapGenerator,Qa=/(\r?\n)/,$a="$$$isSourceNode$$$";function Za(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[$a]=!0,null!=n&&this.add(n)}Za.fromStringWithSourceMap=function(e,t,r){var n=new Za,i=e.split(Qa),a=0,o=function(){return e()+(e()||"");function e(){return a<i.length?i[a++]:void 0}},s=1,c=0,u=null;return t.eachMapping((function(e){if(null!==u){if(!(s<e.generatedLine)){var t=(r=i[a]||"").substr(0,e.generatedColumn-c);return i[a]=r.substr(e.generatedColumn-c),c=e.generatedColumn,l(u,t),void(u=e)}l(u,o()),s++,c=0}for(;s<e.generatedLine;)n.add(o()),s++;if(c<e.generatedColumn){var r=i[a]||"";n.add(r.substr(0,e.generatedColumn)),i[a]=r.substr(e.generatedColumn),c=e.generatedColumn}u=e}),this),a<i.length&&(u&&l(u,o()),n.add(i.splice(a).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=r&&(e=Na.join(r,e)),n.setSourceContent(e,i))})),n;function l(e,t){if(null===e||void 0===e.source)n.add(t);else{var i=r?Na.join(r,e.source):e.source;n.add(new Za(e.originalLine,e.originalColumn,i,t,e.name))}}},Za.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[$a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},Za.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[$a]&&"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},Za.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[$a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},Za.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},Za.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[$a]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},Za.prototype.setSourceContent=function(e,t){this.sourceContents[Na.toSetString(e)]=t},Za.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][$a]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(Na.fromSetString(n[t]),this.sourceContents[n[t]])},Za.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},Za.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new Xa(e),n=!1,i=null,a=null,o=null,s=null;return this.walk((function(e,c){t.code+=e,null!==c.source&&null!==c.line&&null!==c.column?(i===c.source&&a===c.line&&o===c.column&&s===c.name||r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name}),i=c.source,a=c.line,o=c.column,s=c.name,n=!0):n&&(r.addMapping({generated:{line:t.line,column:t.column}}),i=null,n=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(i=null,n=!1):n&&r.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:t.line,column:t.column},name:c.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}};var eo={SourceMapGenerator:Ra.SourceMapGenerator,SourceMapConsumer:Ya.SourceMapConsumer,SourceNode:{SourceNode:Za}.SourceNode},to=[],ro=[],no="undefined"!=typeof Uint8Array?Uint8Array:Array,io=!1;function ao(){io=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)to[t]=e[t],ro[e.charCodeAt(t)]=t;ro["-".charCodeAt(0)]=62,ro["_".charCodeAt(0)]=63}function oo(e,t,r){for(var n,i,a=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a.push(to[(i=n)>>18&63]+to[i>>12&63]+to[i>>6&63]+to[63&i]);return a.join("")}function so(e){var t;io||ao();for(var r=e.length,n=r%3,i="",a=[],o=0,s=r-n;o<s;o+=16383)a.push(oo(e,o,o+16383>s?s:o+16383));return 1===n?(t=e[r-1],i+=to[t>>2],i+=to[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=to[t>>10],i+=to[t>>4&63],i+=to[t<<2&63],i+="="),a.push(i),a.join("")}function co(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<<s)-1,u=c>>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 uo(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,d=l>>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<<i|s,u+=i;u>0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*g}var lo={}.toString,_o=Array.isArray||function(e){return"[object Array]"==lo.call(e)};function po(){return go.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function fo(e,t){if(po()<t)throw new RangeError("Invalid typed array length");return go.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=go.prototype:(null===e&&(e=new go(t)),e.length=t),e}function go(e,t,r){if(!(go.TYPED_ARRAY_SUPPORT||this instanceof go))return new go(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ho(this,e)}return mo(this,e,t,r)}function mo(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);go.TYPED_ARRAY_SUPPORT?(e=t).__proto__=go.prototype:e=vo(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!go.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|Do(t,r),i=(e=fo(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(xo(t)){var r=0|bo(t.length);return 0===(e=fo(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?fo(e,0):vo(e,t);if("Buffer"===t.type&&_o(t.data))return vo(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function yo(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ho(e,t){if(yo(t),e=fo(e,t<0?0:0|bo(t)),!go.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function vo(e,t){var r=t.length<0?0:0|bo(t.length);e=fo(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function bo(e){if(e>=po())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+po().toString(16)+" bytes");return 0|e}function xo(e){return!(null==e||!e._isBuffer)}function Do(e,t){if(xo(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 Go(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Yo(e).length;default:if(n)return Go(e).length;t=(""+t).toLowerCase(),n=!0}}function So(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 Ro(this,t,r);case"utf8":case"utf-8":return Oo(this,t,r);case"ascii":return Mo(this,t,r);case"latin1":case"binary":return Lo(this,t,r);case"base64":return Io(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bo(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function To(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Eo(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=go.from(t,n)),xo(t))return 0===t.length?-1:Co(e,t,r,n,i);if("number"==typeof t)return t&=255,go.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):Co(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Co(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(r+c>s&&(r=s-c),a=r;a>=0;a--){for(var d=!0,_=0;_<c;_++)if(u(e,a+_)!==u(t,_)){d=!1;break}if(d)return a}return-1}function ko(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function No(e,t,r,n){return Xo(Go(t,e.length-r),e,r,n)}function Ao(e,t,r,n){return Xo(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function Fo(e,t,r,n){return Ao(e,t,r,n)}function Po(e,t,r,n){return Xo(Yo(t),e,r,n)}function wo(e,t,r,n){return Xo(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function Io(e,t,r){return 0===t&&r===e.length?so(e):so(e.slice(t,r))}function Oo(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,c,u=e[i],l=null,d=u>239?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(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}go.TYPED_ARRAY_SUPPORT=void 0===v.TYPED_ARRAY_SUPPORT||v.TYPED_ARRAY_SUPPORT,go.poolSize=8192,go._augment=function(e){return e.__proto__=go.prototype,e},go.from=function(e,t,r){return mo(null,e,t,r)},go.TYPED_ARRAY_SUPPORT&&(go.prototype.__proto__=Uint8Array.prototype,go.__proto__=Uint8Array),go.alloc=function(e,t,r){return function(e,t,r,n){return yo(t),t<=0?fo(e,t):void 0!==r?"string"==typeof n?fo(e,t).fill(r,n):fo(e,t).fill(r):fo(e,t)}(null,e,t,r)},go.allocUnsafe=function(e){return ho(null,e)},go.allocUnsafeSlow=function(e){return ho(null,e)},go.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Qo(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Qo(e.slice(0,0))}(e))},go.compare=function(e,t){if(!xo(e)||!xo(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},go.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},go.concat=function(e,t){if(!_o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return go.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=go.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!xo(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},go.byteLength=Do,go.prototype._isBuffer=!0,go.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)To(this,t,t+1);return this},go.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)To(this,t,t+3),To(this,t+1,t+2);return this},go.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)To(this,t,t+7),To(this,t+1,t+6),To(this,t+2,t+5),To(this,t+3,t+4);return this},go.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Oo(this,0,e):So.apply(this,arguments)},go.prototype.equals=function(e){if(!xo(e))throw new TypeError("Argument must be a Buffer");return this===e||0===go.compare(this,e)},go.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},go.prototype.compare=function(e,t,r,n,i){if(!xo(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;l<s;++l)if(c[l]!==u[l]){a=c[l],o=u[l];break}return a<o?-1:o<a?1:0},go.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},go.prototype.indexOf=function(e,t,r){return Eo(this,e,t,r,!0)},go.prototype.lastIndexOf=function(e,t,r){return Eo(this,e,t,r,!1)},go.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return ko(this,e,t,r);case"utf8":case"utf-8":return No(this,e,t,r);case"ascii":return Ao(this,e,t,r);case"latin1":case"binary":return Fo(this,e,t,r);case"base64":return Po(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wo(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},go.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function Lo(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function Ro(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=Ho(e[a]);return i}function Bo(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function jo(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function Jo(e,t,r,n,i,a){if(!xo(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Ko(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function zo(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function Uo(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 Vo(e,t,r,n,i){return i||Uo(e,0,r,4),uo(e,t,r,n,23,4),r+4}function qo(e,t,r,n,i){return i||Uo(e,0,r,8),uo(e,t,r,n,52,8),r+8}go.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),go.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=go.prototype;else{var i=t-e;r=new go(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},go.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||jo(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},go.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||jo(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},go.prototype.readUInt8=function(e,t){return t||jo(e,1,this.length),this[e]},go.prototype.readUInt16LE=function(e,t){return t||jo(e,2,this.length),this[e]|this[e+1]<<8},go.prototype.readUInt16BE=function(e,t){return t||jo(e,2,this.length),this[e]<<8|this[e+1]},go.prototype.readUInt32LE=function(e,t){return t||jo(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},go.prototype.readUInt32BE=function(e,t){return t||jo(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},go.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||jo(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},go.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||jo(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},go.prototype.readInt8=function(e,t){return t||jo(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},go.prototype.readInt16LE=function(e,t){t||jo(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},go.prototype.readInt16BE=function(e,t){t||jo(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},go.prototype.readInt32LE=function(e,t){return t||jo(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},go.prototype.readInt32BE=function(e,t){return t||jo(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},go.prototype.readFloatLE=function(e,t){return t||jo(e,4,this.length),co(this,e,!0,23,4)},go.prototype.readFloatBE=function(e,t){return t||jo(e,4,this.length),co(this,e,!1,23,4)},go.prototype.readDoubleLE=function(e,t){return t||jo(e,8,this.length),co(this,e,!0,52,8)},go.prototype.readDoubleBE=function(e,t){return t||jo(e,8,this.length),co(this,e,!1,52,8)},go.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Jo(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},go.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Jo(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},go.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,1,255,0),go.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},go.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,2,65535,0),go.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ko(this,e,t,!0),t+2},go.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,2,65535,0),go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ko(this,e,t,!1),t+2},go.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,4,4294967295,0),go.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):zo(this,e,t,!0),t+4},go.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,4,4294967295,0),go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):zo(this,e,t,!1),t+4},go.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Jo(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},go.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Jo(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},go.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,1,127,-128),go.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},go.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,2,32767,-32768),go.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ko(this,e,t,!0),t+2},go.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,2,32767,-32768),go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ko(this,e,t,!1),t+2},go.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,4,2147483647,-2147483648),go.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):zo(this,e,t,!0),t+4},go.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Jo(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),go.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):zo(this,e,t,!1),t+4},go.prototype.writeFloatLE=function(e,t,r){return Vo(this,e,t,!0,r)},go.prototype.writeFloatBE=function(e,t,r){return Vo(this,e,t,!1,r)},go.prototype.writeDoubleLE=function(e,t,r){return qo(this,e,t,!0,r)},go.prototype.writeDoubleBE=function(e,t,r){return qo(this,e,t,!1,r)},go.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!go.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},go.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!go.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=xo(e)?e:Go(new go(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var Wo=/[^+\/0-9A-Za-z-_]/g;function Ho(e){return e<16?"0"+e.toString(16):e.toString(16)}function Go(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Yo(e){return function(e){var t,r,n,i,a,o;io||ao();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 no(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)i=ro[e.charCodeAt(t)]<<18|ro[e.charCodeAt(t+1)]<<12|ro[e.charCodeAt(t+2)]<<6|ro[e.charCodeAt(t+3)],o[c++]=i>>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=ro[e.charCodeAt(t)]<<2|ro[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=ro[e.charCodeAt(t)]<<10|ro[e.charCodeAt(t+1)]<<4|ro[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(Wo,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Xo(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Qo(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var $o=Object.prototype.toString,Zo="function"==typeof go.alloc&&"function"==typeof go.allocUnsafe&&"function"==typeof go.from;var es=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return n=e,"ArrayBuffer"===$o.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 Zo?go.from(e.slice(t,t+r)):new go(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!go.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return Zo?go.from(e,t):new go(e,t)}(e,t):Zo?go.from(e):new go(e);var n},ts=(r((function(e,t){var r,n=eo.SourceMapConsumer,i=fr;try{(r=gr).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<e.length;r++){var n=e[r](t);if(n)return n}return null}}var y=m(p);function h(e,t){if(!e)return t;var r=i.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),a=n?n[0]:"",o=r.slice(a.length);return a&&/^\/\w\:/.test(o)?(a+="/")+i.resolve(r.slice(a.length),t).replace(/\\/g,"/"):a+i.resolve(r.slice(a.length),t)}p.push((function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,(function(e,t){return t?"":"/"}))),e in l)return l[e];var t="";try{if(r)r.existsSync(e)&&(t=r.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),4===n.readyState&&200===n.status&&(t=n.responseText)}}catch(e){}return l[e]=t}));var v=m(f);function b(e){var t=d[e.source];if(!t){var r=v(e.source);r?(t=d[e.source]={url:r.url,map:new n(r.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,r){var n=t.map.sourcesContent[r];if(n){var i=h(t.url,e);l[i]=n}})):t=d[e.source]={url:null,map:null}}if(t&&t.map&&"function"==typeof t.map.originalPositionFor){var i=t.map.originalPositionFor(e);if(null!==i.source)return i.source=h(t.url,i.source),i}return e}function x(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";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||"<anonymous>")}else s?i+="new "+(a||"<anonymous>"):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function D(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=x,t}function S(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=b({source:r,line:n,column:i});t.curPosition=o;var s=(e=D(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=function e(t){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(t);if(r){var n=b({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return(r=/^eval at ([^(]+) \((.+)\)$/.exec(t))?"eval at "+r[1]+" ("+e(r[2])+")":t}(c),(e=D(e)).getEvalOrigin=function(){return c},e):e}function T(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 "+S(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function E(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 C(e){var t=E(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=es(n,"base64").toString(),r=e}else r=h(e,r),t=y(r);return t?{url:r,map:t}:null}));var k=p.slice(0),N=f.slice(0);t.wrapCallSite=S,t.getErrorSource=E,t.mapSourcePosition=b,t.retrieveSourceMap=v,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=T),!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 C(arguments[1])}return _.apply(this,arguments)})}var _},t.resetRetrieveHandlers=function(){p.length=0,f.length=0,p=k.slice(0),f=N.slice(0),v=m(f),y=m(p)}})),Object.freeze({__proto__:null,default:{}})),rs=(n(xa),n(Da),n(ts),r((function(e){var r=t&&t.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n},n=t&&t.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=t&&t.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=t&&t.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},s=t&&t.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},c=t&&t.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=function(e,t){return{key:e,value:t,next:void 0,prev:void 0}}(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function u(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function l(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function d(e,t){return{current:e.head,selector:t}}function _(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}!function(e){e.createMapShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return _(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),l(e(r),(function(e){var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){u(this._mapData,e)},n}()},e.createSetShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return _(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),l(e(r),(function(e){return n.add(e)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){u(this._mapData,e)},n}()}}(e.ShimCollections||(e.ShimCollections={}))}(u||(u={})),function(e){e.versionMajorMinor="4.0",e.version="4.0.2",function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={})),function(e){e.tryGetNativeMap=function(){return"undefined"!=typeof Map&&"entries"in Map.prototype&&1===new Map([[0,0]]).size?Map:void 0},e.tryGetNativeSet=function(){return"undefined"!=typeof Set&&"entries"in Set.prototype&&1===new Set([0]).size?Set:void 0}}(e.NativeCollections||(e.NativeCollections={}))}(u||(u={})),function(e){function t(t,r,i){var a,o=null!==(a=e.NativeCollections[r]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](n);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native "+t+" implementation.")}function n(t){if(t){if(N(t))return g(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}}function i(e,t,r){if(void 0===r&&(r=O),e)for(var n=0,i=e;n<i.length;n++){if(r(i[n],t))return!0}return!1}function a(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++){if(t(n[r]))return!0}}return!1}function o(e,t){return a(t)?a(e)?r(e,t):t:e}function s(e,t){return t}function c(e){return e.map(s)}function u(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function l(e,t){return t<0?e.length+t:t}function d(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:l(t,r),n=void 0===n?t.length:l(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function _(e,t,r){return!i(e,t,r)&&(e.push(t),!0)}function p(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||L(t,n)}))}function f(e,t){return 0===e.length?e:e.slice().sort(t)}function g(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}}function m(e,t,r,n,i){return y(e,r(t),r,n,i)}function y(e,t,r,n,i){if(!a(e))return-1;for(var o=i||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(n(r(e[c]),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(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)v.call(t,n)&&r.set(n,t[n]);return r},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=function(e,t){if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=function(e,t,r){var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=function(t,r,n){var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=function(t,r){e.Debug.assertEqual(t.length,r.length);var n=0;return{next:function(){return n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}}},e.zipToMap=function(t,r){e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=function(e,t){if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=i,e.arraysEqual=function(e,t,r){return void 0===r&&(r=O),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,t,r){for(var n=r||0;n<e.length;n++)if(i(t,e.charCodeAt(n)))return n;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++){t(e[n],n)&&r++}return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(N(i)?d(t,i):t.push(i))}return t},e.flatMap=function(t,r){var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=N(a)?d(n,a):u(n,a))}return n||e.emptyArray},e.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(N(i)?d(r,i):r.push(i))}return r},e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:N(n)?g(n):n}},e.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||N(a))&&(r||(r=e.slice(0,n)),N(a)?d(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.mapDefinedEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=function(t,r){if(t){var n=new e.Set;return t.forEach((function(e){var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=function(e,t,r){if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var u=r(e.slice(s,c),a,s,c);u&&n.push(u),s=c}a=o,c++}}return n},e.mapEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=a,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=o,e.indicesOf=c,e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=c(e);p(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],u=e[s];t(i,u)||(a.push(s),i=u)}return a.sort(),a.map((function(t){return e[t]}))}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)_(r,i[n],t);return r}(e,t)},e.insertSorted=function(e,t,r){if(0!==e.length){var n=m(e,t,F,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=function(t,r,n){return function(t,r){if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i}(f(t,r),n||r||B)},e.arrayIsSorted=function(e,t){if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=O),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(t,r,n){if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++){r+=i[n][t]}return r},e.append=u,e.combine=function(e,t){return void 0===e?t:void 0===t?e:N(e)?N(t)?o(e,t):u(e,t):N(t)?u(t,e):[e,t]},e.addRange=d,e.pushIfUnique=_,e.appendIfUnique=function(e,t,r){return e?(_(e,t,r),e):[t]},e.sort=f,e.arrayIterator=g,e.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}}},e.stableSort=function(e,t){var r=c(e);return p(e,r,t),r.map((function(t){return e[t]}))},e.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=function(e,t){if(e&&(t=l(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(t){return e.Debug.assert(0!==t.length),t[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(t){return e.Debug.assert(0!==t.length),t[t.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=m,e.binarySearchKey=y,e.reduceLeft=h;var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function x(e){var t=[];for(var r in e)v.call(e,r)&&t.push(r);return t}e.hasProperty=b,e.getProperty=function(e,t){return v.call(e,t)?e[t]:void 0},e.getOwnKeys=x,e.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++){_(t,n[r])}}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=function(e){var t=[];for(var r in e)v.call(e,r)&&t.push(e[r]);return t};var D=Object.entries?Object.entries:function(e){for(var t=x(e),r=Array(t.length),n=0,i=t;n<i.length;n++){var a=i[n];r.push([a,e[a]])}return r};function S(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function T(e,t,r){void 0===r&&(r=F);for(var n=E(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function E(){var t=new e.Map;return t.add=C,t.remove=k,t}function C(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function k(e,t){var r=this.get(e);r&&(W(r,t),r.length||this.delete(e))}function N(e){return Array.isArray?Array.isArray(e):e instanceof Array}function A(e){}function F(e){return e}function P(e){return e.toLowerCase()}e.getEntries=function(e){return e?D(e):[]},e.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=S,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)b(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=O),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(v.call(e,n)){if(!v.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(v.call(t,n)&&!v.call(e,n))return!1;return!0},e.arrayToMap=function(t,r,n){void 0===n&&(n=F);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=F);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=T,e.group=function(e,t,r){return void 0===r&&(r=F),S(T(e,t).values(),r)},e.clone=function(e){var t={};for(var r in e)v.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)v.call(t,n)&&(r[n]=t[n]);for(var n in e)v.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r])},e.maybeBind=function(e,t){return t?t.bind(e):void 0},e.createMultiMap=E,e.createUnderscoreEscapedMultiMap=function(){return E()},e.isArray=N,e.toArray=function(e){return N(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(t,r){return void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value "+t+" did not pass the test '"+e.Debug.getFunctionName(r)+"'.")},e.noop=A,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=F,e.toLowerCase=P;var w=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function I(e){return w.test(e)?e.replace(w,P):e}function O(e,t){return e===t}function M(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function L(e,t){return M(e,t)}function R(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function 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;o<arguments.length;o++)a[o]=arguments[o];return function(e){return h(a,(function(e,t){return t(e)}),e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),e.equateValues=O,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return O(e,t)},e.compareValues=L,e.compareTextSpans=function(e,t){return L(null==e?void 0:e.start,null==t?void 0:t.start)||L(null==e?void 0:e.length,null==t?void 0:t.length)},e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=R,e.compareStringsCaseSensitive=B,e.getStringComparer=function(e){return e?R:B};var j,J,K=function(){var e,t,r=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return i;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return a;return o}();return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function z(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+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;d<c;d++)i[d]=a;for(d=c;d<=u;d++){var _=s===t.charCodeAt(d-1)?n[d-1]:Math.min(n[d]+1,i[d-1]+1,n[d-1]+2);i[d]=_,l=Math.min(l,_)}for(d=u+1;d<=t.length;d++)i[d]=a;if(l>r)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<e.length-1;r++)e[r]=e[r+1];e.pop()}function q(e,t){e[t]=e[e.length-1],e.pop()}function W(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return q(e,r),!0;return!1}(e,(function(e){return e===t}))}function H(e,t){return 0===e.lastIndexOf(t,0)}function G(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&H(t,r)&&U(t,n)}e.getUILocale=function(){return J},e.setUILocale=function(e){J!==e&&(J=e,j=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(j||(j=K(J)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return L(e?1:0,t?1:0)},e.getSpellingSuggestion=function(t,r,n){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=!1,c=t.toLowerCase(),u=0,l=r;u<l.length;u++){var d=l[u],_=n(d);if(void 0!==_&&Math.abs(_.length-c.length)<=a){var p=_.toLowerCase();if(p===c){if(_===t)continue;return d}if(s)continue;if(_.length<3)continue;var f=z(c,p,o-1);if(void 0===f)continue;f<3?(s=!0,i=d):(e.Debug.assert(f<o),o=f,i=d)}}return i},e.endsWith=U,e.removeSuffix=function(e,t){return U(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return U(e,t)?e.slice(0,e.length-t.length):void 0},e.stringContains=function(e,t){return-1!==e.indexOf(t)},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return V(e,r),!0;return!1},e.orderedRemoveItemAt=V,e.unorderedRemoveItemAt=q,e.unorderedRemoveItem=W,e.createGetCanonicalFileName=function(e){return e?F:I},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(t,r){return e.Debug.assert(G(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)},e.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);G(c,r)&&c.prefix.length>i&&(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=F),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<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.apply(void 0,t))return!0}return!1}},e.not=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||A;for(var o=0,s=0,c=e.length,u=t.length,l=!1;o<c&&s<u;){var d=e[o],_=t[s],p=r(d,_);-1===p?(n(d),o++,l=!0):1===p?(i(_),s++,l=!0):(a(_,d),o++,s++)}for(;o<c;)n(e[o++]),l=!0;for(;s<u;)i(t[s++]),l=!0;return l},e.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=function(e){var t=[];return function e(t,r,n,i){for(var a=0,o=t[i];a<o.length;a++){var s=o[a],c=void 0;n?(c=n.slice()).push(s):c=[s],i===t.length-1?r.push(c):e(t,r,c,i+1)}}(e,t,void 0,0),t},e.padLeft=function(e,t){for(;e.length<t;)e=" "+e;return e},e.padRight=function(e,t){for(;e.length<t;)e+=" ";return e}}(u||(u={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function u(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=u,(i=u=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var l={};function 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. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n<i.length;n++){g(i[n],t,r||y)}}function h(e,t,r){return y(e,t,r||h),e}function v(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function b(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,(function(t,r){return e.compareValues(t[0],r[0])}))}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var u=c[s],l=u[0],d=u[1];if(l>t)break;0!==l&&l&t&&(a=a+(a?"|":"")+d,o&=~l)}if(0===o)return a}else for(var _=0,p=i;_<p.length;_++){var f=p[_];l=f[0],d=f[1];if(l===t)return d}return t.toString()}function x(t){return b(t,e.SyntaxKind,!1)}function D(t){return b(t,e.NodeFlags,!0)}function S(t){return b(t,e.ModifierFlags,!0)}function T(t){return b(t,e.TransformFlags,!0)}function E(t){return b(t,e.EmitFlags,!0)}function C(t){return b(t,e.SymbolFlags,!0)}function k(t){return b(t,e.TypeFlags,!0)}function N(t){return b(t,e.ObjectFlags,!0)}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(l);i<o.length;i++){var s=o[i],c=l[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,l[s]=void 0)}},r.shouldAssert=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&&p("Expected "+t+" >= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=h,r.assertEachDefined=h,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 '"+v(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 '"+v(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 '"+v(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 '"+v(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=v,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+C(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return x(e.kind)}))+" }"},r.formatEnum=b,r.formatSyntaxKind=x,r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=T,r.formatEmitFlags=E,r.formatSymbolFlags=C,r.formatTypeFlags=k,r.formatObjectFlags=N;var A,F=!1;function P(e){return function(){if(w(),!A)throw new Error("Debugging helpers could not be loaded.");return A}().formatControlFlowGraph(e)}function w(){if(!F){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return C(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,r=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t<r.length;t++){var n=r[t];n.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(n.prototype,{__debugKind:{get:function(){return x(this.kind)}},__debugNodeFlags:{get:function(){return D(this.flags)}},__debugModifierFlags:{get:function(){return S(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return T(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return E(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var r=e.getParseTreeNode(this),n=r&&e.getSourceFileOfNode(r);return n?e.getSourceTextOfNodeFromSourceFile(n,r,t):""}}})}try{if(e.sys&&e.sys.require){var i=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),a=e.sys.require(i,"./compiler-debug");a.error||(a.module.init(e),A=a.module)}}catch(e){}F=!0}}function I(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'"+t+"' ",o+=i?"has been deprecated since v"+i:"is deprecated",o+=r?" and can no longer be used.":n?" and will no longer be usable after v"+n+".":".",o+=a?" "+e.formatStringFromArgs(a,[t],0):""}function O(t,r){var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,l="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,d=r.error||s&&a.compareTo(s)<=0,_=!c||a.compareTo(c)>=0;return d?function(e,t,r,n){var i=I(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(I(e,!1,t,r,n)),i=!0)}}(t,s,l,r.message):e.noop}r.printControlFlowGraph=function(e){return console.log(P(e))},r.formatControlFlowGraph=P,r.attachFlowNodeDebugInfo=function(t){F&&("__debugFlowFlags"in t||Object.defineProperties(t,{__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return P(this)}}}))},r.enableDebugInfo=w,r.deprecate=function(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(O(v(e),t),e)}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(t){var r,n,i,a="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function c(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),l(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}function u(t){o&&(n.set(t,e.timestamp()),r.set(t,(r.get(t)||0)+1),a(t))}function l(t,r,a){if(o){var c=a&&n.get(a)||e.timestamp(),u=r&&n.get(r)||s;i.set(t,(i.get(t)||0)+(c-u))}}t.createTimerIf=function(e,r,n,i){return e?c(r,n,i):t.nullTimer},t.createTimer=c,t.nullTimer={enter:e.noop,exit:e.noop},t.mark=u,t.measure=l,t.getCount=function(e){return r&&r.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach((function(t,r){e(r,t)}))},t.enable=function(){r=new e.Map,n=new e.Map,i=new e.Map,o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(e.performance||(e.performance={}))}(u||(u={})),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=V.env.TS_ETW_MODULE_PATH;r=i()}catch(e){r=void 0}e.perfLogger=r&&r.logEvent?r:n}(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<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),u=i.test(s);if(c||u){if(c!==u)return c?-1:1;if(l=e.compareValues(+o,+s))return l}else{var l;if(l=e.compareStringsCaseSensitive(o,s))return l}}}return e.compareValues(t.length,r.length)}(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(t+="-"+this.prerelease.join(".")),e.some(this.build)&&(t+="+"+this.build.join(".")),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],u=void 0===c?"0":c,l=i[4],d=void 0===l?"":l,_=i[5],p=void 0===_?"":_;if((!d||r.test(d))&&(!p||n.test(p)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(u,10),prerelease:d,build:p}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(p(t),"Invalid range spec."):e.emptyArray}return t.tryParse=function(e){var r=p(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++){if(v(e,n[r]))return!0}return!1}(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\s*\|\|\s*/g,u=/\s+/g,l=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,_=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(e){for(var t=[],r=0,n=e.trim().split(c);r<n.length;r++){var i=n[r];if(i){var a=[],o=d.exec(i);if(o){if(!g(o[1],o[2],a))return}else for(var s=0,l=i.split(u);s<l.length;s++){var p=l[s],f=_.exec(p);if(!f||!m(f[1],f[2],a))return}t.push(a)}}return t}function f(e){var t=l.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],u=t[5];return{version:new a(y(r)?0:parseInt(r,10),y(r)||y(i)?0:parseInt(i,10),y(r)||y(i)||y(s)?0:parseInt(s,10),c,u),major:r,minor:i,patch:s}}}function g(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(y(n.major)||r.push(h(">=",n.version)),y(i.major)||r.push(y(i.minor)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",i.version)),!0)}function 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(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(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.IsKeyword=136]="IsKeyword",e[e.KeyOfKeyword=137]="KeyOfKeyword",e[e.ModuleKeyword=138]="ModuleKeyword",e[e.NamespaceKeyword=139]="NamespaceKeyword",e[e.NeverKeyword=140]="NeverKeyword",e[e.ReadonlyKeyword=141]="ReadonlyKeyword",e[e.RequireKeyword=142]="RequireKeyword",e[e.NumberKeyword=143]="NumberKeyword",e[e.ObjectKeyword=144]="ObjectKeyword",e[e.SetKeyword=145]="SetKeyword",e[e.StringKeyword=146]="StringKeyword",e[e.SymbolKeyword=147]="SymbolKeyword",e[e.TypeKeyword=148]="TypeKeyword",e[e.UndefinedKeyword=149]="UndefinedKeyword",e[e.UniqueKeyword=150]="UniqueKeyword",e[e.UnknownKeyword=151]="UnknownKeyword",e[e.FromKeyword=152]="FromKeyword",e[e.GlobalKeyword=153]="GlobalKeyword",e[e.BigIntKeyword=154]="BigIntKeyword",e[e.OfKeyword=155]="OfKeyword",e[e.QualifiedName=156]="QualifiedName",e[e.ComputedPropertyName=157]="ComputedPropertyName",e[e.TypeParameter=158]="TypeParameter",e[e.Parameter=159]="Parameter",e[e.Decorator=160]="Decorator",e[e.PropertySignature=161]="PropertySignature",e[e.PropertyDeclaration=162]="PropertyDeclaration",e[e.MethodSignature=163]="MethodSignature",e[e.MethodDeclaration=164]="MethodDeclaration",e[e.Constructor=165]="Constructor",e[e.GetAccessor=166]="GetAccessor",e[e.SetAccessor=167]="SetAccessor",e[e.CallSignature=168]="CallSignature",e[e.ConstructSignature=169]="ConstructSignature",e[e.IndexSignature=170]="IndexSignature",e[e.TypePredicate=171]="TypePredicate",e[e.TypeReference=172]="TypeReference",e[e.FunctionType=173]="FunctionType",e[e.ConstructorType=174]="ConstructorType",e[e.TypeQuery=175]="TypeQuery",e[e.TypeLiteral=176]="TypeLiteral",e[e.ArrayType=177]="ArrayType",e[e.TupleType=178]="TupleType",e[e.OptionalType=179]="OptionalType",e[e.RestType=180]="RestType",e[e.UnionType=181]="UnionType",e[e.IntersectionType=182]="IntersectionType",e[e.ConditionalType=183]="ConditionalType",e[e.InferType=184]="InferType",e[e.ParenthesizedType=185]="ParenthesizedType",e[e.ThisType=186]="ThisType",e[e.TypeOperator=187]="TypeOperator",e[e.IndexedAccessType=188]="IndexedAccessType",e[e.MappedType=189]="MappedType",e[e.LiteralType=190]="LiteralType",e[e.NamedTupleMember=191]="NamedTupleMember",e[e.ImportType=192]="ImportType",e[e.ObjectBindingPattern=193]="ObjectBindingPattern",e[e.ArrayBindingPattern=194]="ArrayBindingPattern",e[e.BindingElement=195]="BindingElement",e[e.ArrayLiteralExpression=196]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=197]="ObjectLiteralExpression",e[e.PropertyAccessExpression=198]="PropertyAccessExpression",e[e.ElementAccessExpression=199]="ElementAccessExpression",e[e.CallExpression=200]="CallExpression",e[e.NewExpression=201]="NewExpression",e[e.TaggedTemplateExpression=202]="TaggedTemplateExpression",e[e.TypeAssertionExpression=203]="TypeAssertionExpression",e[e.ParenthesizedExpression=204]="ParenthesizedExpression",e[e.FunctionExpression=205]="FunctionExpression",e[e.ArrowFunction=206]="ArrowFunction",e[e.DeleteExpression=207]="DeleteExpression",e[e.TypeOfExpression=208]="TypeOfExpression",e[e.VoidExpression=209]="VoidExpression",e[e.AwaitExpression=210]="AwaitExpression",e[e.PrefixUnaryExpression=211]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=212]="PostfixUnaryExpression",e[e.BinaryExpression=213]="BinaryExpression",e[e.ConditionalExpression=214]="ConditionalExpression",e[e.TemplateExpression=215]="TemplateExpression",e[e.YieldExpression=216]="YieldExpression",e[e.SpreadElement=217]="SpreadElement",e[e.ClassExpression=218]="ClassExpression",e[e.OmittedExpression=219]="OmittedExpression",e[e.ExpressionWithTypeArguments=220]="ExpressionWithTypeArguments",e[e.AsExpression=221]="AsExpression",e[e.NonNullExpression=222]="NonNullExpression",e[e.MetaProperty=223]="MetaProperty",e[e.SyntheticExpression=224]="SyntheticExpression",e[e.TemplateSpan=225]="TemplateSpan",e[e.SemicolonClassElement=226]="SemicolonClassElement",e[e.Block=227]="Block",e[e.EmptyStatement=228]="EmptyStatement",e[e.VariableStatement=229]="VariableStatement",e[e.ExpressionStatement=230]="ExpressionStatement",e[e.IfStatement=231]="IfStatement",e[e.DoStatement=232]="DoStatement",e[e.WhileStatement=233]="WhileStatement",e[e.ForStatement=234]="ForStatement",e[e.ForInStatement=235]="ForInStatement",e[e.ForOfStatement=236]="ForOfStatement",e[e.ContinueStatement=237]="ContinueStatement",e[e.BreakStatement=238]="BreakStatement",e[e.ReturnStatement=239]="ReturnStatement",e[e.WithStatement=240]="WithStatement",e[e.SwitchStatement=241]="SwitchStatement",e[e.LabeledStatement=242]="LabeledStatement",e[e.ThrowStatement=243]="ThrowStatement",e[e.TryStatement=244]="TryStatement",e[e.DebuggerStatement=245]="DebuggerStatement",e[e.VariableDeclaration=246]="VariableDeclaration",e[e.VariableDeclarationList=247]="VariableDeclarationList",e[e.FunctionDeclaration=248]="FunctionDeclaration",e[e.ClassDeclaration=249]="ClassDeclaration",e[e.InterfaceDeclaration=250]="InterfaceDeclaration",e[e.TypeAliasDeclaration=251]="TypeAliasDeclaration",e[e.EnumDeclaration=252]="EnumDeclaration",e[e.ModuleDeclaration=253]="ModuleDeclaration",e[e.ModuleBlock=254]="ModuleBlock",e[e.CaseBlock=255]="CaseBlock",e[e.NamespaceExportDeclaration=256]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=257]="ImportEqualsDeclaration",e[e.ImportDeclaration=258]="ImportDeclaration",e[e.ImportClause=259]="ImportClause",e[e.NamespaceImport=260]="NamespaceImport",e[e.NamedImports=261]="NamedImports",e[e.ImportSpecifier=262]="ImportSpecifier",e[e.ExportAssignment=263]="ExportAssignment",e[e.ExportDeclaration=264]="ExportDeclaration",e[e.NamedExports=265]="NamedExports",e[e.NamespaceExport=266]="NamespaceExport",e[e.ExportSpecifier=267]="ExportSpecifier",e[e.MissingDeclaration=268]="MissingDeclaration",e[e.ExternalModuleReference=269]="ExternalModuleReference",e[e.JsxElement=270]="JsxElement",e[e.JsxSelfClosingElement=271]="JsxSelfClosingElement",e[e.JsxOpeningElement=272]="JsxOpeningElement",e[e.JsxClosingElement=273]="JsxClosingElement",e[e.JsxFragment=274]="JsxFragment",e[e.JsxOpeningFragment=275]="JsxOpeningFragment",e[e.JsxClosingFragment=276]="JsxClosingFragment",e[e.JsxAttribute=277]="JsxAttribute",e[e.JsxAttributes=278]="JsxAttributes",e[e.JsxSpreadAttribute=279]="JsxSpreadAttribute",e[e.JsxExpression=280]="JsxExpression",e[e.CaseClause=281]="CaseClause",e[e.DefaultClause=282]="DefaultClause",e[e.HeritageClause=283]="HeritageClause",e[e.CatchClause=284]="CatchClause",e[e.PropertyAssignment=285]="PropertyAssignment",e[e.ShorthandPropertyAssignment=286]="ShorthandPropertyAssignment",e[e.SpreadAssignment=287]="SpreadAssignment",e[e.EnumMember=288]="EnumMember",e[e.UnparsedPrologue=289]="UnparsedPrologue",e[e.UnparsedPrepend=290]="UnparsedPrepend",e[e.UnparsedText=291]="UnparsedText",e[e.UnparsedInternalText=292]="UnparsedInternalText",e[e.UnparsedSyntheticReference=293]="UnparsedSyntheticReference",e[e.SourceFile=294]="SourceFile",e[e.Bundle=295]="Bundle",e[e.UnparsedSource=296]="UnparsedSource",e[e.InputFiles=297]="InputFiles",e[e.JSDocTypeExpression=298]="JSDocTypeExpression",e[e.JSDocAllType=299]="JSDocAllType",e[e.JSDocUnknownType=300]="JSDocUnknownType",e[e.JSDocNullableType=301]="JSDocNullableType",e[e.JSDocNonNullableType=302]="JSDocNonNullableType",e[e.JSDocOptionalType=303]="JSDocOptionalType",e[e.JSDocFunctionType=304]="JSDocFunctionType",e[e.JSDocVariadicType=305]="JSDocVariadicType",e[e.JSDocNamepathType=306]="JSDocNamepathType",e[e.JSDocComment=307]="JSDocComment",e[e.JSDocTypeLiteral=308]="JSDocTypeLiteral",e[e.JSDocSignature=309]="JSDocSignature",e[e.JSDocTag=310]="JSDocTag",e[e.JSDocAugmentsTag=311]="JSDocAugmentsTag",e[e.JSDocImplementsTag=312]="JSDocImplementsTag",e[e.JSDocAuthorTag=313]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=314]="JSDocDeprecatedTag",e[e.JSDocClassTag=315]="JSDocClassTag",e[e.JSDocPublicTag=316]="JSDocPublicTag",e[e.JSDocPrivateTag=317]="JSDocPrivateTag",e[e.JSDocProtectedTag=318]="JSDocProtectedTag",e[e.JSDocReadonlyTag=319]="JSDocReadonlyTag",e[e.JSDocCallbackTag=320]="JSDocCallbackTag",e[e.JSDocEnumTag=321]="JSDocEnumTag",e[e.JSDocParameterTag=322]="JSDocParameterTag",e[e.JSDocReturnTag=323]="JSDocReturnTag",e[e.JSDocThisTag=324]="JSDocThisTag",e[e.JSDocTypeTag=325]="JSDocTypeTag",e[e.JSDocTemplateTag=326]="JSDocTemplateTag",e[e.JSDocTypedefTag=327]="JSDocTypedefTag",e[e.JSDocPropertyTag=328]="JSDocPropertyTag",e[e.SyntaxList=329]="SyntaxList",e[e.NotEmittedStatement=330]="NotEmittedStatement",e[e.PartiallyEmittedExpression=331]="PartiallyEmittedExpression",e[e.CommaListExpression=332]="CommaListExpression",e[e.MergeDeclarationMarker=333]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=334]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=335]="SyntheticReferenceExpression",e[e.Count=336]="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=155]="LastKeyword",e[e.FirstFutureReservedWord=116]="FirstFutureReservedWord",e[e.LastFutureReservedWord=124]="LastFutureReservedWord",e[e.FirstTypeNode=171]="FirstTypeNode",e[e.LastTypeNode=192]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=77]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=155]="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=229]="FirstStatement",e[e.LastStatement=245]="LastStatement",e[e.FirstNode=156]="FirstNode",e[e.FirstJSDocNode=298]="FirstJSDocNode",e[e.LastJSDocNode=328]="LastJSDocNode",e[e.FirstJSDocTagNode=310]="FirstJSDocTagNode",e[e.LastJSDocTagNode=328]="LastJSDocTagNode",e[e.FirstContextualKeyword=125]="FirstContextualKeyword",e[e.LastContextualKeyword=155]="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.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.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=132]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=67238908]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=4194304]="InstantiablePrimitive",e[e.Instantiable=63176704]="Instantiable",e[e.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Substructure=66584576]="Substructure",e[e.Narrowable=133970943]="Narrowable",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=71041023]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ArrayLiteral=65536]="ArrayLiteral",e[e.ObjectRestType=131072]="ObjectRestType",e[e.PrimitiveUnion=262144]="PrimitiveUnion",e[e.ContainsWideningType=524288]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=2097152]="NonInferrableType",e[e.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",e[e.IsGenericObjectType=8388608]="IsGenericObjectType",e[e.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",e[e.IsGenericIndexType=33554432]="IsGenericIndexType",e[e.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",e[e.ContainsIntersections=268435456]="ContainsIntersections",e[e.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=536870912]="IsNeverIntersection",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=1572864]="RequiresWidening",e[e.PropagatingFlags=3670016]="PropagatingFlags"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.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.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.UseFsEvents=3]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(e){e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(e){e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ESNext=99]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2020=8]="ContainsES2020",e[e.ContainsES2019=16]="ContainsES2019",e[e.ContainsES2018=32]="ContainsES2018",e[e.ContainsES2017=64]="ContainsES2017",e[e.ContainsES2016=128]="ContainsES2016",e[e.ContainsES2015=256]="ContainsES2015",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=4096]="ContainsLexicalThis",e[e.ContainsRestOrSpread=8192]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=131072]="ContainsBindingPattern",e[e.ContainsYield=262144]="ContainsYield",e[e.ContainsAwait=524288]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=2097152]="ContainsDynamicImport",e[e.ContainsClassFields=4194304]="ContainsClassFields",e[e.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}}}(u||(u={})),function(e){function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var r,i;function a(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=t,e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(r=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);var o,s={Low:32,Medium:64,High:256},c=a(s);function u(t){if(t.getEnvironmentVariable){var r=function(e,t){var r=o(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",i);c=u("TSC_WATCH_POLLINGCHUNKSIZE",s)||c,e.unchangedPollThresholds=u("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",s)||e.unchangedPollThresholds}function o(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=function(e,r){return t.getEnvironmentVariable(e+"_"+r.toUpperCase())}(e,n);i&&((r||(r={}))[n]=Number(i))}}function u(e,t){var i=o(e);return(r||i)&&a(i?n(n({},t),i):t)}}function l(t){var r=[],n=[],a=u(i.Low),o=u(i.Medium),s=u(i.High);return function(t,n,i){var a={fileName:t,callback:n,unchangedPolls:0,mtime:v(t)};return r.push(a),g(a,i),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(r,a)}}};function u(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function l(t){t.pollIndex=_(t,t.pollingInterval,t.pollIndex,c[t.pollingInterval]),t.length?h(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function d(e){_(n,i.Low,0,n.length),l(e),!e.pollScheduled&&n.length&&h(i.Low)}function _(t,r,a,o){for(var s=t.length,c=a,u=0;u<o&&s>0;_(),s--){var l=t[a];if(l)if(l.isClosed)t[a]=void 0;else{u++;var d=p(l,v(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<a&&(t[c]=l,t[a]=void 0),c++)}}return a;function _(){++a===t.length&&(c<a&&(t.length=c),a=0,c=0)}}function f(e){switch(e){case i.Low:return a;case i.Medium:return o;case i.High:return s}}function g(e,t){f(t).push(e),y(t)}function m(e){n.push(e),y(i.Low)}function y(e){f(e).pollScheduled||h(e)}function h(e){f(e).pollScheduled=t.setTimeout(e===i.Low?d:l,e,f(e))}function v(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}function d(t,n){var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(n);return function(n,c,u,l){var d=s(n);a.add(d,c);var _=e.getDirectoryPath(d)||".",p=o.get(_)||function(n,c,u){var l=t(n,1,(function(t,i){if(e.isString(i)){var o=e.getNormalizedAbsolutePath(i,n),c=o&&a.get(s(o));if(c)for(var u=0,l=c;u<l.length;u++){(0,l[u])(o,r.Changed)}}}),!1,i.Medium,u);return l.referenceCount=0,o.set(c,l),l}(e.getDirectoryPath(n)||".",_,l);return p.referenceCount++,{close:function(){1===p.referenceCount?(p.close(),o.delete(_)):p.referenceCount--,a.remove(d,c)}}}}function _(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return function(r,o,s,c){var u=a(r),l=n.get(u);return l?l.refCount++:n.set(u,{watcher:t(r,(function(t,r){return e.forEach(i.get(u),(function(e){return e(t,r)}))}),s,c),refCount:1}),i.add(u,o),{close:function(){var t=e.Debug.checkDefined(n.get(u));i.remove(u,o),t.refCount--,t.refCount||(n.delete(u),e.closeFileWatcherOf(t))}}}}function p(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,f(r,n)),!0)}function f(e,t){return 0===e?r.Created:0===t?r.Deleted:r.Changed}function g(t){var r,n=new e.Map,i=e.createMultiMap(),a=new e.Map,o=e.getStringComparer(!t.useCaseSensitiveFileNames),s=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames);return function(e,r,n,i){return n?c(e,i,r):t.watchDirectory(e,r,n,i)};function c(o,c,p){var f=s(o),g=n.get(f);g?g.refCount++:(g={watcher:t.watchDirectory(o,(function(i){_(i)||((null==c?void 0:c.synchronousWatchDirectory)?(u(f,i),d(o,f,c)):function(i,o,c,d){var _=n.get(o);if(_&&t.directoryExists(i))return void function(e,n,i,o){var s=a.get(n);s?s.fileNames.push(i):a.set(n,{dirName:e,options:o,fileNames:[i]});r&&(t.clearTimeout(r),r=void 0);r=t.setTimeout(l,1e3)}(i,o,c,d);u(o,c),function t(r){if(!r)return;var i=r.childWatches;r.childWatches=e.emptyArray;for(var a=0,o=i;a<o.length;a++){var c=o[a];c.close(),t(n.get(s(c.dirName)))}}(_)}(o,f,i,c))}),!1,c),refCount:1,childWatches:e.emptyArray},n.set(f,g),d(o,f,c));var m=p&&{dirName:o,callback:p};return m&&i.add(f,m),{dirName:o,close:function(){var t=e.Debug.checkDefined(n.get(f));m&&i.remove(f,m),t.refCount--,t.refCount||(n.delete(f),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function u(t,r,n){var a,o;e.isString(r)?a=r:o=r,i.forEach((function(r,i){var s;if((!o||!0!==o.get(i))&&(i===t||e.startsWith(t,i)&&t[i.length]===e.directorySeparator))if(o)if(n){var c=o.get(i);c?(s=c).push.apply(s,n):o.set(i,n.slice())}else o.set(i,!0);else r.forEach((function(e){return(0,e.callback)(a)}))}))}function l(){r=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: "+a.size);for(var t=e.timestamp(),n=new e.Map;!r&&a.size;){var o=a.entries().next(),s=o.value,c=s[0],l=s[1],_=l.dirName,p=l.options,f=l.fileNames,g=o.done;e.Debug.assert(!g),a.delete(c);var m=d(_,c,p);u(c,n,m?void 0:f)}e.sysLog("sysLog:: invokingWatchers:: "+(e.timestamp()-t)+"ms:: "+a.size),i.forEach((function(t,r){var i=n.get(r);i&&t.forEach((function(t){var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var y=e.timestamp()-t;e.sysLog("sysLog:: Elapsed "+y+"ms:: onTimerToUpdateChildWatches:: "+a.size+" "+r)}function d(r,i,a){var s,u=n.get(i);if(!u)return!1;var l=e.enumerateInsertsAndDeletes(t.directoryExists(r)?e.mapDefined(t.getAccessibleSortedChildDirectories(r),(function(n){var i=e.getNormalizedAbsolutePath(n,r);return _(i)||0!==o(i,e.normalizePath(t.realpath(i)))?void 0:i})):e.emptyArray,u.childWatches,(function(e,t){return o(e,t.dirName)}),(function(e){d(c(e,a))}),e.closeFileWatcher,d);return u.childWatches=s||e.emptyArray,l;function d(e){(s||(s=[])).push(e)}}function _(r){return e.some(e.ignoredPaths,(function(n){return function(r,n){return!!e.stringContains(r,n)||!t.useCaseSensitiveFileNames&&e.stringContains(s(r),n)}(r,n)}))}}function m(e){return function(t,n){return e(n===r.Changed?"change":"rename","")}}function y(t,r){return function(n,i){"rename"===n&&r(i?e.normalizePath(e.combinePaths(t,i)):t)}}function h(t){var n,a,o,s=t.pollingWatchFile,c=t.getModifiedTime,u=t.setTimeout,_=t.clearTimeout,p=t.fsWatch,f=t.fileExists,m=t.useCaseSensitiveFileNames,h=t.fsSupportsRecursiveFsWatch,v=t.directoryExists,b=t.getAccessibleSortedChildDirectories,x=t.realpath,D=t.tscWatchFile,S=t.useNonPollingWatchers,T=t.tscWatchDirectory;return{watchFile:function(t,n,o,c){c=function(t,r){if(t&&void 0!==t.watchFile)return t;switch(D){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return C(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return C(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?C(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:e.WatchFileKind.FixedPollingInterval}}}(c,S);var u=e.Debug.checkDefined(c.watchFile);switch(u){case e.WatchFileKind.FixedPollingInterval:return s(t,n,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return s(t,n,o,void 0);case e.WatchFileKind.DynamicPriorityPolling:return E()(t,n,o,void 0);case e.WatchFileKind.UseFsEvents:return p(t,0,function(e,t,n){return function(i){t(e,"rename"===i?n(e)?r.Created:r.Deleted:r.Changed)}}(t,n,f),!1,o,e.getFallbackOptions(c));case e.WatchFileKind.UseFsEventsOnParentDirectory:return a||(a=d(p,m)),a(t,n,o,e.getFallbackOptions(c));default:e.Debug.assertNever(u)}},watchDirectory:function(t,r,n,a){if(h)return p(t,1,y(t,r),n,i.Medium,e.getFallbackOptions(a));o||(o=g({useCaseSensitiveFileNames:m,directoryExists:v,getAccessibleSortedChildDirectories:b,watchDirectory:k,realpath:x,setTimeout:u,clearTimeout:_}));return o(t,r,n,a)}};function E(){return n||(n=l({getModifiedTime:c,setTimeout:u}))}function C(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function k(t,r,n,a){e.Debug.assert(!n),a=function(t){if(t&&void 0!==t.watchDirectory)return t;switch(T){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}}(a);var o=e.Debug.checkDefined(a.watchDirectory);switch(o){case e.WatchDirectoryKind.FixedPollingInterval:return s(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return E()(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.UseFsEvents:return p(t,1,y(t,r),n,i.Medium,e.getFallbackOptions(a));default:e.Debug.assertNever(o)}}}function v(t){var r=t.writeFile;t.writeFile=function(n,i,a){return e.writeFileEnsuringDirectories(n,i,!!a,(function(e,n,i){return r.call(t,e,n,i)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)}))}}function b(){if(void 0!==V){var e=V.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.unchangedPollThresholds=a(s),e.setCustomPollingValues=u,e.createDynamicPriorityPollingWatchFile=l,e.createSingleFileWatcherPerName=_,e.onWatchedFileStat=p,e.getFileWatcherEventKind=f,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop,e.setSysLog=function(t){e.sysLog=t},e.createDirectoryWatcherSupportingRecursive=g,function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(e.FileSystemEntryKind||(e.FileSystemEntryKind={})),e.createFileWatcherCallback=m,e.createSystemWatchFunctions=h,e.patchWriteFileEnsuringDirectory=v,e.getNodeMajorVersion=b,e.sys=(o&&v(o),o),e.sys&&e.sys.getEnvironmentVariable&&(u(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(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=h(t));return r===t.length?t:(t=E(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(d(t=h(t))===t.length)return"";var i=(t=E(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<i.length;n++){var a=f(e,i[n],r);if(a)return a}return""}(E(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=p(t),a=i.lastIndexOf(".");return a>=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=b(n,t),d(t))}function y(t){return 0===t.length?"":(t[0]&&C(t[0]))+t.slice(1).join(e.directorySeparator)}function h(r){return r.replace(t,e.directorySeparator)}function v(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=h(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=h(a),e=e&&0===d(a)?C(e)+a:a)}return e}function x(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return T(e.some(n)?b.apply(void 0,r([t],n)):h(t))}function D(e,t){return v(m(e,t))}function S(e,t){return y(D(e,t))}function T(e){var t=y(v(m(e=h(e))));return t&&c(e)?C(t):t}function E(e){return c(e)?e.substr(0,e.length-1):e}function C(t){return c(t)?t:t+e.directorySeparator}function k(e){return a(e)||o(e)?e:"./"+e}e.isAnyDirectorySeparator=n,e.isUrl=function(e){return l(e)<0},e.isRootedDiskPath=i,e.isDiskPathRoot=function(e){var t=l(e);return t>0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++){if(s(e,n[r]))return!0}return!1},e.hasTrailingDirectorySeparator=c,e.getRootLength=d,e.getDirectoryPath=_,e.getBaseFileName=p,e.getAnyExtensionFromPath=g,e.getPathComponents=m,e.getPathFromPathComponents=y,e.normalizeSlashes=h,e.reducePathComponents=v,e.combinePaths=b,e.resolvePath=x,e.getNormalizedPathComponents=D,e.getNormalizedAbsolutePath=S,e.normalizePath=T,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return function(t){return 0===t.length?"":t.slice(1).join(e.directorySeparator)}(D(t,r))},e.toPath=function(e,t,r){return r(i(e)?T(e):S(e,t))},e.normalizePathAndParts=function(t){var r=v(m(t=h(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:c(t)?C(a):a,parts:i}}return{path:n,parts:i}},e.removeTrailingDirectorySeparator=E,e.ensureTrailingDirectorySeparator=C,e.ensurePathIsNonModuleName=k,e.changeAnyExtension=function(t,r,n,i){var a=void 0!==n&&void 0!==i?g(t,n,i):g(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var N=/(^|\/)\.{0,2}($|\/)/;function A(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,d(t)),a=r.substring(0,d(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!N.test(s)&&!N.test(c))return n(s,c);for(var u=v(m(t)),l=v(m(r)),_=Math.min(u.length,l.length),p=1;p<_;p++){var f=n(u[p],l[p]);if(0!==f)return f}return e.compareValues(u.length,l.length)}function F(t,n,i,a){var o,s=v(m(t)),c=v(m(n));for(o=0;o<s.length&&o<c.length;o++){var u=a(s[o]),l=a(c[o]);if(!(0===o?e.equateStringsCaseInsensitive:i)(u,l))break}if(0===o)return c;for(var d=c.slice(o),_=[];o<s.length;o++)_.push("..");return r([""],_,d)}function P(t,r,n){e.Debug.assert(d(t)>0==d(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(F(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function w(t,r,n,a,o){var s=F(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 A(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return A(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),A(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=v(m(t)),o=v(m(r));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++){if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1}return!0},e.startsWithDirectory=function(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=F,e.getRelativePathFromDirectory=P,e.convertToRelativePath=function(e,t,r){return i(e)?w(t,e,t,r,!1):e},e.getRelativePathFromFile=function(e,t,r){return k(P(_(e),t,r))},e.getRelativePathToDirectoryOrUrl=w,e.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;var n=_(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=function(t){return e.endsWith(t,"/node_modules")}}(u||(u={})),function(e){function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_either_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_either_string_or_number_1023","An index signature parameter type must be either 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),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."),All_files_must_be_modules_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"All_files_must_be_modules_when_the_isolatedModules_flag_is_provided_1208","All files must be modules when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation:t(1258,e.DiagnosticCategory.Error,"Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation_1258","Definite assignment assertions can only be used along with a type annotation."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),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."),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_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'esnext' or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness"),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:t(1370,e.DiagnosticCategory.Error,"Only_ECMAScript_imports_may_use_import_type_1370","Only ECMAScript imports may use 'import type'."),This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is__1371","This import is never used as a value and must use 'import type' because the 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),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 `&gt;`?"),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."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha` and then add `jest` or `mocha` to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),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'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension"),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),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?"),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."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option `--tsBuildInfoFile` is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),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."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),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."),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),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),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"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:t(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_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"),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:154,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=152,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.is=136,t.keyof=137,t.let=118,t.module=138,t.namespace=139,t.never=140,t.new=102,t.null=103,t.number=143,t.object=144,t.package=119,t.private=120,t.protected=121,t.public=122,t.readonly=141,t.require=142,t.global=153,t.return=104,t.set=145,t.static=123,t.string=146,t.super=105,t.switch=106,t.symbol=147,t.this=107,t.throw=108,t.true=109,t.try=110,t.type=148,t.typeof=111,t.undefined=149,t.unique=150,t.unknown=151,t.var=112,t.void=113,t.while=114,t.with=115,t.yield=124,t.async=129,t.await=130,t.of=155,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,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),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<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function m(e,t){return g(e,t>=2?d:1===t?u:s)}e.isUnicodeIdentifierStart=m;var y,h=(y=[],o.forEach((function(e,t){y[e]=t})),y);function v(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function b(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function x(e){return e.lineMap||(e.lineMap=v(e.text))}function D(e,t){var r=S(e,t);return{line:r,character:t-e[r]}}function S(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function T(e){return E(e)||C(e)}function E(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function k(e){return e>=48&&e<=57}function N(e){return k(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return h[e]},e.stringToToken=function(e){return o.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):b(x(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=b,e.getLineStarts=x,e.computeLineAndCharacterOfPosition=D,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 D(x(e),t)},e.isWhiteSpaceLike=T,e.isWhiteSpaceSingleLine=E,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){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!C(t.charCodeAt(r));)r++;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}continue}break;case 60:case 124:case 61:case 62:if(P(t,r)){r=w(t,r);continue}break;case 35:if(0===r&&O(t,r)){r=M(t,r);continue}break;default:if(a>127&&T(a)){r++;continue}}return r}};var F="<<<<<<<".length;function P(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+F<t.length){for(var i=0;i<F;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+F)}}return!1}function w(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,F);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!C(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&P(t,r))break;r++}return r}var I=/^#!.*/;function O(t,r){return e.Debug.assert(0===r),I.test(t)}function M(e,t){return t+=I.exec(e)[0].length}function L(e,t,r,n,i,a,o){var s,c,u,l,d=!1,_=n,p=o;if(0===r){_=!0;var f=J(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var g=t.charCodeAt(r);switch(g){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;_=!0,d&&(l=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var m=t.charCodeAt(r+1),y=!1;if(47===m||42===m){var h=47===m?2:3,v=r;if(r+=2,47===m)for(;r<t.length;){if(C(t.charCodeAt(r))){y=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(_){if(d&&(p=i(s,c,u,l,a,p),!e&&p))return p;s=v,c=r,u=h,l=y,d=!0}continue}break e;default:if(g>127&&T(g)){d&&C(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);i<e.length;i+=V(n))if(!z(n=U(e,i),t,r))return!1;return!0},e.createScanner=function(t,n,i,o,s,c,u){void 0===i&&(i=0);var l,d,_,g,m,y,h,v,b=o,x=0;ce(b,c,u);var D={getStartPos:function(){return _},getTextPos:function(){return l},getToken:function(){return m},getTokenPos:function(){return g},getTokenText:function(){return b.substring(g,l)},getTokenValue:function(){return y},hasUnicodeEscape:function(){return 0!=(1024&h)},hasExtendedUnicodeEscape:function(){return 0!=(8&h)},hasPrecedingLineBreak:function(){return 0!=(1&h)},hasPrecedingJSDocComment:function(){return 0!=(2&h)},isIdentifier:function(){return 78===m||m>115},isReservedWord:function(){return m>=80&&m<=115},isUnterminated:function(){return 0!=(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(l))return 62===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=71):(l+=2,m=49):61===b.charCodeAt(l+1)?(l+=2,m=70):(l++,m=48);if(61===b.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=62},reScanSlashToken:function(){if(43===m||67===m){for(var r=g+1,n=!1,i=!1;;){if(r>=d){h|=4,S(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(C(a)){h|=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&&z(b.charCodeAt(r),t);)r++;l=r,y=b.substring(g,l),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),l=g,m=H(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return l=g,m=H(!0)},scanJsxIdentifier:function(){if(r(m))for(;l<d;){if(45!==b.charCodeAt(l)){var e=l;if(y+=Z(),l===e)break}else y+="-",l++}return m},scanJsxAttributeValue:oe,reScanJsxAttributeValue:function(){return l=g=_,oe()},reScanJsxToken:function(){return l=g=_,m=ae()},reScanLessThanToken:function(){if(47===m)return l=g+1,m=29;return m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),l=g+1,m=57},scanJsxToken:ae,scanJsDocToken:function(){if(_=g=l,h=0,l>=d)return m=1;var e=U(b,l);switch(l+=V(e),e){case 9:case 11:case 12:case 32:for(;l<d&&E(b.charCodeAt(l));)l++;return m=5;case 64:return m=59;case 13:10===b.charCodeAt(l)&&l++;case 10:return h|=1,m=4;case 42:return m=41;case 123:return m=18;case 125:return m=19;case 91:return m=22;case 93:return m=23;case 60:return m=29;case 62:return m=31;case 61:return m=62;case 44:return m=27;case 46:return m=24;case 96:return m=61;case 92:l--;var r=$();if(r>=0&&K(r,t))return l+=3,h|=8,y=X()+Z(),m=ee();var n=Q();return n>=0&&K(n,t)?(l+=6,h|=1024,y=String.fromCharCode(n)+Z(),m=ee()):(l++,m=0)}if(K(e,t)){for(var i=e;l<d&&z(i=U(b,l),t)||45===b.charCodeAt(l);)l+=V(i);return y=b.substring(g,l),92===i&&(y+=Z()),m=ee()}return m=0},scan:ne,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:ce,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){i=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return se(e,!1)},lookAhead:function(e){return se(e,!0)},scanRange:function(e,t,r){var n=d,i=l,a=_,o=g,s=m,c=y,u=h,p=v;ce(b,e,t);var f=r();return d=n,l=i,_=a,g=o,m=s,y=c,h=u,v=p,f}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"║"+e.slice(D.getStartPos())}}),D;function S(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function F(){for(var t=l,r=!1,n=!1,i="";;){var a=b.charCodeAt(l);if(95!==a){if(!k(a))break;r=!0,n=!1,l++}else h|=512,r?(r=!1,n=!0,i+=b.substring(t,l)):S(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===b.charCodeAt(l-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+b.substring(t,l)}function I(){var t,r,n=l,i=F();46===b.charCodeAt(l)&&(l++,t=F());var a,o=l;if(69===b.charCodeAt(l)||101===b.charCodeAt(l)){l++,h|=16,43!==b.charCodeAt(l)&&45!==b.charCodeAt(l)||l++;var s=l,c=F();c?(r=b.substring(o,s)+c,o=l):S(e.Diagnostics.Digit_expected)}if(512&h?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&h)return L(n,void 0===t&&!!(16&h)),{type:8,value:""+ +a};y=a;var u=re();return L(n),{type:u,value:y}}function L(r,n){if(K(U(b,l),t)){var i=l,a=Z().length;1===a&&"n"===b[i]?S(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(S(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function R(){for(var e=l;A(b.charCodeAt(l));)l++;return+b.substring(e,l)}function B(e,t){var r=J(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return J(e,!0,t)}function J(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(l);if(n&&95===s)h|=512,a?(a=!1,o=!0):S(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(l-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),String.fromCharCode.apply(String,i)}function q(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(l),n="",i=++l;;){if(l>=d){n+=b.substring(i,l),h|=4,S(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(l);if(a===r){n+=b.substring(i,l),l++;break}if(92!==a||t){if(C(a)&&!t){n+=b.substring(i,l),h|=4,S(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=b.substring(i,l),n+=G(),i=l}return n}function H(t){for(var r,n=96===b.charCodeAt(l),i=++l,a="";;){if(l>=d){a+=b.substring(i,l),h|=4,S(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(l);if(96===o){a+=b.substring(i,l),l++,r=n?14:17;break}if(36===o&&l+1<d&&123===b.charCodeAt(l+1)){a+=b.substring(i,l),l+=2,r=n?15:16;break}92!==o?13!==o?l++:(a+=b.substring(i,l),++l<d&&10===b.charCodeAt(l)&&l++,a+="\n",i=l):(a+=b.substring(i,l),a+=G(t),i=l)}return e.Debug.assert(void 0!==r),y=a,r}function G(t){var r=l;if(++l>=d)return S(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(l);switch(l++,n){case 48:return t&&l<d&&k(b.charCodeAt(l))?(l++,h|=2048,b.substring(r,l)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(t)for(var i=l;i<l+4;i++)if(i<d&&!N(b.charCodeAt(i))&&123!==b.charCodeAt(i))return l=i,h|=2048,b.substring(r,l);if(l<d&&123===b.charCodeAt(l)){if(l++,t&&!N(b.charCodeAt(l)))return h|=2048,b.substring(r,l);if(t){var a=l,o=j(1,!1),s=o?parseInt(o,16):-1;if(!(s<=1114111&&125===b.charCodeAt(l)))return h|=2048,b.substring(r,l);l=a}return h|=8,X()}return h|=1024,Y(4);case 120:if(t){if(!N(b.charCodeAt(l)))return h|=2048,b.substring(r,l);if(!N(b.charCodeAt(l+1)))return l++,h|=2048,b.substring(r,l)}return Y(2);case 13:l<d&&10===b.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function Y(t){var r=B(t,!1);return r>=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===b.charCodeAt(l)?l++:(S(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function Q(){if(l+5<d&&117===b.charCodeAt(l+1)){var e=l;l+=2;var t=B(4,!1);return l=e,t}return-1}function $(){if(t>=2&&117===U(b,l+1)&&123===U(b,l+2)){var e=l;l+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function Z(){for(var e="",r=l;l<d;){var n=U(b,l);if(z(n,t))l+=V(n);else{if(92!==n)break;if((n=$())>=0&&z(n,t)){l+=3,h|=8,e+=X(),r=l;continue}if(!((n=Q())>=0&&z(n,t)))break;h|=1024,e+=b.substring(r,l),e+=W(n),r=l+=6}}return e+=b.substring(r,l)}function ee(){var e=y.length;if(e>=2&&e<=11){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=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=b.charCodeAt(l);if(95!==a){if(n=!0,!k(a)||a-48>=t)break;r+=b[l],l++,i=!1}else h|=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===b.charCodeAt(l-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function re(){if(110===b.charCodeAt(l))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),l++,9;var t=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;_=l,h=0;for(var a=!1;;){if(g=l,l>=d)return m=1;var o=U(b,l);if(35===o&&0===l&&O(b,l)){if(l=M(b,l),n)continue;return m=6}switch(o){case 10:case 13:if(h|=1,n){l++;continue}return 13===o&&l+1<d&&10===b.charCodeAt(l+1)?l+=2:l++,m=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(n){l++;continue}for(;l<d&&E(b.charCodeAt(l));)l++;return m=5;case 33:return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=37):(l+=2,m=35):(l++,m=53);case 34:case 39:return y=q(),m=10;case 96:return m=H(!1);case 37:return 61===b.charCodeAt(l+1)?(l+=2,m=68):(l++,m=44);case 38:return 38===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=75):(l+=2,m=55):61===b.charCodeAt(l+1)?(l+=2,m=72):(l++,m=50);case 40:return l++,m=20;case 41:return l++,m=21;case 42:if(61===b.charCodeAt(l+1))return l+=2,m=65;if(42===b.charCodeAt(l+1))return 61===b.charCodeAt(l+2)?(l+=3,m=66):(l+=2,m=42);if(l++,x&&!a&&1&h){a=!0;continue}return m=41;case 43:return 43===b.charCodeAt(l+1)?(l+=2,m=45):61===b.charCodeAt(l+1)?(l+=2,m=63):(l++,m=39);case 44:return l++,m=27;case 45:return 45===b.charCodeAt(l+1)?(l+=2,m=46):61===b.charCodeAt(l+1)?(l+=2,m=64):(l++,m=40);case 46:return k(b.charCodeAt(l+1))?(y=I().value,m=8):46===b.charCodeAt(l+1)&&46===b.charCodeAt(l+2)?(l+=3,m=25):(l++,m=24);case 47:if(47===b.charCodeAt(l+1)){for(l+=2;l<d&&!C(b.charCodeAt(l));)l++;if(v=ie(v,b.slice(g,l),p,g),n)continue;return m=2}if(42===b.charCodeAt(l+1)){l+=2,42===b.charCodeAt(l)&&47!==b.charCodeAt(l+1)&&(h|=2);for(var s=!1,c=g;l<d;){var u=b.charCodeAt(l);if(42===u&&47===b.charCodeAt(l+1)){l+=2,s=!0;break}l++,C(u)&&(c=l,h|=1)}if(v=ie(v,b.slice(c,l),f,c),s||S(e.Diagnostics.Asterisk_Slash_expected),n)continue;return s||(h|=4),m=3}return 61===b.charCodeAt(l+1)?(l+=2,m=67):(l++,m=43);case 48:if(l+2<d&&(88===b.charCodeAt(l+1)||120===b.charCodeAt(l+1)))return l+=2,(y=j(1,!0))||(S(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,h|=64,m=re();if(l+2<d&&(66===b.charCodeAt(l+1)||98===b.charCodeAt(l+1)))return l+=2,(y=te(2))||(S(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,h|=128,m=re();if(l+2<d&&(79===b.charCodeAt(l+1)||111===b.charCodeAt(l+1)))return l+=2,(y=te(8))||(S(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,h|=256,m=re();if(l+1<d&&A(b.charCodeAt(l+1)))return y=""+R(),h|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=I(),m=r.type,y=r.value,m;case 58:return l++,m=58;case 59:return l++,m=26;case 60:if(P(b,l)){if(l=w(b,l,S),n)continue;return m=7}return 60===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=69):(l+=2,m=47):61===b.charCodeAt(l+1)?(l+=2,m=32):1===i&&47===b.charCodeAt(l+1)&&42!==b.charCodeAt(l+2)?(l+=2,m=30):(l++,m=29);case 61:if(P(b,l)){if(l=w(b,l,S),n)continue;return m=7}return 61===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=36):(l+=2,m=34):62===b.charCodeAt(l+1)?(l+=2,m=38):(l++,m=62);case 62:if(P(b,l)){if(l=w(b,l,S),n)continue;return m=7}return l++,m=31;case 63:return 46!==b.charCodeAt(l+1)||k(b.charCodeAt(l+2))?63===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=76):(l+=2,m=60):(l++,m=57):(l+=2,m=28);case 91:return l++,m=22;case 93:return l++,m=23;case 94:return 61===b.charCodeAt(l+1)?(l+=2,m=77):(l++,m=52);case 123:return l++,m=18;case 124:if(P(b,l)){if(l=w(b,l,S),n)continue;return m=7}return 124===b.charCodeAt(l+1)?61===b.charCodeAt(l+2)?(l+=3,m=74):(l+=2,m=56):61===b.charCodeAt(l+1)?(l+=2,m=73):(l++,m=51);case 125:return l++,m=19;case 126:return l++,m=54;case 64:return l++,m=59;case 92:var D=$();if(D>=0&&K(D,t))return l+=3,h|=8,y=X()+Z(),m=ee();var T=Q();return T>=0&&K(T,t)?(l+=6,h|=1024,y=String.fromCharCode(T)+Z(),m=ee()):(S(e.Diagnostics.Invalid_character),l++,m=0);case 35:if(0!==l&&"!"===b[l+1])return S(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0;if(l++,K(o=b.charCodeAt(l),t)){for(l++;l<d&&z(o=b.charCodeAt(l),t);)l++;y=b.substring(g,l),92===o&&(y+=Z())}else y="#",S(e.Diagnostics.Invalid_character);return m=79;default:if(K(o,t)){for(l+=V(o);l<d&&z(o=U(b,l),t);)l+=V(o);return y=b.substring(g,l),92===o&&(y+=Z()),m=ee()}if(E(o)){l+=V(o);continue}if(C(o)){h|=1,l+=V(o);continue}return S(e.Diagnostics.Invalid_character),l+=V(o),m=0}}}function ie(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(!r)return;switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(r,n);return void 0===a?t:e.append(t,{range:{pos:i,end:l},type:a})}function ae(){if(_=g=l,l>=d)return m=1;var t=b.charCodeAt(l);if(60===t)return 47===b.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===t)return l++,m=18;for(var r=0,n=-1;l<d&&(E(t)||(n=l),123!==(t=b.charCodeAt(l)));){if(60===t){if(P(b,l))return l=w(b,l,S),m=7;break}62===t&&S(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,l,1),125===t&&S(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,l,1),n>0&&n++,C(t)&&0===r?r=-1:T(t)||(r=l),l++}var i=-1===n?l:n;return y=b.substring(_,i),-1===r?12:11}function oe(){switch(_=l,b.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=h,c=e();return c&&!t||(l=r,_=n,g=i,m=a,y=o,h=s),c}function ce(e,t,r){b=e||"",d=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),l=t,_=t,g=t,m=0,y=void 0,h=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 246===t.kind&&(t=t.parent),t&&247===t.kind&&(n|=r(t),t=t.parent),t&&229===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 229:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 230:var n=r.expression;switch(213===n.kind&&62===n.operatorToken.kind&&(n=n.left),n.kind){case 198:return n.name;case 199:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 204:return y(r.expression);case 242: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 h(e){return e.name||m(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 78:return t;case 328:case 322:var r=t.name;if(156===r.kind)return r.right;break;case 200:case 213: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 327:return h(t);case 321:return m(t);case 263:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 199:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return A(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=A(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function T(e){return S(e,!1)}function E(t,r){var n=t.name.escapedText;return A(t.parent,r).filter((function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some((function(e){return e.name.escapedText===n}))}))}function C(t){return P(t,e.isJSDocReturnTag)}function k(t){var r=P(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function N(t){var r=P(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(T(t),(function(e){return!!e.typeExpression}))),r&&r.typeExpression&&r.typeExpression.type}function A(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(function(t){return e.isJSDoc(t)?t.tags:t})),r||(t.jsDocCache=n)}return n}function F(e){return A(e,!1)}function P(t,r,n){return e.find(A(t,n),r)}function w(e,t){return F(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(198===t||199===t||200===t||222===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function M(t){return e.skipOuterExpressions(t,8)}function L(e){switch(e.kind){case 291:case 292:return!0;default:return!1}}function R(e){return e>=156}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 141: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 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return!1}}function q(e){switch(e){case 163:case 168:case 309:case 169:case 170:case 173:case 304:case 174:return!0;default:return V(e)}}function W(e){var t=e.kind;return 165===t||162===t||164===t||166===t||167===t||170===t||226===t}function H(e){return e&&(249===e.kind||218===e.kind)}function G(e){var t=e.kind;return 169===t||168===t||161===t||163===t||170===t}function Y(e){var t=e.kind;return 285===t||286===t||287===t||164===t||166===t||167===t}function X(e){if(e){var t=e.kind;return 194===t||193===t}return!1}function Q(e){switch(e.kind){case 193:case 197:return!0}return!1}function $(e){switch(e.kind){case 194:case 196:return!0}return!1}function Z(e){switch(e){case 198:case 199:case 201:case 200:case 270:case 271:case 274:case 202:case 196:case 204:case 197:case 218:case 205:case 78:case 13:case 8:case 9:case 10:case 14:case 215:case 94:case 103:case 107:case 109:case 105:case 222:case 223:case 99:return!0;default:return!1}}function ee(e){switch(e){case 211:case 212:case 207:case 208:case 209:case 210:case 203:return!0;default:return Z(e)}}function te(e){return function(e){switch(e){case 214:case 216:case 206:case 213:case 217:case 221:case 219:case 332:case 331:return!0;default:return ee(e)}}(M(e).kind)}function re(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ne(e){return 248===e||268===e||249===e||250===e||251===e||252===e||253===e||258===e||257===e||264===e||263===e||256===e}function ie(e){return 238===e||237===e||245===e||232===e||230===e||228===e||235===e||236===e||234===e||231===e||242===e||239===e||241===e||243===e||244===e||229===e||233===e||240===e||330===e||334===e||333===e}function ae(t){return 158===t.kind?t.parent&&326!==t.parent.kind||e.isInJSFile(t):206===(r=t.kind)||195===r||249===r||218===r||165===r||252===r||288===r||267===r||248===r||205===r||166===r||259===r||257===r||262===r||250===r||277===r||164===r||163===r||253===r||256===r||260===r||266===r||159===r||285===r||162===r||161===r||167===r||286===r||251===r||158===r||246===r||327===r||320===r||328===r;var r}function oe(e){return e.kind>=310&&e.kind<=328}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r<t(e)},e.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u<r.length;u++){var l=r[u],d=i,_=a,p=o,f=l.span.start,g=t(l.span),m=f+l.newLength;i=Math.min(d,f),a=Math.max(_,_+(g-p)),o=Math.max(m,m+(p-g))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(e){if(e&&158===e.kind)for(var t=e;t;t=t.parent)if(U(t)||H(t)||250===t.kind)return t},e.isParameterPropertyDeclaration=function(t,r){return e.hasSyntacticModifier(t,92)&&165===r.kind},e.isEmptyBindingPattern=u,e.isEmptyBindingElement=l,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=function(t){return _(t,e.getEffectiveModifierFlags)},e.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(t){return _(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},e.getCombinedNodeFlags=function(e){return _(e,(function(e){return e.flags}))},e.validateLocaleAndSetLanguage=function(t,r,n){var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(i){var a=i[1];o(a,i[3],n)||o(a,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function o(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=function(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.isParseTreeNode=p,e.getParseTreeNode=function(e,t){if(void 0===e||p(e))return e;for(e=e.original;e;){if(p(e))return!t||t(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&J(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!v(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=h,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=T,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return E(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return E(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=C,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=N,e.getJSDocReturnType=function(t){var r=C(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=F,e.getJSDocTagsNoCache=function(e){return A(e,!0)},e.getAllJSDocTags=w,e.getAllJSDocTagsOfKind=function(e,t){return F(e).filter((function(e){return e.kind===t}))},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(307===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=N(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 167===e.kind||166===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 213===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 238===e.kind||237===e.kind},e.isNamedExportBindings=function(e){return 266===e.kind||265===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||289===e.kind||293===e.kind},e.isJSDocPropertyLikeTag=function(e){return 328===e.kind||322===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isToken=function(e){return e.kind>=0&&e.kind<=155},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 262:case 267:return e.parent.parent.isTypeOnly;case 260:return e.parent.isTypeOnly;case 259: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 156===t||78===t},e.isPropertyName=function(e){var t=e.kind;return 78===t||79===t||10===t||8===t||157===t},e.isBindingName=function(e){var t=e.kind;return 78===t||193===t||194===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&&(166===e.kind||167===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 164:case 166:case 167: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 173:case 174:return!0}return!1},e.isBindingPattern=X,e.isAssignmentPattern=function(e){var t=e.kind;return 196===t||197===t},e.isArrayBindingElement=function(e){var t=e.kind;return 195===t||219===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 246:case 159:case 195: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 198===t||156===t||192===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 198===t||156===t},e.isCallLikeExpression=function(e){switch(e.kind){case 272:case 271:case 200:case 201:case 202:case 160:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 200===e.kind||201===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 215===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 212:return!0;case 211:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=te,e.isAssertionExpression=function(e){var t=e.kind;return 203===t||221===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 234:case 235:case 236:case 232:case 233:return!0;case 242: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 235===e.kind||236===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 254===t||253===t||78===t},e.isNamespaceBody=function(e){var t=e.kind;return 254===t||253===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 78===t||253===t},e.isNamedImportBindings=function(e){var t=e.kind;return 261===t||260===t},e.isModuleOrEnumDeclaration=function(e){return 253===e.kind||252===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(227!==t.kind)return!1;if(void 0!==t.parent&&(244===t.parent.kind||284===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return ie(t)||ne(t)||227===t},e.isModuleReference=function(e){var t=e.kind;return 269===t||156===t||78===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 107===t||78===t||198===t},e.isJsxChild=function(e){var t=e.kind;return 270===t||280===t||271===t||11===t||274===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 277===t||279===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||280===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 272===t||271===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 281===t||282===t},e.isJSDocNode=function(e){return e.kind>=298&&e.kind<=328},e.isJSDocCommentContainingNode=function(t){return 307===t.kind||306===t.kind||oe(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 167===e.kind},e.isGetAccessor=function(e){return 166===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 246:case 159:case 195:case 161:case 162:case 285:case 288:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 277===e.kind||279===e.kind||Y(e)},e.isTypeReferenceType=function(e){return 172===e.kind||220===e.kind};e.guessIndentation=function(t){for(var r=1073741823,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return 1073741823===r?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(u||(u={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.createUnderscoreEscapedMap=function(){return new e.Map},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(t){var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var t,i,a=(t="",{getText:function(){return t},write:i=function(e){return t+=e},rawWrite:i,writeKeyword:i,writeOperator:i,writePunctuation:i,writeSpace:i,writeStringLiteral:i,writeLiteral:i,writeParameter:i,writeProperty:i,writeSymbol:function(e,t){return i(e)},writeTrailingSemicolon:i,writeComment:i,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function o(t,r){return e.moduleResolutionOptionDeclarations.some((function(e){return!Hn(_n(t,e),_n(r,e))}))}function s(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}}function c(e){return e.end-e.pos}function u(t){return function(t){if(!(524288&t.flags)){(0!=(65536&t.flags)||e.forEachChild(t,u))&&(t.flags|=262144),t.flags|=524288}}(t),0!=(262144&t.flags)}function l(e){for(;e&&294!==e.kind;)e=e.parent;return e}function d(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function _(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!_(e)}function f(e,t,n){if(void 0===t||0===t.length)return e;for(var i=0;i<e.length&&n(e[i]);++i);return e.splice.apply(e,r([i,0],t)),e}function g(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function m(e){return U(e)||!!(1048576&S(e))}function y(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function h(t,r,n){return _(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||l(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?h(t.jsDoc[0],r):329===t.kind&&t._children.length>0?h(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos)}function v(e,t,r){return void 0===r&&(r=!1),b(e.text,t,r)}function b(t,r,n){if(void 0===n&&(n=!1),_(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!s(t,e.isJSDocTypeExpression)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function x(e,t){return void 0===t&&(t=!1),v(l(e),e,t)}function D(e){return e.pos}function S(e){var t=e.emitNode;return t&&t.flags||0}function T(e){var t=yt(e);return 246===t.kind&&284===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||k(t))}function C(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function k(e){return!!(1024&e.flags)}function N(e){return E(e)&&A(e)}function A(t){switch(t.parent.kind){case 294:return e.isExternalModule(t.parent);case 254: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 294:case 255:case 284:case 253:case 234:case 235:case 236:case 165:case 164:case 166:case 167:case 248:case 205:case 206:return!0;case 227:return!e.isFunctionLike(r)}return!1}function P(t){switch(t.kind){case 168:case 169:case 163:case 170:case 173:case 174:case 304:case 249:case 218:case 250:case 251:case 326:case 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return e.assertType(t),!1}}function w(e){switch(e.kind){case 258:case 257:return!0;default:return!1}}function I(e){return e&&0!==c(e)?x(e):"(Missing)"}function O(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 157:return st(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function M(t){switch(t.kind){case 107:return"this";case 79:case 78:return 0===c(t)?e.idText(t):x(t);case 156:return M(t.left)+"."+M(t.right);case 198:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?M(t.expression)+"."+M(t.name):e.Debug.assertNever(t.name);default:return e.Debug.assertNever(t)}}function L(e,t,r,n,i,a,o){var s=B(e,t);return rn(e,s.start,s.length,r,n,i,a,o)}function R(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function B(t,r){var n=r;switch(r.kind){case 294:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):R(t,i);case 246:case 195:case 249:case 218:case 250:case 253:case 252:case 288:case 248:case 205:case 164:case 166:case 167:case 251:case 162:case 161:n=r.name;break;case 206:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&227===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,d(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r);case 281:case 282:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return R(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=_(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function j(e){return 6===e.scriptKind}function J(t){return!!(2&e.getCombinedNodeFlags(t))}function K(e){return 200===e.kind&&99===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function U(e){return 230===e.kind&&10===e.expression.kind}function V(e){return!!(1048576&S(e))}function q(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.findAncestor=s,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=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=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a<t.length;a++){var o=r[a],s=n&&n.get(t[a]);if(s?!o||!i(s,o):o)return!0}return!1},e.containsParseError=u,e.getSourceFileOfNode=l,e.isStatementWithLocals=function(e){switch(e.kind){case 227:case 255:case 234:case 235:case 236:return!0}return!1},e.getStartPositionOfLine=function(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=d,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return f(e,t,U)},e.insertStatementsAfterCustomPrologue=function(e,t){return f(e,t,m)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,U)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,m)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(i.match(e.fullTripleSlashReferencePathRegEx)||i.match(e.fullTripleSlashAMDReferencePathRegEx)||i.match(W)||i.match(H))}return!1},e.isPinnedComment=y,e.createCommentDirectivesMap=function(t,r){var n=new e.Map(r.map((function(r){return[""+e.getLineAndCharacterOfPosition(t,r.range.end).line,r]}))),i=new e.Map;return{getUnusedExpectations:function(){return e.arrayFrom(n.entries()).filter((function(e){var t=e[0];return 0===e[1].type&&!i.get(t)})).map((function(e){e[0];return e[1]}))},markUsed:function(e){if(!n.has(""+e))return!1;return i.set(""+e,!0),!0}}},e.getTokenPosOfNode=h,e.getNonDecoratorTokenPosOfNode=function(t,r){return _(t)||!t.decorators?h(t,r):e.skipTrivia((r||l(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=v,e.getTextOfNodeFromSourceText=b,e.getTextOfNode=x,e.indexOfNode=function(t,r){return e.binarySearch(t,r,D,e.compareValues)},e.getEmitFlags=S,e.getLiteralText=function(t,r,n,i){if(!ht(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags||e.isBigIntLiteral(t)))return v(r,t);switch(t.kind){case 10:var a=i?Rt:n||16777216&S(t)?Ft:wt;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=n||16777216&S(t)?Ft:wt;var o=t.rawText||function(e){return e.replace(St,"\\${")}(a(t.text,96));switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:case 13:return t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+wt(t)+'"':""+t},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||T(t)},e.isCatchClauseVariableDeclarationOrBindingElement=T,e.isAmbientModule=E,e.isModuleWithStringLiteralName=function(t){return e.isModuleDeclaration(t)&&10===t.name.kind},e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isEffectiveModuleDeclaration=C,e.isShorthandAmbientModuleSymbol=function(e){return function(e){return e&&253===e.kind&&!e.body}(e.valueDeclaration)},e.isBlockScopedContainerTopLevel=function(t){return 294===t.kind||253===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=k,e.isExternalModuleAugmentation=N,e.isModuleAugmentationExternal=A,e.getNonAugmentationDeclaration=function(t){return e.find(t.declarations,(function(t){return!(N(t)||e.isModuleDeclaration(t)&&k(t))}))},e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||un(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator},e.isEffectiveStrictModeSourceFile=function(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!t.isDeclarationFile&&(!!dn(r,"alwaysStrict")||(!!e.startsWithUseStrict(t.statements)||!(!e.isExternalModule(t)&&!r.isolatedModules)&&(un(r)>=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=F,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 320:case 327:case 309:return!0;default:return e.assertType(t),P(t)}},e.isDeclarationWithTypeParameterChildren=P,e.isAnyImportSyntax=w,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 258:case 257:case 229:case 249:case 248:case 253:case 251:case 250:case 252:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return w(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){return s(e.parent,(function(e){return F(e,e.parent)}))},e.declarationNameToString=I,e.getNameFromIndexInfo=function(e){return e.declaration?I(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 157===e.kind&&!st(e.expression)},e.getTextOfPropertyName=O,e.entityNameToString=M,e.createDiagnosticForNode=function(e,t,r,n,i,a){return L(l(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return rn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=L,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=l(e),i=B(n,e);return{file:n,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=R,e.getErrorSpanForNode=B,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=j,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=J,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 200===e.kind&&105===e.expression.kind},e.isImportCall=K,e.isImportMeta=function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=z,e.isPrologueDirective=U,e.isCustomPrologue=V,e.isHoistedFunction=function(t){return V(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return V(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=159===t.kind||158===t.kind||205===t.kind||206===t.kind||204===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var W=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var H=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function G(t){if(171<=t.kind&&t.kind<=192)return!0;switch(t.kind){case 128:case 151:case 143:case 154:case 146:case 131:case 147:case 144:case 149:case 140:return!0;case 113:return 209!==t.parent.kind;case 220:return!Tr(t);case 158:return 189===t.parent.kind||184===t.parent.kind;case 78:(156===t.parent.kind&&t.parent.right===t||198===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(78===t.kind||156===t.kind||198===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 156:case 198:case 107:var r=t.parent;if(175===r.kind)return!1;if(192===r.kind)return!r.isTypeOf;if(171<=r.kind&&r.kind<=192)return!0;switch(r.kind){case 220:return!Tr(r);case 158:case 326:return t===r.constraint;case 162:case 161:case 159:case 246:return t===r.type;case 248:case 205:case 206:case 165:case 164:case 163:case 166:case 167:return t===r.type;case 168:case 169:case 170:case 203:return t===r.type;case 200:case 201:return e.contains(r.typeArguments,t);case 202:return!1}}return!1}function Y(e){if(e)switch(e.kind){case 195:case 288:case 159:case 285:case 162:case 161:case 286:case 246:return!0}return!1}function X(e){return 247===e.parent.kind&&229===e.parent.parent.kind}function Q(e,t,r){return e.properties.filter((function(e){if(285===e.kind){var n=O(e.name);return t===n||!!r&&r===n}return!1}))}function $(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function Z(t,r){var n=$(t);return n?Q(n,r):e.emptyArray}function ee(t,r){for(e.Debug.assert(294!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 157:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 160:159===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 206:if(!r)continue;case 248:case 205:case 253:case 162:case 161:case 164:case 163:case 165:case 166:case 167:case 168:case 169:case 170:case 252:case 294:return t}}}function te(e){var t=e.kind;return(198===t||199===t)&&105===e.expression.kind}function re(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 249:return!0;case 162:return 249===r.kind;case 166:case 167:case 164:return void 0!==t.body&&249===r.kind;case 159:return void 0!==r.body&&(165===r.kind||164===r.kind||167===r.kind)&&249===n.kind}return!1}function ne(e,t,r){return void 0!==e.decorators&&re(e,t,r)}function ie(e,t,r){return ne(e,t,r)||ae(e,t)}function ae(t,r){switch(t.kind){case 249:return e.some(t.members,(function(e){return ie(e,t,r)}));case 164:case 167:return e.some(t.parameters,(function(e){return ne(e,t,r)}));default:return!1}}function oe(e){var t=e.parent;return(272===t.kind||271===t.kind||273===t.kind)&&t.tagName===e}function se(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 196:case 197:case 198:case 199:case 200:case 201:case 202:case 221:case 203:case 222:case 204:case 205:case 218:case 206:case 209:case 207:case 208:case 211:case 212:case 213:case 214:case 217:case 215:case 219:case 270:case 271:case 274:case 216:case 210:case 223:return!0;case 156:for(;156===e.parent.kind;)e=e.parent;return 175===e.parent.kind||oe(e);case 78:if(175===e.parent.kind||oe(e))return!0;case 8:case 9:case 10:case 14:case 107:return ce(e);default:return!1}}function ce(e){var t=e.parent;switch(t.kind){case 246:case 159:case 162:case 161:case 288:case 285:case 195:return t.initializer===e;case 230:case 231:case 232:case 233:case 239:case 240:case 241:case 281:case 243:return t.expression===e;case 234:var r=t;return r.initializer===e&&247!==r.initializer.kind||r.condition===e||r.incrementor===e;case 235:case 236:var n=t;return n.initializer===e&&247!==n.initializer.kind||n.expression===e;case 203:case 221:case 225:case 157:return e===t.expression;case 160:case 280:case 279:case 287:return!0;case 220:return t.expression===e&&Tr(t);case 286:return t.objectAssignmentInitializer===e;default:return se(t)}}function ue(e){for(;156===e.kind||78===e.kind;)e=e.parent;return 175===e.kind}function le(e){return 257===e.kind&&269===e.moduleReference.kind}function de(e){return _e(e)}function _e(e){return!!e&&!!(131072&e.flags)}function pe(t,r){if(200!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(78!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function fe(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&pe(t.initializer,r)}function ge(t){return e.isBinaryExpression(t)||Vr(t)||e.isIdentifier(t)||e.isCallExpression(t)}function me(t){return _e(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Er(t.name)&&he(t.name,t.initializer.left)?t.initializer.right:t.initializer}function ye(t,r){if(e.isCallExpression(t)){var n=Ye(t.expression);return 205===n.kind||206===n.kind?t:void 0}return 205===t.kind||218===t.kind||206===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function he(t,r){if(pt(t)&&pt(r))return ft(t)===ft(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."),he(t,n)}return!(!Ee(t)||!Ee(r))&&(we(t)===we(r)&&he(t.expression,r.expression))}function ve(e){for(;Sr(e,!0);)e=e.right;return e}function be(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function xe(t){return e.isIdentifier(t)&&"module"===t.escapedText}function De(t){return(e.isPropertyAccessExpression(t)||Ce(t))&&xe(t.expression)&&"exports"===we(t)}function Se(t){var r=function(t){if(e.isCallExpression(t)){if(!Te(t))return 0;var r=t.arguments[0];return be(r)||De(r)?8:ke(r)&&"prototype"===we(r)?9:7}if(62!==t.operatorToken.kind||!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"===we(t.left)&&e.isObjectLiteralExpression(Oe(t)))return 6;return Ie(t.left)}(t);return 5===r||_e(t)?r:0}function Te(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&st(t.arguments[1])&&Ae(t.arguments[0],!0)}function Ee(t){return e.isPropertyAccessExpression(t)||Ce(t)}function Ce(t){return e.isElementAccessExpression(t)&&(st(t.argumentExpression)||dt(t.argumentExpression))}function ke(t,r){return e.isPropertyAccessExpression(t)&&(!r&&107===t.expression.kind||e.isIdentifier(t.name)&&Ae(t.expression,!0))||Ne(t,r)}function Ne(e,t){return Ce(e)&&(!t&&107===e.expression.kind||Er(e.expression)||ke(e.expression,!0))}function Ae(e,t){return Er(e)||ke(e,t)}function Fe(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Pe(t){if(e.isPropertyAccessExpression(t))return t.name;var r=Ye(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function we(t){var r=Pe(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}if(e.isElementAccessExpression(t)&&dt(t.argumentExpression))return gt(e.idText(t.argumentExpression.name))}function Ie(t){if(107===t.expression.kind)return 4;if(De(t))return 2;if(Ae(t.expression,!0)){if(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"===we(r))&&ke(t))return 1;if(Ae(t,!0)||e.isElementAccessExpression(t)&&lt(t))return 5}return 0}function Oe(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Me(t){switch(t.parent.kind){case 258:case 264:return t.parent;case 269:return t.parent.parent;case 200:return K(t.parent)||pe(t.parent,!1)?t.parent:void 0;case 190:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Le(e){return 327===e.kind||320===e.kind||321===e.kind}function Re(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Se(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Be(e){switch(e.kind){case 229:var t=je(e);return t&&t.initializer;case 162:case 285:return e.initializer}}function je(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Je(t){return e.isModuleDeclaration(t)&&t.body&&253===t.body.kind?t.body:void 0}function Ke(t){var r=t.parent;return 285===r.kind||263===r.kind||162===r.kind||230===r.kind&&198===t.kind||Je(r)||e.isBinaryExpression(t)&&62===t.operatorToken.kind?r:r.parent&&(je(r.parent)===t||e.isBinaryExpression(r)&&62===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(je(r.parent.parent)||Be(r.parent.parent)===t||Re(r.parent.parent))?r.parent.parent:void 0}function ze(t){var r=Ue(t);return r&&e.isFunctionLike(r)?r:void 0}function Ue(t){var r=Ve(t);return Re(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?ve(t.expression):void 0}(r)||Be(r)||je(r)||Je(r)||r}function Ve(t){return e.Debug.checkDefined(s(t.parent,e.isJSDoc)).parent}function qe(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&305===r.kind}function We(e){for(var t=e.parent;;){switch(t.kind){case 213:var r=t.operatorToken.kind;return br(r)&&t.left===e?62===r||vr(r)?1:2:0;case 211:case 212:var n=t.operator;return 45===n||46===n?2:0;case 235:case 236:return t.initializer===e?1:0;case 204:case 196:case 217:case 222:e=t;break;case 286:if(t.name!==e)return 0;e=t.parent;break;case 285:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function He(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Ge(e){return He(e,204)}function Ye(t){return e.skipOuterExpressions(t,1)}function Xe(t){return Er(t)||e.isClassExpression(t)}function Qe(e){return Xe($e(e))}function $e(t){return e.isExportAssignment(t)?t.expression:t.right}function Ze(t){var r=et(t);if(r&&_e(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function et(e){var t=nt(e.heritageClauses,93);return t&&t.types.length>0?t.types[0]:void 0}function tt(t){if(_e(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=nt(t.heritageClauses,116);return null==r?void 0:r.types}function rt(e){var t=nt(e.heritageClauses,93);return t?t.types:void 0}function nt(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function it(e){return 80<=e&&e<=155}function at(e){return 125<=e&&e<=155}function ot(e){return it(e)&&!at(e)}function st(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function ct(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function ut(t){var r=e.getNameOfDeclaration(t);return!!r&&lt(r)}function lt(t){if(157!==t.kind&&199!==t.kind)return!1;var r=e.isElementAccessExpression(t)?Ye(t.argumentExpression):t.expression;return!st(r)&&!ct(r)&&!dt(r)}function dt(t){return e.isPropertyAccessExpression(t)&&mt(t.expression)}function _t(t){switch(t.kind){case 78:case 79:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 157:var r=t.expression;return dt(r)?gt(e.idText(r.name)):st(r)?e.escapeLeadingUnderscores(r.text):ct(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function pt(e){switch(e.kind){case 78:case 10:case 14:case 8:return!0;default:return!1}}function ft(t){return e.isIdentifierOrPrivateIdentifier(t)?e.idText(t):t.text}function gt(e){return"__@"+e}function mt(e){return 78===e.kind&&"Symbol"===e.escapedText}function yt(e){for(;195===e.kind;)e=e.parent.parent;return e}function ht(e){return Vn(e.pos)||Vn(e.end)}function vt(e,t,r){switch(e){case 201:return r?0:1;case 211:case 208:case 209:case 207:case 210:case 214:case 216:return 1;case 213:switch(t){case 42:case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 77:case 73:case 74:case 75:case 76:return 1}}return 0}function bt(e){return 213===e.kind?e.operatorToken.kind:211===e.kind||212===e.kind?e.operator:e.kind}function xt(e,t,r){switch(e){case 332:return 0;case 217:return 1;case 216:return 2;case 214:return 4;case 213:switch(t){case 27:return 0;case 62:case 63:case 64:case 66:case 65:case 67:case 68:case 69:case 70:case 71:case 72:case 77:case 73:case 74:case 75:case 76:return 3;default:return Dt(t)}case 211:case 208:case 209:case 207:case 210:return 16;case 212:return 17;case 200:return 18;case 201:return r?19:18;case 202:case 198:case 199:return 19;case 107:case 105:case 78:case 103:case 109:case 94:case 8:case 9:case 10:case 196:case 197:case 205:case 206:case 218:case 13:case 14:case 215:case 204:case 219:case 270:case 271:case 274:return 20;default:return-1}}function Dt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 101:case 100:case 126:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=G,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,r){return function t(n){switch(n.kind){case 239:return r(n);case 255:case 227:case 231:case 232:case 233:case 234:case 235:case 236:case 240:case 241:case 281:case 282:case 242:case 244:case 284:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 216:r(n);var i=n.expression;return void(i&&t(i));case 252:case 250:case 253:case 251:return;default:if(e.isFunctionLike(n)){if(n.name&&157===n.name.kind)return void t(n.name.expression)}else G(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&177===t.kind?t.elementType:t&&172===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 250:case 249:case 218:case 176:return e.members;case 197:return e.properties}},e.isVariableLike=Y,e.isVariableLikeOrAccessor=function(t){return Y(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=X,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?J(t)&&e.isIdentifier(t.name)&&X(t):e.isPropertyDeclaration(t)?ur(t)&&cr(t):e.isPropertySignature(t)&&ur(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 164:case 163:case 165:case 166:case 167:case 248:case 205:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),242!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&227===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&164===e.kind&&197===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 164===e.kind&&(197===e.parent.kind||218===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=Q,e.getTsConfigObjectLiteralExpression=$,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined(Z(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigPropArray=Z,e.getContainingFunction=function(t){return s(t.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(t){return s(t.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(t){return s(t.parent,e.isClassLike)},e.getThisContainer=ee,e.isInTopLevelContext=function(t){e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=ee(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=function(e){var t=ee(e,!1);if(t)switch(t.kind){case 165:case 248:case 205:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 157:t=t.parent;break;case 248:case 205:case 206:if(!r)continue;case 162:case 161:case 164:case 163:case 165:case 166:case 167:return t;case 160:159===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(205===e.kind||206===e.kind){for(var t=e,r=e.parent;204===r.kind;)t=r,r=r.parent;if(200===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=function(e){return 105===e.kind||te(e)},e.isSuperProperty=te,e.isThisProperty=function(e){var t=e.kind;return(198===t||199===t)&&107===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 172:return e.typeName;case 220:return Er(e.expression)?e.expression:void 0;case 78:case 156:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 202:return e.tag;case 272:case 271:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=re,e.nodeIsDecorated=ne,e.nodeOrChildIsDecorated=ie,e.childIsDecorated=ae,e.isJSXTagName=oe,e.isExpressionNode=se,e.isInExpressionContext=ce,e.isPartOfTypeQuery=ue,e.isExternalModuleImportEqualsDeclaration=le,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(le(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 257===e.kind&&269!==e.moduleReference.kind},e.isSourceFileJS=de,e.isSourceFileNotJS=function(e){return!_e(e)},e.isInJSFile=_e,e.isInJsonFile=function(e){return!!e&&!!(33554432&e.flags)},e.isSourceFileNotJson=function(e){return!j(e)},e.isInJSDoc=function(e){return!!e&&!!(4194304&e.flags)},e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(146===t.typeArguments[0].kind||143===t.typeArguments[0].kind)},e.isRequireCall=pe,e.isRequireVariableDeclaration=fe,e.isRequireVariableStatement=function(t,r){return void 0===r&&(r=!0),e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(function(e){return fe(e,r)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===v(t,e).charCodeAt(0)},e.getDeclarationOfExpando=function(t){if(t.parent){var r,n;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!_e(t)&&!J(t.parent))return;r=t.parent.name,n=t.parent}else if(e.isBinaryExpression(t.parent)){var i=t.parent,a=t.parent.operatorToken.kind;if(62===a&&i.right===t)n=r=i.left;else if(!(56!==a&&60!==a||(e.isVariableDeclaration(i.parent)&&i.parent.initializer===i?(r=i.parent.name,n=i.parent):e.isBinaryExpression(i.parent)&&62===i.parent.operatorToken.kind&&i.parent.right===i&&(n=r=i.parent.left),r&&Ae(r)&&he(r,i.left))))return}if(r&&ye(t,kr(r)))return n}},e.isAssignmentDeclaration=ge,e.getEffectiveInitializer=me,e.getDeclaredExpandoInitializer=function(e){var t=me(e);return t&&ye(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 ye(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&ye(r.right,n);if(i&&he(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Te(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&ye(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=ye,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&ye(t.right,kr(r))&&Er(r)&&he(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(62===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.getRightMostAssignedExpression=ve,e.isExportsIdentifier=be,e.isModuleIdentifier=xe,e.isModuleExportsAccessExpression=De,e.getAssignmentDeclarationKind=Se,e.isBindableObjectDefinePropertyCall=Te,e.isLiteralLikeAccess=Ee,e.isLiteralLikeElementAccess=Ce,e.isBindableStaticAccessExpression=ke,e.isBindableStaticElementAccessExpression=Ne,e.isBindableStaticNameExpression=Ae,e.getNameOrArgument=Fe,e.getElementOrPropertyAccessArgumentExpressionOrName=Pe,e.getElementOrPropertyAccessName=we,e.getAssignmentDeclarationPropertyAccessKind=Ie,e.getInitializerOfBinaryExpression=Oe,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Se(t)},e.isSpecialPropertyDeclaration=function(t){return _e(t)&&t.parent&&230===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)&&ge(r)&&!ge(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 248===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return Me(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Me,e.getExternalModuleName=function(t){switch(t.kind){case 258:case 264:return t.moduleSpecifier;case 257:return 269===t.moduleReference.kind?t.moduleReference.expression:void 0;case 192:return z(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 258:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 257:return t;case 264:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 258===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 159:case 164:case 163:case 286:case 285:case 162:case 161: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=Le,e.isTypeAlias=function(t){return Le(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Be,e.getSingleVariableOfVariableStatement=je,e.getJSDocCommentsAndTags=function(t,r){var n;Y(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))),159===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(158===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Ke(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=ze(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=ze,e.getEffectiveJSDocHost=Ue,e.getJSDocHost=Ve,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&&qe(r)},e.isRestParameter=qe,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=We,e.isAssignmentTarget=function(e){return 0!==We(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 227:case 229:case 240:case 231:case 241:case 255:case 281:case 282:case 242:case 234:case 235:case 236:case 232:case 233:case 244:case 284: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 He(e,185)},e.walkUpParenthesizedExpressions=Ge,e.skipParentheses=Ye,e.isDeleteTarget=function(e){return(198===e.kind||199===e.kind)&&((e=Ge(e.parent))&&207===e.kind)},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 78:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Se(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 79:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return st(t)&&157===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 162:case 161:case 164:case 163:case 166:case 167:case 288:case 285:case 198:return t.name===e;case 156:return t.right===e;case 195:case 262:return t.propertyName===e;case 267:case 277:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 257===t.kind||256===t.kind||259===t.kind&&!!t.name||260===t.kind||266===t.kind||262===t.kind||267===t.kind||263===t.kind&&Qe(t)||e.isBinaryExpression(t)&&2===Se(t)&&Qe(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Xe(t.parent.right)||286===t.kind||285===t.kind&&Xe(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 259:case 262:case 260:case 267:case 263:case 257:return t.parent;case 156:do{t=t.parent}while(156===t.parent.kind);return e(t)}},e.isAliasableExpression=Xe,e.exportAssignmentIsAlias=Qe,e.getExportAssignmentExpression=$e,e.getPropertyAssignmentAliasLikeExpression=function(e){return 286===e.kind?e.name:285===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=Ze,e.getClassExtendsHeritageElement=et,e.getEffectiveImplementsTypeNodes=tt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?rt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(Ze(t)),tt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=rt,e.getHeritageClause=nt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=it,e.isContextualKeyword=at,e.isNonContextualKeyword=ot,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ot(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&it(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!at(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 248:case 205:case 164:e.asteriskToken&&(t|=1);case 206:sr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 248:case 205:case 206:case 164:return void 0!==e.body&&void 0===e.asteriskToken&&sr(e,256)}return!1},e.isStringOrNumericLiteralLike=st,e.isSignedNumericLiteral=ct,e.hasDynamicName=ut,e.isDynamicName=lt,e.isWellKnownSymbolSyntactically=dt,e.getPropertyNameForPropertyNameNode=_t,e.isPropertyNameLiteral=pt,e.getTextOfIdentifierOrLiteral=ft,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=gt,e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=mt,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 159===yt(e).kind},e.getRootDeclaration=yt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 165===t||205===t||248===t||206===t||164===t||166===t||167===t||253===t||294===t},e.nodeIsSynthesized=ht,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=bt(e),r=201===e.kind&&void 0!==e.arguments;return vt(e.kind,t,r)},e.getOperatorAssociativity=vt,e.getExpressionPrecedence=function(e){var t=bt(e),r=201===e.kind&&void 0!==e.arguments;return xt(e.kind,t,r)},e.getOperator=bt,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=xt,e.getBinaryOperatorPrecedence=Dt,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,on)},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},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),(function(e){return e.file=t}))}}};var St=/\$\{/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 Tt=/[\\\"\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,kt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"}));function Nt(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 kt.get(e)||Nt(e.charCodeAt(0))}function Ft(e,t){var r=96===t?Ct:39===t?Et:Tt;return e.replace(r,At)}e.escapeString=Ft;var Pt=/[^\u0000-\u007F]/g;function wt(e,t){return e=Ft(e,t),Pt.test(e)?e.replace(Pt,(function(e){return Nt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=wt;var It=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Ot=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Mt=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function Lt(e){return 0===e.charCodeAt(0)?"&#0;":Mt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Rt(e,t){var r=39===t?Ot:It;return e.replace(r,Lt)}e.escapeJsxAttributeString=Rt,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 Bt=[""," "];function jt(e){return void 0===Bt[e]&&(Bt[e]=jt(e-1)+Bt[1]),Bt[e]}function Jt(){return Bt[1].length}function Kt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function zt(e,t,r){return t.moduleName||Ut(e,t.fileName,r&&r.fileName)}function Ut(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=Jn(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function Vt(e,t,r,n,i){var a=t.declarationDir||t.outDir;return Jn(a?Gt(e,a,r,n,i):e)+".d.ts"}function qt(e){return e.outFile||e.out}function Wt(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&de(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&!(j(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&(r||!t.isSourceOfProjectReferenceRedirect(e.fileName))}function Ht(e,t,r){return Gt(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function Gt(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 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(_e(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!_e(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function 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<l.length;u++){var d=l[u];c&&(r.writeSpace(" "),c=!1),s(e,t,r,d.pos,d.end,o),d.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function ir(e,t,r,n,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(r.writeComment(s),o!==t&&r.writeLine()):r.rawWrite(n)}function ar(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=Jt()-i%Jt():i++;return i}function or(e,t){return!!lr(e,t)}function sr(e,t){return!!dr(e,t)}function cr(e){return sr(e,32)}function ur(e){return or(e,64)}function lr(e,t){return pr(e)&t}function dr(e,t){return fr(e)&t}function _r(e,t,r){return e.kind>=0&&e.kind<=155?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|mr(e)),!t||4096&e.modifierFlagsCache||!r&&!_e(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)&&(_e(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<n.length;r++){t|=hr(n[r].kind)}return t}function hr(e){switch(e){case 123:return 32;case 122:return 4;case 121:return 16;case 120:return 8;case 125:return 128;case 92:return 1;case 133:return 2;case 84:return 2048;case 87:return 512;case 129:return 256;case 141:return 64}return 0}function vr(e){return 74===e||75===e||76===e}function br(e){return e>=62&&e<=77}function xr(e){var t=Dr(e);return t&&!t.isImplements?t.class:void 0}function Dr(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:br(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Tr(e){return void 0!==xr(e)}function Er(e){return 78===e.kind||Cr(e)}function Cr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Er(t.expression)}function kr(e){return ke(e)&&"prototype"===we(e)}e.getIndentString=jt,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=jt(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=Kt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Kt(t))},e.getResolvedExternalModuleName=zt,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return zt(e,n)},e.getExternalModuleNameFromPath=Ut,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?Jn(Ht(e,t,n.outDir)):Jn(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return Vt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Vt,e.outFile=qt,e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(qt(i)){var a=un(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&Wt(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return Wt(e,t,n)}))},e.sourceFileMayBeEmitted=Wt,e.getSourceFilePathInNewDir=Ht,e.getSourceFilePathInNewDirWorker=Gt,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(nn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){!function t(r,n,i){r.length>e.getRootLength(r)&&!i(r)&&(t(e.getDirectoryPath(r),n,i),n(r))}(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=Yt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&p(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 ut(r)?(n=r,166===r.kind?a=r:167===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)&&(_t(t.name)===_t(r.name)&&(n?i||(i=t):n=t,166!==t.kind||a||(a=t),167!==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||(_e(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(307===t.parent.kind&&t.parent.tags.some(Le))}(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 y(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],d=void 0,_=0,p=c;_<p.length;_++){var f=p[_];if(d){var g=Yt(r,d.end);if(Yt(r,f.pos)>=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;l<a;d++){var _=d+1===c?t.length+1:r[d+1];if(l!==i){void 0===u&&(u=ar(t,r[s.line],i));var p=n.getIndent()*Jt()-u+ar(t,l,_);if(p>0){var f=p%Jt(),g=jt((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=hr,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=vr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return vr(e.operatorToken.kind)},e.isAssignmentOperator=br,e.tryGetClassExtendingExpressionWithTypeArguments=xr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Dr,e.isAssignmentExpression=Sr,e.isDestructuringAssignment=function(e){if(Sr(e,!0)){var t=e.left.kind;return 197===t||196===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Tr,e.isEntityNameExpression=Er,e.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 156:do{e=e.left}while(78!==e.kind);return e;case 198: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||198===t.kind&&e(t.expression)||204===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Cr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){var n=t(r.expression);if(void 0!==n)return n+"."+M(r.name)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=kr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 156===e.parent.kind&&e.parent.right===e||198===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 197===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 196===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<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,(function(r){return e.fileExtensionIs(t,r)}))};var Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ar(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c<u;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=Nr.charAt(r)+Nr.charAt(n)+Nr.charAt(i)+Nr.charAt(a),c+=3;return o}e.convertToBase64=Ar,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Ar(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Nr.charCodeAt(64);){var a=Nr.indexOf(t[i]),o=Nr.indexOf(t[i+1]),s=Nr.indexOf(t[i+2]),c=Nr.indexOf(t[i+3]),u=(63&a)<<2|o>>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<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},e.readJson=function(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)};var Fr;function Pr(t,r){return void 0===r&&(r=t),e.Debug.assert(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 Vn(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 204:return jr(r);case 212:case 211:var n=r.operator;return 45===n||46===n?c():0;case 213:var i=r,a=i.left,o=i.operatorToken;return a===t&&br(o.kind)?62===o.kind?1:c():0;case 198:return r.name!==t?0:jr(r);case 285: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 286:return t===r.objectAssignmentInitializer?0:jr(r.parent);case 196:return jr(r);default:return 0}function c(){return r.parent&&230===function(e){for(;204===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 198===e.kind||199===e.kind}function qr(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 Wr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Hr(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function Gr(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 Yr(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 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,this.original=void 0,this.flowNode=void 0}function Qr(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function $r(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function Zr(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function en(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function tn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o<s.length;o++){var c=s[o];en(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(tn(c,r))):a.relatedInformation.push(c)}}return a}function rn(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length));var a=Zr(i);return arguments.length>4&&(a=$r(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function nn(e){var t=Zr(e);return arguments.length>1&&(t=$r(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 an(e){return e.file?e.file.path:void 0}function on(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 on(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function sn(t,r){return e.compareStringsCaseSensitive(an(t),an(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||function t(r,n){if("string"==typeof r&&"string"==typeof n)return e.compareStringsCaseSensitive(r,n);if("string"==typeof r)return-1;if("string"==typeof n)return 1;var i=e.compareStringsCaseSensitive(r.messageText,n.messageText);if(i)return i;if(!r.next&&!n.next)return 0;if(!r.next)return-1;if(!n.next)return 1;for(var a=Math.min(r.next.length,n.next.length),o=0;o<a;o++)if(i=t(r.next[o],n.next[o]))return i;if(r.next.length<n.next.length)return-1;if(r.next.length>n.next.length)return 1;return 0}(t.messageText,r.messageText)||0}function cn(e){return e.target||0}function un(t){return"number"==typeof t.module?t.module:cn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function ln(e){return!(!e.declaration&&!e.composite)}function dn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function _n(e,t){return t.strictFlag?dn(e,t.name):e[t.name]}function pn(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function fn(){var t,r;return{getSymlinkedFiles:function(){return r},getSymlinkedDirectories:function(){return t},setSymlinkedFile:function(t,n){return(r||(r=new e.Map)).set(t,n)},setSymlinkedDirectory:function(r,n){return(t||(t=new e.Map)).set(r,n)}}}function gn(t,r,n,i){for(var a=e.getPathComponents(e.toPath(t,n,i)),o=e.getPathComponents(e.toPath(r,n,i)),s=!1;!mn(a[a.length-2],i)&&!mn(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 mn(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Pr,e.moveRangeEnd=function(e,t){return Pr(e.pos,t)},e.moveRangePos=wr,e.moveRangePastDecorators=Ir,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?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 252:case 253: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"}(Fr||(Fr={})),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:x(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){p(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(p(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=171&&e<=192||128===e||151===e||143===e||154===e||144===e||131===e||146===e||147===e||113===e||149===e||140===e||220===e||299===e||300===e||301===e||302===e||303===e||304===e||305===e},e.isAccessExpression=Vr,e.getNameOfAccessExpression=function(t){return 198===t.kind?t.name:(e.Debug.assert(199===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 261===e.kind||265===e.kind},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 212:e=e.operand;continue;case 213:e=e.left;continue;case 214:e=e.condition;continue;case 202:e=e.tag;continue;case 200:if(t)return e;case 221:case 199:case 198:case 222:case 331:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return Gr},getTokenConstructor:function(){return Yr},getIdentifierConstructor:function(){return Xr},getPrivateIdentifierConstructor:function(){return Gr},getSourceFileConstructor:function(){return Gr},getSymbolConstructor:function(){return qr},getTypeConstructor:function(){return Wr},getSignatureConstructor:function(){return Hr},getSourceMapSourceConstructor:function(){return Qr}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=$r,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=Zr,e.createDetachedDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0);var a=Zr(i);return arguments.length>4&&(a=$r(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;n<i.length;n++){var a=i[n];r.push(tn(a,t))}return r},e.createFileDiagnostic=rn,e.formatMessage=function(e,t){var r=Zr(t);return arguments.length>2&&(r=$r(r,arguments,2)),r},e.createCompilerDiagnostic=nn,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=Zr(t);return arguments.length>2&&(r=$r(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=on,e.compareDiagnosticsSkipRelatedInformation=sn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=cn,e.getEmitModuleKind=un,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=un(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(un(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!(!ln(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=un(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=ln,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=dn,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!Hn(_n(r,e),_n(t,e))}))},e.compilerOptionsAffectEmit=function(t,r){return r!==t&&e.affectsEmitOptionDeclarations.some((function(e){return!Hn(_n(r,e),_n(t,e))}))},e.getCompilerOptionValue=_n,e.hasZeroOrOneAsteriskCharacter=pn,e.createSymlinkCache=fn,e.discoverProbableSymlinks=function(t,r,n){for(var i=fn(),a=0,o=e.flatten(e.mapDefined(t,(function(t){return t.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(t.resolvedModules.values(),(function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0}))))})));a<o.length;a++){var s=o[a],c=gn(s[0],s[1],n,r)||e.emptyArray,u=c[0],l=c[1];u&&l&&i.setSymlinkedDirectory(e.toPath(l,n,r),{real:u,realPath:e.toPath(u,n,r)})}return i},e.tryRemoveDirectoryPrefix=function(t,r,n){var i=e.tryRemovePrefix(t,r,n);return void 0===i?void 0:function(t){return e.isAnyDirectorySeparator(t.charCodeAt(0))?t.slice(1):void 0}(i)};var yn=/[^\w\s\/]/g;function hn(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(yn,hn)};var vn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var bn="(?!("+e.commonPackageFolders.join("|")+")(/|$))",xn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+bn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Nn(e,xn.singleAsteriskRegexFragment)}},Dn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+bn+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return Nn(e,Dn.singleAsteriskRegexFragment)}},Sn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return Nn(e,Sn.singleAsteriskRegexFragment)}},Tn={files:xn,directories:Dn,exclude:Sn};function En(e,t,r){var n=Cn(e,t,r);if(n&&n.length)return"^("+n.map((function(e){return"("+e+")"})).join("|")+")"+("exclude"===r?"($|/)":"$")}function Cn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(t){return t&&function(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",u=!1,l=e.getNormalizedPathComponents(t,r),d=e.last(l);if("exclude"!==n&&"**"===d)return;l[0]=e.removeTrailingDirectorySeparator(l[0]),kn(d)&&l.push("**","*");for(var _=0,p=0,f=l;p<f.length;p++){var g=f[p];if("**"===g)c+=o;else if("directories"===n&&(c+="(",_++),u&&(c+=e.directorySeparator),"exclude"!==n){var m="";42===g.charCodeAt(0)?(m+="([^./]"+a+")?",g=g.substr(1)):63===g.charCodeAt(0)&&(m+="[^./]",g=g.substr(1)),(m+=g.replace(yn,s))!==g&&(c+=bn),c+=m}else c+=g.replace(yn,s);u=!0}for(;_>0;)c+=")?",_--;return c}(t,r,n,Tn[n])}))}function kn(e){return!/[.*?]/.test(e)}function Nn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function An(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Cn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:En(n,o,"files"),includeDirectoryPattern:En(n,o,"directories"),excludePattern:En(r,o,"exclude"),basePaths:Pn(t,n,i)}}function Fn(e,t){return new RegExp(e,t?"":"i")}function Pn(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],u=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push(wn(u))}a.sort(e.getStringComparer(!n));for(var l=function(r){e.every(i,(function(i){return!e.containsPath(i,r,t,!n)}))&&i.push(r)},d=0,_=a;d<_.length;d++){l(_[d])}}return i}function wn(t){var r=e.indexOfAnyCharCode(t,vn);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function In(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=En,e.getRegularExpressionsForWildcards=Cn,e.isImplicitGlob=kn,e.getFileMatcherPatterns=An,e.getRegexFromPattern=Fn,e.matchFiles=function(t,r,n,i,a,o,s,c,u){t=e.normalizePath(t),o=e.normalizePath(o);for(var l=An(t,n,i,a,o),d=l.includeFilePatterns&&l.includeFilePatterns.map((function(e){return Fn(e,a)})),_=l.includeDirectoryPattern&&Fn(l.includeDirectoryPattern,a),p=l.excludePattern&&Fn(l.excludePattern,a),f=d?d.map((function(){return[]})):[[]],g=new e.Map,m=e.createGetCanonicalFileName(a),y=0,h=l.basePaths;y<h.length;y++){var v=h[y];b(v,e.combinePaths(o,v),s)}return e.flatten(f);function b(t,n,i){var a=m(u(n));if(!g.has(a)){g.set(a,!0);for(var o=c(t),s=o.files,l=o.directories,y=function(i){var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(p&&p.test(o))return"continue";if(d){var s=e.findIndex(d,(function(e){return e.test(o)}));-1!==s&&f[s].push(a)}else f[0].push(a)},h=0,v=e.sort(s,e.compareStringsCaseSensitive);h<v.length;h++){y(S=v[h])}if(void 0===i||0!=--i)for(var x=0,D=e.sort(l,e.compareStringsCaseSensitive);x<D.length;x++){var S=D[x],T=e.combinePaths(t,S),E=e.combinePaths(n,S);_&&!_.test(E)||p&&p.test(E)||b(T,E,i)}}}},e.ensureScriptKind=function(e,t){return t||In(e)||3},e.getScriptKindFromFileName=In,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var On=r(e.supportedTSExtensions,e.supportedJSExtensions),Mn=r(e.supportedTSExtensions,e.supportedJSExtensions,[".json"]);function Ln(t,n){var i=t&&t.allowJs;if(!n||0===n.length)return i?On:e.supportedTSExtensions;var a=r(i?On:e.supportedTSExtensions,e.mapDefined(n,(function(e){return 7===e.scriptKind||i&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t})));return e.deduplicate(a,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Rn(t,n){return t&&t.resolveJsonModule?n===On?Mn:n===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:r(n,[".json"]):n}function Bn(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=Ln,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=Rn,e.hasJSFileExtension=function(t){return e.some(e.supportedJSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.hasTSFileExtension=function(t){return e.some(e.supportedTSExtensions,(function(r){return e.fileExtensionIs(t,r)}))},e.isSupportedSourceFileName=function(t,r,n){if(!t)return!1;for(var i=0,a=Rn(r,Ln(r,n));i<a.length;i++){var o=a[i];if(e.fileExtensionIs(t,o))return!0}return!1},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(t,r){for(var n=r.length-1;n>=0;n--)if(e.fileExtensionIs(t,r[n]))return Bn(n,r);return 0},e.adjustExtensionPriority=Bn,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var jn=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Jn(e){for(var t=0,r=jn;t<r.length;t++){var n=Kn(e,r[t]);if(void 0!==n)return n}return e}function Kn(t,r){return e.fileExtensionIs(t,r)?zn(t,r):void 0}function zn(e,t){return e.substring(0,e.length-t.length)}function Un(t){e.Debug.assert(pn(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function Vn(e){return!(e>=0)}function qn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Wn(t){return e.find(jn,(function(r){return e.fileExtensionIs(t,r)}))}function Hn(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,Hn)}function Gn(e,t){return e.pos=t,e}function Yn(e,t){return e.end=t,e}function Xn(e,t,r){return Yn(Gn(e,t),r)}function Qn(e,t){return e&&t&&(e.parent=t),e}e.removeFileExtension=Jn,e.tryRemoveExtension=Kn,e.removeExtension=zn,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,jn,!1)},e.tryParsePattern=Un,e.positionIsSynthesized=Vn,e.extensionIsTS=qn,e.resolutionExtensionIsTSOrJson=function(e){return qn(e)||".json"===e},e.extensionFromPath=function(t){var r=Wn(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Wn(e)},e.tryGetExtensionFromPath=Wn,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(pn(o)){var s=Un(o);if(s)n.push(s);else if(o===r)return o}}return e.findBestPatternMatch(n,(function(e){return e}),r)},e.sliceAfter=function(t,r){var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return r.length?(e.relatedInformation||(e.relatedInformation=[]),(t=e.relatedInformation).push.apply(t,r),e):e},e.minAndMax=function(t,r){e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(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=Hn,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],h=y/10|0;o[u]=h,m=y-10*h,h&&!g&&(f=u,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(e){return!!(8388608&e.flags)||ue(e)||function(e){if(78!==e.kind)return!1;var t=s(e.parent,(function(e){switch(e.kind){case 283:return!0;case 198:case 220:return!1;default:return"quit"}}));return 116===(null==t?void 0:t.token)||250===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;78===e.kind||198===e.kind;)e=e.parent;if(157!==e.kind)return!1;if(sr(e.parent,128))return!0;var t=e.parent.parent.kind;return 250===t||176===t}(e)||!se(e)},e.typeOnlyDeclarationIsExport=function(e){return 267===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++){if(!r(n,t[i]))return!1}return!0},e.setTextRangePos=Gn,e.setTextRangeEnd=Yn,e.setTextRangePosEnd=Xn,e.setTextRangePosWidth=function(e,t,r){return Xn(e,t,t+r)},e.setNodeFlags=function(e,t){return e&&(e.flags=t),e},e.setParent=Qn,e.setEachParent=function(e,t){if(e)for(var r=0,n=e;r<n.length;r++){Qn(n[r],t)}return e},e.setParentRecursive=function(t,r){return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:function(t,r){return n(t,r)||function(t){if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}}(t)}),t):t;function n(e,t){if(r&&e.parent===t)return"skip";Qn(e,t)}}}(u||(u={})),function(e){e.createBaseNodeFactory=function(){var t,r,n,i,a;return{createBaseSourceFileNode:function(t){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(r){return new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}}}(u||(u={})),function(e){e.createParenthesizerRules=function(t){return{parenthesizeLeftSideOfBinary:function(e,t){return n(e,t,!0)},parenthesizeRightSideOfBinary:function(e,t,r){return n(e,r,!1,t)},parenthesizeExpressionOfComputedPropertyName:function(r){return e.isCommaSequence(r)?t.createParenthesizedExpression(r):r},parenthesizeConditionOfConditionalExpression:function(r){var n=e.getOperatorPrecedence(214,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);if(1!==e.compareValues(a,n))return t.createParenthesizedExpression(r);return r},parenthesizeBranchOfConditionalExpression:function(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault:function(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 218:case 205:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew:function(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 200:return t.createParenthesizedExpression(r);case 201:return n.arguments?r:t.createParenthesizedExpression(r)}return i(r)},parenthesizeLeftSideOfAccess:i,parenthesizeOperandOfPostfixUnary:function(r){return e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeOperandOfPrefixUnary:function(r){return e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeExpressionsOfCommaDelimitedList:function(r){var n=e.sameMap(r,a);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:a,parenthesizeExpressionOfExpressionStatement:function(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(205===a||206===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;if(197===s||205===s)return e.setTextRange(t.createParenthesizedExpression(r),r);return r},parenthesizeConciseBodyOfArrowFunction:function(r){if(!e.isBlock(r)&&(e.isCommaSequence(r)||197===e.getLeftmostExpression(r,!1).kind))return e.setTextRange(t.createParenthesizedExpression(r),r);return r},parenthesizeMemberOfConditionalType:o,parenthesizeMemberOfElementType:s,parenthesizeElementTypeOfArrayType:function(e){switch(e.kind){case 175:case 187:case 184:return t.createParenthesizedType(e)}return s(e)},parenthesizeConstituentTypesOfUnionOrIntersectionType:function(r){return t.createNodeArray(e.sameMap(r,s))},parenthesizeTypeArguments:function(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,c))}};function r(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(213===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var n=r(t.left),i=e.isLiteralKind(n)&&n===r(t.right)?n:0;return t.cachedLiteralKind=i,i}return 0}function n(n,i,a,o){return 204===e.skipPartiallyEmittedExpressions(i).kind?i:function(t,n,i,a){var o=e.getOperatorPrecedence(213,t),s=e.getOperatorAssociativity(213,t),c=e.skipPartiallyEmittedExpressions(n);if(!i&&206===n.kind&&o>3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!i&&1===s&&216===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)&&(201!==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(213,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function o(e){return 183===e.kind?t.createParenthesizedType(e):e}function s(e){switch(e.kind){case 181:case 182:case 173:case 174: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 194:case 196:return o(e);case 193:case 197: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(N)})),m=e.memoize((function(){return 2&i?e.nullNodeConverters:e.createNodeConverters(N)})),y=e.memoizeOne((function(e){return function(t,r){return Nt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return Ct(e,t)}})),b=e.memoizeOne((function(e){return function(t){return kt(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return F(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return qr(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(qr(e,r),t):t}(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r){return on(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=Xr(t));return t.tagName!==r||t.comment!==n?f(on(e,r,n),t):t}(e,t,r,n)}})),C=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=Xr(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(sn(e,r,n,i),t):t}(e,t,r,n,i)}})),N={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:A,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 gn(t,!1);case 12:return gn(t,!0);case 13:return H(t);case 14:return wt(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:he,updateMethodDeclaration:ve,createConstructorDeclaration:be,updateConstructorDeclaration:xe,createGetAccessorDeclaration:De,updateGetAccessorDeclaration:Se,createSetAccessorDeclaration:Te,updateSetAccessorDeclaration:Ee,createCallSignature:Ce,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Ce(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:Ne,updateIndexSignature:Ae,createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Fe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Fe(t,r,n),e):e},createTypeReferenceNode:Pe,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Pe(t,r),e):e},createFunctionTypeNode:we,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(we(t,r,n),e):e},createConstructorTypeNode:Ie,updateConstructorTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Ie(t,r,n),e):e},createTypeQueryNode:Oe,updateTypeQueryNode:function(e,t){return e.exprName!==t?f(Oe(t),e):e},createTypeLiteralNode:Me,updateTypeLiteralNode:function(e,t){return e.members!==t?f(Me(t),e):e},createArrayTypeNode:Le,updateArrayTypeNode:function(e,t){return e.elementType!==t?f(Le(t),e):e},createTupleTypeNode:Re,updateTupleTypeNode:function(e,t){return e.elements!==t?f(Re(t),e):e},createNamedTupleMember:Be,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(Be(t,r,n,i),e):e},createOptionalTypeNode:je,updateOptionalTypeNode:function(e,t){return e.type!==t?f(je(t),e):e},createRestTypeNode:Je,updateRestTypeNode:function(e,t){return e.type!==t?f(Je(t),e):e},createUnionTypeNode:function(e){return Ke(181,e)},updateUnionTypeNode:function(e,t){return ze(e,t)},createIntersectionTypeNode:function(e){return Ke(182,e)},updateIntersectionTypeNode:function(e,t){return ze(e,t)},createConditionalTypeNode:Ue,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?f(Ue(t,r,n,i),e):e},createInferTypeNode:Ve,updateInferTypeNode:function(e,t){return e.typeParameter!==t?f(Ve(t),e):e},createImportTypeNode:qe,updateImportTypeNode:function(e,t,r,n,i){void 0===i&&(i=e.isTypeOf);return e.argument!==t||e.qualifier!==r||e.typeArguments!==n||e.isTypeOf!==i?f(qe(t,r,n,i),e):e},createParenthesizedType:We,updateParenthesizedType:function(e,t){return e.type!==t?f(We(t),e):e},createThisTypeNode:function(){var e=F(186);return e.transformFlags=1,e},createTypeOperatorNode:He,updateTypeOperatorNode:function(e,t){return e.type!==t?f(He(e.operator,t),e):e},createIndexedAccessTypeNode:Ge,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?f(Ge(t,r),e):e},createMappedTypeNode:Ye,updateMappedTypeNode:function(e,t,r,n,i){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==n||e.type!==i?f(Ye(t,r,n,i),e):e},createLiteralTypeNode:Xe,updateLiteralTypeNode:function(e,t){return e.literal!==t?f(Xe(t),e):e},createObjectBindingPattern:Qe,updateObjectBindingPattern:function(e,t){return e.elements!==t?f(Qe(t),e):e},createArrayBindingPattern:$e,updateArrayBindingPattern:function(e,t){return e.elements!==t?f($e(t),e):e},createBindingElement:Ze,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?f(Ze(t,r,n,i),e):e},createArrayLiteralExpression:tt,updateArrayLiteralExpression:function(e,t){return e.elements!==t?f(tt(t,e.multiLine),e):e},createObjectLiteralExpression:rt,updateObjectLiteralExpression:function(e,t){return e.properties!==t?f(rt(t,e.multiLine),e):e},createPropertyAccessExpression:4&i?function(t,r){return e.setEmitFlags(nt(t,r),131072)}:nt,updatePropertyAccessExpression:function(t,r,n){if(e.isPropertyAccessChain(t))return at(t,r,t.questionDotToken,e.cast(n,e.isIdentifier));return t.expression!==r||t.name!==n?f(nt(r,n),t):t},createPropertyAccessChain:4&i?function(t,r,n){return e.setEmitFlags(it(t,r,n),131072)}:it,updatePropertyAccessChain:at,createElementAccessExpression:ot,updateElementAccessExpression:function(t,r,n){if(e.isElementAccessChain(t))return ct(t,r,t.questionDotToken,n);return t.expression!==r||t.argumentExpression!==n?f(ot(r,n),t):t},createElementAccessChain:st,updateElementAccessChain:ct,createCallExpression:ut,updateCallExpression:function(t,r,n,i){if(e.isCallChain(t))return dt(t,r,t.questionDotToken,n,i);return t.expression!==r||t.typeArguments!==n||t.arguments!==i?f(ut(r,n,i),t):t},createCallChain:lt,updateCallChain:dt,createNewExpression:_t,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?f(_t(t,r,n),e):e},createTaggedTemplateExpression:pt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?f(pt(t,r,n),e):e},createTypeAssertion:ft,updateTypeAssertion:gt,createParenthesizedExpression:mt,updateParenthesizedExpression:yt,createFunctionExpression:ht,updateFunctionExpression:vt,createArrowFunction:bt,updateArrowFunction:xt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?f(Dt(t),e):e},createTypeOfExpression:St,updateTypeOfExpression:function(e,t){return e.expression!==t?f(St(t),e):e},createVoidExpression:Tt,updateVoidExpression:function(e,t){return e.expression!==t?f(Tt(t),e):e},createAwaitExpression:Et,updateAwaitExpression:function(e,t){return e.expression!==t?f(Et(t),e):e},createPrefixUnaryExpression:Ct,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?f(Ct(e.operator,t),e):e},createPostfixUnaryExpression:kt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?f(kt(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:At,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(At(t,r,n,i,a),e):e},createTemplateExpression:Ft,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(Ft(t,r),e):e},createTemplateHead:function(e,t,r){return Pt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return Pt(16,e,t,r)},createTemplateTail:function(e,t,r){return Pt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return Pt(14,e,t,r)},createTemplateLiteralLikeNode:wt,createYieldExpression:It,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?f(It(t,r),e):e},createSpreadElement:Ot,updateSpreadElement:function(e,t){return e.expression!==t?f(Ot(t),e):e},createClassExpression:Mt,updateClassExpression:Lt,createOmittedExpression:function(){return et(219)},createExpressionWithTypeArguments:Rt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?f(Rt(t,r),e):e},createAsExpression:Bt,updateAsExpression:jt,createNonNullExpression:Jt,updateNonNullExpression:Kt,createNonNullChain:zt,updateNonNullChain:Ut,createMetaProperty:Vt,updateMetaProperty:function(e,t){return e.name!==t?f(Vt(e.keywordToken,t),e):e},createTemplateSpan:qt,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?f(qt(t,r),e):e},createSemicolonClassElement:function(){var e=F(226);return e.transformFlags|=256,e},createBlock:Wt,updateBlock:function(e,t){return e.statements!==t?f(Wt(t,e.multiLine),e):e},createVariableStatement:Ht,updateVariableStatement:Gt,createEmptyStatement:Yt,createExpressionStatement:Xt,updateExpressionStatement:function(e,t){return e.expression!==t?f(Xt(t),e):e},createIfStatement:Qt,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?f(Qt(t,r,n),e):e},createDoStatement:$t,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?f($t(t,r),e):e},createWhileStatement:Zt,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(Zt(t,r),e):e},createForStatement:er,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?f(er(t,r,n,i),e):e},createForInStatement:tr,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?f(tr(t,r,n),e):e},createForOfStatement:rr,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?f(rr(t,r,n,i),e):e},createContinueStatement:nr,updateContinueStatement:function(e,t){return e.label!==t?f(nr(t),e):e},createBreakStatement:ir,updateBreakStatement:function(e,t){return e.label!==t?f(ir(t),e):e},createReturnStatement:ar,updateReturnStatement:function(e,t){return e.expression!==t?f(ar(t),e):e},createWithStatement:or,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(or(t,r),e):e},createSwitchStatement:sr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?f(sr(t,r),e):e},createLabeledStatement:cr,updateLabeledStatement:ur,createThrowStatement:lr,updateThrowStatement:function(e,t){return e.expression!==t?f(lr(t),e):e},createTryStatement:dr,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?f(dr(t,r,n),e):e},createDebuggerStatement:function(){return F(245)},createVariableDeclaration:_r,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?f(_r(t,r,n,i),e):e},createVariableDeclarationList:pr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?f(pr(t,e.flags),e):e},createFunctionDeclaration:fr,updateFunctionDeclaration:gr,createClassDeclaration:mr,updateClassDeclaration:yr,createInterfaceDeclaration:hr,updateInterfaceDeclaration:vr,createTypeAliasDeclaration:br,updateTypeAliasDeclaration:xr,createEnumDeclaration:Dr,updateEnumDeclaration:Sr,createModuleDeclaration:Tr,updateModuleDeclaration:Er,createModuleBlock:Cr,updateModuleBlock:function(e,t){return e.statements!==t?f(Cr(t),e):e},createCaseBlock:kr,updateCaseBlock:function(e,t){return e.clauses!==t?f(kr(t),e):e},createNamespaceExportDeclaration:Nr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?f(Nr(t),e):e},createImportEqualsDeclaration:Ar,updateImportEqualsDeclaration:Fr,createImportDeclaration:Pr,updateImportDeclaration:wr,createImportClause:Ir,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?f(Ir(t,r,n),e):e},createNamespaceImport:Or,updateNamespaceImport:function(e,t){return e.name!==t?f(Or(t),e):e},createNamespaceExport:Mr,updateNamespaceExport:function(e,t){return e.name!==t?f(Mr(t),e):e},createNamedImports:Lr,updateNamedImports:function(e,t){return e.elements!==t?f(Lr(t),e):e},createImportSpecifier:Rr,updateImportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Rr(t,r),e):e},createExportAssignment:Br,updateExportAssignment:jr,createExportDeclaration:Jr,updateExportDeclaration:Kr,createNamedExports:zr,updateNamedExports:function(e,t){return e.elements!==t?f(zr(t),e):e},createExportSpecifier:Ur,updateExportSpecifier:function(e,t,r){return e.propertyName!==t||e.name!==r?f(Ur(t,r),e):e},createMissingDeclaration:function(){return P(268,void 0,void 0)},createExternalModuleReference:Vr,updateExternalModuleReference:function(e,t){return e.expression!==t?f(Vr(t),e):e},get createJSDocAllType(){return x(299)},get createJSDocUnknownType(){return x(300)},get createJSDocNonNullableType(){return D(302)},get updateJSDocNonNullableType(){return S(302)},get createJSDocNullableType(){return D(301)},get updateJSDocNullableType(){return S(301)},get createJSDocOptionalType(){return D(303)},get updateJSDocOptionalType(){return S(303)},get createJSDocVariadicType(){return D(305)},get updateJSDocVariadicType(){return S(305)},get createJSDocNamepathType(){return D(306)},get updateJSDocNamepathType(){return S(306)},createJSDocFunctionType:Wr,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?f(Wr(t,r),e):e},createJSDocTypeLiteral:Hr,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?f(Hr(t,r),e):e},createJSDocTypeExpression:Gr,updateJSDocTypeExpression:function(e,t){return e.type!==t?f(Gr(t),e):e},createJSDocSignature:Yr,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f(Yr(t,r,n),e):e},createJSDocTemplateTag:$r,updateJSDocTemplateTag:function(e,t,r,n,i){void 0===t&&(t=Xr(e));return e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?f($r(t,r,n,i),e):e},createJSDocTypedefTag:Zr,updateJSDocTypedefTag:function(e,t,r,n,i){void 0===t&&(t=Xr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(Zr(t,r,n,i),e):e},createJSDocParameterTag:en,updateJSDocParameterTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Xr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(en(t,r,n,i,a,o),e):e},createJSDocPropertyTag:tn,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){void 0===t&&(t=Xr(e));return e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(tn(t,r,n,i,a,o),e):e},createJSDocCallbackTag:rn,updateJSDocCallbackTag:function(e,t,r,n,i){void 0===t&&(t=Xr(e));return e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(rn(t,r,n,i),e):e},createJSDocAugmentsTag:nn,updateJSDocAugmentsTag:function(e,t,r,n){void 0===t&&(t=Xr(e));return e.tagName!==t||e.class!==r||e.comment!==n?f(nn(t,r,n),e):e},createJSDocImplementsTag:an,updateJSDocImplementsTag:function(e,t,r,n){void 0===t&&(t=Xr(e));return e.tagName!==t||e.class!==r||e.comment!==n?f(an(t,r,n),e):e},get createJSDocTypeTag(){return C(325)},get updateJSDocTypeTag(){return k(325)},get createJSDocReturnTag(){return C(323)},get updateJSDocReturnTag(){return k(323)},get createJSDocThisTag(){return C(324)},get updateJSDocThisTag(){return k(324)},get createJSDocEnumTag(){return C(321)},get updateJSDocEnumTag(){return k(321)},get createJSDocAuthorTag(){return T(313)},get updateJSDocAuthorTag(){return E(313)},get createJSDocClassTag(){return T(315)},get updateJSDocClassTag(){return E(315)},get createJSDocPublicTag(){return T(316)},get updateJSDocPublicTag(){return E(316)},get createJSDocPrivateTag(){return T(317)},get updateJSDocPrivateTag(){return E(317)},get createJSDocProtectedTag(){return T(318)},get updateJSDocProtectedTag(){return E(318)},get createJSDocReadonlyTag(){return T(319)},get updateJSDocReadonlyTag(){return E(319)},get createJSDocDeprecatedTag(){return T(314)},get updateJSDocDeprecatedTag(){return E(314)},createJSDocUnknownTag:cn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?f(cn(t,r),e):e},createJSDocComment:un,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?f(un(t,r),e):e},createJsxElement:ln,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?f(ln(t,r,n),e):e},createJsxSelfClosingElement:dn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(dn(t,r,n),e):e},createJsxOpeningElement:_n,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(_n(t,r,n),e):e},createJsxClosingElement:pn,updateJsxClosingElement:function(e,t){return e.tagName!==t?f(pn(t),e):e},createJsxFragment:fn,createJsxText:gn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?f(gn(t,r),e):e},createJsxOpeningFragment:function(){var e=F(275);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=F(276);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?f(fn(t,r,n),e):e},createJsxAttribute:mn,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?f(mn(t,r),e):e},createJsxAttributes:yn,updateJsxAttributes:function(e,t){return e.properties!==t?f(yn(t),e):e},createJsxSpreadAttribute:hn,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?f(hn(t),e):e},createJsxExpression:vn,updateJsxExpression:function(e,t){return e.expression!==t?f(vn(e.dotDotDotToken,t),e):e},createCaseClause:bn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?f(bn(t,r),e):e},createDefaultClause:xn,updateDefaultClause:function(e,t){return e.statements!==t?f(xn(t),e):e},createHeritageClause:Dn,updateHeritageClause:function(e,t){return e.types!==t?f(Dn(e.token,t),e):e},createCatchClause:Sn,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?f(Sn(t,r),e):e},createPropertyAssignment:Tn,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)}(Tn(t,r),e):e},createShorthandPropertyAssignment:En,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)}(En(t,r),e):e},createSpreadAssignment:Cn,updateSpreadAssignment:function(e,t){return e.expression!==t?f(Cn(t),e):e},createEnumMember:kn,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?f(kn(t,r),e):e},createSourceFile:function(e,t,r){var n=p.createBaseSourceFileNode(294);return n.statements=A(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(294);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=A(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:Nn,updateBundle:function(t,r,n){void 0===n&&(n=e.emptyArray);return t.sourceFiles!==r||t.prepends!==n?f(Nn(r,n),t):t},createUnparsedSource:function(t,r,n){var i=F(296);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 An(289,e)},createUnparsedPrepend:function(e,t){var r=An(290,e);return r.texts=t,r},createUnparsedTextLike:function(e,t){return An(t?292:291,e)},createUnparsedSyntheticReference:function(e){var t=F(293);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=F(297);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=F(224);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=F(329);return t._children=e,t},createNotEmittedStatement:function(t){var r=F(330);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Fn,updatePartiallyEmittedExpression:Pn,createCommaListExpression:In,updateCommaListExpression:function(e,t){return e.elements!==t?f(In(t),e):e},createEndOfDeclarationMarker:function(e){var t=F(334);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=F(333);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:On,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?f(On(t,r),e):e},cloneNode:Mn,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 v(39)},get createPrefixMinus(){return v(40)},get createPrefixIncrement(){return v(45)},get createPrefixDecrement(){return v(46)},get createBitwiseNot(){return v(54)},get createLogicalNot(){return v(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return ut(ht(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Wt(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return ut(bt(void 0,void 0,t?[t]:[],void 0,void 0,Wt(e,!0)),void 0,r?[r]:[])},createVoidZero:Ln,createExportDefault:function(e){return Br(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Jr(void 0,void 0,!1,zr([Ur(void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?N.createStrictEquality(e,Ln()):N.createStrictEquality(St(e),W(t))},createMethodCall:Rn,createGlobalMethodCall:Bn,createFunctionBindCall:function(e,t,n){return Rn(e,"bind",r([t],n))},createFunctionCallCall:function(e,t,n){return Rn(e,"call",r([t],n))},createFunctionApplyCall:function(e,t,r){return Rn(e,"apply",[t,r])},createArraySliceCall:function(e,t){return Rn(e,"slice",void 0===t?[]:[Qn(t)])},createArrayConcatCall:function(e,t){return Rn(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return Bn("Object","defineProperty",[e,Qn(t),r])},createPropertyDescriptor:function(t,r){var n=[];jn(n,"enumerable",Qn(t.enumerable)),jn(n,"configurable",Qn(t.configurable));var i=jn(n,"writable",Qn(t.writable));i=jn(n,"value",t.value)||i;var a=jn(n,"get",t.get);return a=jn(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),rt(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=Ln(),o=g().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?Jn(s.expression,i)?(a=Q(r),o=nt(e.setTextRange(N.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?Jn(s.expression,i)?(a=Q(r),o=ot(e.setTextRange(N.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=Ln(),o=g().parenthesizeLeftSideOfAccess(t));return{target:o,thisArg:a}},inlineExpressions:function(t){return t.length>10?In(t):e.reduceLeft(t,N.createComma)},getInternalName:function(e,t,r){return Kn(e,t,r,49152)},getLocalName:function(e,t,r){return Kn(e,t,r,16384)},getExportName:zn,getDeclarationName:function(e,t,r){return Kn(e,t,r)},getNamespaceMemberName:Un,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return Un(t,Kn(r),n,i);return zn(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 204:return yt(e,t);case 203:return gt(e,e.type,t);case 221:return jt(e,t,e.type);case 222:return Kt(e,t);case 331:return Pn(e,t)}}(r,t(r.expression,n));return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=ur(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:qn,copyPrologue:function(e,t,r,n){var i=Wn(e,t,r);return Hn(e,t,i,n)},copyStandardPrologue:Wn,copyCustomPrologue:Hn,ensureUseStrict:function(t){if(!e.findUseStrictPrologue(t))return e.setTextRange(A(r([qn()],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)||Wt(t)},mergeLexicalEnvironment:function(t,n){if(!e.some(n))return t;var i=Gn(t,e.isPrologueDirective,0),a=Gn(t,e.isHoistedFunction,i),o=Gn(t,e.isHoistedVariableStatement,a),s=Gn(n,e.isPrologueDirective,0),c=Gn(n,e.isHoistedFunction,s),u=Gn(n,e.isHoistedVariableStatement,c),l=Gn(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<i;p++){var f=t[p];_.set(f.expression.text,!0)}for(p=s-1;p>=0;p--){var g=n[p];_.has(g.expression.text)||d.unshift(g)}}if(e.isNodeArray(t))return e.setTextRange(A(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)?ve(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)?Ee(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ae(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?vt(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?xt(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Lt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?Gt(t,r,t.declarationList):e.isFunctionDeclaration(t)?gr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?yr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?vr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?xr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Sr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Er(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Fr(t,t.decorators,r,t.name,t.moduleReference):e.isImportDeclaration(t)?wr(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?jr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Kr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return N;function A(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t))return void 0===t.transformFlags&&_(t),t;var n=t.length,i=n>=1&&n<=4?t.slice():t;return e.setTextRangePosEnd(i,-1,-1),i.hasTrailingComma=!!r,_(i),i}function F(e){return p.createBaseNode(e)}function P(e,t,r){var n=F(e);return n.decorators=Yn(t),n.modifiers=Yn(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=Xn(i),a.name=i,i)switch(a.kind){case 164:case 166:case 167:case 162:case 285: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=Yn(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=A(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=Yn(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=A(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=A(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<=155,"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 141:case 125:case 133:case 84:case 128:case 143:case 154:case 140:case 144:case 146:case 131:case 147:case 113:case 151:case 149: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(141)),256&e&&t.push(ie(129)),t}function oe(e,t){var r=F(156);return r.left=e,r.right=Xn(t),r.transformFlags|=l(r.left)|u(r.right),r}function se(e){var t=F(157);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=33024|l(t.expression),t}function ce(e,t,r){var n=w(158,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(159,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=F(160);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=2049|l(t.expression),t}function _e(e,t,r,n){var i=w(161,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(162,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(163,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 he(t,r,n,i,a,o,s,c,u){var d=L(164,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 ve(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?R(he(t,r,n,i,a,o,s,c,u),e):e}function be(e,t,r,n){var i=L(165,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(be(t,r,n,i),e):e}function De(e,t,r,n,i,a){return L(166,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(De(t,r,n,i,a,o),e):e}function Te(e,t,r,n,i){return L(167,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(Te(t,r,n,i,a),e):e}function Ce(e,t,r){var n=O(168,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function ke(e,t,r){var n=O(169,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ne(e,t,r,n){var i=O(170,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Ae(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?M(Ne(t,r,n,i),e):e}function Fe(e,t,r){var n=F(171);return n.assertsModifier=e,n.parameterName=Xn(t),n.type=r,n.transformFlags=1,n}function Pe(e,t){var r=F(172);return r.typeName=Xn(e),r.typeArguments=t&&g().parenthesizeTypeArguments(A(t)),r.transformFlags=1,r}function we(e,t,r){var n=O(173,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}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){var t=F(175);return t.exprName=e,t.transformFlags=1,t}function Me(e){var t=F(176);return t.members=A(e),t.transformFlags=1,t}function Le(e){var t=F(177);return t.elementType=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Re(e){var t=F(178);return t.elements=A(e),t.transformFlags=1,t}function Be(e,t,r,n){var i=F(191);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function je(e){var t=F(179);return t.type=g().parenthesizeElementTypeOfArrayType(e),t.transformFlags=1,t}function Je(e){var t=F(180);return t.type=e,t.transformFlags=1,t}function Ke(e,t){var r=F(e);return r.types=g().parenthesizeConstituentTypesOfUnionOrIntersectionType(t),r.transformFlags=1,r}function ze(e,t){return e.types!==t?f(Ke(e.kind,t),e):e}function Ue(e,t,r,n){var i=F(183);return i.checkType=g().parenthesizeMemberOfConditionalType(e),i.extendsType=g().parenthesizeMemberOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Ve(e){var t=F(184);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t,r,n){void 0===n&&(n=!1);var i=F(192);return i.argument=e,i.qualifier=t,i.typeArguments=r&&g().parenthesizeTypeArguments(r),i.isTypeOf=n,i.transformFlags=1,i}function We(e){var t=F(185);return t.type=e,t.transformFlags=1,t}function He(e,t){var r=F(187);return r.operator=e,r.type=g().parenthesizeMemberOfElementType(t),r.transformFlags=1,r}function Ge(e,t){var r=F(188);return r.objectType=g().parenthesizeMemberOfElementType(e),r.indexType=t,r.transformFlags=1,r}function Ye(e,t,r,n){var i=F(189);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function Xe(e){var t=F(190);return t.literal=e,t.transformFlags=1,t}function Qe(e){var t=F(193);return t.elements=A(e),t.transformFlags|=131328|d(t.elements),8192&t.transformFlags&&(t.transformFlags|=16416),t}function $e(e){var t=F(194);return t.elements=A(e),t.transformFlags|=131328|d(t.elements),t}function Ze(t,r,n,i){var a=J(195,void 0,void 0,n,i);return a.propertyName=Xn(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 et(e){return F(e)}function tt(e,t){var r=et(196);return r.elements=g().parenthesizeExpressionsOfCommaDelimitedList(A(e)),r.multiLine=t,r.transformFlags|=d(r.elements),r}function rt(e,t){var r=et(197);return r.properties=A(e),r.multiLine=t,r.transformFlags|=d(r.properties),r}function nt(t,r){var n=et(198);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.name=Xn(r),n.transformFlags=l(n.expression)|(e.isIdentifier(n.name)?u(n.name):l(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function it(t,r,n){var i=et(198);return i.flags|=32,i.expression=g().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=Xn(n),i.transformFlags|=8|l(i.expression)|l(i.questionDotToken)|(e.isIdentifier(i.name)?u(i.name):l(i.name)),i}function at(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(it(r,n,i),t):t}function ot(t,r){var n=et(199);return n.expression=g().parenthesizeLeftSideOfAccess(t),n.argumentExpression=Qn(r),n.transformFlags|=l(n.expression)|l(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=96),n}function st(e,t,r){var n=et(199);return n.flags|=32,n.expression=g().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=Qn(r),n.transformFlags|=l(n.expression)|l(n.questionDotToken)|l(n.argumentExpression)|8,n}function ct(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(st(r,n,i),t):t}function ut(t,r,n){var i=et(200);return i.expression=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=Yn(r),i.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(A(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 lt(t,r,n,i){var a=et(200);return a.flags|=32,a.expression=g().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=Yn(n),a.arguments=g().parenthesizeExpressionsOfCommaDelimitedList(A(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 dt(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(lt(r,n,i,a),t):t}function _t(e,t,r){var n=et(201);return n.expression=g().parenthesizeExpressionOfNew(e),n.typeArguments=Yn(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 pt(t,r,n){var i=et(202);return i.tag=g().parenthesizeLeftSideOfAccess(t),i.typeArguments=Yn(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 ft(e,t){var r=et(203);return r.expression=g().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=l(r.expression)|l(r.type)|1,r}function gt(e,t,r){return e.type!==t||e.expression!==r?f(ft(t,r),e):e}function mt(e){var t=et(204);return t.expression=e,t.transformFlags=l(t.expression),t}function yt(e,t){return e.expression!==t?f(mt(t),e):e}function ht(t,r,n,i,a,o,s){var c=L(205,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 vt(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(ht(t,r,n,i,a,o,s),e):e}function bt(t,r,n,i,a,o){var s=L(206,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 xt(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 Dt(e){var t=et(207);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=l(t.expression),t}function St(e){var t=et(208);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=l(t.expression),t}function Tt(e){var t=et(209);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=l(t.expression),t}function Et(e){var t=et(210);return t.expression=g().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=524384|l(t.expression),t}function Ct(e,t){var r=et(211);return r.operator=e,r.operand=g().parenthesizeOperandOfPrefixUnary(t),r.transformFlags|=l(r.operand),r}function kt(e,t){var r=et(212);return r.operator=t,r.operand=g().parenthesizeOperandOfPostfixUnary(e),r.transformFlags=l(r.operand),r}function Nt(t,r,n){var i,a=et(213),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:e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=1280):42===s||66===s?a.transformFlags|=128:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=4),a}function At(e,t,r,n,i){var a=et(214);return a.condition=g().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:ee(57),a.whenTrue=g().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:ee(58),a.whenFalse=g().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=l(a.condition)|l(a.questionToken)|l(a.whenTrue)|l(a.colonToken)|l(a.whenFalse),a}function Ft(e,t){var r=et(215);return r.head=e,r.templateSpans=A(t),r.transformFlags|=l(r.head)|d(r.templateSpans)|256,r}function Pt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&"object"==typeof(o=function(r,n){t||(t=e.createScanner(99,!1,0));switch(r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();23===a&&(a=t.reScanTemplateToken(!1));if(t.isUnterminated())return t.setText(void 0),c;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}if(void 0===i||1!==t.scan())return t.setText(void 0),c;return t.setText(void 0),i}(r,i)))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return wt(r,n,i,a)}function wt(e,t,r,n){var i=Z(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=256,i.templateFlags&&(i.transformFlags|=32),i}function It(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=et(216);return n.expression=r&&g().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=262432|(l(n.expression)|l(n.asteriskToken)),n}function Ot(e){var t=et(217);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=8448|l(t.expression),t}function Mt(e,t,r,n,i,a){var o=j(218,e,t,r,n,i,a);return o.transformFlags|=256,o}function Lt(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Mt(t,r,n,i,a,o),e):e}function Rt(e,t){var r=F(220);return r.expression=g().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&g().parenthesizeTypeArguments(t),r.transformFlags|=l(r.expression)|d(r.typeArguments)|256,r}function Bt(e,t){var r=et(221);return r.expression=e,r.type=t,r.transformFlags|=l(r.expression)|l(r.type)|1,r}function jt(e,t,r){return e.expression!==t||e.type!==r?f(Bt(t,r),e):e}function Jt(e){var t=et(222);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|l(t.expression),t}function Kt(t,r){return e.isNonNullChain(t)?Ut(t,r):t.expression!==r?f(Jt(r),t):t}function zt(e){var t=et(222);return t.flags|=32,t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|l(t.expression),t}function Ut(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?f(zt(r),t):t}function Vt(t,r){var n=et(223);switch(n.keywordToken=t,n.name=r,n.transformFlags|=l(n.name),t){case 102:n.transformFlags|=256;break;case 99:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function qt(e,t){var r=F(225);return r.expression=e,r.literal=t,r.transformFlags|=l(r.expression)|l(r.literal)|256,r}function Wt(e,t){var r=F(227);return r.statements=A(e),r.multiLine=t,r.transformFlags|=d(r.statements),r}function Ht(t,r){var n=P(229,void 0,t);return n.declarationList=e.isArray(r)?pr(r):r,n.transformFlags|=l(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function Gt(e,t,r){return e.modifiers!==t||e.declarationList!==r?f(Ht(t,r),e):e}function Yt(){return F(228)}function Xt(e){var t=F(230);return t.expression=g().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=l(t.expression),t}function Qt(e,t,r){var n=F(231);return n.expression=e,n.thenStatement=$n(t),n.elseStatement=$n(r),n.transformFlags|=l(n.expression)|l(n.thenStatement)|l(n.elseStatement),n}function $t(e,t){var r=F(232);return r.statement=$n(e),r.expression=t,r.transformFlags|=l(r.statement)|l(r.expression),r}function Zt(e,t){var r=F(233);return r.expression=e,r.statement=$n(t),r.transformFlags|=l(r.expression)|l(r.statement),r}function er(e,t,r,n){var i=F(234);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=$n(n),i.transformFlags|=l(i.initializer)|l(i.condition)|l(i.incrementor)|l(i.statement),i}function tr(e,t,r){var n=F(235);return n.initializer=e,n.expression=t,n.statement=$n(r),n.transformFlags|=l(n.initializer)|l(n.expression)|l(n.statement),n}function rr(e,t,r,n){var i=F(236);return i.awaitModifier=e,i.initializer=t,i.expression=g().parenthesizeExpressionForDisallowedComma(r),i.statement=$n(n),i.transformFlags|=l(i.awaitModifier)|l(i.initializer)|l(i.expression)|l(i.statement)|256,e&&(i.transformFlags|=32),i}function nr(e){var t=F(237);return t.label=Xn(e),t.transformFlags|=1048576|l(t.label),t}function ir(e){var t=F(238);return t.label=Xn(e),t.transformFlags|=1048576|l(t.label),t}function ar(e){var t=F(239);return t.expression=e,t.transformFlags|=1048608|l(t.expression),t}function or(e,t){var r=F(240);return r.expression=e,r.statement=$n(t),r.transformFlags|=l(r.expression)|l(r.statement),r}function sr(e,t){var r=F(241);return r.expression=g().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=l(r.expression)|l(r.caseBlock),r}function cr(e,t){var r=F(242);return r.label=Xn(e),r.statement=$n(t),r.transformFlags|=l(r.label)|l(r.statement),r}function ur(e,t,r){return e.label!==t||e.statement!==r?f(cr(t,r),e):e}function lr(e){var t=F(243);return t.expression=e,t.transformFlags|=l(t.expression),t}function dr(e,t,r){var n=F(244);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=l(n.tryBlock)|l(n.catchClause)|l(n.finallyBlock),n}function _r(e,t,r,n){var i=K(246,void 0,void 0,e,r,n&&g().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=l(i.exclamationToken),t&&(i.transformFlags|=1),i}function pr(e,t){void 0===t&&(t=0);var r=F(247);return r.flags|=3&t,r.declarations=A(e),r.transformFlags|=1048576|d(r.declarations),3&t&&(r.transformFlags|=65792),r}function fr(t,r,n,i,a,o,s,c){var u=L(248,t,r,i,a,o,s,c);return u.asteriskToken=n,!u.body||2&e.modifiersToFlags(u.modifiers)?u.transformFlags=1:(u.transformFlags|=1048576|l(u.asteriskToken),256&e.modifiersToFlags(u.modifiers)?u.asteriskToken?u.transformFlags|=32:u.transformFlags|=64:u.asteriskToken&&(u.transformFlags|=512)),u}function gr(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?R(fr(t,r,n,i,a,o,s,c),e):e}function mr(t,r,n,i,a,o){var s=j(249,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=256,2048&s.transformFlags&&(s.transformFlags|=1)),s}function yr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(mr(t,r,n,i,a,o),e):e}function hr(e,t,r,n,i,a){var o=B(250,e,t,r,n,i);return o.members=A(a),o.transformFlags=1,o}function vr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(hr(t,r,n,i,a,o),e):e}function br(e,t,r,n,i){var a=I(251,e,t,r,n);return a.type=i,a.transformFlags=1,a}function xr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?f(br(t,r,n,i,a),e):e}function Dr(e,t,r,n){var i=w(252,e,t,r);return i.members=A(n),i.transformFlags|=1|d(i.members),i.transformFlags&=-8388609,i}function Sr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?f(Dr(t,r,n,i),e):e}function Tr(t,r,n,i,a){void 0===a&&(a=0);var o=P(253,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=l(o.name)|l(o.body)|1,o.transformFlags&=-8388609,o}function Er(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?f(Tr(t,r,n,i,e.flags),e):e}function Cr(e){var t=F(254);return t.statements=A(e),t.transformFlags|=d(t.statements),t}function kr(e){var t=F(255);return t.clauses=A(e),t.transformFlags|=d(t.clauses),t}function Nr(e){var t=w(256,void 0,void 0,e);return t.transformFlags=1,t}function Ar(t,r,n,i){var a=w(257,t,r,n);return a.moduleReference=i,a.transformFlags|=l(a.moduleReference),e.isExternalModuleReference(a.moduleReference)||(a.transformFlags|=1),a.transformFlags&=-8388609,a}function Fr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.moduleReference!==i?f(Ar(t,r,n,i),e):e}function Pr(e,t,r,n){var i=P(258,e,t);return i.importClause=r,i.moduleSpecifier=n,i.transformFlags|=l(i.importClause)|l(i.moduleSpecifier),i.transformFlags&=-8388609,i}function wr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i?f(Pr(t,r,n,i),e):e}function Ir(e,t,r){var n=F(259);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=l(n.name)|l(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-8388609,n}function Or(e){var t=F(260);return t.name=e,t.transformFlags|=l(t.name),t.transformFlags&=-8388609,t}function Mr(e){var t=F(266);return t.name=e,t.transformFlags|=4|l(t.name),t.transformFlags&=-8388609,t}function Lr(e){var t=F(261);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-8388609,t}function Rr(e,t){var r=F(262);return r.propertyName=e,r.name=t,r.transformFlags|=l(r.propertyName)|l(r.name),r.transformFlags&=-8388609,r}function Br(e,t,r,n){var i=P(263,e,t);return i.isExportEquals=r,i.expression=r?g().parenthesizeRightSideOfBinary(62,void 0,n):g().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=l(i.expression),i.transformFlags&=-8388609,i}function jr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?f(Br(t,r,e.isExportEquals,n),e):e}function Jr(e,t,r,n,i){var a=P(264,e,t);return a.isTypeOnly=r,a.exportClause=n,a.moduleSpecifier=i,a.transformFlags|=l(a.exportClause)|l(a.moduleSpecifier),a.transformFlags&=-8388609,a}function Kr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a?f(Jr(t,r,n,i,a),e):e}function zr(e){var t=F(265);return t.elements=A(e),t.transformFlags|=d(t.elements),t.transformFlags&=-8388609,t}function Ur(e,t){var r=F(267);return r.propertyName=Xn(e),r.name=Xn(t),r.transformFlags|=l(r.propertyName)|l(r.name),r.transformFlags&=-8388609,r}function Vr(e){var t=F(269);return t.expression=e,t.transformFlags|=l(t.expression),t.transformFlags&=-8388609,t}function qr(e,t){var r=F(e);return r.type=t,r}function Wr(e,t){return O(304,void 0,void 0,void 0,void 0,e,t)}function Hr(e,t){void 0===t&&(t=!1);var r=F(308);return r.jsDocPropertyTags=Yn(e),r.isArrayType=t,r}function Gr(e){var t=F(298);return t.type=e,t}function Yr(e,t,r){var n=F(309);return n.typeParameters=Yn(e),n.parameters=A(t),n.type=r,n}function Xr(t){var r=s(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:X(r)}function Qr(e,t,r){var n=F(e);return n.tagName=t,n.comment=r,n}function $r(e,t,r,n){var i=Qr(326,null!=e?e:X("template"),n);return i.constraint=t,i.typeParameters=A(r),i}function Zr(t,r,n,i){var a=Qr(327,null!=t?t:X("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function en(e,t,r,n,i,a){var o=Qr(322,null!=e?e:X("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function tn(e,t,r,n,i,a){var o=Qr(328,null!=e?e:X("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function rn(t,r,n,i){var a=Qr(320,null!=t?t:X("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function nn(e,t,r){var n=Qr(311,null!=e?e:X("augments"),r);return n.class=t,n}function an(e,t,r){var n=Qr(312,null!=e?e:X("implements"),r);return n.class=t,n}function on(e,t,r){return Qr(e,null!=t?t:X(s(e)),r)}function sn(e,t,r,n){var i=Qr(e,null!=t?t:X(s(e)),n);return i.typeExpression=r,i}function cn(e,t){return Qr(310,e,t)}function un(e,t){var r=F(307);return r.comment=e,r.tags=Yn(t),r}function ln(e,t,r){var n=F(270);return n.openingElement=e,n.children=A(t),n.closingElement=r,n.transformFlags|=l(n.openingElement)|d(n.children)|l(n.closingElement)|2,n}function dn(e,t,r){var n=F(271);return n.tagName=e,n.typeArguments=Yn(t),n.attributes=r,n.transformFlags|=l(n.tagName)|d(n.typeArguments)|l(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function _n(e,t,r){var n=F(272);return n.tagName=e,n.typeArguments=Yn(t),n.attributes=r,n.transformFlags|=l(n.tagName)|d(n.typeArguments)|l(n.attributes)|2,t&&(n.transformFlags|=1),n}function pn(e){var t=F(273);return t.tagName=e,t.transformFlags|=2|l(t.tagName),t}function fn(e,t,r){var n=F(274);return n.openingFragment=e,n.children=A(t),n.closingFragment=r,n.transformFlags|=l(n.openingFragment)|d(n.children)|l(n.closingFragment)|2,n}function gn(e,t){var r=F(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function mn(e,t){var r=F(277);return r.name=e,r.initializer=t,r.transformFlags|=l(r.name)|l(r.initializer)|2,r}function yn(e){var t=F(278);return t.properties=A(e),t.transformFlags|=2|d(t.properties),t}function hn(e){var t=F(279);return t.expression=e,t.transformFlags|=2|l(t.expression),t}function vn(e,t){var r=F(280);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=l(r.dotDotDotToken)|l(r.expression)|2,r}function bn(e,t){var r=F(281);return r.expression=g().parenthesizeExpressionForDisallowedComma(e),r.statements=A(t),r.transformFlags|=l(r.expression)|d(r.statements),r}function xn(e){var t=F(282);return t.statements=A(e),t.transformFlags=d(t.statements),t}function Dn(t,r){var n=F(283);switch(n.token=t,n.types=A(r),n.transformFlags|=d(n.types),t){case 93:n.transformFlags|=256;break;case 116:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function Sn(t,r){var n=F(284);return t=e.isString(t)?_r(t,void 0,void 0,void 0):t,n.variableDeclaration=t,n.block=r,n.transformFlags|=l(n.variableDeclaration)|l(n.block),t||(n.transformFlags|=16),n}function Tn(e,t){var r=w(285,void 0,void 0,e);return r.initializer=g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=l(r.name)|l(r.initializer),r}function En(e,t){var r=w(286,void 0,void 0,e);return r.objectAssignmentInitializer=t&&g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=256|l(r.objectAssignmentInitializer),r}function Cn(e){var t=F(287);return t.expression=g().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=16416|l(t.expression),t}function kn(e,t){var r=F(288);return r.name=Xn(e),r.initializer=t&&g().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=l(r.name)|l(r.initializer)|1,r}function Nn(t,r){void 0===r&&(r=e.emptyArray);var n=F(295);return n.prepends=r,n.sourceFiles=t,n}function An(e,t){var r=F(e);return r.data=t,r}function Fn(t,r){var n=F(331);return n.expression=t,n.original=r,n.transformFlags|=1|l(n.expression),e.setTextRange(n,r),n}function Pn(e,t){return e.expression!==t?f(Fn(t,e.original),e):e}function wn(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function In(t){var r=F(332);return r.elements=A(e.sameFlatMap(t,wn)),r.transformFlags|=d(r.elements),r}function On(e,t){var r=F(335);return r.expression=e,r.thisArg=t,r.transformFlags|=l(r.expression)|l(r.thisArg),r}function Mn(t){if(void 0===t)return t;var r=e.isSourceFile(t)?p.createBaseSourceFileNode(294):e.isIdentifier(t)?p.createBaseIdentifierNode(78):e.isPrivateIdentifier(t)?p.createBasePrivateIdentifierNode(79):e.isNodeKind(t.kind)?p.createBaseNode(t.kind):p.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,h(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function Ln(){return Tt(U("0"))}function Rn(e,t,r){return ut(nt(e,t),void 0,r)}function Bn(e,t,r){return Rn(X(e),t,r)}function jn(e,t,r){return!!r&&(e.push(Tn(t,r)),!0)}function Jn(t,r){var n=e.skipParentheses(t);switch(n.kind){case 78:return r;case 107:case 8:case 9:case 10:return!1;case 196:return 0!==n.elements.length;case 197:return n.properties.length>0;default:return!0}}function Kn(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(Mn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return $(t)}function zn(e,t,r){return Kn(e,t,r,8192)}function Un(t,r,n,i){var a=nt(t,e.nodeIsSynthesized(r)?r:Mn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function Vn(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function qn(){return e.startOnNewLine(Xt(W("use strict")))}function Wn(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<o;){var s=t[a];if(!e.isPrologueDirective(s))break;Vn(s)&&(i=!0),r.push(s),a++}return n&&!i&&r.push(qn()),a}function Hn(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function Gn(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function Yn(e){return e?A(e):void 0}function Xn(e){return"string"==typeof e?X(e):e}function Qn(e){return"string"==typeof e?W(e):"number"==typeof e?U(e):"boolean"==typeof e?e?re():ne():e}function $n(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(h(Yt(),t),t):t}}function a(t,r){return t!==r&&e.setTextRange(t,r),t}function o(t,r){return t!==r&&(h(t,r),e.setTextRange(t,r)),t}function s(t){switch(t){case 325:return"type";case 323:return"returns";case 324:return"this";case 321:return"enum";case 313:return"author";case 315:return"class";case 316:return"public";case 317:return"private";case 318:return"protected";case 319:return"readonly";case 326:return"template";case 327:return"typedef";case 322:return"param";case 328:return"prop";case 320:return"callback";case 311:return"augments";case 312:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(t))}}!function(e){e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode"}(e.NodeFactoryFlags||(e.NodeFactoryFlags={})),e.createNodeFactory=i;var c={};function u(e){return-8388609&l(e)}function l(t){if(!t)return 0;var r=t.transformFlags&~p(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?function(e,t){return t|4096&e.transformFlags}(t.name,r):r}function d(e){return e?e.transformFlags:0}function _(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=l(n[r])}e.transformFlags=t}function p(e){if(e>=171&&e<=192)return-2;switch(e){case 200:case 201:case 196:return 536879104;case 253:return 546379776;case 159:return 536870912;case 206:return 547309568;case 205:case 248:return 547313664;case 247:return 537018368;case 249:case 218:return 536905728;case 165:return 547311616;case 162:return 536875008;case 164:case 166:case 167:return 538923008;case 128:case 143:case 154:case 140:case 146:case 144:case 131:case 147:case 113:case 158:case 161:case 163:case 168:case 169:case 170:case 250:case 251:return-2;case 197:return 536922112;case 284:return 536887296;case 193:case 194:return 536879104;case 203:case 221:case 331:case 204:case 105:return 536870912;case 198:case 199: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 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=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;_<p.length;_++){var f=p[_];r.helpers=e.appendIfUnique(r.helpers,f)}void 0!==d&&(r.startsOnNewLine=d);return r}(n,t.emitNode))}return t}e.factory=i(4,y),e.createUnparsedSourceFile=function(t,r,n){var i,a,o,s,c,u,l,d,_,p;e.isString(t)?(o="",s=t,c=t.length,u=r,l=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",u="js"===r?t.javascriptMapPath:t.declarationMapPath,d=function(){return"js"===r?t.javascriptText:t.declarationText},_=function(){return"js"===r?t.javascriptMapText:t.declarationMapText},c=function(){return d().length},t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,p=t.oldFileOfCurrentEmit));var f=p?function(t){for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"lib":n=e.append(n,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(function(t){return e.getAllUnscopedEmitHelpers().get(t)})),s}(e.Debug.assertDefined(a)):function(t,r,n){for(var i,a,o,s,c,u,l,d,_=0,p=t?t.sections:e.emptyArray;_<p.length;_++){var f=p[_];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":d=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,f.data);break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var g=void 0,m=0,y=f.texts;m<y.length;m++){var h=y[m];r&&"internal"===h.kind||(g=e.append(g,e.setTextRange(e.factory.createUnparsedTextLike(h.data,"internal"===h.kind),h)))}u=e.addRange(u,g),l=e.append(l,e.factory.createUnparsedPrepend(f.data,null!=g?g:e.emptyArray));break;case"internal":if(r){l||(l=[]);break}case"text":l=e.append(l,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!l){var v=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(v,0,"function"==typeof n?n():n),l=[v]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,l);return e.setEachParent(i,b),e.setEachParent(l,b),e.setEachParent(u,b),b.hasNoDefaultLib=d,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b}(a,i,c);return f.fileName=o,f.sourceMapPath=u,f.oldFileOfCurrentEmit=p,d&&_?(Object.defineProperty(f,"text",{get:d}),Object.defineProperty(f,"sourceMapText",{get:_})):(e.Debug.assert(!p),f.text=null!=s?s:"",f.sourceMapText=l),f},e.createInputFiles=function(t,r,n,i,a,o,s,c,u,l,d){var _=e.parseNodeFactory.createInputFiles();if(e.isString(t))_.javascriptText=t,_.javascriptMapPath=n,_.javascriptMapText=i,_.declarationText=r,_.declarationMapPath=a,_.declarationMapText=o,_.javascriptPath=s,_.declarationPath=c,_.buildInfoPath=u,_.buildInfo=l,_.oldFileOfCurrentEmit=d;else{var p,f=new e.Map,g=function(e){if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},m=function(e){var t=g(e);return void 0!==t?t:"/* Input file "+e+" was missing */\r\n"};_.javascriptPath=r,_.javascriptMapPath=n,_.declarationPath=e.Debug.assertDefined(i),_.declarationMapPath=a,_.buildInfoPath=o,Object.defineProperties(_,{javascriptText:{get:function(){return m(r)}},javascriptMapText:{get:function(){return g(n)}},declarationText:{get:function(){return m(e.Debug.assertDefined(i))}},declarationMapText:{get:function(){return g(a)}},buildInfo:{get:function(){return function(t){if(void 0===p){var r=t();p=void 0!==r&&e.getBuildInfo(r)}return p||void 0}((function(){return g(o)}))}}})}return _},e.createSourceMapSource=function(t,r,n){return new(m||(m=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.setOriginalNode=h}(u||(u={})),function(e){function t(r){var n;if(!r.emitNode){if(e.isParseTreeNode(r)){if(294===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=function(t){var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++){o[a].emitNode=void 0}},e.removeAllComments=function(e){var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=function(e,r){return t(e).flags=r,e},e.addEmitFlags=function(e,r){var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=function(e,r){return t(e).sourceMapRange=r,e},e.getTokenSourceMapRange=function(e,t){var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=function(e,r,n){var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=function(e,r){return t(e).startsOnNewLine=r,e},e.getCommentRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=function(e,r){return t(e).commentRange=r,e},e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=function(t,i,a,o){return n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a}))},e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=function(t,r,n,o){return a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n}))},e.moveSyntheticComments=function(e,o){n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=function(e,r){return t(e).constantValue=r,e},e.addEmitHelper=function(r,n){var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=function(r,n){if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=function(t,r){var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=function(r,n,i){var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,u=0;u<o.length;u++){var l=o[u];i(l)?(c++,s.helpers=e.appendIfUnique(s.helpers,l)):c>0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(u||(u={})),function(e){function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+=e[e.length-1]}}var n;e.createEmitHelperFactory=function(t){var n=t.factory;return{getUnscopedHelperName:i,createDecorateHelper:function(r,a,o,s){t.requestEmitHelper(e.decorateHelper);var c=[];c.push(n.createArrayLiteralExpression(r,!0)),c.push(a),o&&(c.push(o),s&&c.push(s));return n.createCallExpression(i("__decorate"),void 0,c)},createMetadataHelper:function(r,a){return t.requestEmitHelper(e.metadataHelper),n.createCallExpression(i("__metadata"),void 0,[n.createStringLiteral(r),a])},createParamHelper:function(r,a,o){return t.requestEmitHelper(e.paramHelper),e.setTextRange(n.createCallExpression(i("__param"),void 0,[n.createNumericLiteral(a+""),r]),o)},createAssignHelper:function(r){if(t.getCompilerOptions().target>=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<a.length-1;l++){var d=e.getPropertyNameOfBindingOrAssignmentElement(a[l]);if(d)if(e.isComputedPropertyName(d)){e.Debug.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var _=o[u];u++,c.push(n.createConditionalExpression(n.createTypeCheck(_,"symbol"),void 0,_,void 0,n.createAdd(_,n.createStringLiteral(""))))}else c.push(n.createStringLiteralFromNode(d))}return n.createCallExpression(i("__rest"),void 0,[r,e.setTextRange(n.createArrayLiteralExpression(c),s)])},createAwaiterHelper:function(r,a,o,s){t.requestEmitHelper(e.awaiterHelper);var c=n.createFunctionExpression(void 0,n.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,n.createCallExpression(i("__awaiter"),void 0,[r?n.createThis():n.createVoidZero(),a?n.createIdentifier("arguments"):n.createVoidZero(),o?e.createExpressionFromEntityName(n,o):n.createVoidZero(),c])},createExtendsHelper:function(r){return t.requestEmitHelper(e.extendsHelper),n.createCallExpression(i("__extends"),void 0,[r,n.createUniqueName("_super",48)])},createTemplateObjectHelper:function(r,a){return t.requestEmitHelper(e.templateObjectHelper),n.createCallExpression(i("__makeTemplateObject"),void 0,[r,a])},createSpreadHelper:function(r){return t.requestEmitHelper(e.readHelper),t.requestEmitHelper(e.spreadHelper),n.createCallExpression(i("__spread"),void 0,r)},createSpreadArraysHelper:function(r){return t.requestEmitHelper(e.spreadArraysHelper),n.createCallExpression(i("__spreadArrays"),void 0,r)},createValuesHelper:function(r){return t.requestEmitHelper(e.valuesHelper),n.createCallExpression(i("__values"),void 0,[r])},createReadHelper:function(r,a){return t.requestEmitHelper(e.readHelper),n.createCallExpression(i("__read"),void 0,void 0!==a?[r,n.createNumericLiteral(a+"")]:[r])},createGeneratorHelper:function(r){return t.requestEmitHelper(e.generatorHelper),n.createCallExpression(i("__generator"),void 0,[n.createThis(),r])},createCreateBindingHelper:function(a,o,s){return t.requestEmitHelper(e.createBindingHelper),n.createCallExpression(i("__createBinding"),void 0,r([n.createIdentifier("exports"),a,o],s?[s]:[]))},createImportStarHelper:function(r){return t.requestEmitHelper(e.importStarHelper),n.createCallExpression(i("__importStar"),void 0,[r])},createImportStarCallbackHelper:function(){return t.requestEmitHelper(e.importStarHelper),i("__importStar")},createImportDefaultHelper:function(r){return t.requestEmitHelper(e.importDefaultHelper),n.createCallExpression(i("__importDefault"),void 0,[r])},createExportStarHelper:function(r,a){void 0===a&&(a=n.createIdentifier("exports"));return t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),n.createCallExpression(i("__exportStar"),void 0,[r,a])},createClassPrivateFieldGetHelper:function(r,a){return t.requestEmitHelper(e.classPrivateFieldGetHelper),n.createCallExpression(i("__classPrivateFieldGet"),void 0,[r,a])},createClassPrivateFieldSetHelper:function(r,a,o){return t.requestEmitHelper(e.classPrivateFieldSetHelper),n.createCallExpression(i("__classPrivateFieldSet"),void 0,[r,a,o])}};function i(t){return e.setEmitFlags(n.createIdentifier(t),4098)}},e.compareEmitHelpers=function(t,r){return t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.helperString=t,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n 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 156===e.kind},e.isComputedPropertyName=function(e){return 157===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 158===e.kind},e.isParameter=function(e){return 159===e.kind},e.isDecorator=function(e){return 160===e.kind},e.isPropertySignature=function(e){return 161===e.kind},e.isPropertyDeclaration=function(e){return 162===e.kind},e.isMethodSignature=function(e){return 163===e.kind},e.isMethodDeclaration=function(e){return 164===e.kind},e.isConstructorDeclaration=function(e){return 165===e.kind},e.isGetAccessorDeclaration=function(e){return 166===e.kind},e.isSetAccessorDeclaration=function(e){return 167===e.kind},e.isCallSignatureDeclaration=function(e){return 168===e.kind},e.isConstructSignatureDeclaration=function(e){return 169===e.kind},e.isIndexSignatureDeclaration=function(e){return 170===e.kind},e.isTypePredicateNode=function(e){return 171===e.kind},e.isTypeReferenceNode=function(e){return 172===e.kind},e.isFunctionTypeNode=function(e){return 173===e.kind},e.isConstructorTypeNode=function(e){return 174===e.kind},e.isTypeQueryNode=function(e){return 175===e.kind},e.isTypeLiteralNode=function(e){return 176===e.kind},e.isArrayTypeNode=function(e){return 177===e.kind},e.isTupleTypeNode=function(e){return 178===e.kind},e.isNamedTupleMember=function(e){return 191===e.kind},e.isOptionalTypeNode=function(e){return 179===e.kind},e.isRestTypeNode=function(e){return 180===e.kind},e.isUnionTypeNode=function(e){return 181===e.kind},e.isIntersectionTypeNode=function(e){return 182===e.kind},e.isConditionalTypeNode=function(e){return 183===e.kind},e.isInferTypeNode=function(e){return 184===e.kind},e.isParenthesizedTypeNode=function(e){return 185===e.kind},e.isThisTypeNode=function(e){return 186===e.kind},e.isTypeOperatorNode=function(e){return 187===e.kind},e.isIndexedAccessTypeNode=function(e){return 188===e.kind},e.isMappedTypeNode=function(e){return 189===e.kind},e.isLiteralTypeNode=function(e){return 190===e.kind},e.isImportTypeNode=function(e){return 192===e.kind},e.isObjectBindingPattern=function(e){return 193===e.kind},e.isArrayBindingPattern=function(e){return 194===e.kind},e.isBindingElement=function(e){return 195===e.kind},e.isArrayLiteralExpression=function(e){return 196===e.kind},e.isObjectLiteralExpression=function(e){return 197===e.kind},e.isPropertyAccessExpression=function(e){return 198===e.kind},e.isElementAccessExpression=function(e){return 199===e.kind},e.isCallExpression=function(e){return 200===e.kind},e.isNewExpression=function(e){return 201===e.kind},e.isTaggedTemplateExpression=function(e){return 202===e.kind},e.isTypeAssertionExpression=function(e){return 203===e.kind},e.isParenthesizedExpression=function(e){return 204===e.kind},e.isFunctionExpression=function(e){return 205===e.kind},e.isArrowFunction=function(e){return 206===e.kind},e.isDeleteExpression=function(e){return 207===e.kind},e.isTypeOfExpression=function(e){return 208===e.kind},e.isVoidExpression=function(e){return 209===e.kind},e.isAwaitExpression=function(e){return 210===e.kind},e.isPrefixUnaryExpression=function(e){return 211===e.kind},e.isPostfixUnaryExpression=function(e){return 212===e.kind},e.isBinaryExpression=function(e){return 213===e.kind},e.isConditionalExpression=function(e){return 214===e.kind},e.isTemplateExpression=function(e){return 215===e.kind},e.isYieldExpression=function(e){return 216===e.kind},e.isSpreadElement=function(e){return 217===e.kind},e.isClassExpression=function(e){return 218===e.kind},e.isOmittedExpression=function(e){return 219===e.kind},e.isExpressionWithTypeArguments=function(e){return 220===e.kind},e.isAsExpression=function(e){return 221===e.kind},e.isNonNullExpression=function(e){return 222===e.kind},e.isMetaProperty=function(e){return 223===e.kind},e.isSyntheticExpression=function(e){return 224===e.kind},e.isPartiallyEmittedExpression=function(e){return 331===e.kind},e.isCommaListExpression=function(e){return 332===e.kind},e.isTemplateSpan=function(e){return 225===e.kind},e.isSemicolonClassElement=function(e){return 226===e.kind},e.isBlock=function(e){return 227===e.kind},e.isVariableStatement=function(e){return 229===e.kind},e.isEmptyStatement=function(e){return 228===e.kind},e.isExpressionStatement=function(e){return 230===e.kind},e.isIfStatement=function(e){return 231===e.kind},e.isDoStatement=function(e){return 232===e.kind},e.isWhileStatement=function(e){return 233===e.kind},e.isForStatement=function(e){return 234===e.kind},e.isForInStatement=function(e){return 235===e.kind},e.isForOfStatement=function(e){return 236===e.kind},e.isContinueStatement=function(e){return 237===e.kind},e.isBreakStatement=function(e){return 238===e.kind},e.isReturnStatement=function(e){return 239===e.kind},e.isWithStatement=function(e){return 240===e.kind},e.isSwitchStatement=function(e){return 241===e.kind},e.isLabeledStatement=function(e){return 242===e.kind},e.isThrowStatement=function(e){return 243===e.kind},e.isTryStatement=function(e){return 244===e.kind},e.isDebuggerStatement=function(e){return 245===e.kind},e.isVariableDeclaration=function(e){return 246===e.kind},e.isVariableDeclarationList=function(e){return 247===e.kind},e.isFunctionDeclaration=function(e){return 248===e.kind},e.isClassDeclaration=function(e){return 249===e.kind},e.isInterfaceDeclaration=function(e){return 250===e.kind},e.isTypeAliasDeclaration=function(e){return 251===e.kind},e.isEnumDeclaration=function(e){return 252===e.kind},e.isModuleDeclaration=function(e){return 253===e.kind},e.isModuleBlock=function(e){return 254===e.kind},e.isCaseBlock=function(e){return 255===e.kind},e.isNamespaceExportDeclaration=function(e){return 256===e.kind},e.isImportEqualsDeclaration=function(e){return 257===e.kind},e.isImportDeclaration=function(e){return 258===e.kind},e.isImportClause=function(e){return 259===e.kind},e.isNamespaceImport=function(e){return 260===e.kind},e.isNamespaceExport=function(e){return 266===e.kind},e.isNamedImports=function(e){return 261===e.kind},e.isImportSpecifier=function(e){return 262===e.kind},e.isExportAssignment=function(e){return 263===e.kind},e.isExportDeclaration=function(e){return 264===e.kind},e.isNamedExports=function(e){return 265===e.kind},e.isExportSpecifier=function(e){return 267===e.kind},e.isMissingDeclaration=function(e){return 268===e.kind},e.isNotEmittedStatement=function(e){return 330===e.kind},e.isSyntheticReference=function(e){return 335===e.kind},e.isMergeDeclarationMarker=function(e){return 333===e.kind},e.isEndOfDeclarationMarker=function(e){return 334===e.kind},e.isExternalModuleReference=function(e){return 269===e.kind},e.isJsxElement=function(e){return 270===e.kind},e.isJsxSelfClosingElement=function(e){return 271===e.kind},e.isJsxOpeningElement=function(e){return 272===e.kind},e.isJsxClosingElement=function(e){return 273===e.kind},e.isJsxFragment=function(e){return 274===e.kind},e.isJsxOpeningFragment=function(e){return 275===e.kind},e.isJsxClosingFragment=function(e){return 276===e.kind},e.isJsxAttribute=function(e){return 277===e.kind},e.isJsxAttributes=function(e){return 278===e.kind},e.isJsxSpreadAttribute=function(e){return 279===e.kind},e.isJsxExpression=function(e){return 280===e.kind},e.isCaseClause=function(e){return 281===e.kind},e.isDefaultClause=function(e){return 282===e.kind},e.isHeritageClause=function(e){return 283===e.kind},e.isCatchClause=function(e){return 284===e.kind},e.isPropertyAssignment=function(e){return 285===e.kind},e.isShorthandPropertyAssignment=function(e){return 286===e.kind},e.isSpreadAssignment=function(e){return 287===e.kind},e.isEnumMember=function(e){return 288===e.kind},e.isUnparsedPrepend=function(e){return 290===e.kind},e.isSourceFile=function(e){return 294===e.kind},e.isBundle=function(e){return 295===e.kind},e.isUnparsedSource=function(e){return 296===e.kind},e.isJSDocTypeExpression=function(e){return 298===e.kind},e.isJSDocAllType=function(e){return 299===e.kind},e.isJSDocUnknownType=function(e){return 300===e.kind},e.isJSDocNullableType=function(e){return 301===e.kind},e.isJSDocNonNullableType=function(e){return 302===e.kind},e.isJSDocOptionalType=function(e){return 303===e.kind},e.isJSDocFunctionType=function(e){return 304===e.kind},e.isJSDocVariadicType=function(e){return 305===e.kind},e.isJSDocNamepathType=function(e){return 306===e.kind},e.isJSDoc=function(e){return 307===e.kind},e.isJSDocTypeLiteral=function(e){return 308===e.kind},e.isJSDocSignature=function(e){return 309===e.kind},e.isJSDocAugmentsTag=function(e){return 311===e.kind},e.isJSDocAuthorTag=function(e){return 313===e.kind},e.isJSDocClassTag=function(e){return 315===e.kind},e.isJSDocCallbackTag=function(e){return 320===e.kind},e.isJSDocPublicTag=function(e){return 316===e.kind},e.isJSDocPrivateTag=function(e){return 317===e.kind},e.isJSDocProtectedTag=function(e){return 318===e.kind},e.isJSDocReadonlyTag=function(e){return 319===e.kind},e.isJSDocDeprecatedTag=function(e){return 314===e.kind},e.isJSDocEnumTag=function(e){return 321===e.kind},e.isJSDocParameterTag=function(e){return 322===e.kind},e.isJSDocReturnTag=function(e){return 323===e.kind},e.isJSDocThisTag=function(e){return 324===e.kind},e.isJSDocTypeTag=function(e){return 325===e.kind},e.isJSDocTemplateTag=function(e){return 326===e.kind},e.isJSDocTypedefTag=function(e){return 327===e.kind},e.isJSDocUnknownTag=function(e){return 310===e.kind},e.isJSDocPropertyTag=function(e){return 328===e.kind},e.isJSDocImplementsTag=function(e){return 312===e.kind},e.isSyntaxList=function(e){return 329===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 204:return 0!=(1&t);case 203:case 221:return 0!=(2&t);case 222:return 0!=(4&t);case 331: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&&s<e.ModuleKind.ES2015;if(!c){var u=e.getEmitHelpers(r);if(u)for(var l=0,_=u;l<_.length;l++){if(!_[l].scoped){c=!0;break}}}if(c){var p=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(p);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function p(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function f(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?f(t.left):e.isSpreadElement(t)?f(t.expression):t;switch(t.kind){case 285:return f(t.initializer);case 286:return t.name;case 287:return f(t.expression)}}function g(t){switch(t.kind){case 195:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&m(r.expression)?r.expression:r}break;case 285:if(t.name){r=t.name;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&m(r.expression)?r.expression:r}break;case 287:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=f(t);if(n&&e.isPropertyName(n))return n}function m(e){var t=e.kind;return 10===t||8===t}e.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},e.createMemberAccessForPropertyName=t,e.createExpressionForJsxElement=function(t,r,n,i,o,s,c,u){var d=[i];if(o&&d.push(o),s&&s.length>0)if(o||d.push(t.createNull()),s.length>1)for(var _=0,p=s;_<p.length;_++){var f=p[_];l(f),d.push(f)}else d.push(s[0]);return e.setTextRange(t.createCallExpression(a(t,r,n,c),void 0,d),u)},e.createExpressionForJsxFragment=function(t,r,o,s,c,u,d){var _=[function(e,t,r,a){return t?i(e,t,a):e.createPropertyAccessExpression(n(r,a),"Fragment")}(t,o,s,u),t.createNull()];if(c&&c.length>0)if(c.length>1)for(var p=0,f=c;p<f.length;p++){var g=f[p];l(g),_.push(g)}else _.push(c[0]);return e.setTextRange(t.createCallExpression(a(t,r,s,u),void 0,_),d)},e.createForOfBindingStatement=function(t,r,n){if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=function(t,n,i){return e.isBlock(n)?t.updateBlock(n,e.setTextRange(t.createNodeArray(r([i],n.statements)),n.statements)):t.createBlock(t.createNodeArray([n,i]),!0)},e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=o,e.createExpressionForObjectLiteralElementLike=function(r,n,i,a){switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 166:case 167:return function(t,r,n,i,a){var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,u=s.getAccessor,l=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,o(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:u&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u),set:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l)},!a)),c)}(r,n.properties,i,a,!!n.multiLine);case 285:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n)}(r,i,a);case 286:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n)}(r,i,a);case 164:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}(r,i,a)}},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.findUseStrictPrologue=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(s(i))return i}},e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&s(r)},e.isCommaSequence=function(e){return 213===e.kind&&27===e.operatorToken.kind||332===e.kind},e.isOuterExpression=c,e.skipOuterExpressions=u,e.skipAssertions=function(e){return u(e,6)},e.startOnNewLine=l,e.getExternalHelpersModuleName=d,e.hasRecordedExternalHelpers=function(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(t,r,n,i,a,o,s){if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,u=e.getEmitModuleKind(i);if(u>=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var d=[],p=0,f=l;p<f.length;p++){var g=f[p];if(!g.scoped){var m=g.importName;m&&e.pushIfUnique(d,m)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(d,(function(i){return e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(void 0,t.createIdentifier(i)):t.createImportSpecifier(t.createIdentifier(i),r.getUnscopedHelperName(i))})));var y=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(y).externalHelpers=!0}}}else{var h=_(t,n,i,a,o||s);h&&(c=t.createNamespaceImport(h))}if(c){var v=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(v,67108864),v}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=_,e.getLocalNameForExternalImport=function(t,r,n){var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 258===r.kind&&r.importClause||264===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a,o){var s=e.getExternalModuleName(r);if(10===s.kind)return function(e,t,r,n,i){return p(r,n.getExternalModuleFileFromDeclaration(e),t,i)}(r,i,t,a,o)||function(e,t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n&&e.createStringLiteral(n)}(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=p,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=f,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 159:case 195:return e.dotDotDotToken;case 217:case 287:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){var r=g(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=g,e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 193:case 194:case 196:return e.elements;case 197:return e.properties}},e.getJSDocTypeAliasName=function(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveModifiers=function(e){var t=e.kind;return 159===t||161===t||162===t||163===t||164===t||165===t||166===t||167===t||170===t||205===t||206===t||218===t||229===t||248===t||249===t||250===t||251===t||252===t||253===t||257===t||258===t||263===t||264===t},e.isExportModifier=function(e){return 92===e.kind},e.isAsyncModifier=function(e){return 129===e.kind},e.isStaticModifier=function(e){return 123===e.kind}}(u||(u={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,u;function l(e,t){return t&&e(t)}function d(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function _(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function p(t,r,n){if(t&&!(t.kind<=155))switch(t.kind){case 156:return l(r,t.left)||l(r,t.right);case 158:return l(r,t.name)||l(r,t.constraint)||l(r,t.default)||l(r,t.expression);case 286:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.exclamationToken)||l(r,t.equalsToken)||l(r,t.objectAssignmentInitializer);case 287:return l(r,t.expression);case 159:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.dotDotDotToken)||l(r,t.name)||l(r,t.questionToken)||l(r,t.type)||l(r,t.initializer);case 162:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.exclamationToken)||l(r,t.type)||l(r,t.initializer);case 161:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.type)||l(r,t.initializer);case 285:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.questionToken)||l(r,t.initializer);case 246:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.exclamationToken)||l(r,t.type)||l(r,t.initializer);case 195:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.dotDotDotToken)||l(r,t.propertyName)||l(r,t.name)||l(r,t.initializer);case 173:case 174:case 168:case 169:case 170:return d(r,n,t.decorators)||d(r,n,t.modifiers)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||l(r,t.type);case 164:case 163:case 165:case 166:case 167:case 205:case 248:case 206:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.asteriskToken)||l(r,t.name)||l(r,t.questionToken)||l(r,t.exclamationToken)||d(r,n,t.typeParameters)||d(r,n,t.parameters)||l(r,t.type)||l(r,t.equalsGreaterThanToken)||l(r,t.body);case 172:return l(r,t.typeName)||d(r,n,t.typeArguments);case 171:return l(r,t.assertsModifier)||l(r,t.parameterName)||l(r,t.type);case 175:return l(r,t.exprName);case 176:return d(r,n,t.members);case 177:return l(r,t.elementType);case 178:return d(r,n,t.elements);case 181:case 182:return d(r,n,t.types);case 183:return l(r,t.checkType)||l(r,t.extendsType)||l(r,t.trueType)||l(r,t.falseType);case 184:return l(r,t.typeParameter);case 192:return l(r,t.argument)||l(r,t.qualifier)||d(r,n,t.typeArguments);case 185:case 187:return l(r,t.type);case 188:return l(r,t.objectType)||l(r,t.indexType);case 189:return l(r,t.readonlyToken)||l(r,t.typeParameter)||l(r,t.questionToken)||l(r,t.type);case 190:return l(r,t.literal);case 191:return l(r,t.dotDotDotToken)||l(r,t.name)||l(r,t.questionToken)||l(r,t.type);case 193:case 194:case 196:return d(r,n,t.elements);case 197:return d(r,n,t.properties);case 198:return l(r,t.expression)||l(r,t.questionDotToken)||l(r,t.name);case 199:return l(r,t.expression)||l(r,t.questionDotToken)||l(r,t.argumentExpression);case 200:case 201:return l(r,t.expression)||l(r,t.questionDotToken)||d(r,n,t.typeArguments)||d(r,n,t.arguments);case 202:return l(r,t.tag)||l(r,t.questionDotToken)||d(r,n,t.typeArguments)||l(r,t.template);case 203:return l(r,t.type)||l(r,t.expression);case 204:case 207:case 208:case 209:return l(r,t.expression);case 211:return l(r,t.operand);case 216:return l(r,t.asteriskToken)||l(r,t.expression);case 210:return l(r,t.expression);case 212:return l(r,t.operand);case 213:return l(r,t.left)||l(r,t.operatorToken)||l(r,t.right);case 221:return l(r,t.expression)||l(r,t.type);case 222:return l(r,t.expression);case 223:return l(r,t.name);case 214:return l(r,t.condition)||l(r,t.questionToken)||l(r,t.whenTrue)||l(r,t.colonToken)||l(r,t.whenFalse);case 217:return l(r,t.expression);case 227:case 254:return d(r,n,t.statements);case 294:return d(r,n,t.statements)||l(r,t.endOfFileToken);case 229:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.declarationList);case 247:return d(r,n,t.declarations);case 230:return l(r,t.expression);case 231:return l(r,t.expression)||l(r,t.thenStatement)||l(r,t.elseStatement);case 232:return l(r,t.statement)||l(r,t.expression);case 233:return l(r,t.expression)||l(r,t.statement);case 234:return l(r,t.initializer)||l(r,t.condition)||l(r,t.incrementor)||l(r,t.statement);case 235:return l(r,t.initializer)||l(r,t.expression)||l(r,t.statement);case 236:return l(r,t.awaitModifier)||l(r,t.initializer)||l(r,t.expression)||l(r,t.statement);case 237:case 238:return l(r,t.label);case 239:return l(r,t.expression);case 240:return l(r,t.expression)||l(r,t.statement);case 241:return l(r,t.expression)||l(r,t.caseBlock);case 255:return d(r,n,t.clauses);case 281:return l(r,t.expression)||d(r,n,t.statements);case 282:return d(r,n,t.statements);case 242:return l(r,t.label)||l(r,t.statement);case 243:return l(r,t.expression);case 244:return l(r,t.tryBlock)||l(r,t.catchClause)||l(r,t.finallyBlock);case 284:return l(r,t.variableDeclaration)||l(r,t.block);case 160:return l(r,t.expression);case 249:case 218:case 250:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||d(r,n,t.typeParameters)||d(r,n,t.heritageClauses)||d(r,n,t.members);case 251:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||d(r,n,t.typeParameters)||l(r,t.type);case 252:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||d(r,n,t.members);case 288:return l(r,t.name)||l(r,t.initializer);case 253:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.body);case 257:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.name)||l(r,t.moduleReference);case 258:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.importClause)||l(r,t.moduleSpecifier);case 259:return l(r,t.name)||l(r,t.namedBindings);case 256:case 260:case 266:return l(r,t.name);case 261:case 265:return d(r,n,t.elements);case 264:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.exportClause)||l(r,t.moduleSpecifier);case 262:case 267:return l(r,t.propertyName)||l(r,t.name);case 263:return d(r,n,t.decorators)||d(r,n,t.modifiers)||l(r,t.expression);case 215:return l(r,t.head)||d(r,n,t.templateSpans);case 225:return l(r,t.expression)||l(r,t.literal);case 157:return l(r,t.expression);case 283:return d(r,n,t.types);case 220:return l(r,t.expression)||d(r,n,t.typeArguments);case 269:return l(r,t.expression);case 268:return d(r,n,t.decorators);case 332:return d(r,n,t.elements);case 270:return l(r,t.openingElement)||d(r,n,t.children)||l(r,t.closingElement);case 274:return l(r,t.openingFragment)||d(r,n,t.children)||l(r,t.closingFragment);case 271:case 272:return l(r,t.tagName)||d(r,n,t.typeArguments)||l(r,t.attributes);case 278:return d(r,n,t.properties);case 277:return l(r,t.name)||l(r,t.initializer);case 279:return l(r,t.expression);case 280:return l(r,t.dotDotDotToken)||l(r,t.expression);case 273:return l(r,t.tagName);case 179:case 180:case 298:case 302:case 301:case 303:case 305:return l(r,t.type);case 304:return d(r,n,t.parameters)||l(r,t.type);case 307:return d(r,n,t.tags);case 322:case 328:return l(r,t.tagName)||(t.isNameFirst?l(r,t.name)||l(r,t.typeExpression):l(r,t.typeExpression)||l(r,t.name));case 313:return l(r,t.tagName);case 312:case 311:return l(r,t.tagName)||l(r,t.class);case 326:return l(r,t.tagName)||l(r,t.constraint)||d(r,n,t.typeParameters);case 327:return l(r,t.tagName)||(t.typeExpression&&298===t.typeExpression.kind?l(r,t.typeExpression)||l(r,t.fullName):l(r,t.fullName)||l(r,t.typeExpression));case 320:return l(r,t.tagName)||l(r,t.fullName)||l(r,t.typeExpression);case 323:case 325:case 324:case 321:return l(r,t.tagName)||l(r,t.typeExpression);case 309:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||l(r,t.type);case 308:return e.forEach(t.jsDocPropertyTags,r);case 310:case 315:case 316:case 317:case 318:case 319:return l(r,t.tagName);case 331:return l(r,t.expression)}}function f(e){return void 0!==e.externalModuleIndicator}function g(t){return e.fileExtensionIs(t,".d.ts")}function m(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];D(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var u=c[s];if(t.pragmas.has(u.name)){var l=t.pragmas.get(u.name);l instanceof Array?l.push(u.args):t.pragmas.set(u.name,[l,u.args])}else t.pragmas.set(u.name,u.args)}}function y(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((function(n,i){switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),(function(n){var i=n.arguments,c=i.types,u=i.lib,l=i.path;n.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:c?o.push({pos:c.pos,end:c.end,fileName:c.value}):u?s.push({pos:u.pos,end:u.end,fileName:u.value}):l?a.push({pos:l.pos,end:l.end,fileName:l.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(function(e){return{name:e.arguments.name,path:e.arguments.path}}));break;case"amd-module":if(n instanceof Array)for(var c=0,u=n;c<u.length;c++){var l=u[c];t.moduleName&&r(l.range.pos,l.range.end-l.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=l.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),(function(e){(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":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<s.length;o++){var c=s[o];if(e.isArray(c)){if(n)if(d=n(c,t)){if("skip"===d)continue;return d}for(var u=c.length-1;u>=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){var o;return void 0===i&&(i=!1),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"),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);function c(e){return k++,e}var l,d,h,v,b,x,D,S,E,C,k,N,A,F,P,w,I,O={createBaseSourceFileNode:function(e){return c(new o(e,0,0))},createBaseIdentifierNode:function(e){return c(new i(e,0,0))},createBasePrivateIdentifierNode:function(e){return c(new a(e,0,0))},createBaseTokenNode:function(e){return c(new n(e,0,0))},createBaseNode:function(e){return c(new r(e,0,0))}},M=e.createNodeFactory(11,O),L=!0,R=!1;function B(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),j(t,r,n,i,6),d=I,be();var o,s,c=ge();if(1===ye())o=Je([],c,c),s=Re();else{var u=void 0;switch(ye()){case 22:u=yn();break;case 109:case 94:case 103:u=Re();break;case 40:u=Ne((function(){return 8===be()&&58!==be()}))?qr():vn();break;case 8:case 10:if(Ne((function(){return 58!==be()}))){u=At();break}default:u=vn()}var l=M.createExpressionStatement(u);Ke(l,c),o=Je([l],c),s=Le(1,e.Diagnostics.Unexpected_token)}var _=Y(t,2,6,!1,o,s,d);a&&G(_),_.nodeCount=k,_.identifierCount=F,_.identifiers=N,_.parseDiagnostics=e.attachFileToDiagnostics(D,_),S&&(_.jsDocDiagnostics=e.attachFileToDiagnostics(S,_));var p=_;return J(),p}function j(t,c,u,_,p){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),l=e.normalizePath(t),h=c,v=u,E=_,b=p,x=e.getLanguageVariant(p),D=[],P=0,N=new e.Map,A=new e.Map,F=0,k=0,d=0,L=!0,b){case 1:case 2:I=131072;break;case 6:I=33685504;break;default:I=0}R=!1,s.setText(h),s.setOnError(fe),s.setScriptTarget(v),s.setLanguageVariant(x)}function J(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),h=void 0,v=void 0,E=void 0,b=void 0,x=void 0,d=0,D=void 0,S=void 0,P=0,N=void 0,w=void 0,L=!0}function K(t,r,n){var i=g(l);i&&(I|=8388608),d=I,be();var a=ft(0,Rn);e.Debug.assert(1===ye());var o=H(Re()),c=Y(l,t,n,i,a,o,d);return m(c,h),y(c,(function(t,r,n){D.push(e.createDetachedDiagnostic(l,t,r,n))})),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=k,c.identifierCount=F,c.identifiers=N,c.parseDiagnostics=e.attachFileToDiagnostics(D,c),S&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(S,c)),r&&G(c),c}function z(e,t){return t?H(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=B(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=K(n,a,o);return J(),c},t.parseIsolatedEntityName=function(e,t){j("",e,t,void 0,1),be();var r=St(!0),n=1===ye()&&!D.length;return J(),n?r:void 0},t.parseJsonText=B;var U,V,q,W=!1;function H(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,h),(function(e){return q.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),W&&(W=!1,t.flags|=134217728),t}function G(t){e.setParentRecursive(t,!0)}function Y(t,r,n,i,a,o,c){var l=M.createSourceFile(a,o,c);return e.setTextRangePosWidth(l,0,h.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,Ai)||function(e){return 2097152&e.flags?Fi(e):void 0}(t)}(l),!i&&f(l)&&8388608&l.transformFlags&&(l=function(t){var r=E,n=u.createSyntaxCursor(t);E={currentNode:function(e){var t=n.currentNode(e);return L&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=D;D=[];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(D,a,u,l>=0?l:void 0),ke((function(){var e=I;for(I|=32768,s.setTextPos(n.pos),be();1!==ye();){var r=s.getStartPos(),a=gt(0,Rn);if(i.push(a),r===s.getStartPos()&&be(),o>=0){var c=t.statements[o];if(a.end===c.pos)break;a.end>c.pos&&(o=g(t.statements,o+1))}}I=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(D,a,_)}return E=r,M.updateSourceFile(t,e.setTextRange(M.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(p(e[r]))return r;return-1}function g(e,t){for(var r=t;r<e.length;r++)if(!p(e[r]))return r;return-1}}(l)),l.text=h,l.bindDiagnostics=[],l.bindSuggestionDiagnostics=void 0,l.languageVersion=r,l.fileName=t,l.languageVariant=e.getLanguageVariant(n),l.isDeclarationFile=i,l.scriptKind=n,l}function X(e,t){e?I|=t:I&=~t}function Q(e){X(e,4096)}function $(e){X(e,8192)}function Z(e){X(e,16384)}function ee(e){X(e,32768)}function te(e,t){var r=e&I;if(r){X(!1,r);var n=t();return X(!0,r),n}return t()}function re(e,t){var r=e&~I;if(r){X(!0,r);var n=t();return X(!1,r),n}return t()}function ne(e){return te(4096,e)}function ie(e){return re(32768,e)}function ae(e){return 0!=(I&e)}function oe(){return ae(8192)}function se(){return ae(4096)}function ce(){return ae(16384)}function ue(){return ae(32768)}function le(e,t){_e(s.getTokenPos(),s.getTextPos(),e,t)}function de(t,r,n,i){var a=e.lastOrUndefined(D);a&&t===a.start||D.push(e.createDetachedDiagnostic(l,t,r,n,i)),R=!0}function _e(e,t,r,n){de(e,t-e,r,n)}function pe(e,t,r){_e(e.pos,e.end,t,r)}function fe(e,t){de(s.getTextPos(),t,e)}function ge(){return s.getStartPos()}function me(){return s.hasPrecedingJSDocComment()}function ye(){return C}function he(){return C=s.scan()}function ve(e){return be(),e()}function be(){return e.isKeyword(C)&&(s.hasUnicodeEscape()||s.hasExtendedUnicodeEscape())&&_e(s.getTokenPos(),s.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),he()}function xe(){return C=s.scanJsDocToken()}function De(){return C=s.reScanGreaterToken()}function Se(){return C=s.reScanTemplateHeadOrNoSubstitutionTemplate()}function Te(){return C=s.reScanLessThanToken()}function Ee(){return C=s.scanJsxIdentifier()}function Ce(){return C=s.scanJsxToken()}function ke(t,r){var n=C,i=D.length,a=R,o=I,c=0!==r?s.lookAhead(t):s.tryScan(t);return e.Debug.assert(o===I),c&&0===r||(C=n,2!==r&&(D.length=i),R=a),c}function Ne(e){return ke(e,1)}function Ae(e){return ke(e,0)}function Fe(){return 78===ye()||ye()>115}function Pe(){return 78===ye()||(124!==ye()||!oe())&&((130!==ye()||!ue())&&ye()>115)}function we(t,r,n){return void 0===n&&(n=!0),ye()===t?(n&&be(),!0):(r?le(r):le(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Ie(e){return ye()===e&&(be(),!0)}function Oe(e){if(ye()===e)return Re()}function Me(e){if(ye()===e)return t=ge(),r=ye(),xe(),Ke(M.createToken(r),t);var t,r}function Le(t,r,n){return Oe(t)||ze(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Re(){var e=ge(),t=ye();return be(),Ke(M.createToken(t),e)}function Be(){return 26===ye()||(19===ye()||1===ye()||s.hasPrecedingLineBreak())}function je(){return Be()?(26===ye()&&be(),!0):we(26)}function Je(t,r,n,i){var a=M.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:s.getStartPos()),a}function Ke(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:s.getStartPos()),I&&(t.flags|=I),R&&(R=!1,t.flags|=65536),t}function ze(t,r,n,i){r?de(s.getStartPos(),0,n,i):n&&le(n,i);var a=ge();return Ke(78===t?M.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?M.createTemplateLiteralLikeNode(t,"","",void 0):8===t?M.createNumericLiteral("",void 0):10===t?M.createStringLiteral("",void 0):268===t?M.createMissingDeclaration():M.createToken(t),a)}function Ue(e){var t=N.get(e);return void 0===t&&N.set(e,t=e),t}function Ve(t,r,n){if(F++,t){var i=ge(),a=ye(),o=Ue(s.getTokenValue());return he(),Ke(M.createIdentifier(o,void 0,a),i)}if(79===ye())return le(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ve(!0);var c=1===ye(),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 ze(78,c,r||d,l)}function qe(e){return Ve(Fe(),void 0,e)}function We(e,t){return Ve(Pe(),e,t)}function He(t){return Ve(e.tokenIsIdentifierOrKeyword(ye()),t)}function Ge(){return e.tokenIsIdentifierOrKeyword(ye())||10===ye()||8===ye()}function Ye(e){if(10===ye()||8===ye()){var t=At();return t.text=Ue(t.text),t}return e&&22===ye()?function(){var e=ge();we(22);var t=ne(wr);return we(23),Ke(M.createComputedPropertyName(t),e)}():79===ye()?Qe():He()}function Xe(){return Ye(!0)}function Qe(){var e,t,r=ge(),n=M.createPrivateIdentifier((e=s.getTokenText(),void 0===(t=A.get(e))&&A.set(e,t=e),t));return be(),Ke(n,r)}function $e(e){return ye()===e&&Ae(et)}function Ze(){return be(),!s.hasPrecedingLineBreak()&&nt()}function et(){switch(ye()){case 84:return 91===be();case 92:return be(),87===ye()?Ne(it):148===ye()?Ne(rt):tt();case 87:return it();case 123:case 134:case 145:return be(),nt();default:return Ze()}}function tt(){return 41!==ye()&&126!==ye()&&18!==ye()&&nt()}function rt(){return be(),tt()}function nt(){return 22===ye()||18===ye()||41===ye()||25===ye()||Ge()}function it(){return be(),83===ye()||97===ye()||117===ye()||125===ye()&&Ne(Fn)||129===ye()&&Ne(Pn)}function at(t,r){if(mt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ye()&&r)&&Mn();case 2:return 81===ye()||87===ye();case 4:return Ne(Qt);case 5:return Ne(ii)||26===ye()&&!r;case 6:return 22===ye()||Ge();case 12:switch(ye()){case 22:case 41:case 25:case 24:return!0;default:return Ge()}case 18:return Ge();case 9:return 22===ye()||25===ye()||Ge();case 7:return 18===ye()?Ne(ot):r?Pe()&&!lt():Fr()&&!lt();case 8:return qn();case 10:return 27===ye()||25===ye()||qn();case 19:return Pe();case 15:switch(ye()){case 27:case 24:return!0}case 11:return 25===ye()||Pr();case 16:return jt(!1);case 17:return jt(!0);case 20:case 21:return 27===ye()||mr();case 22:return hi();case 23:return e.tokenIsIdentifierOrKeyword(ye());case 13:return e.tokenIsIdentifierOrKeyword(ye())||18===ye();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ot(){if(e.Debug.assert(18===ye()),19===be()){var t=be();return 27===t||18===t||93===t||116===t}return!0}function st(){return be(),Pe()}function ct(){return be(),e.tokenIsIdentifierOrKeyword(ye())}function ut(){return be(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ye())}function lt(){return(116===ye()||93===ye())&&Ne(dt)}function dt(){return be(),Pr()}function _t(){return be(),mr()}function pt(e){if(1===ye())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ye();case 3:return 19===ye()||81===ye()||87===ye();case 7:return 18===ye()||93===ye()||116===ye();case 8:return function(){if(Be())return!0;if(zr(ye()))return!0;if(38===ye())return!0;return!1}();case 19:return 31===ye()||20===ye()||18===ye()||93===ye()||116===ye();case 11:return 21===ye()||26===ye();case 15:case 21:case 10:return 23===ye();case 17:case 16:case 18:return 21===ye()||23===ye();case 20:return 27!==ye();case 22:return 18===ye()||19===ye();case 13:return 31===ye()||43===ye();case 14:return 29===ye()&&Ne(Si);default:return!1}}function ft(e,t){var r=P;P|=1<<e;for(var n=[],i=ge();!pt(e);)if(at(e,!1)){var a=gt(e,t);n.push(a)}else if(ht(e))break;return P=r,Je(n,i)}function gt(e,t){var r=mt(e);return r?yt(r):t()}function mt(t){if(E&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(t)&&!R){var r=E.currentNode(s.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r)))if((25358336&r.flags)===I&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 165:case 170:case 166:case 167:case 162:case 226:return!0;case 164:var t=e;return!(78===t.name.kind&&132===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 281:case 282:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 248:case 229:case 227:case 231:case 230:case 243:case 239:case 241:case 238:case 237:case 235:case 236:case 234:case 233:case 240:case 228:case 244:case 242:case 232:case 245:case 258:case 257:case 264:case 263:case 253:case 249:case 250:case 252:case 251:return!0}return!1}(e);case 6:return function(e){return 288===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 169:case 163:case 170:case 161:case 168:return!0}return!1}(e);case 8:return function(e){if(246!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(159!==e.kind)return!1;return void 0===e.initializer}(e)}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function yt(e){return s.setTextPos(e.end),be(),e}function ht(t){return le(function(t){switch(t){case 0:case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return e.Diagnostics.Identifier_expected;default:return}}(t)),!!function(){for(var e=0;e<24;e++)if(P&1<<e&&(at(e,!0)||pt(e)))return!0;return!1}()||(be(),!1)}function vt(e,t,r){var n=P;P|=1<<e;for(var i=[],a=ge(),o=-1;;)if(at(e,!1)){var c=s.getStartPos();if(i.push(gt(e,t)),o=s.getTokenPos(),Ie(27))continue;if(o=-1,pt(e))break;we(27,bt(e)),r&&26===ye()&&!s.hasPrecedingLineBreak()&&be(),c===s.getStartPos()&&be()}else{if(pt(e))break;if(ht(e))break}return P=n,Je(i,a,void 0,o>=0)}function bt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function xt(){var e=Je([],ge());return e.isMissingList=!0,e}function Dt(e,t,r,n){if(we(r)){var i=vt(e,t);return we(n),i}return xt()}function St(e,t){for(var r=ge(),n=e?He(t):We(t),i=ge();Ie(24);){if(29===ye()){n.jsdocDotPos=i;break}i=ge(),n=Ke(M.createQualifiedName(n,Et(e,!1)),r)}return n}function Tt(e,t){return Ke(M.createQualifiedName(e,t),e.pos)}function Et(t,r){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ye())&&Ne(An))return ze(78,!0,e.Diagnostics.Identifier_expected);if(79===ye()){var n=Qe();return r?n:ze(78,!0,e.Diagnostics.Identifier_expected)}return t?He():We()}function Ct(t){var r=ge();return Ke(M.createTemplateExpression(function(t){t&&Se();var r=Ft(ye());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}(t),function(e){var t,r=ge(),n=[];do{t=Nt(e),n.push(t)}while(16===t.literal.kind);return Je(n,r)}(t)),r)}function kt(t){return 19===ye()?(function(e){C=s.reScanTemplateToken(e)}(t),r=Ft(ye()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Le(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Nt(e){var t=ge();return Ke(M.createTemplateSpan(ne(wr),kt(e)),t)}function At(){return Ft(ye())}function Ft(t){var r=ge(),n=e.isTemplateLiteralKind(t)?M.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?M.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===t?M.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?M.createLiteralLikeNode(t,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(n.isUnterminated=!0),be(),Ke(n,r)}function Pt(){return St(!0,e.Diagnostics.Type_expected)}function wt(){if(!s.hasPrecedingLineBreak()&&29===Te())return Dt(20,kr,29,31)}function It(){var e=ge();return Ke(M.createTypeReferenceNode(Pt(),wt()),e)}function Ot(){var e=ge();return be(),Ke(M.createThisTypeNode(),e)}function Mt(){var e,t=ge();return 107!==ye()&&102!==ye()||(e=He(),we(58)),Ke(M.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Lt(),void 0),t)}function Lt(){s.setInJSDocType(!0);var e=ge();if(Ie(138)){var t=M.createJSDocNamepathType(void 0);e:for(;;)switch(ye()){case 19:case 1:case 27:case 5:break e;default:xe()}return s.setInJSDocType(!1),Ke(t,e)}var r=Ie(25),n=Er();return s.setInJSDocType(!1),r&&(n=Ke(M.createJSDocVariadicType(n),e)),62===ye()?(be(),Ke(M.createJSDocOptionalType(n),e)):n}function Rt(){var e,t,r=ge(),n=We();Ie(93)&&(mr()||!Pr()?e=kr():t=Wr());var i=Ie(62)?kr():void 0,a=M.createTypeParameterDeclaration(n,e,i);return a.expression=t,Ke(a,r)}function Bt(){if(29===ye())return Dt(19,Rt,29,31)}function jt(t){return 25===ye()||qn()||e.isModifierKind(ye())||59===ye()||mr(!t)}function Jt(){return zt(!0)}function Kt(){return zt(!1)}function zt(t){var r=ge(),n=me();if(107===ye())return z(Ke(M.createParameterDeclaration(void 0,void 0,void 0,Ve(!0),void 0,Ar(),void 0),r),n);var i=t?ie(si):si(),a=L;L=!1;var o=ui(),s=z(Ke(M.createParameterDeclaration(i,o,Oe(25),function(t){var r=Wn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ye())&&be(),r}(o),Oe(57),Ar(),Ir()),r),n);return L=a,s}function Ut(t,r){if(function(t,r){if(38===t)return we(t),!0;if(Ie(58))return!0;if(r&&38===ye())return le(e.Diagnostics._0_expected,e.tokenToString(58)),be(),!0;return!1}(t,r))return Er()}function Vt(e){var t=oe(),r=ue();$(!!(1&e)),ee(!!(2&e));var n=32&e?vt(17,Mt):vt(16,r?Jt:Kt);return $(t),ee(r),n}function qt(e){if(!we(20))return xt();var t=Vt(e);return we(21),t}function Wt(){Ie(27)||je()}function Ht(e){var t=ge(),r=me();169===e&&we(102);var n=Bt(),i=qt(4),a=Ut(58,!0);return Wt(),z(Ke(168===e?M.createCallSignature(n,i,a):M.createConstructSignature(n,i,a),t),r)}function Gt(){return 22===ye()&&Ne(Yt)}function Yt(){if(be(),25===ye()||23===ye())return!0;if(e.isModifierKind(ye())){if(be(),Pe())return!0}else{if(!Pe())return!1;be()}return 58===ye()||27===ye()||57===ye()&&(be(),58===ye()||27===ye()||23===ye())}function Xt(e,t,r,n){var i=Dt(16,Kt,22,23),a=Ar();return Wt(),z(Ke(M.createIndexSignature(r,n,i,a),e),t)}function Qt(){if(20===ye()||29===ye())return!0;for(var t=!1;e.isModifierKind(ye());)t=!0,be();return 22===ye()||(Ge()&&(t=!0,be()),!!t&&(20===ye()||29===ye()||57===ye()||58===ye()||27===ye()||Be()))}function $t(){if(20===ye()||29===ye())return Ht(168);if(102===ye()&&Ne(Zt))return Ht(169);var e=ge(),t=me(),r=ui();return Gt()?Xt(e,t,void 0,r):function(e,t,r){var n,i=Xe(),a=Oe(57);if(20===ye()||29===ye()){var o=Bt(),s=qt(4),c=Ut(58,!0);n=M.createMethodSignature(r,i,a,o,s,c)}else c=Ar(),n=M.createPropertySignature(r,i,a,c),62===ye()&&(n.initializer=Ir());return Wt(),z(Ke(n,e),t)}(e,t,r)}function Zt(){return be(),20===ye()||29===ye()}function er(){return 24===be()}function tr(){switch(be()){case 20:case 29:case 24:return!0}return!1}function rr(){var e;return we(18)?(e=ft(4,$t),we(19)):e=xt(),e}function nr(){return be(),39===ye()||40===ye()?141===be():(141===ye()&&be(),22===ye()&&st()&&100===be())}function ir(){var e,t=ge();we(18),141!==ye()&&39!==ye()&&40!==ye()||141!==(e=Re()).kind&&we(141),we(22);var r,n=function(){var e=ge(),t=He();we(100);var r=kr();return Ke(M.createTypeParameterDeclaration(t,r,void 0),e)}();we(23),57!==ye()&&39!==ye()&&40!==ye()||57!==(r=Re()).kind&&we(57);var i=Ar();return je(),we(19),Ke(M.createMappedTypeNode(e,n,r,i),t)}function ar(){var t=ge();if(Ie(25))return Ke(M.createRestTypeNode(kr()),t);var r=kr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=M.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function or(){return 58===be()||57===ye()&&58===be()}function sr(){return 25===ye()?e.tokenIsIdentifierOrKeyword(be())&&or():e.tokenIsIdentifierOrKeyword(ye())&&or()}function cr(){if(Ne(sr)){var e=ge(),t=me(),r=Oe(25),n=He(),i=Oe(57);we(58);var a=ar();return z(Ke(M.createNamedTupleMember(r,n,i,a),e),t)}return ar()}function ur(){var e=ge(),t=me(),r=Ie(102),n=Bt(),i=qt(4),a=Ut(38,!1);return z(Ke(r?M.createConstructorTypeNode(n,i,a):M.createFunctionTypeNode(n,i,a),e),t)}function lr(){var e=Re();return 24===ye()?void 0:e}function dr(e){var t=ge();e&&be();var r=109===ye()||94===ye()||103===ye()?Re():Ft(ye());return e&&(r=Ke(M.createPrefixUnaryExpression(40,r),t)),Ke(M.createLiteralTypeNode(r),t)}function _r(){return be(),99===ye()}function pr(){d|=1048576;var e=ge(),t=Ie(111);we(99),we(20);var r=kr();we(21);var n=Ie(24)?Pt():void 0,i=wt();return Ke(M.createImportTypeNode(r,n,i,t),e)}function fr(){return be(),8===ye()||9===ye()}function gr(){switch(ye()){case 128:case 151:case 146:case 143:case 154:case 147:case 131:case 149:case 140:case 144:return Ae(lr)||It();case 65:s.reScanAsteriskEqualsToken();case 41:return r=ge(),be(),Ke(M.createJSDocAllType(),r);case 60:s.reScanQuestionToken();case 57:return function(){var e=ge();return be(),27===ye()||19===ye()||21===ye()||31===ye()||62===ye()||51===ye()?Ke(M.createJSDocUnknownType(),e):Ke(M.createJSDocNullableType(kr()),e)}();case 97:return function(){var e=ge(),t=me();if(Ne(Di)){be();var r=qt(36),n=Ut(58,!1);return z(Ke(M.createJSDocFunctionType(r,n),e),t)}return Ke(M.createTypeReferenceNode(He(),void 0),e)}();case 53:return function(){var e=ge();return be(),Ke(M.createJSDocNonNullableType(gr()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return dr();case 40:return Ne(fr)?dr(!0):It();case 113:return Re();case 107:var e=Ot();return 136!==ye()||s.hasPrecedingLineBreak()?e:(t=e,be(),Ke(M.createTypePredicateNode(void 0,t,kr()),t.pos));case 111:return Ne(_r)?pr():function(){var e=ge();return we(111),Ke(M.createTypeQueryNode(St(!0)),e)}();case 18:return Ne(nr)?ir():function(){var e=ge();return Ke(M.createTypeLiteralNode(rr()),e)}();case 22:return function(){var e=ge();return Ke(M.createTupleTypeNode(Dt(21,cr,22,23)),e)}();case 20:return function(){var e=ge();we(20);var t=kr();return we(21),Ke(M.createParenthesizedType(t),e)}();case 99:return pr();case 127:return Ne(An)?function(){var e=ge(),t=Le(127),r=107===ye()?Ot():We(),n=Ie(136)?kr():void 0;return Ke(M.createTypePredicateNode(t,r,n),e)}():It();default:return It()}var t,r}function mr(e){switch(ye()){case 128:case 151:case 146:case 143:case 154:case 131:case 141:case 147:case 150:case 113:case 149:case 103:case 107:case 111:case 140:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 144:case 41:case 57:case 53:case 25:case 135:case 99:case 127:return!0;case 97:return!e;case 40:return!e&&Ne(fr);case 20:return!e&&Ne(yr);default:return Pe()}}function yr(){return be(),21===ye()||jt(!1)||mr()}function hr(){var e=ge();return we(135),Ke(M.createInferTypeNode(function(){var e=ge();return Ke(M.createTypeParameterDeclaration(We(),void 0,void 0),e)}()),e)}function vr(){var e=ye();switch(e){case 137:case 150:case 141:return function(e){var t=ge();return we(e),Ke(M.createTypeOperatorNode(e,vr()),t)}(e);case 135:return hr()}return function(){for(var e=ge(),t=gr();!s.hasPrecedingLineBreak();)switch(ye()){case 53:be(),t=Ke(M.createJSDocNonNullableType(t),e);break;case 57:if(Ne(_t))return t;be(),t=Ke(M.createJSDocNullableType(t),e);break;case 22:if(we(22),mr()){var r=kr();we(23),t=Ke(M.createIndexedAccessTypeNode(t,r),e)}else we(23),t=Ke(M.createArrayTypeNode(t),e);break;default:return t}return t}()}function br(t){if(Sr()){var r=ur();return pe(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 xr(e,t,r){var n=ge(),i=51===e,a=Ie(e),o=a&&br(i)||t();if(ye()===e||a){for(var s=[o];Ie(e);)s.push(br(i)||t());o=Ke(r(Je(s,n)),n)}return o}function Dr(){return xr(50,vr,M.createIntersectionTypeNode)}function Sr(){return 29===ye()||(!(20!==ye()||!Ne(Tr))||102===ye())}function Tr(){if(be(),21===ye()||25===ye())return!0;if(function(){if(e.isModifierKind(ye())&&ui(),Pe()||107===ye())return be(),!0;if(22===ye()||18===ye()){var t=D.length;return Wn(),t===D.length}return!1}()){if(58===ye()||27===ye()||57===ye()||62===ye())return!0;if(21===ye()&&(be(),38===ye()))return!0}return!1}function Er(){var e=ge(),t=Pe()&&Ae(Cr),r=kr();return t?Ke(M.createTypePredicateNode(void 0,t,r),e):r}function Cr(){var e=We();if(136===ye()&&!s.hasPrecedingLineBreak())return be(),e}function kr(){return te(40960,Nr)}function Nr(e){if(Sr())return ur();var t=ge(),r=xr(51,Dr,M.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Ie(93)){var n=Nr(!0);we(57);var i=Nr();we(58);var a=Nr();return Ke(M.createConditionalTypeNode(r,n,i,a),t)}return r}function Ar(){return Ie(58)?kr():void 0}function Fr(){switch(ye()){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 Ne(tr);default:return Pe()}}function Pr(){if(Fr())return!0;switch(ye()){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(se()&&100===ye())return!1;return e.getBinaryOperatorPrecedence(ye())>0}()||Pe()}}function wr(){var e=ce();e&&Z(!1);for(var t,r=ge(),n=Or();t=Oe(27);)n=Vr(n,t,Or(),r);return e&&Z(!0),n}function Ir(){return Ie(62)?Or():void 0}function Or(){if(function(){if(124===ye())return!!oe()||Ne(wn);return!1}())return function(){var e=ge();return be(),s.hasPrecedingLineBreak()||41!==ye()&&!Pr()?Ke(M.createYieldExpression(void 0,void 0),e):Ke(M.createYieldExpression(Oe(41),Or()),e)}();var t=function(){var e=function(){if(20===ye()||29===ye()||129===ye())return Ne(Lr);if(38===ye())return 1;return 0}();if(0===e)return;return 1===e?jr(!0):Ae(Rr)}()||function(){if(129===ye()&&1===Ne(Br)){var e=ge(),t=li();return Mr(e,Kr(0),t)}return}();if(t)return t;var r=ge(),n=Kr(0);return 78===n.kind&&38===ye()?Mr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(De())?Vr(n,Re(),Or(),r):function(t,r){var n,i=Oe(57);if(!i)return t;return Ke(M.createConditionalExpression(t,i,te(20480,Or),n=Le(58),e.nodeIsPresent(n)?Or():ze(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(n,r)}function Mr(t,r,n){e.Debug.assert(38===ye(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=M.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Ke(i,r.pos);var a=Je([i],i.pos,i.end),o=Le(38),s=Jr(!!n);return H(Ke(M.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Lr(){if(129===ye()){if(be(),s.hasPrecedingLineBreak())return 0;if(20!==ye()&&29!==ye())return 0}var t=ye(),r=be();if(20===t){if(21===r)switch(be()){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&&Ne(st))return 1;if(!Pe()&&107!==r)return 0;switch(be()){case 58:return 1;case 57:return be(),58===ye()||27===ye()||62===ye()||21===ye()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===t),Pe()?1===x?Ne((function(){var e=be();if(93===e)switch(be()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Rr(){var t=s.getTokenPos();if(!(null==w?void 0:w.has(t))){var r=jr(!1);return r||(w||(w=new e.Set)).add(t),r}}function Br(){if(129===ye()){if(be(),s.hasPrecedingLineBreak()||38===ye())return 0;var e=Kr(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===ye())return 1}return 0}function jr(t){var r,n=ge(),i=me(),a=li(),o=e.some(a,e.isAsyncModifier)?2:0,s=Bt();if(we(20)){if(r=Vt(o),!we(21)&&!t)return}else{if(!t)return;r=xt()}var c=Ut(58,!1);if(!c||t||!function t(r){switch(r.kind){case 172:return e.nodeIsMissing(r.typeName);case 173:case 174:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 185:return t(r.type);default:return!1}}(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===ye()||!u&&18===ye()){var l=ye(),d=Le(38),_=38===l||18===l?Jr(e.some(a,e.isAsyncModifier)):We();return z(Ke(M.createArrowFunction(a,s,r,c,d,_),n),i)}}}function Jr(e){if(18===ye())return Sn(e?2:0);if(26!==ye()&&97!==ye()&&83!==ye()&&Mn()&&(18===ye()||97===ye()||83===ye()||59===ye()||!Pr()))return Sn(16|(e?2:0));var t=L;L=!1;var r=e?ie(Or):te(32768,Or);return L=t,r}function Kr(e){var t=ge();return Ur(e,Wr(),t)}function zr(e){return 100===e||155===e}function Ur(t,r,n){for(;;){De();var i=e.getBinaryOperatorPrecedence(ye());if(!(42===ye()?i>=t:i>t))break;if(100===ye()&&se())break;if(126===ye()){if(s.hasPrecedingLineBreak())break;be(),a=r,o=kr(),r=Ke(M.createAsExpression(a,o),a.pos)}else r=Vr(r,Re(),Kr(i),n)}var a,o;return r}function Vr(e,t,r,n){return Ke(M.createBinaryExpression(e,t,r),n)}function qr(){var e=ge();return Ke(M.createPrefixUnaryExpression(ye(),ve(Hr)),e)}function Wr(){if(function(){switch(ye()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==x)return!1;default:return!0}}()){var t=ge(),r=Gr();return 42===ye()?Ur(e.getBinaryOperatorPrecedence(ye()),r,t):r}var n=ye(),i=Hr();if(42===ye()){t=e.skipTrivia(h,i.pos);var a=i.end;203===i.kind?_e(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):_e(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 Hr(){switch(ye()){case 39:case 40:case 54:case 53:return qr();case 88:return e=ge(),Ke(M.createDeleteExpression(ve(Hr)),e);case 111:return function(){var e=ge();return Ke(M.createTypeOfExpression(ve(Hr)),e)}();case 113:return function(){var e=ge();return Ke(M.createVoidExpression(ve(Hr)),e)}();case 29:return function(){var e=ge();we(29);var t=kr();we(31);var r=Hr();return Ke(M.createTypeAssertion(t,r),e)}();case 130:if(130===ye()&&(ue()||Ne(wn)))return function(){var e=ge();return Ke(M.createAwaitExpression(ve(Hr)),e)}();default:return Gr()}var e}function Gr(){if(45===ye()||46===ye()){var t=ge();return Ke(M.createPrefixUnaryExpression(ye(),ve(Yr)),t)}if(1===x&&29===ye()&&Ne(ut))return Qr(!0);var r=Yr();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ye()||46===ye())&&!s.hasPrecedingLineBreak()){var n=ye();return be(),Ke(M.createPostfixUnaryExpression(r,n),r.pos)}return r}function Yr(){var t,r=ge();return 99===ye()?Ne(Zt)?(d|=1048576,t=Re()):Ne(er)?(be(),be(),t=Ke(M.createMetaProperty(99,He()),r),d|=2097152):t=Xr():t=105===ye()?function(){var t=ge(),r=Re();if(29===ye()){var n=ge();void 0!==Ae(pn)&&_e(n,ge(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ye()||24===ye()||22===ye())return r;return Le(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ke(M.createPropertyAccessExpression(r,Et(!0,!0)),t)}():Xr(),dn(r,t)}function Xr(){return cn(ge(),fn(),!0)}function Qr(t,r){var n,i=ge(),a=function(e){var t=ge();if(we(29),31===ye())return Ce(),Ke(M.createJsxOpeningFragment(),t);var r,n=en(),i=yi(),a=function(){var e=ge();return Ke(M.createJsxAttributes(ft(13,rn)),e)}();31===ye()?(Ce(),r=M.createJsxOpeningElement(n,i,a)):(we(43),e?we(31):(we(31,void 0,!1),Ce()),r=M.createJsxSelfClosingElement(n,i,a));return Ke(r,t)}(t);if(272===a.kind){var o=Zr(a),s=function(e){var t=ge();we(30);var r=en();e?we(31):(we(31,void 0,!1),Ce());return Ke(M.createJsxClosingElement(r),t)}(t);T(a.tagName,s.tagName)||pe(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(h,a.tagName)),n=Ke(M.createJsxElement(a,o,s),i)}else 275===a.kind?n=Ke(M.createJsxFragment(a,Zr(a),function(t){var r=ge();we(30),e.tokenIsIdentifierOrKeyword(ye())&&pe(en(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?we(31):(we(31,void 0,!1),Ce());return Ke(M.createJsxJsxClosingFragment(),r)}(t)),i):(e.Debug.assert(271===a.kind),n=a);if(t&&29===ye()){var c=void 0===r?n.pos:r,u=Ae((function(){return Qr(!0,c)}));if(u){var l=ze(27,!1);return e.setTextRangePosWidth(l,u.pos,0),_e(e.skipTrivia(h,c),u.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ke(M.createBinaryExpression(n,l,u),i)}}return n}function $r(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))pe(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;_e(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=ge(),t=M.createJsxText(s.getTokenValue(),12===C);return C=s.scanJsxToken(),Ke(t,e)}();case 18:return tn(!1);case 29:return Qr(!1);default:return e.Debug.assertNever(r)}}function Zr(e){var t=[],r=ge(),n=P;for(P|=16384;;){var i=$r(e,C=s.reScanJsxToken());if(!i)break;t.push(i)}return P=n,Je(t,r)}function en(){var e=ge();Ee();for(var t=107===ye()?Re():He();Ie(24);)t=Ke(M.createPropertyAccessExpression(t,Et(!0,!1)),e);return t}function tn(e){var t,r,n=ge();if(we(18))return 19!==ye()&&(t=Oe(25),r=wr()),e?we(19):we(19,void 0,!1)&&Ce(),Ke(M.createJsxExpression(t,r),n)}function rn(){if(18===ye())return function(){var e=ge();we(18),we(25);var t=wr();return we(19),Ke(M.createJsxSpreadAttribute(t),e)}();Ee();var e=ge();return Ke(M.createJsxAttribute(He(),62!==ye()?void 0:10===(C=s.scanJsxAttributeValue())?At():tn(!0)),e)}function nn(){return be(),e.tokenIsIdentifierOrKeyword(ye())||22===ye()||un()}function an(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 on(t,r,n){var i=Et(!0,!0),a=n||an(r),o=a?M.createPropertyAccessChain(r,n,i):M.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&pe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ke(o,t)}function sn(t,r,n){var i;if(23===ye())i=ze(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ne(wr);e.isStringOrNumericLiteralLike(a)&&(a.text=Ue(a.text)),i=a}return we(23),Ke(n||an(r)?M.createElementAccessChain(r,n,i):M.createElementAccessExpression(r,i),t)}function cn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ye()&&Ne(nn)?(i=Le(28),a=e.tokenIsIdentifierOrKeyword(ye())):a=Ie(24),a)r=on(t,r,i);else if(i||53!==ye()||s.hasPrecedingLineBreak())if(!i&&ce()||!Ie(22)){if(!un())return r;r=ln(t,r,i,void 0)}else r=sn(t,r,i);else be(),r=Ke(M.createNonNullExpression(r),t)}}function un(){return 14===ye()||15===ye()}function ln(e,t,r,n){var i=M.createTaggedTemplateExpression(t,n,14===ye()?(Se(),At()):Ct(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ke(i,e)}function dn(t,r){for(;;){r=cn(t,r,!0);var n=Oe(28);if(29===ye()||47===ye()){var i=Ae(pn);if(i){if(un()){r=ln(t,r,n,i);continue}var a=_n();r=Ke(n||an(r)?M.createCallChain(r,n,i,a):M.createCallExpression(r,i,a),t);continue}}else if(20===ye()){a=_n();r=Ke(n||an(r)?M.createCallChain(r,n,void 0,a):M.createCallExpression(r,void 0,a),t);continue}if(n){var o=ze(78,!1,e.Diagnostics.Identifier_expected);r=Ke(M.createPropertyAccessChain(r,n,o),t)}break}return r}function _n(){we(20);var e=vt(11,mn);return we(21),e}function pn(){if(29===Te()){be();var e=vt(20,kr);if(we(31))return e&&function(){switch(ye()){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 fn(){switch(ye()){case 8:case 9:case 10:case 14:return At();case 107:case 105:case 103:case 109:case 94:return Re();case 20:return function(){var e=ge(),t=me();we(20);var r=ne(wr);return we(21),z(Ke(M.createParenthesizedExpression(r),e),t)}();case 22:return yn();case 18:return vn();case 129:if(!Ne(Pn))break;return bn();case 83:return pi(ge(),me(),void 0,void 0,218);case 97:return bn();case 102:return function(){var t=ge();if(we(102),Ie(24)){var r=He();return Ke(M.createMetaProperty(102,r),t)}var n,i,a=ge(),o=fn();for(;;){o=cn(a,o,!1),n=Ae(pn),un()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=ln(a,o,void 0,n),n=void 0);break}20===ye()?i=_n():n&&_e(t,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ke(M.createNewExpression(o,n,i),t)}();case 43:case 67:if(13===(C=s.reScanSlashToken()))return At();break;case 15:return Ct(!1)}return We(e.Diagnostics.Expression_expected)}function gn(){return 25===ye()?function(){var e=ge();we(25);var t=Or();return Ke(M.createSpreadElement(t),e)}():27===ye()?Ke(M.createOmittedExpression(),ge()):Or()}function mn(){return te(20480,gn)}function yn(){var e=ge();we(22);var t=s.hasPrecedingLineBreak(),r=vt(15,gn);return we(23),Ke(M.createArrayLiteralExpression(r,t),e)}function hn(){var e=ge(),t=me();if(Oe(25)){var r=Or();return z(Ke(M.createSpreadAssignment(r),e),t)}var n=si(),i=ui();if($e(134))return ni(e,t,n,i,166);if($e(145))return ni(e,t,n,i,167);var a,o=Oe(41),s=Pe(),c=Xe(),u=Oe(57),l=Oe(53);if(o||20===ye()||29===ye())return ei(e,t,n,i,o,c,u,l);if(s&&58!==ye()){var d=Oe(62),_=d?ne(Or):void 0;(a=M.createShorthandPropertyAssignment(c,_)).equalsToken=d}else{we(58);var p=ne(Or);a=M.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,z(Ke(a,e),t)}function vn(){var t=ge(),r=s.getTokenPos();we(18);var n=s.hasPrecedingLineBreak(),i=vt(12,hn,!0);if(!we(19)){var a=e.lastOrUndefined(D);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(l,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ke(M.createObjectLiteralExpression(i,n),t)}function bn(){var t=ce();t&&Z(!1);var r=ge(),n=me(),i=ui();we(97);var a=Oe(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?re(40960,xn):o?function(e){return re(8192,e)}(xn):s?ie(xn):xn(),u=Bt(),l=qt(o|s),d=Ut(58,!1),_=Sn(o|s);return t&&Z(!0),z(Ke(M.createFunctionExpression(i,a,c,u,l,d,_),r),n)}function xn(){return Fe()?qe():void 0}function Dn(t,r){var n=ge(),i=s.getTokenPos();if(we(18,r)||t){var a=s.hasPrecedingLineBreak(),o=ft(1,Rn);if(!we(19)){var c=e.lastOrUndefined(D);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(l,i,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ke(M.createBlock(o,a),n)}o=xt();return Ke(M.createBlock(o,void 0),n)}function Sn(e,t){var r=oe();$(!!(1&e));var n=ue();ee(!!(2&e));var i=L;L=!1;var a=ce();a&&Z(!1);var o=Dn(!!(16&e),t);return a&&Z(!0),L=i,$(r),ee(n),o}function Tn(){var e=ge();we(96);var t,r,n=Oe(130);if(we(20),26!==ye()&&(t=112===ye()||118===ye()||84===ye()?Yn(!0):re(4096,wr)),n?we(155):Ie(155)){var i=ne(Or);we(21),r=M.createForOfStatement(n,t,i,Rn())}else if(Ie(100)){i=ne(wr);we(21),r=M.createForInStatement(t,i,Rn())}else{we(26);var a=26!==ye()&&21!==ye()?ne(wr):void 0;we(26);var o=21!==ye()?ne(wr):void 0;we(21),r=M.createForStatement(t,a,o,Rn())}return Ke(r,e)}function En(e){var t=ge();we(238===e?80:85);var r=Be()?void 0:We();return je(),Ke(238===e?M.createBreakStatement(r):M.createContinueStatement(r),t)}function Cn(){return 81===ye()?function(){var e=ge();we(81);var t=ne(wr);we(58);var r=ft(3,Rn);return Ke(M.createCaseClause(t,r),e)}():function(){var e=ge();we(87),we(58);var t=ft(3,Rn);return Ke(M.createDefaultClause(t),e)}()}function kn(){var e=ge();we(106),we(20);var t=ne(wr);we(21);var r=function(){var e=ge();we(18);var t=ft(2,Cn);return we(19),Ke(M.createCaseBlock(t),e)}();return Ke(M.createSwitchStatement(t,r),e)}function Nn(){var e=ge();we(110);var t,r=Dn(!1),n=82===ye()?function(){var e,t=ge();we(82),Ie(20)?(e=Gn(),we(21)):e=void 0;var r=Dn(!1);return Ke(M.createCatchClause(e,r),t)}():void 0;return n&&95!==ye()||(we(95),t=Dn(!1)),Ke(M.createTryStatement(r,n,t),e)}function An(){return be(),e.tokenIsIdentifierOrKeyword(ye())&&!s.hasPrecedingLineBreak()}function Fn(){return be(),83===ye()&&!s.hasPrecedingLineBreak()}function Pn(){return be(),97===ye()&&!s.hasPrecedingLineBreak()}function wn(){return be(),(e.tokenIsIdentifierOrKeyword(ye())||8===ye()||9===ye()||10===ye())&&!s.hasPrecedingLineBreak()}function In(){for(;;)switch(ye()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 148:return be(),!s.hasPrecedingLineBreak()&&Pe();case 138:case 139:return Kn();case 125:case 129:case 133:case 120:case 121:case 122:case 141:if(be(),s.hasPrecedingLineBreak())return!1;continue;case 153:return be(),18===ye()||78===ye()||92===ye();case 99:return be(),10===ye()||41===ye()||18===ye()||e.tokenIsIdentifierOrKeyword(ye());case 92:var t=be();if(148===t&&(t=Ne(be)),62===t||41===t||18===t||87===t||126===t)return!0;continue;case 123:be();continue;default:return!1}}function On(){return Ne(In)}function Mn(){switch(ye()){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 On()||Ne(tr);case 84:case 92:return On();case 129:case 133:case 117:case 138:case 139:case 148:case 153:return!0;case 122:case 120:case 121:case 123:case 141:return On()||!Ne(An);default:return Pr()}}function Ln(){return be(),Pe()||18===ye()||22===ye()}function Rn(){switch(ye()){case 26:return t=ge(),we(26),Ke(M.createEmptyStatement(),t);case 18:return Dn(!1);case 112:return Qn(ge(),me(),void 0,void 0);case 118:if(Ne(Ln))return Qn(ge(),me(),void 0,void 0);break;case 97:return $n(ge(),me(),void 0,void 0);case 83:return _i(ge(),me(),void 0,void 0);case 98:return function(){var e=ge();we(98),we(20);var t=ne(wr);we(21);var r=Rn(),n=Ie(90)?Rn():void 0;return Ke(M.createIfStatement(t,r,n),e)}();case 89:return function(){var e=ge();we(89);var t=Rn();we(114),we(20);var r=ne(wr);return we(21),Ie(26),Ke(M.createDoStatement(t,r),e)}();case 114:return function(){var e=ge();we(114),we(20);var t=ne(wr);we(21);var r=Rn();return Ke(M.createWhileStatement(t,r),e)}();case 96:return Tn();case 85:return En(237);case 80:return En(238);case 104:return function(){var e=ge();we(104);var t=Be()?void 0:ne(wr);return je(),Ke(M.createReturnStatement(t),e)}();case 115:return function(){var e=ge();we(115),we(20);var t=ne(wr);we(21);var r=re(16777216,Rn);return Ke(M.createWithStatement(t,r),e)}();case 106:return kn();case 108:return function(){var e=ge();we(108);var t=s.hasPrecedingLineBreak()?void 0:ne(wr);return void 0===t&&(F++,t=Ke(M.createIdentifier(""),ge())),je(),Ke(M.createThrowStatement(t),e)}();case 110:case 82:case 95:return Nn();case 86:return function(){var e=ge();return we(86),je(),Ke(M.createDebuggerStatement(),e)}();case 59:return jn();case 129:case 117:case 148:case 138:case 139:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 141:case 153:if(On())return jn()}var t;return function(){var t,r=ge(),n=me(),i=20===ye(),a=ne(wr);return e.isIdentifier(a)&&Ie(58)?t=M.createLabeledStatement(a,Rn()):(je(),t=M.createExpressionStatement(a),i&&(n=!1)),z(Ke(t,r),n)}()}function Bn(e){return 133===e.kind}function jn(){var t=e.some(Ne((function(){return si(),ui()})),Bn);if(t){var r=re(8388608,(function(){var e=mt(P);if(e)return yt(e)}));if(r)return r}var n=ge(),i=me(),a=si(),o=ui();if(t){for(var s=0,c=o;s<c.length;s++){c[s].flags|=8388608}return re(8388608,(function(){return Jn(n,i,a,o)}))}return Jn(n,i,a,o)}function Jn(t,r,n,i){switch(ye()){case 112:case 118:case 84:return Qn(t,r,n,i);case 97:return $n(t,r,n,i);case 83:return _i(t,r,n,i);case 117:return function(e,t,r,n){we(117);var i=We(),a=Bt(),o=fi(),s=rr();return z(Ke(M.createInterfaceDeclaration(r,n,i,a,o,s),e),t)}(t,r,n,i);case 148:return function(e,t,r,n){we(148);var i=We(),a=Bt();we(62);var o=kr();return je(),z(Ke(M.createTypeAliasDeclaration(r,n,i,a,o),e),t)}(t,r,n,i);case 91:return function(e,t,r,n){we(91);var i,a=We();we(18)?(i=te(40960,(function(){return vt(6,vi)})),we(19)):i=xt();return z(Ke(M.createEnumDeclaration(r,n,a,i),e),t)}(t,r,n,i);case 153:case 138:case 139:return function(e,t,r,n){var i=0;if(153===ye())return xi(e,t,r,n);if(Ie(139))i|=16;else if(we(138),10===ye())return xi(e,t,r,n);return function e(t,r,n,i,a){var o=16&a,s=We(),c=Ie(24)?e(ge(),!1,void 0,void 0,4|o):bi();return z(Ke(M.createModuleDeclaration(n,i,s,c,a),t),r)}(e,t,r,n,i)}(t,r,n,i);case 99:return function(t,r,n,i){we(99);var a,o=s.getStartPos();Pe()&&(a=We());var c,u=!1;152===ye()||"type"!==(null==a?void 0:a.escapedText)||!Pe()&&41!==ye()&&18!==ye()||(u=!0,a=Pe()?We():void 0);if(a&&27!==ye()&&152!==ye())return function(t,r,n,i,a,o){we(62);var s=142===ye()&&Ne(Di)?function(){var e=ge();we(142),we(20);var t=Ti();return we(21),Ke(M.createExternalModuleReference(t),e)}():St(!1);je();var c=z(Ke(M.createImportEqualsDeclaration(n,i,a,s),t),r);o&&pe(c,e.Diagnostics.Only_ECMAScript_imports_may_use_import_type);return c}(t,r,n,i,a,u);(a||41===ye()||18===ye())&&(c=function(e,t,r){var n;e&&!Ie(27)||(n=41===ye()?function(){var e=ge();we(41),we(126);var t=We();return Ke(M.createNamespaceImport(t),e)}():Ei(261));return Ke(M.createImportClause(r,e,n),t)}(a,o,u),we(152));var l=Ti();return je(),z(Ke(M.createImportDeclaration(n,i,c,l),t),r)}(t,r,n,i);case 92:switch(be(),ye()){case 87:case 62:return function(e,t,r,n){var i,a=ue();ee(!0),Ie(62)?i=!0:we(87);var o=Or();return je(),ee(a),z(Ke(M.createExportAssignment(r,n,i,o),e),t)}(t,r,n,i);case 126:return function(e,t,r,n){we(126),we(139);var i=We();je();var a=M.createNamespaceExportDeclaration(i);return a.decorators=r,a.modifiers=n,z(Ke(a,e),t)}(t,r,n,i);default:return function(e,t,r,n){var i,a,o=ue();ee(!0);var c=Ie(148),u=ge();Ie(41)?(Ie(126)&&(i=function(e){return Ke(M.createNamespaceExport(We()),e)}(u)),we(152),a=Ti()):(i=Ei(265),(152===ye()||10===ye()&&!s.hasPrecedingLineBreak())&&(we(152),a=Ti()));return je(),ee(o),z(Ke(M.createExportDeclaration(r,n,c,i,a),e),t)}(t,r,n,i)}default:if(n||i){var a=ze(268,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.decorators=n,a.modifiers=i,a}return}}function Kn(){return be(),!s.hasPrecedingLineBreak()&&(Pe()||10===ye())}function zn(e,t){if(18===ye()||!Be())return Sn(e,t);je()}function Un(){var e=ge();if(27===ye())return Ke(M.createOmittedExpression(),e);var t=Oe(25),r=Wn(),n=Ir();return Ke(M.createBindingElement(t,void 0,r,n),e)}function Vn(){var e,t=ge(),r=Oe(25),n=Fe(),i=Xe();n&&58!==ye()?(e=i,i=void 0):(we(58),e=Wn());var a=Ir();return Ke(M.createBindingElement(r,i,e,a),t)}function qn(){return 18===ye()||22===ye()||79===ye()||Fe()}function Wn(e){return 22===ye()?function(){var e=ge();we(22);var t=vt(10,Un);return we(23),Ke(M.createArrayBindingPattern(t),e)}():18===ye()?function(){var e=ge();we(18);var t=vt(9,Vn);return we(19),Ke(M.createObjectBindingPattern(t),e)}():qe(e)}function Hn(){return Gn(!0)}function Gn(t){var r,n=ge(),i=Wn(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&78===i.kind&&53===ye()&&!s.hasPrecedingLineBreak()&&(r=Re());var a=Ar(),o=zr(ye())?void 0:Ir();return Ke(M.createVariableDeclaration(i,r,a,o),n)}function Yn(t){var r,n=ge(),i=0;switch(ye()){case 112:break;case 118:i|=1;break;case 84:i|=2;break;default:e.Debug.fail()}if(be(),155===ye()&&Ne(Xn))r=xt();else{var a=se();Q(t),r=vt(8,t?Gn:Hn),Q(a)}return Ke(M.createVariableDeclarationList(r,i),n)}function Xn(){return st()&&21===be()}function Qn(e,t,r,n){var i=Yn(!1);je();var a=M.createVariableStatement(n,i);return a.decorators=r,z(Ke(a,e),t)}function $n(t,r,n,i){var a=ue(),o=e.modifiersToFlags(i);we(97);var s=Oe(41),c=512&o?xn():qe(),u=s?1:0,l=256&o?2:0,d=Bt();1&o&&ee(!0);var _=qt(u|l),p=Ut(58,!1),f=zn(u|l,e.Diagnostics.or_expected);return ee(a),z(Ke(M.createFunctionDeclaration(n,i,s,c,d,_,p,f),t),r)}function Zn(t,r,n,i){return Ae((function(){if(132===ye()?we(132):10===ye()&&20===Ne(be)?Ae((function(){var e=At();return"constructor"===e.text?e:void 0})):void 0){var a=Bt(),o=qt(0),s=Ut(58,!1),c=zn(0,e.Diagnostics.or_expected),u=M.createConstructorDeclaration(n,i,o,c);return u.typeParameters=a,u.type=s,z(Ke(u,t),r)}}))}function ei(t,r,n,i,a,o,s,c,u){var l=a?1:0,d=e.some(i,e.isAsyncModifier)?2:0,_=Bt(),p=qt(l|d),f=Ut(58,!1),g=zn(l|d,u),m=M.createMethodDeclaration(n,i,a,o,s,_,p,f,g);return m.exclamationToken=c,z(Ke(m,t),r)}function ti(e,t,r,n,i,a){var o=a||s.hasPrecedingLineBreak()?void 0:Oe(53),c=Ar(),u=te(45056,Ir);return je(),z(Ke(M.createPropertyDeclaration(r,n,i,a||o,c,u),e),t)}function ri(t,r,n,i){var a=Oe(41),o=Xe(),s=Oe(57);return a||20===ye()||29===ye()?ei(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):ti(t,r,n,i,o,s)}function ni(e,t,r,n,i){var a=Xe(),o=Bt(),s=qt(0),c=Ut(58,!1),u=zn(0),l=166===i?M.createGetAccessorDeclaration(r,n,a,s,c,u):M.createSetAccessorDeclaration(r,n,a,s,u);return l.typeParameters=o,c&&167===l.kind&&(l.type=c),z(Ke(l,e),t)}function ii(){var t;if(59===ye())return!0;for(;e.isModifierKind(ye());){if(t=ye(),e.isClassMemberModifier(t))return!0;be()}if(41===ye())return!0;if(Ge()&&(t=ye(),be()),22===ye())return!0;if(void 0!==t){if(!e.isKeyword(t)||145===t||134===t)return!0;switch(ye()){case 20:case 29:case 53:case 58:case 62:case 57:return!0;default:return Be()}}return!1}function ai(){if(ue()&&130===ye()){var t=ge(),r=We(e.Diagnostics.Expression_expected);return be(),dn(t,cn(t,r,!0))}return Yr()}function oi(){var e=ge();if(Ie(59)){var t=re(16384,ai);return Ke(M.createDecorator(t),e)}}function si(){for(var t,r,n=ge();r=oi();)t=e.append(t,r);return t&&Je(t,n)}function ci(t){var r=ge(),n=ye();if(84===ye()&&t){if(!Ae(Ze))return}else if(!e.isModifierKind(ye())||!Ae(et))return;return Ke(M.createToken(n),r)}function ui(t){for(var r,n,i=ge();n=ci(t);)r=e.append(r,n);return r&&Je(r,i)}function li(){var e;if(129===ye()){var t=ge();be(),e=Je([Ke(M.createToken(129),t)],t)}return e}function di(){var t=ge();if(26===ye())return be(),Ke(M.createSemicolonClassElement(),t);var r=me(),n=si(),i=ui(!0);if($e(134))return ni(t,r,n,i,166);if($e(145))return ni(t,r,n,i,167);if(132===ye()||10===ye()){var a=Zn(t,r,n,i);if(a)return a}if(Gt())return Xt(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(ye())||10===ye()||8===ye()||41===ye()||22===ye()){if(e.some(i,Bn)){for(var o=0,s=i;o<s.length;o++){s[o].flags|=8388608}return re(8388608,(function(){return ri(t,r,n,i)}))}return ri(t,r,n,i)}if(n||i){var c=ze(78,!0,e.Diagnostics.Declaration_expected);return ti(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function _i(e,t,r,n){return pi(e,t,r,n,249)}function pi(t,r,n,i,a){var o=ue();we(83);var s=!Fe()||116===ye()&&Ne(ct)?void 0:Ve(Fe()),c=Bt();e.some(i,e.isExportModifier)&&ee(!0);var u,l=fi();return we(18)?(u=ft(5,di),we(19)):u=xt(),ee(o),z(Ke(249===a?M.createClassDeclaration(n,i,s,c,l,u):M.createClassExpression(n,i,s,c,l,u),t),r)}function fi(){if(hi())return ft(22,gi)}function gi(){var t=ge(),r=ye();e.Debug.assert(93===r||116===r),be();var n=vt(7,mi);return Ke(M.createHeritageClause(r,n),t)}function mi(){var e=ge(),t=Yr(),r=yi();return Ke(M.createExpressionWithTypeArguments(t,r),e)}function yi(){return 29===ye()?Dt(20,kr,29,31):void 0}function hi(){return 93===ye()||116===ye()}function vi(){var e=ge(),t=me(),r=Xe(),n=ne(Ir);return z(Ke(M.createEnumMember(r,n),e),t)}function bi(){var e,t=ge();return we(18)?(e=ft(1,Rn),we(19)):e=xt(),Ke(M.createModuleBlock(e),t)}function xi(e,t,r,n){var i,a,o=0;return 153===ye()?(i=We(),o|=1024):(i=At()).text=Ue(i.text),18===ye()?a=bi():je(),z(Ke(M.createModuleDeclaration(r,n,i,a,o),e),t)}function Di(){return 20===be()}function Si(){return 43===be()}function Ti(){if(10===ye()){var e=At();return e.text=Ue(e.text),e}return wr()}function Ei(e){var t=ge();return Ke(261===e?M.createNamedImports(Dt(23,ki,18,19)):M.createNamedExports(Dt(23,Ci,18,19)),t)}function Ci(){return Ni(267)}function ki(){return Ni(262)}function Ni(t){var r,n,i=ge(),a=e.isKeyword(ye())&&!Pe(),o=s.getTokenPos(),c=s.getTextPos(),u=He();return 126===ye()?(r=u,we(126),a=e.isKeyword(ye())&&!Pe(),o=s.getTokenPos(),c=s.getTextPos(),n=He()):n=u,262===t&&a&&_e(o,c,e.Diagnostics.Identifier_expected),Ke(262===t?M.createImportSpecifier(r,n):M.createExportSpecifier(r,n),i)}function Ai(t){return function(t,r){return e.some(t.modifiers,(function(e){return e.kind===r}))}(t,92)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function Fi(t){return function(t){return e.isMetaProperty(t)&&99===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:p(t,Fi)}t.fixupParentReferences=G,function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.Count=24]="Count"}(U||(U={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(V||(V={})),function(t){function r(t){var r,n=ge(),i=(t?Ie:we)(18),a=re(4194304,Lt);t&&!i||(r=19,ye()===r?xe():le(e.Diagnostics._0_expected,e.tokenToString(r)));var o=M.createJSDocTypeExpression(a);return G(o),Ke(o,n)}var n,i;function a(t,n){void 0===t&&(t=0);var i=h,a=void 0===n?i.length:t+n;if(n=a-t,e.Debug.assert(t>=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),_(i,t)){var o,c,u,d=[];return s.scanRange(t+3,n-5,(function(){var e,r,n,l=1,_=t-Math.max(i.lastIndexOf("\n",t),0)+4;function g(t){e||(e=_),d.push(t),_+=t.length}for(xe();j(5););j(4)&&(l=0,_=0);e:for(;;){switch(ye()){case 59:0===l||1===l?(f(d),S(v(_)),l=0,e=void 0):g(s.getTokenText());break;case 4:d.push(s.getTokenText()),l=0,_=0;break;case 41:var m=s.getTokenText();1===l||2===l?(l=2,g(m)):(l=1,_+=m.length);break;case 5:var y=s.getTokenText();2===l?d.push(y):void 0!==e&&_+y.length>e&&d.push(y.slice(e-_-1)),_+=y.length;break;case 1:break e;default:l=2,g(s.getTokenText())}xe()}return p(d),f(d),r=d.length?d.join(""):void 0,n=o&&Je(o,c,u),Ke(M.createJSDocComment(r,n),t,a)}))}function p(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function f(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function g(){for(;;){if(xe(),1===ye())return!0;if(5!==ye()&&4!==ye())return!1}}function m(){if(5!==ye()&&4!==ye()||!Ne(g))for(;5===ye()||4===ye();)xe()}function y(){if((5===ye()||4===ye())&&Ne(g))return"";for(var e=s.hasPrecedingLineBreak(),t=!1,r="";e&&41===ye()||5===ye()||4===ye();)r+=s.getTokenText(),4===ye()?(e=!0,t=!0,r=""):41===ye()&&(e=!1),xe();return t?r:""}function v(t){e.Debug.assert(59===ye());var n=s.getTokenPos();xe();var i,a=J(void 0),c=y();switch(a.escapedText){case"author":i=function(e,t,r,n){var i=Ae((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=xe()}if(t&&r)return 0===e.length?void 0:e.join("")}()}));if(!i){var a=ge();return Ke(M.createJSDocAuthorTag(t,b(e,a,r,n)),e,a)}var o=i;if(Ne((function(){return 4!==be()}))){var c=x(r);c&&(o+=c)}return Ke(M.createJSDocAuthorTag(t,o),e)}(n,a,t,c);break;case"implements":i=function(e,t,r,n){var i=A(),a=ge();return Ke(M.createJSDocImplementsTag(t,i,b(e,a,r,n)),e,a)}(n,a,t,c);break;case"augments":case"extends":i=function(e,t,r,n){var i=A(),a=ge();return Ke(M.createJSDocAugmentsTag(t,i,b(e,a,r,n)),e,a)}(n,a,t,c);break;case"class":case"constructor":i=P(n,M.createJSDocClassTag,a,t,c);break;case"public":i=P(n,M.createJSDocPublicTag,a,t,c);break;case"private":i=P(n,M.createJSDocPrivateTag,a,t,c);break;case"protected":i=P(n,M.createJSDocProtectedTag,a,t,c);break;case"readonly":i=P(n,M.createJSDocReadonlyTag,a,t,c);break;case"deprecated":W=!0,i=P(n,M.createJSDocDeprecatedTag,a,t,c);break;case"this":i=function(e,t,n,i){var a=r(!0);m();var o=ge();return Ke(M.createJSDocThisTag(t,a,b(e,o,n,i)),e,o)}(n,a,t,c);break;case"enum":i=function(e,t,n,i){var a=r(!0);m();var o=ge();return Ke(M.createJSDocEnumTag(t,a,b(e,o,n,i)),e,o)}(n,a,t,c);break;case"arg":case"argument":case"param":return k(n,a,2,t);case"return":case"returns":i=function(t,r,n,i){e.some(o,e.isJSDocReturnTag)&&_e(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=T(),c=ge();return Ke(M.createJSDocReturnTag(r,a,b(t,c,n,i)),t,c)}(n,a,t,c);break;case"template":i=function(e,t,n,i){var a=18===ye()?r():void 0,o=function(){var e=ge(),t=[];do{m(),t.push(B()),y()}while(j(27));return Je(t,e)}(),s=ge();return Ke(M.createJSDocTemplateTag(t,a,o,b(e,s,n,i)),e,s)}(n,a,t,c);break;case"type":i=N(n,a,t,c);break;case"typedef":i=function(t,r,n,i){var a,o=T();y();var s=w();m();var c,u=x(n);if(!o||C(o.type)){for(var d=void 0,_=void 0,p=void 0,f=!1;d=Ae((function(){return O(n)}));)if(f=!0,325===d.kind){if(_){le(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(D);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(l,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}_=d}else p=e.append(p,d);if(f){var h=o&&177===o.type.kind,v=M.createJSDocTypeLiteral(p,h);c=(o=_&&_.typeExpression&&!C(_.typeExpression.type)?_.typeExpression:Ke(v,t)).end}}c=c||void 0!==u?ge():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,u||(u=b(t,c,n,i));return Ke(M.createJSDocTypedefTag(r,o,s,u),t,c)}(n,a,t,c);break;case"callback":i=function(t,r,n,i){var a=w();m();var o=x(n),s=function(t){var r,n,i=ge();for(;r=Ae((function(){return L(4,t)}));)n=e.append(n,r);return Je(n||[],i)}(n),c=Ae((function(){if(j(59)){var e=v(n);if(e&&323===e.kind)return e}})),u=Ke(M.createJSDocSignature(void 0,s,c),t),l=ge();o||(o=b(t,l,n,i));return Ke(M.createJSDocCallbackTag(r,u,a,o),t,l)}(n,a,t,c);break;default:i=function(e,t,r,n){var i=ge();return Ke(M.createJSDocUnknownTag(t,b(e,i,r,n)),e,i)}(n,a,t,c)}return i}function b(e,t,r,n){return n||(r+=t-e),x(r,n.slice(r))}function x(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=ye();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,Ne((function(){return 59===xe()&&e.tokenIsIdentifierOrKeyword(xe())&&"link"===s.getTokenText()}))&&(o(s.getTokenText()),xe(),o(s.getTokenText()),xe()),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=xe()}return p(i),f(i),0===i.length?void 0:i.join("")}function S(e){e&&(o?o.push(e):(o=[e],c=e.pos),u=e.end)}function T(){return y(),18===ye()?r():void 0}function E(){var t=j(22);t&&m();var r=j(61),n=function(){var e=J();Ie(22)&&we(23);for(;Ie(24);){var t=J();Ie(22)&&we(23),e=Tt(e,t)}return e}();return r&&function(t){Me(t)||ze(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))}(61),t&&(m(),Oe(62)&&wr(),we(23)),{name:n,isBracketed:t}}function C(t){switch(t.kind){case 144:return!0;case 177:return C(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function k(t,r,n,i){var a=T(),o=!a;y();var c=E(),u=c.name,l=c.isBracketed;m(),o&&(a=T());var d=x(i+s.getStartPos()-t),_=4!==n&&function(t,r,n,i){if(t&&C(t.type)){for(var a=ge(),o=void 0,s=void 0;o=Ae((function(){return L(n,i,r)}));)322!==o.kind&&328!==o.kind||(s=e.append(s,o));if(s){var c=Ke(M.createJSDocTypeLiteral(s,177===t.type.kind),a);return Ke(M.createJSDocTypeExpression(c),a)}}}(a,u,n,i);return _&&(a=_,o=!0),Ke(1===n?M.createJSDocPropertyTag(r,u,l,a,o,d):M.createJSDocParameterTag(r,u,l,a,o,d),t)}function N(t,n,i,a){e.some(o,e.isJSDocTypeTag)&&_e(n.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var c=r(!0),u=ge(),l=void 0!==i&&void 0!==a?b(t,u,i,a):void 0;return Ke(M.createJSDocTypeTag(n,c,l),t,u)}function A(){var e=Ie(18),t=ge(),r=function(){var e=ge(),t=J();for(;Ie(24);){var r=J();t=Ke(M.createPropertyAccessExpression(t,r),e)}return t}(),n=yi(),i=Ke(M.createExpressionWithTypeArguments(r,n),t);return e&&we(19),i}function P(e,t,r,n,i){var a=ge();return Ke(t(r,b(e,a,n,i)),e,a)}function w(t){var r=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ye())){var n=J();if(Ie(24)){var i=w(!0);return Ke(M.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function I(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 O(e){return L(1,e)}function L(t,r,n){for(var i=!0,a=!1;;)switch(xe()){case 59:if(i){var o=R(t,r);return!(o&&(322===o.kind||328===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!I(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 R(t,r){e.Debug.assert(59===ye());var n=s.getStartPos();xe();var i,a=J();switch(m(),a.escapedText){case"type":return 1===t&&N(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&k(n,a,t,r)}function B(){var t=ge(),r=J(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);return Ke(M.createTypeParameterDeclaration(r,void 0,void 0),t)}function j(e){return ye()===e&&(xe(),!0)}function J(t){if(!e.tokenIsIdentifierOrKeyword(ye()))return ze(78,!t,t||e.Diagnostics.Identifier_expected);F++;var r=s.getTokenPos(),n=s.getTextPos(),i=ye(),a=Ue(s.getTokenValue()),o=Ke(M.createIdentifier(a,void 0,i),r,n);return xe(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){j("file.js",t,99,void 0,1),s.setText(t,n,i),C=s.scan();var a=r(),o=Y("file.js",99,1,!1,[],M.createToken(1),0),c=e.attachFileToDiagnostics(D,o);return S&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(S,o)),J(),a?{jsDocTypeExpression:a,diagnostics:c}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(t,r,n){j("",t,99,void 0,1);var i=re(4194304,(function(){return a(r,n)})),o={languageVariant:0,text:t},s=e.attachFileToDiagnostics(D,o);return J(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=C,o=D.length,s=R,c=re(4194304,(function(){return a(r,n)}));return e.setParent(c,t),131072&I&&(S||(S=[]),S.push.apply(S,D)),C=i,D.length=o,R=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={}))}(q=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<n.length;r++){u(n[r])}}}function n(e){switch(e.kind){case 10:case 8:case 78:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++){i(o[a])}p(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(p(t,(function t(a){if(e.nodeIsMissing(a))return;if(!(a.pos<=r))return e.Debug.assert(a.pos>r),!0;if(a.pos>=i.pos&&(i=a),r<a.end)return p(a,t),!0;e.Debug.assert(a.end<=r),n=a})),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function u(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void p(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(p(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return p(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}var l;t.updateSourceFile=function(t,n,l,d){if(s(t,n,l,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(l))return t;if(0===t.statements.length)return c.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var _=t;e.Debug.assert(!_.hasBeenIncrementallyParsed),_.hasBeenIncrementallyParsed=!0,c.fixupParentReferences(_);var f=t.text,g=u(t),m=function(t,r){for(var n=1,i=r.span.start,a=0;i>0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var u=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-i);return e.createTextChangeRange(u,l)}(t,l);s(t,n,m,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;m<y.length;m++){_(y[m])}a(t,d)}else e.Debug.assert(g<n)}}function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,u,l,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;p<f.length;p++){_(f[p])}}else e.Debug.assert(a<n)}}}(_,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),y,f,n,d);var h=c.parseSourceFile(t.fileName,n,t.languageVersion,g,!0,t.scriptKind);return h.commentDirectives=function(t,r,n,i,a,o,s,c){if(!t)return r;for(var u,l=!1,d=0,_=t;d<_.length;d++){var p=_[d],f=p.range,g=p.type;if(f.end<n)u=e.append(u,p);else if(f.pos>i){y();var m={range:{pos:f.pos+a,end:f.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),u;function y(){l||(l=!0,u?r&&u.push.apply(u,r):u=r)}}(t.commentDirectives,h.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,f,n,d),h},t.createSyntaxCursor=u,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(u||(u={})),e.isDeclarationFileName=g,e.processCommentPragmas=m,e.processPragmasIntoFields=y;var h=new e.Map;function v(e){if(h.has(e))return h.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return h.set(e,t),t}var b=/^\/\/\/\s*<(\S+)\s.*?\/>/im,x=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function D(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<u.length;c++){var l=u[c],d=v(l.name).exec(n);if(!d&&!l.optional)return;if(d)if(l.captureSpan){var _=r.pos+d.index+d[1].length+d[2].length;s[l.name]={value:d[3],pos:_,end:_+d[3].length}}else s[l.name]=d[3]}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var p=2===r.kind&&x.exec(n);if(p)return S(t,r,2,p);if(3===r.kind)for(var f=/\s*@(\S+)\s*(.*)\s*$/gim,g=void 0;g=f.exec(n);)S(t,r,4,g)}}function S(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=function(t,r){if(!r)return{};if(!t.args)return{};for(var n=r.split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function T(e,t){return e.kind===t.kind&&(78===e.kind?e.escapedText===t.escapedText:107===e.kind||e.name.escapedText===t.name.escapedText&&T(e.expression,t.expression))}e.tagNamesAreEquivalent=T}(u||(u={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var t,i,a=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"]];function o(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(function(e){r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function s(){return t||(t=o(e.optionDeclarations))}function c(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function u(t){return l(t,e.createCompilerDiagnostic)}function l(t,r){var n=e.arrayFrom(t.type.keys()).map((function(e){return"'"+e+"'"})).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function d(e,t,r){return ue(e,le(t||""),r)}function _(t,r,n){if(void 0===r&&(r=""),r=le(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,(function(e){return e||""}));default:return e.mapDefined(i,(function(e){return d(t.element,e,n)}))}}}function p(e){return e.name}function f(t,r,n,i){var a=e.getSpellingSuggestion(t,r.optionDeclarations,p);return a?n(r.unknownDidYouMeanDiagnostic,i||t,a.name):n(r.unknownOptionDiagnostic,i||t)}function g(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))u(c.slice(1));else if(45===c.charCodeAt(0)){var l=c.slice(45===c.charCodeAt(1)?2:1),d=h(t.getOptionsNameMap,l,!0);if(d)n=m(r,n,t,d,a,s);else{var _=h(P.getOptionsNameMap,l,!0);_?n=m(r,n,P,_,i||(i={}),s):s.push(f(l,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function u(t){var r=D(t,n||function(t){return e.sys.readFile(t)});if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function m(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=!1,r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,R(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=parseInt(t[r]),r++;break;case"boolean":var s=t[r];a[i.name]="false"!==s,"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=t[r]||"",r++;break;case"list":var c=_(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=d(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function y(e,t){return h(s,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=a.map((function(e){return e[0]})),e.libMap=new e.Map(a),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:"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:new e.Map(e.getEntries({preserve:1,"react-native":3,react:2})),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",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:"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:"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"}}],e.createOptionNameMap=o,e.getOptionsNameMap=s,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=c,e.createCompilerDiagnosticForInvalidCustomType=u,e.parseCustomTypeOption=d,e.parseListTypeOption=_,e.parseCommandLineWorker=g,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:s,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return g(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=y;var v={getOptionsNameMap:function(){return i||(i=o(e.buildOpts))},optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function b(t,r){var n=e.parseJsonText(t,r);return{config:M(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function x(t,r){var n=D(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}function D(t,r){var n;try{n=r(t)}catch(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 S(t){return e.arrayToMap(t,p)}e.parseBuildCommand=function(t){var r=g(v,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=function(t,r,n,i,a,o){var s=D(t,(function(e){return n.readFile(e)}));if(e.isString(s)){var c=e.parseJsonText(t,s),u=n.getCurrentDirectory();return c.path=e.toPath(t,u,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,q(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),u),r,e.getNormalizedAbsolutePath(t,u),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(t,r){var n=D(t,r);return e.isString(n)?b(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=b,e.readJsonConfigFile=x,e.tryReadFile=D;var T,E={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function C(){return T||(T=o(e.optionsForWatch))}var k,N,A,F,P={getOptionsNameMap:C,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function w(){return k||(k=S(e.optionDeclarations))}function I(){return N||(N=S(e.optionsForWatch))}function O(){return A||(A=S(e.typeAcquisitionDeclarations))}function M(e,t){return L(e,t,!0,void 0,void 0)}function L(t,r,n,i,a){return t.statements.length?c(t.statements[0].expression,i):n?{}:void 0;function o(e){return i&&i.elementOptions===e}function s(i,s,l,d){for(var _=n?{}:void 0,p=function(i){if(285!==i.kind)return r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Property_assignment_expected)),"continue";i.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(t,i.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),u(i.name)||r.push(e.createDiagnosticForNodeInSourceFile(t,i.name,e.Diagnostics.String_literal_with_double_quotes_expected));var p=e.isComputedNonLiteralName(i.name)?void 0:e.getTextOfPropertyName(i.name),g=p&&e.unescapeLeadingUnderscores(p),m=g&&s?s.get(g):void 0;g&&l&&!m&&(s?r.push(f(g,l,(function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i.name,r,n,a)}))):r.push(e.createDiagnosticForNodeInSourceFile(t,i.name,l.unknownOptionDiagnostic,g)));var y=c(i.initializer,m);if(void 0!==g&&(n&&(_[g]=y),a&&(d||o(s)))){var h=B(m,y);d?h&&a.onSetValidOptionKeyValueInParent(d,m,y):o(s)&&(h?a.onSetValidOptionKeyValueInRoot(g,i.name,y,i.initializer):m||a.onSetUnknownOptionKeyValueInRoot(g,i.name,y,i.initializer))}},g=0,m=i.properties;g<m.length;g++){p(m[g])}return _}function c(i,a){switch(i.kind){case 109:return m(a&&"boolean"!==a.type),!0;case 94:return m(a&&"boolean"!==a.type),!1;case 103:return m(a&&"extends"===a.name),null;case 10:u(i)||r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.String_literal_with_double_quotes_expected)),m(a&&e.isString(a.type)&&"string"!==a.type);var o=i.text;if(a&&!e.isString(a.type)){var d=a;d.type.has(o.toLowerCase())||r.push(l(d,(function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i,r,n,a)})))}return o;case 8:return m(a&&"number"!==a.type),Number(i.text);case 211:if(40!==i.operator||8!==i.operand.kind)break;return m(a&&"number"!==a.type),-Number(i.operand.text);case 197:m(a&&"object"!==a.type);var _=i;if(a){var p=a;return s(_,p.elementOptions,p.extraKeyDiagnostics,p.name)}return s(_,void 0,void 0,void 0);case 196:return m(a&&"list"!==a.type),f=i.elements,g=a&&a.element,n?e.filter(f.map((function(e){return c(e,g)})),(function(e){return void 0!==e})):f.forEach((function(e){return c(e,g)}))}var f,g;return void(a?m(!0):r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function m(n){n&&r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,R(a)))}}function u(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function R(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function B(t,r){return!!t&&(!!H(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function j(t){return n({},e.arrayFrom(t.entries()).reduce((function(e,t){var r;return n(n({},e),((r={})[t[0]]=t[1],r))}),{}))}function J(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function K(t,r){return e.forEachEntry(r,(function(e,r){if(e===t)return r}))}function z(e,t){return U(e,s(),t)}function U(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=function(r){if(e.hasProperty(t,r)){if(i.has(r)&&i.get(r).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var u=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type||"object"===t.type?void 0:"list"===t.type?e(t.element):t.type}(c);u?"list"===c.type?a.set(r,s.map((function(e){return K(e,u)}))):a.set(r,K(s,u)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function V(e,t,r){if(e&&!H(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function q(e,t,r,n,i,a,o,s,c){return Y(void 0,e,t,r,n,c,i,a,o,s)}function W(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function H(e){return null==e}function G(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function Y(t,r,n,i,a,o,s,c,u,l){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===u&&(u=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var d,_=[],p=ee(t,r,n,i,s,c,_,l),f=p.raw,g=e.extend(a,p.options||{}),m=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;g.configFilePath=s&&e.normalizeSlashes(s),W(g,r);var y=function(){var t=S("references",(function(e){return"object"==typeof e}),"object");if(e.isArray(t))for(var a=0,o=t;a<o.length;a++){var l=o[a];"string"!=typeof l.path?T(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(d||(d=[])).push({path:e.getNormalizedAbsolutePath(l.path,i),originalPath:l.path,prepend:l.prepend,circular:l.circular})}var p=x(D("files"));if(p){var m="no-prop"===t||e.isArray(t)&&0===t.length,y=e.hasProperty(f,"extends");if(0===p.length&&m&&!y)if(r){var h=s||"tsconfig.json",v=e.Diagnostics.The_files_list_in_config_file_0_is_empty,b=e.firstDefined(e.getTsConfigPropArray(r,"files"),(function(e){return e.initializer})),E=b?e.createDiagnosticForNodeInSourceFile(r,b,v,h):e.createCompilerDiagnostic(v,h);_.push(E)}else T(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var C=x(D("include")),k=D("exclude"),N=x(k);if("no-prop"===k&&f.compilerOptions){var A=f.compilerOptions.outDir,F=f.compilerOptions.declarationDir;(A||F)&&(N=[A,F].filter((function(e){return!!e})))}void 0===p&&void 0===C&&(C=["**/*"]);var P=function(t,r,n,i,a,o,s,c,u){var l,d;i=e.normalizePath(i),r&&(l=me(r,s,!1,u,"include"));n&&(d=me(n,s,!0,u,"exclude"));var _=function(t,r,n,i){var a=e.getRegularExpressionForWildcard(r,n,"exclude"),o=a&&new RegExp(a,i?"":"i"),s={};if(void 0!==t){for(var c=[],u=0,l=t;u<l.length;u++){var d=l[u],_=e.normalizePath(e.combinePaths(n,d));if(!o||!o.test(_)){var p=ye(_,i);if(p){var f=p.key,g=p.flags,m=s[f];(void 0===m||m<g)&&(s[f]=g,1===g&&c.push(f))}}}for(var f in s)if(e.hasProperty(s,f))for(var y=0,h=c;y<h.length;y++){var v=h[y];f!==v&&e.containsPath(v,f,n,!i)&&delete s[f]}}return s}(l,d,i,o.useCaseSensitiveFileNames);return ge({filesSpecs:t,includeSpecs:r,excludeSpecs:n,validatedFilesSpec:e.filter(t,e.isString),validatedIncludeSpecs:l,validatedExcludeSpecs:d,wildcardDirectories:_},i,a,o,c)}(p,C,N,s?G(s,i):i,g,n,_,u,r);Q(P,$(f),c)&&_.push(X(P.spec,s));return P}(),h=y.fileNames,v=y.wildcardDirectories,b=y.spec;return{options:g,watchOptions:m,fileNames:h,projectReferences:d,typeAcquisition:p.typeAcquisition||ie(),raw:f,errors:_,wildcardDirectories:v,compileOnSave:!!f.compileOnSave,configFileSpecs:b};function x(t){return e.isArray(t)?t:void 0}function D(t){return S(t,e.isString,"string")}function S(t,n,i){if(e.hasProperty(f,t)&&!H(f[t])){if(e.isArray(f[t])){var a=f[t];return r||e.every(a,n)||_.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return T(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function T(t,n,i){r||_.push(e.createCompilerDiagnostic(t,n,i))}}function X(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function Q(e,t,r){return 0===e.fileNames.length&&t&&(!r||0===r.length)}function $(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function Z(e){return!!e.options}function ee(t,n,i,a,o,s,c,u){a=e.normalizeSlashes(a);var l=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(l)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,r(s,[l]).join(" -> "))),{raw:t||M(n,c)};var d=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ne(t.compilerOptions,n,a,i),c=ae(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return oe(I(),e,t,void 0,P,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=se(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var l=i?G(i,n):n;o=te(t.extends,r,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,r,n,i,a){var o,s,c,u,l=re(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=ie(i));break;case"typingOptions":u=s||(s=ie(i));break;default:e.Debug.fail("Unknown option")}u[r.name]=function t(r,n,i){if(H(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,(function(e){return t(a.element,n,e)})),(function(e){return!!e})):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return ce(r,n,i)}(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var d=i?G(i,n):n;return void(u=te(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))}},_=L(t,a,!0,(void 0===F&&(F={name:void 0,type:"object",elementOptions:S([{name:"compilerOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:I(),extraKeyDiagnostics:P},{name:"typingOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:E},{name:"typeAcquisition",type:"object",elementOptions:O(),extraKeyDiagnostics:E},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),F),d);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ie(i));return{raw:_,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(n,i,a,o,c);if(d.extendedConfigPath){s=s.concat([l]);var _=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=x(r,(function(e){return n.readFile(e)}))).parseDiagnostics.length){var p=e.getDirectoryPath(r);if(Z(d=ee(void 0,l,n,p,e.getBaseFileName(r),a,o,s))){var f=e.convertToRelativePath(p,i,e.identity),g=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},m=function(t){y[t]&&(y[t]=e.map(y[t],g))},y=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,d.extendedConfigPath,i,a,s,c,u);if(_&&Z(_)){var p=_.raw,f=d.raw,g=function(e){var t=f[e]||p[e];t&&(f[e]=t)};g("include"),g("exclude"),g("files"),void 0===f.compileOnSave&&(f.compileOnSave=p.compileOnSave),d.options=e.assign({},_.options,d.options),d.watchOptions=d.watchOptions&&_.watchOptions?e.assign({},_.watchOptions,d.watchOptions):d.watchOptions||_.watchOptions}}return d}function te(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function re(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ne(t,r,n,i){var a=re(i);return oe(w(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ie(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function ae(e,t,r,n){var i=ie(n),a=c(e);return oe(O(),a,t,i,E,r),i}function oe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=se(c,r[s],n,o):o.push(f(s,a,e.createCompilerDiagnostic))}return i}}function se(t,r,n,i){if(B(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,(function(e){return se(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i):e.isString(a)?ce(t,n,r):ue(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,R(t)))}function ce(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ue(e,t,r){if(!H(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(u(e))}}function le(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=M,e.convertToObjectWorker=L,e.convertToTSConfig=function(t,r,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=z(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),c=t.watchOptions&&function(e){return U(e,C())}(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:J(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=z(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c<u.length;c++){var l=u[c],d=l.category;s(l)&&t.add(e.getLocaleSpecificMessage(d),l)}var _=0,p=0,f=[];t.forEach((function(t,r){0!==f.length&&f.push({value:""}),f.push({value:"/* "+r+" */"});for(var n=0,o=t;n<o.length;n++){var s=o[n],c=void 0;c=i.has(s.name)?'"'+s.name+'": '+JSON.stringify(i.get(s.name))+((p+=1)===i.size?"":","):'// "'+s.name+'": '+JSON.stringify(a(s))+",",f.push({value:c,description:"/* "+(s.description&&e.getLocaleSpecificMessage(s.description)||s.name)+" */"}),_=Math.max(c.length,_)}}));var g=o(2),m=[];m.push("{"),m.push(g+'"compilerOptions": {'),m.push(""+g+g+"/* "+e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)+" */"),m.push("");for(var y=0,h=f;y<h.length;y++){var v=h[y],b=v.value,x=v.description,D=void 0===x?"":x;m.push(b&&""+g+g+b+(D&&o(_-b.length+2)+D))}if(r.length){m.push(g+"},"),m.push(g+'"files": [');for(var S=0;S<r.length;S++)m.push(""+g+g+JSON.stringify(r[S])+(S===r.length-1?"":","));m.push(g+"]")}else m.push(g+"}");return m.push("}"),m.join(n)+n}();function a(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":return t.isFilePath?"./":"";case"list":return[];case"object":return{};default:var r=t.type.keys().next();return r.done?e.Debug.fail("Expected 'option.type' to have entries."):r.value}}function o(e){return Array(e+1).join(" ")}function s(t){var r=t.category,n=t.name;return void 0!==r&&r!==e.Diagnostics.Command_line_Options&&(r!==e.Diagnostics.Advanced_Options||i.has(n))}},e.convertToOptionsWithAbsolutePaths=function(t,r){var n={},i=s().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=V(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return Y(e,void 0,t,r,n,c,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=q,e.setConfigFileInOptions=W,e.canJsonReportNoInputFiles=$,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return Q(t,a)?i.push(X(n,r)):e.filterMutate(i,(function(t){return!function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(t)})),o!==i.length},e.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:ne(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:ae(e,t,n,r),errors:n}};var de=/(^|\/)\*\*\/?$/,_e=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,pe=/\/[^/]*?[*?][^/]*\//,fe=/^[^*?]*(?=\/[^/]*[*?])/;function ge(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,u=new e.Map,l=new e.Map,d=t.validatedFilesSpec,_=t.validatedIncludeSpecs,p=t.validatedExcludeSpecs,f=t.wildcardDirectories,g=e.getSupportedExtensions(n,a),m=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,g);if(d)for(var y=0,h=d;y<h.length;y++){var v=h[y],b=e.getNormalizedAbsolutePath(v,r);c.set(s(b),b)}if(_&&_.length>0)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;c<s;c++){var u=i[c],l=a(e.changeExtension(t,u));if(r.has(l)||n.has(l))return!0}return!1}(t,c,u,g,s))return"continue";!function(t,r,n,i){for(var a=e.getExtensionPriority(t,n),o=e.getNextLowestExtensionPriority(a,n);o<n.length;o++){var s=n[o],c=i(e.changeExtension(t,s));r.delete(c)}}(t,u,g,s);var p=s(t);c.has(p)||u.has(p)||u.set(p,t)},D=0,S=i.readDirectory(r,m,p,_,void 0);D<S.length;D++){x(b=S[D])}var T=e.arrayFrom(c.values()),E=e.arrayFrom(u.values());return{fileNames:T.concat(E,e.arrayFrom(l.values())),wildcardDirectories:f,spec:t}}function me(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var o=function(t,r){if(!r&&de.test(t))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(_e.test(t))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}(t,n);return void 0!==o&&r.push(function(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}(o,t)),void 0===o}))}function ye(t,r){var n=fe.exec(t);return n?{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:pe.test(t)?1:0}:e.isImplicitGlob(t)?{key:r?t:e.toFileNameLowerCase(t),flags:1}:void 0}function he(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map((function(e){return he(e,n)})):"";default:return e.forEachEntry(r.type,(function(e,r){if(e===t)return r}))}}e.getFileNamesFromConfigSpecs=ge,e.isExcludedFile=function(t,r,n,i,a){var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var u=e.createGetCanonicalFileName(i);if(o)for(var l=0,d=o;l<d.length;l++){var _=d[l];if(u(e.getNormalizedAbsolutePath(_,n))===t)return!1}var p=e.getRegularExpressionForWildcard(c,e.combinePaths(e.normalizePath(a),n),"exclude"),f=p&&e.getRegexFromPattern(p,i);return!!f&&(!!f.test(t)||!e.hasExtension(t)&&f.test(e.ensureTrailingDirectorySeparator(t)))},e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=y(r);void 0!==n&&(t[r]=he(e[r],n))}return t}}(u||(u={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function i(e,t){return!!e.traceResolution&&void 0!==t.trace}function a(t,r){var n;if(r&&t){var i=t.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function o(e){return a(void 0,e)}function s(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var c,u;function l(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function d(e,t,r,n){var i;return n?((i=n.failedLookupLocations).push.apply(i,r),n):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function _(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function p(r,n,i,a){var o=_(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function f(e,t,r){return p(e,"typings",t,r)||p(e,"types",t,r)}function g(e,t,r){return p(e,"main",t,r)}function m(r,n){var i=function(r,n){var i=_(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=y(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function y(t){for(var r in u||(u=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(u))return{version:r,paths:t[r]}}}function h(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?function(t,r){if(!r.directoryExists)return[e.combinePaths(t,v)];var n;return e.forEachAncestorDirectory(e.normalizePath(t),(function(t){var i=e.combinePaths(t,v);r.directoryExists(i)&&(n||(n=[])).push(i)})),n}(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=i,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly"}(c||(c={})),e.getPackageJsonTypesVersionsPaths=y,e.getEffectiveTypeRoots=h;var v=e.combinePaths("node_modules","@types");function b(t){var r=new e.Map,n=new e.Map;return{ownMap:r,redirectsMap:n,getOrCreateMapOfCacheRedirects:function(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o));return o},clear:function(){r.clear(),n.clear()},setOwnOptions:function(e){t=e},setOwnMap:function(e){r=e}}}function x(t,r,n,i){return{getOrCreateCacheForDirectory:function(r,o){var s=e.toPath(r,n,i);return a(t,o,s,(function(){return new e.Map}))},getOrCreateCacheForModuleName:function(t,n){return e.Debug.assert(!e.isExternalModuleNameRelative(t)),a(r,n,t,o)},directoryToModuleNameMap:t,moduleNameToDirectoryMap:r};function a(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function o(){var t=new e.Map;return{get:function(r){return t.get(e.toPath(r,n,i))},set:function(r,a){var o=e.toPath(r,n,i);if(t.has(o))return;t.set(o,a);var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&function(t,r){var a=e.toPath(e.getDirectoryPath(r),n,i),o=0,s=Math.min(t.length,a.length);for(;o<s&&t.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===t.length&&(a.length===o||a[o]===e.directorySeparator))return t;var c=e.getRootLength(t);if(o<c)return;var u=t.lastIndexOf(e.directorySeparator,o-1);if(-1===u)return;return t.substr(0,Math.max(u,c))}(o,s),u=o;for(;u!==c;){var l=e.getDirectoryPath(u);if(l===u||t.has(l))break;t.set(l,a),u=l}}}}}function D(r,n,i,a,o){var s=function(r,n,i,a){var o=a.compilerOptions,s=o.baseUrl,c=o.paths;if(s&&c&&!e.pathIsRelative(n))return a.traceEnabled&&(t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),W(r,n,s,c,i,!1,a)}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,u=e.normalizePath(e.combinePaths(i,n)),l=0,d=o.compilerOptions.rootDirs;l<d.length;l++){var _=d[l],p=e.normalizePath(_);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(u,p)&&(void 0===c||c.length<p.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,p,u,f),f&&(c=p,s=_)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,u,c);var g=u.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,c,u);var m=a(r,u,!e.directoryProbablyExists(i,o.host),o);if(m)return m;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,h=o.compilerOptions.rootDirs;y<h.length;y++){if((_=h[y])!==s){var v=e.combinePaths(e.normalizePath(_),g);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,g,_,v);var b=e.getDirectoryPath(v),x=a(r,v,!e.directoryProbablyExists(b,o.host),o);if(x)return x}}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(r,n,i,a,o):function(r,n,i,a){var o=a.compilerOptions.baseUrl;if(!o)return;a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s);return i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}(r,n,a,o)}e.resolveTypeReferenceDirective=function(r,n,a,o,s){var u=i(a,o);s&&(a=s.commandLine.options);var d=[],_={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:d},p=h(a,o);u&&(void 0===n?void 0===p?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,r):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,r,p):void 0===p?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,r,n):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,r,n,p),s&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var f,g=function(){if(p&&p.length)return u&&t(o,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.firstDefined(p,(function(n){var i=e.combinePaths(n,r),a=e.getDirectoryPath(i),s=e.directoryProbablyExists(a,o);return!s&&u&&t(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),l(B(c.DtsOnly,i,!s,_))}));u&&t(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),m=!0;if(g||(g=function(){var i=n&&e.getDirectoryPath(n);if(void 0!==i){u&&t(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,i);var a=void 0;if(e.isExternalModuleNameRelative(r)){var s=e.normalizePathAndParts(e.combinePaths(i,r)).path;a=P(c.DtsOnly,s,!1,_,!0)}else{var d=z(c.DtsOnly,r,i,_,void 0,void 0);a=d&&d.value}var p=l(a);return!p&&u&&t(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,r),p}u&&t(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),m=!1),g){var y=g.fileName,v=g.packageId,b=a.preserveSymlinks?y:F(y,o,u);u&&(v?t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,r,b,e.packageIdToString(v),m):t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,r,b,m)),f={primary:m,resolvedFileName:b,packageId:v,isExternalLibraryImport:w(y)}}return{resolvedTypeReferenceDirective:f,failedLookupLocations:d}},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=h(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,u=r.getDirectories(s);c<u.length;c++){var l=u[c],d=e.normalizePath(l),_=e.combinePaths(s,d,"package.json");if(!(r.fileExists(_)&&null===e.readJson(_,r).typings)){var p=e.getBaseFileName(d);46!==p.charCodeAt(0)&&n.push(p)}}}}return n},e.createModuleResolutionCache=function(e,t,r){return x(b(r),b(r),e,t)},e.createCacheWithRedirects=b,e.createModuleResolutionCacheWithMaps=x,e.resolveModuleNameFromCache=function(t,r,n){var i=e.getDirectoryPath(r),a=n&&n.getOrCreateCacheForDirectory(i);return a&&a.get(t)},e.resolveModuleName=function(r,n,a,o,s,c){var u=i(a,o);c&&(a=c.commandLine.options),u&&(t(o,e.Diagnostics.Resolving_module_0_from_1,r,n),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var l=e.getDirectoryPath(n),d=s&&s.getOrCreateCacheForDirectory(l,c),_=d&&d.get(r);if(_)u&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,r,l);else{var p=a.moduleResolution;switch(void 0===p?(p=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,u&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[p])):u&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[p]),e.perfLogger.logStartResolveModule(r),p){case e.ModuleResolutionKind.NodeJs:_=N(r,n,a,o,s,c);break;case e.ModuleResolutionKind.Classic:_=X(r,n,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: "+p)}_&&_.resolvedModule&&e.perfLogger.logInfoEvent('Module "'+r+'" resolved to "'+_.resolvedModule.resolvedFileName+'"'),e.perfLogger.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),d&&(d.set(r,_),e.isExternalModuleNameRelative(r)||s.getOrCreateCacheForModuleName(r,c).set(l,_))}return u&&(_.resolvedModule?_.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,r,_.resolvedModule.resolvedFileName,e.packageIdToString(_.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,r,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,r)),_},e.resolveJSModule=function(e,t,r){var n=k(e,t,r),i=n.resolvedModule,a=n.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+a.join(", "));return i.resolvedFileName},e.tryResolveJSModule=function(e,t,r){var n=k(e,t,r).resolvedModule;return n&&n.resolvedFileName};var S=[c.JavaScript],T=[c.TypeScript,c.JavaScript],E=r(T,[c.Json]),C=[c.TSConfig];function k(t,r,n){return A(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,S,void 0)}function N(t,r,n,i,a,o,s){return A(t,e.getDirectoryPath(r),n,i,a,s?C:n.resolveJsonModule?E:T,o)}function A(r,a,o,s,u,l,_){var p,f,g=i(o,s),m=[],y={compilerOptions:o,host:s,traceEnabled:g,failedLookupLocations:m},h=e.forEach(l,(function(i){return function(i){var l=D(i,r,a,(function(e,t,r,n){return P(e,t,r,n,!0)}),y);if(l)return Q({resolved:l,isExternalLibraryImport:w(l.path)});if(e.isExternalModuleNameRelative(r)){var d=e.normalizePathAndParts(e.combinePaths(a,r)),p=d.path,f=d.parts,m=P(i,p,!1,y,!0);return m&&Q({resolved:m,isExternalLibraryImport:e.contains(f,"node_modules")})}g&&t(s,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,r,c[i]);var h=z(i,r,a,y,u,_);if(!h)return;var v=h.value;if(!o.preserveSymlinks&&v&&!v.originalPath){var b=F(v.path,s,g),x=b===v.path?void 0:v.path;v=n(n({},v),{path:b,originalPath:x})}return{value:v&&{resolved:v,isExternalLibraryImport:!0}}}(i)}));return d(null===(p=null==h?void 0:h.value)||void 0===p?void 0:p.resolved,null===(f=null==h?void 0:h.value)||void 0===f?void 0:f.isExternalLibraryImport,m,y.resultFromCache)}function F(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),r+" linked to nonexistent file "+a),a}function P(r,n,i,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,n,c[r]),!e.hasTrailingDirectorySeparator(n)){if(!i){var u=e.getDirectoryPath(n);e.directoryProbablyExists(u,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),i=!0)}var l=M(r,n,i,o);if(l){var d=s?function(t){var r=e.normalizePath(t.path),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1===n)return;var i=n+e.nodeModulesPathPart.length,a=I(r,i);64===r.charCodeAt(i)&&(a=I(r,a));return r.slice(0,a)}(l):void 0;return a(d?j(d,!1,o):void 0,l)}}i||(e.directoryProbablyExists(n,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),i=!0));return B(r,n,i,o,s)}function w(t){return e.stringContains(t,e.nodeModulesPathPart)}function I(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function O(e,t,r,n){return o(M(e,t,r,n))}function M(r,n,i,a){if(r===c.Json||r===c.TSConfig){var o=e.tryRemoveExtension(n,".json");return void 0===o&&r===c.Json?void 0:L(o||n,r,i,a)}var s=L(n,r,i,a);if(s)return s;if(e.hasJSFileExtension(n)){var u=e.removeFileExtension(n);if(a.traceEnabled){var l=n.substring(u.length);t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,l)}return L(u,r,i,a)}}function L(t,r,n,i){if(!n){var a=e.getDirectoryPath(t);a&&(n=!e.directoryProbablyExists(a,i.host))}switch(r){case c.DtsOnly:return o(".d.ts");case c.TypeScript:return o(".ts")||o(".tsx")||o(".d.ts");case c.JavaScript:return o(".js")||o(".jsx");case c.TSConfig:case c.Json:return o(".json")}function o(e){var r=R(t+e,n,i);return void 0===r?void 0:{path:r,ext:e}}}function R(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function B(e,t,r,n,i){void 0===i&&(i=!0);var o=i?j(t,r,n):void 0;return a(o,J(e,t,r,n,o&&o.packageJsonContent,o&&o.versionPaths))}function j(r,n,i){var a=i.host,o=i.traceEnabled,s=!n&&e.directoryProbablyExists(r,a),c=e.combinePaths(r,"package.json");if(s&&a.fileExists(c)){var u=e.readJson(c,a);return o&&t(a,e.Diagnostics.Found_package_json_at_0,c),{packageDirectory:r,packageJsonContent:u,versionPaths:m(u,i)}}s&&o&&t(a,e.Diagnostics.File_0_does_not_exist,c),i.failedLookupLocations.push(c)}function J(r,n,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=R(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 P(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),h=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(l&&(!d||e.containsPath(n,d))){var v=e.getRelativePathFromDirectory(n,d||h,!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,v);var b=W(r,v,n,l.paths,_,m||y,a);if(b)return s(b.value)}var x=d&&s(_(r,d,m,a));return x||M(r,h,y,a)}function K(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 z(e,t,r,n,i,a){return U(e,t,r,n,!1,i,a)}function U(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(function(n){if("node_modules"!==e.getBaseFileName(n)){var o=Y(c,r,n,i);return o||Q(V(t,r,n,i,a))}}))}function V(r,n,i,a,o){var s=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(s,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);var l=o?void 0:q(r,n,s,u,a);if(l)return l;if(r===c.TypeScript||r===c.DtsOnly){var d=e.combinePaths(s,"@types"),_=u;return u&&!e.directoryProbablyExists(d,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),_=!1),q(c.DtsOnly,function(r,n){var i=H(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,a),d,_,a)}}function q(r,n,i,s,c){var u=e.normalizePath(e.combinePaths(i,n)),l=j(u,!s,c);if(l){var d=M(r,u,!s,c);if(d)return o(d);var _=J(r,u,!s,c,l.packageJsonContent,l.versionPaths);return a(l,_)}var p=function(e,t,r,n){var i=M(e,t,r,n)||J(e,t,r,n,l&&l.packageJsonContent,l&&l.versionPaths);return a(l,i)},f=K(n),g=f.packageName,m=f.rest;if(""!==m){var y=e.combinePaths(i,g);if((l=j(y,!s,c))&&l.versionPaths){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.versionPaths.version,e.version,m);var h=s&&e.directoryProbablyExists(y,c.host),v=W(r,m,y,l.versionPaths.paths,p,!h,c);if(v)return v.value}}return p(r,u,!s,c)}function W(r,n,i,a,s,c,u){var l=e.matchPatternOrExact(e.getOwnKeys(a),n);if(l){var d=e.isString(l)?void 0:e.matchedText(l,n),_=e.isString(l)?l:e.patternText(l);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,_),{value:e.forEach(a[_],(function(n){var a=d?n.replace("*",d):n,l=e.normalizePath(e.combinePaths(i,a));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,a);var _=e.tryGetExtensionFromPath(l);if(void 0!==_){var p=R(l,c,u);if(void 0!==p)return o({path:p,ext:_})}return s(r,l,c||!e.directoryProbablyExists(e.getDirectoryPath(l),u.host),u)}))}}}e.nodeModuleNameResolver=N,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=w,e.parsePackageName=K;function H(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,"__");if(r!==t)return r.slice(1)}return t}function G(t){return e.stringContains(t,"__")?"@"+t.replace("__",e.directorySeparator):t}function Y(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function X(t,r,n,a,o,s){var u=[],l={compilerOptions:n,host:a,traceEnabled:i(n,a),failedLookupLocations:u},_=e.getDirectoryPath(r),p=f(c.TypeScript)||f(c.JavaScript);return d(p&&p.value,!1,u,l.resultFromCache);function f(r){var n=D(r,t,_,O,l);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(_,t));return Q(O(r,i,!1,l))}var a=o&&o.getOrCreateCacheForModuleName(t,s),u=e.forEachAncestorDirectory(_,(function(n){var i=Y(a,t,n,l);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Q(O(r,o,!1,l))}));return u||(r===c.TypeScript?function(e,t,r){return U(c.DtsOnly,e,t,r,!0,void 0,void 0)}(t,_,l):void 0)}}function Q(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+H(e)},e.mangleScopedPackageName=H,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?G(r):t},e.unmangleScopedPackageName=G,e.classicNameResolver=X,e.loadModuleFromGlobalCache=function(r,n,a,o,s){var u=i(a,o);u&&t(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,r,s);var l=[],_={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:l};return d(V(c.DtsOnly,r,s,_,!1),!0,l,_.resultFromCache)}}(u||(u={})),function(e){var t;function i(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?a(t.body,r):1}function a(t,r){void 0===r&&(r=new e.Map);var n=e.getNodeId(t);if(r.has(n))return r.get(n)||0;r.set(n,void 0);var s=function(t,r){switch(t.kind){case 250:case 251:return 0;case 252:if(e.isEnumConst(t))return 2;break;case 258:case 257:if(!e.hasSyntacticModifier(t,1))return 0;break;case 264:var n=t;if(!n.moduleSpecifier&&n.exportClause&&265===n.exportClause.kind){for(var s=0,c=0,u=n.exportClause.elements;c<u.length;c++){var l=o(u[c],r);if(l>s&&(s=l),1===s)return s}return s}break;case 254: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 253: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;s<c.length;s++){var u=c[s];if(e.nodeHasName(u,n)){u.parent||(e.setParent(u,i),e.setParentRecursive(u,!1));var l=a(u,r);if((void 0===o||l>o)&&(o=l),1===o)return o}}if(void 0!==o)return o}i=i.parent}return 1}function s(t){return e.Debug.attachFlowNodeDebugInfo(t),t}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=i,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var c=function(){var t,a,o,c,_,p,f,g,m,y,h,v,b,x,D,S,T,E,C,k,N,A,F,P,w=0,I={flags:1},O={flags:1};function M(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),A=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,n),P=new e.Set,w=0,F=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(I),e.Debug.attachFlowNodeDebugInfo(O),t.locals||(Oe(t),t.symbolCount=w,t.classifiableNames=P,function(){if(m){for(var r=_,n=g,i=f,a=c,o=h,u=0,d=m;u<d.length;u++){var p=d[u],y=e.getJSDocHost(p);_=e.findAncestor(y.parent,(function(e){return!!(1&xe(e))}))||t,f=e.getEnclosingBlockScopeContainer(y)||t,h=s({flags:2}),c=p,Oe(p.typeExpression);var v=e.getNameOfDeclaration(p);if((e.isJSDocEnumTag(p)||!p.fullName)&&v&&e.isPropertyAccessEntityNameExpression(v.parent)){var b=Ye(v.parent);if(b){He(t.symbol,v.parent,b,!!e.findAncestor(v,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var x=_;switch(e.getAssignmentDeclarationPropertyAccessKind(v.parent)){case 1:case 2:_=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:_=v.parent.expression;break;case 3:_=v.parent.expression.name;break;case 5:_=l(t,v.parent.expression)?t:e.isPropertyAccessExpression(v.parent.expression)?v.parent.expression.name:v.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}_&&K(p,524288,788968),_=x}}else e.isJSDocEnumTag(p)||!p.fullName||78===p.fullName.kind?(c=p.parent,ke(p,524288,788968)):Oe(p.fullName)}_=r,g=n,f=i,c=a,h=o}}()),t=void 0,a=void 0,o=void 0,c=void 0,_=void 0,p=void 0,f=void 0,g=void 0,m=void 0,y=!1,h=void 0,v=void 0,b=void 0,x=void 0,D=void 0,S=void 0,T=void 0,C=void 0,k=!1,N=0};function L(e,t){return w++,new F(e,t)}function R(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 B(t){if(263===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(157===r.kind){var i=r.expression;return e.isStringOrNumericLiteralLike(i)?e.escapeLeadingUnderscores(i.text):e.isSignedNumericLiteral(i)?e.tokenToString(i.operator)+i.operand.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}if(e.isWellKnownSymbolSyntactically(r))return e.getPropertyNameForKnownSymbolName(e.idText(r.name));if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 165:return"__constructor";case 173:case 168:case 309:return"__call";case 174:case 169:return"__new";case 170:return"__index";case 264:return"__export";case 294:return"export=";case 213:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 304:return e.isJSDocConstructSignature(t)?"__new":"__call";case 159:return e.Debug.assert(304===t.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"})),"arg"+t.parent.parameters.indexOf(t)}}function j(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(B(t)))}function J(n,i,a,o,s,c){e.Debug.assert(!e.hasDynamicName(a));var u,l=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,d=l&&i?"default":B(a);if(void 0===d)u=L(0,"__missing");else if(u=n.get(d),2885600&o&&P.add(d),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)n.set(d,u=L(0,d));else if(!(3&o&&67108864&u.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var _=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,p=!0;(384&u.flags||384&o)&&(_=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,p=!1);var f=!1;e.length(u.declarations)&&(l||u.declarations&&u.declarations.length&&263===a.kind&&!a.isExportEquals)&&(_=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0);var g=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&u.flags&&g.push(M(a,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(a.name.escapedText)+" }"));var m=e.getNameOfDeclaration(a)||a;e.forEach(u.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=M(i,_,p?j(r):void 0);t.bindDiagnostics.push(f?e.addRelatedInfo(a,M(m,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),f&&g.push(M(i,e.Diagnostics.The_first_export_default_is_here))}));var y=M(m,_,p?j(a):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,r([y],g))),u=L(0,d)}}else n.set(d,u=L(0,d)),c&&(u.isReplaceableByMethod=!0);return R(u,a,o),u.parent?e.Debug.assert(u.parent===i,"Existing symbol parent should match new one"):u.parent=i,u}function K(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(2097152&r)return 267===t.kind||257===t.kind&&i?J(_.symbol.exports,_.symbol,t,r,n):J(_.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&_.flags)||e.isJSDocTypeAlias(t)){if(!_.locals||e.hasSyntacticModifier(t,512)&&!B(t))return J(_.symbol.exports,_.symbol,t,r,n);var a=111551&r?1048576:0,o=J(_.locals,void 0,t,a,n);return o.exportSymbol=J(_.symbol.exports,_.symbol,t,r,n),t.localSymbol=o,o}return J(_.locals,void 0,t,r,n)}function z(e){U(e,(function(e){return 248===e.kind?Oe(e):void 0})),U(e,(function(e){return 248!==e.kind?Oe(e):void 0}))}function U(t,r){void 0===r&&(r=Oe),void 0!==t&&e.forEach(t,r)}function V(t){e.forEachChild(t,Oe,U)}function q(t){if(function(t){if(!(1&h.flags))return!1;if(h===I){if((e.isStatementButNotDeclaration(t)&&228!==t.kind||249===t.kind||253===t.kind&&function(e){var t=i(e);return 1===t||2===t&&!!a.preserveConstEnums}(t))&&(h=O,!a.allowUnreachableCode)){var r=e.unreachableCodeIsError(a)&&!(8388608&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((function(e){return!!e.initializer})));!function(t,r){if(e.isStatement(t)&&u(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,u,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,n){return Ie(r,t,n,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return V(t),void Me(t);switch(t.kind>=229&&t.kind<=245&&!a.allowUnreachableCode&&(t.flowNode=h),t.kind){case 233:!function(e){var t=pe(e,$()),r=Q(),n=Q();te(t,h),h=t,de(e.expression,r,n),h=oe(r),_e(e.statement,n,t),te(t,h),h=oe(n)}(t);break;case 232:!function(e){var t=$(),r=pe(e,Q()),n=Q();te(t,h),h=t,_e(e.statement,n,r),te(r,h),h=oe(r),de(e.expression,t,n),h=oe(n)}(t);break;case 234:!function(e){var t=pe(e,$()),r=Q(),n=Q();Oe(e.initializer),te(t,h),h=t,de(e.condition,r,n),h=oe(r),_e(e.statement,n,t),Oe(e.incrementor),te(t,h),h=oe(n)}(t);break;case 235:case 236:!function(e){var t=pe(e,$()),r=Q();Oe(e.expression),te(t,h),h=t,236===e.kind&&Oe(e.awaitModifier);te(r,h),Oe(e.initializer),247!==e.initializer.kind&&me(e.initializer);_e(e.statement,r,t),te(t,h),h=oe(r)}(t);break;case 231:!function(e){var t=Q(),r=Q(),n=Q();de(e.expression,t,r),h=oe(t),Oe(e.thenStatement),te(n,h),h=oe(r),Oe(e.elseStatement),te(n,h),h=oe(n)}(t);break;case 239:case 243:!function(e){Oe(e.expression),239===e.kind&&(k=!0,x&&te(x,h));h=I}(t);break;case 238:case 237:!function(e){if(Oe(e.label),e.label){var t=function(e){for(var t=C;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,fe(e,t.breakTarget,t.continueTarget))}else fe(e,v,b)}(t);break;case 244:!function(t){var r=x,n=T,i=Q(),a=Q(),o=Q();t.finallyBlock&&(x=a);te(o,h),T=o,Oe(t.tryBlock),te(i,h),t.catchClause&&(h=oe(o),te(o=Q(),h),T=o,Oe(t.catchClause),te(i,h));if(x=r,T=n,t.finallyBlock){var s=Q();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),h=s,Oe(t.finallyBlock),1&h.flags?h=I:(x&&a.antecedents&&te(x,Z(s,a.antecedents,h)),T&&o.antecedents&&te(T,Z(s,o.antecedents,h)),h=i.antecedents?Z(s,i.antecedents,h):I)}else h=oe(i)}(t);break;case 241:!function(t){var r=Q();Oe(t.expression);var n=v,i=E;v=r,E=h,Oe(t.caseBlock),te(r,h);var a=e.forEach(t.caseBlock.clauses,(function(e){return 282===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||te(r,ne(E,t,0,0));v=n,E=i,h=oe(r)}(t);break;case 255:!function(e){for(var t=e.clauses,r=W(e.parent.expression),n=I,i=0;i<t.length;i++){for(var o=i;!t[i].statements.length&&i+1<t.length;)Oe(t[i]),i++;var s=Q();te(s,r?ne(E,e.parent,o,i+1):E),te(s,n),h=oe(s);var c=t[i];Oe(c),n=h,1&h.flags||i===t.length-1||!a.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=h)}}(t);break;case 281:!function(e){var t=h;h=E,Oe(e.expression),h=t,U(e.statements)}(t);break;case 230:!function(t){if(Oe(t.expression),200===t.expression.kind){var r=t.expression;e.isDottedName(r.expression)&&105!==r.expression.kind&&(h=ae(h,r))}}(t);break;case 242:!function(t){var r=Q();C={next:C,name:t.label.escapedText,breakTarget:r,continueTarget:void 0,referenced:!1},Oe(t.label),Oe(t.statement),C.referenced||a.allowUnusedLabels||function(e,t,r){Ie(e,t,t,r)}(e.unusedLabelIsError(a),t.label,e.Diagnostics.Unused_label);C=C.next,te(r,h),h=oe(r)}(t);break;case 211:!function(e){if(53===e.operator){var t=D;D=S,S=t,V(e),S=D,D=t}else V(e),45!==e.operator&&46!==e.operator||me(e.operand)}(t);break;case 212:!function(e){V(e),(45===e.operator||46===e.operator)&&me(e.operand)}(t);break;case 213:!function(t){var r={expr:[t],state:[1],inStrictMode:[void 0],parent:[void 0]},n=0;for(;n>=0;)switch(t=r.expr[n],r.state[n]){case 0:e.setParent(t,c);var i=A;Be(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(ue(t)){var o=Q();ye(t,o,o),h=oe(o)}else ye(t,D,S);l()}else u(2),d(t.left);break;case 2: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(me(t.left),62===s&&199===t.left.kind)X(t.left.expression)&&(h=ie(256,h,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]&&(A=r.inStrictMode[n],c=r.parent[n]),n--}function d(t){t&&e.isBinaryExpression(t)?(n++,r.expr[n]=t,r.state[n]=0,r.inStrictMode[n]=void 0,r.parent[n]=void 0):Oe(t)}}(t);break;case 207:!function(e){V(e),198===e.expression.kind&&me(e.expression)}(t);break;case 214:!function(e){var t=Q(),r=Q(),n=Q();de(e.condition,t,r),h=oe(t),Oe(e.questionToken),Oe(e.whenTrue),te(n,h),h=oe(r),Oe(e.colonToken),Oe(e.whenFalse),te(n,h),h=oe(n)}(t);break;case 246:!function(t){V(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&function t(r){var n=e.isOmittedExpression(r)?void 0:r.name;if(e.isBindingPattern(n))for(var i=0,a=n.elements;i<a.length;i++){t(a[i])}else h=ie(16,h,r)}(t)}(t);break;case 198:case 199:!function(t){e.isOptionalChain(t)?be(t):V(t)}(t);break;case 200:!function(t){if(e.isOptionalChain(t))be(t);else{var r=e.skipParentheses(t.expression);205===r.kind||206===r.kind?(U(t.typeArguments),U(t.arguments),Oe(t.expression)):(V(t),105===t.expression.kind&&(h=ae(h,t)))}if(198===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&X(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(h=ie(256,h,t))}}(t);break;case 222:!function(t){e.isOptionalChain(t)?be(t):V(t)}(t);break;case 327:case 320:case 321:!function(t){e.setParent(t.tagName,t),321!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1))}(t);break;case 294:z(t.statements),Oe(t.endOfFileToken);break;case 227:case 254:z(t.statements);break;default:V(t)}Me(t)}function W(t){switch(t.kind){case 78:case 107:case 198:case 199:return G(t);case 200:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){if(G(r[t]))return!0}if(198===e.expression.kind&&G(e.expression.expression))return!0;return!1}(t);case 204:return W(t.expression);case 213:return function(t){switch(t.operatorToken.kind){case 62:case 74:case 75:case 76:return G(t.left);case 34:case 35:case 36:case 37:return X(t.left)||X(t.right)||Y(t.right,t.left)||Y(t.left,t.right);case 101:return X(t.left);case 100:return r=t.left,n=t.right,e.isStringLiteralLike(r)&&W(n);case 27:return W(t.right)}var r,n;return!1}(t);case 211:return 53===t.operator&&W(t.operand);case 208:return W(t.expression)}return!1}function H(t){return 78===t.kind||107===t.kind||105===t.kind||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&H(t.expression)||e.isElementAccessExpression(t)&&e.isStringOrNumericLiteralLike(t.argumentExpression)&&H(t.expression)||e.isAssignmentExpression(t)&&H(t.left)}function G(t){return H(t)||e.isOptionalChain(t)&&G(t.expression)}function Y(t,r){return e.isTypeOfExpression(t)&&X(t.expression)&&e.isStringLiteralLike(r)}function X(e){switch(e.kind){case 204:return X(e.expression);case 213:switch(e.operatorToken.kind){case 62:return X(e.left);case 27:return X(e.right)}}return G(e)}function Q(){return s({flags:4,antecedents:void 0})}function $(){return s({flags:8,antecedents:void 0})}function Z(e,t,r){return s({flags:1024,target:e,antecedents:t,antecedent:r})}function ee(e){e.flags|=2048&e.flags?4096:2048}function te(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),ee(r))}function re(t,r,n){return 1&r.flags?r:n?!(109===n.kind&&64&t||94===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?W(n)?(ee(r),s({flags:t,antecedent:r,node:n})):r:I:32&t?r:I}function ne(e,t,r,n){return ee(e),s({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function ie(e,t,r){ee(t);var n=s({flags:e,antecedent:t,node:r});return T&&te(T,n),n}function ae(e,t){return ee(e),s({flags:512,antecedent:e,node:t})}function oe(e){var t=e.antecedents;return t?1===t.length?t[0]:e:I}function se(e){for(;;)if(204===e.kind)e=e.expression;else{if(211!==e.kind||53!==e.operator)return 213===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ce(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)}function ue(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!(function(e){var t=e.parent;switch(t.kind){case 231:case 233:case 232:return t.expression===e;case 234:case 214:return t.condition===e}return!1}(t)||ce(t.parent)||se(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function le(e,t,r,n){var i=D,a=S;D=r,S=n,e(t),D=i,S=a}function de(t,r,n){le(Oe,t,r,n),t&&(ce(t)||se(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(te(r,re(32,h,t)),te(n,re(64,h,t)))}function _e(e,t,r){var n=v,i=b;v=t,b=r,Oe(e),v=n,b=i}function pe(e,t){for(var r=C;r&&242===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function fe(e,t,r){var n=238===e.kind?t:r;n&&(te(n,h),h=I)}function ge(e){213===e.kind&&62===e.operatorToken.kind?me(e.left):me(e)}function me(e){if(H(e))h=ie(16,h,e);else if(196===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];217===n.kind?me(n.expression):ge(n)}else if(197===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];285===o.kind?ge(o.initializer):286===o.kind?me(o.name):287===o.kind&&me(o.expression)}}function ye(t,r,n){var i=Q();55===t.operatorToken.kind||75===t.operatorToken.kind?de(t.left,i,n):de(t.left,r,i),h=oe(i),Oe(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(le(Oe,t.right,r,n),me(t.left),te(r,re(32,h,t)),te(n,re(64,h,t))):de(t.right,r,n)}function he(e){switch(e.kind){case 198:Oe(e.questionDotToken),Oe(e.name);break;case 199:Oe(e.questionDotToken),Oe(e.argumentExpression);break;case 200:Oe(e.questionDotToken),U(e.typeArguments),U(e.arguments)}}function ve(t,r,n){var i=e.isOptionalChainRoot(t)?Q():void 0;!function(t,r,n){le(Oe,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(te(r,re(32,h,t)),te(n,re(64,h,t)))}(t.expression,i||r,n),i&&(h=oe(i)),le(he,t,r,n),e.isOutermostOptionalChain(t)&&(te(r,re(32,h,t)),te(n,re(64,h,t)))}function be(e){if(ue(e)){var t=Q();ve(e,t,t),h=oe(t)}else ve(e,D,S)}function xe(t){switch(t.kind){case 218:case 249:case 252:case 197:case 176:case 308:case 278:return 1;case 250:return 65;case 253:case 251:case 189:return 33;case 294:return 37;case 164:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 165:case 248:case 163:case 166:case 167:case 168:case 309:case 304:case 173:case 169:case 170:case 174:return 45;case 205:case 206:return 61;case 254:return 4;case 162:return t.initializer?4:0;case 284:case 234:case 235:case 236:case 255:return 2;case 227:return e.isFunctionLike(t.parent)?0:2}return 0}function De(e){g&&(g.nextContainer=e),g=e}function Se(r,n,i){switch(_.kind){case 253:return K(r,n,i);case 294:return function(r,n,i){return e.isExternalModule(t)?K(r,n,i):J(t.locals,void 0,r,n,i)}(r,n,i);case 218:case 249:return function(t,r,n){return e.hasSyntacticModifier(t,32)?J(_.symbol.exports,_.symbol,t,r,n):J(_.symbol.members,_.symbol,t,r,n)}(r,n,i);case 252:return J(_.symbol.exports,_.symbol,r,n,i);case 176:case 308:case 197:case 250:case 278:return J(_.symbol.members,_.symbol,r,n,i);case 173:case 174:case 168:case 169:case 309:case 170:case 164:case 163:case 165:case 166:case 167:case 248:case 205:case 206:case 304:case 327:case 320:case 251:case 189:return J(_.locals,void 0,r,n,i)}}function Te(t){8388608&t.flags&&!function(t){var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((function(t){return e.isExportDeclaration(t)||e.isExportAssignment(t)}))}(t)?t.flags|=64:t.flags&=-65}function Ee(e){var t=i(e),r=0!==t;return Se(e,r?512:1024,r?110735:0),t}function Ce(e,t,r){var n=L(t,r);return 106508&t&&(n.parent=_.symbol),R(n,e,t),n}function ke(t,r,n){switch(f.kind){case 253:K(t,r,n);break;case 294:if(e.isExternalOrCommonJsModule(_)){K(t,r,n);break}default:f.locals||(f.locals=e.createSymbolTable(),De(f)),J(f.locals,void 0,t,r,n)}}function Ne(r){t.parseDiagnostics.length||8388608&r.flags||4194304&r.flags||e.isIdentifierName(r)||(A&&r.originalKeywordKind>=116&&r.originalKeywordKind<=124?t.bindDiagnostics.push(M(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(M(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(M(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(M(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}function Ae(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 Fe(e){A&&Ae(e,e.name)}function Pe(r){if(o<2&&294!==f.kind&&253!==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 we(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 Ie(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 Oe(t){if(t){e.setParent(t,c);var r=A;if(Be(t),t.kind>155){var n=c;c=t;var i=xe(t);0===i?q(t):function(t,r){var n=_,i=p,a=f;if(1&r?(206!==t.kind&&(p=_),_=f=t,32&r&&(_.locals=e.createSymbolTable()),De(_)):2&r&&((f=t).locals=void 0),4&r){var o=h,c=v,u=b,l=x,d=T,g=C,m=k,D=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);D||(h=s({flags:2}),144&r&&(h.node=t)),x=D||165===t.kind||e.isInJSFile&&(248===t.kind||205===t.kind)?Q():void 0,T=void 0,v=void 0,b=void 0,C=void 0,k=!1,q(t),t.flags&=-2817,!(1&h.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=h),294===t.kind&&(t.flags|=N),x&&(te(x,h),h=oe(x),(165===t.kind||e.isInJSFile&&(248===t.kind||205===t.kind))&&(t.returnFlowNode=h)),D||(h=o),v=c,b=u,x=l,T=d,C=g,k=m}else 64&r?(y=!1,q(t),t.flags=y?128|t.flags:-129&t.flags):q(t);_=n,p=i,f=a}(t,i),c=n}else{n=c;1===t.kind&&(c=t),Me(t),c=n}A=r}}function Me(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++){Oe(o=n[r])}else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Le(t){if(!A)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))return;if(Re(i))return void(A=!0)}}function Re(r){var n=e.getSourceTextOfNodeFromSourceFile(t,r.expression);return'"use strict"'===n||"'use strict'"===n}function Be(r){switch(r.kind){case 78:if(r.isInJSDocNamespace){for(var n=r.parent;n&&!e.isJSDocTypeAlias(n);)n=n.parent;ke(n,524288,788968);break}case 107:return h&&(e.isExpression(r)||286===c.kind)&&(r.flowNode=h),Ne(r);case 105:r.flowNode=h;break;case 79:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(M(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(r);case 198:case 199:var i=r;h&&H(i)&&(i.flowNode=h),e.isSpecialPropertyDeclaration(i)&&function(t){107===t.expression.kind?ze(t):e.isBindableStaticAccessExpression(t)&&294===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?qe(t,t.parent):We(t))}(i),e.isInJSFile(i)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(i)&&!d(f,"module")&&J(t.locals,void 0,i.expression,134217729,111550);break;case 213:switch(e.getAssignmentDeclarationKind(r)){case 1:Ke(r);break;case 2:!function(r){if(!Je(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||_===t&&l(t,n))return;var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=J(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}(r);break;case 3:qe(r.left,r);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Xe(t.left.expression,t.left,!1,!0)}(r);break;case 4:ze(r);break;case 5:!function(r){var n=Qe(r.left.expression,_)||Qe(r.left.expression,f);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(n))return;if(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&_===t&&l(t,r.left.expression))Ke(r);else if(e.hasDynamicName(r)){Ce(r,67108868,"__computed"),Ve(r,He(n,r.left.expression,Ye(r.left),!1,!1))}else We(e.cast(r.left,e.isBindableStaticNameExpression))}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){A&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ae(t,t.left)}(r);case 284:return function(e){A&&e.variableDeclaration&&Ae(e,e.variableDeclaration.name)}(r);case 207:return function(r){if(A&&78===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){A&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(M(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 212:return function(e){A&&Ae(e,e.operand)}(r);case 211:return function(e){A&&(45!==e.operator&&46!==e.operator||Ae(e,e.operand))}(r);case 240:return function(t){A&&we(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 242:return function(t){A&&a.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&we(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 186:return void(y=!0);case 171:break;case 158:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),J(r.locals,void 0,t,262144,526824)):Se(t,262144,526824)}else if(184===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),J(n.locals,void 0,t,262144,526824)):Ce(t,262144,B(t))}else Se(t,262144,526824)}(r);case 159:return et(r);case 246:return Ze(r);case 195:return r.flowNode=h,Ze(r);case 162:case 161:return function(e){return tt(e,4|(e.questionToken?16777216:0),0)}(r);case 285:case 286:return tt(r,4,0);case 288:return tt(r,8,900095);case 168:case 169:case 170:return Se(r,131072,0);case 164:case 163:return tt(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:103359);case 248:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(N|=2048);Fe(r),A?(Pe(r),ke(r,16,110991)):Se(r,16,110991)}(r);case 165:return Se(r,16384,0);case 166:return tt(r,32768,46015);case 167:return tt(r,65536,78783);case 173:case 304:case 309:case 174:return function(t){var r=L(131072,B(t));R(r,t,131072);var n=L(2048,"__type");R(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 176:case 308:case 189:return function(e){return Ce(e,2048,"__type")}(r);case 315:return function(t){V(t);var r=e.getHostSignatureFromJSDoc(t);r&&164!==r.kind&&R(r.symbol,r,32)}(r);case 197:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),A&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a<o.length;a++){var s=o[a];if(287!==s.kind&&78===s.name.kind){var c=s.name,u=285===s.kind||286===s.kind||164===s.kind?1:2,l=i.get(c.escapedText);if(l){if(1===u&&1===l){var d=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,d.start,d.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,u)}}return Ce(r,4096,"__object")}(r);case 205:case 206:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(N|=2048);h&&(r.flowNode=h);Fe(r);var n=r.name?r.name.escapedText:"__function";return Ce(r,16,n)}(r);case 200:switch(e.getAssignmentDeclarationKind(r)){case 7:return function(e){var t=Qe(e.arguments[0]),r=294===e.parent.parent.kind;t=He(t,e.arguments[0],r,!1,!1),Ge(e,t,!1)}(r);case 8:return function(e){if(!Je(e))return;var t=$e(e.arguments[0],void 0,(function(e,t){return t&&R(t,e,67110400),t}));if(t){var r=1048580;J(t.exports,t,e,r,0)}}(r);case 9:return function(e){var t=Qe(e.arguments[0].expression);t&&t.valueDeclaration&&R(t,t.valueDeclaration,32);Ge(e,t,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Je(r)}(r);break;case 218:case 249:return A=!0,function(r){if(249===r.kind)ke(r,32,899503);else{Ce(r,32,r.name?r.name.escapedText:"__class"),r.name&&P.add(r.name.escapedText)}var n=r.symbol,i=L(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(M(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i))));n.exports.set(i.escapedName,i),i.parent=n}(r);case 250:return ke(r,64,788872);case 251:return ke(r,524288,788968);case 252:return function(t){return e.isEnumConst(t)?ke(t,128,899967):ke(t,256,899327)}(r);case 253:return function(r){if(Te(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&we(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ee(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;e.hasZeroOrOneAsteriskCharacter(i)?n=e.tryParsePattern(i):we(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Se(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&{pattern:n,symbol:a})}else{var o=Ee(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(r);case 278:return function(e){return Ce(e,4096,"__jsxAttributes")}(r);case 277:return function(e,t,r){return Se(e,t,r)}(r,4,0);case 257:case 260:case 262:case 267:return Se(r,2097152,2097152);case 256:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(M(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(M(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),J(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(r);case 259:return function(e){e.name&&Se(e,2097152,2097152)}(r);case 264:return function(t){_.symbol&&_.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),J(_.symbol.exports,_.symbol,t.exportClause,2097152,2097152)):J(_.symbol.exports,_.symbol,t,8388608,0):Ce(t,8388608,B(t))}(r);case 263:return function(t){if(_.symbol&&_.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=J(_.symbol.exports,_.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else Ce(t,2097152,B(t))}(r);case 294:return Le(r.statements),function(){if(Te(t),e.isExternalModule(t))je();else if(e.isJsonSourceFile(t)){je();var r=t.symbol;J(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 227:if(!e.isFunctionLike(r.parent))return;case 254:return Le(r.statements);case 322:if(309===r.parent.kind)return et(r);if(308!==r.parent.kind)break;case 328:var o=r;return Se(o,o.isBracketed||o.typeExpression&&303===o.typeExpression.type.kind?16777220:4,0);case 327:case 320:case 321:return(m||(m=[])).push(r)}}function je(){Ce(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function Je(e){return!t.externalModuleIndicator&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,je()),!0)}function Ke(t){if(Je(t)){var r=$e(t.left.expression,void 0,(function(e,t){return t&&R(t,e,67110400),t}));if(r){var n=e.isClassExpression(t.right)?1048612:1048580;J(r.exports,r,t.left,n,0)}}}function ze(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 248:case 205:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&62===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Qe(i.expression.expression,p))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?Ue(t,n):J(n.members,n,t,67108868,0),R(n,n.valueDeclaration,32));break;case 165:case 162:case 164:case 166:case 167:var a=r.parent,o=e.hasSyntacticModifier(r,32)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?Ue(t,a.symbol):J(o,a.symbol,t,67108868,0,!0);break;case 294:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?J(r.symbol.exports,r.symbol,t,1048580,0):Se(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function Ue(e,t){Ce(e,4,"__computed"),Ve(e,t)}function Ve(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function qe(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Xe(i,t,!0,!0)}function We(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Xe(t.expression,t,!1,!1)}function He(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){r=$e(n,r,(function(r,n,i){return n?(R(n,r,67110400),n):J(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,67110400,110735)}))}return o&&r&&r.valueDeclaration&&R(r,r.valueDeclaration,32),r}function Ge(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),J(i,r,t,67108864|a,-67108865&o)}}function Ye(t){return e.isBinaryExpression(t.parent)?294===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:294===t.parent.parent.kind}function Xe(e,t,r,n){var i=Qe(e,_)||Qe(e,f),a=Ye(t);Ge(t,i=He(i,t.expression,a,r,n),r)}function Qe(t,r){if(void 0===r&&(r=_),e.isIdentifier(t))return d(r,t.escapedText);var n=Qe(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function $e(r,n,i){if(l(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Qe(r),n);var a=$e(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function Ze(t){A&&Ae(t,t.name),e.isBindingPattern(t.name)||(e.isBlockOrCatchScoped(t)?ke(t,2,111551):e.isParameterDeclaration(t)?Se(t,1,111551):Se(t,1,111550))}function et(t){if((322!==t.kind||309===_.kind)&&(!A||8388608&t.flags||Ae(t,t.name),e.isBindingPattern(t.name)?Ce(t,1,"__"+t.parent.parameters.indexOf(t)):Se(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;J(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function tt(r,n,i){return t.isDeclarationFile||8388608&r.flags||!e.isAsyncFunction(r)||(N|=2048),h&&e.isObjectLiteralOrClassExpressionMethod(r)&&(r.flowNode=h),e.hasDynamicName(r)?Ce(r,n,"__computed"):Se(r,n,i)}}();function u(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 250:case 251:return!0;case 253:return 1!==i(t);case 252:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function l(t,r){for(var n=0,i=[r];i.length&&n<100;){if(n++,r=i.shift(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=d(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.push(o),e.isAssignmentExpression(o,!0)&&(i.push(o.left),i.push(o.right))}}}return!1}function d(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),c(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=l}(u||(u={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l,d){return function(_){void 0===_&&(_=function(){return!0});var p=[],f=[];return{walkType:function(t){try{return g(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}},walkSymbol:function(t){try{return h(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(p),e.clear(f)}}};function g(t){if(t&&(!p[t.id]&&(p[t.id]=t,!h(t.symbol)))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){g(t.target),e.forEach(d(t),g)}(t),32&n&&function(e){g(e.typeParameter),g(e.constraintType),g(e.templateType),g(e.modifiersType)}(t),3&n&&(y(a=t),e.forEach(a.typeParameters,g),e.forEach(i(a),g),g(a.thisType)),24&n&&y(r)}var a;262144&t.flags&&function(e){g(u(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,g)}(t),4194304&t.flags&&function(e){g(e.type)}(t),8388608&t.flags&&function(e){g(e.objectType),g(e.indexType),g(e.constraint)}(t)}}function m(i){var a=r(i);a&&g(a.type),e.forEach(i.typeParameters,g);for(var o=0,s=i.parameters;o<s.length;o++){h(s[o])}g(t(i)),g(n(i))}function y(e){g(c(e,0)),g(c(e,1));for(var t=a(e),r=0,n=t.callSignatures;r<n.length;r++){m(n[r])}for(var i=0,o=t.constructSignatures;i<o.length;i++){m(o[i])}for(var s=0,u=t.properties;s<u.length;s++){h(u[s])}}function h(t){if(!t)return!1;var r=e.getSymbolId(t);return!f[r]&&(f[r]=t,!_(t)||(g(o(t)),t.exports&&t.exports.forEach(h),e.forEach(t.declarations,(function(e){if(e.type&&175===e.type.kind){var t=e.type;h(s(l(t.exprName)))}})),!1))}}}}(u||(u={})),function(e){var t,i,a,s,c=/^".+"$/,u="(anonymous)",l=1,d=1,_=1,p=1;!function(e){e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"}(t||(t={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(i||(i={})),function(e){e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"}(a||(a={})),function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(s||(s={}));var f,g,m,y,h,v,b,x,D,S=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),T=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes"}(f||(f={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp"}(g||(g={})),function(e){e[e.None=0]="None",e[e.NoIndexSignatures=1]="NoIndexSignatures",e[e.Writing=2]="Writing",e[e.CacheSymbol=4]="CacheSymbol",e[e.NoTupleBoundsCheck=8]="NoTupleBoundsCheck"}(m||(m={})),function(e){e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback"}(y||(y={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck"}(h||(h={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(b||(b={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(x||(x={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(D||(D={}));var E,C,k,N=e.and(O,(function(t){return!e.isAccessor(t)}));function A(){}function F(){this.flags=0}function P(e){return e.id||(e.id=d,d++),e.id}function w(e){return e.id||(e.id=l,l++),e.id}function I(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function O(e){return 248!==e.kind&&164!==e.kind||!!e.body}function M(t){switch(t.parent.kind){case 262:case 267:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function L(e){switch(e.kind){case 259:case 257:case 260:case 262:return!0;case 78:return 262===e.parent.kind;default:return!1}}function R(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function B(e){return!!(1&e.flags)}function j(e){return!!(2&e.flags)}!function(e){e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"}(E||(E={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(C||(C={})),e.getNodeId=P,e.getSymbolId=w,e.isInstantiatedModule=I,e.createTypeChecker=function(t,i){var a,s,l,d,f=e.memoize((function(){var r=new e.Set;return t.getSourceFiles().forEach((function(t){t.resolvedModules&&e.forEachEntry(t.resolvedModules,(function(e){e&&e.packageId&&r.add(e.packageId.name)}))})),r})),g=e.objectAllocator.getSymbolConstructor(),m=e.objectAllocator.getTypeConstructor(),y=e.objectAllocator.getSignatureConstructor(),h=0,v=0,b=0,x=0,D=0,E=0,C=0,J=e.createSymbolTable(),K=[1],z=t.getCompilerOptions(),U=e.getEmitScriptTarget(z),V=e.getEmitModuleKind(z),q=e.getAllowSyntheticDefaultImports(z),W=e.getStrictOptionValue(z,"strictNullChecks"),H=e.getStrictOptionValue(z,"strictFunctionTypes"),G=e.getStrictOptionValue(z,"strictBindCallApply"),Y=e.getStrictOptionValue(z,"strictPropertyInitialization"),X=e.getStrictOptionValue(z,"noImplicitAny"),Q=e.getStrictOptionValue(z,"noImplicitThis"),$=!!z.keyofStringsOnly,Z=z.suppressExcessPropertyErrors?0:32768,ee=function(){var r,n=t.getResolvedTypeReferenceDirectives();n&&(r=new e.Map,n.forEach((function(n,i){if(n&&n.resolvedFileName){var a=t.getSourceFile(n.resolvedFileName);a&&function n(i,a){if(r.has(i.path))return;r.set(i.path,a);for(var o=0,s=i.referencedFiles;o<s.length;o++){var c=s[o].fileName,u=e.resolveTripleslashReference(c,i.fileName),l=t.getSourceFile(u);l&&n(l,a)}}(a,i)}})));return{getReferencedExportContainer:Hx,getReferencedImportDeclaration:Gx,getReferencedDeclarationWithCollidingName:Xx,isDeclarationWithCollidingName:Qx,isValueAliasDeclaration:function(t){var r=e.getParseTreeNode(t);return!r||$x(r)},hasGlobalName:yD,isReferencedAliasDeclaration:function(t,r){var n=e.getParseTreeNode(t);return!n||rD(n,r)},getNodeCheckFlags:function(t){var r=e.getParseTreeNode(t);return r?cD(r):0},isTopLevelValueImportEqualsWithEntityName:Zx,isDeclarationVisible:la,isImplementationOfOverload:nD,isRequiredInitializedParameter:iD,isOptionalUninitializedParameterProperty:aD,isExpandoFunctionDeclaration:oD,getPropertiesOfContainerFunction:sD,createTypeOfDeclaration:fD,createReturnTypeOfSignatureDeclaration:gD,createTypeOfExpression:mD,createLiteralConstValue:xD,isSymbolAccessible:Vi,isEntityNameVisible:Xi,getConstantValue:function(t){var r=e.getParseTreeNode(t,lD);return r?dD(r):void 0},collectLinkedAliases:da,getReferencedValueDeclaration:vD,getTypeReferenceSerializationKind:pD,isOptionalParameter:lc,moduleExportsSomeValue:Wx,isArgumentsLocalBinding:qx,getExternalModuleFileFromDeclaration:TD,getTypeReferenceDirectivesForEntityName:function(e){if(!r)return;var t=790504;(78===e.kind&&Wp(e)||198===e.kind&&!function(e){return e.parent&&220===e.parent.kind&&e.parent.parent&&283===e.parent.parent.kind}(e))&&(t=1160127);var n=ni(e,t,!0);return n&&n!==he?i(n,t):void 0},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:bD,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&vi(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:DD,getJsxFragmentFactoryEntity:SD,getAllAccessorDeclarations:function(t){var r=167===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?166:167,n=e.getDeclarationOfKind(vi(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:167===t.kind?t:n,getAccessor:166===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:function(e){return oi(e,e,void 0)},isBindingCapturedByNode:function(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&function(t,r){var n=bn(t);return!!n&&e.contains(n.capturedBlockScopeBindings,vi(r))}(n,i)},getDeclarationStatementsForSourceFile:function(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&294===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=vi(t);return o?o.exports?te.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?te.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation:function(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=TD(t);if(!n)return!1;if(n===r)return!1;for(var i=gi(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId)for(var c=0,u=hi(s).declarations;c<u.length;c++){var l=u[c];if(e.getSourceFileOfNode(l)===n)return!0}}return!1}};function i(t,n){if(r&&function(t){if(!t.declarations)return!1;var n=t;for(;;){var i=bi(n);if(!i)break;n=i}if(n.valueDeclaration&&294===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1}(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),u=r.get(c.path);if(!u)return;(i||(i=[])).push(u)}}return i}}}(),te=function(){return{typeToTypeNode:function(e,t,r,n){return i(t,r,n,(function(t){return s(e,t)}))},indexInfoToIndexSignatureDeclaration:function(e,t,r,n,a){return i(r,n,a,(function(r){return _(e,t,r,void 0)}))},signatureToSignatureDeclaration:function(e,t,r,n,a){return i(r,n,a,(function(r){return p(e,t,r)}))},symbolToEntityName:function(e,t,r,n,a){return i(r,n,a,(function(r){return C(e,r,t,!1)}))},symbolToExpression:function(e,t,r,n,a){return i(r,n,a,(function(r){return k(e,r,t)}))},symbolToTypeParameterDeclarations:function(e,t,r,n){return i(t,r,n,(function(t){return b(e,t)}))},symbolToParameterDeclaration:function(e,t,r,n){return i(t,r,n,(function(t){return m(e,t)}))},typeParameterToDeclaration:function(e,t,r,n){return i(t,r,n,(function(t){return g(e,t)}))},symbolTableToDeclarationStatements:function(t,a,o,c,u){return i(a,o,c,(function(i){return function(t,i,a){var o=ie(e.factory.createPropertyDeclaration,164,!0),c=ie((function(t,r,n,i,a){return e.factory.createPropertySignature(r,n,i,a)}),163,!1),u=i.enclosingDeclaration,l=[],d=new e.Set,f=[],m=i;i=n(n({},m),{usedSymbolNames:new e.Set(m.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:n(n({},m.tracker),{trackSymbol:function(e,t,r){if(0===Vi(e,t,r,!1).accessibility){var n=v(e,i,r);4&e.flags||j(n[0])}else m.tracker&&m.tracker.trackSymbol&&m.tracker.trackSymbol(e,t,r)}})}),e.forEachEntry(t,(function(t,r){pe(t,e.unescapeLeadingUnderscores(r))}));var y=!a,h=t.get("export=");h&&t.size>1&&2097152&h.flags&&(t=e.createSymbolTable()).set("export=",h);return M(t),N(l);function b(e){return!!e&&78===e.kind}function x(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),b):e.filter([e.getNameOfDeclaration(t)],b)}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(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 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(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<u.length;c++){s(u[c])}}return t}function E(t){var r=e.findIndex(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return A(t[e])}))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=P(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.decorators,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier):e.orderedRemoveItemAt(t,r)}return t}function N(t){return t=E(t=T(t=S(t))),u&&(e.isSourceFile(u)&&e.isExternalOrCommonJsModule(u)||e.isModuleDeclaration(u))&&(!e.some(t,e.isExternalModuleIndicator)||!e.hasScopeMarker(t)&&e.some(t,e.needsScopeMarker))&&t.push(e.createEmptyExports(e.factory)),t}function A(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||Px(t)}function P(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function I(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function M(t,r,n){r||f.push(new e.Map),t.forEach((function(e){R(e,!1,!!n)})),r||(f[f.length-1].forEach((function(e){R(e,!0,!!n)})),f.pop())}function R(t,r,a){var o=hi(t);if(!d.has(w(o))&&(d.add(w(o)),!r||e.length(t.declarations)&&e.some(t.declarations,(function(t){return!!e.findAncestor(t,(function(e){return e===u}))})))){var s=i;i=function(t){var r=n({},t);r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames));r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText));r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList));return r}(i);var c=B(t,r,a);return i=s,c}}function B(t,r,n){var o=e.unescapeLeadingUnderscores(t.escapedName),s="default"===t.escapedName;if(!r||131072&i.flags||!e.isStringANonContextualKeyword(o)||s){var c=s&&!!(-113&t.flags||16&t.flags&&e.length(Ns(ro(t))))&&!(2097152&t.flags),l=!c&&!r&&e.isStringANonContextualKeyword(o)&&!s;(c||l)&&(r=!0);var d=(r?0:1)|(s&&!c?512:0),_=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,p=_&&ne(ro(t),t);if((8208&t.flags||p)&&X(ro(t),t,pe(t,o),d),524288&t.flags&&V(t,o,d),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!p)if(n){re(t)&&(l=!1,c=!1)}else{var f=ro(t),g=pe(t,o);if(16&t.flags||!ne(f,t)){var m=2&t.flags?Hf(t)?2:1:void 0,y=!c&&4&t.flags?de(g,t):g,h=t.declarations&&e.find(t.declarations,(function(t){return e.isVariableDeclaration(t)}));h&&e.isVariableDeclarationList(h.parent)&&1===h.parent.declarations.length&&(h=h.parent.parent),K(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(y,void 0,L(i,f,t,u,j,a))],m)),h),y!==g?-2&d:d),y===g||r||(K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(y,g)])),0),l=!1,c=!1)}else X(f,t,g,d)}if(384&t.flags&&Y(t,o,d),32&t.flags&&(4&t.flags&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?ee(t,pe(t,o),d):Z(t,pe(t,o),d)),(1536&t.flags&&(!_||H(t))||p)&&G(t,o,d),64&t.flags&&q(t,o,d),2097152&t.flags&&ee(t,pe(t,o),d),4&t.flags&&"export="===t.escapedName&&re(t),8388608&t.flags)for(var v=0,b=t.declarations;v<b.length;v++){var x=b[v],S=ai(x,x.moduleSpecifier);S&&K(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(D(S,i))),0)}c?K(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(pe(t,o))),0):l&&K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(pe(t,o),o)])),0)}else i.encounteredError=!0}function j(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(f[f.length-1]),de(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(function(t){return!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)}));f[r?0:f.length-1].set(w(t),t)}}function J(t){return e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t)}function K(t,r){if(e.canHaveModifiers(t)){var n=0;1&r&&i.enclosingDeclaration&&(J(i.enclosingDeclaration)||e.isModuleDeclaration(i.enclosingDeclaration))&&A(t)&&(n|=1),!y||1&n||i.enclosingDeclaration&&8388608&i.enclosingDeclaration.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(n|=2),512&r&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(n|=512),n&&(t=e.factory.updateModifiers(t,n|e.getEffectiveModifierFlags(t)))}l.push(t)}function V(t,r,n){var a=Do(t),o=vn(t).typeParameters,c=e.map(o,(function(e){return g(e,i)})),u=e.find(t.declarations,e.isJSDocTypeAlias),l=u?u.comment||u.parent.comment:void 0,d=i.flags;i.flags|=8388608,K(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,pe(t,r),c,s(a,i)),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),n),i.flags=d}function q(t,n,a){var o=xo(t),s=uo(t),c=e.map(s,(function(e){return g(e,i)})),u=ho(o),l=e.length(u)?Uu(u):void 0,d=e.flatMap(Ns(o),(function(e){return ae(e,l)})),_=oe(0,o,l,168),p=oe(1,o,l,169),f=se(o,l),m=e.length(u)?[e.factory.createHeritageClause(93,e.mapDefined(u,(function(e){return ue(e,111551)})))]:void 0;K(e.factory.createInterfaceDeclaration(void 0,void 0,pe(t,n),c,m,r(f,p,_,d)),a)}function W(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),$):[]}function H(t){return e.every(W(t),(function(e){return!(111551&Gn(e).flags)}))}function G(t,r,n){var a=W(t),o=e.arrayToMultiMap(a,(function(e){return e.parent&&e.parent===t?"real":"merged"})),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;e.length(s)&&Q(s,l=pe(t,r),n,!!(67108880&t.flags));if(e.length(c)){var u=e.getSourceFileOfNode(i.enclosingDeclaration),l=pe(t,r),d=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(function(e){return"export="!==e.escapedName})),(function(r){var n,a,o=e.unescapeLeadingUnderscores(r.escapedName),s=pe(r,o),c=r.declarations&&Mn(r);if(!u||(c?u===e.getSourceFileOfNode(c):e.some(r.declarations,(function(t){return e.getSourceFileOfNode(t)===u})))){var l=c&&Wn(c,!0);j(l||r);var d=l?pe(l,e.unescapeLeadingUnderscores(l.escapedName)):s;return e.factory.createExportSpecifier(o===d?void 0:d,o)}null===(a=null===(n=i.tracker)||void 0===n?void 0:n.reportNonlocalAugmentation)||void 0===a||a.call(n,u,t,r)}))))]);K(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(l),d,16),0)}}function Y(t,r,n){K(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Oh(t)?2048:0),pe(t,r),e.map(e.filter(Ns(ro(t)),(function(e){return!!(8&e.flags)})),(function(t){var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?dD(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)}function X(t,r,n,o){for(var s=0,c=ec(t,0);s<c.length;s++){var u=c[s],l=p(u,248,i,{name:e.factory.createIdentifier(n),privateSymbolVisitor:j,bundledImports:a});K(e.setTextRange(l,u.declaration&&e.isVariableDeclaration(u.declaration.parent)&&u.declaration.parent.parent||u.declaration),o)}1536&r.flags&&r.exports&&r.exports.size||Q(e.filter(Ns(t),$),n,o,!0)}function Q(t,r,a,o){if(e.length(t)){var s=e.arrayToMultiMap(t,(function(t){return!e.length(t.declarations)||e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(i.enclosingDeclaration)}))?"local":"remote"})).get("local")||e.emptyArray,c=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(r),e.factory.createModuleBlock([]),16);e.setParent(c,u),c.locals=e.createSymbolTable(t),c.symbol=t[0].parent;var d=l;l=[];var _=y;y=!1;var p=n(n({},i),{enclosingDeclaration:c}),f=i;i=p,M(e.createSymbolTable(s),o,!0),i=f,y=_;var g=l;l=d;var m=e.map(g,(function(t){return e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(t.expression,e.factory.createIdentifier("default"))])):t})),h=e.every(m,(function(t){return e.hasSyntacticModifier(t,1)}))?e.map(m,I):m;K(c=e.factory.updateModuleDeclaration(c,c.decorators,c.modifiers,c.name,e.factory.createModuleBlock(h)),a)}}function $(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isClassLike(t.valueDeclaration.parent))}function Z(t,n,a){var s,c=uo(t),u=e.map(c,(function(e){return g(e,i)})),l=xo(t),d=ho(l),_=e.mapDefined(function(t){for(var r=e.emptyArray,n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var u=Kl(c[s]);u!==Se&&(r===e.emptyArray?r=[u]:r.push(u))}}return r}(l),le),p=ro(t),f=!!(null===(s=p.symbol)||void 0===s?void 0:s.valueDeclaration)&&e.isClassLike(p.symbol.valueDeclaration),m=f?mo(p):be,y=r(e.length(d)?[e.factory.createHeritageClause(93,e.map(d,(function(e){return ce(e,m,n)})))]:[],e.length(_)?[e.factory.createHeritageClause(116,_)]:[]),h=function(t,r,n){if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(function(e){i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=Ns(Yo(o[a],t.thisType));s<c.length;s++){var u=c[s],l=i.get(u.escapedName);l&&!h_(l,u)&&i.delete(u.escapedName)}return e.arrayFrom(i.values())}(l,d,Ns(l)),v=e.filter(h,(function(t){var r=t.valueDeclaration;return r&&!(e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),b=e.some(h,(function(t){var r=t.valueDeclaration;return r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,x=e.flatMap(v,(function(e){return o(e,!1,d[0])})),D=e.flatMap(e.filter(Ns(p),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName||$(e))})),(function(e){return o(e,!0,m)})),S=!f&&!!t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(ec(p,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:oe(1,p,d[0],165),T=se(l,d[0]);K(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,n,u,y,r(T,D,S,x,b)),t.declarations&&e.filter(t.declarations,(function(t){return e.isClassDeclaration(t)||e.isClassExpression(t)}))[0]),a)}function ee(t,r,n){var a=Mn(t);if(!a)return e.Debug.fail();var o=hi(Wn(a,!0));if(o){var s=e.unescapeLeadingUnderscores(o.escapedName);"export="===s&&(z.esModuleInterop||z.allowSyntheticDefaultImports)&&(s="default");var c=pe(o,s);switch(j(o),a.kind){case 257:var u=!(512&o.flags);K(e.factory.createImportEqualsDeclaration(void 0,void 0,e.factory.createIdentifier(r),u?C(o,i,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(D(t,i)))),u?n:0);break;case 256:K(e.factory.createNamespaceExportDeclaration(e.idText(a.name)),0);break;case 259:K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(r),void 0),e.factory.createStringLiteral(D(o.parent||o,i))),0);break;case 260:K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(r))),e.factory.createStringLiteral(D(o,i))),0);break;case 266:K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(r)),e.factory.createStringLiteral(D(o,i))),0);break;case 262:K(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(r!==s?e.factory.createIdentifier(s):void 0,e.factory.createIdentifier(r))])),e.factory.createStringLiteral(D(o.parent||o,i))),0);break;case 267:var l=a.parent.parent.moduleSpecifier;te(e.unescapeLeadingUnderscores(t.escapedName),l?s:c,l&&e.isStringLiteralLike(l)?e.factory.createStringLiteral(l.text):void 0);break;case 263:re(t);break;case 213:case 198:"default"===t.escapedName||"export="===t.escapedName?re(t):te(r,c);break;default:return e.Debug.failBadSyntaxKind(a,"Unhandled alias declaration kind in symbol serializer!")}}}function te(t,r,n){K(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(t!==r?r:void 0,t)]),n),0)}function re(t){if(4194304&t.flags)return!1;var r=e.unescapeLeadingUnderscores(t.escapedName),n="export="===r,o=n||"default"===r,s=t.declarations&&Mn(t),c=s&&Wn(s,!0);if(c&&e.length(c.declarations)&&e.some(c.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(u)}))){var d=o?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s),_=e.isEntityNameExpression(d)?function(t){switch(t.kind){case 78:return t;case 156:do{t=t.left}while(78!==t.kind);return t;case 198:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(78!==t.kind);return t}}(d):void 0,p=_&&ni(_,67108863,!0,!0,u);(p||c)&&j(p||c);var f=i.tracker.trackSymbol;if(i.tracker.trackSymbol=e.noop,o)l.push(e.factory.createExportAssignment(void 0,void 0,n,k(c,i,67108863)));else if(_===d)te(r,e.idText(_));else if(e.isClassExpression(d))te(r,pe(c,e.symbolName(c)));else{var g=de(r,t);K(e.factory.createImportEqualsDeclaration(void 0,void 0,e.factory.createIdentifier(g),C(c,i,67108863,!1)),0),te(r,g)}return i.tracker.trackSymbol=f,!0}g=de(r,t);var m=dp(ro(hi(t)));return ne(m,t)?X(m,t,g,o?0:1):K(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(g,void 0,L(i,m,t,u,j,a))],2)),r===g?1:0),o?(l.push(e.factory.createExportAssignment(void 0,void 0,n,e.factory.createIdentifier(g))),!0):r!==g&&(te(r,g),!0)}function ne(t,r){var n=e.getSourceFileOfNode(i.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!nc(t,0)&&!nc(t,1)&&!(!e.length(Ns(t))&&!e.length(ec(t,0)))&&!e.length(ec(t,1))&&!O(r,u)&&!(t.symbol&&e.some(t.symbol.declarations,(function(t){return e.getSourceFileOfNode(t)!==n})))&&!e.some(Ns(t),(function(e){return Ko(e.escapedName)}))&&!e.some(Ns(t),(function(t){return e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)!==n}))}))&&e.every(Ns(t),(function(t){return e.isIdentifierText(e.symbolName(t),U)}))}function ie(t,r,n){return function(o,s,c){var l=e.getDeclarationModifierFlagsFromSymbol(o),d=!!(8&l);if(s&&2887656&o.flags)return[];if(4194304&o.flags||c&&$s(c,o.escapedName)&&Eh($s(c,o.escapedName))===Eh(o)&&(16777216&o.flags)==(16777216&$s(c,o.escapedName).flags)&&Dd(ro(o),ya(c,o.escapedName)))return[];var _=-257&l|(s?32:0),f=F(o,i),g=e.find(o.declarations,e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&n){var m=[];if(65536&o.flags&&m.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(_),f,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,d?void 0:L(i,ro(o),o,u,j,a))],void 0),e.find(o.declarations,e.isSetAccessor)||g)),32768&o.flags){var y=8&l;m.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(_),f,[],y?void 0:L(i,ro(o),o,u,j,a),void 0),e.find(o.declarations,e.isGetAccessor)||g))}return m}if(7&o.flags)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((Eh(o)?64:0)|_),f,16777216&o.flags?e.factory.createToken(57):void 0,d?void 0:L(i,ro(o),o,u,j,a),void 0),e.find(o.declarations,e.or(e.isPropertyDeclaration,e.isVariableDeclaration))||g);if(8208&o.flags){var h=ec(ro(o),0);if(8&_)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((Eh(o)?64:0)|_),f,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),e.find(o.declarations,e.isFunctionLikeDeclaration)||h[0]&&h[0].declaration||o.declarations[0]);for(var v=[],b=0,x=h;b<x.length;b++){var D=x[b],S=p(D,r,i,{name:f,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:_?e.factory.createModifiersFromModifierFlags(_):void 0});v.push(e.setTextRange(S,D.declaration))}return v}return e.Debug.fail("Unhandled class member kind! "+(o.__debugFlags||o.flags))}}function ae(e,t){return c(e,!1,t)}function oe(t,r,n,a){var o=ec(r,t);if(1===t){if(!n&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(n){var s=ec(n,1);if(!e.length(s)&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(s.length===o.length){for(var c=!1,u=0;u<s.length;u++)if(!b_(o[u],s[u],!1,!1,!0,Sd)){c=!0;break}if(!c)return[]}}for(var l=0,d=0,_=o;d<_.length;d++){var f=_[d];f.declaration&&(l|=e.getSelectedEffectiveModifierFlags(f.declaration,24))}if(l)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(l),[],void 0),o[0].declaration)]}for(var g=[],m=0,y=o;m<y.length;m++){var h=y[m],v=p(h,a,i);g.push(e.setTextRange(v,h.declaration))}return g}function se(e,t){for(var r=[],n=0,a=[0,1];n<a.length;n++){var o=a[n],s=nc(e,o);if(s){if(t){var c=nc(t,o);if(c&&Dd(s.type,c.type))continue}r.push(_(s,o,i,void 0))}}return r}function ce(t,r,n){var a=ue(t,111551);if(a)return a;var o=de(n+"_base");return K(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,s(r,i))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)}function ue(t,r){var n,a;if(t.target&&Ui(t.target.symbol,u,r)?(n=e.map(Vc(t),(function(e){return s(e,i)})),a=k(t.target.symbol,i,788968)):t.symbol&&Ui(t.symbol,u,r)&&(a=k(t.symbol,i,788968)),a)return e.factory.createExpressionWithTypeArguments(a,n)}function le(t){var r=ue(t,788968);return r||(t.symbol?e.factory.createExpressionWithTypeArguments(k(t.symbol,i,788968),void 0):void 0)}function de(e,t){var r,n,a=t?w(t):void 0;if(a&&i.remappedSymbolNames.has(a))return i.remappedSymbolNames.get(a);t&&(e=_e(t,e));for(var o=0,s=e;null===(r=i.usedSymbolNames)||void 0===r?void 0:r.has(e);)e=s+"_"+ ++o;return null===(n=i.usedSymbolNames)||void 0===n||n.add(e),a&&i.remappedSymbolNames.set(a,e),e}function _e(t,r){if("default"===r||"__class"===r||"__function"===r){var n=i.flags;i.flags|=16777216;var a=ua(t,i);i.flags=n,r=a.length>0&&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 pe(e,t){var r=w(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){e.Debug.assert(void 0===r||0==(8&r.flags));var o={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return t.getSourceFiles()},getCurrentDirectory:function(){return t.getCurrentDirectory()},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},s=a(o);return o.encounteredError?void 0:s}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=Hs(t)),1&t.flags)return r.approximateLength+=3,e.factory.createKeywordTypeNode(128);if(2&t.flags)return e.factory.createKeywordTypeNode(151);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(143);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(154);if(16&t.flags)return r.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&t.flags&&!(1048576&t.flags)){var i=bi(t.symbol),c=S(i,r,788968);return Ao(i)===t?c:B(c,e.factory.createTypeReferenceNode(e.symbolName(t.symbol),void 0))}if(1056&t.flags)return S(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var g=t.value;return r.approximateLength+=(""+g).length,e.factory.createLiteralTypeNode(g<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-g)):e.factory.createNumericLiteral(g))}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(zi(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,S(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(150,e.factory.createKeywordTypeNode(147))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(149);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(140);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(il(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!n&&t.aliasSymbol&&(16384&r.flags||Ki(t.aliasSymbol,r.enclosingDeclaration))){var m=d(t.aliasTypeArguments,r);return!Ii(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?S(t.aliasSymbol,r,788968,m):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),m)}var y=e.getObjectFlags(t);if(4&y)return e.Debug.assert(!!(524288&t.flags)),t.node?M(t,R):R(t);if(262144&t.flags||3&y){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(f(t,r,void 0));if(4&r.flags&&262144&t.flags&&!Ki(t.symbol,r.enclosingDeclaration)){var h=E(t,r);return r.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return t.symbol?S(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(3145728&t.flags){var v=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?Be:Eo(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&Ol(e[n+o-1])===Ol(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}65536&r&&t.push(Ae);32768&r&&t.push(Ce);return t||e}(t.types):t.types;if(1===e.length(v))return s(v[0],r);var b=d(v,r,!0);return b&&b.length>0?1048576&t.flags?e.factory.createUnionTypeNode(b):e.factory.createIntersectionTypeNode(b):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&y)return e.Debug.assert(!!(524288&t.flags)),O(t);if(4194304&t.flags){var x=t.type;r.approximateLength+=6;var D=s(x,r);return e.factory.createTypeOperatorNode(137,D)}if(8388608&t.flags){var T=s(t.objectType,r);D=s(t.indexType,r);return r.approximateLength+=2,e.factory.createIndexedAccessTypeNode(T,D)}if(16777216&t.flags){var C=s(t.checkType,r),k=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var N=s(t.extendsType,r);r.inferTypeParameters=k;var A=I(ml(t)),F=I(yl(t));return r.approximateLength+=15,e.factory.createConditionalTypeNode(C,N,A,F)}return 33554432&t.flags?s(t.baseType,r):e.Debug.fail("Should be unreachable.");function I(e){var t,n,i;return 1048576&e.flags?(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(Fu(e)))?(131072&r.flags||(r.encounteredError=!0,null===(i=null===(n=r.tracker)||void 0===n?void 0:n.reportCyclicStructureError)||void 0===i||i.call(n)),u(r)):M(e,(function(e){return s(e,r)})):s(e,r)}function O(t){var n,i=t.id,a=t.symbol;if(a){if(My(a.valueDeclaration)){var o=t===xo(a)?788968:111551;return S(a,r,o)}if(32&a.flags&&!$a(a)&&!(218===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t,n=!!(8192&a.flags)&&e.some(a.declarations,(function(t){return e.hasSyntacticModifier(t,32)})),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(function(e){return 294===e.parent.kind||254===e.parent.kind})));if(n||o)return(!!(4096&r.flags)||(null===(t=r.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&r.flags)||zi(a,r.enclosingDeclaration))}())return S(a,r,111551);if(null===(n=r.visitedTypes)||void 0===n?void 0:n.has(i)){var s=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(251===r.kind)return vi(r)}return}(t);return s?S(s,r,788968):u(r)}return M(t,L)}return L(t)}function M(t,n){var i,a=t.id,o=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,s=4&e.getObjectFlags(t)&&t.node?"N"+P(t.node):t.symbol?(o?"+":"")+w(t.symbol):void 0;if(r.visitedTypes||(r.visitedTypes=new e.Set),s&&!r.symbolDepth&&(r.symbolDepth=new e.Map),s){if((i=r.symbolDepth.get(s)||0)>10)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 L(t){if(Ss(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=hs(t)?e.factory.createTypeOperatorNode(137,s(vs(t),r)):s(gs(t),r);var o=f(fs(t),r,n),c=s(ms(t),r),u=e.factory.createMappedTypeNode(i,o,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=Ts(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],173,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return p(n.constructSignatures[0],174,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;i<a.length;i++){var s=a[i];n.push(p(s,168,r))}for(var c=0,d=t.constructSignatures;c<d.length;c++){s=d[c];n.push(p(s,169,r))}if(t.stringIndexInfo){var f=void 0;f=2048&t.objectFlags?_(Oc(be,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration),0,r,u(r)):_(t.stringIndexInfo,0,r,void 0),n.push(f)}t.numberIndexInfo&&n.push(_(t.numberIndexInfo,1,r,void 0));var g=t.properties;if(!g)return n;for(var m=0,y=0,h=g;y<h.length;y++){var v=h[y];if(m++,2048&r.flags){if(4194304&v.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(v)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(v.escapedName))}if(o(r)&&m+2<g.length-1){n.push(e.factory.createPropertySignature(void 0,"... "+(g.length-m)+" more ...",void 0,void 0)),l(g[g.length-1],r,n);break}l(v,r,n)}return n.length?n:void 0}(n);r.flags=i;var c=e.factory.createTypeLiteralNode(a);return r.approximateLength+=2,e.setEmitFlags(c,1024&r.flags?0:1)}function R(t){var n=Vc(t);if(t.target===yt||t.target===ht){if(2&r.flags){var i=s(n[0],r);return e.factory.createTypeReferenceNode(t.target===yt?"Array":"ReadonlyArray",[i])}var a=s(n[0],r),o=e.factory.createArrayTypeNode(a);return t.target===yt?o:e.factory.createTypeOperatorNode(141,o)}if(!(8&t.target.objectFlags)){if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!zi(t.symbol,r.enclosingDeclaration))return O(t);var c=t.target.outerTypeParameters,u=(D=0,void 0);if(c)for(var l=c.length;D<l;){var _=D,p=Bc(c[D]);do{D++}while(D<l&&Bc(c[D])===p);if(!e.rangeEquals(c,n,_,D)){var f=d(n.slice(_,D),r),g=r.flags;r.flags|=16;var m=S(p,r,788968,f);r.flags=g,u=u?B(u,m):m}}var y=void 0;if(n.length>0){var h=(t.target.typeParameters||e.emptyArray).length;y=d(n.slice(D,h),r)}T=r.flags;r.flags|=16;var v=S(t.symbol,r,788968,y);return r.flags=T,u?B(u,v):v}if(n.length>0){var b=qc(t),x=d(n.slice(0,b),r);if(x){if(t.target.labeledElementDeclarations)for(var D=0;D<x.length;D++){var T=t.target.elementFlags[D];x[D]=e.factory.createNamedTupleMember(12&T?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(Yy(t.target.labeledElementDeclarations[D]))),2&T?e.factory.createToken(57):void 0,4&T?e.factory.createArrayTypeNode(x[D]):x[D])}else for(var D=0;D<Math.min(b,x.length);D++){var T=t.target.elementFlags[D];x[D]=12&T?e.factory.createRestTypeNode(4&T?e.factory.createArrayTypeNode(x[D]):x[D]):2&T?e.factory.createOptionalTypeNode(x[D]):x[D]}var E=e.setEmitFlags(e.factory.createTupleTypeNode(x),1);return t.target.readonly?e.factory.createTypeOperatorNode(141,E):E}}if(r.encounteredError||524288&r.flags){E=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return t.target.readonly?e.factory.createTypeOperatorNode(141,E):E}r.encounteredError=!0}function B(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=j(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var u=0,l=j(r);u<l.length;u++){s=l[u];c=e.factory.createQualifiedName(c,s)}return e.factory.updateTypeReferenceNode(t,c,n)}function j(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function u(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(128):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function l(t,r,n){var i=!!(8192&e.getCheckFlags(t)),a=i&&33554432&r.flags?be:ro(t),o=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)){var s=e.first(t.declarations);if(zo(s))if(e.isBinaryExpression(s)){var c=e.getNameOfDeclaration(s);c&&e.isElementAccessExpression(c)&&e.isPropertyAccessEntityNameExpression(c.argumentExpression)&&y(c.argumentExpression,o,r)}else y(s.name.expression,o,r)}r.enclosingDeclaration=o;var l=F(t,r);r.approximateLength+=e.symbolName(t).length+1;var d=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!Es(a).length&&!Eh(t))for(var _=0,f=ec(Df(a,(function(e){return!(32768&e.flags)})),0);_<f.length;_++){var g=p(f[_],163,r,{name:l,questionToken:d});n.push(x(g))}else{var m=r.flags;r.flags|=i?33554432:0;var h=void 0;h=i&&33554432&m?u(r):a?L(r,a,t,o):e.factory.createKeywordTypeNode(128),r.flags=m;var v=Eh(t)?[e.factory.createToken(141)]:void 0;v&&(r.approximateLength+=9);var b=e.factory.createPropertySignature(v,l,d,h);n.push(x(b))}function x(r){if(e.some(t.declarations,(function(e){return 328===e.kind}))){var n=e.find(t.declarations,(function(e){return 328===e.kind})).comment;n&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+n.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function d(t,r,n){if(e.some(t)){if(o(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)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;u<l.length;u++){var d=l[u];if(c++,o(r)&&c+2<t.length-1){a.push(e.factory.createTypeReferenceNode("... "+(t.length-c)+" more ...",void 0));var _=s(t[t.length-1],r);_&&a.push(_);break}r.approximateLength+=2;var p=s(d,r);p&&(a.push(p),i&&e.isIdentifierTypeReference(p)&&i.add(p.typeName.escapedText,[d,a.length-1]))}if(i){var f=r.flags;r.flags|=64,i.forEach((function(t){if(!e.arrayIsHomogeneous(t,(function(e,t){return function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e[0],t[0])})))for(var n=0,i=t;n<i.length;n++){var o=i[n],c=o[0],u=o[1];a[u]=s(c,r)}})),r.flags=f}return a}}function _(t,r,n,i){var a=e.getNameFromIndexInfo(t)||"x",o=e.factory.createKeywordTypeNode(0===r?146:143),c=e.factory.createParameterDeclaration(void 0,void 0,void 0,a,void 0,o,void 0);return i||(i=s(t.type||be,n)),t.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=a.length+4,e.factory.createIndexSignature(void 0,t.isReadonly?[e.factory.createToken(141)]:void 0,[c],i)}function p(t,r,n,i){var a,o,c,u,l,d,_=256&n.flags;_&&(n.flags&=-257),32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?d=t.target.typeParameters.map((function(e){return s(_d(e,t.mapper),n)})):l=t.typeParameters&&t.typeParameters.map((function(e){return g(e,n)}));var p,f=ts(t,!0)[0].map((function(e){return m(e,n,165===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}));if(t.thisParameter){var y=m(t.thisParameter,n);f.unshift(y)}var h=bc(t);if(h){var v=2===h.kind||3===h.kind?e.factory.createToken(127):void 0,b=1===h.kind||3===h.kind?e.setEmitFlags(e.factory.createIdentifier(h.parameterName),16777216):e.factory.createThisTypeNode(),x=h.type&&s(h.type,n);p=e.factory.createTypePredicateNode(v,b,x)}else{var D=xc(t);!D||_&&ha(D)?_||(p=e.factory.createKeywordTypeNode(128)):p=function(t,r,n,i,a){if(r!==Se&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(function(e){return e===t.enclosingDeclaration}))&&o&&_d(Kl(o),n.mapper)===r&&M(o,r)){var c=R(t,o,i,a);if(c)return c}}return s(r,t)}(n,D,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}n.approximateLength+=3;var S=168===r?e.factory.createCallSignature(l,f,p):169===r?e.factory.createConstructSignature(l,f,p):163===r?e.factory.createMethodSignature(null==i?void 0:i.modifiers,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,l,f,p):164===r?e.factory.createMethodDeclaration(void 0,null==i?void 0:i.modifiers,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,l,f,p,void 0):165===r?e.factory.createConstructorDeclaration(void 0,null==i?void 0:i.modifiers,f,void 0):166===r?e.factory.createGetAccessorDeclaration(void 0,null==i?void 0:i.modifiers,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),f,p,void 0):167===r?e.factory.createSetAccessorDeclaration(void 0,null==i?void 0:i.modifiers,null!==(u=null==i?void 0:i.name)&&void 0!==u?u:e.factory.createIdentifier(""),f,void 0):170===r?e.factory.createIndexSignature(void 0,null==i?void 0:i.modifiers,f,p):304===r?e.factory.createJSDocFunctionType(f,p):173===r?e.factory.createFunctionTypeNode(l,f,null!=p?p:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):174===r?e.factory.createConstructorTypeNode(l,f,null!=p?p:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):248===r?e.factory.createFunctionDeclaration(void 0,null==i?void 0:i.modifiers,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),l,f,p,void 0):205===r?e.factory.createFunctionExpression(null==i?void 0:i.modifiers,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),l,f,p,e.factory.createBlock([])):206===r?e.factory.createArrowFunction(null==i?void 0:i.modifiers,l,f,p,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return d&&(S.typeArguments=e.factory.createNodeArray(d)),S}function f(t,r,n){var i=r.flags;r.flags&=-513;var a=E(t,r),o=Js(t),c=o&&s(o,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,n,c)}function g(e,t,r){return void 0===r&&(r=Fs(e)),f(e,t,r&&s(r,t))}function m(t,r,n,i,a){var o=e.getDeclarationOfKind(t,159);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,322));var s,c=ro(t);o&&iD(o)&&(c=Q_(c)),1073741824&r.flags&&o&&!e.isJSDocParameterTag(o)&&(s=o,W&&lc(s)&&!s.initializer)&&(c=af(c,524288));var u=L(r,c,t,r.enclosingDeclaration,i,a),l=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,d=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,_=o&&o.name?78===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):156===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function(t){return function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&Jo(n)&&y(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0));e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i));return e.setEmitFlags(i,16777217)}(t)}(o.name):e.symbolName(t),p=o&&lc(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,f=e.factory.createParameterDeclaration(void 0,l,d,_,p,u,void 0);return r.approximateLength+=e.symbolName(t).length+3,f}function y(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=En(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function h(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),v(e,t,r,n)}function v(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=ji(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||Ji(c[0],r.enclosingDeclaration,1===c.length?a:Bi(a))){var u=xi(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(u)){s=u.map((function(t){return e.some(t.declarations,Gi)?D(t,r):void 0}));var l=u.map((function(e,t){return t}));l.sort(g);for(var d=0,_=l.map((function(e){return u[e]}));d<_.length;d++){var p=_[d],f=t(p,Bi(a),!1);if(f){if(p.exports&&p.exports.get("export=")&&Ti(p.exports.get("export="),n)){c=f;break}c=f.concat(c||[Si(p,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,Gi))return;return[n]}function g(t,r){var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function b(t,r){var n;return 524384&ix(t).flags&&(n=e.factory.createNodeArray(e.map(uo(t),(function(e){return g(e,r)})))),n}function x(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=w(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,u=t[r+1];if(1&e.getCheckFlags(u)){var l=function(t){return e.concatenate(co(t),uo(t))}(2097152&c.flags?Yn(c):c);s=d(e.map(l,(function(e){return Hl(e,u.mapper)})),n)}else s=b(a,n)}return s}}function D(t,r){var i,a=e.getDeclarationOfKind(t,294);if(!a){var o=e.firstDefined(t.declarations,(function(e){return Di(e,t)}));o&&(a=e.getDeclarationOfKind(o,294))}if(a&&void 0!==a.moduleName)return a.moduleName;if(!a){if(r.tracker.trackReferencedAmbientModule){var s=e.filter(t.declarations,e.isAmbientModule);if(e.length(s))for(var u=0,l=s;u<l.length;u++){var d=l[u];r.tracker.trackReferencedAmbientModule(d,t)}}if(c.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return c.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var _=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),p=vn(t),f=p.specifierCache&&p.specifierCache.get(_.path);if(!f){var g=!!e.outFile(z),m=r.tracker.moduleResolverHost,y=g?n(n({},z),{baseUrl:m.getCommonSourceDirectory()}):z;f=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,y,_,m,{importModuleSpecifierPreference:g?"non-relative":"relative"})),null!==(i=p.specifierCache)&&void 0!==i||(p.specifierCache=new e.Map),p.specifierCache.set(_.path,f)}return f}function S(t,r,n,i){var a=h(t,r,n,!(16384&r.flags)),o=111551===n;if(e.some(a[0].declarations,Gi)){var s=a.length>1?m(a,a.length-1,1):void 0,c=i||x(a,0,r),u=D(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(z)===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=function t(r){return e.isIndexedAccessTypeNode(r.objectType)?t(r.objectType):r}(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=ua(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&fi(u)){var l=fi(u);e.forEachEntry(l,(function(t,r){if(Ti(t,c)&&!Ko(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=ua(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&Ho(u)&&Ho(u).get(c.escapedName)&&Ti(Ho(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 T(e,t,r){var n=En(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function E(t,r){var n;if(4&r.flags&&r.typeParameterNames){var i=r.typeParameterNames.get(Fu(t));if(i)return i}var a=C(t.symbol,r,788968,!0);if(!(78&a.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var o=a.escapedText,s=0,c=o;(null===(n=r.typeParameterNamesByText)||void 0===n?void 0:n.has(c))||T(c,r,t);)c=o+"_"+ ++s;c!==o&&(a=e.factory.createIdentifier(c,a.typeArguments)),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Fu(t),a),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(a.escapedText)}return a}function C(t,r,n,i){var a=h(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ua(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 k(t,r,n){var i=h(t,r,n);return function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ua(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Gi))return e.factory.createStringLiteral(D(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 N(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function A(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function F(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,A),i=function(t,r,n){var i=vn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,z.target)||Kg(a)?Kg(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):I(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(k(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))):I(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,N),n))}function I(t,r,n){return e.isIdentifierText(t,z.target)?e.factory.createIdentifier(t):!r&&Kg(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function O(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 M(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=pc(r.target.typeParameters)}function L(t,r,n,i,a,o){if(r!==Se&&i){var c=O(n,i);if(c&&!e.isFunctionLikeDeclaration(c)){var u=e.getEffectiveTypeAnnotationNode(c);if(Kl(u)===r&&M(u,r)){var l=R(t,u,a,o);if(l)return l}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(t.flags|=1048576);var _=s(r,t);return t.flags=d,_}function R(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)||306===a.kind)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(a))return e.factory.createKeywordTypeNode(151);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(149)]);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=ya(Kl(a),i.escapedText),c=o&&t.typeExpression&&Kl(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)&&(!M(a,Kl(a))||nu(a)||he===Yc(Gc(a),788968,!0)))return e.setOriginalNode(s(Kl(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=TD(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=oi(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=ni(p,67108863,!0,!0);if(f&&(0!==Vi(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?E(Ao(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}}(),re=e.createSymbolTable(),ne=ln(4,"undefined");ne.declarations=[];var ie=ln(1536,"globalThis",8);ie.exports=re,ie.declarations=[],re.set(ie.escapedName,ie);var ae,oe=ln(4,"arguments"),se=ln(4,"require"),ce={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getInstantiationCount:function(){return x},getRelationCacheSizes:function(){return{assignable:$r.size,identity:en.size,subtype:Xr.size,strictSubtype:Qr.size}},isUndefinedSymbol:function(e){return e===ne},isArgumentsSymbol:function(e){return e===oe},isUnknownSymbol:function(e){return e===he},getMergedSymbol:hi,getDiagnostics:Ax,getGlobalDiagnostics:function(){return Fx(),Wr.getGlobalDiagnostics()},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=iv(r);if(Ei(bn(r).resolvedSymbol)===t)return n}return ro(t)}(t,n):Se},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Dn(n.locals,r,111551),o=Dn(Ho(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:Ao,getPropertiesOfType:Ns,getPropertyOfType:function(t,r){return $s(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Nm(e.escapeLeadingUnderscores(r),i);return a?Am(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ya(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:nc,getSignaturesOfType:ec,getIndexTypeOfType:ic,getBaseTypes:ho,getBaseTypeOfLiteralType:I_,getWidenedType:dp,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Kl(r):Se},getParameterType:Zy,getPromisedTypeOfPromise:Av,getAwaitedType:function(e){return Pv(e)},getReturnTypeOfSignature:xc,isNullableType:hm,getNullableType:X_,getNonNullableType:$_,getNonOptionalType:tp,getTypeArguments:Vc,typeToTypeNode:te.typeToTypeNode,indexInfoToIndexSignatureDeclaration:te.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:te.signatureToSignatureDeclaration,symbolToEntityName:te.symbolToEntityName,symbolToExpression:te.symbolToExpression,symbolToTypeParameterDeclarations:te.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:te.symbolToParameterDeclaration,typeParameterToDeclaration:te.typeParameterToDeclaration,getSymbolsInScope:function(t,r){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"),sc(n);function a(){for(;t;){switch(t.locals&&!xn(t)&&s(t.locals,r),t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;case 253:s(vi(t).exports,2623475&r);break;case 252:s(vi(t).exports,8&r);break;case 218:t.name&&o(t.symbol,r);case 249:case 250:i||s(Ho(vi(t)),788968&r);break;case 205:t.name&&o(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&o(oe,r),i=e.hasSyntacticModifier(t,32),t=t.parent}s(re,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?Rx(r,!0):void 0},getShorthandAssignmentValueSymbol:function(t){var r=e.getParseTreeNode(t);return r?function(e){if(e&&286===e.kind)return ni(e.name,2208703);return}(r):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?Un(e.parent.parent,e):ni(e.propertyName||e.name,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return hi(e.exportSymbol||e)},getTypeAtLocation:function(t){var r=e.getParseTreeNode(t);return r?Bx(r):Se},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&jx(r)||Se},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=jx(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&$s(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return $i(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Zi(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return Qi(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return ia(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return $i(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return Zi(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return Qi(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return ia(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:Ux,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(vn(t).containingType.types,(function(e){return $s(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=vn(r).target;)t=r;return t}(t))}return}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n){var i=e.findAncestor(n,e.isCallLikeExpression),a=i&&bn(i).resolvedSignature;if(4&r&&i){var o=n;do{bn(o).skipDirectInference=!0,o=o.parent}while(o&&o!==i);bn(i).resolvedSignature=void 0}var s=Ng(n,r);if(4&r&&i){o=n;do{bn(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==i);bn(i).resolvedSignature=a}return s}},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?bg(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&mg(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&Sg(r)},isContextSensitive:yd,getFullyQualifiedName:ri,getResolvedSignature:function(e,t,r){return ue(e,t,r,0)},getResolvedSignatureForSignatureHelp:function(e,t,r){return ue(e,t,r,16)},getExpandedParameters:ts,hasEffectiveRestParameter:ih,getConstantValue:function(t){var r=e.getParseTreeNode(t,lD);return r?dD(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 198:return zm(e,105===e.expression.kind,t,dp(sv(e.expression)));case 156:return zm(e,!1,t,dp(sv(e.left)));case 192:return zm(e,!1,t,Kl(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(e,t,r){return zm(e,198===e.kind&&105===e.expression.kind,r.escapedName,t)}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?gc(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?nD(r):void 0},getImmediateAliasedSymbol:Vg,getAliasedSymbol:Yn,getEmitResolver:function(e,t){return Ax(e,t),ee},getExportsOfModule:_i,getExportsAndPropertiesOfModule:function(t){var r=_i(t),n=ui(t);n!==t&&e.addRange(r,Ns(ro(n)));return r},getSymbolWalker:e.createGetSymbolWalker((function(e){return Tc(e)||be}),bc,xc,ho,Ts,ro,qp,rc,Fs,e.getFirstIdentifier,Vc),getAmbientModules:function(){lt||(lt=[],re.forEach((function(e,t){c.test(t)&&lt.push(e)})));return lt},getJsxIntrinsicTagNamesAt:function(t){var r=Zg(k.IntrinsicElements,t);return r?Ns(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&lc(r)},tryGetMemberInModuleExports:function(t,r){return pi(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(t,r){var n=pi(t,r);if(n)return n;var i=ui(r);if(i===r)return;var a=ro(i);return 131068&a.flags||1&e.getObjectFlags(a)||A_(a)?void 0:$s(a,t)}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return uc(e,!1)},getApparentType:zs,getUnionType:Lu,isTypeAssignableTo:kd,createAnonymousType:Li,createSignature:Qo,createSymbol:ln,createIndexInfo:Oc,getAnyType:function(){return be},getStringType:function(){return Pe},getNumberType:function(){return we},createPromiseType:dh,createArrayType:vu,getElementTypeOfArrayType:E_,getBooleanType:function(){return Be},getFalseType:function(e){return e?Oe:Me},getTrueType:function(e){return e?Le:Re},getVoidType:function(){return Je},getUndefinedType:function(){return Ce},getNullType:function(){return Ae},getESSymbolType:function(){return je},getNeverType:function(){return Ke},getOptionalType:function(){return Ne},isSymbolAccessible:Vi,isArrayType:D_,isTupleType:B_,isArrayLikeType:C_,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&qu(t.name),n=r&&jo(r)?Vo(r):void 0,i=void 0===n?void 0:ya(e,n);return!!i&&w_(i)&&!kd(Bx(t),i)}))},getAllPossiblePropertiesOfTypes:function(t){var r=Lu(t);if(!(1048576&r.flags))return Ux(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=Ux(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=Vs(r,u);l&&n.set(u,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:Mm,getSuggestionForNonexistentProperty:Rm,getSuggestedSymbolForNonexistentJSXAttribute:Lm,getSuggestedSymbolForNonexistentSymbol:function(t,r,n){return Bm(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=Bm(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestedSymbolForNonexistentModule:jm,getSuggestionForNonexistentExport:function(t,r){var n=jm(t,r);return n&&e.symbolName(n)},getBaseConstraintOfType:Ms,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Js(e):void 0},resolveName:function(t,r,n,i){return En(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(nn(t))},getAccessibleSymbolChain:ji,getTypePredicateOfSignature:bc,resolveExternalModuleName:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&ai(r,r,!0)},resolveExternalModuleSymbol:ui,tryGetThisTypeAt:function(t,r){var n=e.getParseTreeNode(t);return n&&ig(n,r)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&function(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(!r)return;var n=bv(r),i=Fs(n[r.typeArguments.indexOf(t)]);return i&&_d(i,Wl(n,hv(r,n)))}(r)},getSuggestionDiagnostics:function(r,i){var o,s=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(s,z,t))return e.emptyArray;try{return a=i,Cx(s),e.Debug.assert(!!(1&bn(s).flags)),o=e.addRange(o,Hr.getDiagnostics(s.fileName)),Uv(Nx(s),(function(t,r,i){e.containsParseError(t)||kx(r,!!(8388608&t.flags))||(o||(o=[])).push(n(n({},i),{category:e.DiagnosticCategory.Suggestion}))})),o||e.emptyArray}finally{a=void 0}},runWithCancellationToken:function(e,t){try{return a=e,t(ce)}finally{a=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:uo,isDeclarationVisible:la};function ue(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);ae=n;var o=a?Oy(a,r,i):void 0;return ae=void 0,o}var le=new e.Map,de=new e.Map,_e=new e.Map,pe=new e.Map,fe=new e.Map,ge=new e.Map,me=[],ye=new e.Map,he=ln(4,"unknown"),ve=ln(0,"__resolving__"),be=Ai(1,"any"),xe=Ai(1,"any"),De=Ai(1,"any"),Se=Ai(1,"error"),Te=Ai(1,"any",524288),Ee=Ai(2,"unknown"),Ce=Ai(32768,"undefined"),ke=W?Ce:Ai(32768,"undefined",524288),Ne=Ai(32768,"undefined"),Ae=Ai(65536,"null"),Fe=W?Ae:Ai(65536,"null",524288),Pe=Ai(4,"string"),we=Ai(8,"number"),Ie=Ai(64,"bigint"),Oe=Ai(512,"false"),Me=Ai(512,"false"),Le=Ai(512,"true"),Re=Ai(512,"true");Le.regularType=Re,Le.freshType=Le,Re.regularType=Re,Re.freshType=Le,Oe.regularType=Me,Oe.freshType=Oe,Me.regularType=Me,Me.freshType=Oe;var Be=Fi([Me,Re]);Fi([Me,Le]),Fi([Oe,Re]),Fi([Oe,Le]);var je=Ai(4096,"symbol"),Je=Ai(16384,"void"),Ke=Ai(131072,"never"),ze=Ai(131072,"never"),Ue=Ai(131072,"never",2097152),Ve=Ai(131072,"never"),qe=Ai(131072,"never"),We=Ai(67108864,"object"),He=Lu([Pe,we,je]),Ge=$?Pe:He,Ye=Lu([we,Ie]),Xe=Yl((function(e){return 262144&e.flags?(t=e).constraint===Ee?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=wi(t.symbol),t.restrictiveInstantiation.constraint=Ee,t.restrictiveInstantiation):e;var t})),Qe=Yl((function(e){return 262144&e.flags?De:e})),$e=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),Ze=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0);Ze.objectFlags|=4096;var et=ln(2048,"__type");et.members=e.createSymbolTable();var tt=Li(et,J,e.emptyArray,e.emptyArray,void 0,void 0),rt=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0);rt.instantiations=new e.Map;var nt=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0);nt.objectFlags|=2097152;var it=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),at=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),ot=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0),st=wi(),ct=wi();ct.constraint=st;var ut,lt,dt,_t,pt,ft,gt,mt,yt,ht,vt,bt,xt,Dt,St,Tt,Et,Ct,kt,Nt,At,Ft,Pt,wt,It,Ot,Mt,Lt,Rt,Bt,jt,Jt,Kt,zt,Ut,Vt,qt,Wt,Ht,Gt,Yt,Xt,Qt,$t,Zt,er,tr,rr=wi(),nr=_c(1,"<<unresolved>>",0,be),ir=Qo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ar=Qo(void 0,void 0,void 0,e.emptyArray,Se,void 0,0,0),or=Qo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),sr=Qo(void 0,void 0,void 0,e.emptyArray,ze,void 0,0,0),cr=Oc(Pe,!0),ur=new e.Map,lr={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},dr=Eb(be,be,be),_r=Eb(be,be,Ee),pr=Eb(Ke,be,Ce),fr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return zt||(zt=lu("AsyncIterator",3,e))||rt},getGlobalIterableType:function(e){return Kt||(Kt=lu("AsyncIterable",1,e))||rt},getGlobalIterableIteratorType:function(e){return Ut||(Ut=lu("AsyncIterableIterator",1,e))||rt},getGlobalGeneratorType:function(e){return Vt||(Vt=lu("AsyncGenerator",3,e))||rt},resolveIterationType:Pv,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},gr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Lt||(Lt=lu("Iterator",3,e))||rt},getGlobalIterableType:gu,getGlobalIterableIteratorType:function(e){return Rt||(Rt=lu("IterableIterator",1,e))||rt},getGlobalGeneratorType:function(e){return Bt||(Bt=lu("Generator",3,e))||rt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},mr=new e.Map,yr=!1,hr=new e.Map,vr=0,br=0,xr=0,Dr=!1,Sr=0,Tr=Ll(""),Er=Ll(0),Cr=Ll({negative:!1,base10Value:"0"}),kr=[],Nr=[],Ar=[],Fr=0,Pr=[],wr=[],Ir=[],Or=[],Mr=[],Lr=[],Rr=[],Br=[],jr=[],Jr=[],Kr=[],zr=[],Ur=[],Vr=[],qr=[],Wr=e.createDiagnosticCollection(),Hr=e.createDiagnosticCollection(),Gr=new e.Map(e.getEntries({string:Pe,number:we,bigint:Ie,boolean:Be,symbol:je,undefined:Ce})),Yr=Lu(e.arrayFrom(S.keys(),Ll)),Xr=new e.Map,Qr=new e.Map,$r=new e.Map,Zr=new e.Map,en=new e.Map,tn=new e.Map,rn=e.createSymbolTable();return rn.set(ne.escapedName,ne),function(){for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,z)}var a;ut=new e.Map;for(var o=0,s=t.getSourceFiles();o<s.length;o++){if(!(i=s[o]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var c=i.locals.get("globalThis");if(c)for(var u=0,l=c.declarations;u<l.length;u++){var d=l[u];Wr.add(e.createDiagnosticForNode(d,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}yn(re,i.locals)}if(i.jsGlobalAugmentations&&yn(re,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(dt=e.concatenate(dt,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports)i.symbol.globalExports.forEach((function(e,t){re.has(t)||re.set(t,e)}))}}if(a)for(var _=0,p=a;_<p.length;_++)for(var f=p[_],g=0,m=f;g<m.length;g++){var y=m[g];e.isGlobalScopeAugmentation(y.parent)&&hn(y)}(function(t,r,n){r.forEach((function(r,i){var a=t.get(i);a?e.forEach(a.declarations,function(t,r){return function(n){return Wr.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(i),n)):t.set(i,r)}))})(re,rn,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),vn(ne).type=ke,vn(oe).type=lu("IArguments",0,!0),vn(he).type=Se,vn(ie).type=Pi(16,ie),yt=lu("Array",1,!0),pt=lu("Object",0,!0),ft=lu("Function",0,!0),gt=G&&lu("CallableFunction",0,!0)||ft,mt=G&&lu("NewableFunction",0,!0)||ft,vt=lu("String",0,!0),bt=lu("Number",0,!0),xt=lu("Boolean",0,!0),Dt=lu("RegExp",0,!0),Tt=vu(be),(Et=vu(xe))===$e&&(Et=Li(void 0,J,e.emptyArray,e.emptyArray,void 0,void 0));if(ht=mu("ReadonlyArray",1)||yt,Ct=ht?yu(ht,[be]):Tt,St=mu("ThisType",1),a)for(var h=0,v=a;h<v.length;h++){f=v[h];for(var b=0,x=f;b<x.length;b++){y=x[b];e.isGlobalScopeAugmentation(y.parent)||hn(y)}}ut.forEach((function(t){var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach((function(t,r){for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++){mn(c[s],o,r,a)}for(var u=0,l=a;u<l.length;u++){mn(l[u],o,r,i)}}));else{var a=e.arrayFrom(i.keys()).join(", ");Wr.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),Wr.add(e.addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}})),ut=void 0}(),ce;function nn(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,U),e.visitNode(r.localJsxFragmentFactory,s),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=SD(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{if(r.localJsxNamespace)return r.localJsxNamespace;var o=r.pragmas.get("jsx");if(o){i=e.isArray(o)?o[0]:o;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,U),e.visitNode(r.localJsxFactory,s),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}return Zt||(Zt="React",z.jsxFactory?(er=e.parseIsolatedEntityName(z.jsxFactory,U),e.visitNode(er,s),er&&(Zt=e.getFirstIdentifier(er).escapedText)):z.reactNamespace&&(Zt=e.escapeLeadingUnderscores(z.reactNamespace))),er||(er=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Zt)),"createElement")),Zt;function s(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,s,e.nullTransformationContext)}}function an(e,t,r,n,i,a,o){var s=on(t,r,n,i,a,o);return s.skippedOn=e,s}function on(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return Wr.add(s),s}function sn(t,r){t?Wr.add(r):Hr.add(n(n({},r),{category:e.DiagnosticCategory.Suggestion}))}function cn(t,r,n,i,a,o,s){sn(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function un(t,r,n,i,a,o,s){var c=on(t,n,i,a,o,s);if(r){var u=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,u)}return c}function ln(e,t,r){v++;var n=new g(33554432|e,t);return n.checkFlags=r||0,n}function dn(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function _n(e,t){t.mergeId||(t.mergeId=_,_++),Pr[t.mergeId]=e}function pn(t){var r=ln(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),_n(r,t),r}function fn(t,r,n){if(void 0===n&&(n=!1),!(t.flags&dn(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=Gn(t);if(i===he)return r;t=pn(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),yn(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),yn(t.exports,r.exports,n)),n||_n(t,r)}else if(1024&t.flags)t!==ie&&on(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Qi(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),u=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),l=Qi(r);if(c&&u&&ut&&!a&&c!==u){var d=-1===e.comparePaths(c.path,u.path)?c:u,_=d===c?u:c,p=e.getOrUpdate(ut,d.path+"|"+_.path,(function(){return{firstFile:d,secondFile:_,conflictingSymbols:new e.Map}})),f=e.getOrUpdate(p.conflictingSymbols,l,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));g(f.firstFileLocations,r),g(f.secondFileLocations,t)}else gn(r,s,l,t),gn(t,s,l,r)}return t;function g(t,r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function gn(t,r,n,i){e.forEach(t.declarations,(function(e){mn(e,r,n,i.declarations)}))}function mn(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=function(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return Wr.lookup(s)||(Wr.add(s),s)}(a,r,n),s=function(t){var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c<u.length;c++){s(u[c])}}function yn(e,t,r){void 0===r&&(r=!1),t.forEach((function(t,n){var i=e.get(n);e.set(n,i?fn(i,t,r):t)}))}function hn(t){var r,n,i=t.parent;if(i.symbol.declarations[0]===i)if(e.isGlobalScopeAugmentation(i))yn(re,i.symbol.exports);else{var a=oi(t,t,8388608&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!a)return;if(1920&(a=ui(a)).flags)if(e.some(dt,(function(e){return a===e.symbol}))){var o=fn(i.symbol,a,!0);_t||(_t=new e.Map),_t.set(t.text,o)}else{if((null===(r=a.exports)||void 0===r?void 0:r.get("__export"))&&(null===(n=i.symbol.exports)||void 0===n?void 0:n.size))for(var s=Wo(a,"resolvedExports"),c=0,u=e.arrayFrom(i.symbol.exports.entries());c<u.length;c++){var l=u[c],d=l[0],_=l[1];s.has(d)&&!a.exports.has(d)&&fn(s.get(d),_)}fn(a,i.symbol)}else on(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(i.symbol.declarations.length>1)}function vn(e){if(33554432&e.flags)return e;var t=w(e);return wr[t]||(wr[t]=new A)}function bn(e){var t=P(e);return Ir[t]||(Ir[t]=new F)}function xn(t){return 294===t.kind&&!e.isExternalOrCommonJsModule(t)}function Dn(t,r,n){if(n){var i=hi(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=Yn(i);if(a===he||a.flags&n)return i}}}}function Sn(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)||Wp(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(195===r.kind){var c=e.getAncestor(n,195);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:Sn(e.getAncestor(r,246),n)}return 246===r.kind?!function(t,r){switch(t.parent.parent.kind){case 229:case 234:case 236:if(In(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&In(r,n.expression,o)}(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(function(t){return e.isComputedPropertyName(t)&&t.parent.parent===r})):e.isPropertyDeclaration(r)?!l(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===z.target&&z.useDefineForClassFields&&e.getContainingClass(r)===e.getContainingClass(n)&&u(n,r))}return!!(267===n.parent.kind||263===n.parent.kind&&n.parent.isExportEquals)||(!(263!==n.kind||!n.isExportEquals)||(!!(4194304&n.flags||Wp(n)||e.findAncestor(n,(function(t){return e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)})))||!!u(n,r)&&(99!==z.target||!z.useDefineForClassFields||!e.getContainingClass(r)||!e.isPropertyDeclaration(r)&&!e.isParameterPropertyDeclaration(r,r.parent)||!l(r,n,!0))));function u(t,r){return!!e.findAncestor(t,(function(n){if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(n.parent&&162===n.parent.kind&&n.parent.initializer===n)if(e.hasSyntacticModifier(n.parent,32)){if(164===r.kind)return!0}else if(!(162===r.kind&&!e.hasSyntacticModifier(r,32))||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function l(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 206:return!0;case 162:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 227:switch(r.parent.kind){case 166:case 164:case 167:return!0;default:return!1}default:return!1}}))}}function Tn(t,r,n){var i=e.getEmitScriptTarget(z),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=bn(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 206:case 205:case 248:case 165:return!1;case 164:case 166:case 167:case 285:return s(t.name);case 162:return e.hasStaticModifier(t)?i<99||!z.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 En(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Cn(e,t,r,n,i,a,o,Dn,s)}function Cn(t,r,n,i,a,o,s,c,u){var l,d,_,p,f,g,m=t,y=!1,h=t,v=!1;e:for(;t;){if(t.locals&&!xn(t)&&(l=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&d&&d!==t.body?(n&l.flags&788968&&307!==d.kind&&(b=!!(262144&l.flags)&&(d===t.type||159===d.kind||158===d.kind)),n&l.flags&3&&(Tn(l,t,d)?b=!1:1&l.flags&&(b=159===d.kind||d===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter)))):183===t.kind&&(b=d===t.trueType),b)break e;l=void 0}switch(y=y||kn(t,d),t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;v=!0;case 253:var x=vi(t).exports||J;if(294===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(l=x.get("default")){var D=e.getLocalSymbolForExportDefault(l);if(D&&l.flags&n&&D.escapedName===r)break e;l=void 0}var S=x.get(r);if(S&&2097152===S.flags&&(e.getDeclarationOfKind(S,267)||e.getDeclarationOfKind(S,266)))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 252:if(l=c(vi(t).exports,r,8&n))break e;break;case 162:if(!e.hasSyntacticModifier(t,32)){var T=ki(t.parent);T&&T.locals&&c(T.locals,r,111551&n)&&(p=t)}break;case 249:case 218:case 250:if(l=c(vi(t).members||J,r,788968&n)){if(!Fn(l,t)){l=void 0;break}if(d&&e.hasSyntacticModifier(d,32))return void on(h,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(218===t.kind&&32&n){var E=t.name;if(E&&r===E.escapedText){l=t.symbol;break e}}break;case 220:if(d===t.expression&&93===t.parent.token){var C=t.parent.parent;if(e.isClassLike(C)&&(l=c(vi(C).members,r,788968&n)))return void(i&&on(h,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 157:if(g=t.parent.parent,(e.isClassLike(g)||250===g.kind)&&(l=c(vi(g).members,r,788968&n)))return void on(h,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 206:if(z.target>=2)break;case 164:case 165:case 166:case 167:case 248:if(3&n&&"arguments"===r){l=oe;break e}break;case 205:if(3&n&&"arguments"===r){l=oe;break e}if(16&n){var k=t.name;if(k&&r===k.escapedText){l=t.symbol;break e}}break;case 160:t.parent&&159===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||249===t.parent.kind)&&(t=t.parent);break;case 327:case 320:case 321:t=e.getJSDocHost(t);break;case 159:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&(f||(f=t));break;case 195:if(d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d)))159===(w=e.getRootDeclaration(t)).kind&&(f||(f=t))}Nn(t)&&(_=t),d=t,t=t.parent}if(!o||!l||_&&l===_.symbol||(l.isReferenced|=n),!l){if(d&&(e.Debug.assert(294===d.kind),d.commonJsModuleIndicator&&"exports"===r&&n&d.symbol.flags))return d.symbol;s||(l=c(re,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return se;if(l){if(i){if(p&&(99!==z.target||!z.useDefineForClassFields)){var N=p.name;return void on(h,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(N),An(a))}if(h&&(2&n||(32&n||384&n)&&111551==(111551&n))){var A=Ei(l);(2&A.flags||32&A.flags||384&A.flags)&&function(t,r){if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var n=e.find(t.declarations,(function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||252===t.kind}));if(void 0===n)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&n.flags||Sn(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=on(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=on(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=on(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),z.preserveConstEnums&&(i=on(r,e.Diagnostics.Enum_0_used_before_its_declaration,a))),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(A,h)}if(l&&v&&111551==(111551&n)&&!(4194304&m.flags)){var F=hi(l);e.length(F.declarations)&&e.every(F.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&cn(!z.allowUmdGlobalAccess,h,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(l&&f&&!y&&111551==(111551&n)){var P=hi(Go(l)),w=e.getRootDeclaration(f);P===vi(f)?on(h,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(f.name)):P.valueDeclaration&&P.valueDeclaration.pos>f.pos&&w.parent.locals&&c(w.parent.locals,P.escapedName,n)===P&&on(h,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(f.name),e.declarationNameToString(h))}l&&h&&111551&n&&2097152&l.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=$n(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(on(n,o,c),e.createDiagnosticForNode(i,s,c))}}}(l,r,h)}return l}if(i&&!(h&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||wx(t)||Wp(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=vi(a.parent);if(!o)break;if($s(ro(o),r))return on(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,An(n),Qi(o)),!0;if(a===i&&!e.hasSyntacticModifier(a,32))if($s(Ao(o).thisType,r))return on(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,An(n)),!0}a=a.parent}return!1}(h,r,a)||Pn(h)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Gn(En(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($s(Ao(a),s))return on(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 on(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(h,r,n)||function(t,r){if(wn(r)&&267===t.parent.kind)return on(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(h,r)||function(t,r,n){if(111551&n){if(wn(r))return on(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Gn(En(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags))return on(t,function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0}return!1}(h,r,n)||function(t,r,n){if(111127&n){if(Gn(En(t,r,1024,void 0,void 0,!1)))return on(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(Gn(En(t,r,1536,void 0,void 0,!1)))return on(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(h,r,n)||function(t,r,n){if(788584&n){var i=Gn(En(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return on(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}(h,r,n)))){var I=void 0;if(u&&Fr<10&&(I=Bm(m,r,n))){var O=Qi(I),M=on(h,u,An(a),O);I.valueDeclaration&&e.addRelatedInfo(M,e.createDiagnosticForNode(I.valueDeclaration,e.Diagnostics._0_is_declared_here,O))}I||on(h,i,An(a)),Fr++}}function kn(t,r){return 206!==t.kind&&205!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||162===t.kind&&!e.hasSyntacticModifier(t,32))&&(!r||r!==t.name):(!r||r!==t.name)&&(!(!t.asteriskToken&&!e.hasSyntacticModifier(t,256))||!e.getImmediatelyInvokedFunctionExpression(t))}function Nn(e){switch(e.kind){case 248:case 249:case 250:case 252:case 251:case 253:return!0;default:return!1}}function An(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Fn(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(158===a.kind)if((e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function Pn(t){var r=function t(r){switch(r.kind){case 78:case 198:return r.parent?t(r.parent):void 0;case 220:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}(t);return!(!r||!ni(r,64,!0))&&(on(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),!0)}function wn(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function In(t,r,n){return!!r&&!!e.findAncestor(t,(function(t){return t===n||e.isFunctionLike(t)?"quit":t===r}))}function On(e){switch(e.kind){case 257:return e;case 259:return e.parent;case 260:return e.parent.parent;case 262:return e.parent.parent.parent;default:return}}function Mn(t){return e.find(t.declarations,Ln)}function Ln(t){return 257===t.kind||256===t.kind||259===t.kind&&!!t.name||260===t.kind||266===t.kind||262===t.kind||267===t.kind||263===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind&&Rn(t.parent.right)||286===t.kind||285===t.kind&&Rn(t.initializer)}function Rn(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&My(t)}function Bn(t,r){if(269===t.moduleReference.kind){var n=ai(t,e.getExternalModuleImportEqualsDeclarationExpression(t)),i=ui(n);return Xn(t,n,i,!1),i}var a=ti(t.moduleReference,r);return function(t,r){if(Xn(t,void 0,r,!1)){var n=$n(vi(t)),i=e.typeOnlyDeclarationIsExport(n),a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(on(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}}(t,a),a}function jn(e,t,r,n){var i=e.exports.get("export=");if(i)return $s(ro(i),t);var a=e.exports.get(t),o=Gn(a,n);return Xn(r,a,o,!1),o}function Jn(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function Kn(t,r,n){if(!q)return!1;if(!t||t.isDeclarationFile){var i=jn(r,"default",void 0,!0);return(!i||!e.some(i.declarations,Jn))&&!jn(r,e.escapeLeadingUnderscores("__esModule"),void 0,n)}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!jn(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):di(r)}function zn(t,r){var n=ai(t,t.parent.moduleSpecifier);if(n){var i=void 0;i=e.isShorthandAmbientModuleSymbol(n)?n:jn(n,"default",t,r);var a=Kn(e.find(n.declarations,e.isSourceFile),n,r);if(i||a){if(a){var o=ui(n,r)||Gn(n,r);return Xn(t,n,o,!1),o}}else if(di(n)){var s=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=n.exports.get("export=").valueDeclaration,u=on(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Qi(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))on(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Qi(t),Qi(r.symbol));else{var a=on(r.name,e.Diagnostics.Module_0_has_no_default_export,Qi(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=ai(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 Xn(t,i,void 0,!1),i}}function Un(t,n,i){var a;void 0===i&&(i=!1);var o=ai(t,t.moduleSpecifier),s=n.propertyName||n.name,c="default"===s.escapedText&&!(!z.allowSyntheticDefaultImports&&!z.esModuleInterop),u=li(o,t.moduleSpecifier,i,c);if(u&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?$s(ro(u),s.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Gn($s(Kl(r),t))}}(u,s.escapedText),l=Gn(l,i);var d=function(e,t,r){var n;if(1536&e.flags){var i=(null!==(n=t.propertyName)&&void 0!==n?n:t.name).escapedText,a=fi(e).get(i),o=Gn(a,r);return Xn(t,a,o,!1),o}}(u,n,i);if(void 0===d&&"default"===s.escapedText)Kn(e.find(o.declarations,e.isSourceFile),o,i)&&(d=ui(o,i)||Gn(o,i));var _=d&&l&&d!==l?function(t,r){if(t===he&&r===he)return he;if(790504&t.flags)return t;var n=ln(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=ri(o,t),f=e.declarationNameToString(s),g=jm(s,u);if(void 0!==g){var m=Qi(g),y=on(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,p,f,m);g.valueDeclaration&&e.addRelatedInfo(y,e.createDiagnosticForNode(g.valueDeclaration,e.Diagnostics._0_is_declared_here,m))}else(null===(a=o.exports)||void 0===a?void 0:a.has("default"))?on(s,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)Ti(l,c)?function(t,r,n,i){if(V>=e.ModuleKind.ES2015){on(r,z.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))on(r,z.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 on(r,z.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):on(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i);else{var d=u?e.find(sc(u),(function(e){return!!Ti(e,c)})):void 0,_=d?on(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,i,Qi(d)):on(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 on(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i)}(t,s,f,o,p)}return _}}function Vn(e,t,r){var n=e.parent.parent.moduleSpecifier?Un(e.parent.parent,e,r):ni(e.propertyName||e.name,t,!1,r);return Xn(e,void 0,n,!1),n}function qn(t,r){if(e.isClassExpression(t))return Uh(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=ni(t,901119,!0,r);return n||(Uh(t),bn(t).resolvedSymbol)}}function Wn(t,r){switch(void 0===r&&(r=!1),t.kind){case 257:return Bn(t,r);case 259:return zn(t,r);case 260:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=ai(e,r),i=li(n,r,t,!1);return Xn(e,n,i,!1),i}(t,r);case 266:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&ai(e,r),i=r&&li(n,r,t,!1);return Xn(e,n,i,!1),i}(t,r);case 262:return function(e,t){var r=Un(e.parent.parent.parent,e,t);return Xn(e,void 0,r,!1),r}(t,r);case 267:return Vn(t,901119,r);case 263:case 213:return function(t,r){var n=qn(e.isExportAssignment(t)?t.expression:t.right,r);return Xn(t,void 0,n,!1),n}(t,r);case 256:return function(e,t){var r=ui(e.parent.symbol,t);return Xn(e,void 0,r,!1),r}(t,r);case 286:return ni(t.name,901119,!0,r);case 285:return function(e,t){return qn(e.initializer,t)}(t,r);case 198:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&62===t.parent.operatorToken.kind)return qn(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function Hn(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Gn(e,t){return!t&&Hn(e)?Yn(e):e}function Yn(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=vn(t);if(r.target)r.target===ve&&(r.target=he);else{r.target=ve;var n=Mn(t);if(!n)return e.Debug.fail();var i=Wn(n);r.target===ve?r.target=i||he:on(n,e.Diagnostics.Circular_definition_of_import_alias_0,Qi(t))}return r.target}function Xn(t,r,n,i){if(!t)return!1;var a=vi(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return vn(a).typeOnlyDeclaration=t,!0;var o=vn(a);return Qn(o,r,i)||Qn(o,n,i)}function Qn(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:vn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function $n(e){if(2097152&e.flags)return vn(e).typeOnlyDeclaration||void 0}function Zn(e){var t=vi(e),r=Yn(t);r&&((r===he||111551&r.flags&&!tD(r)&&!$n(t))&&ei(t))}function ei(t){var r=vn(t);if(!r.referenced){r.referenced=!0;var n=Mn(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Gn(t);(i===he||111551&i.flags)&&Uh(n.moduleReference)}}}function ti(t,r){return 78===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),78===t.kind||156===t.parent.kind?ni(t,1920,!1,r):(e.Debug.assert(257===t.parent.kind),ni(t,901119,!1,r))}function ri(e,t){return e.parent?ri(e.parent,t)+"."+Qi(e):Qi(e,t,void 0,20)}function ni(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:Vp(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(tu(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=vi(r.expression.left))return ii(i)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=vi(r.parent.parent.left))return ii(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=vi(n))&&i.valueDeclaration}}(t.parent);if(n)return En(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=hi(En(a||t,t.escapedText,r,n||u?void 0:c,t,!0))))return hi(u)}else{if(156!==t.kind&&198!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=156===t.kind?t.left:t.expression,d=156===t.kind?t.right:t.name,_=ni(l,s,n,!1,a);if(!_||e.nodeIsMissing(d))return;if(_===he)return _;if(e.isInJSFile(t)&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&Uy(_.valueDeclaration.initializer)){var p=_.valueDeclaration.initializer.arguments[0],f=ai(p,p);if(f){var g=ui(f);g&&(_=g)}}if(!(o=hi(Dn(fi(_),d.escapedText,r))))return void(n||on(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,ri(_),e.declarationNameToString(d)))}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||263===t.parent.kind)&&Xn(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Yn(o)}}function ii(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 ai(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 oi(t,r,n?void 0:i)}function oi(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?si(t,r.text,n,r,i):void 0}function si(r,n,i,a,o){(void 0===o&&(o=!1),e.startsWith(n,"@types/"))&&on(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=uc(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),u=e.getResolvedModule(c,n),l=u&&e.getResolutionDiagnostic(z,u),d=u&&!l&&t.getSourceFile(u.resolvedFileName);if(d)return d.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&ci(!1,a,u,n),hi(d.symbol)):void(i&&on(a,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(dt){var _=e.findBestPatternMatch(dt,(function(e){return e.pattern}),n);if(_){var p=_t&&_t.get(n);return hi(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?on(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,u.resolvedFileName):ci(X&&!!i,a,u,n);else if(i){if(u){var f=t.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void on(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)on(a,l,n,u.resolvedFileName);else{var g=e.tryExtractTSExtension(n);if(g)on(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,g,e.removeExtension(n,g));else!z.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(z)?on(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):on(a,i,n)}}}function ci(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;cn(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===he||t===r||1===r.exports.size||2097152&t.flags)return t;var n=vn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:pn(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)?fn(i.exports.get(t),e):e)})),vn(i).cjsExportMerged=i,n.cjsExportMerged=i}(hi(Gn(t.exports.get("export="),r)),hi(t));return hi(n)||t}}function li(t,r,n,i){var a=ui(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,294))){var o=V>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return on(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(z.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=ro(a),u=Zs(c,0);if(u&&u.length||(u=Zs(c,1)),u&&u.length){var l=zy(c,a,t),d=ln(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 _=Ts(l);return d.type=Li(d,_.members,e.emptyArray,e.emptyArray,_.stringIndexInfo,_.numberIndexInfo),d}}}}return a}function di(e){return void 0!==e.exports.get("export=")}function _i(e){return sc(gi(e))}function pi(e,t){var r=gi(t);if(r)return r.get(e)}function fi(e){return 6256&e.flags?Wo(e,"resolvedExports"):1536&e.flags?gi(e):e.exports||J}function gi(e){var t=vn(e);return t.resolvedExports||(t.resolvedExports=yi(e))}function mi(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Gn(o)!==Gn(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 yi(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=new e.Map,c=0,u=a.declarations;c<u.length;c++){var l=u[c],d=ai(l,l.moduleSpecifier),_=t(d);mi(o,_,s,l)}s.forEach((function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];Wr.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}})),mi(i,o)}return i}(t=ui(t))||J}function hi(e){var t;return e&&e.mergeId&&(t=Pr[e.mergeId])?t:e}function vi(e){return hi(e.symbol&&Go(e.symbol))}function bi(e){return hi(e.parent&&Go(e.parent))}function xi(r,n,i){var a=bi(r);if(a&&!(262144&r.flags)){var o=e.mapDefined(a.declarations,(function(e){return a&&Di(e,a)})),s=n&&function(r,n){var i,a=e.getSourceFileOfNode(n),o=P(a),s=vn(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,u=a.imports;c<u.length;c++){var l=u[c];if(!e.nodeIsSynthesized(l)){var d=ai(n,l,!0);d&&Si(d,r)&&(i=e.append(i,d))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var _=0,p=t.getSourceFiles();_<p.length;_++){var f=p[_];if(e.isExternalModule(f)){var g=vi(f);Si(g,r)&&(i=e.append(i,g))}}return s.extendedContainers=i||e.emptyArray}(r,n),c=function(t,r){var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return vi(n.parent)}(a,i);if(n&&ji(a,n,1920,!1))return e.append(e.concatenate(e.concatenate([a],o),s),c);var u=e.append(e.append(o,a),c);return e.concatenate(u,s)}var l=e.mapDefined(r.declarations,(function(t){return!e.isAmbientModule(t)&&t.parent&&Gi(t.parent)?vi(t.parent):e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression)?e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?vi(e.getSourceFileOfNode(t)):(Uh(t.parent.left.expression),bn(t.parent.left.expression).resolvedSymbol):void 0}));if(e.length(l))return e.mapDefined(l,(function(e){return Si(e,r)?e:void 0}))}function Di(e,t){var r=Wi(e),n=r&&r.exports&&r.exports.get("export=");return n&&Ti(n,t)?r:void 0}function Si(t,r){if(t===bi(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&Ti(n,r))return t;var i=fi(t),a=i.get(r.escapedName);return a&&Ti(a,r)?a:e.forEachEntry(i,(function(e){if(Ti(e,r))return e}))}function Ti(e,t){if(hi(Gn(hi(e)))===hi(Gn(hi(t))))return e}function Ei(e){return hi(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Ci(e){return!!(111551&e.flags||2097152&e.flags&&111551&Yn(e).flags&&!$n(e))}function ki(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(165===i.kind&&e.nodeIsPresent(i.body))return i}}function Ni(e){var t=new m(ce,e);return h++,t.id=h,t}function Ai(e,t,r){void 0===r&&(r=0);var n=Ni(e);return n.intrinsicName=t,n.objectFlags=r,n}function Fi(e){var t=Lu(e);return t.flags|=16,t.intrinsicName="boolean",t}function Pi(e,t){var r=Ni(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function wi(e){var t=Ni(262144);return e&&(t.symbol=e),t}function Ii(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Oi(t){var r;return t.forEach((function(e,t){!Ii(t)&&Ci(e)&&(r||(r=[])).push(e)})),r||e.emptyArray}function Mi(t,r,n,i,a,o){return t.members=r,t.properties=r===J?e.emptyArray:Oi(r),t.callSignatures=n,t.constructSignatures=i,t.stringIndexInfo=a,t.numberIndexInfo=o,t}function Li(e,t,r,n,i,a){return Mi(Pi(16,e),t,r,n,i,a)}function Ri(t,r){for(var n,i=function(t){if(t.locals&&!xn(t)&&(n=r(t.locals)))return{value:n};switch(t.kind){case 294:if(!e.isExternalOrCommonJsModule(t))break;case 253:var i=vi(t);if(n=r((null==i?void 0:i.exports)||J))return{value:n};break;case 249:case 218:case 250:var a;if((vi(t).members||J).forEach((function(t,r){788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(re)}function Bi(e){return 111551===e?111551:1920}function ji(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){switch(r[t].kind){case 162:case 164:case 166:case 167:continue;default:return!1}}return!0}return!1}(t)){var o=w(t),s=a.get(o);return s||a.set(o,s=[]),Ri(r,c)}function c(n,a){if(e.pushIfUnique(s,n)){var o=function(n,a){if(l(n.get(t.escapedName),void 0,a))return[t];return e.forEachEntry(n,(function(n){if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(a||!e.getDeclarationOfKind(n,267))){var o=d(n,Yn(n),a);if(o)return o}if(n.escapedName===t.escapedName&&n.exportSymbol&&l(hi(n.exportSymbol),void 0,a))return[t]}))||(n===re?d(ie,ie,a):void 0)}(n,a);return s.pop(),o}}function u(e,t){return!Ji(e,r,t)||!!ji(e.parent,r,Bi(t),i,a)}function l(r,i,a){return(t===(i||r)||hi(t)===hi(i||r))&&!e.some(r.declarations,Gi)&&(a||u(hi(r),n))}function d(e,t,r){if(l(e,t,r))return[e];var i=fi(t),a=i&&c(i,!0);return a&&u(e,Bi(n))?[e].concat(a):void 0}}function Ji(t,r,n){var i=!1;return Ri(r,(function(r){var a=hi(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,267)?Yn(a):a).flags&n)&&(i=!0,!0))})),i}function Ki(e,t){return 0===qi(e,t,788968,!1,!0).accessibility}function zi(e,t){return 0===qi(e,t,111551,!1,!0).accessibility}function Ui(e,t,r){return 0===qi(e,t,r,!1,!1).accessibility}function Vi(e,t,r,n){return qi(e,t,r,n,!0)}function qi(t,r,n,i,a){if(t&&r){var o=function t(r,n,i,a,o,s){if(e.length(r)){for(var c,u=!1,l=0,d=r;l<d.length;l++){var _=d[l],p=ji(_,n,a,!1);if(p){c=_;var f=Yi(p[0],o);if(f)return f}else if(s&&e.some(_.declarations,Gi)){if(o){u=!0;continue}return{accessibility:0}}var g=t(xi(_,n,a),n,i,i===_?Bi(a):a,o,s);if(g)return g}return u?{accessibility:0}:c?{accessibility:1,errorSymbolName:Qi(i,n,a),errorModuleName:c!==i?Qi(c,n,1920):void 0}:void 0}}([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,Wi);if(s)if(s!==Wi(r))return{accessibility:2,errorSymbolName:Qi(t,r,n),errorModuleName:Qi(s)};return{accessibility:1,errorSymbolName:Qi(t,r,n)}}return{accessibility:0}}function Wi(t){var r=e.findAncestor(t,Hi);return r&&vi(r)}function Hi(t){return e.isAmbientModule(t)||294===t.kind&&e.isExternalOrCommonJsModule(t)}function Gi(t){return e.isModuleWithStringLiteralName(t)||294===t.kind&&e.isExternalOrCommonJsModule(t)}function Yi(t,r){var n;if(e.every(e.filter(t.declarations,(function(e){return 78!==e.kind})),(function(t){if(!la(t)){var r=On(t);return r&&!e.hasSyntacticModifier(r,1)&&la(r.parent)?i(t,r):e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasSyntacticModifier(t.parent.parent,1)&&la(t.parent.parent.parent)?i(t,t.parent.parent):!(!e.isLateVisibilityPaintedStatement(t)||e.hasSyntacticModifier(t,1)||!la(t.parent))&&i(t,t)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(bn(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function Xi(t,r){var n;n=175===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||157===t.parent.kind?1160127:156===t.kind||198===t.kind||257===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=En(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n?{accessibility:0}:a&&Yi(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Qi(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?te.symbolToExpression:te.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=294===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,u,i),i}}function $i(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?174:173:1===i?169:168;var s=te.signatureToSignatureDeclaration(t,o,r,70222336|na(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,u,e.getTrailingSemicolonDeferringWriter(a)),a}}function Zi(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=z.noErrorTruncation||1&n,o=te.typeToTypeNode(t,r,70221824|na(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s=e.createPrinter({removeComments:!0}),c=r&&e.getSourceFileOfNode(r);s.writeNode(4,o,c,i);var u=i.getText(),l=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return l&&u&&u.length>=l?u.substr(0,l-"...".length)+"...":u}function ea(e,t){var r=ra(e.symbol)?Zi(e,e.symbol.valueDeclaration):Zi(e),n=ra(t.symbol)?Zi(t,t.symbol.valueDeclaration):Zi(t);return r===n&&(r=ta(e),n=ta(t)),[r,n]}function ta(e){return Zi(e,void 0,64)}function ra(t){return t&&t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!yd(t.valueDeclaration)}function na(e){return void 0===e&&(e=0),814775659&e}function ia(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&&te.typeToTypeNode(t.type,r,70222336|na(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function aa(e){return 8===e?"private":16===e?"protected":"public"}function oa(t){return t&&t.parent&&254===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function sa(t){return 294===t.kind||e.isAmbientModule(t)}function ca(t,r){var n=vn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,z.target)||Kg(i)?Kg(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+ua(n.symbol,r)+"]"}}function ua(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],sa)!==e.findAncestor(r.enclosingDeclaration,sa)))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=vn(t).nameType;if(a&&384&a.flags){var o=ca(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&246===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 218:case 205:case 206:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),218===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ca(t,r);return void 0!==s?s:e.symbolName(t)}function la(t){if(t){var r=bn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 320:case 327:case 321:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 195:return la(t.parent.parent);case 246:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 253:case 249:case 250:case 251:case 248:case 252:case 257:if(e.isExternalModuleAugmentation(t))return!0;var r=ma(t);return 1&e.getCombinedModifierFlags(t)||257!==t.kind&&294!==r.kind&&8388608&r.flags?la(r):xn(r);case 162:case 161:case 166:case 167:case 164:case 163:if(e.hasEffectiveModifier(t,24))return!1;case 165:case 169:case 168:case 170:case 159:case 254:case 173:case 174:case 176:case 172:case 177:case 178:case 181:case 182:case 185:case 191:return la(t.parent);case 259:case 260:case 262:return!1;case 158:case 294:case 256:return!0;case 263:default:return!1}}()),r.isVisible}return!1}function da(t,r){var n,i,a;return t.parent&&263===t.parent.kind?n=En(t,t.escapedText,2998271,void 0,t,!1):267===t.parent.kind&&(n=Vn(t.parent,2998271)),n&&((a=new e.Set).add(w(n)),function t(n){e.forEach(n,(function(n){var o=On(n)||n;if(r?bn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=En(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,w(c))&&t(c.declarations)}}))}(n.declarations)),i}function _a(e,t){var r=pa(e,t);if(r>=0){for(var n=kr.length,i=r;i<n;i++)Nr[i]=!1;return!1}return kr.push(e),Nr.push(!0),Ar.push(t),!0}function pa(e,t){for(var r=kr.length-1;r>=0;r--){if(fa(kr[r],Ar[r]))return-1;if(kr[r]===e&&Ar[r]===t)return r}return-1}function fa(t,r){switch(r){case 0:return!!vn(t).type;case 5:return!!bn(t).resolvedEnumType;case 2:return!!vn(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 ga(){return kr.pop(),Ar.pop(),Nr.pop()}function ma(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 246:case 247:case 262:case 261:case 260:case 259:return!1;default:return!0}})).parent}function ya(e,t){var r=$s(e,t);return r?ro(r):void 0}function ha(e){return e&&0!=(1&e.flags)}function va(e){var t=vi(e);return t&&vn(t).type||Na(e,!1)}function ba(t,r,n){if(131072&(t=Df(t,(function(e){return!(98304&e.flags)}))).flags)return $e;if(1048576&t.flags)return Tf(t,(function(e){return ba(e,r,n)}));var i=Lu(e.map(r,qu));if(rl(t)||nl(i)){if(131072&i.flags)return t;var a=Gt||(Gt=uu("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?Hc(a,[t,i]):Se}for(var o=e.createSymbolTable(),s=0,c=Ns(t);s<c.length;s++){var u=c[s];kd(Wu(u,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(u)||!Al(u)||o.set(u.escapedName,Fl(u,!1))}var l=nc(t,0),d=nc(t,1),_=Li(n,o,e.emptyArray,e.emptyArray,l,d);return _.objectFlags|=131072,_}function xa(e,t){var r=Da(e);return r?Uf(r,t):t}function Da(t){var r=function(e){var t=e.parent.parent;switch(t.kind){case 195:case 285:return Da(t);case 196:return Da(e.parent);case 246:return t.initializer;case 213:return t.right}}(t);if(r&&r.flowNode){var n=function(e){var t=e.parent;if(195===e.kind&&193===t.kind)return Sa(e.propertyName||e.name);if(285===e.kind||286===e.kind)return Sa(e.name);return""+t.elements.indexOf(e)}(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(r,i),t);return e.setParent(i,a),e.setParent(a,t),a.flowNode=r.flowNode,a}}}function Sa(e){var t=qu(e);return 384&t.flags?""+t.value:void 0}function Ta(t){var r,n=t.parent,i=va(n.parent);if(!i||ha(i))return i;if(W&&8388608&t.flags&&e.isParameterDeclaration(t)?i=$_(i):!W||!n.parent.initializer||65536&nf(pf(n.parent.initializer))||(i=af(i,524288)),193===n.kind)if(t.dotDotDotToken){if(2&(i=Hs(i)).flags||!Wg(i))return on(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Se;for(var a=[],o=0,s=n.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}r=ba(i,a,t.symbol)}else{var u=t.propertyName||t.name;r=xa(t,Xf(ul(i,_=qu(u),u),t.name))}else{var l=Db(65,i,Ce,n),d=n.elements.indexOf(t);if(t.dotDotDotToken)r=xf(i,B_)?Tf(i,(function(e){return Nu(e,d)})):vu(l);else if(C_(i)){var _=Ll(d),p=Lg(t)?8:0;r=xa(t,Xf(dl(i,_,t.name,p)||Se,t.name))}else r=l}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!W||32768&W_(qh(t))?r:af(r,524288):Wh(t,Lu([af(r,524288),qh(t)],2)):r}function Ea(t){var r=e.getJSDocType(t);if(r)return Kl(r)}function Ca(t){var r=e.skipParentheses(t);return 196===r.kind&&0===r.elements.length}function ka(e,t){return void 0===t&&(t=!0),W&&t?Q_(e):e}function Na(t,r){if(e.isVariableDeclaration(t)&&235===t.parent.parent.kind){var n=Yu(vm(sv(t.parent.parent.expression)));return 4456448&n.flags?Xu(n):Pe}if(e.isVariableDeclaration(t)&&236===t.parent.parent.kind)return xb(t.parent.parent)||be;if(e.isBindingPattern(t.parent))return Ta(t);var i=r&&(e.isParameter(t)&&cc(t)||dc(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken),a=qa(t);if(a)return ka(a,i);if((X||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(8388608&t.flags)){if(!(2&e.getCombinedNodeFlags(t))&&(!t.initializer||function(t){var r=e.skipParentheses(t);return 103===r.kind||78===r.kind&&qp(r)===ne}(t.initializer)))return xe;if(t.initializer&&Ca(t.initializer))return Et}if(e.isParameter(t)){var o=t.parent;if(167===o.kind&&!Uo(o)){var s=e.getDeclarationOfKind(vi(t.parent),166);if(s){var c=gc(s),u=zD(o);return u&&t===u?(e.Debug.assert(!u.type),ro(c.thisParameter)):xc(c)}}if(e.isInJSFile(t)){var l=e.getJSDocType(o);if(l&&e.isFunctionTypeNode(l)){var d=gc(l),_=o.parameters.indexOf(t);return t.dotDotDotToken?th(d,_):Zy(d,_)}}if(f="this"===t.symbol.escapedName?ug(o):lg(t))return ka(f,i)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var p=Ma(t,vi(t),e.getDeclaredExpandoInitializer(t));if(p)return p}return ka(f=Wh(t,qh(t)),i)}if(e.isPropertyDeclaration(t)&&!e.hasStaticModifier(t)&&(X||e.isInJSFile(t))){var f,g=ki(t.parent);return(f=g?wa(t.symbol,g):2&e.getEffectiveModifierFlags(t)?g_(t.symbol):void 0)&&ka(f,i)}return e.isJsxAttribute(t)?Le:e.isBindingPattern(t.name)?Ka(t.name,!1,!0):void 0}function Aa(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=vn(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!!Pa(t)&&e.every(t.declarations,(function(r){return e.isBinaryExpression(r)&&4===e.getAssignmentDeclarationKind(r)&&(199!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!La(void 0,r,t,r)}))),r.isConstructorDeclaredProperty}return!1}function Fa(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(X||e.isInJSFile(r))}function Pa(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(165===a.kind||My(a)))return a}}function wa(t,r){var n=e.factory.createPropertyAccessExpression(e.factory.createThis(),e.unescapeLeadingUnderscores(t.escapedName));e.setParent(n.expression,n),e.setParent(n,r),n.flowNode=r.returnFlowNode;var i=Ia(n,t);return!X||i!==xe&&i!==Et||on(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Qi(t),Zi(i)),xf(i,hm)?void 0:ub(i)}function Ia(t,r){var n=r&&(!Fa(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&g_(r)||Ce;return Uf(t,xe,n)}function Oa(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?Kl(a.typeExpression):Ma(t.valueDeclaration,t,i)||O_(Uh(i))}var o=!1,s=!1;if(Aa(t)&&(n=wa(t,Pa(t))),!n){for(var c=void 0,u=void 0,l=0,d=t.declarations;l<d.length;l++){var _=d[l],p=e.isBinaryExpression(_)||e.isCallExpression(_)?_:e.isAccessExpression(_)?e.isBinaryExpression(_.parent)?_.parent:_:void 0;if(p){var f=e.isAccessExpression(p)?e.getAssignmentDeclarationPropertyAccessKind(p):e.getAssignmentDeclarationKind(p);4===f&&(Ba(p)?o=!0:s=!0),e.isCallExpression(p)||(c=La(c,p,t,_)),c||(u||(u=[])).push(e.isBinaryExpression(p)||e.isCallExpression(p)?Ra(t,r,p,f):Ke)}}if(!(n=c)){if(!e.length(u))return Se;var g=o?function(t,r){return e.Debug.assert(t.length===r.length),t.filter((function(t,n){var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&Ba(a)}))}(u,t.declarations):void 0;if(s){var m=g_(t);m&&((g||(g=[])).push(m),o=!0)}n=Lu(e.some(g,(function(e){return!!(-98305&e.flags)}))?g:u,2)}}var y=dp(ka(n,s&&!o));return Df(y,(function(e){return!!(-98305&e.flags)}))===Ke?(pp(t.valueDeclaration,be),be):y}function Ma(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=vi(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&yn(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=vi(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&yn(o,c.exports);var u=Li(r,o,e.emptyArray,e.emptyArray,void 0,void 0);return u.objectFlags|=16384,u}}function La(t,r,n,i){var a=e.getEffectiveTypeAnnotationNode(r.parent);if(a){var o=dp(Kl(a));if(!t)return o;t===Se||o===Se||Dd(t,o)||db(void 0,t,i,o)}if(n.parent){var s=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(s)return ya(Kl(s),n.escapedName)}return t}function Ra(t,r,n,i){if(e.isCallExpression(n)){if(r)return ro(r);var a=Uh(n.arguments[2]),o=ya(a,"value");if(o)return o;var s=ya(a,"get");if(s){var c=ry(s);if(c)return xc(c)}var u=ya(a,"set");if(u){var l=ry(u);if(l)return sh(l)}return be}if(function(t,r){return e.isPropertyAccessExpression(t)&&107===t.expression.kind&&e.forEachChildRecursively(r,(function(e){return Hp(t,e)}))}(n.left,n.right))return be;var d=r?ro(r):O_(Uh(n.right));if(524288&d.flags&&2===i&&"export="===t.escapedName){var _=Ts(d),p=e.createSymbolTable();e.copyEntries(_.members,p),r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach((function(t,r){var n,i=p.get(r);if(i&&i!==t)if(111551&t.flags&&111551&i.flags){if(e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(on(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(on(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=ln(t.flags|i.flags,r);s.type=Lu([ro(t),ro(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),p.set(r,s)}else p.set(r,fn(t,i));else p.set(r,t)}));var f=Li(_.symbol,p,_.callSignatures,_.constructSignatures,_.stringIndexInfo,_.numberIndexInfo);return f.objectFlags|=16384&e.getObjectFlags(d),f}return k_(d)?(pp(n,Tt),Tt):d}function Ba(t){var r=e.getThisContainer(t,!1);return 165===r.kind||248===r.kind||205===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function ja(t,r,n){return t.initializer?ka(Wh(t,qh(t,e.isBindingPattern(t.name)?Ka(t.name,!0,!1):Ee))):e.isBindingPattern(t.name)?Ka(t.name,r,n):(n&&!Va(t)&&pp(t,be),r?Te:be)}function Ja(t,r,n){var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&195===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return U>=2?(i=be,yu(gu(!0),[i])):Tt;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?be:ja(t,r,n)})),u=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Lg(t))}),a.length-1)+1,l=Eu(c,e.map(a,(function(e,t){return e===s?4:t>=u?2:1})));return r&&((l=zc(l)).pattern=t,l.objectFlags|=1048576),l}function Ka(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),193===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=Oc(be,!1);else{var s=qu(t);if(jo(s)){var c=Vo(s),u=ln(4|(e.initializer?16777216:0),c);u.type=ja(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=Li(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):Ja(t,r,n)}function za(e,t){return Ua(Na(e,!0),e,t)}function Ua(t,r,n){return t?(n&&fp(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==vi(r)&&(t=je),dp(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Tt:be,n&&(Va(r)||pp(r,t)),t)}function Va(t){var r=e.getRootDeclaration(t);return Tv(159===r.kind?r.parent:r)}function qa(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Kl(r)}function Wa(t){var r=vn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=Ao(bi(t))).typeParameters?Kc(r,e.map(r.typeParameters,(function(e){return be}))):r;var r;if(t===se)return be;if(134217728&t.flags){var n=vi(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),Li(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 be;var c=Bx(s.type);return ha(c)||c===Ee?c:Se}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?dp(O_(sv(o.statements[0].expression))):$e;if(!_a(t,0))return 512&t.flags&&!(67108864&t.flags)?Za(t):to(t);if(263===o.kind)a=Ua(Uh(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=Oa(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 Za(t);a=e.isBinaryExpression(o.parent)?Oa(t):qa(o)||be}else if(e.isPropertyAssignment(o))a=qa(o)||Xh(o);else if(e.isJsxAttribute(o))a=qa(o)||Yg(o);else if(e.isShorthandPropertyAssignment(o))a=qa(o)||Yh(o.name,0);else if(e.isObjectLiteralMethod(o))a=qa(o)||Qh(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))a=za(o,!0);else if(e.isEnumDeclaration(o))a=Za(t);else if(e.isEnumMember(o))a=eo(t);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(t));a=Qa(t)}if(!ga())return 512&t.flags&&!(67108864&t.flags)?Za(t):to(t);return a}(t);r.type||(r.type=n)}return r.type}function Ha(t){if(t)return 166===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function Ga(e){var t=Ha(e);return t&&Kl(t)}function Ya(e){return vc(gc(e))}function Xa(t){var r=vn(t);return r.type||(r.type=function(t){if(!_a(t,0))return Se;var r=Qa(t);if(!ga()){if(r=be,X)on(e.getDeclarationOfKind(t,166),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,Qi(t))}return r}(t))}function Qa(t){var r=e.getDeclarationOfKind(t,166),n=e.getDeclarationOfKind(t,167);if(r&&e.isInJSFile(r)){var i=Ea(r);if(i)return i}var a=Ga(r);if(a)return a;var o=Ga(n);return o||(r&&r.body?fh(r):(n?Tv(n)||cn(X,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Qi(t)):(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),Tv(r)||cn(X,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Qi(t))),be))}function $a(t){var r=mo(xo(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function Za(t){var r=vn(t),n=r;if(!r.type){var i=t.valueDeclaration&&e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=Ly(t,vi(i));a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return be;if(r&&(213===r.kind||e.isAccessExpression(r)&&213===r.parent.kind))return Oa(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=ui(t);if(n!==t){if(!_a(t,0))return Se;var i=hi(t.exports.get("export=")),a=Oa(i,i===n?void 0:n);return ga()?a:to(t)}}var o=Pi(16,t);if(32&t.flags){var s=$a(t);return s?Uu([o,s]):o}return W&&16777216&t.flags?Q_(o):o}(t)}return r.type}function eo(e){var t=vn(e);return t.type||(t.type=ko(e))}function to(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(on(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qi(t)),Se):(X&&(159!==r.kind||r.initializer)&&on(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,Qi(t)),be)}function ro(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=vn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Lu(r.deferralConstituents):Uu(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=vn(e);if(!t.type){if(!_a(e,0))return t.type=Se;var r=_d(ro(t.target),t.mapper);ga()||(r=to(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){if(!_a(t,0))return t.mappedType.containsError=!0,Se;var r=_d(ms(t.mappedType.target||t.mappedType),t.mapper),n=W&&16777216&t.flags&&!Fh(r,49152)?Q_(r):524288&t.checkFlags?af(r,524288):r;ga()||(on(d,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Qi(t),Zi(t.mappedType)),n=Se),t.type=n,t.mapper=void 0}return t.type}(t):8192&r?function(e){return Np(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?Wa(t):9136&t.flags?Za(t):8&t.flags?eo(t):98304&t.flags?Xa(t):2097152&t.flags?function(e){var t=vn(e);if(!t.type){var r=Yn(e);t.type=111551&r.flags?ro(r):Se}return t.type}(t):Se}function no(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function io(t){return 4&e.getObjectFlags(t)?t.target:t}function ao(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=io(n);return i===r||e.some(ho(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function oo(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,No(vi(a)))}return t}function so(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=vi(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(function(e){return t===e}))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 229:case 249:case 218:case 250:case 168:case 169:case 163:case 173:case 174:case 304:case 248:case 164:case 205:case 206:case 251:case 326:case 327:case 321:case 320:case 189:case 183:var a=so(t,r);if(189===t.kind)return e.append(a,No(vi(t.typeParameter)));if(183===t.kind)return e.concatenate(a,hl(t));if(229===t.kind&&!e.isInJSFile(t))break;var o=oo(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(249===t.kind||218===t.kind||250===t.kind||My(t))&&xo(vi(t)).thisType;return s?e.append(o,s):o;case 322:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration)}}}function co(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,250);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),so(r)}function uo(t){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(250===a.kind||249===a.kind||218===a.kind||My(a)||e.isTypeAlias(a)){var o=a;r=oo(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}function lo(e){var t=ec(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&B(r)&&E_(Gy(r.parameters[0]))===be}return!1}function _o(e){if(ec(e,1).length>0)return!0;if(8650752&e.flags){var t=Ms(e);return!!t&&lo(t)}return!1}function po(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function fo(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(ec(t,1),(function(t){return(a||i>=pc(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function go(t,r,n){var i=fo(t,r,n),a=e.map(r,Kl);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?Ec(t,a,e.isInJSFile(n)):t}))}function mo(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=po(t);if(!i)return t.resolvedBaseConstructorType=Ce;if(!_a(t,1))return Se;var a=sv(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),sv(n.expression)),2621440&a.flags&&Ts(a),!ga())return on(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Qi(t.symbol)),t.resolvedBaseConstructorType=Se;if(!(1&a.flags||a===Fe||_o(a))){var o=on(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Zi(a));if(262144&a.flags){var s=Rc(a),c=Ee;if(s){var u=ec(s,1);u[0]&&(c=xc(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,Qi(a.symbol),Zi(c)))}return t.resolvedBaseConstructorType=Se}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function yo(t,r){on(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Zi(r,void 0,2))}function ho(t){if(!t.baseTypesResolved){if(_a(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[vo(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=zs(mo(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=po(t),a=r.symbol?Ao(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=Vc(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Wc(i,r.symbol);else if(1&r.flags)n=r;else{var o=go(r,i.typeArguments,i);if(!o.length)return on(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=xc(o[0])}if(n===Se)return t.resolvedBaseTypes=e.emptyArray;var s=Hs(n);if(!bo(s)){var c=Qs(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,Zi(s));return Wr.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||ao(s,t))return on(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Zi(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(250===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=Hs(Kl(s));c!==Se&&(bo(c)?t===c||ao(c,t)?yo(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):on(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(t)):e.Debug.fail("type must be class or interface"),!ga()))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];249!==i.kind&&250!==i.kind||yo(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function vo(t){return vu(Lu(e.sameMap(t.typeParameters,(function(e,r){return 8&t.elementFlags[r]?ul(e,we):e}))||e.emptyArray),t.readonly)}function bo(t){if(262144&t.flags){var r=Ms(t);if(r)return bo(r)}return!!(67633153&t.flags&&!Ss(t)||2097152&t.flags&&e.every(t.types,bo))}function xo(t){var r=vn(t),n=r;if(!r.declaredType){var i=32&t.flags?1:2,a=Ly(t,function(t){var r=t&&t.parent&&(e.isFunctionDeclaration(t)&&vi(t)||e.isBinaryExpression(t.parent)&&vi(t.parent.left)||e.isVariableDeclaration(t.parent)&&vi(t.parent)),n=r&&r.exports&&r.exports.get("prototype"),i=n&&n.valueDeclaration&&function(t){if(!t.parent)return!1;var r=t.parent;for(;r&&198===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&62===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}(n.valueDeclaration);return i?vi(i):void 0}(t.valueDeclaration));a&&(t=r=a);var o=n.declaredType=r.declaredType=Pi(i,t),s=co(t),c=uo(t);(s||c||1===i||!function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(250===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var u=ni(c.expression,788968,!0);if(!u||!(64&u.flags)||xo(u).thisType)return!1}}}}return!0}(t))&&(o.objectFlags|=4,o.typeParameters=e.concatenate(s,c),o.outerTypeParameters=s,o.localTypeParameters=c,o.instantiations=new e.Map,o.instantiations.set(jc(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=wi(t),o.thisType.isThisType=!0,o.thisType.constraint=o)}return r.declaredType}function Do(t){var r=vn(t);if(!r.declaredType){if(!_a(t,2))return Se;var n=e.Debug.checkDefined(e.find(t.declarations,e.isTypeAlias),"Type alias symbol with no valid declaration found"),i=e.isJSDocTypeAlias(n)?n.typeExpression:n.type,a=i?Kl(i):Se;if(ga()){var o=uo(t);o&&(r.typeParameters=o,r.instantiations=new e.Map,r.instantiations.set(jc(o),a))}else a=Se,on(e.isNamedDeclaration(n)?n.name:n||n,e.Diagnostics.Type_alias_0_circularly_references_itself,Qi(t));r.declaredType=a}return r.declaredType}function So(t){var r=t.initializer;if(!r)return!(8388608&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 211:return 40===r.operator&&8===r.operand.kind;case 78:return e.nodeIsMissing(r)||!!vi(t.parent).exports.get(r.escapedText);case 213:return function t(r){return!!e.isStringLiteralLike(r)||213===r.kind&&t(r.left)&&t(r.right)}(r);default:return!1}}function To(t){var r=vn(t);if(void 0!==r.enumKind)return r.enumKind;for(var n=!1,i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(252===o.kind)for(var s=0,c=o.members;s<c.length;s++){var u=c[s];if(u.initializer&&e.isStringLiteralLike(u.initializer))return r.enumKind=1;So(u)||(n=!0)}}return r.enumKind=n?0:1}function Eo(e){return 1024&e.flags&&!(1048576&e.flags)?Ao(bi(e.symbol)):e}function Co(e){var t=vn(e);if(t.declaredType)return t.declaredType;if(1===To(e)){b++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(252===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=uD(c),l=Il(Ll(void 0!==u?u:0,b,vi(c)));vn(vi(c)).declaredType=l,r.push(Ol(l))}}if(r.length){var d=Lu(r,1,e,void 0);return 1048576&d.flags&&(d.flags|=1024,d.symbol=e),t.declaredType=d}}var _=Ni(32);return _.symbol=e,t.declaredType=_}function ko(e){var t=vn(e);if(!t.declaredType){var r=Co(bi(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function No(e){var t=vn(e);return t.declaredType||(t.declaredType=wi(e))}function Ao(e){return Fo(e)||Se}function Fo(e){return 96&e.flags?xo(e):524288&e.flags?Do(e):262144&e.flags?No(e):384&e.flags?Co(e):8&e.flags?ko(e):2097152&e.flags?function(e){var t=vn(e);return t.declaredType||(t.declaredType=Ao(Yn(e)))}(e):void 0}function Po(e){switch(e.kind){case 128:case 151:case 146:case 143:case 154:case 131:case 147:case 144:case 113:case 149:case 140:case 190:return!0;case 177:return Po(e.elementType);case 172:return!e.typeArguments||e.typeArguments.every(Po)}return!1}function wo(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||Po(r)}function Io(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?Po(r):!e.hasInitializer(t)}function Oo(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 162:case 161:return Io(r);case 164:case 163:case 165:case 166:case 167:return function(t){var r=e.getEffectiveReturnTypeNode(t),n=e.getEffectiveTypeParameterDeclarations(t);return(165===t.kind||!!r&&Po(r))&&t.parameters.every(Io)&&n.every(wo)}(r)}}return!1}function Mo(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&Oo(s)?s:id(s,r))}return i}function Lo(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||Ro(i)||e.set(i.escapedName,i)}}function Ro(t){return!!t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration)&&e.hasSyntacticModifier(t.valueDeclaration,32)}function Bo(t){if(!t.declaredProperties){var r=t.symbol,n=Ho(r);t.declaredProperties=Oi(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredCallSignatures=hc(n.get("__call")),t.declaredConstructSignatures=hc(n.get("__new")),t.declaredStringIndexInfo=Mc(r,0),t.declaredNumberIndexInfo=Mc(r,1)}return t}function jo(e){return!!(8576&e.flags)}function Jo(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&jo(e.isComputedPropertyName(t)?zg(t):Uh(r))}function Ko(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function zo(t){var r=e.getNameOfDeclaration(t);return!!r&&Jo(r)}function Uo(t){return e.hasDynamicName(t)&&!zo(t)}function Vo(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function qo(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=bn(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?Uh(o.argumentExpression):zg(o);if(jo(s)){var c=Vo(s),u=i.symbol.flags,l=n.get(c);l||n.set(c,l=ln(0,c,4096));var d=r&&r.get(c);if(l.flags&dn(u)||d){var _=d?e.concatenate(d.declarations,l.declarations):l.declarations,p=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(_,(function(t){return on(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,p)})),on(o||i,e.Diagnostics.Duplicate_property_0,p),l=ln(0,c,4096)}return l.nameType=s,function(t,r,n){e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,vn(r.symbol).lateSymbol=t,t.declarations?t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))}(l,i,u),l.parent?e.Debug.assert(l.parent===t,"Existing symbol parent should match new one"):l.parent=t,a.resolvedSymbol=l}}return a.resolvedSymbol}function Wo(t,r){var n=vn(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?yi(t):t.exports:t.members;n[r]=a||J;for(var o=e.createSymbolTable(),s=0,c=t.declarations;s<c.length;s++){var u=c[s],l=e.getMembersOfDeclaration(u);if(l)for(var d=0,_=l;d<_.length;d++){var p=_[d];i===e.hasStaticModifier(p)&&zo(p)&&qo(t,a,o,p)}}var f=t.assignmentDeclarationMembers;if(f)for(var g=0,m=e.arrayFrom(f.values());g<m.length;g++){p=m[g];var y=e.getAssignmentDeclarationKind(p);i===!(3===y||4===y||9===y||6===y)&&zo(p)&&qo(t,a,o,p)}n[r]=function(t,r){if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return yn(n,t),yn(n,r),n}(a,o)||J}return n[r]}function Ho(e){return 6256&e.flags?Wo(e,"resolvedMembers"):e.members||J}function Go(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=vn(t);if(!r.lateSymbol&&e.some(t.declarations,zo)){var n=hi(t.parent);e.some(t.declarations,e.hasStaticModifier)?fi(n):Ho(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function Yo(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=Vc(t);if(e.length(i.typeParameters)===e.length(a)){var o=Kc(i,e.concatenate(a,[r||i.thisType]));return n?zs(o):o}}else if(2097152&t.flags)return Uu(e.map(t.types,(function(e){return Yo(e,r,n)})));return n?zs(t):t}function Xo(t,r,n,i){var a,o,s,c,u,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?Ho(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,l=r.declaredNumberIndexInfo):(a=Wl(n,i),o=Mo(r.declaredProperties,a,1===n.length),s=ql(r.declaredCallSignatures,a),c=ql(r.declaredConstructSignatures,a),u=md(r.declaredStringIndexInfo,a),l=md(r.declaredNumberIndexInfo,a));var d=ho(r);if(d.length){r.symbol&&o===Ho(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Mi(t,o,s,c,u,l);for(var _=e.lastOrUndefined(i),p=0,f=d;p<f.length;p++){var g=f[p],m=_?Yo(_d(g,a),_):g;Lo(o,Ns(m)),s=e.concatenate(s,ec(m,0)),c=e.concatenate(c,ec(m,1)),u||(u=m===be?Oc(be,!1):nc(m,0)),l=l||nc(m,1)}}Mi(t,o,s,c,u,l)}function Qo(e,t,r,n,i,a,o,s){var c=new y(ce,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.target=void 0,c.mapper=void 0,c.unionSignatures=void 0,c}function $o(e){var t=Qo(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,19&e.flags);return t.target=e.target,t.mapper=e.mapper,t.unionSignatures=e.unionSignatures,t}function Zo(e,t){var r=$o(e);return r.unionSignatures=t,r.target=void 0,r.mapper=void 0,r}function es(t,r){if((12&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=4===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=function(t,r){e.Debug.assert(4===r||8===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=$o(t);return n.flags|=r,n}(t,r))}function ts(t,r){if(B(t)){var n=t.parameters.length-1,i=ro(t.parameters[n]);if(B_(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,B_))return e.map(i.types,(function(e){return a(e,n)}))}return[t.parameters];function a(r,n){var i=Vc(r),a=r.target.labeledElementDeclarations,o=e.map(i,(function(e,i){var o=!!a&&Yy(a[i])||Xy(t,n+i,r),s=r.target.elementFlags[i],c=ln(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?vu(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function rs(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(b_(s,t,r,n,i,r?Ed:Sd))return s}}function ns(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!rs(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:rs(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function is(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!rs(r,s,!1,!1,!0)){var c=ns(t,s,i);if(c){var u=s;if(c.length>1){var l=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)l=ap(d,Uu(e.mapDefined(c,(function(e){return e.thisParameter&&ro(e.thisParameter)}))));(u=Zo(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=rh(e),n=rh(t),i=r>=n?e:t,a=i===e?t:e,o=i===e?r:n,s=ih(e)||ih(t),c=s&&!ih(i),u=new Array(o+(c?1:0)),l=0;l<o;l++){var d=Uu([eh(i,l),eh(a,l)||Ee]),_=s&&!c&&l===o-1,p=l>=nh(i)&&l>=nh(a),f=l>=r?void 0:Xy(e,l),g=l>=n?void 0:Xy(t,l),m=ln(1|(p&&!_?16777216:0),(f===g?f:f?g?void 0:f:g)||"arg"+l);m.type=_?vu(d):d,u[l]=m}if(c){var y=ln(1,"args");y.type=vu(Zy(a,o)),u[o]=y}return u}(t,r),a=function(e,t){if(!e||!t)return e||t;var r=Uu([ro(e),ro(t)]);return ap(e,r)}(t.thisParameter,r.thisParameter),o=Math.max(t.minArgumentCount,r.minArgumentCount),s=Qo(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;g<m.length;g++){if("break"===f(m[g]))break}r=p}return r||e.emptyArray}function as(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=nc(zs(a[i]),t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return Oc(Lu(r,2),n)}function os(e,t){return e?t?Uu([e,t]):e:t}function ss(e,t){return e?t?Oc(Uu([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function cs(e,t){return e&&t&&Oc(Lu([e.type,t.type]),e.isReadonly||t.isReadonly)}function us(t){var r=e.countWhere(t,(function(e){return ec(e,1).length>0})),n=e.map(t,lo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function ls(t){for(var r,n,i,a,o=t.types,s=us(o),c=e.countWhere(s,(function(e){return e})),u=function(u){var l=t.types[u];if(!s[u]){var d=ec(l,1);d.length&&c>0&&(d=e.map(d,(function(e){var t=$o(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(xc(ec(t[a],1)[0]));return Uu(i)}(xc(e),o,s,u),t}))),n=ds(n,d)}r=ds(r,ec(l,0)),i=ss(i,nc(l,0)),a=ss(a,nc(l,1))},l=0;l<o.length;l++)u(l);Mi(t,J,r||e.emptyArray,n||e.emptyArray,i,a)}function ds(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!b_(e,r,!1,!1,!1,Sd)}))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++){n(a[i])}return t}function _s(t){var r=hi(t.symbol);if(t.target)Mi(t,J,e.emptyArray,e.emptyArray,void 0,void 0),Mi(t,a=Mo(Es(t.target),t.mapper,!1),n=ql(ec(t.target,0),t.mapper),i=ql(ec(t.target,1),t.mapper),o=md(nc(t.target,0),t.mapper),u=md(nc(t.target,1),t.mapper));else if(2048&r.flags){Mi(t,J,e.emptyArray,e.emptyArray,void 0,void 0);var n=hc((a=Ho(r)).get("__call")),i=hc(a.get("__new"));Mi(t,a,n,i,o=Mc(r,0),u=Mc(r,1))}else{var a=J,o=void 0;if(r.exports&&(a=fi(r),r===ie)){var s=new e.Map;a.forEach((function(e){418&e.flags||s.set(e.escapedName,e)})),a=s}if(Mi(t,a,e.emptyArray,e.emptyArray,void 0,void 0),32&r.flags){var c=mo(xo(r));11272192&c.flags?Lo(a=e.createSymbolTable(Oi(a)),Ns(c)):c===be&&(o=Oc(be,!1))}var u=384&r.flags&&(32&Ao(r).flags||e.some(t.properties,(function(e){return!!(296&ro(e).flags)})))?cr:void 0;if(Mi(t,a,e.emptyArray,e.emptyArray,o,u),8208&r.flags&&(t.callSignatures=hc(r)),32&r.flags){var l=xo(r);i=r.members?hc(r.members.get("__constructor")):e.emptyArray;16&r.flags&&(i=e.addRange(i.slice(),e.mapDefined(t.callSignatures,(function(e){return My(e.declaration)?Qo(e.declaration,e.typeParameters,e.thisParameter,e.parameters,l,void 0,e.minArgumentCount,19&e.flags):void 0})))),i.length||(i=function(t){var r=ec(mo(t),1);if(0===r.length)return[Qo(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,0)];for(var n=po(t),i=e.isInJSFile(n),a=au(n),o=e.length(a),s=[],c=0,u=r;c<u.length;c++){var l=u[c],d=pc(l.typeParameters),_=e.length(l.typeParameters);if(i||o>=d&&o<=_){var p=_?kc(l,fc(a,l.typeParameters,d,i)):$o(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(l)),t.constructSignatures=i}}}function ps(t){if(131069&t.flags)return t;if(4194304&t.flags){var r=zs(t.type);return j_(r)?Au(r):Yu(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=ps(n);if(i!==n)return dd(t,ed(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?Lu(e.sameMap(t.types,ps)):2097152&t.flags?Uu(e.sameMap(t.types,ps)):Ke}function fs(e){return e.typeParameter||(e.typeParameter=No(vi(e.declaration.typeParameter)))}function gs(e){return e.constraintType||(e.constraintType=Fs(fs(e))||Se)}function ms(e){return e.templateType||(e.templateType=e.declaration.type?_d(ka(Kl(e.declaration.type),!!(4&bs(e))),e.mapper):Se)}function ys(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function hs(e){var t=ys(e);return 187===t.kind&&137===t.operator}function vs(e){if(!e.modifiersType)if(hs(e))e.modifiersType=_d(Kl(ys(e).type),e.mapper);else{var t=gs(pl(e.declaration)),r=t&&262144&t.flags?Fs(t):t;e.modifiersType=r&&4194304&r.flags?_d(r.type,e.mapper):Ee}return e.modifiersType}function bs(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function xs(e){var t=bs(e);return 8&t?-1:4&t?1:0}function Ds(e){var t=xs(e),r=vs(e);return t||(Ss(r)?xs(r):0)}function Ss(t){return!!(32&e.getObjectFlags(t))&&nl(gs(t))}function Ts(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=Bo(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=Vc(t);Xo(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))}(t):3&t.objectFlags?function(t){Xo(t,Bo(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=nc(t.source,0),n=bs(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&Oc(Np(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=Ns(t.source);c<u.length;c++){var l=u[c],d=8192|(i&&Eh(l)?8:0),_=ln(4|l.flags&a,l.escapedName,d);_.declarations=l.declarations,_.nameType=vn(l).nameType,_.propertyType=ro(l),_.mappedType=t.mappedType,_.constraintType=t.constraintType,s.set(l.escapedName,_)}Mi(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?_s(t):32&t.objectFlags&&function(t){var r,n,i=e.createSymbolTable();Mi(t,J,e.emptyArray,e.emptyArray,void 0,void 0);var a=fs(t),o=gs(t),s=ms(t.target||t),c=zs(vs(t)),u=bs(t),l=$?128:8576;if(hs(t)){for(var d=0,_=Ns(c);d<_.length;d++)p(Wu(_[d],l));(1&c.flags||nc(c,0))&&p(Pe),!$&&nc(c,1)&&p(we)}else bf(ps(o),p);function p(e){var o=td(t.mapper,a,e);if(jo(e)){var l=Vo(e),d=i.get(l);if(d)d.nameType=Lu([d.nameType,e]),d.mapper=td(t.mapper,a,d.nameType);else{var _=$s(c,l),p=!!(4&u||!(8&u)&&_&&16777216&_.flags),f=ln(4|(p?16777216:0),l,262144|(1&u||!(2&u)&&_&&Eh(_)?8:0)|(W&&!p&&_&&16777216&_.flags?524288:0));f.mappedType=t,_&&(f.syntheticOrigin=_,f.declarations=_.declarations),f.nameType=e,f.mapper=o,i.set(l,f)}}else if(45&e.flags){var g=_d(s,o);5&e.flags?r=Oc(g,!!(1&u)):n=Oc(n?Lu([n.type,g]):g,!!(1&u))}}Mi(t,i,e.emptyArray,e.emptyArray,r,n)}(t):1048576&t.flags?function(t){var r=is(e.map(t.types,(function(e){return e===ft?[ar]:ec(e,0)}))),n=is(e.map(t.types,(function(e){return ec(e,1)}))),i=as(t.types,0),a=as(t.types,1);Mi(t,J,r,n,i,a)}(t):2097152&t.flags&&ls(t)),t}function Es(t){return 524288&t.flags?Ts(t).properties:e.emptyArray}function Cs(e,t){if(524288&e.flags){var r=Ts(e).members.get(t);if(r&&Ci(r))return r}}function ks(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=Ns(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var u=Ws(t,c.escapedName);u&&r.set(c.escapedName,u)}}if(1048576&t.flags&&!nc(a,0)&&!nc(a,1))break}t.resolvedProperties=Oi(r)}return t.resolvedProperties}function Ns(e){return 3145728&(e=Us(e)).flags?ks(e):Es(e)}function As(e){return 262144&e.flags?Fs(e):8388608&e.flags?function(e){return Rs(e)?function(e){var t=Ps(e.indexType);if(t&&t!==e.indexType){var r=dl(e.objectType,t);if(r)return r}var n=Ps(e.objectType);if(n&&n!==e.objectType)return dl(n,e.indexType);return}(e):void 0}(e):16777216&e.flags?function(e){return Rs(e)?Os(e):void 0}(e):Ms(e)}function Fs(e){return Rs(e)?Rc(e):void 0}function Ps(e){var t=al(e,!1);return t!==e?t:As(e)}function ws(e){if(!e.resolvedDefaultConstraint){var t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?_d(e.root.trueType,e.combinedMapper):ml(e))}(e),r=yl(e);e.resolvedDefaultConstraint=ha(t)?r:ha(r)?t:Lu([t,r])}return e.resolvedDefaultConstraint}function Is(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=al(e.checkType,!1),r=t===e.checkType?As(t):t;if(r&&r!==e.checkType){var n=dd(e,ed(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function Os(e){return Is(e)||ws(e)}function Ms(e){if(62128128&e.flags){var t=Bs(e);return t!==it&&t!==at?t:void 0}return 4194304&e.flags?Ge:void 0}function Ls(e){return Ms(e)||e}function Rs(e){return Bs(e)!==at}function Bs(t){var r=!1;return t.resolvedBaseConstraint||(t.resolvedBaseConstraint=Yo(n(t),t));function n(t){if(!t.immediateBaseConstraint){if(!_a(t,4))return at;if(C>=50)return on(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),r=!0,t.immediateBaseConstraint=it;C++;var n=function(e){if(262144&e.flags){var t=Rc(e);return e.isThisType||!t?t:i(t)}if(3145728&e.flags){for(var r=e.types,n=[],a=0,o=r;a<o.length;a++){var s=i(o[a]);s&&n.push(s)}return 1048576&e.flags&&n.length===r.length?Lu(n):2097152&e.flags&&n.length?Uu(n):void 0}if(4194304&e.flags)return Ge;if(8388608&e.flags){var c=i(e.objectType),u=i(e.indexType),l=c&&u&&dl(c,u);return l&&i(l)}if(16777216&e.flags){t=Os(e);C++;var d=t&&i(t);return C--,d}if(33554432&e.flags)return i(e.substitute);return e}(al(t,!1));if(C--,!ga()){if(262144&t.flags){var a=Lc(t);if(a){var o=on(a,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Zi(t));!d||e.isNodeDescendantOf(a,d)||e.isNodeDescendantOf(d,a)||e.addRelatedInfo(o,e.createDiagnosticForNode(d,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=at}r&&(n=at),t.immediateBaseConstraint=n||it}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==it&&t!==at?t:void 0}}function js(t){if(t.default)t.default===ot&&(t.default=at);else if(t.target){var r=js(t.target);t.default=r?_d(r,t.mapper):it}else{t.default=ot;var n=t.symbol&&e.forEach(t.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default})),i=n?Kl(n):it;t.default===ot&&(t.default=i)}return t.default}function Js(e){var t=js(e);return t!==it&&t!==at?t:void 0}function Ks(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=od(e);if(t){var r=Fs(t);if(r&&(D_(r)||B_(r)))return _d(e,ed(t,r,e.mapper))}return e}(e))}function zs(t){var r,n=63176704&t.flags?Ms(t)||Ee:t;return 32&e.getObjectFlags(n)?Ks(n):2097152&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Yo(e,e,!0))}(n):132&n.flags?vt:296&n.flags?bt:2112&n.flags?(r=U>=7,Yt||(Yt=lu("BigInt",0,r))||$e):528&n.flags?xt:12288&n.flags?_u(U>=2):67108864&n.flags?$e:4194304&n.flags?Ge:2&n.flags&&!W?$e:n}function Us(e){return Hs(zs(Hs(e)))}function Vs(t,r){for(var n,i,a,o=1048576&t.flags,s=o?0:16777216,c=4,u=0,l=0,d=t.types;l<d.length;l++){if(!((T=zs(d[l]))===Se||131072&T.flags)){var _=(S=$s(T,r))?e.getDeclarationModifierFlagsFromSymbol(S):0;if(S){if(o?s|=16777216&S.flags:s&=S.flags,n){if(S!==n){i||(i=new e.Map).set(w(n),n);var p=w(S);i.has(p)||i.set(p,S)}}else n=S;u|=(Eh(S)?8:0)|(24&_?0:256)|(16&_?512:0)|(8&_?1024:0)|(32&_?2048:0),fm(S)||(c=2)}else if(o){var f=!Ko(r)&&(Kg(r)&&nc(T,1)||nc(T,0));f?(u|=32|(f.isReadonly?8:0),a=e.append(a,B_(T)?K_(T)||Ce:f.type)):Rp(T)?(u|=32,a=e.append(a,Ce)):u|=16}}}if(n&&!(o&&(i||48&u)&&1536&u)){if(!(i||16&u||a))return n;for(var g,m,y,h,v=[],b=!1,x=0,D=i?e.arrayFrom(i.values()):[n];x<D.length;x++){var S=D[x];h?S.valueDeclaration&&S.valueDeclaration!==h&&(b=!0):h=S.valueDeclaration,g=e.addRange(g,S.declarations);var T=ro(S);m?T!==m&&(u|=64):(m=T,y=vn(S).nameType),w_(T)&&(u|=128),131072&T.flags&&(u|=131072),v.push(T)}e.addRange(v,a);var E=ln(4|s,r,c|u);return E.containingType=t,!b&&h&&(E.valueDeclaration=h,h.symbol.parent&&(E.parent=h.symbol.parent)),E.declarations=g,E.nameType=y,v.length>2?(E.checkFlags|=65536,E.deferralParent=t,E.deferralConstituents=v):E.type=o?Lu(v):Uu(v),E}}function qs(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=Vs(t,r))&&n.set(r,i),i}function Ws(t,r){var n=qs(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function Hs(t){return 1048576&t.flags&&268435456&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,Hs);if(r===t.types)return t;var n=Lu(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(268435456&t.objectFlags||(t.objectFlags|=268435456|(e.some(ks(t),Gs)?536870912:0)),536870912&t.objectFlags?Ke:t):t}function Gs(e){return Ys(e)||Xs(e)}function Ys(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&ro(t).flags))}function Xs(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Qs(t,r){if(536870912&e.getObjectFlags(r)){var n=e.find(ks(r),Ys);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Zi(r,void 0,536870912),Qi(n));var i=e.find(ks(r),Xs);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,Zi(r,void 0,536870912),Qi(i))}return t}function $s(e,t){if(524288&(e=Us(e)).flags){var r=Ts(e),n=r.members.get(t);if(n&&Ci(n))return n;var i=r===nt?ft:r.callSignatures.length?gt:r.constructSignatures.length?mt:void 0;if(i){var a=Cs(i,t);if(a)return a}return Cs(pt,t)}if(3145728&e.flags)return Ws(e,t)}function Zs(t,r){if(3670016&t.flags){var n=Ts(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function ec(e,t){return Zs(Us(e),t)}function tc(e,t){if(3670016&e.flags){var r=Ts(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function rc(e,t){var r=tc(e,t);return r&&r.type}function nc(e,t){return tc(Us(e),t)}function ic(e,t){return rc(Us(e),t)}function ac(t,r){if(ip(t)){for(var n=[],i=0,a=Ns(t);i<a.length;i++){var o=a[i];(0===r||Kg(o.escapedName))&&n.push(ro(o))}if(0===r&&e.append(n,ic(t,1)),n.length)return Lu(n)}}function oc(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,No(a.symbol))}return r}function sc(e){var t=[];return e.forEach((function(e,r){Ii(r)||t.push(e)})),t}function cc(t){return e.isInJSFile(t)&&(t.type&&303===t.type.kind||e.getJSDocParameterTags(t).some((function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&303===r.type.kind})))}function uc(t,r){if(!e.isExternalModuleNameRelative(t)){var n=Dn(re,'"'+t+'"',512);return n&&r?hi(n):n}}function lc(t){if(e.hasQuestionToken(t)||dc(t)||cc(t))return!0;if(t.initializer){var r=gc(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=nh(r,!0)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function dc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&303===n.type.kind}function _c(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function pc(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default}))||(n=i+1);return n}function fc(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=Se;var u=zp(i);for(c=o;c<a;c++){var l=Js(r[c]);i&&l&&(Dd(l,Ee)||Dd(l,$e))&&(l=be),s[c]=l?_d(l,Wl(r,s)):u}return s.length=r.length,s}return t&&t.slice()}function gc(t){var r,n=bn(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,u=e.getImmediatelyInvokedFunctionExpression(t),l=e.isJSDocConstructSignature(t);!u&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=16);for(var d=l?1:0;d<t.parameters.length;d++){var _=t.parameters[d],p=_.symbol,f=e.isJSDocParameterTag(_)?_.typeExpression&&_.typeExpression.type:_.type;if(p&&4&p.flags&&!e.isBindingPattern(_.name))p=En(_,p.escapedName,111551,void 0,void 0,!1);0===d&&"this"===p.escapedName?(c=!0,s=_.symbol):i.push(p),f&&190===f.kind&&(a|=2),dc(_)||_.initializer||_.questionToken||_.dotDotDotToken||u&&i.length>u.arguments.length&&!f||cc(_)||(o=i.length)}if(!(166!==t.kind&&167!==t.kind||Uo(t)||c&&s)){var g=166===t.kind?167:166,m=e.getDeclarationOfKind(vi(t),g);m&&(s=(r=zD(m))&&r.symbol)}var y=165===t.kind?xo(hi(t.parent.symbol)):void 0,h=y?y.localTypeParameters:oc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!yc(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=ln(3,"args",32768);o.type=a?vu(Kl(a.type)):Tt,a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),n.resolvedSignature=Qo(t,h,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function mc(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t),n=r&&r.typeExpression&&ry(Kl(r.typeExpression));return n&&Nc(n)}}function yc(t){var r=bn(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 162:case 164:case 166:case 167:return 157===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function hc(t){if(!t)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(gc(i))}}return r}function vc(e){if(e.thisParameter)return ro(e.thisParameter)}function bc(t){if(!t.resolvedTypePredicate){if(t.target){var r=bc(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,_c(o.kind,o.parameterName,o.parameterIndex,_d(o.type,s))):nr}else if(t.unionSignatures)t.resolvedTypePredicate=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=bc(i[n]);if(a&&2!==a.kind&&3!==a.kind){if(t){if(!Ru(t,a))return}else t=a;r.push(a.type)}}if(!t)return;var o=Lu(r);return _c(t.kind,t.parameterName,t.parameterIndex,o)}(t.unionSignatures)||nr;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=mc(t.declaration);a&&t!==a&&(i=bc(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(t,r){var n=t.parameterName,i=t.type&&Kl(t.type);return 186===n.kind?_c(t.assertsModifier?2:0,void 0,void 0,i):_c(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(function(e){return e.escapedName===n.escapedText})),i)}(n,t):i||nr}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===nr?void 0:t.resolvedTypePredicate}function xc(t){if(!t.resolvedReturnType){if(!_a(t,3))return Se;var r=t.target?_d(xc(t.target),t.mapper):t.unionSignatures?Lu(e.map(t.unionSignatures,xc),2):Dc(t.declaration)||(e.nodeIsMissing(t.declaration.body)?be:fh(t.declaration));if(4&t.flags?r=Z_(r):8&t.flags&&(r=Q_(r)),!ga()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)on(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(X){var i=t.declaration,a=e.getNameOfDeclaration(i);a?on(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):on(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=be}t.resolvedReturnType=r}return t.resolvedReturnType}function Dc(t){if(165===t.kind)return xo(hi(t.parent.symbol));if(e.isJSDocConstructSignature(t))return Kl(t.parameters[0].type);var r=e.getEffectiveReturnTypeNode(t);if(r)return Kl(r);if(166===t.kind&&!Uo(t)){var n=e.isInJSFile(t)&&Ea(t);if(n)return n;var i=Ga(e.getDeclarationOfKind(vi(t),167));if(i)return i}return function(e){var t=mc(e);return t&&xc(t)}(t)}function Sc(e){return!e.resolvedReturnType&&pa(e,3)>=0}function Tc(e){if(B(e)){var t=ro(e.parameters[e.parameters.length-1]),r=B_(t)?K_(t):t;return r&&ic(r,1)}}function Ec(e,t,r,n){var i=Cc(e,fc(t,e.typeParameters,pc(e.typeParameters),r));if(n){var a=ny(xc(i));if(a){var o=$o(a);o.typeParameters=n;var s=$o(i);return s.resolvedReturnType=Pc(o),s}}return i}function Cc(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=jc(r),a=n.get(i);return a||n.set(i,a=kc(t,r)),a}function kc(e,t){return nd(e,function(e,t){return Wl(e.typeParameters,t)}(e,t),!0)}function Nc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return nd(e,Ql(e.typeParameters),!0)}(e)):e}function Ac(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return Ec(t,e.map(t.typeParameters,(function(e){return e.target&&!Fs(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function Fc(t){var r=t.typeParameters;if(r){var n=Ql(r);return nd(t,Wl(r,e.map(r,(function(e){return _d(Ms(e),n)||Ee}))),!0)}return t}function Pc(t){if(!t.isolatedSignatureType){var r=t.declaration?t.declaration.kind:0,n=165===r||169===r||174===r,i=Pi(16);i.members=J,i.properties=e.emptyArray,i.callSignatures=n?e.emptyArray:[t],i.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=i}return t.isolatedSignatureType}function wc(e){return e.members.get("__index")}function Ic(t,r){var n=1===r?143:146,i=wc(t);if(i)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.cast(s,e.isIndexSignatureDeclaration);if(1===c.parameters.length){var u=c.parameters[0];if(u.type&&u.type.kind===n)return c}}}function Oc(e,t,r){return{type:e,isReadonly:t,declaration:r}}function Mc(t,r){var n=Ic(t,r);if(n)return Oc(n.type?Kl(n.type):be,e.hasEffectiveModifier(n,64),n)}function Lc(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Rc(t){if(!t.constraint)if(t.target){var r=Fs(t.target);t.constraint=r?_d(r,t.mapper):it}else{var n=Lc(t);if(n){var i=Kl(n);1&i.flags&&i!==Se&&(i=189===n.parent.parent.kind?Ge:Ee),t.constraint=i}else t.constraint=function(t){var r;if(t.symbol)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n];if(184===a.parent.kind){var o=a.parent.parent;if(172===o.kind){var s=o,c=bv(s);if(c){var u=s.typeArguments.indexOf(a.parent);if(u<c.length){var l=Fs(c[u]);if(l){var d=_d(l,Wl(c,hv(s,c)));d!==t&&(r=e.append(r,d))}}}}else(159===o.kind&&o.dotDotDotToken||180===o.kind||191===o.kind&&o.dotDotDotToken)&&(r=e.append(r,vu(Ee)))}}return r&&Uu(r)}(t)||it}return t.constraint===it?void 0:t.constraint}function Bc(t){var r=e.getDeclarationOfKind(t.symbol,158),n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&vi(n)}function jc(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function Jc(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];o.flags&r||(n|=e.getObjectFlags(o))}return 3670016&n}function Kc(e,t){var r=jc(t),n=e.instantiations.get(r);return n||(n=Pi(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Jc(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function zc(e){var t=Ni(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Uc(e,t,r){var n=Dl(t),i=Sl(n),a=Pi(4,e.symbol);return a.target=e,a.node=t,a.mapper=r,a.aliasSymbol=n,a.aliasTypeArguments=r?Vl(i,r):i,a}function Vc(t){var r,n;if(!t.resolvedTypeArguments){if(!_a(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return Se})))||e.emptyArray;var i=t.node,a=i?172===i.kind?e.concatenate(t.target.outerTypeParameters,hv(i,t.target.localTypeParameters)):177===i.kind?[Kl(i.elementType)]:e.map(i.elements,Kl):e.emptyArray;ga()?t.resolvedTypeArguments=t.mapper?Vl(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((function(){return Se})))||e.emptyArray,on(t.node||d,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&Qi(t.target.symbol)))}return t.resolvedTypeArguments}function qc(t){return e.length(t.target.typeParameters)}function Wc(t,r){var n=Ao(hi(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=pc(i),s=e.isInJSFile(t);if(!(!X&&s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(on(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,Zi(n,void 0,2),o,i.length),!s)return Se}return 172===t.kind&&Su(t,e.length(t.typeArguments)!==i.length)?Uc(n,t,void 0):Kc(n,e.concatenate(n.outerTypeParameters,fc(au(t),i,o,s)))}return ru(t,r)?n:Se}function Hc(t,r){var n=Ao(t),i=vn(t),a=i.typeParameters,o=jc(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=_d(n,Wl(a,fc(r,a,pc(a),e.isInJSFile(t.valueDeclaration))))),s}function Gc(t){switch(t.kind){case 172:return t.typeName;case 220:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Yc(e,t,r){return e&&ni(e,t,r)||he}function Xc(t,r){if(r===he)return Se;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=vi(n);if(i)return Ly(i,t)}}}(r)||r).flags)return Wc(t,r);if(524288&r.flags)return function(t,r){var n=Ao(r),i=vn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=pc(i);return a<o||a>i.length?(on(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,Qi(r),o,i.length),Se):Hc(r,au(t))}return ru(t,r)?n:Se}(t,r);var n=Fo(r);if(n)return ru(t,r)?Ol(n):Se;if(111551&r.flags&&tu(t)){var i=function(t,r){var n=bn(t);if(!n.resolvedJSDocType){var i=ro(r),a=i;if(r.valueDeclaration){var o=e.getRootDeclaration(r.valueDeclaration),s=!1;if(e.isVariableDeclaration(o)&&o.initializer){for(var c=o.initializer;e.isPropertyAccessExpression(c);)c=c.expression;s=e.isCallExpression(c)&&e.isRequireCall(c,!0)&&!!i.symbol}var u=192===t.kind&&t.qualifier;i.symbol&&(s||u)&&(a=Xc(t,i.symbol))}n.resolvedJSDocType=a}return n.resolvedJSDocType}(t,r);return i||(Yc(Gc(t),788968),ro(r))}return Se}function Qc(e,t){if(3&t.flags||t===e)return e;var r=Fu(e)+">"+Fu(t),n=ge.get(r);if(n)return n;var i=Ni(33554432);return i.baseType=e,i.substitute=t,ge.set(r,i),i}function $c(e){return 178===e.kind&&1===e.elements.length}function Zc(e,t,r){return $c(t)&&$c(r)?Zc(e,t.elements[0],r.elements[0]):fl(Kl(t))===e?Kl(r):void 0}function eu(t,r){for(var n;r&&!e.isStatement(r)&&307!==r.kind;){var i=r.parent;if(183===i.kind&&r===i.trueType){var a=Zc(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?Qc(t,Uu(e.append(n,t))):t}function tu(e){return!!(4194304&e.flags)&&(172===e.kind||192===e.kind)}function ru(t,r){return!t.typeArguments||(on(t,e.Diagnostics.Type_0_is_not_generic,r?Qi(r):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function nu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return ru(t),Pe;case"Number":return ru(t),we;case"Boolean":return ru(t),Be;case"Void":return ru(t),Je;case"Undefined":return ru(t),Ce;case"Null":return ru(t),Ae;case"Function":case"function":return ru(t),ft;case"array":return r&&r.length||X?void 0:Tt;case"promise":return r&&r.length||X?void 0:dh(be);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Kl(r[0]),i=Oc(Kl(r[1]),!1);return Li(void 0,J,e.emptyArray,e.emptyArray,n===Pe?i:void 0,n===we?i:void 0)}return be}return ru(t),X?void 0:be}}}function iu(t){var r=bn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=he,r.resolvedType=Uh(t.parent.expression);var n=void 0,i=void 0;tu(t)&&((i=nu(t))||((n=Yc(Gc(t),788968,!0))===he?n=Yc(Gc(t),900095):Yc(Gc(t),788968),i=Xc(t,n))),i||(i=Xc(t,n=Yc(Gc(t),788968))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function au(t){return e.map(t.typeArguments,Kl)}function ou(e){var t=bn(e);return t.resolvedType||(t.resolvedType=Ol(dp(sv(e.exprName)))),t.resolvedType}function su(t,r){function n(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 249:case 250:case 252:return n}}}if(!t)return r?rt:$e;var i=Ao(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(on(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?rt:$e):i:(on(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?rt:$e)}function cu(t,r){return uu(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function uu(e,t,r){return En(void 0,e,t,r,e,!1)}function lu(t,r,n){var i=function(t,r){return uu(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,n);return i||n?su(i,r):void 0}function du(e){return Nt||(Nt=cu("Symbol",e))}function _u(e){return At||(At=lu("Symbol",0,e))||$e}function pu(e){return Pt||(Pt=lu("Promise",1,e))||rt}function fu(e){return It||(It=cu("Promise",e))}function gu(e){return Mt||(Mt=lu("Iterable",1,e))||rt}function mu(e,t){void 0===t&&(t=0);var r=uu(e,788968,void 0);return r&&su(r,t)}function yu(e,t){return e!==rt?Kc(e,t):$e}function hu(e){return yu(Ft||(Ft=lu("TypedPropertyDescriptor",1,!0))||rt,[e])}function vu(e,t){return yu(t?ht:yt,[e])}function bu(e){switch(e.kind){case 179:return 2;case 180:return xu(e);case 191:return e.questionToken?2:e.dotDotDotToken?xu(e):1;default:return 1}}function xu(e){return Jl(e.type)?4:8}function Du(t){var r=function(t){return e.isTypeOperatorNode(t)&&141===t.operator}(t.parent);return Jl(t)?r?ht:yt:Cu(e.map(t.elements,bu),r,e.some(t.elements,(function(e){return 191!==e.kind}))?void 0:t.elements)}function Su(t,r){return!!Dl(t)||function e(t){var r=t.parent;switch(r.kind){case 185:case 191:case 172:case 181:case 182:case 188:case 183:case 187:case 177:case 178:return e(r);case 251:return!0}return!1}(t)&&(177===t.kind?Tu(t.elementType):178===t.kind?e.some(t.elements,Tu):r||e.some(t.typeArguments,Tu))}function Tu(t){switch(t.kind){case 172:return tu(t)||!!(524288&Yc(t.typeName,788968).flags);case 175:return!0;case 187:return 150!==t.operator&&Tu(t.type);case 185:case 179:case 191:case 303:case 301:case 302:case 298:return Tu(t.type);case 180:return 177!==t.type.kind||Tu(t.type.elementType);case 181:case 182:return e.some(t.types,Tu);case 188:return Tu(t.objectType)||Tu(t.indexType);case 183:return Tu(t.checkType)||Tu(t.extendsType)||Tu(t.trueType)||Tu(t.falseType)}return!1}function Eu(t,r,n,i){void 0===n&&(n=!1);var a=Cu(r||e.map(t,(function(e){return 1})),n,i);return a===rt?$e:t.length?ku(a,t):a}function Cu(t,r,n){if(1===t.length&&4&t[0])return r?ht:yt;var i=e.map(t,(function(e){return 1&e?"#":2&e?"?":4&e?".":"*"})).join()+(r?"R":"")+(n&&n.length?","+e.map(n,P).join(","):""),a=le.get(i);return a||le.set(i,a=function(t,r,n){var i,a=t.length,o=e.findLastIndex(t,(function(e){return!!(9&e)}))+1,s=[],c=0;if(a){i=new Array(a);for(var u=0;u<a;u++){var l=i[u]=wi(),d=t[u];if(!(12&(c|=d))){var _=ln(4|(2&d?16777216:0),""+u,r?8:0);_.tupleLabelDeclaration=null==n?void 0:n[u],_.type=l,s.push(_)}}}var p=s.length,f=ln(4,"length");if(12&c)f.type=we;else{var g=[];for(u=o;u<=a;u++)g.push(Ll(u));f.type=Lu(g)}s.push(f);var m=Pi(12);return m.typeParameters=i,m.outerTypeParameters=void 0,m.localTypeParameters=i,m.instantiations=new e.Map,m.instantiations.set(jc(m.typeParameters),m),m.target=m,m.resolvedTypeArguments=m.typeParameters,m.thisType=wi(),m.thisType.isThisType=!0,m.thisType.constraint=m,m.declaredProperties=s,m.declaredCallSignatures=e.emptyArray,m.declaredConstructSignatures=e.emptyArray,m.declaredStringIndexInfo=void 0,m.declaredNumberIndexInfo=void 0,m.elementFlags=t,m.minLength=o,m.fixedLength=p,m.hasRestElement=!!(12&c),m.combinedFlags=c,m.readonly=r,m.labeledElementDeclarations=n,m}(t,r,n)),a}function ku(t,r){return 8&t.objectFlags&&8&t.combinedFlags?function t(r,n){var i,a,o,s=e.findIndex(n,(function(e,t){return!!(8&r.elementFlags[t]&&1179648&e.flags)}));if(s>=0)return Tf(n[s],(function(i){return t(r,e.replaceElement(n,s,i))}));if(e.findIndex(n,(function(e,t){return!(!(8&r.elementFlags[t])||58982400&e.flags||Ss(e))}))<0)return Kc(r,n);for(var c,u=[],l=[],d=[],_=-1,p=function(t){var s=n[t],c=r.elementFlags[t];8&c?58982400&s.flags||Ss(s)?m(s,8,null===(i=r.labeledElementDeclarations)||void 0===i?void 0:i[t]):B_(s)?e.forEach(Vc(s),(function(e,t){var r;return m(e,s.target.elementFlags[t],null===(r=s.target.labeledElementDeclarations)||void 0===r?void 0:r[t])})):m(C_(s)&&ic(s,1)||Se,4,null===(a=r.labeledElementDeclarations)||void 0===a?void 0:a[t]):m(s,c,null===(o=r.labeledElementDeclarations)||void 0===o?void 0:o[t])},f=0;f<n.length;f++)p(f);c&&(u[u.length-1]=Lu(c));var g=Cu(l,r.readonly,d);return g===rt?$e:l.length?Kc(g,u):g;function m(e,t,r){if(c)c.push(8&t?ul(e,we):e);else{if(1&t&&_>=0){for(var n=_;n<l.length;n++)2&l[n]&&(l[n]=1);_=-1}else 2&t&&_<0?_=l.length:4&t&&(c=[e]);u.push(e),l.push(t),d&&r?d.push(r):d=void 0}}}(t,r):Kc(t,r)}function Nu(t,r,n){void 0===n&&(n=0);var i=t.target,a=qc(t)-n;return r>i.fixedLength?function(e){var t=K_(e);return t&&vu(t)}(t)||Eu(e.emptyArray):Eu(Vc(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Au(t){return Lu(e.append(e.arrayOf(t.target.fixedLength,(function(e){return Ll(""+e)})),Yu(t.target.readonly?ht:yt)))}function Fu(e){return e.id}function Pu(t,r){return e.binarySearch(t,r,Fu,e.compareValues)>=0}function wu(t,r){var n=e.binarySearch(t,r,Fu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function Iu(t,r,n){var i=n.flags;if(1048576&i)return Ou(t,r,n.types);if(!(131072&i))if(r|=71041023&i,66846720&i&&(r|=262144),n===De&&(r|=8388608),!W&&98304&i)524288&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Fu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Ou(e,t,r){for(var n=0,i=r;n<i.length;n++){t=Iu(e,t,i[n])}return t}function Mu(t,r){var n=t.length;if(0===n||function(e){var t=e[0];if(1024&t.flags){for(var r=bi(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(1024&i.flags)||r!==bi(i.symbol))return!1}return!0}return!1}(t))return!0;for(var i=n,a=0;i>0;)for(var o=t[--i],s=0,c=t;s<c.length;s++){var u=c[s];if(o!==u){if(1e5===a)if(a/(n-i)*n>(r?25e6:1e6))return on(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(a++,Qd(o,u,Qr)&&(!(1&e.getObjectFlags(io(o)))||!(1&e.getObjectFlags(io(u)))||Nd(o,u))){e.orderedRemoveItemAt(t,i);break}}}return!0}function Lu(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return Ke;if(1===t.length)return t[0];var a=[],o=Ou(a,0,t);if(0!==r){if(3&o)return 1&o?8388608&o?De:be:Ee;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||Ml(i)&&Pu(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:if(!Mu(a,!(262144&o)))return Se}if(0===a.length)return 65536&o?4194304&o?Ae:Fe:32768&o?4194304&o?Ce:ke:Ke}return Bu(a,(66994211&o?0:262144)|(2097152&o?268435456:0),n,i)}function Ru(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Bu(e,t,r,n){if(0===e.length)return Ke;if(1===e.length)return e[0];var i=jc(e),a=de.get(i);return a||(a=Ni(1048576),de.set(i,a),a.objectFlags=t|Jc(e,98304),a.types=e,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function ju(e,t,r){var n=r.flags;return 2097152&n?Ju(e,t,r.types):(Hd(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===De&&(t|=8388608):!W&&98304&n||e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r)),t|=71041023&n),t)}function Ju(e,t,r){for(var n=0,i=r;n<i.length;n++){t=ju(e,t,Ol(i[n]))}return t}function Ku(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!Pu(i.types,t)){var a=128&t.flags?Pe:256&t.flags?we:2048&t.flags?Ie:8192&t.flags?je:void 0;if(!a||!Pu(i.types,a))return!1}}return!0}function zu(t,r){if(e.every(t,(function(t){return!!(1048576&t.flags)&&e.some(t.types,(function(e){return!!(e.flags&r)}))}))){for(var n=0;n<t.length;n++)t[n]=Df(t[n],(function(e){return!(e.flags&r)}));return!0}return!1}function Uu(t,r,n){var i=new e.Map,a=Ju(i,0,t),o=e.arrayFrom(i.values());if(131072&a||W&&98304&a&&84410368&a||67108864&a&&130044&a||132&a&&67238776&a||296&a&&67238612&a||2112&a&&67236796&a||12288&a&&67226620&a||49152&a&&67189756&a)return Ke;if(1&a)return 8388608&a?De:be;if(!W&&98304&a)return 32768&a?Ce:Ae;if((4&a&&128&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,Hd)),0===o.length)return Ee;if(1===o.length)return o[0];var s=jc(o),c=_e.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(262144&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];262144&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,u=r;c<u.length;c++)for(var l=0,d=u[c].types;l<d.length;l++)wu(o,a=d[l])&&Ku(r,a)&&wu(s,a);return t[n]=Bu(s,262144),!0}(o))c=Uu(o,r,n);else if(zu(o,32768))c=Lu([Uu(o),Ce],1,r,n);else if(zu(o,65536))c=Lu([Uu(o),Ae],1,r,n);else{if(e.reduceLeft(o,(function(e,t){return e*(1048576&t.flags?t.types.length:1)}),1)>=1e5)return on(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Se;var u=e.findIndex(o,(function(e){return 0!=(1048576&e.flags)})),l=o[u];c=Lu(e.map(l.types,(function(t){return Uu(e.replaceElement(o,u,t))})),1,r,n)}else c=function(e,t,r){var n=Ni(2097152);return n.objectFlags=Jc(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);_e.set(s,c)}return c}function Vu(e,t){var r=Ni(4194304);return r.type=e,r.stringsOnly=t,r}function qu(t){return e.isPrivateIdentifier(t)?Ke:e.isIdentifier(t)?Ll(e.unescapeLeadingUnderscores(t.escapedText)):Ol(e.isComputedPropertyName(t)?zg(t):sv(t))}function Wu(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=vn(Go(t)).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=Ll("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&qu(i)||Ll(e.symbolName(t))}if(n&&n.flags&r)return n}return Ke}function Hu(t,r){return Lu(e.map(Ns(t),(function(e){return Wu(e,r)})))}function Gu(e){var t=nc(e,1);return t!==cr?t:void 0}function Yu(t,r,n){return void 0===r&&(r=$),1048576&(t=Hs(t)).flags?Uu(e.map(t.types,(function(e){return Yu(e,r,n)}))):2097152&t.flags?Lu(e.map(t.types,(function(e){return Yu(e,r,n)}))):58982400&t.flags||j_(t)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Vu(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Vu(e,!1))}(t,r):32&e.getObjectFlags(t)?Df(gs(t),(function(e){return!(n&&5&e.flags)})):t===De?De:2&t.flags?Ke:131073&t.flags?Ge:r?!n&&nc(t,0)?Pe:Hu(t,128):!n&&nc(t,0)?Lu([Pe,we,Hu(t,8192)]):Gu(t)?Lu([we,Hu(t,8320)]):Hu(t,8576)}function Xu(t){if($)return t;var r=Ht||(Ht=uu("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?Hc(r,[t,Pe]):Pe}function Qu(t){return!X&&(!!(16384&e.getObjectFlags(t))||(1048576&t.flags?e.every(t.types,Qu):2097152&t.flags?e.some(t.types,Qu):!!(63176704&t.flags)&&Qu(Bs(t))))}function $u(t,r){var n=r&&199===r.kind?r:void 0;return jo(t)?Vo(t):n&&Hm(n.argumentExpression,t,!1)?e.getPropertyNameForKnownSymbolName(e.idText(n.argumentExpression.name)):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function Zu(t,r){return!(8208&r.flags)||!e.isCallLikeExpression(e.findAncestor(t,(function(t){return!e.isAccessExpression(t)}))||t.parent)&&e.every(r.declarations,(function(t){return!e.isFunctionLike(t)||!!(134217728&e.getCombinedNodeFlags(t))}))}function el(t,r,n,i,a,o,s,c){var u,l,d=o&&199===o.kind?o:void 0,_=o&&e.isPrivateIdentifier(o)?void 0:$u(n,o);if(void 0!==_){var p=$s(r,_);if(p){if(c&&o&&134217728&(null===(u=p.valueDeclaration)||void 0===u?void 0:u.flags)&&Zu(o,p))cn(!1,null!==(l=null==d?void 0:d.argumentExpression)&&void 0!==l?l:e.isIndexedAccessTypeNode(o)?o.indexType:o,e.Diagnostics._0_is_deprecated,_);if(d){if(Km(p,d,107===d.expression.kind),Ch(d,p,e.getAssignmentTargetKind(d)))return void on(d.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qi(p));if(4&s&&(bn(o).resolvedSymbol=p),Fm(d,p))return xe}var f=ro(p);return d&&1!==e.getAssignmentTargetKind(d)?Uf(d,f):f}if(xf(r,B_)&&Kg(_)&&+_>=0){if(o&&xf(r,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var g=tl(o);B_(r)?on(g,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Zi(r),qc(r),e.unescapeLeadingUnderscores(_)):on(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(_),Zi(r))}return D(nc(r,1)),Tf(r,(function(e){return K_(e)||Ce}))}}if(!(98304&n.flags)&&Ph(n,12716)){if(131073&r.flags)return r;var m=nc(r,0),y=Ph(n,296)&&nc(r,1)||m;if(y)return 1&s&&y===m?void(d&&on(d,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Zi(n),Zi(t))):o&&!Ph(n,12)?(on(g=tl(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Zi(n)),y.type):(D(y),y.type);if(131072&n.flags)return Ke;if(Qu(r))return be;if(d&&!Ih(r)){if(r.symbol===ie&&void 0!==_&&ie.exports.has(_)&&418&ie.exports.get(_).flags)on(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(_),Zi(r));else if(X&&!z.suppressImplicitAnyIndexErrors&&!a)if(void 0!==_&&Om(_,r))on(d,e.Diagnostics.Property_0_is_a_static_member_of_type_1,_,Zi(r));else if(ic(r,1))on(d.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var h=void 0;if(void 0!==_&&(h=Rm(_,r)))void 0!==h&&on(d.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,_,Zi(r),h);else{var v=function(t,r,n){function i(e){var r=Cs(t,e);if(r){var i=ry(ro(r));return!!i&&nh(i)>=1&&kd(n,Zy(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!==v)on(d,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Zi(r),v);else{var b=void 0;if(1024&n.flags)b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Zi(n)+"]",Zi(r));else if(8192&n.flags){var x=ri(n.symbol,d);b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+x+"]",Zi(r))}else 128&n.flags||256&n.flags?b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Zi(r)):12&n.flags&&(b=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Zi(n),Zi(r)));b=e.chainDiagnosticMessages(b,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Zi(i),Zi(r)),Wr.add(e.createDiagnosticForNodeFromMessageChain(d,b))}}}return}}if(Qu(r))return be;if(o){g=tl(o);384&n.flags?on(g,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Zi(r)):12&n.flags?on(g,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Zi(r),Zi(n)):on(g,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Zi(n))}return ha(n)?n:void 0;function D(t){t&&t.isReadonly&&d&&(e.isAssignmentTarget(d)||e.isDeleteTarget(d))&&on(d,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Zi(r))}}function tl(e){return 199===e.kind?e.argumentExpression:188===e.kind?e.indexType:157===e.kind?e.expression:e}function rl(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|(e.some(t.types,rl)?8388608:0)),!!(8388608&t.objectFlags)):!!(58982400&t.flags)||Ss(t)||j_(t)}function nl(t){return 3145728&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(t.types,nl)?33554432:0)),!!(33554432&t.objectFlags)):!!(63176704&t.flags)}function il(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]===at?t:t[n];t[n]=at;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(ul(t,e),n)}));return n?Uu(i):Lu(i)}}(i,a,r);if(o)return t[n]=o;if(!(63176704&a.flags)){var s=ol(i,a,r);if(s)return t[n]=s}if(j_(i)&&296&a.flags){var c=U_(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Ss(i))return t[n]=Tf(cl(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=ml(e),a=yl(e);if(131072&a.flags&&fl(i)===fl(r)){if(1&r.flags||kd(gd(r),gd(n)))return al(i,t);if(sl(r,n))return Ke}else if(131072&i.flags&&fl(a)===fl(r)){if(!(1&r.flags)&&kd(gd(r),gd(n)))return Ke;if(1&r.flags||sl(r,n))return al(a,t)}return e}(t,r):t}function ol(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return al(ul(e,r),n)}));return 2097152&t.flags||n?Uu(i):Lu(i)}}function sl(e,t){return!!(131072&Lu([os(e,t),Ke]).flags)}function cl(e,t){var r=Wl([fs(e)],[t]),n=$l(e.mapper,r);return _d(ms(e),n)}function ul(e,t,r,n,i){return dl(e,t,r,0,n,i)||(r?Se:Ee)}function ll(e,t){return xf(e,(function(e){if(384&e.flags){var r=Vo(e);if(Kg(r)){var n=+r;return n>=0&&n<t}}return!1}))}function dl(e,t,r,n,i,a){if(void 0===n&&(n=0),e===De||t===De)return De;if(!Gd(e)||98304&t.flags||!Ph(t,12)||(t=Pe),nl(t)||(r&&188!==r.kind?j_(e)&&!ll(t,e.target.fixedLength):rl(e)&&(!B_(e)||!ll(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=e.id+","+t.id,s=fe.get(o);return s||fe.set(o,s=function(e,t,r,n){var i=Ni(8388608);return i.objectType=e,i.indexType=t,i.aliasSymbol=r,i.aliasTypeArguments=n,i}(e,t,i,a)),s}var c=Us(e);if(1048576&t.flags&&!(16&t.flags)){for(var u=[],l=!1,d=0,_=t.types;d<_.length;d++){var p=el(e,c,_[d],t,l,r,n);if(p)u.push(p);else{if(!r)return;l=!0}}if(l)return;return 2&n?Uu(u,i,a):Lu(u,1,i,a)}return el(e,c,t,t,!1,r,4|n,!0)}function _l(e){var t=bn(e);if(!t.resolvedType){var r=Kl(e.objectType),n=Kl(e.indexType),i=Dl(e),a=ul(r,n,e,i,Sl(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?eu(a,e):a}return t.resolvedType}function pl(e){var t=bn(e);if(!t.resolvedType){var r=Pi(32,e.symbol);r.declaration=e,r.aliasSymbol=Dl(e),r.aliasTypeArguments=Sl(r.aliasSymbol),t.resolvedType=r,gs(r)}return t.resolvedType}function fl(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?ul(fl(e.objectType),fl(e.indexType)):e}function gl(t,r){for(var n,i,a=function(){var a=_d(t.checkType,r),o=rl(a)||nl(a),s=_d(t.extendsType,r);if(a===De||s===De)return{value:De};var c=void 0;if(t.inferTypeParameters){var u=yp(t.inferTypeParameters,void 0,0);o&&e.some(t.inferTypeParameters,(function(e){return e===s}))||Op(u.inferences,a,s,768),c=Zl(r,u.mapper)}var l=c?_d(t.extendsType,c):s;if(!o&&!rl(l)&&!nl(l)){if(!(3&l.flags)&&(1&a.flags||!kd(fd(a),fd(l)))){1&a.flags&&(i||(i=[])).push(pd(t.trueType,c||r));var d=t.falseType;if(16777216&d.flags){var _=d.root;if(_.node.parent===t.node&&(!_.isDistributive||_.checkType===t.checkType))return t=_,"continue"}return n=pd(d,r),"break"}if(3&l.flags||kd(gd(a),gd(l)))return n=pd(t.trueType,c||r),"break"}var p=fl(a);return(n=Ni(16777216)).root=t,n.checkType=p,n.extendsType=s,n.mapper=r,n.combinedMapper=c,n.aliasSymbol=t.aliasSymbol,n.aliasTypeArguments=Vl(t.aliasTypeArguments,r),"break"};;){var o=a();if("object"==typeof o)return o.value;if("break"===o)break}return i?Lu(e.append(i,n)):n}function ml(e){return e.resolvedTrueType||(e.resolvedTrueType=_d(e.root.trueType,e.mapper))}function yl(e){return e.resolvedFalseType||(e.resolvedFalseType=_d(e.root.falseType,e.mapper))}function hl(t){var r;return t.locals&&t.locals.forEach((function(t){262144&t.flags&&(r=e.append(r,Ao(t)))})),r}function vl(t){var r=bn(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return on(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=he,r.resolvedType=Se;if(!e.isLiteralImportTypeNode(t))return on(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=he,r.resolvedType=Se;var n=t.isTypeOf?111551:4194304&t.flags?900095:788968,i=ai(t,t.argument.literal);if(!i)return r.resolvedSymbol=he,r.resolvedType=Se;var a=ui(i,!1);if(e.nodeIsMissing(t.qualifier)){if(a.flags&n)r.resolvedType=bl(t,r,a,n);else on(t,111551===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=he,r.resolvedType=Se}else{for(var o=function t(r){return e.isIdentifier(r)?[r]:e.append(t(r.left),r.right)}(t.qualifier),s=a,c=void 0;c=o.shift();){var u=o.length?1920:n,l=Dn(fi(hi(Gn(s))),c.escapedText,u);if(!l)return on(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,ri(s),e.declarationNameToString(c)),r.resolvedType=Se;bn(c).resolvedSymbol=l,bn(c.parent).resolvedSymbol=l,s=l}r.resolvedType=bl(t,r,s,n)}}return r.resolvedType}function bl(e,t,r,n){var i=Gn(r);return t.resolvedSymbol=i,111551===n?ro(r):Xc(e,i)}function xl(t){var r=bn(t);if(!r.resolvedType){var n=Dl(t);if(0!==Ho(t.symbol).size||n){var i=Pi(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=Sl(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=vu(i)),r.resolvedType=i}else r.resolvedType=tt}return r.resolvedType}function Dl(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isTypeOperatorNode(r)&&141===r.operator;)r=r.parent;return e.isTypeAlias(r)?vi(r):void 0}function Sl(e){return e?uo(e):void 0}function Tl(e){return!!(524288&e.flags)&&!Ss(e)}function El(e){return Wd(e)||!!(71405564&e.flags)}function Cl(t){return!!(524288&t.flags)&&!!(16&e.getObjectFlags(t))&&(1===e.length(Ns(t))||e.every(Ns(t),(function(e){return!!(16777216&e.flags)})))}function kl(t,r){if(2===t.types.length){var n=t.types[0],i=t.types[1];if(e.every(t.types,El))return Wd(n)?n:Wd(i)?i:$e;if(El(n)&&Cl(i))return a(i);if(El(i)&&Cl(n))return a(n)}function a(t){for(var n=e.createSymbolTable(),i=0,a=Ns(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(Al(o)){var s=65536&o.flags&&!(32768&o.flags),c=ln(16777220,o.escapedName,r?8:0);c.type=s?Ce:ro(o),c.declarations=o.declarations,c.nameType=vn(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var u=Li(t.symbol,n,e.emptyArray,e.emptyArray,nc(t,0),nc(t,1));return u.objectFlags|=1048704,u}}function Nl(t,r,n,i,a){if(1&t.flags||1&r.flags)return be;if(2&t.flags||2&r.flags)return Ee;if(131072&t.flags)return r;if(131072&r.flags)return t;var o;if(1048576&t.flags)return(o=kl(t,a))?Nl(o,r,n,i,a):Tf(t,(function(e){return Nl(e,r,n,i,a)}));if(1048576&r.flags)return(o=kl(r,a))?Nl(t,o,n,i,a):Tf(r,(function(e){return Nl(t,e,n,i,a)}));if(71307260&r.flags)return t;if(rl(t)||rl(r)){if(Wd(t))return r;if(2097152&t.flags){var s=t.types,c=s[s.length-1];if(Tl(c)&&Tl(r))return Uu(e.concatenate(s.slice(0,s.length-1),[Nl(c,r,n,i,a)]))}return Uu([t,r])}var u,l,d=e.createSymbolTable(),_=new e.Set;t===$e?(u=nc(r,0),l=nc(r,1)):(u=cs(nc(t,0),nc(r,0)),l=cs(nc(t,1),nc(r,1)));for(var p=0,f=Ns(r);p<f.length;p++){var g=f[p];24&e.getDeclarationModifierFlagsFromSymbol(g)?_.add(g.escapedName):Al(g)&&d.set(g.escapedName,Fl(g,a))}for(var m=0,y=Ns(t);m<y.length;m++){var h=y[m];if(!_.has(h.escapedName)&&Al(h))if(d.has(h.escapedName)){var v=ro(g=d.get(h.escapedName));if(16777216&g.flags){var b=e.concatenate(h.declarations,g.declarations),x=ln(4|16777216&h.flags,h.escapedName);x.type=Lu([ro(h),af(v,524288)]),x.leftSpread=h,x.rightSpread=g,x.declarations=b,x.nameType=vn(h).nameType,d.set(h.escapedName,x)}}else d.set(h.escapedName,Fl(h,a))}var D=Li(n,d,e.emptyArray,e.emptyArray,Pl(u,a),Pl(l,a));return D.objectFlags|=1049728|i,D}function Al(t){return!(e.some(t.declarations,e.isPrivateIdentifierPropertyDeclaration)||106496&t.flags&&t.declarations.some((function(t){return e.isClassLike(t.parent)})))}function Fl(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===Eh(e))return e;var n=ln(4|16777216&e.flags,e.escapedName,t?8:0);return n.type=r?Ce:ro(e),n.declarations=e.declarations,n.nameType=vn(e).nameType,n.syntheticOrigin=e,n}function Pl(e,t){return e&&e.isReadonly!==t?Oc(e.type,t,e.declaration):e}function wl(e,t,r){var n=Ni(e);return n.symbol=r,n.value=t,n}function Il(e){if(2944&e.flags){if(!e.freshType){var t=wl(e.flags,e.value,e.symbol);t.regularType=e,t.freshType=t,e.freshType=t}return e.freshType}return e}function Ol(t){return 2944&t.flags?t.regularType:1048576&t.flags?t.regularType||(t.regularType=Lu(e.sameMap(t.types,Ol))):t}function Ml(e){return!!(2944&e.flags)&&e.freshType===e}function Ll(t,r,n){var i=(r||"")+("number"==typeof t?"#":"string"==typeof t?"@":"n")+("object"==typeof t?e.pseudoBigIntToString(t):t),a=pe.get(i);if(!a){var o=("number"==typeof t?256:"string"==typeof t?128:2048)|(r?1024:0);pe.set(i,a=wl(o,t,n)),a.regularType=a}return a}function Rl(t){if(e.isValidESSymbolDeclaration(t)){var r=vi(t),n=vn(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=Ni(8192);return t.symbol=e,t.escapedName="__@"+t.symbol.escapedName+"@"+w(t.symbol),t}(r))}return je}function Bl(t){var r=bn(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||250===n.kind)&&!e.hasSyntacticModifier(r,32)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return xo(vi(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return xo(vi(n.parent.left).parent).thisType;var i=4194304&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?xo(vi(i.parent.left).parent).thisType:My(r)&&e.isNodeDescendantOf(t,r.body)?xo(vi(r)).thisType:(on(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Se)}(t)),r.resolvedType}function jl(e){return Kl(Jl(e.type)||e.type)}function Jl(e){switch(e.kind){case 185:return Jl(e.type);case 178:if(1===e.elements.length&&(180===(e=e.elements[0]).kind||191===e.kind&&e.dotDotDotToken))return Jl(e.type);break;case 177:return e.elementType}}function Kl(e){return eu(zl(e),e)}function zl(t){switch(t.kind){case 128:case 299:case 300:return be;case 151:return Ee;case 146:return Pe;case 143:return we;case 154:return Ie;case 131:return Be;case 147:return je;case 113:return Je;case 149:return Ce;case 103:return Ae;case 140:return Ke;case 144:return 131072&t.flags&&!X?be:We;case 186:case 107:return Bl(t);case 190:return function(e){if(103===e.literal.kind)return Ae;var t=bn(e);return t.resolvedType||(t.resolvedType=Ol(sv(e.literal))),t.resolvedType}(t);case 172:return iu(t);case 171:return t.assertsModifier?Je:Be;case 220:return iu(t);case 175:return ou(t);case 177:case 178:return function(t){var r=bn(t);if(!r.resolvedType){var n=Du(t);if(n===rt)r.resolvedType=$e;else if(178===t.kind&&e.some(t.elements,(function(e){return!!(8&bu(e))}))||!Su(t)){var i=177===t.kind?[Kl(t.elementType)]:e.map(t.elements,Kl);r.resolvedType=ku(n,i)}else r.resolvedType=178===t.kind&&0===t.elements.length?n:Uc(n,t,void 0)}return r.resolvedType}(t);case 179:return function(e){var t=Kl(e.type);return W?Q_(t):t}(t);case 181:return function(t){var r=bn(t);if(!r.resolvedType){var n=Dl(t);r.resolvedType=Lu(e.map(t.types,Kl),1,n,Sl(n))}return r.resolvedType}(t);case 182:return function(t){var r=bn(t);if(!r.resolvedType){var n=Dl(t);r.resolvedType=Uu(e.map(t.types,Kl),n,Sl(n))}return r.resolvedType}(t);case 301:return function(e){var t=Kl(e.type);return W?X_(t,65536):t}(t);case 303:return ka(Kl(t.type));case 191:return function(e){var t=bn(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?jl(e):e.questionToken&&W?Q_(Kl(e.type)):Kl(e.type))}(t);case 185:case 302:case 298:return Kl(t.type);case 180:return jl(t);case 305:return function(t){var r=Kl(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);if(a){var o=e.lastOrUndefined(a.parameters),s=e.getParameterSymbolFromJSDoc(i);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return vu(r)}}if(e.isParameter(n)&&e.isJSDocFunctionType(n.parent))return vu(r);return ka(r)}(t);case 173:case 174:case 176:case 308:case 304:case 309:return xl(t);case 187:return function(t){var r=bn(t);if(!r.resolvedType)switch(t.operator){case 137:r.resolvedType=Yu(Kl(t.type));break;case 150:r.resolvedType=147===t.type.kind?Rl(e.walkUpParenthesizedTypes(t.parent)):Se;break;case 141:r.resolvedType=Kl(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType}(t);case 188:return _l(t);case 189:return pl(t);case 183:return function(t){var r=bn(t);if(!r.resolvedType){var n=Kl(t.checkType),i=Dl(t),a=Sl(i),o=so(t,!0),s=a?o:e.filter(o,(function(e){return ad(e,t)})),c={node:t,checkType:n,extendsType:Kl(t.extendsType),trueType:Kl(t.trueType),falseType:Kl(t.falseType),isDistributive:!!(262144&n.flags),inferTypeParameters:hl(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=gl(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(jc(s),r.resolvedType))}return r.resolvedType}(t);case 184:return function(e){var t=bn(e);return t.resolvedType||(t.resolvedType=No(vi(e.typeParameter))),t.resolvedType}(t);case 192:return vl(t);case 78:case 156:case 198:var r=Rx(t);return r?Ao(r):Se;default:return Se}}function Ul(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function Vl(e,t){return Ul(e,t,_d)}function ql(e,t){return Ul(e,t,nd)}function Wl(e,t){return 1===e.length?Gl(e[0],t?t[0]:be):function(e,t){return{kind:1,sources:e,targets:t}}(e,t)}function Hl(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:be;return e;case 2:return t.func(e);case 3:case 4:var a=Hl(e,t.mapper1);return a!==e&&3===t.kind?_d(a,t.mapper2):Hl(a,t.mapper2)}}function Gl(e,t){return{kind:0,source:e,target:t}}function Yl(e){return{kind:2,func:e}}function Xl(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Ql(e){return Wl(e,void 0)}function $l(e,t){return e?Xl(3,e,t):t}function Zl(e,t){return e?Xl(4,e,t):t}function ed(e,t,r){return r?Xl(4,Gl(e,t),r):Gl(e,t)}function td(e,t,r){return e?Xl(4,e,Gl(t,r)):Gl(t,r)}function rd(e){var t=wi(e.symbol);return t.target=e,t}function nd(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,rd),r=$l(Wl(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++){o[a].mapper=r}}var s=Qo(t.declaration,i,t.thisParameter&&id(t.thisParameter,r),Ul(t.parameters,r,id),void 0,void 0,t.minArgumentCount,19&t.flags);return s.target=t,s.mapper=r,s}function id(t,r){var n=vn(t);if(n.type&&!Tp(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=$l(n.mapper,r));var i=ln(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function ad(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||227===i.kind||183===i.kind&&e.forEachChild(i.extendsType,a))return!0;return!!e.forEachChild(r,a)}return!0;function a(r){switch(r.kind){case 186:return!!t.isThisType;case 78:return!t.isThisType&&e.isPartOfTypeNode(r)&&function(e){return!(156===e.kind||172===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||192===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(r)&&zl(r)===t;case 175:return!0}return!!e.forEachChild(r,a)}}function od(e){var t=gs(e);if(4194304&t.flags){var r=fl(t.type);if(262144&r.flags)return r}}function sd(t,r){var n=od(t);if(n){var i=_d(n,r);if(n!==i)return Tf(Hs(i),(function(i){if(61603843&i.flags&&i!==De&&i!==Se){if(j_(i))return function(t,r,n,i){var a=t.target.elementFlags,o=e.map(Vc(t),(function(e,t){var o=8&a[t]?e:4&a[t]?vu(e):Eu([e],[a[t]]);return sd(r,ed(n,o,i))})),s=cd(t.target.readonly,bs(r));return Eu(o,e.map(o,(function(e){return 8})),s)}(i,t,n,r);var a=ed(n,i,r);return D_(i)?function(e,t,r){var n=ud(t,we,!0,r);return n===Se?Se:vu(n,cd(S_(e),bs(t)))}(i,t,a):B_(i)?function(t,r,n){var i=t.target.elementFlags,a=e.map(Vc(t),(function(e,t){return ud(r,Ll(""+t),!!(2&i[t]),n)})),o=bs(r),s=4&o?e.map(i,(function(e){return 1&e?2:e})):8&o?e.map(i,(function(e){return 2&e?1:e})):i,c=cd(t.target.readonly,o);return e.contains(a,Se)?Se:Eu(a,s,c,t.target.labeledElementDeclarations)}(i,t,a):ld(t,a)}return i}))}return ld(t,r)}function cd(e,t){return!!(1&t)||!(2&t)&&e}function ud(e,t,r,n){var i=td(n,fs(e),t),a=_d(ms(e.target||e),i),o=bs(e);return W&&4&o&&!Fh(a,49152)?Q_(a):W&&8&o&&r?af(a,524288):a}function ld(e,t){var r=Pi(64|e.objectFlags,e.symbol);if(32&e.objectFlags){r.declaration=e.declaration;var n=fs(e),i=rd(n);r.typeParameter=i,t=$l(Gl(n,i),t),i.mapper=t}return r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Vl(e.aliasTypeArguments,t),r}function dd(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,(function(e){return Hl(e,r)})),a=jc(i),o=n.instantiations.get(a);if(!o)o=function(e,t){if(e.isDistributive){var r=e.checkType,n=Hl(r,t);if(r!==n&&1179648&n.flags)return Tf(n,(function(n){return gl(e,ed(r,n,t))}))}return gl(e,t)}(n,Wl(n.outerTypeParameters,i)),n.instantiations.set(a,o);return o}return t}function _d(t,r){if(!(t&&r&&Tp(t)))return t;if(50===E||D>=5e6)return on(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Se;x++,D++,E++;var n=function(t,r){var n=t.flags;if(262144&n)return Hl(t,r);if(524288&n){var i=t.objectFlags;if(52&i){if(4&i&&!t.node){var a=t.resolvedTypeArguments,o=Vl(a,r);return o!==a?ku(t.target,o):t}return function(t,r){var n=64&t.objectFlags?t.target:t,i=4&t.objectFlags?t.node:t.symbol.declarations[0],a=bn(i),o=a.outerTypeParameters;if(!o){var s=so(i,!0);if(My(i)){var c=oc(i);s=e.addRange(s,c)}o=s||e.emptyArray,o=(4&n.objectFlags||2048&n.symbol.flags)&&!n.aliasTypeArguments?e.filter(o,(function(e){return ad(e,i)})):o,a.outerTypeParameters=o,o.length&&(a.instantiations=new e.Map,a.instantiations.set(jc(o),n))}if(o.length){var u=$l(t.mapper,r),l=e.map(o,(function(e){return Hl(e,u)})),d=jc(l),_=a.instantiations.get(d);if(!_){var p=Wl(o,l);_=4&n.objectFlags?Uc(t.target,t.node,p):32&n.objectFlags?sd(n,p):ld(n,p),a.instantiations.set(d,_)}return _}return t}(t,r)}return t}if(3145728&n){var s=t.types,c=Vl(s,r);return c===s?t:2097152&n?Uu(c,t.aliasSymbol,Vl(t.aliasTypeArguments,r)):Lu(c,1,t.aliasSymbol,Vl(t.aliasTypeArguments,r))}if(4194304&n)return Yu(_d(t.type,r));if(8388608&n)return ul(_d(t.objectType,r),_d(t.indexType,r),void 0,t.aliasSymbol,Vl(t.aliasTypeArguments,r));if(16777216&n)return dd(t,$l(t.mapper,r));if(33554432&n){var u=_d(t.baseType,r);if(8650752&u.flags)return Qc(u,_d(t.substitute,r));var l=_d(t.substitute,r);return 3&l.flags||kd(gd(u),gd(l))?u:l}return t}(t,r);return E--,n}function pd(e,t){E--;var r=_d(e,t);return E++,r}function fd(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=_d(e,Qe))}function gd(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=_d(e,Xe),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function md(e,t){return e&&Oc(_d(e.type,t),e.isReadonly,e.declaration)}function yd(t){switch(e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 205:case 206:case 164:case 248:return hd(t);case 197:return e.some(t.properties,yd);case 196:return e.some(t.elements,yd);case 214:return yd(t.whenTrue)||yd(t.whenFalse);case 213:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(yd(t.left)||yd(t.right));case 285:return yd(t.initializer);case 204:return yd(t.expression);case 278:return e.some(t.properties,yd)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,yd);case 277:var r=t.initializer;return!!r&&yd(r);case 280:var n=t.expression;return!!n&&yd(n)}return!1}function hd(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Ea(t))&&(vd(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&227!==t.body.kind&&yd(t.body)}(t))}function vd(t){if(!t.typeParameters){if(e.some(t.parameters,(function(t){return!e.getEffectiveTypeAnnotationNode(t)})))return!0;if(206!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}}return!1}function bd(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Ig(t)||e.isObjectLiteralMethod(t))&&hd(t)}function xd(t){if(524288&t.flags){var r=Ts(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Pi(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(2097152&t.flags)return Uu(e.map(t.types,xd));return t}function Dd(e,t){return Qd(e,t,en)}function Sd(e,t){return Qd(e,t,en)?-1:0}function Td(e,t){return Qd(e,t,$r)?-1:0}function Ed(e,t){return Qd(e,t,Xr)?-1:0}function Cd(e,t){return Qd(e,t,Xr)}function kd(e,t){return Qd(e,t,$r)}function Nd(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return Nd(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return Nd(t,e)})):58982400&t.flags?Nd(Ms(t)||Ee,r):r===pt?!!(67633152&t.flags):r===ft?!!(524288&t.flags)&&rf(t):ao(t,io(r))}function Ad(e,t){return Qd(e,t,Zr)}function Fd(e,t){return Ad(e,t)||Ad(t,e)}function Pd(e,t,r,n,i,a){return e_(e,t,$r,r,n,i,a)}function wd(e,t,r,n,i,a){return Id(e,t,$r,r,n,i,a,void 0)}function Id(e,t,r,n,i,a,o,s){return!!Qd(e,t,r)||(!n||!Md(i,e,t,r,a,o,s))&&e_(e,t,r,n,a,o,s)}function Od(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Od))}function Md(t,r,i,a,s,c,u){if(!t||Od(i))return!1;if(!e_(r,i,a,void 0)&&function(t,r,n,i,a,o,s){for(var c=ec(r,0),u=ec(r,1),l=0,d=[u,c];l<d.length;l++){var _=d[l];if(e.some(_,(function(e){var t=xc(e);return!(131073&t.flags)&&e_(t,n,i,void 0)}))){var p=s||{};Pd(r,n,t,a,o,p);var f=p.errors[p.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,_===u?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,i,a,s,c,u))return!0;switch(t.kind){case 280:case 204:return Md(t.expression,r,i,a,s,c,u);case 213:switch(t.operatorToken.kind){case 62:case 27:return Md(t.right,r,i,a,s,c,u)}break;case 197:return function(t,r,n,i,a,s){return!(131068&n.flags)&&Bd(function(t){var r,n,i,a;return o(this,(function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=Wu(vi(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 167:case 166:case 164:case 286:return[3,2];case 285:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,s)}(t,r,i,a,c,u);case 196:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(N_(t))return Bd(Kd(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=Rg(e,1,!0);return e.contextualType=o,!!N_(s)&&Bd(Kd(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(t,r,i,a,c,u);case 278:return function(t,r,i,a,s,c){var u,l=Bd(function(t){var r,n,i;return o(this,(function(a){switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:Ll(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,i,a,s,c);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var d=t.parent.parent,_=nm(tm(t)),p=void 0===_?"children":e.unescapeLeadingUnderscores(_),f=Ll(p),g=ul(i,f),m=Jd(d.children);if(!e.length(m))return l;var y=e.length(m)>1,h=Df(g,A_),v=Df(g,(function(e){return!A_(e)}));if(y){if(h!==Ke){var b=Eu(Xg(d,0));l=Bd(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 i<t.children.length?(a=t.children[i],s=Ll(i-n),(c=jd(a,s,r))?[4,c]:[3,3]):[3,5];case 2:return o.sent(),[3,4];case 3:n++,o.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(d,S),b,h,a,s,c)||l}else if(!Qd(ul(r,f),g,a)){l=!0;var x=on(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,p,Zi(g));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(x)}}else if(v!==Ke){var D=jd(m[0],f,S);D&&(l=Bd(function(){return o(this,(function(e){switch(e.label){case 0:return[4,D];case 1:return e.sent(),[2]}}))}(),r,i,a,s,c)||l)}else if(!Qd(ul(r,f),g,a)){l=!0;x=on(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,p,Zi(g));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(x)}}return l;function S(){if(!u){var r=e.getTextOfNode(t.parent.tagName),a=nm(tm(t)),o=void 0===a?"children":e.unescapeLeadingUnderscores(a),s=ul(i,Ll(o)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;u=n(n({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,o,Zi(s))})}return u}}(t,r,i,a,c,u);case 206:return function(t,r,n,i,a,o){if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=ry(r);if(!s)return!1;var c=ec(n,0);if(!e.length(c))return!1;var u=t.body,l=xc(s),d=Lu(e.map(c,xc));if(!e_(l,d,i,void 0)){var _=u&&Md(u,l,d,i,void 0,a,o);if(_)return _;var p=o||{};if(e_(l,d,i,u,void 0,a,p),p.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!ya(l,"then")&&e_(dh(l),d,i,void 0)&&e.addRelatedInfo(p.errors[p.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(t,r,i,a,c,u)}return!1}function Ld(e,t,r){var n=dl(t,r);if(n)return n;if(1048576&t.flags){var i=r_(e,t);if(i)return dl(i,r)}}function Rd(e,t){e.contextualType=t;try{return Yh(e,1,t)}finally{e.contextualType=void 0}}function Bd(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var u=c.value,l=u.errorNode,d=u.innerExpression,_=u.nameType,p=u.errorMessage,f=Ld(r,n,_);if(f&&!(8388608&f.flags)){var g=dl(r,_);if(g&&!e_(g,f,i,void 0))if(d&&Md(d,g,f,i,void 0,a,o))s=!0;else{var m=o||{},y=d?Rd(d,g):g;if(e_(y,f,i,l,p,a,m)&&y!==g&&e_(g,f,i,l,p,a,m),m.errors){var h=m.errors[m.errors.length-1],v=jo(_)?Vo(_):void 0,b=void 0!==v?$s(n,v):void 0,x=!1;if(!b){var D=Ph(_,296)&&nc(n,1)||nc(n,0)||void 0;D&&D.declaration&&!e.getSourceFileOfNode(D.declaration).hasNoDefaultLib&&(x=!0,e.addRelatedInfo(h,e.createDiagnosticForNode(D.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!x&&(b&&e.length(b.declarations)||n.symbol&&e.length(n.symbol.declarations))){var S=b&&e.length(b.declarations)?b.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(S).hasNoDefaultLib||e.addRelatedInfo(h,e.createDiagnosticForNode(S,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!v||8192&_.flags?Zi(_):e.unescapeLeadingUnderscores(v),Zi(n)))}}s=!0}}}return s}function jd(t,r,n){switch(t.kind){case 280:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 270:case 271:case 274:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function Jd(t){return e.filter(t,(function(t){return!e.isJsxText(t)||!t.containsOnlyTriviaWhiteSpaces}))}function Kd(t,r){var n,i,a,s;return o(this,(function(o){switch(o.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,o.label=1;case 1:return i<n?N_(r)&&!$s(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(s=Ll(i),[4,{errorNode:a,innerExpression:a,nameType:s}])):[3,4];case 2:o.sent(),o.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function zd(e,t,r,n,i){return e_(e,t,Zr,r,n,i)}function Ud(t,r,n,i,a,o,s,c){if(t===r)return-1;if(function(e){return!e.typeParameters&&(!e.thisParameter||ha(Gy(e.thisParameter)))&&1===e.parameters.length&&B(e)&&(Gy(e.parameters[0])===Tt||ha(Gy(e.parameters[0])))&&ha(xc(e))}(r))return-1;var u=rh(r);if(!ih(r)&&(8&n?ih(t)||rh(t)>u:nh(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=ay(t,r=Ac(r),void 0,s));var l=rh(t),d=oh(t),_=oh(r);if((d||_)&&_d(d||_,c),d&&_&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!(3&n)&&H&&164!==p&&163!==p&&165!==p,g=-1,m=vc(t);if(m&&m!==Je){var y=vc(r);if(y){if(!(x=!f&&s(m,y,!1)||s(y,m,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=x}}for(var h=d||_?Math.min(l,u):Math.max(l,u),v=d||_?h-1:-1,b=0;b<h;b++){var x,D=b===v?th(t,b):Zy(t,b),S=b===v?th(r,b):Zy(r,b),T=3&n?void 0:ry($_(D)),E=3&n?void 0:ry($_(S));if((x=T&&E&&!bc(T)&&!bc(E)&&(98304&W_(D))==(98304&W_(S))?Ud(E,T,8&n|(f?2:1),i,a,o,s,c):!(3&n)&&!f&&s(D,S,!1)||s(S,D,i))&&8&n&&b>=nh(t)&&b<nh(r)&&s(D,S,!1)&&(x=0),!x)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Xy(t,b)),e.unescapeLeadingUnderscores(Xy(r,b))),0;g&=x}if(!(4&n)){var C=Sc(r)?be:r.declaration&&My(r.declaration)?xo(hi(r.declaration.symbol)):xc(r);if(C===Je)return g;var k=Sc(t)?be:t.declaration&&My(t.declaration)?xo(hi(t.declaration.symbol)):xc(t),N=bc(r);if(N){var A=bc(t);if(A)g&=function(t,r,n,i,a){if(t.kind!==r.kind)return n&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ia(t),ia(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ia(t),ia(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ia(t),ia(r));return o}(A,N,i,a,s);else if(e.isIdentifierTypePredicate(N))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,$i(t)),0}else!(g&=1&n&&s(C,k,!1)||s(k,C,i))&&i&&o&&o(k,C)}return g}function Vd(e,t){var r=Nc(e),n=Nc(t),i=xc(r),a=xc(n);return!(a!==Je&&!Qd(a,i,$r)&&!Qd(i,a,$r))&&0!==Ud(r,n,!0?4:0,!1,void 0,void 0,Td,void 0)}function qd(e){return e!==nt&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&!e.stringIndexInfo&&!e.numberIndexInfo}function Wd(t){return 524288&t.flags?!Ss(t)&&qd(Ts(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,Wd):!!(2097152&t.flags)&&e.every(t.types,Wd))}function Hd(t){return!!(16&e.getObjectFlags(t)&&(t.members&&qd(t)||t.symbol&&2048&t.symbol.flags&&0===Ho(t.symbol).size))}function Gd(t){return 524288&t.flags&&!Ss(t)&&0===Ns(t).length&&nc(t,0)&&!nc(t,1)||3145728&t.flags&&e.every(t.types,Gd)||!1}function Yd(t,r,n){if(t===r)return!0;var i=w(t)+","+w(r),a=tn.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return tn.set(i,6),!1;for(var o=ro(r),s=0,c=Ns(ro(t));s<c.length;s++){var u=c[s];if(8&u.flags){var l=$s(o,u.escapedName);if(!(l&&8&l.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),Zi(Ao(r),void 0,64)),tn.set(i,6)):tn.set(i,2),!1}}return tn.set(i,1),!0}function Xd(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===De)return!0;if(131072&a)return!1;if(132&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&Yd(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&Yd(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&Yd(bi(e.symbol),bi(t.symbol),n))return!0}if(32768&i&&(!W||49152&a))return!0;if(65536&i&&(!W||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===$r||r===Zr){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return!0}return!1}function Qd(e,t,r){if(Ml(e)&&(e=e.regularType),Ml(t)&&(t=t.regularType),e===t)return!0;if(r!==en){if(r===Zr&&!(131072&t.flags)&&Xd(t,e,r)||Xd(e,t,r))return!0}else if(!(3145728&e.flags||3145728&t.flags||e.flags===t.flags||66584576&e.flags))return!1;if(524288&e.flags&&524288&t.flags){var n=r.get(__(e,t,0,r));if(void 0!==n)return!!(1&n)}return!!(66846720&e.flags||66846720&t.flags)&&e_(e,t,r,void 0)}function $d(t,r){return 4096&e.getObjectFlags(t)&&!Hg(r.escapedName)}function Zd(t,r){for(;;){var n=Ml(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?Kc(t.target,Vc(t)):3145728&t.flags?Hs(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?al(t,r):t;if(n===t)break;t=n}return t}function e_(t,n,i,a,o,s,c){var l,_,p,f,g,m,y=0,h=0,v=0,b=!1,x=0,D=[],S=!1;e.Debug.assert(i!==en||!a,"no error reporting in identity checking");var T=B(t,n,!!a,o);if(D.length&&O(),b){var E=on(a||d,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Zi(t),Zi(n));c&&(c.errors||(c.errors=[])).push(E)}else if(l){if(s){var C=s();C&&(e.concatenateDiagnosticMessageChains(C,l),l=C)}var N=void 0;if(o&&a&&!T&&t.symbol){var A=vn(t.symbol);if(A.originatingImport&&!e.isImportCall(A.originatingImport))if(e_(ro(A.target),n,i,void 0)){var F=e.createDiagnosticForNode(A.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);N=e.append(N,F)}}E=e.createDiagnosticForNodeFromMessageChain(a,l,N);_&&e.addRelatedInfo.apply(void 0,r([E],_)),c&&(c.errors||(c.errors=[])).push(E),c&&c.skipLogging||Wr.add(E)}return a&&c&&c.skipLogging&&0===T&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==T;function P(e){l=e.errorInfo,m=e.lastSkippedInfo,D=e.incompatibleStack,x=e.overrideNextErrorInfo,_=e.relatedInfo}function w(){return{errorInfo:l,lastSkippedInfo:m,incompatibleStack:D.slice(),overrideNextErrorInfo:x,relatedInfo:_?_.slice():void 0}}function I(e,t,r,n,i){x++,m=void 0,D.push([e,t,r,n,i])}function O(){var t=D;D=[];var n=m;if(m=void 0,1===t.length)return M.apply(void 0,t[0]),void(n&&L.apply(void 0,r([void 0],n)));for(var i="",a=[];t.length;){var o=t.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===i.indexOf("new ")&&(i="("+i+")");var u=""+c[0];i=0===i.length?""+u:e.isIdentifierText(u,z.target)?i+"."+u:"["===u[0]&&"]"===u[u.length-1]?""+i+u:i+"["+u+"]";break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===i.length){var l=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?l=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(l=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([l,c[0],c[1]])}else{i=""+(s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"")+i+"("+(s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...")+")"}break;default:return e.Debug.fail("Unhandled Diagnostic: "+s.code)}}i?M(")"===i[i.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,i):a.shift();for(var d=0,_=a;d<_.length;d++){var p=_[d],f=(s=p[0],c=p.slice(1),s.elidedInCompatabilityPyramid);s.elidedInCompatabilityPyramid=!1,M.apply(void 0,r([s],c)),s.elidedInCompatabilityPyramid=f}n&&L.apply(void 0,r([void 0],n))}function M(t,r,n,i,o){e.Debug.assert(!!a),D.length&&O(),t.elidedInCompatabilityPyramid||(l=e.chainDiagnosticMessages(l,t,r,n,i,o))}function L(t,r,n){D.length&&O();var a=ea(r,n),o=a[0],s=a[1],c=r,u=o;if(w_(r)&&!t_(n)&&(c=I_(r),e.Debug.assert(!kd(c,n),"generalized source shouldn't be assignable"),u=ta(c)),262144&n.flags){var l=Ms(n),d=void 0;l&&(kd(c,l)||(d=kd(r,l)))?M(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,d?o:u,s,Zi(l)):M(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,u)}t||(t=i===Zr?e.Diagnostics.Type_0_is_not_comparable_to_type_1:o===s?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),M(t,u,s)}function R(t,r,n){return B_(t)?t.target.readonly&&T_(r)?(n&&M(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Zi(t),Zi(r)),!1):B_(r)||D_(r):S_(t)&&T_(r)?(n&&M(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Zi(t),Zi(r)),!1):!B_(r)||D_(t)}function B(t,r,n,o,s){if(void 0===n&&(n=!1),void 0===s&&(s=0),524288&t.flags&&131068&r.flags)return Xd(t,r,i,n?M:void 0)?-1:(D(t,r,0,!!(4096&e.getObjectFlags(t))),0);var c=Zd(t,!1),u=Zd(r,!0);if(c===u)return-1;if(i===en)return function(e,t){var r=e.flags&t.flags;if(!(66584576&r))return 0;if(3145728&r){var n=j(e,t);return n&&(n&=j(t,e)),n}return U(e,t,!1,0)}(c,u);if(262144&c.flags&&As(c)===u)return-1;if(1048576&u.flags&&524288&c.flags&&u.types.length<=3&&Fh(u,98304)){var d=Ef(u,-98305);if(!(1179648&d.flags)){if(c===d)return-1;u=d}}if(i===Zr&&!(131072&u.flags)&&Xd(u,c,i)||Xd(c,u,i,n?M:void 0))return-1;var _=!!(4096&e.getObjectFlags(c)),p=!(2&s)&&Rp(c)&&32768&e.getObjectFlags(c);if(p&&function(t,r,n){if(!dm(r)||!X&&16384&e.getObjectFlags(r))return!1;var o=!!(4096&e.getObjectFlags(t));if((i===$r||i===Zr)&&(vf(pt,r)||!o&&Wd(r)))return!1;var s,c=r;1048576&r.flags&&(c=tS(t,r,B)||function(e){if(Fh(e,67108864)){var t=Df(e,(function(e){return!(131068&e.flags)}));if(!(131072&t.flags))return t}return e}(r),s=1048576&c.flags?c.types:[c]);for(var u=function(r){if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(r,t.symbol)&&!$d(t,r)){if(!lm(c,r.escapedName,o)){if(n){var i=Df(c,dm);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(a=r.valueDeclaration.name);var u=Qi(r),l=Lm(u,i);(_=l?Qi(l):void 0)?M(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Zi(i),_):M(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,Zi(i))}else{var d=t.symbol&&e.firstOrUndefined(t.symbol.declarations),_=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(function(e){return e===d}))&&e.getSourceFileOfNode(d)===e.getSourceFileOfNode(a)){var p=r.valueDeclaration;e.Debug.assertNode(p,e.isObjectLiteralElementLike),a=p;var f=p.name;e.isIdentifier(f)&&(_=Rm(f,i))}void 0!==_?M(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Qi(r),Zi(i),_):M(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qi(r),Zi(i))}}return{value:!0}}if(s&&!B(ro(r),function(t,r){var n=function(t,n){var i=3145728&(n=zs(n)).flags?Ws(n,r):Cs(n,r),a=i&&ro(i)||Kg(r)&&ic(n,1)||ic(n,0)||Ce;return e.append(t,a)};return Lu(e.reduceLeft(t,n,void 0)||e.emptyArray)}(s,r.escapedName),n))return n&&I(e.Diagnostics.Types_of_property_0_are_incompatible,Qi(r)),{value:!0}}},l=0,d=Ns(t);l<d.length;l++){var _=u(d[l]);if("object"==typeof _)return _.value}return!1}(c,u,n))return n&&L(o,c,u),0;var f=i!==Zr&&!(2&s)&&2752508&c.flags&&c!==pt&&2621440&u.flags&&i_(u)&&(Ns(c).length>0||Vx(c));if(f&&!function(e,t,r){for(var n=0,i=Ns(e);n<i.length;n++){if(lm(t,i[n].escapedName,r))return!0}return!1}(c,u,_)){if(n){var g=ec(c,0),y=ec(c,1);g.length>0&&B(xc(g[0]),u,!1)||y.length>0&&B(xc(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,Zi(c),Zi(u)):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Zi(c),Zi(u))}return 0}var h=0,v=w();if(1048576&c.flags?h=i===Zr?K(c,u,n&&!(131068&c.flags),s):function(e,t,r,n){for(var i=-1,a=e.types,o=0;o<a.length;o++){var s=a[o];if(1048576&t.flags&&t.types.length===a.length){var c=B(s,t.types[o],!1,void 0,n);if(c){i&=c;continue}}var u=B(s,t,r,void 0,n);if(!u)return 0;i&=u}return i}(c,u,n&&!(131068&c.flags),s):(1048576&u.flags?h=J(op(c),u,n&&!(131068&c.flags)&&!(131068&u.flags)):2097152&u.flags?h=function(e,t,r,n){for(var i=-1,a=t.types,o=0,s=a;o<s.length;o++){var c=B(e,s[o],r,void 0,n);if(!c)return 0;i&=c}return i}(op(c),u,n,2):2097152&c.flags&&(h=K(c,u,!1,1)),!h&&(66846720&c.flags||66846720&u.flags)&&(h=U(c,u,n,s))&&P(v)),!h&&2359296&c.flags){var b=function(t,r){for(var n,i=!1,a=0,o=t;a<o.length;a++)if(63176704&(l=o[a]).flags){for(var s=As(l);s&&21233664&s.flags;)s=As(s);s&&(n=e.append(n,s),r&&(n=e.append(n,l)))}else 67238908&l.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,u=t;c<u.length;c++){var l;67238908&(l=u[c]).flags&&(n=e.append(n,l))}return Uu(n)}}(2097152&c.flags?c.types:[c],!!(1048576&u.flags));b&&(2097152&c.flags||1048576&u.flags)&&xf(b,(function(e){return e!==c}))&&(h=B(b,u,!1,void 0,s))&&P(v)}return h&&!S&&(2097152&u.flags&&(p||f)||Tl(u)&&!D_(u)&&!B_(u)&&2097152&c.flags&&3670016&zs(c).flags&&!e.some(c.types,(function(t){return!!(2097152&e.getObjectFlags(t))})))&&(S=!0,h&=U(c,u,n,4),S=!1),D(c,u,h,_),h;function D(i,s,c,u){if(!c&&n){i=t.aliasSymbol?t:i,s=r.aliasSymbol?r:s;var d=x>0;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=ra(t.symbol)?Zi(t,t.symbol.valueDeclaration):Zi(t),i=ra(r.symbol)?Zi(r,r.symbol.valueDeclaration):Zi(r);(vt===t&&Pe===r||bt===t&&we===r||xt===t&&Be===r||_u(!1)===t&&je===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&&pt===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=Zg(k.IntrinsicAttributes,a),g=Zg(k.IntrinsicClassAttributes,a);if(f!==Se&&g!==Se&&(e.contains(p,f)||e.contains(p,g)))return c}else l=Qs(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;n<i.length;n++){var a=J(i[n],t,!1);if(!a)return 0;r&=a}return r}function J(e,t,r){var n=t.types;if(1048576&t.flags&&Pu(n,e))return-1;for(var i=0,a=n;i<a.length;i++){var o=B(e,a[i],!1);if(o)return o}r&&B(e,r_(e,t,B)||n[n.length-1],!0);return 0}function K(e,t,r,n){var i=e.types;if(1048576&e.flags&&Pu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=B(i[o],t,r&&o===a-1,void 0,n);if(s)return s}return 0}function U(t,r,n,a){if(b)return 0;var o=__(t,r,a|(S?8:0),i),s=i.get(o);if(void 0!==s&&(!(n&&2&s)||4&s)){if(tr){var c=24&s;8&c&&_d(t,Yl(V)),16&c&&_d(t,Yl(q))}return 1&s?-1:0}if(p){for(var u=0;u<y;u++)if(o===p[u])return 1;if(100===h)return b=!0,0}else p=[],f=[],g=[];var d=y;p[y]=o,y++,f[h]=t,g[h]=r,h++;var _,m=v;1&v||!m_(t,f,h)||(v|=1),2&v||!m_(r,g,h)||(v|=2);var x=0;tr&&(_=tr,tr=function(e){return x|=e?16:8,_(e)});var D=3!==v?function(t,r,n,a){if(4&a)return Q(t,r,n,void 0,0);var o,s,c=t.flags&r.flags;if(i===en&&!(524288&c)){if(4194304&c)return B(t.type,r.type,!1);var u=0;return 8388608&c&&(u=B(t.objectType,r.objectType,!1))&&(u&=B(t.indexType,r.indexType,!1))||16777216&c&&t.root.isDistributive===r.root.isDistributive&&(u=B(t.checkType,r.checkType,!1))&&(u&=B(t.extendsType,r.extendsType,!1))&&(u&=B(ml(t),ml(r),!1))&&(u&=B(yl(t),yl(r),!1))?u:33554432&c?B(t.substitute,r.substitute,!1):0}var d=!1,_=w();if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){if((j=o_(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(J=H(t.aliasTypeArguments,r.aliasTypeArguments,j,a)))return J}if(J_(t)&&!t.target.readonly&&(o=B(Vc(t)[0],r))||J_(r)&&(r.target.readonly||T_(Ms(t)||t))&&(o=B(t,Vc(r)[0])))return o;if(262144&r.flags){if(32&e.getObjectFlags(t)&&B(Yu(r),gs(t))&&!(4&bs(t))){var p=ms(t),f=ul(r,fs(t));if(o=B(p,f,n))return o}}else if(4194304&r.flags){var g=r.type;if(4194304&t.flags&&(o=B(g,t.type,!1)))return o;if(B_(g)){if(o=B(t,Au(g),n))return o}else if((N=Ps(g))&&-1===B(t,Yu(N,r.stringsOnly),n))return-1}else if(8388608&r.flags){if(i===$r||i===Zr){var m=r.objectType,y=r.indexType,h=Ms(m)||m,v=Ms(y)||y;if(!rl(h)&&!nl(v))if((N=dl(h,v,void 0,2|(h!==m?1:0)))&&(o=B(t,N,n)))return o}}else if(Ss(r)){var b=ms(r),x=bs(r);if(!(8&x)){if(8388608&b.flags&&b.objectType===t&&b.indexType===fs(r))return-1;if(!Ss(t)){var D=gs(r),S=Yu(t,void 0,!0),T=4&x,E=T?os(D,S):void 0;if(T?!(131072&E.flags):B(D,S)){p=ms(r);var C=fs(r),k=Ef(p,-98305);if(8388608&k.flags&&k.indexType===C){if(o=B(t,k.objectType,n))return o}else{f=ul(t,E?Uu([E,C]):C);if(o=B(f,p,n))return o}}s=l,P(_)}}}if(8650752&t.flags){var N;if(8388608&t.flags&&8388608&r.flags){if((o=B(t.objectType,r.objectType,n))&&(o&=B(t.indexType,r.indexType,n)),o)return P(_),o}else if(!(N=As(t))||262144&t.flags&&1&N.flags){if(o=B($e,Ef(r,-67108865)))return P(_),o}else{if(o=B(N,r,!1,void 0,a))return P(_),o;if(o=B(Yo(N,t),r,n,void 0,a))return P(_),o}}else if(4194304&t.flags){if(o=B(Ge,r,n))return P(_),o}else if(16777216&t.flags){if(16777216&r.flags){var A=t.root.inferTypeParameters,F=t.extendsType,I=void 0;if(A){var O=yp(A,void 0,0,B);Op(O.inferences,r.extendsType,F,768),F=_d(F,O.mapper),I=O.mapper}if(Dd(F,r.extendsType)&&(B(t.checkType,r.checkType)||B(r.checkType,t.checkType))&&((o=B(_d(ml(t),I),ml(r),n))&&(o&=B(yl(t),yl(r),n)),o))return P(_),o}else{var M=Is(t);if(M&&(o=B(M,r,n)))return P(_),o}var L=ws(t);if(L&&(o=B(L,r,n)))return P(_),o}else{if(i!==Xr&&i!==Qr&&function(t){return!!(32&e.getObjectFlags(t)&&4&bs(t))}(r)&&Wd(t))return-1;if(Ss(r))return Ss(t)&&(o=function(e,t,r){if(i===Zr||(i===en?bs(e)===bs(t):Ds(e)<=Ds(t))){var n;if(n=B(gs(t),_d(gs(e),Yl(Ds(e)<0?V:q)),r)){var a=Wl([fs(e)],[fs(t)]);return n&B(_d(ms(e),a),ms(t),r)}}return 0}(t,r,n))?(P(_),o):0;var R=!!(131068&t.flags);if(i!==en)t=zs(t);else if(Ss(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!(8192&e.getObjectFlags(t)||8192&e.getObjectFlags(r))){var j,J;if((j=c_(t.target))===e.emptyArray)return 1;if(void 0!==(J=H(Vc(t),Vc(r),j,a)))return J}else{if(S_(r)?D_(t)||B_(t):D_(r)&&B_(t)&&!t.target.readonly)return i!==en?B(ic(t,1)||be,ic(r,1)||be,n):0;if((i===Xr||i===Qr)&&Wd(r)&&32768&e.getObjectFlags(r)&&!Wd(t))return 0}if(2621440&t.flags&&524288&r.flags){var K=n&&l===_.errorInfo&&!R;if((o=Q(t,r,K,void 0,a))&&(o&=$(t,r,0,K))&&(o&=$(t,r,1,K))&&(o&=ne(t,r,0,R,K,a))&&(o&=ne(t,r,1,R,K,a)),d&&o)l=s||l||_.errorInfo;else if(o)return o}if(2621440&t.flags&&1048576&r.flags){var z=Ef(r,36175872);if(1048576&z.flags){var U=function(t,r){var n=$p(Ns(t),r);if(!n)return 0;for(var a=1,o=0,s=n;o<s.length;o++){if((a*=Sf(ro(d=s[o])))>25)return 0}for(var c=new Array(n.length),u=new e.Set,l=0;l<n.length;l++){var d,_=ro(d=n[l]);c[l]=1048576&_.flags?_.types:[_],u.add(d.escapedName)}for(var p=e.cartesianProduct(c),f=[],g=function(a){var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var u=c[s],l=function(e){var o=n[e],s=$s(u,o.escapedName);return s?o===s?"continue":G(t,r,o,s,(function(t){return a[e]}),!1,0,W||i===Zr)?void 0:"continue-outer":"continue-outer"},d=0;d<n.length;d++){switch(l(d)){case"continue-outer":continue e}}e.pushIfUnique(f,u,e.equateValues),o=!0}if(!o)return{value:0}},m=0,y=p;m<y.length;m++){var h=g(y[m]);if("object"==typeof h)return h.value}for(var v=-1,b=0,x=f;b<x.length;b++){var D=x[b];if((v&=Q(t,D,!1,u,0))&&(v&=$(t,D,0,!1))&&(v&=$(t,D,1,!1))&&(!(v&=ne(t,D,0,!1,!1,0))||B_(t)&&B_(D)||(v&=ne(t,D,1,!1,!1,0))),!v)return v}return v}(t,z);if(U)return U}}}return 0;function H(t,r,a,c){if(o=function(t,r,n,a,o){if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===n&&(n=e.emptyArray),t.length!==r.length&&i===en)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,u=0;u<s;u++){var l=u<n.length?n[u]:1,d=7&l;if(4!==d){var _=t[u],p=r[u],f=-1;if(8&l?f=i===en?B(_,p,!1):Sd(_,p):1===d?f=B(_,p,a,void 0,o):2===d?f=B(p,_,a,void 0,o):3===d?(f=B(p,_,!1))||(f=B(_,p,a,void 0,o)):(f=B(_,p,a,void 0,o))&&(f&=B(p,_,a,void 0,o)),!f)return 0;c&=f}}return c}(t,r,a,n,c))return o;if(e.some(a,(function(e){return!!(24&e)})))return s=void 0,void P(_);var u=r&&function(e,t){for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1}(r,a);if(d=!u,a!==e.emptyArray&&!u){if(d&&(!n||!e.some(a,(function(e){return 0==(7&e)}))))return 0;s=l,P(_)}}}(t,r,n,a):1;if(tr&&(tr=_),v=m,h--,D){if(-1===D||0===h){for(u=d;u<y;u++)i.set(p[u],1|x);y=d}}else i.set(o,2|(n?4:0)|x),y=d;return D}function V(e){return!tr||e!==st&&e!==ct&&e!==rr||tr(!1),e}function q(e){return!tr||e!==st&&e!==ct&&e!==rr||tr(!0),e}function H(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function G(t,r,n,i,a,o,s,c){var u=e.getDeclarationModifierFlagsFromSymbol(n),l=e.getDeclarationModifierFlagsFromSymbol(i);if(8&u||8&l){if(n.valueDeclaration!==i.valueDeclaration)return o&&(8&u&&8&l?M(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Qi(i)):M(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Qi(i),Zi(8&u?t:r),Zi(8&u?r:t))),0}else if(16&l){if(!function(t,r){return!p_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=f_(r),!p_(n,(function(e){var t=f_(e);return!!t&&ao(t,i)})));var n,i}))}(n,i))return o&&M(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Qi(i),Zi(f_(n)||t),Zi(f_(i)||r)),0}else if(16&u)return o&&M(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Qi(i),Zi(t),Zi(r)),0;var d=function(t,r,n,i,a){var o=W&&!!(48&e.getCheckFlags(r)),s=n(t);if(65536&e.getCheckFlags(r)&&!vn(r).type){var c=vn(r);e.Debug.assertIsDefined(c.deferralParent),e.Debug.assertIsDefined(c.deferralConstituents);for(var u=!!(1048576&c.deferralParent.flags),l=u?0:-1,d=0,_=c.deferralConstituents;d<_.length;d++){var p=B(s,_[d],!1,void 0,u?0:2);if(u){if(p)return p}else{if(!p)return B(s,ka(ro(r),o),i);l&=p}}return u&&!l&&o&&(l=B(s,Ce)),u&&!l&&i?B(s,ka(ro(r),o),i):l}return B(s,ka(ro(r),o),i,void 0,a)}(n,i,a,o,s);return d?c||!(16777216&n.flags)||16777216&i.flags?d:(o&&M(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Qi(i),Zi(t),Zi(r)),0):(o&&I(e.Diagnostics.Types_of_property_0_are_incompatible,Qi(i)),0)}function Y(t,n,i,a){var s=!1;if(i.valueDeclaration&&e.isNamedDeclaration(i.valueDeclaration)&&e.isPrivateIdentifier(i.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=i.valueDeclaration.name.escapedText,d=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(d&&$s(t,d)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),f=e.factory.getDeclarationName(n.symbol.valueDeclaration);return void M(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,An(c),An(""===p.escapedText?u:p),An(""===f.escapedText?u:f))}}var g,m=e.arrayFrom(Ap(t,n,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===m.length){var y=Qi(i);M.apply(void 0,r([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],ea(t,n))),e.length(i.declarations)&&(g=e.createDiagnosticForNode(i.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!l),_?_.push(g):_=[g]),s&&l&&x++}else R(t,n,!1)&&(m.length>5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Zi(t),Zi(n),e.map(m.slice(0,4),(function(e){return Qi(e)})).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Zi(t),Zi(n),e.map(m,(function(e){return Qi(e)})).join(", ")),s&&l&&x++)}function Q(t,r,n,a,o){if(i===en)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=H(Es(e),r),i=H(Es(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],u=Cs(t,c.escapedName);if(!u)return 0;var l=v_(c,u,B);if(!l)return 0;a&=l}return a}(t,r,a);var s=-1;if(B_(r)){if(D_(t)||B_(t)){if(!r.target.readonly&&(S_(t)||B_(t)&&t.target.readonly))return 0;var c=qc(t),u=qc(r),l=B_(t)?4&t.target.combinedFlags:4,d=4&r.target.combinedFlags,_=B_(t)?t.target.minLength:0,p=r.target.minLength;if(!l&&c<p)return n&&M(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,c,p),0;if(!d&&u<_)return n&&M(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,_,u),0;if(!d&&l)return n&&(_<p?M(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,p):M(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,u)),0;for(var f=Math.max(c,u),g=0;g<f;g++){var m=g<u?r.target.elementFlags[g]:d,y=B_(t)&&g<c?t.target.elementFlags[g]:l,h=!!a;if(y&&m){if(8&m&&!(8&y)||8&y&&!(12&m))return n&&M(e.Diagnostics.Element_at_index_0_is_variadic_in_one_type_but_not_in_the_other,g),0;if(1&m&&!(1&y))return n&&M(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,g,Zi(t),Zi(r)),0;if(h&&((12&y||12&m)&&(h=!1),h&&(null==a?void 0:a.has(""+g))))continue;var v=Vc(t)[Math.min(g,c-1)],b=Vc(r)[Math.min(g,u-1)];if(!(w=B(v,8&y&&4&m?vu(b):b,n,void 0,o)))return n&&I(e.Diagnostics.Types_of_property_0_are_incompatible,g),0;s&=w}}return s}if(12&r.target.combinedFlags)return 0}var x=!(i!==Xr&&i!==Qr||Rp(t)||k_(t)||B_(t)),D=Fp(t,r,x,!1);if(D)return n&&Y(t,r,D,x),0;if(Rp(r))for(var S=0,T=H(Ns(t),a);S<T.length;S++){if(!Cs(r,(A=T[S]).escapedName))if((v=ro(A))!==Ce&&v!==ke&&v!==Ne)return n&&M(e.Diagnostics.Property_0_does_not_exist_on_type_1,Qi(A),Zi(r)),0}for(var E=Ns(r),C=B_(t)&&B_(r),k=0,N=H(E,a);k<N.length;k++){var A,F=N[k],P=F.escapedName;if(!(4194304&F.flags)&&(!C||Kg(P)||"length"===P))if((A=$s(t,P))&&A!==F){var w;if(!(w=G(t,r,A,F,ro,n,o,i===Zr)))return 0;s&=w}}return s}function $(t,r,n,a){if(i===en)return function(e,t,r){var n=ec(e,r),i=ec(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=b_(n[o],i[o],!1,!1,!1,B);if(!s)return 0;a&=s}return a}(t,r,n);if(r===nt||t===nt)return-1;var o=t.symbol&&My(t.symbol.valueDeclaration),s=r.symbol&&My(r.symbol.valueDeclaration),c=ec(t,o&&1===n?0:n),u=ec(r,s&&1===n?0:n);if(1===n&&c.length&&u.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(r))return a&&M(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,r,n){if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);if(8===a)return!0;if(16===a&&8!==i)return!0;if(16!==a&&!i)return!0;n&&M(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,aa(i),aa(a));return!1}(c[0],u[0],a))return 0}var l=-1,d=w(),_=1===n?ee:Z;if(64&e.getObjectFlags(t)&&64&e.getObjectFlags(r)&&t.symbol===r.symbol)for(var p=0;p<u.length;p++){if(!(x=te(c[p],u[p],!0,a,_(c[p],u[p]))))return 0;l&=x}else if(1===c.length&&1===u.length){var f=i===Zr||!!z.noStrictGenericChecks;l=te(c[0],u[0],f,a,_(c[0],u[0]))}else e:for(var g=0,m=u;g<m.length;g++){for(var y=m[g],h=a,v=0,b=c;v<b.length;v++){var x,D=b[v];if(x=te(D,y,!0,h,_(D,y))){l&=x,P(d);continue e}h=!1}return h&&M(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Zi(t),$i(y,void 0,void 0,n)),0}return l}function Z(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return I(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Zi(t),Zi(r))}:function(t,r){return I(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Zi(t),Zi(r))}}function ee(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return I(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Zi(t),Zi(r))}:function(t,r){return I(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Zi(t),Zi(r))}}function te(e,t,r,n,a){return Ud(r?Nc(e):e,r?Nc(t):t,i===Qr?8:0,n,M,a,B,Yl(q))}function re(t,r,n){var i=B(t,r,n);return!i&&n&&M(e.Diagnostics.Index_signatures_are_incompatible),i}function ne(t,r,n,a,o,s){if(i===en)return function(e,t,r){var n=nc(t,r),i=nc(e,r);if(!i&&!n)return-1;if(i&&n&&i.isReadonly===n.isReadonly)return B(i.type,n.type);return 0}(t,r,n);var c=ic(r,n);if(!c||1&c.flags&&!a)return-1;if(Ss(t))return ic(r,0)?B(ms(t),c,o):0;var u=ic(t,n)||1===n&&ic(t,0);if(u)return re(u,c,o);if(!(1&s)&&ip(t)){var l=function(t,r,n,i){for(var a=-1,o=0,s=2097152&t.flags?ks(t):Es(t);o<s.length;o++){var c=s[o];if(!$d(t,c)){var u=vn(c).nameType;if(!(u&&8192&u.flags)&&(0===n||Kg(c.escapedName))){var l=B(ro(c),r,i);if(!l)return i&&M(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Qi(c)),0;a&=l}}}return a}(t,c,n,o);if(l&&0===n){var d=ic(t,1);d&&(l&=re(d,c,o))}return l}return o&&M(e.Diagnostics.Index_signature_is_missing_in_type_0,Zi(t)),0}}function t_(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,t_);if(63176704&t.flags){var r=As(t);if(r)return t_(r)}return P_(t)}function r_(t,r,n){return void 0===n&&(n=Td),tS(t,r,n,!0)||function(t,r){var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(function(r){if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))}(t,r)||function(t,r){if(128&e.getObjectFlags(t)&&bf(r,C_))return e.find(r.types,(function(e){return!C_(e)}))}(t,r)||function(t,r){var n=0;if(ec(t,n).length>0||ec(t,n=1).length>0)return e.find(r.types,(function(e){return ec(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a<o.length;a++){var s=o[a],c=Uu([Yu(t),Yu(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var u=e.length(e.filter(c.types,P_));u>=i&&(n=s,i=u)}else P_(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function n_(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s<c.length;s++){var u=c[s],l=u[0],d=u[1],_=qs(t,d);if(!(a&&_&&16&e.getCheckFlags(_)))for(var p=0,f=0,g=t.types;f<g.length;f++){var m=ya(g[f],d);m&&n(l(),m)?o[p]=void 0===o[p]||o[p]:o[p]=!1,p++}}var y=o.indexOf(!0);return-1===y||-1!==o.indexOf(!0,y+1)?i:t.types[y]}function i_(t){if(524288&t.flags){var r=Ts(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo&&r.properties.length>0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,i_)}function a_(t,r,n){var i=Kc(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=8192,i}function o_(e){var t=vn(e);return s_(t.typeParameters,t,(function(r,n,i){var a=Hc(e,Vl(t.typeParameters,Gl(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function s_(t,r,n){void 0===t&&(t=e.emptyArray);var i=r.variances;if(!i){r.variances=e.emptyArray,i=[];for(var a=function(e){var t=!1,a=!1,o=tr;tr=function(e){return e?a=!0:t=!0};var s=n(r,e,st),c=n(r,e,ct),u=(kd(c,s)?1:0)|(kd(s,c)?2:0);3===u&&kd(n(r,e,rr),s)&&(u=4),tr=o,(t||a)&&(t&&(u|=8),a&&(u|=16)),i.push(u)},o=0,s=t;o<s.length;o++){a(s[o])}r.variances=i}return i}function c_(e){return e===yt||e===ht||8&e.objectFlags?K:s_(e.typeParameters,e,a_)}function u_(e){return 262144&e.flags&&!Fs(e)}function l_(t){return function(t){return!!(4&e.getObjectFlags(t))&&!t.node}(t)&&e.some(Vc(t),(function(e){return u_(e)||l_(e)}))}function d_(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=Vc(e);i<a.length;i++){var o=a[i];if(u_(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&l_(o)?n+="<"+d_(o,t,r+1)+">":n+="-"+o.id}return n}function __(e,t,r,n){if(n===en&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(l_(e)&&l_(t)){var o=[];return d_(e,o)+","+d_(t,o)+a}return e.id+","+t.id+a}function p_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=$s(i[n],t.escapedName),o=a&&p_(a,r);if(o)return o}}function f_(e){return e.parent&&32&e.parent.flags?Ao(bi(e)):void 0}function g_(e){var t=f_(e),r=t&&ho(t)[0];return r&&ya(r,e.escapedName)}function m_(t,r,n){if(n>=5&&524288&t.flags){if(!Bp(t)){var i=t.symbol;if(i)for(var a=0,o=0;o<n;o++){if(524288&(c=r[o]).flags&&c.symbol===i&&++a>=5)return!0}}if(e.getObjectFlags(t)&&t.node){var s=t.target;for(a=0,o=0;o<n;o++){var c=r[o];if(e.getObjectFlags(c)&&c.node&&c.target===s&&++a>=5)return!0}}}if(n>=5&&8388608&t.flags)for(s=y_(t),a=0,o=0;o<n;o++){if(y_(c=r[o])===s&&++a>=5)return!0}return!1}function y_(e){for(var t=e;8388608&t.flags;)t=t.objectType;return t}function h_(e,t){return 0!==v_(e,t,Sd)}function v_(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(ix(t)!==ix(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Eh(t)!==Eh(r)?0:n(ro(t),ro(r))}function b_(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=rh(e),i=rh(t),a=nh(e),o=nh(t),s=ih(e),c=ih(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=Wl(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++){if(!((g=t.typeParameters[c])===(p=r.typeParameters[c])||o(_d(Rc(g),s)||Ee,Rc(p)||Ee)&&o(_d(Js(g),s)||Ee,Js(p)||Ee)))return 0}t=nd(t,s,!0)}var u=-1;if(!i){var l=vc(t);if(l){var d=vc(r);if(d){if(!(f=o(l,d)))return 0;u&=f}}}var _=rh(r);for(c=0;c<_;c++){var p,f,g=Zy(t,c);if(!(f=o(p=Zy(r,c),g)))return 0;u&=f}if(!a){var m=bc(t),y=bc(r);u&=m||y?function(e,t,r){return e&&t&&Ru(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0}(m,y,o):o(xc(t),xc(r))}return u}function x_(t){return function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=I_(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?Lu(t):e.reduceLeft(t,(function(e,t){return Cd(e,t)?t:e}))}function D_(t){return!!(4&e.getObjectFlags(t))&&(t.target===yt||t.target===ht)}function S_(t){return!!(4&e.getObjectFlags(t))&&t.target===ht}function T_(e){return D_(e)&&!S_(e)||B_(e)&&!e.target.readonly}function E_(e){return D_(e)?Vc(e)[0]:void 0}function C_(e){return D_(e)||!(98304&e.flags)&&kd(e,Ct)}function k_(e){var t=D_(e)?Vc(e)[0]:void 0;return t===ke||t===Ve}function N_(e){return B_(e)||!!$s(e,"0")}function A_(e){return C_(e)||N_(e)}function F_(e){return!(240512&e.flags)}function P_(e){return!!(109440&e.flags)}function w_(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,P_):P_(t))}function I_(t){return 1024&t.flags?Eo(t):128&t.flags?Pe:256&t.flags?we:2048&t.flags?Ie:512&t.flags?Be:1048576&t.flags?Lu(e.sameMap(t.types,I_)):t}function O_(t){return 1024&t.flags&&Ml(t)?Eo(t):128&t.flags&&Ml(t)?Pe:256&t.flags&&Ml(t)?we:2048&t.flags&&Ml(t)?Ie:512&t.flags&&Ml(t)?Be:1048576&t.flags?Lu(e.sameMap(t.types,O_)):t}function M_(t){return 8192&t.flags?je:1048576&t.flags?Lu(e.sameMap(t.types,M_)):t}function L_(e,t){return Hh(e,t)||(e=M_(O_(e))),e}function R_(e,t,r,n){e&&P_(e)&&(e=L_(e,t?qb(r,t,n):void 0));return e}function B_(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function j_(e){return B_(e)&&!!(8&e.target.combinedFlags)}function J_(e){return j_(e)&&1===e.target.elementFlags.length}function K_(e){return U_(e,e.target.fixedLength)}function z_(t){return B_(t)?qc(t)-e.findLastIndex(t.target.elementFlags,(function(e){return!(3&e)}))-1:0}function U_(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=qc(e)-r;if(t<i){for(var a=Vc(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?ul(c,we):c)}return n?Uu(o):Lu(o)}}function V_(e){return"0"===e.value.base10Value}function q_(e){for(var t=0,r=0,n=e;r<n.length;r++){t|=W_(n[r])}return t}function W_(e){return 1048576&e.flags?q_(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?V_(e)?2048:0:512&e.flags?e===Oe||e===Me?512:0:117724&e.flags}function H_(e){return 117632&W_(e)?Df(e,(function(e){return!(117632&W_(e))})):e}function G_(e){return Tf(e,Y_)}function Y_(e){return 4&e.flags?Tr:8&e.flags?Er:64&e.flags?Cr:e===Me||e===Oe||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&V_(e)?e:Ke}function X_(e,t){var r=t&~e.flags&98304;return 0===r?e:Lu(32768===r?[e,Ce]:65536===r?[e,Ae]:[e,Ce,Ae])}function Q_(t){return e.Debug.assert(W),32768&t.flags?t:Lu([t,Ce])}function $_(e){return W?function(e){return kt||(kt=uu("NonNullable",524288,void 0)||he),kt!==he?Hc(kt,[e]):af(e,2097152)}(e):e}function Z_(e){return W?Lu([e,Ne]):e}function ep(e){return e!==Ne}function tp(e){return W?Df(e,ep):e}function rp(t,r,n){return n?e.isOutermostOptionalChain(r)?Q_(t):Z_(t):t}function np(t,r){return e.isExpressionOfOptionalChainRoot(r)?$_(t):e.isOptionalChain(r)?tp(t):t}function ip(t){return 2097152&t.flags?e.every(t.types,ip):!(!t.symbol||0==(7040&t.symbol.flags)||Vx(t))||!!(2048&e.getObjectFlags(t)&&ip(t.source))}function ap(t,r){var n=ln(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=vn(t).nameType;return i&&(n.nameType=i),n}function op(t){if(!(Rp(t)&&32768&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Es(t);i<a.length;i++){var o=a[i],s=ro(o),c=r(s);n.set(o.escapedName,c===s?o:ap(o,c))}return n}(t,op),a=Li(n.symbol,i,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);return a.flags=n.flags,a.objectFlags|=-32769&n.objectFlags,t.regularType=a,a}function sp(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function cp(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=function e(t){if(!t.siblings){for(var r=[],n=0,i=e(t.parent);n<i.length;n++){var a=i[n];if(Rp(a)){var o=Cs(a,t.propertyName);o&&bf(ro(o),(function(e){r.push(e)}))}}t.siblings=r}return t.siblings}(t);n<i.length;n++){var a=i[n];if(Rp(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=Ns(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function up(e,t){if(!(4&e.flags))return e;var r=ro(e),n=_p(r,t&&sp(t,e.escapedName,void 0));return n===r?e:ap(e,n)}function lp(e){var t=ye.get(e.escapedName);if(t)return t;var r=ap(e,Ce);return r.flags|=16777216,ye.set(e.escapedName,r),r}function dp(e){return _p(e,void 0)}function _p(t,r){if(1572864&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=be;else if(Rp(t))n=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Es(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,up(o,r))}if(r)for(var s=0,c=cp(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,lp(o));var u=nc(t,0),l=nc(t,1),d=Li(t.symbol,n,e.emptyArray,e.emptyArray,u&&Oc(dp(u.type),u.isReadonly),l&&Oc(dp(l.type),l.isReadonly));return d.objectFlags|=2113536&e.getObjectFlags(t),d}(t,r);else if(1048576&t.flags){var i=r||sp(void 0,void 0,t.types),a=e.sameMap(t.types,(function(e){return 98304&e.flags?e:_p(e,i)}));n=Lu(a,e.some(a,Wd)?2:1)}else 2097152&t.flags?n=Uu(e.sameMap(t.types,dp)):(D_(t)||B_(t))&&(n=Kc(t.target,e.sameMap(Vc(t),dp)));return n&&void 0===r&&(t.widened=n),n||t}return t}function pp(t,r,n){var i=Zi(dp(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),z)){var a;switch(t.kind){case 213:case 162:case 161:a=X?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 159:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(En(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 cn(X,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?X?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:X?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 195:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!X)return;break;case 304:return void on(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 248:case 164:case 163:case 166:case 167:case 205:case 206:if(X&&!t.name)return void on(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=X?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 189:return void(X&&on(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=X?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}cn(X,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function fp(t,r,n){!(i&&X&&524288&e.getObjectFlags(r))||n&&Og(t)||function t(r){var n=!1;if(524288&e.getObjectFlags(r)){if(1048576&r.flags)if(e.some(r.types,Wd))n=!0;else for(var i=0,a=r.types;i<a.length;i++)t(d=a[i])&&(n=!0);if(D_(r)||B_(r))for(var o=0,s=Vc(r);o<s.length;o++)t(d=s[o])&&(n=!0);if(Rp(r))for(var c=0,u=Es(r);c<u.length;c++){var l=u[c],d=ro(l);524288&e.getObjectFlags(d)&&(t(d)||on(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Qi(l),Zi(dp(d))),n=!0)}}return n}(r)||pp(t,r,n)}function gp(e,t,r){var n=rh(e),i=rh(t),a=ah(e),o=ah(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=vc(e);if(u){var l=vc(t);l&&r(u,l)}for(var d=0;d<c;d++)r(Zy(e,d),Zy(t,d));o&&r(th(e,c),o)}function mp(e,t,r){var n=bc(e),i=bc(t);n&&i&&Ru(n,i)&&n.type&&i.type?r(n.type,i.type):r(xc(e),xc(t))}function yp(e,t,r,n){return hp(e.map(xp),t,r,n||Td)}function hp(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:Yl((function(e){return vp(i,e,!0)})),nonFixingMapper:Yl((function(e){return vp(i,e,!1)}))};return i}function vp(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(bp(n),a.isFixed=!0),Kp(e,i)}return t}function bp(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function xp(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Dp(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function Sp(e){return e&&e.mapper}function Tp(t){var r=e.getObjectFlags(t);if(67108864&r)return!!(134217728&r);var n=!!(63176704&t.flags||524288&t.flags&&!Ep(t)&&(4&r&&(t.node||e.forEach(Vc(t),Tp))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||131104&r)||3145728&t.flags&&!(1024&t.flags)&&!Ep(t)&&e.some(t.types,Tp));return 3899393&t.flags&&(t.objectFlags|=67108864|(n?134217728:0)),n}function Ep(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,251);return!(!r||!e.findAncestor(r.parent,(function(e){return 294===e.kind||253!==e.kind&&"quit"})))}return!1}function Cp(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(function(e){return Cp(e,r)}))||16777216&t.flags&&(Cp(ml(t),r)||Cp(yl(t),r)))}function kp(t,r,n){if(!yr){var i=t.id+","+r.id+","+n.id;if(mr.has(i))return mr.get(i);yr=!0;var a=function(t,r,n){if(!(nc(t,0)||0!==Ns(t).length&&function t(r){return!(2097152&e.getObjectFlags(r))||Rp(r)&&e.some(Ns(r),(function(e){return t(ro(e))}))}(t)))return;if(D_(t))return vu(Np(Vc(t)[0],r,n),S_(t));if(B_(t)){return Eu(e.map(Vc(t),(function(e){return Np(e,r,n)})),4&bs(r)?e.sameMap(t.target.elementFlags,(function(e){return 2&e?1:e})):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations)}var i=Pi(2064,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}(t,r,n);return yr=!1,mr.set(i,a),a}}function Np(e,t,r){var n=ul(r.type,fs(t)),i=ms(t),a=xp(n);return Op([a],e,i),Pp(a)||Ee}function Ap(t,r,n,i){var a,s,c,u,l,d,_;return o(this,(function(o){switch(o.label){case 0:a=Ns(r),s=0,c=a,o.label=1;case 1:return s<c.length?Ro(u=c[s])||!n&&(16777216&u.flags||48&e.getCheckFlags(u))?[3,5]:(l=$s(t,u.escapedName))?[3,3]:[4,u]:[3,6];case 2:return o.sent(),[3,5];case 3:return i&&109440&(d=ro(u)).flags?1&(_=ro(l)).flags||Ol(_)===Ol(d)?[3,5]:[4,u]:[3,5];case 4:o.sent(),o.label=5;case 5:return s++,[3,1];case 6:return[2]}}))}function Fp(e,t,r,n){var i=Ap(e,t,r,n).next();if(!i.done)return i.value}function Pp(e){return e.candidates?Lu(e.candidates,2):e.contraCandidates?Uu(e.contraCandidates):void 0}function wp(e){return!!bn(e).skipDirectInference}function Ip(t){return!(!t.symbol||!e.some(t.symbol.declarations,wp))}function Op(t,r,n,i,a){var o,s;void 0===i&&(i=0),void 0===a&&(a=!1);var c,u=!1,l=1024,d=!0,_=0,p=[];function f(r,o){if(Tp(o)){if(r===De){var s=c;return c=r,f(o,o),void(c=s)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===o.aliasSymbol)h(r.aliasTypeArguments,o.aliasTypeArguments,o_(r.aliasSymbol));else if(r===o&&3145728&r.flags)for(var _=0,p=r.types;_<p.length;_++){var v=p[_];f(v,v)}else{if(1048576&o.flags){var S=y(1048576&r.flags?r.types:[r],o.types,Mp),T=y(S[0],S[1],Lp),E=T[0];if(0===(k=T[1]).length)return;if(o=Lu(k),0===E.length)return void g(r,o,1);r=Lu(E)}else if(2097152&o.flags&&e.some(o.types,(function(e){return!!b(e)||Ss(e)&&!!b(od(e)||Ke)}))){if(!(1048576&r.flags)){var C=y(2097152&r.flags?r.types:[r],o.types,Dd),k=(E=C[0],C[1]);if(0===E.length||0===k.length)return;r=Uu(E),o=Uu(k)}}else 41943040&o.flags&&(o=fl(o));if(8650752&o.flags){if(2097152&e.getObjectFlags(r)||r===Te||r===ze||64&i&&(r===xe||r===Et)||Ip(r))return;var N=b(o);if(N){if(!N.isFixed){if((void 0===N.priority||i<N.priority)&&(N.candidates=void 0,N.contraCandidates=void 0,N.topLevel=!0,N.priority=i),i===N.priority){var A=c||r;a&&!u?e.contains(N.contraCandidates,A)||(N.contraCandidates=e.append(N.contraCandidates,A),bp(t)):e.contains(N.candidates,A)||(N.candidates=e.append(N.candidates,A),bp(t))}!(64&i)&&262144&o.flags&&N.topLevel&&!Cp(n,o)&&(N.topLevel=!1,bp(t))}return void(l=Math.min(l,i))}if((R=al(o,!1))!==o)m(r,R,f);else if(8388608&o.flags){var F=al(o.indexType,!1);if(63176704&F.flags){var P=ol(al(o.objectType,!1),F,!1);P&&P!==o&&m(r,P,f)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(o)&&(r.target===o.target||D_(r)&&D_(o)))||r.node&&o.node)if(4194304&r.flags&&4194304&o.flags)a=!a,f(r.type,o.type),a=!a;else if((w_(r)||4&r.flags)&&4194304&o.flags){var w=function(t){var r=e.createSymbolTable();bf(t,(function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=ln(4,n);i.type=be,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?Oc($e,!1):void 0;return Li(void 0,r,e.emptyArray,e.emptyArray,n,void 0)}(r);a=!a,g(w,o.type,128),a=!a}else if(8388608&r.flags&&8388608&o.flags)f(r.objectType,o.objectType),f(r.indexType,o.indexType);else if(16777216&r.flags&&16777216&o.flags)f(r.checkType,o.checkType),f(r.extendsType,o.extendsType),f(ml(r),ml(o)),f(yl(r),yl(o));else if(16777216&o.flags){var I=i;i|=a?32:0,x(r,[ml(o),yl(o)],o.flags),i=I}else if(3145728&o.flags)x(r,o.types,o.flags);else if(1048576&r.flags)for(var O=0,M=r.types;O<M.length;O++){f(M[O],o)}else{if(r=Hs(r),!(256&i&&65273856&r.flags)){var L=zs(r);if(L!==r&&d&&!(2621440&L.flags))return d=!1,f(L,o);r=L}2621440&r.flags&&m(r,o,D)}else h(Vc(r),Vc(o),c_(r.target));var R;if(25165824&r.flags)(R=al(r,a))!==r&&f(R,o)}}}function g(e,t,r){var n=i;i|=r,f(e,t),i=n}function m(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=l;l=1024,n(t,r),s.set(i,l),l=Math.min(l,o)}else l=Math.min(l,a)}function y(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],u=0,l=t;u<l.length;u++){var d=l[u];n(d,c)&&(f(d,c),i=e.appendIfUnique(i,d),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(function(t){return!e.contains(i,t)})):t,a?e.filter(r,(function(t){return!e.contains(a,t)})):r]}function h(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?v(e[i],t[i]):f(e[i],t[i])}function v(e,t){H||512&i?(a=!a,f(e,t),a=!a):f(e,t)}function b(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),u=!1,d=0,_=r;d<_.length;d++){if(b(T=_[d]))o=T,a++;else for(var p=0;p<s.length;p++){var m=l;l=1024,f(s[p],T),l===i&&(c[p]=!0),u=u||-1===l,l=Math.min(l,m)}}if(0===a){var y=function(t){for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(function(e){return!!b(e)}));if(!o||r&&o!==r)return;r=o}return r}(r);return void(y&&g(t,y,1))}if(1===a&&!u){var h=e.flatMap(s,(function(e,t){return c[t]?void 0:e}));if(h.length)return void f(Lu(h),o)}}else for(var v=0,x=r;v<x.length;v++){b(T=x[v])?a++:f(t,T)}if(2097152&n?1===a:a>0)for(var D=0,S=r;D<S.length;D++){var T;b(T=S[D])&&g(t,T,1)}}function D(t,r){var n=524288&r.flags&&!(16&e.getObjectFlags(r)&&r.symbol&&32&r.symbol.flags),i=4&e.getObjectFlags(r)&&r.node?Zd(r,!1):n?B_(r)?r.target:r.symbol:void 0;if(i){if(e.contains(o,i)){if(4&e.getObjectFlags(r)&&r.node)return;return void(l=-1)}if(p[_]=r,_++,m_(r,p,_))return l=-1,void _--;(o||(o=[])).push(i),S(t,r),o.pop(),_--}else S(t,r)}function S(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||D_(t)&&D_(r)))h(Vc(t),Vc(r),c_(t.target));else{var n,i;if(Ss(t)&&Ss(r)&&(f(gs(t),gs(r)),f(ms(t),ms(r))),32&e.getObjectFlags(r))if(function t(r,n,i){if(1048576&i.flags){for(var a=!1,o=0,s=i.types;o<s.length;o++)a=t(r,n,s[o])||a;return a}if(4194304&i.flags){var c=b(i.type);if(c&&!c.isFixed&&!Ip(r)){var u=kp(r,n,i);u&&g(u,c.typeParameter,2097152&e.getObjectFlags(r)?8:4)}return!0}if(262144&i.flags){g(Yu(r),i,16);var l=As(i);if(l&&t(r,n,l))return!0;var d=e.map(Ns(r),ro),_=ic(r,0),p=Gu(r),m=p&&p.type;return f(Lu(e.append(e.append(d,_),m)),ms(n)),!0}return!1}(t,r,gs(r)))return;if(!function(e,t){return B_(e)&&B_(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!Fp(e,t,!1,!0)&&!!Fp(t,e,!1,!0)}(t,r)){if(D_(t)||B_(t)){if(B_(r)){var a=qc(t),o=qc(r),s=Vc(r),c=r.target.elementFlags;if(B_(t)&&(i=r,qc(n=t)===qc(i)&&e.every(n.target.elementFlags,(function(e,t){return(12&e)==(12&i.target.elementFlags[t])})))){for(var u=0;u<o;u++)f(Vc(t)[u],s[u]);return}var l=B_(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,d=!B_(t)||a>0&&4&t.target.elementFlags[a-1]?Vc(t)[a-1]:void 0,_=12&r.target.combinedFlags?d?z_(r):Math.min(z_(t),z_(r)):0,p=d?0:_;for(u=0;u<l;u++)f(Vc(t)[u],s[u]);if(d&&a-l==1)for(u=l;u<o-_;u++)f(8&c[u]?vu(d):d,s[u]);else{var m=o-l-_;if(2===m&&c[l]&c[l+1]&8&&B_(t)){var y=b(s[l]);y&&void 0!==y.impliedArity&&(f(Nu(t,l,p+a-y.impliedArity),s[l]),f(Nu(t,l+y.impliedArity,p),s[l+1]))}else if(1===m&&8&c[l]){var v=2&r.target.elementFlags[o-1];g(B_(t)?Nu(t,l,p):vu(d),s[l],v?2:0)}else if(1===m&&4&c[l]){var x=B_(t)?U_(t,l,p):d;x&&f(x,s[l])}}for(u=0;u<_;u++)f(d||Vc(t)[a-u-1],s[o-u-1]);return}if(D_(r))return void C(t,r)}!function(e,t){for(var r=Es(t),n=0,i=r;n<i.length;n++){var a=i[n],o=$s(e,a.escapedName);o&&f(ro(o),ro(a))}}(t,r),T(t,r,0),T(t,r,1),C(t,r)}}}function T(t,r,n){for(var i=ec(t,n),a=ec(r,n),o=i.length,s=a.length,c=o<s?o:s,u=!!(2097152&e.getObjectFlags(t)),l=0;l<c;l++)E(Fc(i[o-c+l]),Nc(a[s-c+l]),u)}function E(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||164===i||163===i||165===i,gp(e,t,v),u=n}mp(e,t,f)}function C(e,t){var r=ic(t,0);r&&((n=ic(e,0)||ac(e,0))&&f(n,r));var n,i=ic(t,1);i&&((n=ic(e,1)||ic(e,0)||ac(e,1))&&f(n,i))}f(r,n)}function Mp(e,t){return Dd(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Lp(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Rp(t){return!!(128&e.getObjectFlags(t))}function Bp(t){return!!(65664&e.getObjectFlags(t))}function jp(t){return 208&t.priority?Uu(t.contraCandidates):function(t){return e.reduceLeft(t,(function(e,t){return Cd(t,e)?t:e}))}(t.contraCandidates)}function Jp(t,r){var n=function(t){if(t.length>1){var r=e.filter(t,Bp);if(r.length){var n=Lu(r,2);return e.concatenate(e.filter(t,(function(e){return!Bp(e)})),[n])}}return t}(t.candidates),i=function(e){var t=Fs(e);return!!t&&Fh(16777216&t.flags?ws(t):t,4325372)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!Cp(xc(r),t.typeParameter)),o=i?e.sameMap(n,Ol):a?e.sameMap(n,O_):n;return dp(208&t.priority?Lu(o,2):function(t){if(!W)return x_(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?X_(x_(r),98304&q_(t)):Lu(t,2)}(o))}function Kp(t,r){var n=t.inferences[r];if(!n.inferredType){var i=void 0,a=t.signature;if(a){var o=n.candidates?Jp(n,a):void 0;if(n.contraCandidates){var s=jp(n);i=!o||131072&o.flags||!Cd(o,s)?s:o}else if(o)i=o;else if(1&t.flags)i=ze;else{var c=Js(n.typeParameter);c&&(i=_d(c,Zl(function(t,r){return Yl((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Ee:n}))}(t,r),t.nonFixingMapper)))}}else i=Pp(n);n.inferredType=i||zp(!!(2&t.flags));var u=Fs(n.typeParameter);if(u){var l=_d(u,t.nonFixingMapper);i&&t.compareTypes(i,Yo(l,i))||(n.inferredType=i=l)}}return n.inferredType}function zp(e){return e?be:Ee}function Up(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Kp(e,r));return t}function Vp(t){switch(t.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return z.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery;case"describe":case"suite":case"it":case"test":return z.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return z.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return 286===t.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function qp(t){var r=bn(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&En(t,t.escapedText,1160127,Vp(t),t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||he),r.resolvedSymbol}function Wp(t){return!!e.findAncestor(t,(function(e){return 175===e.kind||78!==e.kind&&156!==e.kind&&"quit"}))}function Hp(t,r){switch(r.kind){case 204:case 222:return Hp(t,r.expression);case 213:return e.isAssignmentExpression(r)&&Hp(t,r.left)}switch(t.kind){case 78:return 78===r.kind&&qp(t)===qp(r)||(246===r.kind||195===r.kind)&&Ei(qp(t))===vi(r);case 107:return 107===r.kind;case 105:return 105===r.kind;case 222:case 204:return Hp(t.expression,r);case 198:case 199:return e.isAccessExpression(r)&&Gp(t)===Gp(r)&&Hp(t.expression,r.expression)}return!1}function Gp(t){return 198===t.kind?t.name.escapedText:e.isStringOrNumericLiteralLike(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):void 0}function Yp(t,r){for(;e.isAccessExpression(t);)if(Hp(t=t.expression,r))return!0;return!1}function Xp(t,r){for(;e.isOptionalChain(t);)if(Hp(t=t.expression,r))return!0;return!1}function Qp(t,r){if(t&&1048576&t.flags){var n=qs(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!Fh(ro(n),63176704)),!!n.isDiscriminantProperty}return!1}function $p(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(Qp(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function Zp(e,t){return Hp(e,t)||Yp(e,t)}function ef(e){return(!e.id||e.id<0)&&(e.id=p,p++),e.id}function tf(e,t){if(e!==t){if(131072&t.flags)return t;var r=Df(e,(function(e){return function(e,t){if(!(1048576&e.flags))return kd(e,t);for(var r=0,n=e.types;r<n.length;r++)if(kd(n[r],t))return!0;return!1}(t,e)}));if(512&t.flags&&Ml(t)&&(r=Tf(r,Il)),kd(t,r))return r}return e}function rf(e){var t=Ts(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&Cd(e,ft))}function nf(t){var r=t.flags;if(4&r)return W?16317953:16776705;if(128&r){var n=""===t.value;return W?n?12123649:7929345:n?12582401:16776705}if(40&r)return W?16317698:16776450;if(256&r){var i=0===t.value;return W?i?12123394:7929090:i?12582146:16776450}if(64&r)return W?16317188:16775940;if(2048&r){i=V_(t);return W?i?12122884:7928580:i?12581636:16775940}return 16&r?W?16316168:16774920:528&r?W?t===Oe||t===Me?12121864:7927560:t===Oe||t===Me?12580616:16774920:524288&r?16&e.getObjectFlags(t)&&Wd(t)?W?16318463:16777215:rf(t)?W?7880640:16728e3:W?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?W?7925520:16772880:67108864&r?W?7888800:16736160:131072&r?0:63176704&r?nf(Ms(t)||Ee):3145728&r?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=nf(n[r]);return t}(t.types):16777215}function af(e,t){return Df(e,(function(e){return 0!=(nf(e)&t)}))}function of(e,t){if(t){var r=iv(t);return Lu([af(e,524288),r])}return e}function sf(e,t){var r=qu(t);if(!jo(r))return Se;var n=Vo(r);return Xf(ya(e,n),t)||Kg(n)&&ic(e,1)||ic(e,0)||Se}function cf(e,t){return xf(e,N_)&&function(e,t){return ya(e,""+t)||(xf(e,B_)?Tf(e,(function(e){return K_(e)||Ce})):void 0)}(e,t)||Db(65,e,Ce,void 0)||Se}function uf(e){return vu(Db(65,e,Ce,void 0)||Se)}function lf(e){return 213===e.parent.kind&&e.parent.left===e||236===e.parent.kind&&e.parent.initializer===e}function df(e){return sf(_f(e.parent),e.name)}function _f(e){var t=e.parent;switch(t.kind){case 235:return Pe;case 236:return xb(t)||Se;case 213:return function(e){return 196===e.parent.kind&&lf(e.parent)||285===e.parent.kind&&lf(e.parent.parent)?of(_f(e),e.right):iv(e.right)}(t);case 207:return Ce;case 196:return function(e,t){return cf(_f(e),e.elements.indexOf(t))}(t,e);case 217:return function(e){return uf(_f(e.parent))}(t);case 285:return df(t);case 286:return function(e){return of(df(e),e.objectAssignmentInitializer)}(t)}return Se}function pf(e){return bn(e).resolvedType||iv(e)}function ff(e){return 246===e.kind?function(e){return e.initializer?pf(e.initializer):235===e.parent.parent.kind?Pe:236===e.parent.parent.kind&&xb(e.parent.parent)||Se}(e):function(e){var t=e.parent,r=ff(t.parent);return of(193===t.kind?sf(r,e.propertyName||e.name):e.dotDotDotToken?uf(r):cf(r,t.elements.indexOf(e)),e.initializer)}(e)}function gf(e){switch(e.kind){case 204:return gf(e.expression);case 213:switch(e.operatorToken.kind){case 62:case 74:case 75:case 76:return gf(e.left);case 27:return gf(e.right)}}return e}function mf(e){return 281===e.kind?Ol(iv(e.expression)):Ke}function yf(e){var t=bn(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(mf(i))}}return t.switchTypes}function hf(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(281===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function vf(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!Pu(t.types,i))return!1}return!0}if(1024&e.flags&&Eo(e)===t)return!0;return Pu(t.types,e)}(e,t)}function bf(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function xf(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function Df(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);return i===n?t:Bu(i,t.objectFlags)}return 131072&t.flags||r(t)?t:Ke}function Sf(e){return 1048576&e.flags?e.types.length:1}function Tf(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=0,a=e.types;i<a.length;i++){var o=t(a[i]);o&&(n?n.push(o):n=[o])}return n&&Lu(n,r?0:1)}function Ef(e,t){return Df(e,(function(e){return 0!=(e.flags&t)}))}function Cf(e,t){return vf(Pe,e)&&Fh(t,128)||vf(we,e)&&Fh(t,256)||vf(Ie,e)&&Fh(t,2048)?Tf(e,(function(e){return 4&e.flags?Ef(t,132):8&e.flags?Ef(t,264):64&e.flags?Ef(t,2112):e})):e}function kf(e){return 0===e.flags}function Nf(e){return 0===e.flags?e.type:e}function Af(e,t){return t?{flags:0,type:131072&e.flags?ze:e}:e}function Ff(e){return me[e.id]||(me[e.id]=function(e){var t=Pi(256);return t.elementType=e,t}(e))}function Pf(e,t){var r=op(I_(ov(t)));return vf(r,e.elementType)?e:Ff(Lu([e.elementType,r]))}function wf(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?Et:vu(1048576&t.flags?Lu(t.types,2):t));var t}function If(t){return 256&e.getObjectFlags(t)?wf(t):t}function Of(t){return 256&e.getObjectFlags(t)?t.elementType:Ke}function Mf(t,r){return function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r}(t)?Ff(Lu(e.map(t,Of))):Lu(e.sameMap(t,If),r)}function Lf(t){var r=function e(t){var r=t.parent;return 204===r.kind||213===r.kind&&62===r.operatorToken.kind&&r.left===t||213===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||200===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=199===n.kind&&n.expression===r&&213===n.parent.kind&&62===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Ph(iv(n.argumentExpression),296);return i||a}function Rf(t,r){if(8752&t.flags)return ro(t);if(7&t.flags){var n=t.valueDeclaration;if(n){if(function(t){return(246===t.kind||159===t.kind||162===t.kind||161===t.kind)&&!!e.getEffectiveTypeAnnotationNode(t)}(n))return ro(t);if(e.isVariableDeclaration(n)&&236===n.parent.parent.kind){var i=n.parent.parent,a=Bf(i.expression,void 0);if(a)return Db(i.awaitModifier?15:13,a,Ce,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics._0_needs_an_explicit_type_annotation,Qi(t)))}}}function Bf(t,r){if(!(16777216&t.flags))switch(t.kind){case 78:var n=Ei(qp(t));return Rf(2097152&n.flags?Yn(n):n,r);case 107:return function(t){var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=gc(r);if(n.thisParameter)return Rf(n.thisParameter)}if(e.isClassLike(r.parent)){var i=vi(r.parent);return e.hasSyntacticModifier(r,32)?ro(i):Ao(i).thisType}}(t);case 105:return og(t);case 198:var i=Bf(t.expression,r),a=i&&$s(i,t.name.escapedText);return a&&Rf(a,r);case 204:return Bf(t.expression,r)}}function jf(t){var r=bn(t),n=r.effectsSignature;if(void 0===n){var i=void 0;230===t.parent.kind?i=Bf(t.expression,void 0):105!==t.expression.kind&&(i=e.isOptionalChain(t)?Sm(np(sv(t.expression),t.expression),t.expression):ym(t.expression));var a=ec(i&&zs(i)||Ee,0),o=1!==a.length||a[0].typeParameters?e.some(a,Jf)?Oy(t):void 0:a[0];n=r.effectsSignature=o&&Jf(o)?o:ar}return n===ar?void 0:n}function Jf(e){return!!(bc(e)||e.declaration&&131072&(Dc(e.declaration)||Ee).flags)}function Kf(t){var r=function t(r,n){for(;;){if(r===Xt)return Qt;var i=r.flags;if(4096&i){if(!n){var a=ef(r),o=Jr[a];return void 0!==o?o:Jr[a]=t(r,!0)}n=!1}if(368&i)r=r.antecedent;else if(512&i){var s=jf(r.node);if(s){var c=bc(s);if(c&&3===c.kind&&!c.type){var u=r.node.arguments[c.parameterIndex];if(u&&zf(u))return!1}if(131072&xc(s).flags)return!1}r=r.antecedent}else{if(4&i)return e.some(r.antecedents,(function(e){return t(e,!1)}));if(8&i)r=r.antecedents[0];else{if(!(128&i)){if(1024&i){Xt=void 0;var l=r.target,d=l.antecedents;l.antecedents=r.antecedents;var _=t(r.antecedent,!1);return l.antecedents=d,_}return!(1&i)}if(r.clauseStart===r.clauseEnd&&hh(r.switchStatement))return!1;r=r.antecedent}}}}(t,!1);return Xt=t,Qt=r,r}function zf(t){var r=e.skipParentheses(t);return 94===r.kind||213===r.kind&&(55===r.operatorToken.kind&&(zf(r.left)||zf(r.right))||56===r.operatorToken.kind&&zf(r.left)&&zf(r.right))}function Uf(t,r,n,i,a){var o;void 0===n&&(n=r);var s=!1,c=0;if(Dr)return Se;if(!t.flowNode||!a&&!(133970943&r.flags))return r;Sr++;var u=xr,l=Nf(p(t.flowNode));xr=u;var d=256&e.getObjectFlags(l)&&Lf(t)?Et:If(l);return d===qe||t.parent&&222===t.parent.kind&&131072&af(d,2097152).flags?r:d;function _(){return s?o:(s=!0,o=function e(t,r,n,i){switch(t.kind){case 78:var a=qp(t);return a!==he?(i?P(i):"-1")+"|"+Fu(r)+"|"+Fu(n)+"|"+(Gf(t)?"@":"")+w(a):void 0;case 107:return"0|"+(i?P(i):"-1")+"|"+Fu(r)+"|"+Fu(n);case 222:case 204:return e(t.expression,r,n,i);case 198:case 199:var o=Gp(t);if(void 0!==o){var s=e(t.expression,r,n,i);return s&&s+"."+o}}}(t,r,n,i))}function p(a){if(2e3===c)return Dr=!0,function(t){var r=e.findAncestor(t,e.isFunctionOrModuleBlock),n=e.getSourceFileOfNode(t),i=e.getSpanOfTokenAtPosition(n,r.statements.pos);Wr.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(t),Se;for(c++;;){var o=a.flags;if(4096&o)for(var s=u;s<xr;s++)if(Br[s]===a)return c--,jr[s];var l=void 0;if(16&o){if(!(l=g(a))){a=a.antecedent;continue}}else if(512&o){if(!(l=m(a))){a=a.antecedent;continue}}else if(96&o)l=h(a);else if(128&o)l=v(a);else if(12&o){if(1===a.antecedents.length){a=a.antecedents[0];continue}l=4&o?b(a):x(a)}else if(256&o){if(!(l=y(a))){a=a.antecedent;continue}}else if(1024&o){var d=a.target,_=d.antecedents;d.antecedents=a.antecedents,l=p(a.antecedent),d.antecedents=_}else if(2&o){var f=a.node;if(f&&f!==i&&198!==t.kind&&199!==t.kind&&107!==t.kind){a=f.flowNode;continue}l=n}else l=ub(r);return 4096&o&&(Br[xr]=a,jr[xr]=l,xr++),c--,l}}function f(e){var r=e.node;return Xf(246===r.kind||195===r.kind?ff(r):_f(r),t)}function g(n){var i=n.node;if(Hp(t,i)){if(!Kf(n))return qe;if(2===e.getAssignmentTargetKind(i)){var a=p(n.antecedent);return Af(I_(Nf(a)),kf(a))}if(r===xe||r===Et){if(function(e){return 246===e.kind&&e.initializer&&Ca(e.initializer)||195!==e.kind&&213===e.parent.kind&&Ca(e.parent.right)}(i))return Ff(Ke);var o=O_(f(n));return kd(o,r)?o:Tt}return 1048576&r.flags?tf(r,f(n)):r}if(Yp(t,i)){if(!Kf(n))return qe;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(205===s.kind||206===s.kind))return p(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&235===i.parent.parent.kind&&Hp(t,i.parent.parent.expression))return vm(Nf(p(n.antecedent)))}function m(t){var r=jf(t.node);if(r){var n=bc(r);if(n&&(2===n.kind||3===n.kind)){var i=p(t.antecedent),a=If(Nf(i)),o=n.type?z(a,n,t.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex<t.node.arguments.length?function t(r,n){var i=e.skipParentheses(n);if(94===i.kind)return qe;if(213===i.kind){if(55===i.operatorToken.kind)return t(t(r,i.left),i.right);if(56===i.operatorToken.kind)return Lu([t(r,i.left),t(r,i.right)])}return U(r,i,!0)}(a,t.node.arguments[n.parameterIndex]):a;return o===a?i:Af(o,kf(i))}if(131072&xc(r).flags)return qe}}function y(n){if(r===xe||r===Et){var i=n.node,a=200===i.kind?i.expression.expression:i.left.expression;if(Hp(t,gf(a))){var o=p(n.antecedent),s=Nf(o);if(256&e.getObjectFlags(s)){var c=s;if(200===i.kind)for(var u=0,l=i.arguments;u<l.length;u++){c=Pf(c,l[u])}else Ph(ov(i.left.argumentExpression),296)&&(c=Pf(c,i.right));return c===s?o:Af(c,kf(o))}return o}}}function h(e){var t=p(e.antecedent),r=Nf(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=If(r),a=U(i,e.node,n);return a===i?t:Af(a,kf(t))}function v(r){var n=r.switchStatement.expression,i=p(r.antecedent),a=Nf(i);return Hp(t,n)?a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd):208===n.kind&&Hp(t,n.expression)?a=function(t,r,n,i){var a=hf(r,!0);if(!a.length)return t;var o,s,c=e.findIndex(a,(function(e){return void 0===e})),u=n===i||c>=n&&c<i;if(c>-1){var l=a.filter((function(e){return void 0!==e})),d=c<n?n-1:n,_=c<i?i-1:i;o=l.slice(d,_),s=yh(d,_,l,u)}else o=a.slice(n,i),s=yh(n,i,a,u);if(u)return Df(t,(function(e){return(nf(e)&s)===s}));var p=af(Lu(o.map((function(e){return L(t,e)||t}))),s);return af(Tf(t,R(p)),s)}(a,r.switchStatement,r.clauseStart,r.clauseEnd):(W&&(Xp(n,t)?a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(163840&e.flags)})):208===n.kind&&Xp(n.expression,t)&&(a=O(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)})))),D(n,a)&&(a=E(a,n,(function(e){return M(e,r.switchStatement,r.clauseStart,r.clauseEnd)})))),Af(a,kf(i))}function b(t){for(var i,a=[],o=!1,s=!1,c=0,u=t.antecedents;c<u.length;c++){var l=u[c];if(!i&&128&l.flags&&l.clauseStart===l.clauseEnd)i=l;else{if((_=Nf(d=p(l)))===r&&r===n)return _;e.pushIfUnique(a,_),vf(_,r)||(o=!0),kf(d)&&(s=!0)}}if(i){var d,_=Nf(d=p(i));if(!e.contains(a,_)&&!hh(i.switchStatement)){if(_===r&&r===n)return _;a.push(_),vf(_,r)||(o=!0),kf(d)&&(s=!0)}}return Af(Mf(a,o?2:1),s)}function x(t){var n=ef(t),i=Or[n]||(Or[n]=new e.Map),a=_();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=vr;s<br;s++)if(Mr[s]===t&&Lr[s]===a&&Rr[s].length)return Af(Mf(Rr[s],1),!0);for(var c,u=[],l=!1,d=0,f=t.antecedents;d<f.length;d++){var g=f[d],m=void 0;if(c){Mr[br]=t,Lr[br]=a,Rr[br]=u,br++;var y=$t;$t=void 0,m=p(g),$t=y,br--;var h=i.get(a);if(h)return h}else m=c=p(g);var v=Nf(m);if(e.pushIfUnique(u,v),vf(v,r)||(l=!0),v===r)break}var b=Mf(u,l?2:1);return kf(c)?Af(b,!0):(i.set(a,b),b)}function D(n,i){var a=1048576&r.flags?r:i;if(!(1048576&a.flags&&e.isAccessExpression(n)))return!1;var o=Gp(n);return void 0!==o&&(Hp(t,n.expression)&&Qp(a,o))}function E(e,t,r){var n=Gp(t);if(void 0===n)return e;var i=ya(e,n);if(!i)return e;var a=r(i);return Df(e,(function(e){var t=function(e,t){return ya(e,t)||Kg(t)&&ic(e,1)||ic(e,0)||Ee}(e,n);return!(131072&t.flags)&&Ad(t,a)}))}function C(e,r,n){return Hp(t,r)?af(e,n?4194304:8388608):(W&&n&&Xp(r,t)&&(e=af(e,2097152)),D(r,e)?E(e,r,(function(e){return af(e,n?4194304:8388608)})):e)}function k(t,r,n){if(1572864&t.flags||il(t)||2097152&t.flags&&e.every(t.types,(function(e){return e.symbol!==ie}))){var i=e.escapeLeadingUnderscores(r.text);return Df(t,(function(e){return function(e,t,r){if(nc(e,0))return!0;var n=$s(e,t);return n?!!(16777216&n.flags)||r:!r}(e,i,n)}))}return t}function N(r,n,i){switch(n.operatorToken.kind){case 62:case 74:case 75:case 76:return C(U(r,n.right,i),n.left,i);case 34:case 35:case 36:case 37:var a=n.operatorToken.kind,o=gf(n.left),s=gf(n.right);if(208===o.kind&&e.isStringLiteralLike(s))return I(r,o,a,s,i);if(208===s.kind&&e.isStringLiteralLike(o))return I(r,s,a,o,i);if(Hp(t,o))return F(r,a,s,i);if(Hp(t,s))return F(r,a,o,i);if(W&&(Xp(o,t)?r=A(r,a,s,i):Xp(s,t)&&(r=A(r,a,o,i))),D(o,r))return E(r,o,(function(e){return F(e,a,s,i)}));if(D(s,r))return E(r,s,(function(e){return F(e,a,o,i)}));if(B(o))return j(r,a,s,i);if(B(s))return j(r,a,o,i);break;case 101:return function(r,n,i){var a=gf(n.left);if(!Hp(t,a))return i&&W&&Xp(a,t)?af(r,2097152):r;var o,s=iv(n.right);if(!Nd(s,ft))return r;var c=$s(s,"prototype");if(c){var u=ro(c);ha(u)||(o=u)}if(ha(r)&&(o===pt||o===ft))return r;if(!o){var l=ec(s,1);o=l.length?Lu(e.map(l,(function(e){return xc(Nc(e))}))):$e}if(!i&&1048576&s.flags){if(!e.find(s.types,(function(e){return!_o(e)})))return r}return J(r,o,i,Nd)}(r,n,i);case 100:var c=gf(n.right);if(e.isStringLiteralLike(n.left)&&Hp(t,c))return k(r,n.left,i);break;case 27:return U(r,n.right,i)}return r}function A(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=iv(r);return i!==n&&xf(o,(function(e){return!!(e.flags&a)}))||i===n&&xf(o,(function(e){return!(e.flags&(3|a))}))?af(e,2097152):e}function F(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=iv(r);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?We:e;if(98304&i.flags)return W?af(e,34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(n)return Cf(Df(e,34===t?function(e){return Fd(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return Fd(e,i)}),i);if(P_(i)){var a=Ol(i);return Df(e,(function(e){return P_(e)?!Fd(e,i):Ol(e)!==a}))}return e}function I(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=gf(r.expression);if(!Hp(t,o))return W&&Xp(o,t)&&a===("undefined"!==i.text)?af(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text){if(213===r.parent.parent.kind){var s=r.parent.parent;if(55===s.operatorToken.kind&&s.right===r.parent&&function e(t,r){return Hp(t,r)||213===r.kind&&55===r.operatorToken.kind&&(e(t,r.left)||e(t,r.right))}(t,s.left))return We}return Lu([We,Ae])}var c=a?S.get(i.text)||128:T.get(i.text)||32768,u=L(e,i.text);return af(a&&u?Tf(e,R(u)):e,c)}function O(t,r,n,i,a){return n!==i&&e.every(yf(r).slice(n,i),a)?af(t,2097152):t}function M(t,r,n,i){var a=yf(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,Ke);if(2&t.flags&&!s){for(var c=void 0,u=0;u<o.length;u+=1){var l=o[u];if(67239932&l.flags)void 0!==c&&c.push(l);else{if(!(524288&l.flags))return t;void 0===c&&(c=o.slice(0,u)),c.push(We)}}return Lu(void 0===c?o:c)}var d=Lu(o),_=131072&d.flags?Ke:Cf(Df(t,(function(e){return Fd(d,e)})),d);if(!s)return _;var p=Df(t,(function(t){return!(P_(t)&&e.contains(a,Ol(t)))}));return 131072&_.flags?p:Lu([_,p])}function L(e,t){switch(t){case"function":return 1&e.flags?e:ft;case"object":return 2&e.flags?Lu([We,Ae]):e;default:return Gr.get(t)}}function R(e){return function(t){if(Cd(t,e))return t;if(Cd(e,t))return e;if(63176704&t.flags){var r=Ms(t)||be;if(Cd(e,r))return Uu([t,e])}return t}}function B(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&Hp(t,r.expression)}function j(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=iv(n);if(!_D(a)&&!_o(a))return t;var o=$s(a,"prototype");if(!o)return t;var s=ro(o),c=ha(s)?void 0:s;return c&&c!==pt&&c!==ft?ha(t)?c:Df(t,(function(t){return function(t,r){if(524288&t.flags&&1&e.getObjectFlags(t)||524288&r.flags&&1&e.getObjectFlags(r))return t.symbol===r.symbol;return Cd(t,r)}(t,c)})):t}function J(e,t,r,n){if(!r)return Df(e,(function(e){return!n(e,t)}));if(1048576&e.flags){var i=Df(e,(function(e){return n(e,t)}));if(!(131072&i.flags))return i}return Cd(t,e)?t:kd(e,t)?e:kd(t,e)?t:Uu([e,t])}function K(r,n,i){if(function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(Zp(t,n[r]))return!0;return!(198!==e.expression.kind||!Zp(t,e.expression.expression))}(n,t)){var a=i||!e.isCallChain(n)?jf(n):void 0,o=a&&bc(a);if(o&&(0===o.kind||1===o.kind))return z(r,o,n,i)}return r}function z(r,n,i,a){if(n.type&&(!ha(r)||n.type!==pt&&n.type!==ft)){var o=function(t,r){if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0}(n,i);if(o){if(Hp(t,o))return J(r,n.type,a,Cd);if(W&&a&&Xp(o,t)&&!(65536&nf(n.type))&&(r=af(r,2097152)),D(o,r))return E(r,o,(function(e){return J(e,n.type,a,Cd)}))}}return r}function U(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return function(e,r,n){if(Hp(t,r))return af(e,n?2097152:262144);if(D(r,e))return E(e,r,(function(e){return af(e,n?2097152:262144)}));return e}(r,n,i);switch(n.kind){case 78:case 107:case 105:case 198:case 199:return C(r,n,i);case 200:return K(r,n,i);case 204:return U(r,n.expression,i);case 213:return N(r,n,i);case 211:if(53===n.operator)return U(r,n.operand,!i)}return r}}function Vf(t){return e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||254===t.kind||294===t.kind||162===t.kind}))}function qf(t){var r=e.getRootDeclaration(t.valueDeclaration).parent,n=bn(r);return 8388608&n.flags||(n.flags|=8388608,function(t){return!!e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!!(8388608&bn(t).flags)}))}(r)||Wf(r)),t.isAssigned||!1}function Wf(t){if(78===t.kind){if(e.isAssignmentTarget(t)){var r=qp(t);r.valueDeclaration&&159===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,Wf)}function Hf(e){return 3&e.flags&&0!=(2&pm(e))&&ro(e)!==Et}function Gf(e){var t=e.parent;return 198===t.kind||200===t.kind&&t.expression===e||199===t.kind&&t.expression===e||195===t.kind&&t.name===e&&!!t.initializer}function Yf(e){return 58982400&e.flags&&Fh(Ms(e)||Ee,98304)}function Xf(e,t){return e&&Gf(t)&&bf(e,Yf)?Tf(dp(e),Ls):e}function Qf(t,r){!Hn(t,111551)||Wp(r)||$n(t)||(z.preserveConstEnums&&function(t){return!!e.findAncestor(t,(function(t){return t.parent&&e.isExportAssignment(t.parent)&&t.parent.expression===t&&e.isEntityNameExpression(t)}))}(r)||!tD(Yn(t))?ei(t):function(e){var t=vn(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(t))}function $f(t){var r=qp(t);if(r===he)return Se;if(r===oe){var n=e.getContainingFunction(t);return U<2&&(206===n.kind?on(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(n,256)&&on(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),bn(n).flags|=8192,ro(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||Qf(r,t);var i=Ei(r),a=i.valueDeclaration;if(a&&134217728&e.getCombinedNodeFlags(a)&&Zu(t.parent,i)&&cn(!1,t,e.Diagnostics._0_is_deprecated,t.escapedText),32&i.flags)if(249===a.kind&&e.nodeIsDecorated(a))for(n=e.getContainingClass(t);void 0!==n;){if(n===a&&n.name!==t){bn(a).flags|=16777216,bn(t).flags|=33554432;break}n=e.getContainingClass(n)}else if(218===a.kind)for(n=e.getThisContainer(t,!1);294!==n.kind;){if(n.parent===a){162===n.kind&&e.hasSyntacticModifier(n,32)&&(bn(a).flags|=16777216,bn(t).flags|=33554432);break}n=e.getThisContainer(n,!1)}!function(t,r){if(U>=2||0==(34&r.flags)||e.isSourceFile(r.valueDeclaration)||284===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,247))&&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=bn(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(bn(a).flags|=65536)}var d;if(e.isForStatement(n))(d=e.getAncestor(r.valueDeclaration,247))&&d.parent===n&&function(t,r){var n=t;for(;204===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(211===n.parent.kind||212===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)&&(bn(r.valueDeclaration).flags|=4194304);bn(r.valueDeclaration).flags|=524288}i&&(bn(r.valueDeclaration).flags|=262144)}(t,r);var o=Xf(ro(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return on(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Qi(r)),Se;if(Eh(i))return 3&i.flags?on(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Qi(r)):on(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qi(r)),Se}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,L)}if(!a)return o;for(var u=159===e.getRootDeclaration(a).kind,l=Vf(a),d=Vf(t),_=d!==l,p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&lf(t.parent.parent),f=134217728&r.flags;d!==l&&(205===d.kind||206===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&(Hf(i)||u&&!qf(i));)d=Vf(d);var g=u||c||_||p||f||e.isBindingElement(a)||o!==xe&&o!==Et&&(!W||0!=(16387&o.flags)||Wp(t)||267===t.parent.kind)||222===t.parent.kind||246===a.kind&&a.exclamationToken||8388608&a.flags,m=Uf(t,o,g?u?function(e,t){if(_a(t.symbol,2)){var r=W&&159===t.kind&&t.initializer&&32768&W_(e)&&!(32768&W_(sv(t.initializer)));return ga(),r?af(e,524288):e}return to(t.symbol),e}(o,a):o:o===xe||o===Et?Ce:Q_(o),d,!g);if(Lf(t)||o!==xe&&o!==Et){if(!g&&!(32768&W_(o))&&32768&W_(m))return on(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Qi(r)),o}else if(m===xe||m===Et)return X&&(on(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Qi(r),Zi(m)),on(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Qi(r),Zi(m))),ub(m);return s?I_(m):m}function Zf(e,t){(bn(e).flags|=2,162===t.kind||165===t.kind)?bn(t.parent).flags|=4:bn(t).flags|=4}function eg(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,eg)}function tg(e){return mo(Ao(vi(e)))===Fe}function rg(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!tg(i)&&t.flowNode&&!function t(r,n){for(;;){var i=r.flags;if(4096&i){if(!n){var a=ef(r),o=Kr[a];return void 0!==o?o:Kr[a]=t(r,!0)}n=!1}if(496&i)r=r.antecedent;else if(512&i){if(105===r.node.expression.kind)return!0;r=r.antecedent}else{if(4&i)return e.every(r.antecedents,(function(e){return t(e,!1)}));if(!(8&i)){if(1024&i){var s=r.target,c=s.antecedents;s.antecedents=r.antecedents;var u=t(r.antecedent,!1);return s.antecedents=c,u}return!!(1&i)}r=r.antecedents[0]}}}(t.flowNode,!1)&&on(t,n)}function ng(t){var r=e.getThisContainer(t,!0),n=!1;switch(165===r.kind&&rg(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),206===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 253:on(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 252:on(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 165:ag(t,r)&&on(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 162:case 161:!e.hasSyntacticModifier(r,32)||99===z.target&&z.useDefineForClassFields||on(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 157:on(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&U<2&&Zf(t,r);var i=ig(t,!0,r);if(Q){var a=ro(ie);if(i===a&&n)on(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!i){var o=on(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var s=ig(r);s&&s!==a&&e.addRelatedInfo(o,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return i||be}function ig(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)&&(!_g(t)||e.getThisParameter(n))){var a=Ya(n)||i&&function(t){var r=e.getJSDocType(t);if(r&&304===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Kl(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Kl(i.typeExpression)}(n);if(!a){var o=function(t){if(205===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(164===t.kind&&197===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(205===t.kind&&285===t.parent.kind&&197===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(205===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=sv(o).symbol;s&&s.members&&16&s.flags&&(a=Ao(s).thisType)}else My(n)&&(a=Ao(hi(n.symbol)).thisType);a||(a=ug(n))}if(a)return Uf(t,a)}if(e.isClassLike(n.parent)){var c=vi(n.parent);return Uf(t,e.hasSyntacticModifier(n,32)?ro(c):Ao(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var u=vi(n);return u&&ro(u)}if(n.externalModuleIndicator)return Ce;if(r)return ro(ie)}}function ag(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":159===t.kind&&t.parent===r}))}function og(t){var r=200===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&206===i.kind;)i=e.getSuperContainer(i,!0),a=U<2;var o=0;if(!function(t){if(!t)return!1;if(r)return 165===t.kind;if(e.isClassLike(t.parent)||197===t.parent.kind)return e.hasSyntacticModifier(t,32)?164===t.kind||163===t.kind||166===t.kind||167===t.kind:164===t.kind||163===t.kind||166===t.kind||167===t.kind||162===t.kind||161===t.kind||165===t.kind;return!1}(i)){var s=e.findAncestor(t,(function(e){return e===i?"quit":157===e.kind}));return s&&157===s.kind?on(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?on(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||197===i.parent.kind)?on(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):on(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Se}if(r||165!==n.kind||rg(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,bn(t).flags|=o,164===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?bn(i).flags|=4096:bn(i).flags|=2048),a&&Zf(t.parent,i),197===i.parent.kind)return U<2?(on(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Se):be;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return on(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Se;var u=Ao(vi(c)),l=u&&ho(u)[0];return l?165===i.kind&&ag(t,i)?(on(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Se):512===o?mo(u):Yo(l,u.thisType):Se}function sg(t){return 4&e.getObjectFlags(t)&&t.target===St?Vc(t)[0]:void 0}function cg(t){return Tf(t,(function(t){return 2097152&t.flags?e.forEach(t.types,sg):sg(t)}))}function ug(t){if(206!==t.kind){if(bd(t)){var r=Mg(t);if(r){var n=r.thisParameter;if(n)return ro(n)}}var i=e.isInJSFile(t);if(Q||i){var a=function(e){return 164!==e.kind&&166!==e.kind&&167!==e.kind||197!==e.parent.kind?205===e.kind&&285===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=Eg(a),s=a,c=o;c;){var u=cg(c);if(u)return _d(u,Sp(Ag(a)));if(285!==s.parent.kind)break;c=Eg(s=s.parent.parent)}return dp(o?$_(o):Uh(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(213===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&&qp(_)===p.symbol)return}return dp(Uh(_))}}}}}function lg(t){var r=t.parent;if(bd(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=fy(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return cy(i,a,i.length,be,void 0,0);var o=bn(n),s=o.resolvedSignature;o.resolvedSignature=ir;var c=a<i.length?O_(sv(i[a])):t.initializer?void 0:ke;return o.resolvedSignature=s,c}var u=Mg(r);if(u){var l=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?th(u,l):eh(u,l)}}}function dg(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Kl(r);switch(t.kind){case 159:return lg(t);case 195:return function(t){var r=t.parent.parent,n=t.propertyName||t.name,i=dg(r)||195!==r.kind&&r.initializer&&qh(r);if(i&&!e.isBindingPattern(n)&&!e.isComputedNonLiteralName(n)){var a=qu(n);if(jo(a))return ya(i,Vo(a))}}(t)}}function _g(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function pg(t,r){var n=!!(2&e.getFunctionFlags(r)),i=fg(r);if(i)return qb(t,i,n)||void 0}function fg(e){var t=Dc(e);if(t)return t;var r=Og(e);return r&&!Sc(r)?xc(r):void 0}function gg(e,t){var r=fy(e).indexOf(t);return-1===r?void 0:mg(e,r)}function mg(t,r){var n=bn(t).resolvedSignature===or?or:Oy(t);return e.isJsxOpeningLikeElement(t)&&0===r?Fg(n,t):Zy(n,r)}function yg(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 62:case 75:case 74:case 76:if(t!==o)return;var s=function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return!1;var i=e.cast(t.left,e.isAccessExpression),a=e.getEffectiveTypeAnnotationNode(n);if(a)return Kl(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=En(o,o.escapedText,111551,void 0,o.escapedText,!0);if(s){if(u=s.valueDeclaration&&e.getEffectiveTypeAnnotationNode(s.valueDeclaration)){var c=e.getElementOrPropertyAccessName(i);if(void 0!==c)return(l=hg(Kl(u),c))||!1}return!1}}return!e.isInJSFile(n)}return!0;case 2:case 4:if(!t.symbol)return!0;var u,l;if(t.symbol.valueDeclaration)if(u=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration))if(l=Kl(u))return l;if(2===r)return!1;var d=e.cast(t.left,e.isAccessExpression);if(!e.isObjectLiteralMethod(e.getThisContainer(d.expression,!1)))return!1;var _=ng(d.expression),p=e.getElementOrPropertyAccessName(d);return void 0!==p&&_&&hg(_,p)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(n);if(!s)return;return!0===s?iv(i):s;case 56:case 60:var c=Ng(n,r);return t===o&&(c&&c.pattern||!c&&!e.isDefaultedExpandoInitializer(n))?iv(i):c;case 55:case 27:return t===o?Ng(n,r):void 0;default:return}}function hg(t,r){return Tf(t,(function(t){if(Ss(t)){var n=gs(t),i=Ms(n)||n,a=Ll(e.unescapeLeadingUnderscores(r));if(kd(a,i))return cl(t,a)}else if(3670016&t.flags){var o=$s(t,r);if(o)return c=o,262144&e.getCheckFlags(c)&&!c.type&&pa(c,0)>=0?void 0:ro(o);if(B_(t)){var s=K_(t);if(s&&Kg(r)&&+r>=0)return s}return Kg(r)&&vg(t,1)||vg(t,0)}var c}),!0)}function vg(e,t){return Tf(e,(function(e){return rc(e,t)}),!0)}function bg(e,t){var r=Eg(e.parent,t);if(r){if(!Uo(e)){var n=hg(r,vi(e).escapedName);if(n)return n}return jg(e.name)&&vg(r,1)||vg(r,0)}}function xg(e,t){return e&&(hg(e,""+t)||Sb(1,e,Ce,void 0,!1))}function Dg(t){var r=t.parent;return e.isJsxAttributeLike(r)?Ng(t):e.isJsxElement(r)?function(e,t){var r=Eg(e.openingElement.tagName),n=nm(tm(e));if(r&&!ha(r)&&n&&""!==n){var i=Jd(e.children),a=i.indexOf(t),o=hg(r,n);return o&&(1===i.length?o:Tf(o,(function(e){return C_(e)?ul(e,Ll(a)):e}),!0))}}(r,t):void 0}function Sg(t){if(e.isJsxAttribute(t)){var r=Eg(t.parent);if(!r||ha(r))return;return hg(r,t.name.escapedText)}return Ng(t.parent)}function Tg(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 149:return!0;case 198:case 204:return Tg(e.expression);case 280:return!e.expression||Tg(e.expression)}return!1}function Eg(t,r){var n=Cg(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return bg(t,r)}(t,r):Ng(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Tf(n,zs,!0);if(1048576&i.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return n_(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&285===e.kind&&Tg(e.initializer)&&Qp(r,e.symbol.escapedName)})),(function(e){return[function(){return sv(e.initializer)},e.symbol.escapedName]})),kd,r)}(t,i);if(e.isJsxAttributes(t))return function(t,r){return n_(r,e.map(e.filter(t.properties,(function(e){return!!e.symbol&&277===e.kind&&Qp(r,e.symbol.escapedName)&&(!e.initializer||Tg(e.initializer))})),(function(e){return[e.initializer?function(){return sv(e.initializer)}:function(){return Le},e.symbol.escapedName]})),kd,r)}(t,i)}return i}}function Cg(t,r,n){if(t&&Fh(t,63176704)){var i=Ag(r);if(i&&e.some(i.inferences,ev)){if(n&&1&n)return kg(t,i.nonFixingMapper);if(i.returnMapper)return kg(t,i.returnMapper)}}return t}function kg(t,r){return 63176704&t.flags?_d(t,r):1048576&t.flags?Lu(e.map(t.types,(function(e){return kg(e,r)})),0):2097152&t.flags?Uu(e.map(t.types,(function(e){return kg(e,r)}))):t}function Ng(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 246:case 159:case 162:case 161:case 195:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=dg(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return Ka(n.name,!0,!1)}}(t,r);case 206:case 239:return function(t){var r=e.getContainingFunction(t);if(r){var n=fg(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=Ab(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=Tf(n,Pv);return o&&Lu([o,_h(o)])}return n}}}(t);case 216:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=fg(r);if(i)return t.asteriskToken?i:qb(0,i,0!=(2&n))}}(n);case 210:return function(e,t){var r=Ng(e,t);if(r){var n=Pv(r);return n&&Lu([n,_h(n)])}}(n,r);case 200:if(99===n.expression.kind)return Pe;case 201:return gg(n,t);case 203:case 221:return e.isConstTypeReference(n.type)?function(t){if(e.isCallLikeExpression(t.parent))return gg(t.parent,t);return}(n):Kl(n.type);case 213:return yg(t,r);case 285:case 286:return bg(n,r);case 287:return Eg(n.parent,r);case 196:var i=n;return xg(Eg(i,r),e.indexOfNode(i.elements,t));case 214:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Ng(r,t):void 0}(t,r);case 225:return e.Debug.assert(215===n.parent.kind),function(e,t){if(202===e.parent.kind)return gg(e.parent,t)}(n.parent,t);case 204:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?Kl(a.typeExpression.type):Ng(n,r);case 280:return Dg(n);case 277:case 279:return Sg(n);case 272:case 271:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return mg(t,0)}(n,r)}}}function Ag(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Fg(t,r){return 0!==ly(r)?function(e,t){var r=ch(e,Ee);r=Pg(t,tm(t),r);var n=Zg(k.IntrinsicAttributes,t);n!==Se&&(r=os(n,r));return r}(t,r):function(t,r){var n=tm(r),i=(o=n,rm(k.ElementAttributesPropertyNameContainer,o)),a=void 0===i?ch(t,Ee):""===i?xc(t):function(e,t){if(e.unionSignatures){for(var r=[],n=0,i=e.unionSignatures;n<i.length;n++){var a=xc(i[n]);if(ha(a))return a;var o=ya(a,t);if(!o)return;r.push(o)}return Uu(r)}var s=xc(e);return ha(s)?s:ya(s,t)}(t,i);var o;if(!a)return i&&e.length(r.attributes.properties)&&on(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),Ee;if(ha(a=Pg(r,n,a)))return a;var s=a,c=Zg(k.IntrinsicClassAttributes,r);if(c!==Se){var u=uo(c.symbol),l=xc(t);s=os(u?Kc(c,fc([l],u,pc(u),e.isInJSFile(r))):c,s)}var d=Zg(k.IntrinsicAttributes,r);return d!==Se&&(s=os(d,s)),s}(t,r)}function Pg(t,r,n){var i,a=(i=r)&&Dn(i.exports,k.LibraryManagedAttributes,788968);if(a){var o=Ao(a),s=function(e){if(Gg(e.tagName))return Pc(Py(e,t=am(e)));var t,r=Uh(e.tagName);return 128&r.flags?(t=im(r,e))?Pc(Py(e,t)):Se:r}(t);if(e.length(o.typeParameters)>=2)return Kc(o,c=fc([s,n],o.typeParameters,2,e.isInJSFile(t)));if(e.length(o.aliasTypeArguments)>=2){var c=fc([s,n],o.aliasTypeArguments,2,e.isInJSFile(t));return Hc(o.aliasSymbol,c)}}return n}function wg(t,r){var n=ec(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||cc(i))break}r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--;return!ih(t)&&rh(t)<n}(i,r))return i}}function Ig(e){return 205===e.kind||206===e.kind}function Og(t){return Ig(t)||e.isObjectLiteralMethod(t)?Mg(t):void 0}function Mg(t){e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t));var r=mc(t);if(r)return r;var n=Eg(t,1);if(n){if(!(1048576&n.flags))return wg(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=wg(o[a],t);if(s)if(i){if(!b_(i[0],s,!1,!0,!0,Sd))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Zo(i[0],i):void 0}}function Lg(e){return 195===e.kind&&!!e.initializer||213===e.kind&&62===e.operatorToken.kind}function Rg(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=Eg(t),u=e.isAssignmentTarget(t),l=Gh(t),d=0;d<a;d++){var _=i[d];if(217===_.kind){U<2&&ED(_,z.downlevelIteration?1536:2048);var p=sv(_.expression,r,n);if(C_(p))o.push(p),s.push(8);else if(u){var f=ic(p,1)||Sb(65,p,Ce,void 0,!1)||Ee;o.push(f),s.push(4)}else o.push(Db(33,p,Ce,_.expression)),s.push(4)}else{var g=Yh(_,r,xg(c,o.length),n);o.push(g),s.push(1)}}return u?Eu(o,s):n||l||c&&bf(c,N_)?Bg(Eu(o,s,l)):Bg(vu(o.length?Lu(e.sameMap(o,(function(e,t){return 8&s[t]?dl(e,we)||be:e})),2):W?Ve:ke,l))}function Bg(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=zc(t)).objectFlags|=1114112),r}function jg(e){switch(e.kind){case 157:return function(e){return Ph(zg(e),296)}(e);case 78:return Kg(e.escapedText);case 8:case 10:return Kg(e.text);default:return!1}}function Jg(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Kg(e){return(+e).toString()===e}function zg(t){var r=bn(t.expression);return r.resolvedType||(r.resolvedType=sv(t.expression),98304&r.resolvedType.flags||!Ph(r.resolvedType,12716)&&!kd(r.resolvedType,He)?on(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):Hm(t.expression,r.resolvedType,!0)),r.resolvedType}function Ug(t,r,n,i){for(var a,o,s,c=[],u=r;u<n.length;u++)(0===i||(a=n[u],o=void 0,s=void 0,s=null===(o=a.declarations)||void 0===o?void 0:o[0],Kg(a.escapedName)||s&&e.isNamedDeclaration(s)&&jg(s.name)))&&c.push(ro(n[u]));return Oc(c.length?Lu(c,2):Ce,Gh(t))}function Vg(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=vn(t);if(!r.immediateTarget){var n=Mn(t);if(!n)return e.Debug.fail();r.immediateTarget=Wn(n,!0)}return r.immediateTarget}function qg(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(287!==o.kind){var s=o.name;if(157===s.kind&&RD(s),286===o.kind&&!r&&o.objectAssignmentInitializer)return QD(o.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);if(79===s.kind)return QD(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(o.modifiers)for(var c=0,u=o.modifiers;c<u.length;c++){var l=u[c];129===l.kind&&164===o.kind||QD(l,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(l))}var d=void 0;switch(o.kind){case 286:JD(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 285:jD(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&eS(s),d=4;break;case 164:d=8;break;case 166:d=1;break;case 167:d=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var _=e.getPropertyNameForPropertyNameNode(s);if(void 0===_)continue;var p=n.get(_);if(p)if(12&d&&12&p)QD(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else{if(!(3&d&&3&p))return QD(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===p||d===p)return QD(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(_,d|p)}else n.set(_,d)}}else if(r){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return QD(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,n);for(var i=W?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=$e,c=Eg(t),u=c&&c.pattern&&(193===c.pattern.kind||197===c.pattern.kind),l=Gh(t),d=l?8:0,_=e.isInJSFile(t)&&!e.isInJsonFile(t),p=e.getJSDocEnumTag(t),f=!c&&_&&!p,g=Z,m=!1,y=!1,h=!1,v=0,b=t.properties;v<b.length;v++){var x=b[v];x.name&&e.isComputedPropertyName(x.name)&&!e.isWellKnownSymbolSyntactically(x.name)&&zg(x.name)}for(var D=0,S=0,T=t.properties;S<T.length;S++){var E=T[S],C=vi(E),k=E.name&&157===E.name.kind&&!e.isWellKnownSymbolSyntactically(E.name.expression)?zg(E.name):void 0;if(285===E.kind||286===E.kind||e.isObjectLiteralMethod(E)){var N=285===E.kind?Xh(E,r):286===E.kind?Yh(!n&&E.objectAssignmentInitializer?E.objectAssignmentInitializer:E.name,r):Qh(E,r);if(_){var A=Ea(E);A?(Pd(N,A,E),N=A):p&&p.typeExpression&&Pd(N,Kl(p.typeExpression),E)}g|=3670016&e.getObjectFlags(N);var F=k&&jo(k)?k:void 0,P=F?ln(4|C.flags,Vo(F),4096|d):ln(4|C.flags,C.escapedName,d);if(F&&(P.nameType=F),n)(285===E.kind&&Lg(E.initializer)||286===E.kind&&E.objectAssignmentInitializer)&&(P.flags|=16777216);else if(u&&!(512&e.getObjectFlags(c))){var w=$s(c,C.escapedName);w?P.flags|=16777216&w.flags:z.suppressExcessPropertyErrors||nc(c,0)||on(E.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Qi(C),Zi(c))}P.declarations=C.declarations,P.parent=C.parent,C.valueDeclaration&&(P.valueDeclaration=C.valueDeclaration),P.type=N,P.target=C,C=P,null==i||i.set(P.escapedName,P)}else{if(287===E.kind){if(U<2&&ED(E,2),o.length>0&&(s=Nl(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,h=!1),!Wg(N=Hs(sv(E.expression))))return on(E,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se;i&&Qg(N,i,E),s=Nl(s,N,t.symbol,g,l),D=o.length;continue}e.Debug.assert(166===E.kind||167===E.kind),Tx(E)}!k||8576&k.flags?a.set(C.escapedName,C):kd(k,He)&&(kd(k,we)?h=!0:y=!0,n&&(m=!0)),o.push(C)}if(u&&287!==t.parent.kind)for(var I=0,O=Ns(c);I<O.length;I++){P=O[I];a.get(P.escapedName)||$s(s,P.escapedName)||(16777216&P.flags||on(P.valueDeclaration||P.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(P.escapedName,P),o.push(P))}return s!==$e?(o.length>0&&(s=Nl(s,M(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,h=!1),Tf(s,(function(e){return e===$e?M():e}))):M();function M(){var r=y?Ug(t,D,o,0):void 0,i=h?Ug(t,D,o,1):void 0,s=Li(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 Wg(t){if(63176704&t.flags){var r=Ms(t);if(void 0!==r)return Wg(r)}return!!(126615553&t.flags||117632&W_(t)&&Wg(H_(t))||3145728&t.flags&&e.every(t.types,Wg))}function Hg(t){return!e.stringContains(t,"-")}function Gg(t){return 78===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Yg(e,t){return e.initializer?Yh(e.initializer,t):Le}function Xg(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];11===a.kind?a.containsOnlyTriviaWhiteSpaces||r.push(Pe):r.push(Yh(a,t))}return r}function Qg(t,r,n){for(var i=0,a=Ns(t);i<a.length;i++){var o=a[i],s=r.get(o.escapedName),c=ro(o);if(s&&!Fh(c,98304)&&!(Fh(c,3)&&16777216&o.flags)){var u=on(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(u,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}function $g(t,r){return function(t,r){for(var n,i=t.attributes,a=W?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=Ze,c=!1,u=!1,l=4096,d=nm(tm(t)),_=0,p=i.properties;_<p.length;_++){var f=p[_],g=f.symbol;if(e.isJsxAttribute(f)){var m=Yg(f,r);l|=3670016&e.getObjectFlags(m);var y=ln(33554436|g.flags,g.escapedName);y.declarations=g.declarations,y.parent=g.parent,g.valueDeclaration&&(y.valueDeclaration=g.valueDeclaration),y.type=m,y.target=g,o.set(y.escapedName,y),null==a||a.set(y.escapedName,y),f.name.escapedText===d&&(u=!0)}else e.Debug.assert(279===f.kind),o.size>0&&(s=Nl(s,T(),i.symbol,l,!1),o=e.createSymbolTable()),ha(m=Hs(Uh(f.expression,r)))&&(c=!0),Wg(m)?(s=Nl(s,m,i.symbol,l,!1),a&&Qg(m,a,f)):n=n?Uu([n,m]):m}c||o.size>0&&(s=Nl(s,T(),i.symbol,l,!1));var h=270===t.parent.kind?t.parent:void 0;if(h&&h.openingElement===t&&h.children.length>0){var v=Xg(h,r);if(!c&&d&&""!==d){u&&on(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=Eg(t.attributes),x=b&&hg(b,d),D=ln(33554436,d);D.type=1===v.length?v[0]:x&&bf(x,N_)?Eu(v):vu(Lu(v)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(d,D),s=Nl(s,Li(i.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,l,!1)}}return c?be:n&&s!==Ze?Uu([n,s]):n||(s===Ze?T():s);function T(){l|=Z;var t=Li(i.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return t.objectFlags|=1048704|l,t}}(t.parent,r)}function Zg(e,t){var r=tm(t),n=r&&fi(r),i=n&&Dn(n,e,788968);return i?Ao(i):Se}function em(t){var r=bn(t);if(!r.resolvedSymbol){var n=Zg(k.IntrinsicElements,t);if(n!==Se){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=$s(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):ic(n,0)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(on(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+k.IntrinsicElements),r.resolvedSymbol=he)}return X&&on(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(k.IntrinsicElements)),r.resolvedSymbol=he}return r.resolvedSymbol}function tm(e){var t=e&&bn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=nn(e),n=En(e,r,1920,void 0,r,!1);if(n){var i=Gn(Dn(fi(Gn(n)),k.JSX,1920));if(i)return t&&(t.jsxNamespace=i),i;t&&(t.jsxNamespace=!1)}}return uu(k.JSX,1920,void 0)}function rm(t,r){var n=r&&Dn(r.exports,t,788968),i=n&&Ao(n),a=i&&Ns(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&on(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function nm(e){return rm(k.ElementChildrenAttributeNameContainer,e)}function im(t,r){var n=Zg(k.IntrinsicElements,r);if(n!==Se){var i=t.value,a=$s(n,e.escapeLeadingUnderscores(i));if(a)return ro(a);var o=ic(n,0);return o||void 0}return be}function am(t){e.Debug.assert(Gg(t.tagName));var r=bn(t);if(!r.resolvedJsxElementAttributesType){var n=em(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=ro(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=ic(Ao(n),0):r.resolvedJsxElementAttributesType=Se}return r.resolvedJsxElementAttributesType}function om(e){var t=Zg(k.ElementClass,e);if(t!==Se)return t}function sm(e){return Zg(k.Element,e)}function cm(e){var t=sm(e);if(t)return Lu([t,Ae])}function um(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){ID(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(279!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return QD(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&280===s.kind&&!s.expression)return QD(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(z.jsx||0)&&on(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===sm(r)&&X&&on(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var i,a=Wr&&2===z.jsx?e.Diagnostics.Cannot_find_name_0:void 0,o=nn(t),s=n?t.tagName:t;if(e.isJsxOpeningFragment(t)&&"null"===o||(i=En(s,o,111551,a,o,!0)),i&&(i.isReferenced=67108863,2097152&i.flags&&!$n(i)&&ei(i)),n){var c=t,u=Oy(c);By(u,t),function(t,r,n){if(1===t)(i=cm(n))&&e_(r,i,$r,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=om(n))&&e_(r,a,$r,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=cm(n),a=om(n);if(!i||!a)return;e_(r,Lu([i,a]),$r,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}}(ly(c),xc(u),c)}}function lm(e,t,r){if(524288&e.flags){var n=Ts(e);if(n.stringIndexInfo||n.numberIndexInfo&&Kg(t)||Cs(e,t)||r&&!Hg(t))return!0}else if(3145728&e.flags&&dm(e))for(var i=0,a=e.types;i<a.length;i++){if(lm(a[i],t,r))return!0}return!1}function dm(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,dm)||2097152&t.flags&&e.every(t.types,dm))}function _m(t,r){if(function(t){if(t.expression&&e.isCommaSequence(t.expression))QD(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=sv(t.expression,r);return t.dotDotDotToken&&n!==be&&!D_(n)&&on(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Se}function pm(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function fm(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function gm(t,r,n,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=156===t.kind?t.right:192===t.kind?t:t.name;if(r){if(U<2&&mm(i))return on(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return on(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Qi(i),Zi(f_(i))),!1}if(128&o&&e.isThisProperty(t)&&mm(i)&&((a=e.getClassLikeDeclarationOfSymbol(bi(i)))&&function(t){return!!e.findAncestor(t,(function(t){return!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"}))}(t)))return on(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Qi(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))return!!e.getContainingClass(t)||(on(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),!1);if(!(24&o))return!0;if(8&o)return!!Ox(t,a=e.getClassLikeDeclarationOfSymbol(bi(i)))||(on(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Qi(i),Zi(f_(i))),!1);if(r)return!0;var c=Ix(t,(function(t){var r=Ao(vi(t));return function(t,r){return p_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!ao(t,f_(r))}))?void 0:t}(r,i)?r:void 0}));if(!c){var u=void 0;if(32&o||!(u=function(t){var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0}(t))||!u.type)return on(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Qi(i),Zi(f_(i)||n)),!1;var l=Kl(u.type);c=(262144&l.flags?Fs(l):l).target}return!!(32&o)||(262144&n.flags&&(n=n.isThisType?Fs(n):Ms(n)),!(!n||!ao(n,c))||(on(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Qi(i),Zi(c)),!1))}function mm(e){return!!p_(e,(function(e){return!(8192&e.flags)}))}function ym(e){return Sm(sv(e),e)}function hm(e){return!!(98304&(W?W_(e):e.flags))}function vm(e){return hm(e)?$_(e):e}function bm(t,r){on(t,32768&r?65536&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function xm(t,r){on(t,32768&r?65536&r?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Dm(t,r,n){if(W&&2&t.flags)return on(r,e.Diagnostics.Object_is_of_type_unknown),Se;var i=98304&(W?W_(t):t.flags);if(i){n(r,i);var a=$_(t);return 229376&a.flags?Se:a}return t}function Sm(e,t){return Dm(e,t,bm)}function Tm(t,r){var n=Sm(t,r);return n!==Se&&16384&n.flags&&on(r,e.Diagnostics.Object_is_possibly_undefined),n}function Em(e){return 32&e.flags?function(e){var t=sv(e.expression),r=np(t,e.expression);return rp(Pm(e,e.expression,Sm(r,e.expression),e.name),e,r!==t)}(e):Pm(e,e.expression,ym(e.expression),e.name)}function Cm(e){return Pm(e,e.left,ym(e.left),e.right)}function km(t){for(;204===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Nm(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Am(e,t){return $s(e,t.escapedName)}function Fm(t,r){return e.isThisProperty(t)&&(Fa(r)||Aa(r))&&e.getThisContainer(t,!0)===Pa(r)}function Pm(t,r,n,i){var a,o=bn(r).resolvedSymbol,s=e.getAssignmentTargetKind(t),c=zs(0!==s||km(t)?dp(n):n);e.isPrivateIdentifier(i)&&ED(t,1048576);var l,d,_=ha(c)||c===ze;if(e.isPrivateIdentifier(i)){var p=Nm(i.escapedText,i);if(_){if(p)return c;if(!e.getContainingClass(i))return QD(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),be}if(!(l=p?Am(n,p):void 0)&&function(t,r,n){var i,a=Ns(t);a&&e.forEach(a,(function(t){var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var o=An(r);if(i){var s=i.valueDeclaration,c=e.getContainingClass(s);if(e.Debug.assert(!!c),n){var l=n.valueDeclaration,d=e.getContainingClass(l);if(e.Debug.assert(!!d),e.findAncestor(d,(function(e){return c===e}))){var _=on(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Zi(t));return e.addRelatedInfo(_,e.createDiagnosticForNode(l,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return on(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,An(c.name||u)),!0}return!1}(n,i,p))return Se}else{if(_)return e.isIdentifier(r)&&o&&Qf(o,t),c;l=$s(c,i.escapedText)}if(!e.isIdentifier(r)||!o||l&&tD(l)||Qf(o,t),l){if(134217728&(null===(a=l.valueDeclaration)||void 0===a?void 0:a.flags)&&Zu(t,l)&&cn(!1,i,e.Diagnostics._0_is_deprecated,i.escapedText),function(t,r,n){var i,a=t.valueDeclaration;if(!a||e.getSourceFileOfNode(r).isDeclarationFile)return;var o=e.idText(n);!function(t){return!!e.findAncestor(t,(function(t){switch(t.kind){case 162:return!0;case 285:case 164:case 166:case 167:case 287:case 157:case 225:case 280:case 277:case 278:case 279:case 272:case 220:case 283:return!1;default:return!e.isExpressionNode(t)&&"quit"}}))}(r)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||Sn(a,n)||function(e){if(!(32&e.parent.flags))return!1;var t=ro(e.parent);for(;;){if(!(t=t.symbol&&Im(t)))return!1;var r=$s(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?249!==a.kind||172===r.parent.kind||8388608&a.flags||Sn(a,n)||(i=on(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=on(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o);i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}(l,t,i),Km(l,t,107===r.kind),bn(t).resolvedSymbol=l,gm(t,105===r.kind,c,l),Ch(t,l,s))return on(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Se;d=Fm(t,l)?xe:Xf(ro(l),t)}else{var f=e.isPrivateIdentifier(i)||0!==s&&rl(n)&&!il(n)?void 0:nc(c,0);if(!f||!f.type)return Qu(n)?be:n.symbol===ie?(ie.exports.has(i.escapedText)&&418&ie.exports.get(i.escapedText).flags?on(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Zi(n)):X&&on(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Zi(n)),be):(i.escapedText&&!Pn(t)&&function(t,r){var n,i;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if(!$s(s,t.escapedText)&&!nc(s,0)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Zi(s));break}}if(Om(t.escapedText,r))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(t),Zi(r));else{var c=Av(r);if(c&&$s(c,t.escapedText))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Zi(r)),i=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var u=Mm(t,r);if(void 0!==u){var l=e.symbolName(u);n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),Zi(r),l),i=u.valueDeclaration&&e.createDiagnosticForNode(u.valueDeclaration,e.Diagnostics._0_is_declared_here,l)}else n=e.chainDiagnosticMessages(Qs(n,r),e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Zi(r))}}var d=e.createDiagnosticForNodeFromMessageChain(t,n);i&&e.addRelatedInfo(d,i);Wr.add(d)}(i,il(n)?c:n),Se);f.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&on(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Zi(c)),d=f.type}return wm(t,l,d,i)}function wm(t,r,n,i){var a=e.getAssignmentTargetKind(t);if(!e.isAccessExpression(t)||1===a||r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags))return n;if(n===xe)return Ia(t,r);var o=!1;if(W&&Y&&107===t.expression.kind){var s=r&&r.valueDeclaration;if(s&&ax(s)){var c=Vf(t);165!==c.kind||c.parent!==s.parent||8388608&s.flags||(o=!0)}}else W&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Vf(t)===Vf(r.valueDeclaration)&&(o=!0);var u=Uf(t,n,o?Q_(n):n);return o&&!(32768&W_(n))&&32768&W_(u)?(on(i,e.Diagnostics.Property_0_is_used_before_being_assigned,Qi(r)),n):a?I_(u):u}function Im(e){var t=ho(e);if(0!==t.length)return Uu(t)}function Om(t,r){var n=r.symbol&&$s(ro(r.symbol),t);return void 0!==n&&n.valueDeclaration&&e.hasSyntacticModifier(n.valueDeclaration,32)}function Mm(t,r){return Jm(e.isString(t)?t:e.idText(t),Ns(r),111551)}function Lm(t,r){var n=e.isString(t)?t:e.idText(t),i=Ns(r),a="for"===n?e.find(i,(function(t){return"htmlFor"===e.symbolName(t)})):"class"===n?e.find(i,(function(t){return"className"===e.symbolName(t)})):void 0;return null!=a?a:Jm(n,i,111551)}function Rm(t,r){var n=Mm(t,r);return n&&e.symbolName(n)}function Bm(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),Cn(t,r,n,void 0,r,!1,!1,(function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),Dn(t,n,i)||Jm(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)}))}function jm(t,r){return r.exports&&Jm(e.idText(t),_i(r),2623475)}function Jm(t,r,n){return e.getSpellingSuggestion(t,r,(function(t){var r=e.symbolName(t);if(e.startsWith(r,'"'))return;if(t.flags&n)return r;if(2097152&t.flags){var i=function(e){if(vn(e).target!==ve)return Yn(e)}(t);if(i&&i.flags&n)return r}return}))}function Km(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?vn(t).target:t).isReferenced=67108863}}}function zm(t,r,n,i){if(i===Se||ha(i))return!0;var a=$s(i,n);if(a){if(e.isPropertyAccessExpression(t)&&a.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(function(e){return e===o}))}return gm(t,r,i,a)}return e.isInJSFile(t)&&0!=(1048576&i.flags)&&i.types.some((function(e){return zm(t,r,n,e)}))}function Um(t){var r=t.initializer;if(247===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return vi(n)}else if(78===r.kind)return qp(r)}function Vm(e){return ic(e,1)&&!ic(e,0)}function qm(e){return 32&e.flags?function(e){var t=sv(e.expression),r=np(t,e.expression);return rp(Wm(e,Sm(r,e.expression)),e,r!==t)}(e):Wm(e,ym(e.expression))}function Wm(t,r){var n=0!==e.getAssignmentTargetKind(t)||km(t)?dp(r):r,i=t.argumentExpression,a=sv(i);if(n===Se||n===ze)return n;if(Ih(n)&&!e.isStringLiteralLike(i))return on(i,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Se;var o=dl(n,function(t){var r=e.skipParentheses(t);if(78===r.kind){var n=qp(r);if(3&n.flags)for(var i=t,a=t.parent;a;){if(235===a.kind&&i===a.statement&&Um(a)===n&&Vm(iv(a.expression)))return!0;i=a,a=a.parent}}return!1}(i)?we:a,t,e.isAssignmentTarget(t)?2|(rl(n)&&!il(n)?1:0):0)||Se;return Dv(wm(t,o.symbol,o,i),t)}function Hm(t,r,n){if(r===Se)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(12288&r.flags))return n&&on(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=qp(i);if(!a)return!1;var o=du(!0);return!!o&&(a===o||(n&&on(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),!1))}function Gm(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function Ym(t){return Gm(t)&&e.forEach(t.typeArguments,Dx),202===t.kind?sv(t.template):e.isJsxOpeningLikeElement(t)?sv(t.attributes):160!==t.kind&&e.forEach(t.arguments,(function(e){sv(e)})),ir}function Xm(e){return Ym(e),ar}function Qm(e){return!!e&&(217===e.kind||224===e.kind&&e.isSpread)}function $m(t){return e.findIndex(t,Qm)}function Zm(e){return!!(16384&e.flags)}function ey(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=rh(n),c=nh(n);if(202===t.kind)if(a=r.length,215===t.template.kind){var u=e.last(t.template.templateSpans);o=e.nodeIsMissing(u.literal)||!!u.literal.isUnterminated}else{var l=t.template;e.Debug.assert(14===l.kind),o=!!l.isUnterminated}else if(160===t.kind)a=gy(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(201===t.kind),0===nh(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var d=$m(r);if(d>=0)return d>=nh(n)&&(ih(n)||d<rh(n))}if(!ih(n)&&a>s)return!1;if(o||a>=c)return!0;for(var _=a;_<c;_++){if(131072&Df(Zy(n,_),Zm).flags)return!1}return!0}function ty(t,r){var n=e.length(t.typeParameters),i=pc(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function ry(e){return iy(e,0,!1)}function ny(e){return iy(e,0,!1)||iy(e,1,!1)}function iy(e,t,r){if(524288&e.flags){var n=Ts(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 ay(t,r,n,i){var a=yp(t.typeParameters,t,0,i),o=ah(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return gp(s?nd(r,s):r,t,(function(e,t){Op(a.inferences,e,t)})),n||mp(r,t,(function(e,t){Op(a.inferences,e,t,64)})),Ec(t,Up(a),e.isInJSFile(r.declaration))}function oy(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Fg(t,e),a=zh(e.attributes,i,n,r);return Op(n.inferences,a,i),Up(n)}(t,r,i,a);if(160!==t.kind){var o=Ng(t,e.every(r.typeParameters,(function(e){return!!Js(e)}))?8:0);if(o){var s=Ag(t),c=_d(o,Sp(function(t,r){return void 0===r&&(r=0),t&&hp(e.map(t.inferences,Dp),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=ry(c),l=u&&u.typeParameters?Pc(Cc(u,u.typeParameters)):c,d=xc(r);Op(a.inferences,l,d,64);var _=yp(r.typeParameters,r,a.flags),p=_d(o,s&&s.returnMapper);Op(_.inferences,p,d),a.returnMapper=e.some(_.inferences,ev)?Sp(function(t){var r=e.filter(t.inferences,ev);return r.length?hp(e.map(r,Dp),t.signature,t.flags,t.compareTypes):void 0}(_)):void 0}}var f=oh(r),g=f?Math.min(rh(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,Qm,g)<0?n.length-g:void 0)}var y=vc(r);if(y){var h=_y(t),v=h?sv(h):Je;Op(a.inferences,v,y)}for(var b=0;b<g;b++){var x=n[b];if(219!==x.kind){var D=Zy(r,b),S=zh(x,D,a,i);Op(a.inferences,S,D)}}if(f){var T=cy(n,g,n.length,f,a,i);Op(a.inferences,T,f)}return Up(a)}function sy(e){return 1048576&e.flags?Tf(e,sy):1&e.flags||T_(Ms(e)||e)?e:B_(e)?Eu(Vc(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Eu([e],[8])}function cy(t,r,n,i,a,o){if(r>=n-1&&Qm(d=t[n-1]))return sy(224===d.kind?d.type:zh(d.expression,i,a,o));for(var s=[],c=[],u=[],l=r;l<n;l++){var d;if(Qm(d=t[l])){var _=224===d.kind?d.type:sv(d.expression);C_(_)?(s.push(_),c.push(8)):(s.push(Db(33,_,Ce,217===d.kind?d.expression:d)),c.push(4))}else{var p=ul(i,Ll(l-r)),f=zh(d,p,a,o),g=Fh(p,4325372);s.push(g?Ol(f):O_(f)),c.push(1)}224===d.kind&&d.tupleNameSource&&u.push(d.tupleNameSource)}return Eu(s,c,!1,e.length(u)===e.length(s)?u:void 0)}function uy(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=fc(e.map(r,Kl),s,pc(s),o),u=0;u<r.length;u++){e.Debug.assert(void 0!==s[u],"Should not call checkTypeArguments with too many type arguments");var l=Fs(s[u]);if(l){var d=n&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,_=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=Wl(s,c));var p=c[u];if(!Pd(p,Yo(_d(l,a),p),n?r[u]:void 0,_,d))return}}return c}function ly(t){if(Gg(t.tagName))return 2;var r=zs(sv(t.tagName));return e.length(ec(r,1))?0:e.length(ec(r,0))?1:2}function dy(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return function(t,r,n,i,a,o,s){var c=Fg(r,t),u=zh(t.attributes,c,void 0,i);return function(){var r,n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!Gg(t.tagName)?sv(t.tagName):void 0;if(!n)return!0;var i=ec(n,0);if(!e.length(i))return!0;var o=DD(t);if(!o)return!0;var c=ni(o,111551,!0,!1,t);if(!c)return!0;var u=ec(ro(c),0);if(!e.length(u))return!0;for(var l=!1,d=0,_=0,p=u;_<p.length;_++){var f=ec(Zy(p[_],0),0);if(e.length(f))for(var g=0,m=f;g<m.length;g++){var y=m[g];if(l=!0,ih(y))return!0;var h=rh(y);h>d&&(d=h)}}if(!l)return!0;for(var v=1/0,b=0,x=i;b<x.length;b++){var D=nh(x[b]);D<v&&(v=D)}if(v<=d)return!0;if(a){var S=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),v,e.entityNameToString(o),d),T=null===(r=Rx(t.tagName))||void 0===r?void 0:r.valueDeclaration;T&&e.addRelatedInfo(S,e.createDiagnosticForNode(T,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||Wr.add(S)}return!1}()&&Id(u,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)}(t,n,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var u=vc(n);if(u&&u!==Je&&201!==t.kind){var l=_y(t),d=void 0;l?(d=sv(l),e.isOptionalChainRoot(l.parent)?d=$_(d):e.isOptionalChain(l.parent)&&(d=tp(d))):d=Je;var _=o?l||t:void 0,p=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!e_(d,u,i,_,p,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,g=oh(n),m=g?Math.min(rh(n)-1,r.length):r.length,y=0;y<m;y++){var h=r[y];if(219!==h.kind){var v=Zy(n,y),b=zh(h,v,void 0,a),x=4&a?op(b):b;if(!Id(x,v,i,o?h:void 0,h,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),S(h,x,v),c.errors||e.emptyArray}}if(g){var D=cy(r,m,r.length,g,void 0,a);_=o?m<r.length?r[m]:t:void 0;if(!e_(D,g,i,_,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),S(_,D,g),c.errors||e.emptyArray}return;function S(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Nv(n))return;var a=Nv(r);a&&Qd(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function _y(t){if(200===t.kind){var r=e.skipOuterExpressions(t.expression);if(e.isAccessExpression(r))return r.expression}}function py(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function fy(t){if(202===t.kind){var r=t.template,n=[py(r,qt||(qt=lu("TemplateStringsArray",0,!0))||$e)];return 215===r.kind&&e.forEach(r.templateSpans,(function(e){n.push(e.expression)})),n}if(160===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 249:case 218:return[py(n,ro(vi(r)))];case 159:var i=r.parent;return[py(n,165===r.parent.kind?ro(vi(i)):Se),py(n,be),py(n,we)];case 162:case 164:case 166:case 167:var a=162!==r.kind&&0!==U;return[py(n,Kx(r)),py(n,zx(r)),py(n,a?hu(Bx(r)):be)]}return e.Debug.fail()}(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=$m(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=217===r.kind&&(br?sv(r.expression):Uh(r.expression));n&&B_(n)?e.forEach(Vc(n),(function(e,t){var i,a=n.target.elementFlags[t],s=py(r,4&a?vu(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function gy(t,r){switch(t.parent.kind){case 249:case 218:return 1;case 162:return 2;case 164:case 166:case 167:return 0===U||r.parameters.length<=2?2:3;case 159:return 3;default:return e.Debug.fail()}}function my(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function yy(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=my(t),c=s.sourceFile,u=s.start,l=s.length;return e.createFileDiagnostic(c,u,l,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function hy(t,r,n){for(var i,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,u=n.length,l=0,d=r;l<d.length;l++){var _=d[l],p=nh(_),f=rh(_);p<u&&p>s&&(s=p),u<f&&f<c&&(c=f),p<a&&(a=p,i=_),o=Math.max(o,f)}var g,m,y=e.some(r,ih),h=y?a:a<o?a+"-"+o:a,v=$m(n)>-1;u<=o&&v&&u--;var b=y||v?y&&v?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:e.Diagnostics.Expected_0_arguments_but_got_1;if(i&&nh(i)>u&&i.declaration){var x=i.declaration.parameters[i.thisParameter?u+1:u];x&&(m=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):u))}if(a<u&&u<o)return yy(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,u,s,c);if(!v&&u<a){var D=yy(t,b,h,u);return m?e.addRelatedInfo(D,m):D}if(y||v){if(g=e.factory.createNodeArray(n),v&&u){var S=e.elementAt(n,$m(n)+1)||void 0;g=e.factory.createNodeArray(n.slice(o>u&&S?n.indexOf(S):Math.min(o,n.length-1)))}}else g=e.factory.createNodeArray(n.slice(o));var T=e.first(g).pos,E=e.last(g).end;E===T&&E++,e.setTextRangePosEnd(g,T,E);var C=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),g,b,h,u);return m?e.addRelatedInfo(C,m):C}function vy(t,r,n,a,o,s){var c,u=202===t.kind,l=160===t.kind,d=e.isJsxOpeningLikeElement(t),_=!n&&i;l||(c=t.typeArguments,(u||d||105!==t.expression.kind)&&e.forEach(c,Dx));var p=n||[];if(function(t,r,n){var i,a,o,s,c=0,u=-1;e.Debug.assert(!r.length);for(var l=0,d=t;l<d.length;l++){var _=d[l],p=_.declaration&&vi(_.declaration),f=_.declaration&&_.declaration.parent;a&&p!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=p,j(_)?(s=++u,c++):s=o,r.splice(s,0,n?es(_,n):_)}}(r,p,o),!p.length)return _&&Wr.add(yy(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Xm(t);var f,g,m,y,h=fy(t),v=1===p.length&&!p[0].typeParameters,b=l||v||!e.some(h,yd)?0:4,x=!!(16&a)&&200===t.kind&&t.arguments.hasTrailingComma;if(p.length>1&&(y=W(p,Xr,x)),y||(y=W(p,$r,x)),y)return y;if(_)if(f)if(1===f.length||f.length>3){var D,S=f[f.length-1];f.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var T=dy(t,h,S,$r,0,!0,(function(){return D}));if(T)for(var E=0,C=T;E<C.length;E++){var k=C[E];S.declaration&&f.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Wr.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],A=0,F=Number.MAX_VALUE,P=0,w=0,I=function(r){var n=dy(t,h,r,$r,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,w+1,p.length,$i(r))}));n?(n.length<=F&&(F=n.length,P=w),A=Math.max(A,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),w++},O=0,M=f;O<M.length;O++){I(M[O])}var L=A>1?N[P]:e.flatten(N);e.Debug.assert(L.length>0,"No errors reported for 3 or fewer overload signatures");var R=e.chainDiagnosticMessages(e.map(L,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),J=e.flatMap(L,(function(e){return e.relatedInformation}));if(e.every(L,(function(e){return e.start===L[0].start&&e.length===L[0].length&&e.file===L[0].file}))){var K=L[0],z=K.file,U=K.start,V=K.length;Wr.add({file:z,start:U,length:V,code:R.code,category:R.category,messageText:R,relatedInformation:J})}else Wr.add(e.createDiagnosticForNodeFromMessageChain(t,R,J))}else if(g)Wr.add(hy(t,[g],h));else if(m)uy(m,t.typeArguments,!0,s);else{var q=e.filter(r,(function(e){return ty(e,c)}));0===q.length?Wr.add(function(t,r,n){var i=n.length;if(1===r.length){var a=pc((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,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,u=0,l=r;u<l.length;u++){var d,_=pc((d=l[u]).typeParameters);o=e.length(d.typeParameters),_>i?c=Math.min(c,_):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)}(t,r,c)):l?s&&Wr.add(yy(t,s)):Wr.add(hy(t,q,h))}return function(t,r,n,i){return e.Debug.assert(r.length>0),Tx(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=rh(a);if(ih(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ae?n.length:ae),a=r[i],o=a.typeParameters;if(!o)return a;var s=Gm(t)?t.typeArguments:void 0,c=s?kc(a,function(e,t,r){var n=e.map(Bx);for(;n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(Fs(t[n.length])||zp(r));return n}(s,o,e.isInJSFile(t))):function(t,r,n,i){var a=yp(r,n,e.isInJSFile(t)?2:0),o=oy(t,n,i,12,a);return kc(n,o)}(t,o,a,n);return r[i]=c,c}(t,r,n):function(t){var r,n=e.mapDefined(t,(function(e){return e.thisParameter}));n.length&&(r=xy(n,n.map(Gy)));for(var i=e.minAndMax(t,by),a=i.min,o=i.max,s=[],c=function(r){var n=e.mapDefined(t,(function(t){return B(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0}));e.Debug.assert(0!==n.length),s.push(xy(n,e.mapDefined(t,(function(e){return eh(e,r)}))))},u=0;u<o;u++)c(u);var l=e.mapDefined(t,(function(t){return B(t)?e.last(t.parameters):void 0})),d=0;if(0!==l.length){var _=vu(Lu(e.mapDefined(t,Tc),2));s.push(Dy(l,_)),d|=1}t.some(j)&&(d|=2);return Qo(t[0].declaration,void 0,r,s,Uu(t.map(xc)),void 0,a,d)}(r)}(t,p,h,!!n);function W(r,n,i){if(void 0===i&&(i=!1),f=void 0,g=void 0,m=void 0,v){var a=r[0];if(e.some(c)||!ey(t,h,a,i))return;return dy(t,h,a,n,0,!1,void 0)?void(f=[a]):a}for(var o=0;o<r.length;o++){if(ty(a=r[o],c)&&ey(t,h,a,i)){var s=void 0,u=void 0;if(a.typeParameters){var l=void 0;if(e.some(c)){if(!(l=uy(a,c,!1))){m=a;continue}}else u=yp(a.typeParameters,a,e.isInJSFile(t)?2:0),l=oy(t,a,h,8|b,u),b|=4&u.flags?8:0;if(s=Ec(a,l,e.isInJSFile(a.declaration),u&&u.inferredTypeParameters),oh(a)&&!ey(t,h,s,i)){g=s;continue}}else s=a;if(!dy(t,h,s,n,b,!1,void 0)){if(b){if(b=0,u)if(s=Ec(a,l=oy(t,a,h,b,u),e.isInJSFile(a.declaration),u&&u.inferredTypeParameters),oh(a)&&!ey(t,h,s,i)){g=s;continue}if(dy(t,h,s,n,b,!1,void 0)){(f||(f=[])).push(s);continue}}return r[o]=s,s}(f||(f=[])).push(s)}}}}function by(e){var t=e.parameters.length;return B(e)?t-1:t}function xy(e,t){return Dy(e,Lu(t,2))}function Dy(t,r){return ap(e.first(t),r)}function Sy(e){return!(!e.typeParameters||!_D(xc(e)))}function Ty(e,t,r,n){return ha(e)||ha(t)&&!!(262144&e.flags)||!r&&!n&&!(1179648&t.flags)&&kd(e,ft)}function Ey(t,r,n){if(t.arguments&&U<1){var i=$m(t.arguments);i>=0&&on(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=ym(t.expression);if(a===ze)return sr;if((a=zs(a))===Se)return Xm(t);if(ha(a))return t.typeArguments&&on(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ym(t);var o=ec(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||165!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=Ao(n.parent.symbol);if(!Ox(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=Bx(s);if(function t(r,n){var i=ho(n);if(!e.length(i))return!1;var a=i[0];if(2097152&a.flags){for(var o=us(a.types),s=0,c=0,u=a.types;c<u.length;c++){var l=u[c];if(!o[s]&&3&e.getObjectFlags(l)){if(l.symbol===r)return!0;if(t(r,l))return!0}s++}return!1}if(a.symbol===r)return!0;return t(r,a)}(n.parent.symbol,c))return!0}return 8&i&&on(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Zi(o)),16&i&&on(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Zi(o)),!1}return!0}(t,o[0]))return Xm(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(on(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Xm(t)):vy(t,o,r,n,0)}var c=ec(a,0);if(c.length){var u=vy(t,c,r,n,0);return X||(u.declaration&&!My(u.declaration)&&xc(u)!==Je&&on(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),vc(u)===Je&&on(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return ky(t.expression,a,1),Xm(t)}function Cy(t,r,n){var i,a=0===n,o=Pv(r),s=o&&ec(o,n).length>0;if(1048576&r.flags){for(var c=!1,u=0,l=r.types;u<l.length;u++){var d=l[u];if(0!==ec(d,n).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Zi(d)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Zi(r))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Zi(r))),i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Zi(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Zi(r));var _=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var p=bn(t).resolvedSymbol;p&&32768&p.flags&&(_=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,_),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function ky(t,r,n,i){var a=Cy(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var u=my(t.parent,!0),l=u.start,d=u.length;c.start=l,c.length=d}Wr.add(c),Ny(r,n,i?e.addRelatedInfo(c,i):c)}function Ny(t,r,n){if(t.symbol){var i=vn(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=ec(ro(vn(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function Ay(t){switch(t.parent.kind){case 249:case 218:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 159:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 162:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 164:case 166:case 167:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function Fy(t,r,n){var i=sv(t.expression),a=zs(i);if(a===Se)return Xm(t);var o,s,c=ec(a,0),u=ec(a,1).length;if(Ty(i,a,c.length,u))return Ym(t);if(o=t,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!B(e)&&e.parameters.length<gy(o,e)}))){var l=e.getTextOfNode(t.expression,!1);return on(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,l),Xm(t)}var d=Ay(t);if(!c.length){var _=Cy(t.expression,a,0),p=e.chainDiagnosticMessages(_.messageChain,d),f=e.createDiagnosticForNodeFromMessageChain(t.expression,p);return _.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,_.relatedMessage)),Wr.add(f),Ny(a,0,f),Xm(t)}return vy(t,c,r,n,0,d)}function Py(t,r){var n=tm(t),i=n&&fi(n),a=i&&Dn(i,k.Element,788968),o=a&&te.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,te.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(128)),c=ln(1,"props");return c.type=r,Qo(s,void 0,void 0,[c],a?Ao(a):Se,void 0,1,0)}function wy(t,r,n){if(Gg(t.tagName)){var i=am(t),a=Py(t,i);return wd(zh(t.attributes,Fg(a,t),void 0,0),i,t.tagName,t.attributes),a}var o=sv(t.tagName),s=zs(o);if(s===Se)return Xm(t);var c=function t(r,n){if(4&r.flags)return[ir];if(128&r.flags){var i=im(r,n);return i?[Py(n,i)]:(on(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+k.IntrinsicElements),e.emptyArray)}var a=zs(r),o=ec(a,1);return 0===o.length&&(o=ec(a,0)),0===o.length&&1048576&a.flags&&(o=is(e.map(a.types,(function(e){return t(e,n)})))),o}(o,t);return Ty(o,s,c.length,0)?Ym(t):0===c.length?(on(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),Xm(t)):vy(t,c,r,n,0)}function Iy(t,r,n){switch(t.kind){case 200:return function(t,r,n){if(105===t.expression.kind){var i=og(t.expression);if(ha(i)){for(var a=0,o=t.arguments;a<o.length;a++)sv(o[a]);return ir}if(i!==Se){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return vy(t,go(i,s.typeArguments,s),r,n,0)}return Ym(t)}var c,u=sv(t.expression);if(e.isCallChain(t)){var l=np(u,t.expression);c=l===u?0:e.isOutermostOptionalChain(t)?8:4,u=l}else c=0;if((u=Dm(u,t.expression,xm))===ze)return sr;var d=zs(u);if(d===Se)return Xm(t);var _=ec(d,0),p=ec(d,1).length;if(Ty(u,d,_.length,p))return u!==Se&&t.typeArguments&&on(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ym(t);if(!_.length){if(p)on(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Zi(u));else{var f=void 0;if(1===t.arguments.length){var g=e.getSourceFileOfNode(t).text;e.isLineBreak(g.charCodeAt(e.skipTrivia(g,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}ky(t.expression,d,0,f)}return Xm(t)}return 8&n&&!t.typeArguments&&_.some(Sy)?(Zh(t,n),or):_.some((function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)}))?(on(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Zi(u)),Xm(t)):vy(t,_,r,n,c)}(t,r,n);case 201:return Ey(t,r,n);case 202:return function(e,t,r){var n=sv(e.tag),i=zs(n);if(i===Se)return Xm(e);var a=ec(i,0),o=ec(i,1).length;return Ty(n,i,a.length,o)?Ym(e):a.length?vy(e,a,t,r,0):(ky(e.tag,i,0),Xm(e))}(t,r,n);case 160:return Fy(t,r,n);case 272:case 271:return wy(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Oy(e,t,r){var n=bn(e),i=n.resolvedSignature;if(i&&i!==or&&!t)return i;n.resolvedSignature=or;var a=Iy(e,t,r||0);return a!==or&&(n.resolvedSignature=vr===br?a:i),a}function My(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=vi(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function Ly(t,r){var n,i;if(r){var a=vn(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(w(t))){var o=e.isTransientSymbol(t)?t:pn(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&yn(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&yn(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(w(o),o),o}return a.inferredClassSymbol.get(w(t))}}function Ry(t,r){var n;ID(t,t.typeArguments)||OD(t.arguments);var i=Oy(t,void 0,r);if(i===or)return Ue;if(By(i,t),105===t.expression.kind)return Je;if(201===t.kind){var a=i.declaration;if(a&&165!==a.kind&&169!==a.kind&&174!==a.kind&&!e.isJSDocConstructSignature(a)&&!My(a))return X&&on(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),be}if(e.isInJSFile(t)&&Uy(t))return function(e){var t=ai(e,e);if(t){var r=ui(t);if(r)return ro(r)}return be}(t.arguments[0]);var o=xc(i);if(12288&o.flags&&Jy(t))return Rl(e.walkUpParenthesizedExpressions(t.parent));if(200===t.kind&&230===t.parent.kind&&16384&o.flags&&bc(i))if(e.isDottedName(t.expression)){if(!jf(t)){var s=on(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Bf(t.expression,s)}}else on(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=e.getDeclarationOfExpando(t);if(c){var u=vi(c);if(null===(n=null==u?void 0:u.exports)||void 0===n?void 0:n.size){var l=Li(u,u.exports,e.emptyArray,e.emptyArray,void 0,void 0);return l.objectFlags|=16384,Uu([o,l])}}}return o}function By(t,r){t.declaration&&134217728&t.declaration.flags&&cn(!1,jy(r),e.Diagnostics._0_is_deprecated,$i(t))}function jy(t){switch((t=e.skipParentheses(t)).kind){case 200:case 160:case 201:return jy(t.expression);case 202:return jy(t.tag);case 272:case 271:return jy(t.tagName);case 199:return t.argumentExpression;case 198:return t.name;case 172:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function Jy(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=du(!1);return!!n&&n===En(r,"Symbol",111551,void 0,void 0,!1)}function Ky(t){if(OD(t.arguments)||function(t){if(V===e.ModuleKind.ES2015)return QD(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return QD(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;if(1!==r.length)return QD(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);if(AD(r),e.isSpreadElement(r[0]))return QD(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return ph(t,be);for(var r=t.arguments[0],n=Uh(r),i=1;i<t.arguments.length;++i)Uh(t.arguments[i]);(32768&n.flags||65536&n.flags||!kd(n,Pe))&&on(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Zi(n));var a=ai(t,r);if(a){var o=li(a,r,!0,!1);if(o)return ph(t,zy(ro(o),o,a))}return ph(t,be)}function zy(t,r,n){if(q&&t&&t!==Se){var i=t;if(!i.syntheticType)if(Kn(e.find(n.declarations,e.isSourceFile),n,!1)){var a=e.createSymbolTable(),o=ln(2097152,"default");o.nameType=Ll("default"),o.target=Gn(r),a.set("default",o);var s=ln(2048,"__type"),c=Li(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=Wg(t)?Nl(t,c,s,0,!1):c}else i.syntheticType=t;return i.syntheticType}return t}function Uy(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=En(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===se)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?248:3&r.flags?246:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(8388608&i.flags)}return!1}function Vy(t){(function(t){if(t.questionDotToken||32&t.flags)return QD(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(t)||ID(t,t.typeArguments),U<2&&ED(t,524288);var r=Oy(t);return By(r,t),xc(r)}function qy(t,r,n,a){var o=sv(n,a);if(e.isConstTypeReference(r))return function t(r){switch(r.kind){case 10:case 14:case 8:case 9:case 109:case 94:case 196:case 197:return!0;case 204:return t(r.expression);case 211:var n=r.operator,i=r.operand;return 40===n&&(8===i.kind||9===i.kind)||39===n&&8===i.kind;case 198:case 199:var a=r.expression;if(e.isIdentifier(a)){var o=Rx(a);return o&&2097152&o.flags&&(o=Yn(o)),!!(o&&384&o.flags&&1===To(o))}}return!1}(n)||on(n,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Ol(o);Dx(r),o=op(I_(o));var s=Kl(r);i&&s!==Se&&(Ad(s,dp(o))||zd(o,s,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first));return s}function Wy(e){return 32&e.flags?function(e){var t=sv(e.expression),r=np(t,e.expression);return rp($_(r),e,r!==t)}(e):$_(sv(e.expression))}function Hy(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 102:if("target"!==r)return QD(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 99:if("meta"!==r)QD(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}}(t),102===t.keywordToken?function(t){var r=e.getNewTargetContainer(t);return r?165===r.kind?ro(vi(r.parent)):ro(vi(r)):(on(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Se)}(t):99===t.keywordToken?function(t){V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System&&on(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_esnext_or_system);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(2097152&r.flags),"Containing file is missing import meta node flag."),e.Debug.assert(!!r.externalModuleIndicator,"Containing file should be a module."),"meta"===t.name.escapedText?function(){return Wt||(Wt=lu("ImportMeta",0,!0))||$e}():Se}(t):e.Debug.assertNever(t.keywordToken)}function Gy(t){var r=ro(t);if(W){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Q_(r)}return r}function Yy(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function Xy(e,t,r){var n=e.parameters.length-(B(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||he,a=r||ro(i);if(B_(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&Yy(o[s])||i.escapedName+"_"+s}return i.escapedName}function Qy(t){return 191===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function $y(e,t){var r=e.parameters.length-(B(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&Qy(n)?n:void 0}var i=e.parameters[r]||he,a=ro(i);if(B_(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&Qy(i.valueDeclaration)?i.valueDeclaration:void 0}function Zy(e,t){return eh(e,t)||be}function eh(e,t){var r=e.parameters.length-(B(e)?1:0);if(t<r)return Gy(e.parameters[t]);if(B(e)){var n=ro(e.parameters[r]),i=t-r;if(!B_(n)||n.target.hasRestElement||i<n.target.fixedLength)return ul(n,Ll(i))}}function th(t,r){var n=rh(t),i=nh(t),a=ah(t);if(a&&r>=n-1)return r===n-1?a:vu(ul(a,we));for(var o=[],s=[],c=[],u=r;u<n;u++){!a||u<n-1?(o.push(Zy(t,u)),s.push(u<i?1:2)):(o.push(a),s.push(8));var l=$y(t,u);l&&c.push(l)}return Eu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function rh(e){var t=e.parameters.length;if(B(e)){var r=ro(e.parameters[t-1]);if(B_(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function nh(t,r){if(B(t)){var n=ro(t.parameters[t.parameters.length-1]);if(B_(n)){var i=e.findIndex(n.target.elementFlags,(function(e){return!(1&e)})),a=i<0?n.target.fixedLength:i;if(a>0)return t.parameters.length-1+a}}return!r&&16&t.flags?0:t.minArgumentCount}function ih(e){if(B(e)){var t=ro(e.parameters[e.parameters.length-1]);return!B_(t)||t.target.hasRestElement}return!1}function ah(e){if(B(e)){var t=ro(e.parameters[e.parameters.length-1]);if(!B_(t))return t;if(t.target.hasRestElement)return Nu(t,t.target.fixedLength)}}function oh(e){var t=ah(e);return!t||D_(t)||ha(t)||0!=(131072&Hs(t).flags)?void 0:t}function sh(e){return ch(e,Ke)}function ch(e,t){return e.parameters.length>0?Zy(e,0):t}function uh(t,r){(t.typeParameters=r.typeParameters,r.thisParameter)&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=ap(r.thisParameter,void 0)),lh(t.thisParameter,ro(r.thisParameter))));for(var n=t.parameters.length-(B(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];if(!e.getEffectiveTypeAnnotationNode(a.valueDeclaration))lh(a,eh(r,i))}if(B(t)){a=e.last(t.parameters);if(e.isTransientSymbol(a)||!e.getEffectiveTypeAnnotationNode(a.valueDeclaration))lh(a,th(r,n))}}function lh(t,r){var n=vn(t);if(!n.type){var i=t.valueDeclaration;n.type=r||za(i,!0),78!==i.name.kind&&(n.type===Ee&&(n.type=Ka(i.name)),function t(r){for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(78===a.name.kind?vn(vi(a)).type=Ta(a):t(a.name))}}(i.name))}}function dh(e){var t=pu(!0);return t!==rt?Kc(t,[e=Pv(e)||Ee]):Ee}function _h(e){var t,r=(t=!0,wt||(wt=lu("PromiseLike",1,t))||rt);return r!==rt?Kc(r,[e=Pv(e)||Ee]):Ee}function ph(t,r){var n=dh(r);return n===Ee?(on(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Se):(fu(!0)||on(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function fh(t,r){if(!t.body)return Se;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),u=Je;if(227!==t.body.kind)n=Uh(t.body,r&&-9&r),s&&(n=Fv(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else if(c){var l=bh(t,r);l?l.length>0&&(n=Lu(l,2)):u=Ke;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?sv(t.expression,r):ke;if(e.pushIfUnique(n,mh(t,s,be,a)),t.asteriskToken){var c=Ab(s,a?19:17,t.expression);o=c&&c.nextType}else o=Ng(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),_=d.yieldTypes,p=d.nextTypes;i=e.some(_)?Lu(_,2):void 0,a=e.some(p)?Uu(p):void 0}else{var f=bh(t,r);if(!f)return 2&o?ph(t,Ke):Ke;if(0===f.length)return 2&o?ph(t,Je):Je;n=Lu(f,2)}if(n||i||a){if(i&&fp(t,i,3),n&&fp(t,n,1),a&&fp(t,a,2),n&&P_(n)||i&&P_(i)||a&&P_(a)){var g=Og(t),m=g?g===gc(t)?c?void 0:n:Cg(xc(g),t):void 0;c?(i=R_(i,m,0,s),n=R_(n,m,1,s),a=R_(a,m,2,s)):n=function(e,t,r){return e&&P_(e)&&(e=L_(e,t?r?Av(t):t:void 0)),e}(n,m,s)}i&&(i=dp(i)),n&&(n=dp(n)),a&&(a=dp(a))}return c?gh(i||Ke,n||u,a||pg(2,t)||Ee,s):s?dh(n||u):n||u}function gh(e,t,r,n){var i=n?fr:gr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ee,t=i.resolveIterationType(t,void 0)||Ee,r=i.resolveIterationType(r,void 0)||Ee,a===rt){var o=i.getGlobalIterableIteratorType(!1),s=o!==rt?Ib(o,i):void 0,c=s?s.returnType:be,u=s?s.nextType:Ce;return kd(t,c)&&kd(u,r)?o!==rt?yu(o,[e]):(i.getGlobalIterableIteratorType(!0),$e):(i.getGlobalGeneratorType(!0),$e)}return yu(a,[e,t,r])}function mh(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?Db(i?19:17,r,n,a):r;return i?Pv(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 yh(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=T.get(r[a])||32768;for(a=e;a<t;a++)i&=~(T.get(r[a])||0);for(a=0;a<e;a++)i|=T.get(r[a])||32768}else{for(a=e;a<t;a++)i|=S.get(r[a])||128;for(a=0;a<e;a++)i&=~(S.get(r[a])||0)}return i}function hh(t){var r=bn(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=function(t){if(208===t.expression.kind){var r=iv(t.expression.expression),n=yh(0,0,hf(t,!1),!0),i=Ms(r)||r;return 3&i.flags?556800==(556800&n):!!(131072&Df(i,(function(e){return(nf(e)&n)===n})).flags)}var a=iv(t.expression);if(!w_(a))return!1;var o=yf(t);if(!o.length||e.some(o,F_))return!1;return function(t,r){return 1048576&t.flags?!e.forEach(t.types,(function(t){return!e.contains(r,t)})):e.contains(r,t)}(Tf(a,Ol),o)}(t)}function vh(e){return e.endFlowNode&&Kf(e.endFlowNode)}function bh(t,r){var n=e.getFunctionFlags(t),i=[],a=vh(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var u=Uh(c,r&&-9&r);2&n&&(u=Fv(u,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&u.flags&&(o=!0),e.pushIfUnique(i,u)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 205:case 206:return!0;case 164:return 197===e.parent.kind;default:return!1}}(t))return!(W&&i.length&&a)||My(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,Ce),i}function xh(t,r){if(i){var n=e.getFunctionFlags(t),a=r&&Gb(r,n);if((!a||!Fh(a,16385))&&163!==t.kind&&!e.nodeIsMissing(t.body)&&227===t.body.kind&&vh(t)){var o=512&t.flags;if(a&&131072&a.flags)on(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(a&&!o)on(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(a&&W&&!kd(Ce,a))on(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!a){if(!o)return;if(Yb(t,xc(gc(t))))return}on(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function Dh(t,r){if(e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t)),Tx(t),r&&4&r&&yd(t)){if(!e.getEffectiveReturnTypeNode(t)&&!vd(t)){var n=Mg(t);if(n&&Tp(xc(n))){var i=bn(t);if(i.contextFreeType)return i.contextFreeType;var a=fh(t,r),o=Qo(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Li(t.symbol,J,[o],e.emptyArray,void 0,void 0);return s.objectFlags|=2097152,i.contextFreeType=s}}return nt}return wD(t)||205!==t.kind||BD(t),function(t,r){var n=bn(t);if(!(1024&n.flags)){var i=Mg(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(ec(ro(vi(t)),0));if(!a)return;if(yd(t))if(i){var o=Ag(t);r&&2&r&&function(t,r,n){for(var i=t.parameters.length-(B(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Op(n.inferences,Kl(s),Zy(r,a))}}var c=ah(r);if(c&&262144&c.flags){uh(t,nd(r,n.nonFixingMapper));var u=rh(r)-1;Op(n.inferences,th(t,u),c)}}(a,i,o),uh(a,o?nd(i,o.mapper):i)}else!function(e){e.thisParameter&&lh(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)lh(r[t])}(a);if(i&&!Dc(t)&&!a.resolvedReturnType){var s=fh(t,r);a.resolvedReturnType||(a.resolvedReturnType=s)}dv(t)}}}(t,r),ro(vi(t))}function Sh(e,t,r,n){if(void 0===n&&(n=!1),!kd(t,Ye)){var i=n&&Nv(t);return un(e,!!i&&kd(i,Ye),r),!1}return!0}function Th(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=Uh(t.arguments[2]);if(ya(r,"value")){var n=$s(r,"writable"),i=n&&ro(n);if(!i||i===Oe||i===Me)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=sv(n.valueDeclaration.initializer);if(a===Oe||a===Me)return!0}return!1}return!$s(r,"set")}function Eh(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&pm(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,Th))}function Ch(t,r,n){var i,a;if(0===n)return!1;if(Eh(r)){if(4&r.flags&&e.isAccessExpression(t)&&107===t.expression.kind){var o=e.getContainingFunction(t);if(!o||165!==o.kind&&!My(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,u=o===r.valueDeclaration.parent,l=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,d=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||u||l||d)}}return!0}if(e.isAccessExpression(t)){var _=e.skipParentheses(t.expression);if(78===_.kind){var p=bn(_).resolvedSymbol;if(2097152&p.flags){var f=Mn(p);return!!f&&260===f.kind}}}return!1}function kh(t,r,n){var i=e.skipOuterExpressions(t,7);return 78===i.kind||e.isAccessExpression(i)?!(32&i.flags)||(on(t,n),!1):(on(t,r),!1)}function Nh(t){sv(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return on(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Be;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&on(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=Ei(bn(r).resolvedSymbol);return n&&(Eh(n)&&on(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(t,r){var n=131075;!W||r.flags&n||32768&W_(r)||on(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}(r,ro(n))),Be}function Ah(e){return Fh(e,2112)?Ph(e,3)||Fh(e,296)?Ye:Ie:we}function Fh(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++){if(Fh(n[r],t))return!0}return!1}function Ph(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&kd(e,we)||!!(2112&t)&&kd(e,Ie)||!!(132&t)&&kd(e,Pe)||!!(528&t)&&kd(e,Be)||!!(16384&t)&&kd(e,Je)||!!(131072&t)&&kd(e,Ke)||!!(65536&t)&&kd(e,Ae)||!!(32768&t)&&kd(e,Ce)||!!(4096&t)&&kd(e,je)||!!(67108864&t)&&kd(e,We))}function wh(t,r,n){return 1048576&t.flags?e.every(t.types,(function(e){return wh(e,r,n)})):Ph(t,r,n)}function Ih(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&Oh(t.symbol)}function Oh(e){return 0!=(128&e.flags)}function Mh(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(285===s.kind||286===s.kind){var c=s.name,u=qu(c);if(jo(u)){var l=$s(r,Vo(u));l&&(Km(l,s,a),gm(s,!1,r,l))}var d=xa(s,ul(r,u,c));return Rh(286===s.kind?s:s.initializer,d)}if(287===s.kind){if(!(n<o.length-1)){U<99&&ED(s,4);var _=[];if(i)for(var p=0,f=i;p<f.length;p++){var g=f[p];e.isSpreadAssignment(g)||_.push(g.name)}d=ba(r,_,r.symbol);return AD(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Rh(s.expression,d)}on(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else on(s,e.Diagnostics.Property_assignment_expected)}function Lh(t,r,n,i,a){var o=t.elements,s=o[n];if(219!==s.kind){if(217!==s.kind){var c=Ll(n);if(C_(r)){var u=Lg(s)?8:0,l=dl(r,c,py(s,c),u)||Se;return Rh(s,xa(s,Lg(s)?af(l,524288):l),a)}return Rh(s,i,a)}if(n<o.length-1)on(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var d=s.expression;if(213!==d.kind||62!==d.operatorToken.kind)return AD(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Rh(d,xf(r,B_)?Tf(r,(function(e){return Nu(e,n)})):vu(i),a);on(d.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function Rh(t,r,n,i){var a;if(286===t.kind){var o=t;o.objectAssignmentInitializer&&(!W||32768&W_(sv(o.objectAssignmentInitializer))||(r=af(r,524288)),function(e,t,r,n,i){var a,o=t.kind;if(62===o&&(197===e.kind||196===e.kind))return Rh(e,sv(r,n),n,107===r.kind);a=55===o||56===o||60===o?hb(e,n):sv(e,n);var s=sv(r,n);Kh(e,t,r,a,s,i)}(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 213===a.kind&&62===a.operatorToken.kind&&(jh(a,n),a=a.left),197===a.kind?function(e,t,r){var n=e.properties;if(W&&0===n.length)return Sm(t,e);for(var i=0;i<n.length;i++)Mh(e,t,i,n,r);return t}(a,r,i):196===a.kind?function(e,t,r){var n=e.elements;U<2&&z.downlevelIteration&&ED(e,512);for(var i=Db(65,t,Ce,e)||Se,a=0;a<n.length;a++)Lh(e,t,a,i,r);return t}(a,r,n):function(t,r,n){var i=sv(t,n),a=287===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,o=287===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;kh(t,a,o)&&wd(r,i,t,t);e.isPrivateIdentifierPropertyAccessExpression(t)&&ED(t.parent,2097152);return r}(a,r,n)}function Bh(e,t){return 0!=(98304&t.flags)||Ad(e,t)}function jh(t,r){for(var n,i={expr:[t],state:[0],leftType:[void 0]},a=0;a>=0;)switch(t=i.expr[a],i.state[a]){case 0:if(e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)){u(sv(t.right,r));break}if(Jh(t),62===(o=t.operatorToken.kind)&&(197===t.left.kind||196===t.left.kind)){u(Rh(t.left,sv(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||yb(s,t.left),l(2),d(t.right);break;case 2:s=i.leftType[a];var c=n;u(Kh(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=sv(t,r)}}function Jh(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||QD(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||QD(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}function Kh(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===ze||o===ze)return ze;a=Sm(a,t),o=Sm(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 on(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(u)),we;var l,d=Sh(t,a,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_=Sh(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(Ph(a,3)&&Ph(o,3)||!Fh(a,2112)&&!Fh(o,2112))l=we;else if(x(a,o)){switch(c){case 49:case 71:E();break;case 42:case 66:U<3&&on(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}l=Ie}else E(x),l=Se;return d&&_&&S(l),l;case 39:case 63:if(a===ze||o===ze)return ze;Ph(a,132)||Ph(o,132)||(a=Sm(a,t),o=Sm(o,n));var p=void 0;if(Ph(a,296,!0)&&Ph(o,296,!0)?p=we:Ph(a,2112,!0)&&Ph(o,2112,!0)?p=Ie:Ph(a,132,!0)||Ph(o,132,!0)?p=Pe:(ha(a)||ha(o))&&(p=a===Se||o===Se?Se:be),p&&!D(c))return p;if(!p){return E((function(e,t){return Ph(e,2543)&&Ph(t,2543)})),be}return 63===c&&S(p),p;case 29:case 31:case 32:case 33:return D(c)&&(a=I_(Sm(a,t)),o=I_(Sm(o,n)),T((function(e,t){return Ad(e,t)||Ad(t,e)||kd(e,Ye)&&kd(t,Ye)}))),Be;case 34:case 35:case 36:case 37:return T((function(e,t){return Bh(e,t)||Bh(t,e)})),Be;case 101:return function(t,r,n,i){return n===ze||i===ze?ze:(!ha(n)&&wh(n,131068)&&on(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ha(i)||Vx(i)||Cd(i,ft)||on(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Be)}(t,n,a,o);case 100:return function(t,r,n,i){return n===ze||i===ze?ze:(n=Sm(n,t),i=Sm(i,r),wh(n,12716)||Ph(n,4456448)||on(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),wh(i,126091264)||on(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Be)}(t,n,a,o);case 55:case 75:var f=4194304&nf(a)?Lu([G_(W?a:I_(o)),o]):a;return 75===c&&S(o),f;case 56:case 74:var g=8388608&nf(a)?Lu([H_(a),o],2):a;return 74===c&&S(o),g;case 60:case 76:var m=262144&nf(a)?Lu([$_(a),o],2):a;return 76===c&&S(o),m;case 62:var y=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=Es(r);n<i.length;n++){var a=i[n],o=ro(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=En(a.valueDeclaration,s,788968,void 0,s,!1);c&&c.declarations.some(e.isJSDocTypedefTag)&&(gn(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),gn(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(y,o),function(r){var i;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=vi(t),o=e.getAssignedExpandoInitializer(n);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(i=null==a?void 0:a.exports)||void 0===i?void 0:i.size);default:return!1}}(y)?(524288&o.flags&&(2===y||6===y||Wd(o)||rf(o)||1&e.getObjectFlags(o))||S(o),a):(S(o),op(o));case 27:if(!z.allowUnreachableCode&&function t(r){switch((r=e.skipParentheses(r)).kind){case 78:case 10:case 13:case 202:case 215:case 14:case 8:case 9:case 109:case 94:case 103:case 149:case 205:case 218:case 206:case 196:case 197:case 208:case 222:case 271:case 270:return!0;case 214:return t(r.whenTrue)&&t(r.whenFalse);case 213:return!e.isAssignmentOperator(r.operatorToken.kind)&&t(r.left)&&t(r.right);case 211:case 212:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 209:case 203:case 221:default:return!1}}(t)&&!function(e){return 78===e.kind&&"eval"===e.escapedText}(n)){var h=e.getSourceFileOfNode(t),v=h.text,b=e.skipTrivia(v,t.pos);h.parseDiagnostics.some((function(t){return t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,b)}))||on(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return o;default:return e.Debug.fail()}function x(e,t){return Ph(e,2112)&&Ph(t,2112)}function D(r){var i=Fh(a,12288)?t:Fh(o,12288)?n:void 0;return!i||(on(i,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function S(r){i&&e.isAssignmentOperator(c)&&(!kh(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)||e.isIdentifier(t)&&"exports"===e.unescapeLeadingUnderscores(t.escapedText)||wd(r,a,t,n))}function T(e){return!e(a,o)&&(E(e),!0)}function E(t){var n,i=!1,c=s||r;if(t){var u=Pv(a),l=Pv(o);i=!(u===a&&l===o)&&!(!u||!l)&&t(u,l)}var d=a,_=o;!i&&t&&(n=function(e,t,r){var n=e,i=t,a=I_(e),o=I_(t);r(a,o)||(n=a,i=o);return[n,i]}(a,o,t),d=n[0],_=n[1]);var p=ea(d,_),f=p[0],g=p[1];(function(t,n,i,a){var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return un(t,n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a);return})(c,i,f,g)||un(c,i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),f,g)}}function zh(t,r,n,i){var a=function(t){return 278!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent}(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=sv(t,1|i|(n?2:0));return Fh(c,2944)&&Hh(c,Cg(r,t))?Ol(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function Uh(e,t){var r=bn(e);if(!r.resolvedType){if(t&&0!==t)return sv(e,t);var n=vr,i=$t;vr=br,$t=void 0,r.resolvedType=sv(e,t),$t=i,vr=n}return r.resolvedType}function Vh(t){return 203===(t=e.skipParentheses(t)).kind||221===t.kind}function qh(t,r){var n=e.getEffectiveInitializer(t),i=av(n)||(r?zh(n,r,void 0,0):Uh(n));return e.isParameter(t)&&194===t.name.kind&&B_(i)&&!i.target.hasRestElement&&qc(i)<t.name.elements.length?function(t,r){for(var n=r.elements,i=Vc(t).slice(),a=t.target.elementFlags.slice(),o=qc(t);o<n.length;o++){var s=n[o];(o<n.length-1||195!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Lg(s)?ja(s,!1,!1):be),a.push(2),e.isOmittedExpression(s)||Lg(s)||pp(s,be))}return Eu(i,a,t.target.readonly)}(i,t.name):i}function Wh(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:O_(r);if(e.isInJSFile(t)){if(98304&n.flags)return pp(t,be),be;if(k_(n))return pp(t,Tt),Tt}return n}function Hh(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(function(e){return Hh(t,e)}))}if(58982400&r.flags){var i=Ms(r)||Ee;return Fh(i,4)&&Fh(t,128)||Fh(i,8)&&Fh(t,256)||Fh(i,64)&&Fh(t,2048)||Fh(i,4096)&&Fh(t,8192)||Hh(t,i)}return!!(4194432&r.flags&&Fh(t,128)||256&r.flags&&Fh(t,256)||2048&r.flags&&Fh(t,2048)||512&r.flags&&Fh(t,512)||8192&r.flags&&Fh(t,8192))}return!1}function Gh(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&Gh(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r))&&Gh(r.parent)}function Yh(e,t,r,n){var i=sv(e,t,n);return Gh(e)?Ol(i):Vh(e)?i:L_(i,Cg(2===arguments.length?Ng(e):r,e))}function Xh(e,t){return 157===e.name.kind&&zg(e.name),Yh(e.initializer,t)}function Qh(e,t){return VD(e),157===e.name.kind&&zg(e.name),$h(e,Dh(e,t),t)}function $h(t,r,n){if(n&&10&n){var i=iy(r,0,!0),a=iy(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=Eg(t,2);if(s){var c=iy($_(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return Zh(t,n),nt;var u=Ag(t),l=u.signature&&xc(u.signature),d=l&&ny(l);if(d&&!d.typeParameters&&!e.every(u.inferences,ev)){var _=function(t,r){for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(p=s[o]).symbol.escapedName;if(tv(t.inferredTypeParameters,c)||tv(a,c)){var u=wi(ln(262144,rv(e.concatenate(t.inferredTypeParameters,a),c)));u.target=p,n=e.append(n,p),i=e.append(i,u),a.push(u)}else a.push(p)}if(i)for(var l=Wl(n,i),d=0,_=i;d<_.length;d++){var p;(p=_[d]).mapper=l}return a}(u,o.typeParameters),p=Cc(o,_),f=e.map(u.inferences,(function(e){return xp(e.typeParameter)}));if(gp(p,c,(function(e,t){Op(f,e,t,0,!0)})),e.some(f,ev)&&(mp(p,c,(function(e,t){Op(f,e,t)})),!function(e,t){for(var r=0;r<e.length;r++)if(ev(e[r])&&ev(t[r]))return!0;return!1}(u.inferences,f)))return function(e,t){for(var r=0;r<e.length;r++)!ev(e[r])&&ev(t[r])&&(e[r]=t[r])}(u.inferences,f),u.inferredTypeParameters=e.concatenate(u.inferredTypeParameters,_),Pc(p)}return Pc(ay(o,c,u))}}}}return r}function Zh(e,t){2&t&&(Ag(e).flags|=4)}function ev(e){return!(!e.candidates&&!e.contraCandidates)}function tv(t,r){return e.some(t,(function(e){return e.symbol.escapedName===r}))}function rv(e,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!tv(e,a))return a}}function nv(e){var t=ry(e);if(t&&!t.typeParameters)return xc(t)}function iv(t){var r=av(t);if(r)return r;if(67108864&t.flags&&$t){var n=$t[P(t)];if(n)return n}var i=Sr,a=sv(t);Sr!==i&&(($t||($t=[]))[P(t)]=a,e.setNodeFlags(t,67108864|t.flags));return a}function av(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||105===r.expression.kind||e.isRequireCall(r,!0)||Jy(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Kl(r.type);if(8===t.kind||10===t.kind||109===t.kind||94===t.kind)return sv(t)}else{var n=e.isCallChain(r)?function(e){var t=sv(e.expression),r=np(t,e.expression),n=nv(t);return n&&rp(n,e,r!==t)}(r):nv(ym(r.expression));if(n)return n}}function ov(e){var t=bn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=be;try{return t.contextFreeType=sv(e,4)}finally{e.contextualType=r}}function sv(t,r,n){var o=d;d=t,D=0;var s=$h(t,function(t,r,n){var o=t.kind;if(a)switch(o){case 218:case 205:case 206:a.throwIfCancellationRequested()}switch(o){case 78:return $f(t);case 107:return ng(t);case 105:return og(t);case 103:return Fe;case 14:case 10:return Il(Ll(t.text));case 8:return eS(t),Il(Ll(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&U<7&&QD(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),Il(function(t){return Ll({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 109:return Le;case 94:return Oe;case 215:return function(t){return e.forEach(t.templateSpans,(function(t){Fh(sv(t.expression),12288)&&on(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)})),Pe}(t);case 13:return Dt;case 196:return Rg(t,r,n);case 197:return qg(t,r);case 198:return Em(t);case 156:return Cm(t);case 199:return qm(t);case 200:if(99===t.expression.kind)return Ky(t);case 201:return Ry(t,r);case 202:return Vy(t);case 204:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;if(n)return qy(n,n.typeExpression.type,t.expression,r);return sv(t.expression,r)}(t,r);case 218:return function(e){return rx(e),Tx(e),ro(vi(e))}(t);case 205:case 206:return Dh(t,r);case 208:return function(e){return sv(e.expression),Yr}(t);case 203:case 221:return function(e){return qy(e,e.type,e.expression)}(t);case 222:return Wy(t);case 223:return Hy(t);case 207:return Nh(t);case 209:return function(e){return sv(e.expression),ke}(t);case 210:return function(t){if(i){var r;if(!(32768&t.flags))if(e.isInTopLevelContext(t)){if(!GD(r=e.getSourceFileOfNode(t))){var n=void 0;if(!e.isEffectiveExternalModule(r,z)){n||(n=e.getSpanOfTokenAtPosition(r,t.pos));var a=e.createFileDiagnostic(r,n.start,n.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);Wr.add(a)}(V!==e.ModuleKind.ESNext&&V!==e.ModuleKind.System||U<4)&&(n=e.getSpanOfTokenAtPosition(r,t.pos),a=e.createFileDiagnostic(r,n.start,n.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher),Wr.add(a))}}else if(!GD(r=e.getSourceFileOfNode(t))){n=e.getSpanOfTokenAtPosition(r,t.pos),a=e.createFileDiagnostic(r,n.start,n.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);var o=e.getContainingFunction(t);if(o&&165!==o.kind&&0==(2&e.getFunctionFlags(o))){var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,s)}Wr.add(a)}_g(t)&&on(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=sv(t.expression),u=Fv(c,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return u!==c||u===Se||3&c.flags||sn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}(t);case 211:return function(t){var r=sv(t.operand);if(r===ze)return ze;switch(t.operand.kind){case 8:switch(t.operator){case 40:return Il(Ll(-t.operand.text));case 39:return Il(Ll(+t.operand.text))}break;case 9:if(40===t.operator)return Il(Ll({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return Sm(r,t.operand),Fh(r,12288)&&on(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Fh(r,2112)&&on(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Zi(I_(r))),we):Ah(r);case 53:hb(t.operand);var n=12582912&nf(r);return 4194304===n?Oe:8388608===n?Le:Be;case 45:case 46:return Sh(t.operand,Sm(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&kh(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),Ah(r)}return Se}(t);case 212:return function(t){var r=sv(t.operand);return r===ze?ze:(Sh(t.operand,Sm(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&kh(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),Ah(r))}(t);case 213:return jh(t,r);case 214:return function(e,t){var r=hb(e.condition);return mb(e.condition,e.whenTrue,r),Lu([sv(e.whenTrue,t),sv(e.whenFalse,t)],2)}(t,r);case 217:return function(e,t){return U<2&&ED(e,z.downlevelIteration?1536:2048),Db(33,sv(e.expression,t),Ce,e.expression)}(t,r);case 219:return ke;case 216:return function(t){i&&(8192&t.flags||YD(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),_g(t)&&on(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(t);if(!r)return be;var n=e.getFunctionFlags(r);if(!(1&n))return be;var a=0!=(2&n);t.asteriskToken&&(a&&U<99&&ED(t,53248),!a&&U<2&&z.downlevelIteration&&ED(t,256));var o=Dc(r),s=o&&Wb(o,a),c=s&&s.yieldType||be,u=s&&s.nextType||be,l=a?Pv(u)||be:u,d=t.expression?sv(t.expression):ke,_=mh(t,d,l,a);return o&&_&&wd(_,c,t.expression||t,t.expression),t.asteriskToken?Tb(a?19:17,1,d,t.expression)||be:o?qb(2,o,a)||be:pg(2,r)||be}(t);case 224:return function(e){return e.isSpread?ul(e.type,we):e.type}(t);case 280:return _m(t,r);case 270:case 271:return function(e,t){return Tx(e),sm(e)||be}(t);case 274:return function(t){um(t.openingFragment);var r=e.getSourceFileOfNode(t);return 2!==z.jsx||!z.jsxFactory&&!r.pragmas.has("jsx")||z.jsxFragmentFactory||r.pragmas.has("jsxfrag")||on(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),Xg(t),sm(t)||be}(t);case 278:return $g(t,r);case 272:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Se}(t,r,n),r);return Ih(s)&&function(t,r){198===t.parent.kind&&t.parent.expression===t||199===t.parent.kind&&t.parent.expression===t||(78===t.kind||156===t.kind)&&Mx(t)||175===t.parent.kind&&t.parent.exprName===t||267===t.parent.kind||on(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&&on(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,s),d=o,s}function cv(t){t.expression&&YD(t.expression,e.Diagnostics.Type_expected),Dx(t.constraint),Dx(t.default);var r=No(vi(t));Ms(r),function(e){return js(e)!==at}(r)||on(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Zi(r));var n=Fs(r),a=Js(r);n&&a&&Pd(a,Yo(_d(n,Gl(r,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),i&&$b(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function uv(t){kD(t),lb(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,92)&&(165===r.kind&&e.nodeIsPresent(r.body)||on(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),165===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&on(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&on(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)&&on(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),165!==r.kind&&169!==r.kind&&174!==r.kind||on(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),206===r.kind&&on(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),166!==r.kind&&167!==r.kind||on(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||kd(Hs(ro(t.symbol)),Ct)||on(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function lv(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(78===s.kind&&s.escapedText===n)return on(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((194===s.kind||193===s.kind)&&lv(s,r,n))return!0}}}function dv(t){170===t.kind?function(t){kD(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return QD(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(AD(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return QD(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return QD(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return QD(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return QD(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return QD(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(146!==r.type.kind&&143!==r.type.kind){var n=Kl(r.type);return 4&n.flags||8&n.flags?QD(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(r.name),Zi(n),Zi(t.type?Kl(t.type):be)):1048576&n.flags&&wh(n,384,!0)?QD(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):QD(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}if(!t.type)return QD(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):173!==t.kind&&248!==t.kind&&174!==t.kind&&168!==t.kind&&165!==t.kind&&169!==t.kind||wD(t);var r=e.getFunctionFlags(t);if(4&r||(3==(3&r)&&U<99&&ED(t,12288),2==(3&r)&&U<4&&ED(t,64),0!=(3&r)&&U<2&&ED(t,128)),Zb(t.typeParameters),e.forEach(t.parameters,uv),t.type&&Dx(t.type),i){!function(t){if(U>=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===oe.escapedName&&an("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var n=e.getEffectiveReturnTypeNode(t);if(X&&!n)switch(t.kind){case 169:on(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 168:on(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=Kl(n);if(o===Je)on(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=qb(0,o,0!=(2&a))||be;Pd(gh(s,qb(1,o,0!=(2&a))||s,qb(2,o,0!=(2&a))||Ee,!!(2&a)),o,n)}}else 2==(3&a)&&function(t,r){var n=Kl(r);if(U>=2){if(n===Se)return;var i=pu(!0);if(i!==rt&&!no(n,i))return void on(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,Zi(Pv(n)||Je))}else{if(function(t){Ov(t&&e.getEntityNameFromTypeNode(t))}(r),n===Se)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void on(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,Zi(n));var o=ni(a,111551,!0),s=o?ro(o):Se;if(s===Se)return void(78===a.kind&&"Promise"===a.escapedText&&io(n)===pu(!1)?on(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):on(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,Ot||(Ot=lu("PromiseConstructorLike",0,d))||$e);if(c===$e)return void on(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(!Pd(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=Dn(t.locals,u.escapedText,111551);if(l)return void on(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var d;Fv(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)}170!==t.kind&&304!==t.kind&&zv(t)}}function _v(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(161===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 78:o=e.idText(s);break;default:continue}r.get(o)?(on(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),on(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function pv(t){if(250===t.kind){var r=vi(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=wc(vi(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o<s.length;o++){var c=s[o];if(1===c.parameters.length&&c.parameters[0].type)switch(c.parameters[0].type.kind){case 146:a?on(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 143:i?on(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function fv(t){if(kD(t)||function(t){if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return QD(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(UD(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(U<2&&e.isPrivateIdentifier(t.name))return QD(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(250===t.parent.kind){if(UD(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return QD(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(176===t.parent.kind){if(UD(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return QD(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}8388608&t.flags&&WD(t);if(e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||8388608&t.flags||e.hasSyntacticModifier(t,160)))return QD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(t)||RD(t.name),lb(t),e.isPrivateIdentifier(t.name)&&U<99)for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))bn(r).flags|=67108864}function gv(t){dv(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return XD(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);if(r)QD(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),Dx(t.body);var r=vi(t);if(t===e.getDeclarationOfKind(r,t.kind)&&Cv(r),!e.nodeIsMissing(t.body)&&i){var n=t.parent;if(e.getClassExtendsHeritageElement(n)){Zf(t.parent,n);var a=tg(n),o=eg(t.body);if(o){if(a&&on(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==z.target||!z.useDefineForClassFields)&&(e.some(t.parent.members,(function(t){return!!e.isPrivateIdentifierPropertyDeclaration(t)||162===t.kind&&!e.hasSyntacticModifier(t,32)&&!!t.initializer}))||e.some(t.parameters,(function(t){return e.hasSyntacticModifier(t,92)})))){for(var s=void 0,c=0,u=t.body.statements;c<u.length;c++){var l=u[c];if(230===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||on(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else a||on(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function mv(t){if(i){if(wD(t)||function(t){if(!(8388608&t.flags)){if(U<1)return QD(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return XD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body&&e.hasSyntacticModifier(t,128))return QD(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return QD(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return zD(e)||e.parameters.length===(166===e.kind?0:1)}(t))return QD(t.name,166===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(167===t.kind){if(t.type)return QD(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return QD(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return QD(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return QD(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||RD(t.name),jv(t),dv(t),166===t.kind&&!(8388608&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||on(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),157===t.name.kind&&zg(t.name),e.isPrivateIdentifier(t.name)&&on(t.name,e.Diagnostics.An_accessor_cannot_be_named_with_a_private_identifier),!Uo(t)){var r=166===t.kind?167:166,n=e.getDeclarationOfKind(vi(t),r);if(n){var a=e.getEffectiveModifierFlags(t),o=e.getEffectiveModifierFlags(n);(28&a)!=(28&o)&&on(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&a)!=(128&o)&&on(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),yv(t,n,Ga,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),yv(t,n,Ya,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=Xa(vi(t));166===t.kind&&xh(t,s)}Dx(t.body)}function yv(e,t,r,n){var i=r(e),a=r(t);i&&a&&!Dd(i,a)&&on(e,n)}function hv(t,r){return fc(e.map(t.typeArguments,Kl),r,pc(r),e.isInJSFile(t))}function vv(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=Fs(r[o]);s&&(n||(i=Wl(r,n=hv(t,r))),a=a&&Pd(n[o],_d(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function bv(t){var r=iu(t);if(r!==Se){var n=bn(t).resolvedSymbol;if(n)return 524288&n.flags&&vn(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function xv(t){ID(t,t.typeArguments),172!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||XD(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,Dx);var r=iu(t);if(r!==Se){if(t.typeArguments&&i){var n=bv(t);n&&vv(t,n)}var a=bn(t).resolvedSymbol;a&&(e.some(a.declarations,(function(e){return Px(e)&&!!(134217728&e.flags)}))&&cn(!1,jy(t),e.Diagnostics._0_is_deprecated,a.escapedName),32&r.flags&&8&a.flags&&on(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Zi(r)))}}function Dv(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(kd(i,Yu(n,!1)))return 199===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&bs(n)&&on(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Zi(n)),t;var a=zs(n);if(nc(a,1)&&Ph(i,296))return t;if(rl(n)){var o=$u(i,r);if(o){var s=bf(a,(function(e){return $s(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return on(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Se}}return on(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Zi(i),Zi(n)),Se}function Sv(t){!function(t){if(150===t.operator){if(147!==t.type.kind)return QD(t.type,e.Diagnostics._0_expected,e.tokenToString(147));var r=e.walkUpParenthesizedTypes(t.parent);switch(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)&&(r=r.parent,e.isJSDocTypeTag(r)&&(r=r.parent.parent)),r.kind){case 246:var n=r;if(78!==n.name.kind)return QD(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return QD(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return QD(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 162:if(!e.hasSyntacticModifier(r,32)||!e.hasEffectiveModifier(r,64))return QD(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 161:if(!e.hasSyntacticModifier(r,64))return QD(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:QD(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(141===t.operator&&177!==t.type.kind&&178!==t.type.kind)YD(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(147))}(t),Dx(t.type)}function Tv(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierPropertyDeclaration(t))&&!!(8388608&t.flags)}function Ev(t,r){var n=e.getCombinedModifierFlags(t);return 250!==t.parent.kind&&249!==t.parent.kind&&218!==t.parent.kind&&8388608&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function Cv(t){if(i){for(var r,n,a,o=0,s=155,c=!1,u=!0,l=!1,d=t.declarations,_=0!=(16384&t.flags),p=!1,f=!1,g=!1,m=[],y=0,h=d;y<h.length;y++){var v=h[y],b=8388608&v.flags,x=250===v.parent.kind||176===v.parent.kind||b;if(x&&(a=void 0),249!==v.kind&&218!==v.kind||b||(g=!0),248===v.kind||164===v.kind||163===v.kind||165===v.kind){m.push(v);var D=Ev(v,155);o|=D,s&=D,c=c||e.hasQuestionToken(v),u=u&&e.hasQuestionToken(v);var S=e.nodeIsPresent(v.body);S&&r?_?f=!0:p=!0:(null==a?void 0:a.parent)===v.parent&&a.end!==v.pos&&F(a),S?r||(r=v):l=!0,a=v,x||(n=v)}}if(f&&e.forEach(m,(function(t){on(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),p&&e.forEach(m,(function(t){on(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),g&&!_&&16&t.flags&&e.forEach(d,(function(r){mn(r,e.Diagnostics.Duplicate_identifier_0,e.symbolName(t),d)})),!n||n.body||e.hasSyntacticModifier(n,128)||n.questionToken||F(n),l&&(function(t,r,n,i,a){if(0!=(i^a)){var o=Ev(A(t,r),n);e.forEach(t,(function(t){var r=Ev(t,n)^o;1&r?on(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?on(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?on(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&on(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(d,r,155,o,s),function(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(A(t,r));e.forEach(t,(function(t){e.hasQuestionToken(t)!==a&&on(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(d,r,c,u),r))for(var T=hc(t),E=gc(r),C=0,k=T;C<k.length;C++){var N=k[C];if(!Vd(E,N)){e.addRelatedInfo(on(N.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(r,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function A(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function F(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(function(e){if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a))){if((164===t.kind||163===t.kind)&&e.hasSyntacticModifier(t,32)!==e.hasSyntacticModifier(n,32))on(i,e.hasSyntacticModifier(t,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static);return}if(e.nodeIsPresent(n.body))return void on(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;_?on(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?on(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):on(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function kv(t){if(i){var r=t.localSymbol;if((r||(r=vi(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,a=0,o=0,s=0,c=r.declarations;s<c.length;s++){var u=y(g=c[s]),l=Ev(g,513);1&l?512&l?o|=u:n|=u:a|=u}var d=n&a,_=o&(n|a);if(d||_)for(var p=0,f=r.declarations;p<f.length;p++){u=y(g=f[p]);var g,m=e.getNameOfDeclaration(g);u&_?on(m,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(m)):u&d&&on(m,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(m))}}}function y(t){var r=t;switch(r.kind){case 250:case 251:case 327:case 320:case 321:return 2;case 253:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 249:case 252:case 288:return 3;case 294:return 7;case 263:if(!e.isEntityNameExpression(r.expression))return 1;r=r.expression;case 257:case 260:case 259:var n=0,i=Yn(vi(r));return e.forEach(i.declarations,(function(e){n|=y(e)})),n;case 246:case 195:case 248:case 262:case 78:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}function Nv(e,t,r,n){var i=Av(e,t);return i&&Pv(i,t,r,n)}function Av(t,r){if(!ha(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(no(t,pu(!1)))return n.promisedTypeOfPromise=Vc(t)[0];var i=ya(t,"then");if(!ha(i)){var a=i?ec(i,0):e.emptyArray;if(0!==a.length){var o=af(Lu(e.map(a,sh)),2097152);if(!ha(o)){var s=ec(o,0);if(0!==s.length)return n.promisedTypeOfPromise=Lu(e.map(s,sh),2);r&&on(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&on(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Fv(e,t,r,n){return Pv(e,t,r,n)||Se}function Pv(e,t,r,n){if(ha(e))return e;var i=e;return i.awaitedTypeOfType?i.awaitedTypeOfType:i.awaitedTypeOfType=Tf(e,t?function(e){return wv(e,t,r,n)}:wv)}function wv(t,r,n,i){var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;var o=Av(t);if(o){if(t.id===o.id||qr.lastIndexOf(o.id)>=0)return void(r&&on(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));qr.push(t.id);var s=Pv(o,r,n,i);if(qr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=ya(e,"then");return!!t&&ec(af(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();on(r,n,i)}}function Iv(t){var r=Oy(t);By(r,t);var n=xc(r);if(!(1&n.flags)){var i,a,o=Ay(t);switch(t.parent.kind){case 249:i=Lu([ro(vi(t.parent)),Je]);break;case 159:i=Je,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 162:i=Je,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 164:case 166:case 167:i=Lu([hu(Bx(t.parent)),Je]);break;default:return e.Debug.fail()}Pd(n,i,t,o,(function(){return a}))}}function Ov(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(78===t.kind?788968:1920),i=En(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&Ci(i)&&!tD(Yn(i))&&!$n(i)&&ei(i)}}function Mv(t){var r=Lv(t);r&&e.isEntityName(r)&&Ov(r)}function Lv(e){if(e)switch(e.kind){case 182:case 181:return Rv(e.types);case 183:return Rv([e.trueType,e.falseType]);case 185:case 191:return Lv(e.type);case 172:return e.typeName}}function Rv(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];185===a.kind||191===a.kind;)a=a.type;if(140!==a.kind&&(W||(190!==a.kind||103!==a.literal.kind)&&149!==a.kind)){var o=Lv(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function Bv(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function jv(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){z.experimentalDecorators||on(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var r=t.decorators[0];if(ED(r,8),159===t.kind&&ED(r,32),z.emitDecoratorMetadata)switch(ED(r,16),t.kind){case 249:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++){Mv(Bv(a[i]))}break;case 166:case 167:var o=166===t.kind?167:166,s=e.getDeclarationOfKind(vi(t),o);Mv(Ha(t)||s&&Ha(s));break;case 164:for(var c=0,u=t.parameters;c<u.length;c++){Mv(Bv(u[c]))}Mv(e.getEffectiveReturnTypeNode(t));break;case 162:Mv(e.getEffectiveTypeAnnotationNode(t));break;case 159:Mv(Bv(t));for(var l=0,d=t.parent.parameters;l<d.length;l++){Mv(Bv(d[l]))}}e.forEach(t.decorators,Iv)}}function Jv(e){switch(e.kind){case 78:return e;case 198:return e.name;default:return}}function Kv(t){jv(t),dv(t);var r=e.getFunctionFlags(t);if(t.name&&157===t.name.kind&&zg(t.name),!Uo(t)){var n=vi(t),a=t.localSymbol||n,o=e.find(a.declarations,(function(e){return e.kind===t.kind&&!(131072&e.flags)}));t===o&&Cv(a),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&Cv(n)}var s=163===t.kind?void 0:t.body;if(Dx(s),xh(t,Dc(t)),i&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(s)&&!Tv(t)&&pp(t,be),1&r&&e.nodeIsPresent(s)&&xc(gc(t))),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!wg(Kl(c.typeExpression),t)&&on(c,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function zv(t){if(i){var r=e.getSourceFileOfNode(t),n=hr.get(r.path);n||(n=[],hr.set(r.path,n)),n.push(t)}}function Uv(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 249:case 218:Wv(a,r),Gv(a,r);break;case 294:case 253:case 227:case 255:case 234:case 235:case 236:Zv(a,r);break;case 165:case 205:case 248:case 206:case 164:case 166:case 167:a.body&&Zv(a,r),Gv(a,r);break;case 163:case 168:case 169:case 173:case 174:case 251:case 250:Gv(a,r);break;case 184:Hv(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function Vv(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=Px(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function qv(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Wv(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 164:case 162:case 166:case 167:if(167===a.kind&&32768&a.symbol.flags)break;var o=vi(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||8388608&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Qi(o)));break;case 165:for(var s=0,c=a.parameters;s<c.length;s++){var u=c[s];!u.symbol.isReferenced&&e.hasSyntacticModifier(u,8)&&r(u,0,e.createDiagnosticForNode(u.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(u.symbol)))}break;case 170:case 226:break;default:e.Debug.fail()}}}function Hv(t,r){var n=t.typeParameter;Yv(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function Gv(t,r){if(e.last(vi(t).declarations)===t)for(var n=e.getEffectiveTypeParameterDeclarations(t),i=new e.Set,a=0,o=n;a<o.length;a++){var s=o[a];if(Yv(s)){var c=e.idText(s.name),u=s.parent;if(184!==u.kind&&u.typeParameters.every(Yv)){if(e.tryAddToSet(i,u)){var l=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(u.typeParameters),d=1===u.typeParameters.length,_=d?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,p=d?c:void 0;r(s,1,e.createFileDiagnostic(e.getSourceFileOfNode(u),l.pos,l.end-l.pos,_,p))}}else r(s,1,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,c))}}}function Yv(e){return!(262144&hi(e.symbol).isReferenced||qv(e.name))}function Xv(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function Qv(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function $v(t){return e.isBindingElement(t)&&qv(t.name)?!!e.findAncestor(t.parent,(function(t){return!(e.isArrayBindingPattern(t)||e.isVariableDeclaration(t)||e.isVariableDeclarationList(t))&&(!!e.isForOfStatement(t)||"quit")})):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||tb(t))&&qv(t.name)}function Zv(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((function(t){var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol))for(var s=0,c=t.declarations;s<c.length;s++){var u=c[s];if(!$v(u))if(tb(u))Xv(n,259===(o=u).kind?o:260===o.kind?o.parent:o.parent.parent,u,P);else if(e.isBindingElement(u)&&e.isObjectBindingPattern(u.parent)){u!==e.last(u.parent.elements)&&e.last(u.parent.elements).dotDotDotToken||Xv(i,u.parent,u,P)}else if(e.isVariableDeclaration(u))Xv(a,u.parent,u,P);else{var l=t.valueDeclaration&&Qv(t.valueDeclaration),d=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);l&&d?e.isParameterPropertyDeclaration(l,l.parent)||e.parameterIsThisKeyword(l)||qv(d)||r(l,1,e.createDiagnosticForNode(d,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t))):Vv(u,e.symbolName(t),r)}}})),n.forEach((function(t){var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?260===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];Vv(c,e.idText(c.name),r)}})),i.forEach((function(t){var n=t[0],i=t[1],o=Qv(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&246===n.parent.kind&&247===n.parent.parent.kind?Xv(a,n.parent.parent,n.parent,P):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,eb(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var u=c[s];r(u,o,e.createDiagnosticForNode(u,e.Diagnostics._0_is_declared_but_its_value_is_never_read,eb(u.name)))}})),a.forEach((function(t){var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,eb(e.first(i).name)):e.createDiagnosticForNode(229===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,eb(s.name)))}}))}function eb(t){switch(t.kind){case 78:return e.idText(t);case 194:case 193:return eb(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function tb(e){return 259===e.kind||262===e.kind||260===e.kind}function rb(t){if(227===t.kind&&ZD(t),e.isFunctionOrModuleBlock(t)){var r=Dr;e.forEach(t.statements,Dx),Dr=r}else e.forEach(t.statements,Dx);t.locals&&zv(t)}function nb(t,r,n){if(!r||r.escapedText!==n)return!1;if(162===t.kind||161===t.kind||164===t.kind||163===t.kind||166===t.kind||167===t.kind)return!1;if(8388608&t.flags)return!1;var i=e.getRootDeclaration(t);return 159!==i.kind||!e.nodeIsMissing(i.parent.body)}function ib(t){e.findAncestor(t,(function(r){return!!(4&cD(r))&&(78!==t.kind?on(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):on(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function ab(t){e.findAncestor(t,(function(r){return!!(8&cD(r))&&(78!==t.kind?on(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):on(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function ob(t){67108864&cD(e.getEnclosingBlockScopeContainer(t))&&an("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,"WeakMap")}function sb(t,r){if(!(V>=e.ModuleKind.ES2015)&&(nb(t,r,"require")||nb(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=ma(t);294===n.kind&&e.isExternalOrCommonJsModule(n)&&an("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 cb(t,r){if(!(U>=4)&&nb(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=ma(t);294===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&an("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 ub(e){return e===xe?be:e===Et?Tt:e}function lb(t){var r;if(jv(t),e.isBindingElement(t)||Dx(t.type),t.name){if(157===t.name.kind&&(zg(t.name),t.initializer&&Uh(t.initializer)),195===t.kind){193===t.parent.kind&&U<99&&ED(t,4),t.propertyName&&157===t.propertyName.kind&&zg(t.propertyName);var n=t.parent.parent,i=va(n),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=qu(a);if(jo(o)){var s=$s(i,Vo(o));s&&(Km(s,void 0,!1),gm(n,!!n.initializer&&105===n.initializer.kind,i,s))}}}if(e.isBindingPattern(t.name)&&(194===t.name.kind&&U<2&&z.downlevelIteration&&ED(t,512),e.forEach(t.name.elements,Dx)),t.initializer&&159===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))on(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&&235!==t.parent.parent.kind,u=0===t.name.elements.length;if(c||u){var l=za(t);if(c){var d=Uh(t.initializer);W&&u?Tm(d,t):wd(d,za(t),t,t.initializer)}u&&(e.isArrayBindingPattern(t.name)?Db(65,l,Ce,t):W&&Tm(l,t))}}else{var _=vi(t),p=ub(ro(_));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)||235===t.parent.parent.kind||wd(Uh(f),p,t,f,void 0);_.declarations.length>1&&e.some(_.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!_b(r,t)}))&&on(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=ub(za(t));p===Se||g===Se||Dd(p,g)||67108864&_.flags||db(_.valueDeclaration,p,t,g),t.initializer&&wd(Uh(t.initializer),g,t,t.initializer,void 0),_b(t,_.valueDeclaration)||on(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}162!==t.kind&&161!==t.kind&&(kv(t),246!==t.kind&&195!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(246!==t.kind||t.initializer)){var r=vi(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=En(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&pm(n)){var i=e.getAncestor(n.valueDeclaration,247),a=229===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(227===a.kind&&e.isFunctionLike(a.parent)||254===a.kind||253===a.kind||294===a.kind)){var o=Qi(n);on(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),sb(t,t.name),cb(t,t.name),U<99&&nb(t,t.name,"WeakMap")&&Vr.push(t))}}}function db(t,r,n,i){var a=e.getNameOfDeclaration(n),o=162===n.kind||161===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=on(a,o,s,Zi(r),Zi(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function _b(t,r){if(159===t.kind&&246===r.kind||246===t.kind&&159===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function pb(t){return function(t){if(235!==t.parent.parent.kind&&236!==t.parent.parent.kind)if(8388608&t.flags)WD(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return QD(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return QD(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(229!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags))return QD(t.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var r=e.getEmitModuleKind(z);r<e.ModuleKind.ES2015&&r!==e.ModuleKind.System&&!(8388608&t.parent.parent.flags)&&e.hasSyntacticModifier(t.parent.parent,1)&&function t(r){if(78===r.kind){if("__esModule"===e.idText(r))return function(t,r,n,i,a,o){if(!GD(e.getSourceFileOfNode(r)))return an(t,r,n,i,a,o),!0;return!1}("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a))return t(a.name)}return!1}(t.name);(e.isLet(t)||e.isVarConst(t))&&function t(r){if(78===r.kind){if(118===r.originalKeywordKind)return QD(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||t(a.name)}return!1}(t.name)}(t),lb(t)}function fb(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return QD(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(AD(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return QD(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(t.dotDotDotToken&&t.initializer)XD(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}(t),lb(t)}function gb(t){kD(t)||HD(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 231:case 232:case 233:case 240:case 234:case 235:case 236:return!1;case 242:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return QD(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(t.declarationList))QD(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,Dx)}function mb(t,r,n){if(W){var i=e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?t.name:void 0;if(i)if(!W_(n))if(0!==ec(n,0).length){var a=Rx(i);if(a)e.forEachChild(r,(function r(n){if(e.isIdentifier(n)){var o=Rx(n);if(o&&o===a){if(e.isIdentifier(t))return!0;for(var s=i.parent,c=n.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||107===s.kind&&107===c.kind)return Rx(s)===Rx(c);if(!e.isPropertyAccessExpression(s)||!e.isPropertyAccessExpression(c))return!1;if(Rx(s.name)!==Rx(c.name))return!1;c=c.expression,s=s.expression}}}return e.forEachChild(n,r)}))||on(t,e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead)}}}function yb(t,r){return 16384&t.flags&&on(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function hb(e,t){return yb(sv(e,t),e)}function vb(t){KD(t);var r=vm(sv(t.expression));if(247===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&on(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),bb(t)}else{var i=t.initializer,a=sv(i);196===i.kind||197===i.kind?on(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):kd(function(e){var t=Xu(Yu(e));return 131072&t.flags?Pe:t}(r),a)?kh(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):on(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}r!==Ke&&Ph(r,126091264)||on(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Zi(r)),Dx(t.statement),t.locals&&zv(t)}function bb(e){var t=e.initializer;t.declarations.length>=1&&pb(t.declarations[0])}function xb(e){return Db(e.awaitModifier?15:13,ym(e.expression),Ce,e.expression)}function Db(e,t,r,n){return ha(t)?t:Sb(e,t,r,n,!0)||be}function Sb(t,r,n,i,a){var o=0!=(2&t);if(r!==Ke){var s=U>=2,c=!s&&z.downlevelIteration;if(s||c||o){var u=Ab(r,t,s?i:void 0);if(a&&u){var l=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;l&&Pd(n,u.nextType,i,l)}if(u||s)return u&&u.yieldType}var d=r,_=!1,p=!1;if(4&t){if(1048576&d.flags){var f=r.types,g=e.filter(f,(function(e){return!(132&e.flags)}));g!==f&&(d=Lu(g,2))}else 132&d.flags&&(d=Ke);if((p=d!==r)&&(U<1&&i&&(on(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&d.flags))return Pe}if(!C_(d)){if(i&&!_){var m=Tb(t,0,r,void 0),y=4&t&&!p?c?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:m?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],h=y[0];un(i,y[1]&&!!Nv(d),h,Zi(d))}return p?Pe:void 0}var v=ic(d,1);return p&&v?132&v.flags?Pe:Lu([v,Pe],2):v}Lb(i,r,o)}function Tb(e,t,r,n){if(!ha(r)){var i=Ab(r,e,n);return i&&i[R(t)]}}function Eb(e,t,r){if(void 0===e&&(e=Ke),void 0===t&&(t=Ke),void 0===r&&(r=Ee),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=jc([e,t,r]),i=ur.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},ur.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Cb(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==lr){if(s===dr)return dr;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?Eb(r&&Lu(r),n&&Lu(n),i&&Uu(i)):lr}function kb(e,t){return e[t]}function Nb(e,t,r){return e[t]=r}function Ab(t,r,n){if(ha(t))return dr;if(!(1048576&t.flags)){var i=Pb(t,r,n);return i===lr?void(n&&Lb(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=kb(t,o);if(s)return s===lr?void 0:s;for(var c=0,u=t.types;c<u.length;c++){var l=Pb(u[c],r,n);l===lr?n&&(Lb(n,t,!!(2&r)),n=void 0):a=e.append(a,l)}var d=a?Cb(a):lr;return Nb(t,o,d),d===lr?void 0:d}function Fb(e,t){if(e===lr)return lr;if(e===dr)return dr;var r=e.yieldType,n=e.returnType,i=e.nextType;return Eb(Pv(r,t)||be,Pv(n,t)||be,i)}function Pb(e,t,r){if(ha(e))return dr;var n;if(2&t&&(n=wb(e,fr)||Ob(e,fr)))return n;if(1&t&&(n=wb(e,gr)||Ob(e,gr))){if(!(2&t))return n;if(n!==lr)return Nb(e,"iterationTypesOfAsyncIterable",Fb(n,r))}if(2&t&&(n=Mb(e,fr,r))!==lr)return n;if(1&t&&(n=Mb(e,gr,r))!==lr)return 2&t?Nb(e,"iterationTypesOfAsyncIterable",n?Fb(n,r):lr):n;return lr}function wb(e,t){return kb(e,t.iterableCacheKey)}function Ib(e,t){var r=wb(e,t)||Mb(e,t,void 0);return r===lr?pr:r}function Ob(e,t){var r;if(no(e,r=t.getGlobalIterableType(!1))||no(e,r=t.getGlobalIterableIteratorType(!1))){var n=Vc(e)[0],i=Ib(r,t),a=i.returnType,o=i.nextType;return Nb(e,t.iterableCacheKey,Eb(n,a,o))}if(no(e,t.getGlobalGeneratorType(!1))){var s=Vc(e);n=s[0],a=s[1],o=s[2];return Nb(e,t.iterableCacheKey,Eb(n,a,o))}}function Mb(t,r,n){var i,a=$s(t,e.getPropertyNameForKnownSymbolName(r.iteratorSymbolName)),o=!a||16777216&a.flags?void 0:ro(a);if(ha(o))return Nb(t,r.iterableCacheKey,dr);var s=o?ec(o,0):void 0;if(!e.some(s))return Nb(t,r.iterableCacheKey,lr);var c=null!==(i=Rb(Uu(e.map(s,xc)),r,n))&&void 0!==i?i:lr;return Nb(t,r.iterableCacheKey,c)}function Lb(t,r,n){var i=n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;un(t,!!Nv(r),i,Zi(r))}function Rb(e,t,r){if(ha(e))return dr;var n=Bb(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(no(e,r)){var n=Vc(e)[0],i=Bb(r,t)||Vb(r,t,void 0),a=i===lr?pr:i,o=a.returnType,s=a.nextType;return Nb(e,t.iteratorCacheKey,Eb(n,o,s))}if(no(e,t.getGlobalIteratorType(!1))||no(e,t.getGlobalGeneratorType(!1))){var c=Vc(e);n=c[0],o=c[1],s=c[2];return Nb(e,t.iteratorCacheKey,Eb(n,o,s))}}(e,t)||Vb(e,t,r);return n===lr?void 0:n}function Bb(e,t){return kb(e,t.iteratorCacheKey)}function jb(e,t){var r=ya(e,"done")||Oe;return kd(0===t?Oe:Le,r)}function Jb(e){return jb(e,0)}function Kb(e){return jb(e,1)}function zb(e){if(ha(e))return dr;var t,r=kb(e,"iterationTypesOfIteratorResult");if(r)return r;if(no(e,(t=!1,jt||(jt=lu("IteratorYieldResult",1,t))||rt)))return Nb(e,"iterationTypesOfIteratorResult",Eb(Vc(e)[0],void 0,void 0));if(no(e,function(e){return Jt||(Jt=lu("IteratorReturnResult",1,e))||rt}(!1)))return Nb(e,"iterationTypesOfIteratorResult",Eb(void 0,Vc(e)[0],void 0));var n=Df(e,Jb),i=n!==Ke?ya(n,"value"):void 0,a=Df(e,Kb),o=a!==Ke?ya(a,"value"):void 0;return Nb(e,"iterationTypesOfIteratorResult",i||o?Eb(i,o||Je,void 0):lr)}function Ub(t,r,n,i){var a=$s(t,n);if(a||"next"===n){var o=!a||"next"===n&&16777216&a.flags?void 0:"next"===n?ro(a):af(ro(a),2097152);if(ha(o))return"next"===n?dr:_r;var s,c,u,l,d,_=o?ec(o,0):e.emptyArray;if(0===_.length){if(i)on(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n);return"next"===n?dr:void 0}for(var p=0,f=_;p<f.length;p++){var g=f[p];"throw"!==n&&e.some(g.parameters)&&(s=e.append(s,Zy(g,0))),c=e.append(c,xc(g))}if("throw"!==n){var m=s?Lu(s):Ee;if("next"===n)l=m;else if("return"===n){var y=r.resolveIterationType(m,i)||be;u=e.append(u,y)}}var h=c?Uu(c):Ke,v=zb(r.resolveIterationType(h,i)||be);return v===lr?(i&&on(i,r.mustHaveAValueDiagnostic,n),d=be,u=e.append(u,be)):(d=v.yieldType,u=e.append(u,v.returnType)),Eb(d,Lu(u),l)}}function Vb(e,t,r){var n=Cb([Ub(e,t,"next",r),Ub(e,t,"return",r),Ub(e,t,"throw",r)]);return Nb(e,t.iteratorCacheKey,n)}function qb(e,t,r){if(!ha(t)){var n=Wb(t,r);return n&&n[R(e)]}}function Wb(e,t){if(ha(e))return dr;var r=t?fr:gr;return Ab(e,t?2:1,void 0)||Rb(e,r,void 0)}function Hb(t){ZD(t)||function(t){var r=t;for(;r;){if(e.isFunctionLike(r))return QD(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 242:if(t.label&&r.label.escapedText===t.label.escapedText)return!!(237===t.kind&&!e.isIterationStatement(r.statement,!0))&&QD(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 241:if(238===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?QD(t,238===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):QD(t,238===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(t)}function Gb(e,t){var r,n,i=!!(2&t);return!!(1&t)?null!==(r=qb(1,e,i))&&void 0!==r?r:Se:i?null!==(n=Pv(e))&&void 0!==n?n:Se:e}function Yb(t,r){var n=Gb(r,e.getFunctionFlags(t));return!!n&&Fh(n,16387)}function Xb(t){ZD(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!GD(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Wr.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a)),!0}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&sv(t.expression)}function Qb(t){var r,n=Ic(t.symbol,1),i=Ic(t.symbol,0),a=ic(t,0),o=ic(t,1);if(a||o){e.forEach(Es(t),(function(e){var r=ro(e);p(e,r,t,i,a,0),p(e,r,t,n,o,1)}));var s=t.symbol.valueDeclaration;if(1&e.getObjectFlags(t)&&e.isClassLike(s))for(var c=0,u=s.members;c<u.length;c++){var l=u[c];if(!e.hasSyntacticModifier(l,32)&&Uo(l)){var d=vi(l),_=ro(d);p(d,_,t,i,a,0),p(d,_,t,n,o,1)}}}a&&o&&(!(r=n||i)&&2&e.getObjectFlags(t)&&(r=e.forEach(ho(t),(function(e){return ic(e,0)&&ic(e,1)}))?void 0:t.symbol.declarations[0]));function p(t,r,n,i,a,o){if(a&&!e.isKnownSymbol(t)){var s=t.valueDeclaration,c=s&&e.getNameOfDeclaration(s);if((!c||!e.isPrivateIdentifier(c))&&(1!==o||(c?jg(c):Kg(t.escapedName)))){var u;if(s&&c&&(213===s.kind||157===c.kind||t.parent===n.symbol))u=s;else if(i)u=i;else if(2&e.getObjectFlags(n)){u=e.forEach(ho(n),(function(e){return Cs(e,t.escapedName)&&ic(e,o)}))?void 0:n.symbol.declarations[0]}if(u&&!kd(r,a))on(u,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Qi(t),Zi(r),Zi(a))}}}r&&!kd(o,a)&&on(r,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Zi(o),Zi(a))}function $b(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":on(e,t,e.escapedText)}}function Zb(t){if(t)for(var r=!1,n=0;n<t.length;n++){var a=t[n];if(cv(a),i){a.default?(r=!0,ex(a.default,t,n)):r&&on(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<n;o++)t[o].symbol===a.symbol&&on(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function ex(t,r,n){!function t(i){if(172===i.kind){var a=iu(i);if(262144&a.flags)for(var o=n;o<r.length;o++)a.symbol===vi(r[o])&&on(i,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(i,t)}(t)}function tx(t){if(1!==t.declarations.length){var r=vn(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,(function(e){return 249===e.kind||250===e.kind}))}(t);if(n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=pc(r),a=0,o=t;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),u=c.length;if(u<i||u>n)return!1;for(var l=0;l<u;l++){var d=c[l],_=r[l];if(d.name.escapedText!==_.symbol.escapedName)return!1;var p=e.getEffectiveConstraintOfTypeParameter(d),f=p&&Kl(p),g=Fs(_);if(f&&g&&!Dd(f,g))return!1;var m=d.default&&Kl(d.default),y=Js(_);if(m&&y&&!Dd(m,y))return!1}}return!0}(n,Ao(t).localTypeParameters))for(var i=Qi(t),a=0,o=n;a<o.length;a++){on(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}}function rx(t){!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!kD(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(93===o.token){if(r)return YD(o,e.Diagnostics.extends_clause_already_seen);if(n)return YD(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return YD(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(116===o.token),n)return YD(o,e.Diagnostics.implements_clause_already_seen);n=!0}MD(o)}})(t)||FD(t.typeParameters,r)}(t),jv(t),t.name&&($b(t.name,e.Diagnostics.Class_name_cannot_be_0),sb(t,t.name),cb(t,t.name),8388608&t.flags||function(t){1===U&&"Object"===t.escapedText&&V<e.ModuleKind.ES2015&&on(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[V])}(t.name)),Zb(e.getEffectiveTypeParameterDeclarations(t)),kv(t);var r=vi(t),n=Ao(r),a=Yo(n),o=ro(r);tx(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(165===s.kind)for(var c=0,u=s.parameters;c<u.length;c++){var l=u[c];e.isParameterPropertyDeclaration(l,s)&&!e.isBindingPattern(l.name)&&g(r,l.name,l.name.escapedText,3)}else{var d=e.hasSyntacticModifier(s,32),_=s.name;if(!_)return;var p=e.isPrivateIdentifier(_)?i:d?n:r,f=_&&e.getPropertyNameForPropertyNameNode(_);if(f)switch(s.kind){case 166:g(p,_,f,1);break;case 167:g(p,_,f,2);break;case 162:g(p,_,f,3);break;case 164:g(p,_,f,8)}}}function g(t,r,n,i){var a=t.get(n);a?8&a?8!==i&&on(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i?on(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i):t.set(n,i)}}(t),8388608&t.flags||function(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.hasSyntacticModifier(i,32)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":on(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,ua(vi(t)))}}}}(t);var s=e.getEffectiveBaseTypeNode(t);if(s){e.forEach(s.typeArguments,Dx),U<2&&ED(s.parent,1);var c=e.getClassExtendsHeritageElement(t);c&&c!==s&&sv(c.expression);var u=ho(n);if(u.length&&i){var l=u[0],d=mo(n),_=zs(d);if(function(t,r){var n=ec(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasEffectiveModifier(i,8))Ox(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||on(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,ri(t.symbol))}}(_,s),Dx(s.expression),e.some(s.typeArguments)){e.forEach(s.typeArguments,Dx);for(var p=0,f=fo(_,s.typeArguments,s);p<f.length;p++){if(!vv(s,f[p].typeParameters))break}}if(Pd(a,x=Yo(l,n.thisType),void 0)?Pd(o,xd(_),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):nx(t,a,x,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags&&!lo(o)&&on(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(_.symbol&&32&_.symbol.flags||8650752&d.flags)){var g=go(_,s.typeArguments,s);e.forEach(g,(function(e){return!My(e.declaration)&&!Dd(xc(e),l)}))&&on(s.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){var n=Ns(r);e:for(var i=0,a=n;i<a.length;i++){var o=a[i],s=ix(o);if(!(4194304&s.flags)){var c=Cs(t,s.escapedName);if(c){var u=ix(c),l=e.getDeclarationModifierFlagsFromSymbol(s);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){var d=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&l&&(!d||!e.hasSyntacticModifier(d,128))){for(var _=0,p=ho(t);_<p.length;_++){var f=p[_];if(f!==r){var g=Cs(f,s.escapedName),m=g&&ix(g);if(m&&m!==s)continue e}}218===d.kind?on(d,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Qi(o),Zi(r)):on(d,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Zi(t),Qi(o),Zi(r))}}else{var y=e.getDeclarationModifierFlagsFromSymbol(u);if(8&l||8&y)continue;var h=void 0,v=98308&s.flags,b=98308&u.flags;if(v&&b){if(128&l&&!(s.valueDeclaration&&e.isPropertyDeclaration(s.valueDeclaration)&&s.valueDeclaration.initializer)||s.valueDeclaration&&250===s.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var x=4!==v&&4===b;if(x||4===v&&4!==b){var D=x?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;on(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,D,Qi(s),Zi(r),Zi(t))}else if(z.useDefineForClassFields){var S=e.find(u.declarations,(function(e){return 162===e.kind&&!e.initializer}));if(S&&!(33554432&u.flags)&&!(128&l)&&!(128&y)&&!u.declarations.some((function(e){return!!(8388608&e.flags)}))){var T=ki(e.getClassLikeDeclarationOfSymbol(t.symbol)),E=S.name;if(S.exclamationToken||!T||!e.isIdentifier(E)||!W||!ox(E,t,T)){var C=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;on(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,C,Qi(s),Zi(r))}}}continue}if(fm(s)){if(fm(u)||4&u.flags)continue;e.Debug.assert(!!(98304&u.flags)),h=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else h=98304&s.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;on(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,h,Zi(r),Qi(s),Zi(t))}}}}}(n,l)}}var m=e.getEffectiveImplementsTypeNodes(t);if(m)for(var y=0,h=m;y<h.length;y++){var v=h[y];if(e.isEntityNameExpression(v.expression)||on(v.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),xv(v),i){var b=Hs(Kl(v));if(b!==Se)if(bo(b)){var x,D=b.symbol&&32&b.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;Pd(a,x=Yo(b,n.thisType),void 0)||nx(t,a,x,D)}else on(v,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}i&&(Qb(n),pv(t),function(t){if(!W||!Y||8388608&t.flags)return;for(var r=ki(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&ax(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)){var s=ro(vi(a));3&s.flags||32768&W_(s)||r&&ox(o,s,r)||on(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function nx(t,r,n,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&Rx(t.name)||Rx(t);if(i){var o=$s(r,i.escapedName),s=$s(n,i.escapedName);if(o&&s){Pd(ro(o),ro(s),t.name||t,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Qi(i),Zi(r),Zi(n))}))||(a=!0)}}},s=0,c=t.members;s<c.length;s++){o(c[s])}a||Pd(r,n,t.name||t,i)}function ix(t){return 1&e.getCheckFlags(t)?t.target:t}function ax(t){return 162===t.kind&&!e.hasSyntacticModifier(t,160)&&!t.exclamationToken&&!t.initializer}function ox(t,r,n){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!(32768&W_(Uf(i,r,Q_(r))))}function sx(t){if(kD(t)||function(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(93!==a.token)return e.Debug.assert(116===a.token),YD(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return YD(a,e.Diagnostics.extends_clause_already_seen);r=!0,MD(a)}}(t),Zb(t.typeParameters),i){$b(t.name,e.Diagnostics.Interface_name_cannot_be_0),kv(t);var r=vi(t);if(tx(r),t===e.getDeclarationOfKind(r,250)){var n=Ao(r),a=Yo(n);if(function(t,r){var n=ho(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(Bo(t).declaredProperties,(function(e){i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],u=0,l=Ns(Yo(c,t.thisType));u<l.length;u++){var d=l[u],_=i.get(d.escapedName);if(_){if(_.containingType!==t&&!h_(_.prop,d)){a=!1;var p=Zi(_.containingType),f=Zi(c),g=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Qi(d),p,f);g=e.chainDiagnosticMessages(g,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Zi(t),p,f),Wr.add(e.createDiagnosticForNodeFromMessageChain(r,g))}}else i.set(d.escapedName,{prop:d,containingType:c})}return a}(n,t.name)){for(var o=0,s=ho(n);o<s.length;o++){Pd(a,Yo(s[o],n.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}Qb(n)}}_v(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),(function(t){e.isEntityNameExpression(t.expression)||on(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),xv(t)})),e.forEach(t.members,Dx),i&&(pv(t),zv(t))}function cx(e){var t=bn(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=ux(a,r);bn(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function ux(t,r){if(e.isComputedNonLiteralName(t.name))on(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);Kg(n)&&!Jg(n)&&on(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=To(vi(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||So(t)?s(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&on(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return on(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)on(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(8388608&t.parent.flags)on(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=sv(i);Ph(o,296)?Pd(o,Ao(vi(t.parent)),i,void 0):on(i,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Zi(o))}}return a;function s(r){switch(r.kind){case 211:var n=s(r.operand);if("number"==typeof n)switch(r.operator){case 39:return n;case 40:return-n;case 54:return~n}break;case 213:var i=s(r.left),a=s(r.right);if("number"==typeof i&&"number"==typeof a)switch(r.operatorToken.kind){case 51:return i|a;case 50:return i&a;case 48:return i>>a;case 49:return i>>>a;case 47:return i<<a;case 52:return i^a;case 41:return i*a;case 43:return i/a;case 39:return i+a;case 40:return i-a;case 44:return i%a;case 42:return Math.pow(i,a)}else if("string"==typeof i&&"string"==typeof a&&39===r.operatorToken.kind)return i+a;break;case 10:case 14:return r.text;case 8:return eS(r),+r.text;case 204:return s(r.expression);case 78:var o=r;return Jg(o.escapedText)?+o.escapedText:e.nodeIsMissing(r)?0:c(r,vi(t.parent),o.escapedText);case 199:case 198:var u=r;if(function t(r){return 78===r.kind||198===r.kind&&t(r.expression)||199===r.kind&&t(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}(u)){var l=iv(u.expression);if(l.symbol&&384&l.symbol.flags){var d=void 0;return d=198===u.kind?u.name.escapedText:e.escapeLeadingUnderscores(e.cast(u.argumentExpression,e.isLiteralExpression).text),c(r,l.symbol,d)}}}}function c(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return Sn(o,t)?uD(o):(on(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);on(r,e.Diagnostics.Property_0_is_used_before_being_assigned,Qi(a))}}}(t):8388608&t.parent.flags&&!e.isEnumConst(t.parent)&&0===To(vi(t.parent))?void 0:void 0!==r?r:void on(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function lx(t){e.isPrivateIdentifier(t.name)&&on(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function dx(t){if(i){var r=e.isGlobalScopeAugmentation(t),n=8388608&t.flags;r&&!n&&on(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(hx(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;kD(t)||n||10!==t.name.kind||QD(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(sb(t,t.name),cb(t,t.name)),kv(t);var o=vi(t);if(512&o.flags&&!n&&o.declarations.length>1&&I(t,!!z.preserveConstEnums||!!z.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if((249===i.kind||248===i.kind&&e.nodeIsPresent(i.body))&&!(8388608&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?on(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<s.pos&&on(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,249);c&&(d=t,_=c,p=e.getEnclosingBlockScopeContainer(d),f=e.getEnclosingBlockScopeContainer(_),xn(p)?xn(f):!xn(f)&&p===f)&&(bn(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((r||33554432&vi(t).flags)&&t.body)for(var u=0,l=t.body.statements;u<l.length;u++){_x(l[u],r)}}else xn(t.parent)?r?on(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&on(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):on(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var d,_,p,f;t.body&&(Dx(t.body),e.isGlobalScopeAugmentation(t)||zv(t))}function _x(t,r){switch(t.kind){case 229:for(var n=0,i=t.declarationList.declarations;n<i.length;n++){_x(i[n],r)}break;case 263:case 264:YD(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 257:case 258:YD(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 195:case 246:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++){_x(s[o],r)}break}case 249:case 252:case 248:case 250:case 253:case 251:if(r)return;var c=vi(t);if(c){var u=!(33554432&c.flags);u||(u=!!c.parent&&e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function px(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return on(r,e.Diagnostics.String_literal_expected),!1;var n=254===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 294===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!oa(t))||(on(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):(on(r,264===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function fx(t){var r=vi(t),n=Yn(r);if(n!==he){var i=(1160127&(r=hi(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);if(n.flags&i)on(t,267===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Qi(r));!z.isolatedModules||267!==t.kind||t.parent.parent.isTypeOnly||111551&n.flags||8388608&t.flags||on(t,e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type),e.isImportSpecifier(t)&&e.every(n.declarations,(function(t){return!!(134217728&e.getCombinedNodeFlags(t))}))&&cn(!1,t.name,e.Diagnostics._0_is_deprecated,r.escapedName)}}function gx(t){sb(t,t.name),cb(t,t.name),fx(t),262===t.kind&&"default"===e.idText(t.propertyName||t.name)&&z.esModuleInterop&&V!==e.ModuleKind.System&&V<e.ModuleKind.ES2015&&ED(t,262144)}function mx(t){if(!hx(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!kD(t)&&e.hasEffectiveModifiers(t)&&YD(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),px(t))){var r=t.importClause;if(r&&!function(t){if(t.isTypeOnly&&t.name&&t.namedBindings)return QD(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);return!1}(r))if(r.name&&gx(r),r.namedBindings)if(260===r.namedBindings.kind)gx(r.namedBindings),V!==e.ModuleKind.System&&V<e.ModuleKind.ES2015&&z.esModuleInterop&&ED(t,131072);else ai(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,gx)}}function yx(t){if(!hx(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!kD(t)&&e.hasEffectiveModifiers(t)&&YD(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===U&&ED(t,4194304),function(t){var r,n=t.isTypeOnly&&265!==(null===(r=t.exportClause)||void 0===r?void 0:r.kind);n&&QD(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||px(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,bx);var r=254===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&254===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;294===t.parent.kind||r||n||on(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=ai(t,t.moduleSpecifier);i&&di(i)?on(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Qi(i)):t.exportClause&&fx(t.exportClause),V!==e.ModuleKind.System&&V<e.ModuleKind.ES2015&&(t.exportClause?z.esModuleInterop&&ED(t,131072):ED(t,65536))}}function hx(e,t){var r=294===e.parent.kind||254===e.parent.kind||253===e.parent.kind;return r||YD(e,t),!r}function vx(t){return e.forEachImportClauseDeclaration(t,(function(e){return!!vn(vi(e)).constEnumReferenced}))}function bx(t){if(fx(t),e.getEmitDeclarations(z)&&da(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)z.esModuleInterop&&V!==e.ModuleKind.System&&V<e.ModuleKind.ES2015&&"default"===e.idText(t.propertyName||t.name)&&ED(t,262144);else{var r=t.propertyName||t.name,n=En(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===ne||n===ie||xn(ma(n.declarations[0]))))on(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{Zn(t);var i=n&&(2097152&n.flags?Yn(n):n);(!i||i===he||111551&i.flags)&&Uh(t.propertyName||t.name)}}}function xx(t){var r=vi(t),n=vn(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&function(t){return e.forEachEntry(t.exports,(function(e,t){return"export="!==t}))}(r)){var a=Mn(i)||i.valueDeclaration;oa(a)||e.isInJSFile(a)||on(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=gi(r);o&&o.forEach((function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,N);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o<s.length;o++){var c=s[o];O(c)&&Wr.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function Dx(t){if(t){var r=d;d=t,D=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,Dx)}));var r=t.kind;if(a)switch(r){case 253:case 249:case 250:case 248:a.throwIfCancellationRequested()}r>=229&&r<=245&&t.flowNode&&!Kf(t.flowNode)&&cn(!1===z.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(r){case 158:return cv(t);case 159:return uv(t);case 162:return fv(t);case 161:return function(t){return e.isPrivateIdentifier(t.name)&&on(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),fv(t)}(t);case 173:case 174:case 168:case 169:case 170:return dv(t);case 164:case 163:return function(t){VD(t)||RD(t.name),e.isPrivateIdentifier(t.name)&&on(t,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Kv(t),e.hasSyntacticModifier(t,128)&&164===t.kind&&t.body&&on(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 165:return gv(t);case 166:case 167:return mv(t);case 172:return xv(t);case 171:return function(t){var r=function(e){switch(e.parent.kind){case 206:case 168:case 248:case 205:case 173:case 164:case 163:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=gc(r),i=bc(n);if(i){Dx(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)Bl(a);else if(i.parameterIndex>=0)B(n)&&i.parameterIndex===n.parameters.length-1?on(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Pd(i.type,ro(n.parameters[i.parameterIndex]),t.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(a){for(var o=!1,s=0,c=r.parameters;s<c.length;s++){var u=c[s].name;if(e.isBindingPattern(u)&&lv(u,a,i.parameterName)){o=!0;break}}o||on(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else on(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 175:return function(e){ou(e)}(t);case 176:return function(t){e.forEach(t.members,Dx),i&&(Qb(xl(t)),pv(t),_v(t))}(t);case 177:return function(e){Dx(e.elementType)}(t);case 178:return function(t){for(var r=t.elements,n=!1,i=!1,a=0;a<r.length;a++){var o=r[a];if(191===o.kind)i=!0;else if(i){QD(o,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var s=bu(o);if(8&s){if(!C_(Kl(o.type))){on(o,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}}else if(4&s){if(a!==r.length-1){QD(o,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}}else if(2&s)n=!0;else if(n){QD(o,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,Dx)}(t);case 181:case 182:return function(t){e.forEach(t.types,Dx)}(t);case 185:case 179:case 180:return Dx(t.type);case 186:return function(e){Bl(e)}(t);case 187:return Sv(t);case 183:return function(t){e.forEachChild(t,Dx)}(t);case 184:return function(t){e.findAncestor(t,(function(e){return e.parent&&183===e.parent.kind&&e.parent.extendsType===e}))||QD(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Dx(t.typeParameter),zv(t)}(t);case 192:return function(e){Dx(e.argument),Kl(e)}(t);case 191:return function(t){t.dotDotDotToken&&t.questionToken&&QD(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),179===t.type.kind&&QD(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),180===t.type.kind&&QD(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Dx(t.type),Kl(t)}(t);case 311:return function(t){var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&on(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Jv(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Jv(a.expression);o&&i.escapedText!==o.escapedText&&on(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else on(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 312:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||on(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 327:case 320:case 321:return function(t){t.typeExpression||on(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&$b(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Dx(t.typeExpression)}(t);case 326:return function(e){Dx(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)Dx(r[t])}(t);case 325:return function(e){Dx(e.typeExpression)}(t);case 322:return function(t){if(Dx(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n<r.parameters.length&&e.isBindingPattern(r.parameters[n].name))return;yc(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!D_(Kl(t.typeExpression.type))&&on(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(156===t.name.kind?t.name.right:t.name)):e.isQualifiedName(t.name)?on(t.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(t.name),e.entityNameToString(t.name.left)):on(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(t.name))}}}(t);case 328:return function(e){Dx(e.typeExpression)}(t);case 304:!function(t){!i||t.type||e.isJSDocConstructSignature(t)||pp(t,be),dv(t)}(t);case 302:case 301:case 299:case 300:case 308:return Sx(t),void e.forEachChild(t,Dx);case 305:return void function(t){Sx(t),Dx(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))return void(e.last(r.parent.parameters)!==r&&on(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list));e.isJSDocTypeExpression(r)||on(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(!e.isJSDocParameterTag(n))return void on(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var i=e.getParameterSymbolFromJSDoc(n);if(!i)return;var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||on(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}(t);case 298:return Dx(t.type);case 188:return function(e){Dx(e.objectType),Dx(e.indexType),Dv(_l(e),e)}(t);case 189:return function(t){Dx(t.typeParameter),Dx(t.type),t.type||pp(t,be),Pd(gs(pl(t)),Ge,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 248:return function(e){i&&(Kv(e),BD(e),sb(e,e.name),cb(e,e.name))}(t);case 227:case 254:return rb(t);case 229:return gb(t);case 230:return function(e){ZD(e),sv(e.expression)}(t);case 231:return function(t){ZD(t);var r=hb(t.expression);mb(t.expression,t.thenStatement,r),Dx(t.thenStatement),228===t.thenStatement.kind&&on(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Dx(t.elseStatement)}(t);case 232:return function(e){ZD(e),Dx(e.statement),hb(e.expression)}(t);case 233:return function(e){ZD(e),hb(e.expression),Dx(e.statement)}(t);case 234:return function(t){ZD(t)||t.initializer&&247===t.initializer.kind&&HD(t.initializer),t.initializer&&(247===t.initializer.kind?e.forEach(t.initializer.declarations,pb):sv(t.initializer)),t.condition&&hb(t.condition),t.incrementor&&sv(t.incrementor),Dx(t.statement),t.locals&&zv(t)}(t);case 235:return vb(t);case 236:return function(t){if(KD(t),t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&U<99&&ED(t,32768):z.downlevelIteration&&U<2&&ED(t,256),247===t.initializer.kind)bb(t);else{var r=t.initializer,n=xb(t);if(196===r.kind||197===r.kind)Rh(r,n||Se);else{var i=sv(r);kh(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),n&&wd(n,i,r,t.expression)}}Dx(t.statement),t.locals&&zv(t)}(t);case 237:case 238:return Hb(t);case 239:return function(t){var r;if(!ZD(t)){var n=e.getContainingFunction(t);if(n){var i=xc(gc(n)),a=e.getFunctionFlags(n);if(W||t.expression||131072&i.flags){var o=t.expression?Uh(t.expression):Ce;if(167===n.kind)t.expression&&on(t,e.Diagnostics.Setters_cannot_return_a_value);else if(165===n.kind)t.expression&&!wd(o,i,t,t.expression)&&on(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Dc(n)){var s=null!==(r=Gb(i,a))&&void 0!==r?r:i,c=2&a?Fv(o,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&wd(c,s,t,t.expression)}}else 165!==n.kind&&z.noImplicitReturns&&!Yb(n,i)&&on(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else YD(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 240:return function(t){ZD(t)||32768&t.flags&&YD(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),sv(t.expression);var r=e.getSourceFileOfNode(t);if(!GD(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;XD(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 241:return function(t){var r;ZD(t);var n=!1,a=sv(t.expression),o=w_(a);e.forEach(t.caseBlock.clauses,(function(t){if(282!==t.kind||n||(void 0===r?r=t:(QD(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),i&&281===t.kind){var s=sv(t.expression),c=w_(s),u=a;c&&o||(s=c?I_(s):s,u=I_(a)),Bh(u,s)||zd(s,u,t.expression,void 0)}e.forEach(t.statements,Dx),z.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&Kf(t.fallthroughFlowNode)&&on(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&zv(t.caseBlock)}(t);case 242:return function(t){ZD(t)||e.findAncestor(t.parent,(function(r){return e.isFunctionLike(r)?"quit":242===r.kind&&r.label.escapedText===t.label.escapedText&&(QD(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)})),Dx(t.statement)}(t);case 243:return Xb(t);case 244:return function(t){ZD(t),rb(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type&&Bx(r.variableDeclaration)===Se)YD(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified);else if(r.variableDeclaration.initializer)YD(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,(function(t){var r=n.get(t);r&&0!=(2&r.flags)&&QD(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}rb(r.block)}t.finallyBlock&&rb(t.finallyBlock)}(t);case 246:return pb(t);case 195:return fb(t);case 249:return function(t){t.name||e.hasSyntacticModifier(t,512)||YD(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),rx(t),e.forEach(t.members,Dx),zv(t)}(t);case 250:return sx(t);case 251:return function(t){kD(t),$b(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),kv(t),Zb(t.typeParameters),Dx(t.type),zv(t)}(t);case 252:return function(t){if(i){kD(t),$b(t.name,e.Diagnostics.Enum_name_cannot_be_0),sb(t,t.name),cb(t,t.name),kv(t),t.members.forEach(lx),cx(t);var r=vi(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&on(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(r.declarations,(function(t){if(252!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?on(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 253:return dx(t);case 258:return mx(t);case 257:return function(t){if(!hx(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(kD(t),e.isInternalModuleImportEqualsDeclaration(t)||px(t)))if(gx(t),e.hasSyntacticModifier(t,1)&&Zn(t),269!==t.moduleReference.kind){var r=Yn(vi(t));if(r!==he){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&ni(n,112575).flags||on(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&$b(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else V>=e.ModuleKind.ES2015&&!(8388608&t.flags)&&QD(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 264:return yx(t);case 263:return function(t){if(!hx(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=294===t.parent.kind?t.parent:t.parent.parent;if(253!==r.kind||e.isAmbientModule(r)){if(!kD(t)&&e.hasEffectiveModifiers(t)&&YD(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),78===t.expression.kind){var n=t.expression,i=ni(n,67108863,!0,!0,t);if(i){Qf(i,n);var a=2097152&i.flags?Yn(i):i;(a===he||111551&a.flags)&&Uh(t.expression)}e.getEmitDeclarations(z)&&da(t.expression,!0)}else Uh(t.expression);xx(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&QD(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?QD(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&&QD(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?on(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):on(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 228:case 245:return void ZD(t);case 268:(function(e){jv(e)})(t)}}(t),d=r}}function Sx(t){e.isInJSFile(t)||QD(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Tx(t){var r=bn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=P(t);r.deferredNodes.set(n,t)}}function Ex(t){var r=d;switch(d=t,D=0,t.kind){case 200:case 201:case 202:case 160:case 272:Ym(t);break;case 205:case 206:case 164:case 163:!function(t){e.Debug.assert(164!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=Dc(t);if(xh(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||xc(gc(t)),227===t.body.kind)Dx(t.body);else{var i=sv(t.body),a=n&&Gb(n,r);a&&wd(2==(3&r)?Fv(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 166:case 167:mv(t);break;case 218:!function(t){e.forEach(t.members,Dx),zv(t)}(t);break;case 271:!function(e){um(e),Ym(e)}(t);break;case 270:!function(e){um(e.openingElement),Gg(e.closingElement.tagName)?em(e.closingElement):sv(e.closingElement.tagName),Xg(e)}(t)}d=r}function Cx(r){e.performance.mark("beforeCheck"),function(r){var n=bn(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;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||229===i.kind)&&$D(i))return!0}}(t)}(r),e.clear(zr),e.clear(Ur),e.clear(Vr),e.forEach(r.statements,Dx),Dx(r.endOfFileToken),function(e){var t=bn(e);t.deferredNodes&&t.deferredNodes.forEach(Ex)}(r),e.isExternalOrCommonJsModule(r)&&zv(r),r.isDeclarationFile||!z.noUnusedLocals&&!z.noUnusedParameters||Uv(Nx(r),(function(t,r,n){!e.containsParseError(t)&&kx(r,!!(8388608&t.flags))&&Wr.add(n)})),2===z.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];e.isImportDeclaration(i)&&i.importClause&&!i.importClause.isTypeOnly&&(a=i.importClause,e.forEachImportClauseDeclaration(a,(function(e){return!!vi(e).isReferenced})))&&!rD(i.importClause,!0)&&!vx(i.importClause)&&on(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error)}var a}(r),e.isExternalOrCommonJsModule(r)&&xx(r),zr.length&&(e.forEach(zr,ib),e.clear(zr)),Ur.length&&(e.forEach(Ur,ab),e.clear(Ur)),Vr.length&&(e.forEach(Vr,ob),e.clear(Vr)),n.flags|=1}}(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function kx(t,r){if(r)return!1;switch(t){case 0:return!!z.noUnusedLocals;case 1:return!!z.noUnusedParameters;default:return e.Debug.assertNever(t)}}function Nx(t){return hr.get(t.path)||e.emptyArray}function Ax(r,n){try{return a=n,function(r){if(Fx(),r){var n=Wr.getGlobalDiagnostics(),i=n.length;Cx(r);var a=Wr.getDiagnostics(r.fileName),o=Wr.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),Cx),Wr.getDiagnostics()}(r)}finally{a=void 0}}function Fx(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Px(e){switch(e.kind){case 158:case 249:case 250:case 251:case 252:case 327:case 320:case 321:return!0;case 259:return e.isTypeOnly;case 262:case 267:return e.parent.parent.isTypeOnly;default:return!1}}function wx(e){for(;156===e.parent.kind;)e=e.parent;return 172===e.parent.kind}function Ix(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function Ox(e,t){return!!Ix(e,(function(e){return e===t}))}function Mx(e){return void 0!==function(e){for(;156===e.parent.kind;)e=e.parent;return 257===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:263===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Lx(t){if(e.isDeclarationName(t))return vi(t.parent);if(e.isInJSFile(t)&&198===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 vi(t.parent);case 4:case 2:case 5:return vi(t.parent.parent)}}(t);if(r)return r}if(263===t.parent.kind&&e.isEntityNameExpression(t)){var n=ni(t,2998271,!0);if(n&&n!==he)return n}else if(!e.isPropertyAccessExpression(t)&&!e.isPrivateIdentifier(t)&&Mx(t)){var i=e.getAncestor(t,257);return e.Debug.assert(void 0!==i),ti(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&&192===r.kind&&r.qualifier===t)return r}(t);if(a){Kl(a);var o=bn(t).resolvedSymbol;return o===he?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;198===e.parent.kind;)e=e.parent;return 220===e.parent.kind}(t)){var s=0;220===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?ni(t,s):void 0;if(c)return c}if(322===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(158===t.parent.kind&&326===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)&&Gg(t)){var l=em(t.parent);return l===he?void 0:l}return ni(t,111551,!1,!0)}if(198===t.kind||156===t.kind){var d=bn(t);return d.resolvedSymbol||(198===t.kind?Em(t):Cm(t)),d.resolvedSymbol}}else if(wx(t)){return ni(t,s=172===t.parent.kind?788968:1920,!1,!0)}return 171===t.parent.kind?ni(t,1):void 0}function Rx(t,r){if(294===t.kind)return e.isExternalModule(t)?hi(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(M(t)){var a=vi(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Vg(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return vi(n.parent);if(78===t.kind){if(Mx(t))return Lx(t);if(195===n.kind&&193===i.kind&&t===n.propertyName){var o=$s(Bx(i),t.escapedText);if(o)return o}}switch(t.kind){case 78:case 79:case 198:case 156:return Lx(t);case 107:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=gc(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return sv(t).symbol;case 186:return Bl(t).symbol;case 105:return sv(t).symbol;case 132:var u=t.parent;return u&&165===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(258===t.parent.kind||264===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 ai(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return vi(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?iv(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?Kl(i.objectType):void 0;return l&&$s(l,e.escapeLeadingUnderscores(t.text));case 87:case 97:case 38:case 83:return vi(t.parent);case 192:return e.isLiteralImportTypeNode(t)?Rx(t.argument.literal,r):void 0;case 92:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;default:return}}}function Bx(t){if(16777216&t.flags)return Se;var r,n=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),i=n&&xo(vi(n.class));if(e.isPartOfTypeNode(t)){var a=Kl(t);return i?Yo(a,i.thisType):a}if(e.isExpressionNode(t))return Jx(t);if(i&&!n.isImplements){var o=e.firstOrUndefined(ho(i));return o?Yo(o,i.thisType):Se}if(Px(t))return Ao(r=vi(t));if(function(t){return 78===t.kind&&Px(t.parent)&&e.getNameOfDeclaration(t.parent)===t}(t))return(r=Rx(t))?Ao(r):Se;if(e.isDeclaration(t))return ro(r=vi(t));if(M(t))return(r=Rx(t))?ro(r):Se;if(e.isBindingPattern(t))return Na(t.parent,!0)||Se;if(Mx(t)&&(r=Rx(t))){var s=Ao(r);return s!==Se?s:ro(r)}return Se}function jx(t){if(e.Debug.assert(197===t.kind||196===t.kind),236===t.parent.kind)return Rh(t,xb(t.parent)||Se);if(213===t.parent.kind)return Rh(t,iv(t.parent.right)||Se);if(285===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return Mh(r,jx(r)||Se,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=jx(n)||Se,a=Db(65,i,Ce,t.parent)||Se;return Lh(n,i,n.elements.indexOf(t),a)}function Jx(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ol(iv(t))}function Kx(t){var r=vi(t.parent);return e.hasSyntacticModifier(t,32)?ro(r):Ao(r)}function zx(t){var r=t.name;switch(r.kind){case 78:return Ll(e.idText(r));case 8:case 10:return Ll(r.text);case 157:var n=zg(r);return Ph(n,12288)?n:Pe;default:return e.Debug.fail("Unsupported property name.")}}function Ux(t){t=zs(t);var r=e.createSymbolTable(Ns(t)),n=ec(t,0).length?gt:ec(t,1).length?mt:void 0;return n&&e.forEach(Ns(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),Oi(r)}function Vx(t){return e.typeHasCallOrConstructSignatures(t,ce)}function qx(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)&&hD(r)===oe)}function Wx(t){var r=ai(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=di(r),i=vn(r=ui(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(gi(r),(function(e){return(e=Gn(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function Hx(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=hD(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=hi(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=bi(i);if(o){if(512&o.flags&&294===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)&&vi(t)===o}))}}}}function Gx(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=hD(r);if(Hn(n,111551)&&!$n(n))return Mn(n)}}function Yx(t){if(418&t.flags&&!e.isSourceFile(t.valueDeclaration)){var r=vn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return e.isBindingElement(t.valueDeclaration)&&284===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=bn(t.valueDeclaration);if(En(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=227===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 Xx(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=hD(r);if(n&&Yx(n))return n.valueDeclaration}}}function Qx(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=vi(r);if(n)return Yx(n)}return!1}function $x(t){switch(t.kind){case 257:return eD(vi(t)||he);case 259:case 260:case 262:case 267:var r=vi(t)||he;return eD(r)&&!$n(r);case 264:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,$x));case 263:return!t.expression||78!==t.expression.kind||eD(vi(t)||he)}return!1}function Zx(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||294!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&(eD(vi(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function eD(e){var t=Yn(e);return t===he||!!(111551&t.flags)&&(z.preserveConstEnums||!tD(t))}function tD(e){return Oh(e)||!!e.constEnumOnlyModule}function rD(t,r){if(Ln(t)){var n=vi(t);if(n&&vn(n).referenced)return!0;var i=vn(n).target;if(i&&1&e.getEffectiveModifierFlags(t)&&111551&i.flags&&(z.preserveConstEnums||!tD(i)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return rD(e,r)}))}function nD(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=hc(vi(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function iD(t){return!(!W||lc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,92))}function aD(t){return W&&lc(t)&&!t.initializer&&e.hasSyntacticModifier(t,92)}function oD(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=vi(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(fi(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function sD(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=vi(r);return n&&Ns(ro(n))||e.emptyArray}function cD(e){return bn(e).flags||0}function uD(e){return cx(e.parent),bn(e).enumMemberValue}function lD(e){switch(e.kind){case 288:case 198:case 199:return!0}return!1}function dD(t){if(288===t.kind)return uD(t);var r=bn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return uD(n)}}function _D(e){return!!(524288&e.flags)&&ec(e,0).length>0}function pD(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=ni(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?Yn(a):a,c=ni(i,788968,!0,!1,r);if(s&&s===c){var u=fu(!1);if(u&&s===u)return e.TypeReferenceSerializationKind.Promise;var l=ro(s);if(l&&_o(l))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var d=Ao(c);return d===Se?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&d.flags?e.TypeReferenceSerializationKind.ObjectType:Ph(d,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Ph(d,528)?e.TypeReferenceSerializationKind.BooleanType:Ph(d,296)?e.TypeReferenceSerializationKind.NumberLikeType:Ph(d,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Ph(d,132)?e.TypeReferenceSerializationKind.StringLikeType:B_(d)?e.TypeReferenceSerializationKind.ArrayLikeType:Ph(d,12288)?e.TypeReferenceSerializationKind.ESSymbolType:_D(d)?e.TypeReferenceSerializationKind.TypeWithCallSignature:D_(d)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function fD(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=vi(o),c=!s||133120&s.flags?Se:O_(ro(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Q_(c)),te.typeToTypeNode(c,r,1024|n,i)}function gD(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(128);var o=gc(a);return te.typeToTypeNode(xc(o),r,1024|n,i)}function mD(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(128);var o=dp(Jx(a));return te.typeToTypeNode(o,r,1024|n,i)}function yD(t){return re.has(e.escapeLeadingUnderscores(t))}function hD(t,r){var n=bn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=ma(a))}return En(i,t.escapedText,3257279,void 0,void 0,!0)}function vD(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=hD(r);if(n)return Ei(n).valueDeclaration}}}function bD(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&Ml(ro(vi(t)))}function xD(t,r){return function(t,r,n){var i=1024&t.flags?te.symbolToExpression(t.symbol,111551,r,void 0,n):t===Le?e.factory.createTrue():t===Oe&&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)}(ro(vi(t)),t,r)}function DD(t){return t?(nn(t),e.getSourceFileOfNode(t).localJsxFactory||er):er}function SD(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 TD(t){var r=253===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=oi(r,r,void 0);if(n)return e.getDeclarationOfKind(n,294)}function ED(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=si(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||he);return l}(n,t);if(i!==he)for(var a=r&~s,o=1;o<=4194304;o<<=1)if(a&o){var c=CD(o);Dn(i.exports,e.escapeLeadingUnderscores(c),111551)||on(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 CD(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 kD(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 164!==t.kind||e.nodeIsPresent(t.body)?YD(t,e.Diagnostics.Decorators_are_not_valid_here):YD(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(166===t.kind||167===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return YD(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 166:case 167:case 165:case 162:case 161:case 164:case 163:case 170:case 253:case 258:case 257:case 264:case 263:case 205:case 206:case 159:return!1;default:if(254===t.parent.kind||294===t.parent.kind)return!1;switch(t.kind){case 248:return ND(t,129);case 249:return ND(t,125);case 250:case 229:case 251:return!0;case 252:return ND(t,84);default:return e.Debug.fail(),!1}}}(t)?YD(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c<u.length;c++){var l=u[c];if(141!==l.kind){if(161===t.kind||163===t.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(170===t.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 84:if(252!==t.kind)return QD(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(84));break;case 122:case 121:case 120:var d=aa(e.modifierToFlag(l.kind));if(28&s)return QD(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(254===t.parent.kind||294===t.parent.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&s)return 120===l.kind?QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");if(e.isPrivateIdentifierPropertyDeclaration(t))return QD(l,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=e.modifierToFlag(l.kind);break;case 123:if(32&s)return QD(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(254===t.parent.kind||294===t.parent.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(159===t.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(e.isPrivateIdentifierPropertyDeclaration(t))return QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"static");s|=32,r=l;break;case 141:if(64&s)return QD(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(162!==t.kind&&161!==t.kind&&170!==t.kind&&159!==t.kind)return QD(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 92:if(1&s)return QD(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return QD(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(159===t.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 87:var _=294===t.parent.kind?t.parent:t.parent.parent;if(253===_.kind&&!e.isAmbientModule(_))return QD(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 133:if(2&s)return QD(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return QD(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(159===t.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(8388608&t.parent.flags&&254===t.parent.kind)return QD(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierPropertyDeclaration(t))return QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");s|=2,n=l;break;case 125:if(128&s)return QD(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(249!==t.kind){if(164!==t.kind&&162!==t.kind&&166!==t.kind&&167!==t.kind)return QD(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(249!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return QD(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}if(e.isNamedDeclaration(t)&&79===t.name.kind)return QD(l,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=128;break;case 129:if(256&s)return QD(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||8388608&t.parent.flags)return QD(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(159===t.kind)return QD(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,i=l}}if(165===t.kind)return 32&s?QD(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?QD(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?QD(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&QD(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly");if((258===t.kind||257===t.kind)&&2&s)return QD(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare");if(159===t.kind&&92&s&&e.isBindingPattern(t.name))return QD(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);if(159===t.kind&&92&s&&t.dotDotDotToken)return QD(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);if(256&s)return function(t,r){switch(t.kind){case 164:case 248:case 205:case 206:return!1}return QD(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i);return!1}(t)}function ND(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function AD(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&XD(t[0],t.end-",".length,",".length,r)}function FD(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return XD(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function PD(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(on(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([on(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var o;return!1}function wD(t){var r=e.getSourceFileOfNode(t);return kD(t)||FD(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return QD(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(8388608&a.flags||AD(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return QD(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return QD(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(lc(a)){if(r=!0,a.questionToken&&a.initializer)return QD(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return QD(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(t.parameters)||function(t,r){if(!e.isArrowFunction(t))return!1;var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&QD(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&PD(t)}function ID(t,r){return AD(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return XD(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function OD(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(219===i.kind)return XD(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(t)}function MD(t){var r=t.types;if(AD(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return XD(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,LD)}function LD(e){return ID(e,e.typeArguments)}function RD(t){if(157!==t.kind)return!1;var r=t;return 213===r.expression.kind&&27===r.expression.operatorToken.kind&&QD(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function BD(t){if(t.asteriskToken){if(e.Debug.assert(248===t.kind||205===t.kind||164===t.kind),8388608&t.flags)return QD(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return QD(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function jD(e,t){return!!e&&QD(e,t)}function JD(e,t){return!!e&&QD(e,t)}function KD(t){if(ZD(t))return!0;if(236===t.kind&&t.awaitModifier&&0==(32768&t.flags)){if(!GD(e.getSourceFileOfNode(t))){var r=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator),n=e.getContainingFunction(t);if(n&&165!==n.kind){e.Debug.assert(0==(2&e.getFunctionFlags(n)),"Enclosing function should never be an async function.");var i=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,i)}return Wr.add(r),!0}return!1}if(247===t.initializer.kind){var a=t.initializer;if(!HD(a)){var o=a.declarations;if(!o.length)return!1;if(o.length>1){r=235===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 YD(a.declarations[1],r)}var s=o[0];if(s.initializer){var r=235===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 QD(s.name,r)}if(s.type)return QD(s,r=235===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 zD(t){if(t.parameters.length===(166===t.kind?1:2))return e.getThisParameter(t)}function UD(t,r){if(function(t){return e.isDynamicName(t)&&!Jo(t)}(t))return QD(t,r)}function VD(t){if(wD(t))return!0;if(164===t.kind){if(197===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||129!==e.first(t.modifiers).kind))return YD(t,e.Diagnostics.Modifiers_cannot_appear_here);if(jD(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(JD(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return XD(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(BD(t))return!0}if(e.isClassLike(t.parent)){if(8388608&t.flags)return UD(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(164===t.kind&&!t.body)return UD(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(250===t.parent.kind)return UD(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(176===t.parent.kind)return UD(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 qD(t){return e.isStringOrNumericLiteralLike(t)||211===t.kind&&40===t.operator&&8===t.operand.kind}function WD(t){var r,n=t.initializer;if(n){var i=!(qD(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&qD(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Uh(t).flags)}(n)||109===n.kind||94===n.kind||(r=n,9===r.kind||211===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return QD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return QD(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 QD(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function HD(t){var r=t.declarations;return!!AD(t.declarations)||!t.declarations.length&&XD(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function GD(e){return e.parseDiagnostics.length>0}function YD(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!GD(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Wr.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function XD(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!GD(c)&&(Wr.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function QD(t,r,n,i,a){return!GD(e.getSourceFileOfNode(t))&&(Wr.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function $D(t){return 250!==t.kind&&251!==t.kind&&258!==t.kind&&257!==t.kind&&264!==t.kind&&263!==t.kind&&256!==t.kind&&!e.hasSyntacticModifier(t,515)&&YD(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ZD(t){if(8388608&t.flags){if(!bn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return bn(t).hasReportedStatementInAmbientContext=YD(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(227===t.parent.kind||254===t.parent.kind||294===t.parent.kind){var r=bn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=YD(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function eS(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,190)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,288)&&(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 QD(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;sn(!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 tS(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Ns(t);if(a){var o=$p(a,r);if(o)return n_(r,e.map(o,(function(e){return[function(){return ro(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(k||(k={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=j}(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<c)&&(o=[],s=t.hasTrailingComma&&i+a===c);for(var d=0;d<a;d++){var _=t[d+i],p=void 0!==_?r(_):void 0;if((void 0!==o||void 0===p||p!==_)&&(void 0===o&&(o=t.slice(0,d),s=t.hasTrailingComma,u=t.pos,l=t.end),p))if(e.isArray(p))for(var f=0,g=p;f<g.length;f++){var m=g[f];e.Debug.assertNode(m,n),o.push(m)}else e.Debug.assertNode(p,n),o.push(p)}if(o){var y=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(y,u,l),y}return t}function i(t,r,i,a,o,s){return void 0===s&&(s=n),i.startLexicalEnvironment(),t=s(t,r,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function a(t,r,i,a){var s;return void 0===a&&(a=n),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=a(t,r,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=function(t,r){for(var n,i=0;i<t.length;i++){var a=t[i],s=o(a,r);(n||s!==a)&&(n||(n=t.slice(0,i)),n[i]=s)}if(n)return e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t);return t}(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function o(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?function(e,t){var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(t,r):t.initializer?function(t,r,n,i){var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)}(t,t.name,t.initializer,r):t}function s(t,n,i,a){void 0===a&&(a=r),i.resumeLexicalEnvironment();var o=a(t,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),u=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,u)}return o}function c(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=r,e.visitNodes=n,e.visitLexicalEnvironment=i,e.visitParameterList=a,e.visitFunctionBody=s,e.visitEachChild=function(o,c,u,l,d,_){if(void 0===l&&(l=n),void 0===_&&(_=r),void 0!==o){var p=o.kind;if(p>0&&p<=155||186===p)return o;var f=u.factory;switch(p){case 78:return f.updateIdentifier(o,l(o.typeArguments,c,t));case 156:return f.updateQualifiedName(o,_(o.left,c,e.isEntityName),_(o.right,c,e.isIdentifier));case 157:return f.updateComputedPropertyName(o,_(o.expression,c,e.isExpression));case 158:return f.updateTypeParameterDeclaration(o,_(o.name,c,e.isIdentifier),_(o.constraint,c,e.isTypeNode),_(o.default,c,e.isTypeNode));case 159: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 160:return f.updateDecorator(o,_(o.expression,c,e.isExpression));case 161: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 162: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 163: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 164: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 165: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 166: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 167: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 168:return f.updateCallSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 169:return f.updateConstructSignature(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 170: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 171:return f.updateTypePredicateNode(o,_(o.assertsModifier,c),_(o.parameterName,c),_(o.type,c,e.isTypeNode));case 172:return f.updateTypeReferenceNode(o,_(o.typeName,c,e.isEntityName),l(o.typeArguments,c,e.isTypeNode));case 173:return f.updateFunctionTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 174:return f.updateConstructorTypeNode(o,l(o.typeParameters,c,e.isTypeParameterDeclaration),l(o.parameters,c,e.isParameterDeclaration),_(o.type,c,e.isTypeNode));case 175:return f.updateTypeQueryNode(o,_(o.exprName,c,e.isEntityName));case 176:return f.updateTypeLiteralNode(o,l(o.members,c,e.isTypeElement));case 177:return f.updateArrayTypeNode(o,_(o.elementType,c,e.isTypeNode));case 178:return f.updateTupleTypeNode(o,l(o.elements,c,e.isTypeNode));case 179:return f.updateOptionalTypeNode(o,_(o.type,c,e.isTypeNode));case 180:return f.updateRestTypeNode(o,_(o.type,c,e.isTypeNode));case 181:return f.updateUnionTypeNode(o,l(o.types,c,e.isTypeNode));case 182:return f.updateIntersectionTypeNode(o,l(o.types,c,e.isTypeNode));case 183: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 184:return f.updateInferTypeNode(o,_(o.typeParameter,c,e.isTypeParameterDeclaration));case 192:return f.updateImportTypeNode(o,_(o.argument,c,e.isTypeNode),_(o.qualifier,c,e.isEntityName),n(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 191: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 185:return f.updateParenthesizedType(o,_(o.type,c,e.isTypeNode));case 187:return f.updateTypeOperatorNode(o,_(o.type,c,e.isTypeNode));case 188:return f.updateIndexedAccessTypeNode(o,_(o.objectType,c,e.isTypeNode),_(o.indexType,c,e.isTypeNode));case 189:return f.updateMappedTypeNode(o,_(o.readonlyToken,d,e.isToken),_(o.typeParameter,c,e.isTypeParameterDeclaration),_(o.questionToken,d,e.isToken),_(o.type,c,e.isTypeNode));case 190:return f.updateLiteralTypeNode(o,_(o.literal,c,e.isExpression));case 193:return f.updateObjectBindingPattern(o,l(o.elements,c,e.isBindingElement));case 194:return f.updateArrayBindingPattern(o,l(o.elements,c,e.isArrayBindingElement));case 195: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 196:return f.updateArrayLiteralExpression(o,l(o.elements,c,e.isExpression));case 197:return f.updateObjectLiteralExpression(o,l(o.properties,c,e.isObjectLiteralElementLike));case 198: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 199: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 200: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 201:return f.updateNewExpression(o,_(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode),l(o.arguments,c,e.isExpression));case 202:return f.updateTaggedTemplateExpression(o,_(o.tag,c,e.isExpression),n(o.typeArguments,c,e.isExpression),_(o.template,c,e.isTemplateLiteral));case 203:return f.updateTypeAssertion(o,_(o.type,c,e.isTypeNode),_(o.expression,c,e.isExpression));case 204:return f.updateParenthesizedExpression(o,_(o.expression,c,e.isExpression));case 205: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 206: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 207:return f.updateDeleteExpression(o,_(o.expression,c,e.isExpression));case 208:return f.updateTypeOfExpression(o,_(o.expression,c,e.isExpression));case 209:return f.updateVoidExpression(o,_(o.expression,c,e.isExpression));case 210:return f.updateAwaitExpression(o,_(o.expression,c,e.isExpression));case 211:return f.updatePrefixUnaryExpression(o,_(o.operand,c,e.isExpression));case 212:return f.updatePostfixUnaryExpression(o,_(o.operand,c,e.isExpression));case 213:return f.updateBinaryExpression(o,_(o.left,c,e.isExpression),_(o.operatorToken,d,e.isToken),_(o.right,c,e.isExpression));case 214: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 215:return f.updateTemplateExpression(o,_(o.head,c,e.isTemplateHead),l(o.templateSpans,c,e.isTemplateSpan));case 216:return f.updateYieldExpression(o,_(o.asteriskToken,d,e.isToken),_(o.expression,c,e.isExpression));case 217:return f.updateSpreadElement(o,_(o.expression,c,e.isExpression));case 218: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 220:return f.updateExpressionWithTypeArguments(o,_(o.expression,c,e.isExpression),l(o.typeArguments,c,e.isTypeNode));case 221:return f.updateAsExpression(o,_(o.expression,c,e.isExpression),_(o.type,c,e.isTypeNode));case 222:return 32&o.flags?f.updateNonNullChain(o,_(o.expression,c,e.isExpression)):f.updateNonNullExpression(o,_(o.expression,c,e.isExpression));case 223:return f.updateMetaProperty(o,_(o.name,c,e.isIdentifier));case 225:return f.updateTemplateSpan(o,_(o.expression,c,e.isExpression),_(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 227:return f.updateBlock(o,l(o.statements,c,e.isStatement));case 229:return f.updateVariableStatement(o,l(o.modifiers,c,e.isModifier),_(o.declarationList,c,e.isVariableDeclarationList));case 230:return f.updateExpressionStatement(o,_(o.expression,c,e.isExpression));case 231:return f.updateIfStatement(o,_(o.expression,c,e.isExpression),_(o.thenStatement,c,e.isStatement,f.liftToBlock),_(o.elseStatement,c,e.isStatement,f.liftToBlock));case 232:return f.updateDoStatement(o,_(o.statement,c,e.isStatement,f.liftToBlock),_(o.expression,c,e.isExpression));case 233:return f.updateWhileStatement(o,_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 234: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 235:return f.updateForInStatement(o,_(o.initializer,c,e.isForInitializer),_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 236: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 237:return f.updateContinueStatement(o,_(o.label,c,e.isIdentifier));case 238:return f.updateBreakStatement(o,_(o.label,c,e.isIdentifier));case 239:return f.updateReturnStatement(o,_(o.expression,c,e.isExpression));case 240:return f.updateWithStatement(o,_(o.expression,c,e.isExpression),_(o.statement,c,e.isStatement,f.liftToBlock));case 241:return f.updateSwitchStatement(o,_(o.expression,c,e.isExpression),_(o.caseBlock,c,e.isCaseBlock));case 242:return f.updateLabeledStatement(o,_(o.label,c,e.isIdentifier),_(o.statement,c,e.isStatement,f.liftToBlock));case 243:return f.updateThrowStatement(o,_(o.expression,c,e.isExpression));case 244:return f.updateTryStatement(o,_(o.tryBlock,c,e.isBlock),_(o.catchClause,c,e.isCatchClause),_(o.finallyBlock,c,e.isBlock));case 246: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 247:return f.updateVariableDeclarationList(o,l(o.declarations,c,e.isVariableDeclaration));case 248: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 249: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 250: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 251: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 252: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 253: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 254:return f.updateModuleBlock(o,l(o.statements,c,e.isStatement));case 255:return f.updateCaseBlock(o,l(o.clauses,c,e.isCaseOrDefaultClause));case 256:return f.updateNamespaceExportDeclaration(o,_(o.name,c,e.isIdentifier));case 257: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 258: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 259:return f.updateImportClause(o,o.isTypeOnly,_(o.name,c,e.isIdentifier),_(o.namedBindings,c,e.isNamedImportBindings));case 260:return f.updateNamespaceImport(o,_(o.name,c,e.isIdentifier));case 266:return f.updateNamespaceExport(o,_(o.name,c,e.isIdentifier));case 261:return f.updateNamedImports(o,l(o.elements,c,e.isImportSpecifier));case 262:return f.updateImportSpecifier(o,_(o.propertyName,c,e.isIdentifier),_(o.name,c,e.isIdentifier));case 263:return f.updateExportAssignment(o,l(o.decorators,c,e.isDecorator),l(o.modifiers,c,e.isModifier),_(o.expression,c,e.isExpression));case 264: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 265:return f.updateNamedExports(o,l(o.elements,c,e.isExportSpecifier));case 267:return f.updateExportSpecifier(o,_(o.propertyName,c,e.isIdentifier),_(o.name,c,e.isIdentifier));case 269:return f.updateExternalModuleReference(o,_(o.expression,c,e.isExpression));case 270:return f.updateJsxElement(o,_(o.openingElement,c,e.isJsxOpeningElement),l(o.children,c,e.isJsxChild),_(o.closingElement,c,e.isJsxClosingElement));case 271:return f.updateJsxSelfClosingElement(o,_(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),_(o.attributes,c,e.isJsxAttributes));case 272:return f.updateJsxOpeningElement(o,_(o.tagName,c,e.isJsxTagNameExpression),l(o.typeArguments,c,e.isTypeNode),_(o.attributes,c,e.isJsxAttributes));case 273:return f.updateJsxClosingElement(o,_(o.tagName,c,e.isJsxTagNameExpression));case 274:return f.updateJsxFragment(o,_(o.openingFragment,c,e.isJsxOpeningFragment),l(o.children,c,e.isJsxChild),_(o.closingFragment,c,e.isJsxClosingFragment));case 277:return f.updateJsxAttribute(o,_(o.name,c,e.isIdentifier),_(o.initializer,c,e.isStringLiteralOrJsxExpression));case 278:return f.updateJsxAttributes(o,l(o.properties,c,e.isJsxAttributeLike));case 279:return f.updateJsxSpreadAttribute(o,_(o.expression,c,e.isExpression));case 280:return f.updateJsxExpression(o,_(o.expression,c,e.isExpression));case 281:return f.updateCaseClause(o,_(o.expression,c,e.isExpression),l(o.statements,c,e.isStatement));case 282:return f.updateDefaultClause(o,l(o.statements,c,e.isStatement));case 283:return f.updateHeritageClause(o,l(o.types,c,e.isExpressionWithTypeArguments));case 284:return f.updateCatchClause(o,_(o.variableDeclaration,c,e.isVariableDeclaration),_(o.block,c,e.isBlock));case 285:return f.updatePropertyAssignment(o,_(o.name,c,e.isPropertyName),_(o.initializer,c,e.isExpression));case 286:return f.updateShorthandPropertyAssignment(o,_(o.name,c,e.isIdentifier),_(o.objectAssignmentInitializer,c,e.isExpression));case 287:return f.updateSpreadAssignment(o,_(o.expression,c,e.isExpression));case 288:return f.updateEnumMember(o,_(o.name,c,e.isPropertyName),_(o.initializer,c,e.isExpression));case 294:return f.updateSourceFile(o,i(o.statements,c,u));case 331:return f.updatePartiallyEmittedExpression(o,_(o.expression,c,e.isExpression));case 332: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="",h=0,v=0,b=0,x=0,D=0,S=0,T=!1,E=0,C=0,k=0,N=0,A=0,F=0,P=!1,w=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=E,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),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<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var g=void 0,m=void 0,y=void 0,h=void 0;if(void 0!==f.sourceIndex){if(void 0===(g=u[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,x=e.combinePaths(e.getDirectoryPath(i),b);u[f.sourceIndex]=g=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(g,n.sourcesContent[f.sourceIndex])}m=f.sourceLine,y=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(h=c[f.nameIndex])&&(c[f.nameIndex]=h=L(n.names[f.nameIndex])))}var D=f.generatedLine-(o?o.line:0),S=D+t,T=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;R(S,0===D?T+r:T,g,m,y,h)}}_()},toJSON:j,toString:function(){return JSON.stringify(j())}};function O(r){d();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=g.get(n);return void 0===a&&(a=f.length,f.push(n),p.push(r),g.set(n,a)),_(),a}function M(e,t){if(d(),null!==t){for(c||(c=[]);c.length<e;)c.push(null);c[e]=t}_()}function L(t){d(),u||(u=new e.Map);var r=u.get(t);return void 0===r&&(r=m.length,m.push(t),u.set(t,r)),_(),r}function R(t,r,n,i,a,o){e.Debug.assert(t>=E,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),d(),(function(e,t){return!P||E!==e||C!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),E=t,C=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,A=a,w=!0,void 0!==o&&(F=o,I=!0)),_()}function B(){if(P&&(!T||h!==E||v!==C||b!==k||x!==N||D!==A||S!==F)){if(d(),h<E)do{y+=";",h++,v=0}while(h<E);else e.Debug.assertEqual(h,E,"generatedLine cannot backtrack"),T&&(y+=",");y+=s(C-v),v=C,w&&(y+=s(k-b),b=k,y+=s(N-x),x=N,y+=s(A-D),D=A,I&&(y+=s(F-S),S=F)),T=!0,_()}}function j(){return B(),{version:3,file:r,sourceRoot:n,sources:f,names:m,mappings:y,sourcesContent:c}}};var t=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,u=0;return{get pos(){return n},get error(){return t},get state(){return l(!0,!0)},next:function(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var _=!1,y=!1;if(a+=m(),f())return d();if(a<0)return p("Invalid generatedCharacter found");if(!g()){if(_=!0,o+=m(),f())return d();if(o<0)return p("Invalid sourceIndex found");if(g())return p("Unsupported Format: No entries after sourceIndex");if(s+=m(),f())return d();if(s<0)return p("Invalid sourceLine found");if(g())return p("Unsupported Format: No entries after sourceLine");if(c+=m(),f())return d();if(c<0)return p("Invalid sourceCharacter found");if(!g()){if(y=!0,u+=m(),f())return d();if(u<0)return p("Invalid nameIndex found");if(!g())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:l(_,y),done:r}}n++}else i++,a=0,n++}return d()}};function l(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?u:void 0}}function d(){return r=!0,{value:void 0,done:!0}}function _(e){void 0===t&&(t=e)}function p(e){return _(e),d()}function f(){return void 0!==t}function g(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function m(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return _("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)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function 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),h=t.getSourceFileLike(y),v=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),b=new e.Map(v.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!c(i))return t;return{fileName:v[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,_,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==h?e.getPositionOfLineAndCharacter(h,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n<i.length;n++){var a=i[n];if(c(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((function(t){return e.sortAndDeduplicate(t,l,u)}))}return f[t]}function T(){if(void 0===s){for(var t=[],r=0,n=D();r<n.length;r++){var i=n[r];t.push(i)}s=e.sortAndDeduplicate(t,d,u)}return s}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(u||(u={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++){r(o[a])&&i++}return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}e.getOriginalNodeId=t,e.chainBundle=function(t,r){return function(n){return 294===n.kind?r(n):function(n){return t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends)}(n)}},e.getExportNeedsImportStarHelper=function(t){return!!e.getNamespaceDeclarationNode(t)},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c,u){for(var l,d,_=[],p=e.createMultiMap(),f=[],g=new e.Map,m=!1,y=!1,h=!1,v=!1,b=0,x=s.statements;b<x.length;b++){var D=x[b];switch(D.kind){case 258:_.push(D),!h&&n(D)&&(h=!0),!v&&i(D)&&(v=!0);break;case 257:269===D.moduleReference.kind&&_.push(D);break;case 264:if(D.moduleSpecifier)if(D.exportClause)if(_.push(D),e.isNamedExports(D.exportClause))N(D);else{var S=D.exportClause.name;g.get(e.idText(S))||(o(f,t(D),S),g.set(e.idText(S),!0),l=e.append(l,S)),h=!0}else _.push(D),y=!0;else N(D);break;case 263:D.isExportEquals&&!d&&(d=D);break;case 229:if(e.hasSyntacticModifier(D,1))for(var T=0,E=D.declarationList.declarations;T<E.length;T++){var C=E[T];l=a(C,g,l)}break;case 248:if(e.hasSyntacticModifier(D,1))if(e.hasSyntacticModifier(D,512))m||(o(f,t(D),r.factory.getDeclarationName(D)),m=!0);else{S=D.name;g.get(e.idText(S))||(o(f,t(D),S),g.set(e.idText(S),!0),l=e.append(l,S))}break;case 249:if(e.hasSyntacticModifier(D,1))if(e.hasSyntacticModifier(D,512))m||(o(f,t(D),r.factory.getDeclarationName(D)),m=!0);else(S=D.name)&&!g.get(e.idText(S))&&(o(f,t(D),S),g.set(e.idText(S),!0),l=e.append(l,S))}}var k=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,u,y,h,v);return k&&_.unshift(k),{externalImports:_,exportSpecifiers:p,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:f,exportedNames:l,externalHelpersImportDeclaration:k};function N(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!g.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||p.add(e.idText(s),a);var u=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);u&&o(f,t(u),a.name),g.set(e.idText(a.name),!0),l=e.append(l,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(t){return!e.isIdentifier(t)&&s(t)||e.isWellKnownSymbolSyntactically(t)},e.isCompoundAssignment=function(e){return e>=63&&e<=77},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.isInitializedProperty=function(e){return 162===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<o.length;a++){if(t(o[a],n))return!0}return!1}(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,o,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);u?o=o?function(e,t,r,n){return t=a(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}(t,o,u,s):u:o||(o=t.context.factory.createVoidZero())}var l=e.getTargetOfBindingOrAssignmentElement(r);e.isObjectBindingOrAssignmentPattern(l)?function(t,r,o,s,c){var u,l,d=e.getElementsOfBindingOrAssignmentPattern(o),_=d.length;if(1!==_){s=a(t,s,!e.isDeclarationBindingElement(r)||0!==_,c)}for(var p=0;p<_;p++){var f=d[p];if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===_-1){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);m=t.context.getEmitHelperFactory().createRestHelper(s,d,l,o);n(t,f,m,f)}}else{var g=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||24576&f.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var m=i(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,o)}(t,r,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,i,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(i),d=l.length;if(t.level<1&&t.downlevelIteration)o=a(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(o,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[d-1])?void 0:d),s),!1,s);else if(1!==d&&(t.level<1||0===d)||e.every(l,e.isOmittedExpression)){o=a(t,o,!e.isDeclarationBindingElement(r)||0!==d,s)}for(var _=0;_<d;_++){var p=l[_];if(t.level>=1)if(16384&p.transformFlags){var f=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),u=e.append(u,[f,p]),c=e.append(c,t.createArrayBindingOrAssignmentElement(f))}else c=e.append(c,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(_===d-1){g=t.context.factory.createArraySliceCall(o,_);n(t,p,g,p)}}else{var g=t.context.factory.createElementAccessExpression(o,_);n(t,p,g,p)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,i);if(u)for(var m=0,y=u;m<y.length;m++){var h=y[m],v=h[0];n(t,p=h[1],v,p)}}(t,r,l,o,s):t.emitBindingOrAssignment(l,o,s,r)}function i(t,r,n){if(e.isComputedPropertyName(n)){var i=a(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n)){i=e.factory.cloneNode(n);return t.context.factory.createElementAccessExpression(r,i)}var o=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,o)}function a(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function o(e){return e}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(i,s,c,u,l,d){var _,p,f=i;if(e.isDestructuringAssignment(i))for(_=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(_))return e.visitNode(_,s,e.isExpression);f=i=_,_=i.right}var g={context:c,level:u,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var a=d?d(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,s,e.isExpression),r),n);a.original=i,m(a)},createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement))}(c.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement))}(c.factory,t)},createArrayBindingOrAssignmentElement:o,visitor:s};if(_&&(_=e.visitNode(_,s,e.isExpression),e.isIdentifier(_)&&t(i,_.escapedText)||r(i)?_=a(g,_,!1,f):l?_=a(g,_,!0,f):e.nodeIsSynthesized(i)&&(f=_)),n(g,i,_,f,e.isDestructuringAssignment(i)),_&&l){if(!e.some(p))return _;p.push(_)}return c.factory.inlineExpressions(p)||c.factory.createOmittedExpression();function m(t){p=e.append(p,t)}},e.flattenDestructuringBinding=function(i,o,s,c,u,l,d){var _;void 0===l&&(l=!1);var p=[],f=[],g={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:l,emitExpression:function(t){_=e.append(_,t)},emitBindingOrAssignment:N,createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)}(s.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)}(s.factory,t)},createArrayBindingOrAssignmentElement:function(e){return function(e,t){return e.createBindingElement(void 0,void 0,t)}(s.factory,e)},visitor:o};if(e.isVariableDeclaration(i)){var m=e.getInitializerOfBindingOrAssignmentElement(i);m&&(e.isIdentifier(m)&&t(i,m.escapedText)||r(i))&&(m=a(g,m,!1,m),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,m))}if(n(g,i,u,i,d),_){var y=s.factory.createTempVariable(void 0);if(l){var h=s.factory.inlineExpressions(_);_=void 0,N(y,h,void 0,void 0)}else{s.hoistVariableDeclaration(y);var v=e.last(p);v.pendingExpressions=e.append(v.pendingExpressions,s.factory.createAssignment(y,v.value)),e.addRange(v.pendingExpressions,_),v.value=y}}for(var b=0,x=p;b<x.length;b++){var D=x[b],S=D.pendingExpressions,T=D.name,E=(h=D.value,D.location),C=D.original,k=s.factory.createVariableDeclaration(T,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,h)):h);k.original=C,e.setTextRange(k,E),f.push(k)}return f;function N(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),_&&(r=s.factory.inlineExpressions(e.append(_,r)),_=void 0),p.push({pendingExpressions:_,name:t,value:r,location:n,original:i})}}}(u||(u={})),function(e){var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!function(e){e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"}(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=function(i,a,o,s,c,u){var l=e.visitNode(a.tag,o,e.isExpression),d=[void 0],_=[],p=[],f=a.template;if(u===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))_.push(r(f)),p.push(n(f,s));else{_.push(r(f.head)),p.push(n(f.head,s));for(var g=0,m=f.templateSpans;g<m.length;g++){var y=m[g];_.push(r(y.literal)),p.push(n(y.literal,s)),d.push(e.visitNode(y.expression,o,e.isExpression))}}var h=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(_),e.factory.createArrayLiteralExpression(p));if(e.isExternalModule(s)){var v=e.factory.createUniqueName("templateObject");c(v),d[0]=e.factory.createLogicalOr(v,e.factory.createAssignment(v,h))}else d[0]=h;return e.factory.createCallExpression(l,void 0,d)}}(u||(u={})),function(e){var t,r;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(r||(r={})),e.transformTypeScript=function(t){var r,n,i,a,o,s,c,u,l,d,_=t.factory,p=t.getEmitHelperFactory,f=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistVariableDeclaration,h=t.getEmitResolver(),v=t.getCompilerOptions(),b=e.getStrictOptionValue(v,"strictNullChecks"),x=e.getEmitScriptTarget(v),D=e.getEmitModuleKind(v),S=t.onEmitNode,T=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=d,o=r;e.isSourceFile(n)&&(r=n);2&u&&function(t){return 253===e.getOriginalNode(t).kind}(n)&&(d|=2);8&u&&function(t){return 252===e.getOriginalNode(t).kind}(n)&&(d|=8);S(t,n,i),d=a,r=o},t.onSubstituteNode=function(t,r){if(r=T(t,r),1===t)return function(t){switch(t.kind){case 78:return function(t){return function(t){if(1&u&&33554432&h.getNodeCheckFlags(t)){var r=h.getReferencedValueDeclaration(t);if(r){var n=l[r.id];if(n){var i=_.cloneNode(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}return}(t)||Ie(t)||t}(t);case 198:case 199:return function(e){return Oe(e)}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){if(2&u){var r=t.name,n=Ie(r);if(n){if(t.objectAssignmentInitializer){var i=_.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(_.createPropertyAssignment(r,i),t)}return e.setTextRange(_.createPropertyAssignment(r,n),t)}}return t}(r);return r},t.enableSubstitution(198),t.enableSubstitution(199),function(t){if(295===t.kind)return function(t){return _.createBundle(t.sourceFiles.map(E),e.mapDefined(t.prepends,(function(t){return 297===t.kind?e.createUnparsedSourceFile(t,"js"):t})))}(t);return E(t)};function E(n){if(n.isDeclarationFile)return n;r=n;var i=C(n,R);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function C(t,r){var n=a,i=o,u=s,l=c;!function(t){switch(t.kind){case 294:case 255:case 254:case 227:a=t,o=void 0,s=void 0;break;case 249:case 248:if(e.hasSyntacticModifier(t,2))break;t.name?fe(t):e.Debug.assert(249===t.kind||e.hasSyntacticModifier(t,512)),e.isClassDeclaration(t)&&(o=t)}}(t);var d=r(t);return a!==n&&(s=u),a=n,o=i,c=l,d}function k(e){return C(e,N)}function N(e){return 1&e.transformFlags?L(e):e}function A(e){return C(e,F)}function F(r){switch(r.kind){case 258:case 257:case 263:case 264:return function(r){if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,k,t):r;switch(r.kind){case 258:return function(t){if(!t.importClause)return t;if(t.importClause.isTypeOnly)return;var r=e.visitNode(t.importClause,he,e.isImportClause);return r||1===v.importsNotUsedAsValues||2===v.importsNotUsedAsValues?_.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);case 257:return Se(r);case 263:return function(r){return h.isValueAliasDeclaration(r)?e.visitEachChild(r,k,t):void 0}(r);case 264:return function(t){if(t.isTypeOnly)return;if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;if(!h.isValueAliasDeclaration(t))return;var r=e.visitNode(t.exportClause,xe,e.isNamedExportBindings);return r?_.updateExportDeclaration(t,void 0,void 0,t.isTypeOnly,r,t.moduleSpecifier):void 0}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return N(r)}}function P(e){return C(e,w)}function w(t){if(264!==t.kind&&258!==t.kind&&259!==t.kind&&(257!==t.kind||269!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?L(t):t}function I(e){return C(e,O)}function O(t){switch(t.kind){case 165:return ce(t);case 162:return se(t);case 170:case 166:case 167:case 164:return N(t);case 226:return t;default:return e.Debug.failBadSyntaxKind(t)}}function M(t){if(!(2270&e.modifierToFlag(t.kind)||n&&92===t.kind))return t}function L(o){if(e.isStatement(o)&&e.hasSyntacticModifier(o,2))return _.createNotEmittedStatement(o);switch(o.kind){case 92:case 87:return n?void 0:o;case 122:case 120:case 121:case 125:case 84:case 133:case 141:case 177:case 178:case 179:case 180:case 176:case 171:case 158:case 128:case 151:case 131:case 146:case 143:case 140:case 113:case 147:case 174:case 173:case 175:case 172:case 181:case 182:case 183:case 185:case 186:case 187:case 188:case 189:case 190:case 170:case 160:case 251:return;case 162:return se(o);case 256:return;case 165:return ce(o);case 250:return _.createNotEmittedStatement(o);case 249:return function(i){if(!(J(i)||n&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,k,t);var a=e.getProperties(i,!0,!0),o=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);i&&103!==e.skipOuterExpressions(i.expression).kind&&(n|=64);(function(t){if(t.decorators&&t.decorators.length>0)return!0;var r=e.getFirstConstructorWithBody(t);if(r)return e.forEach(r.parameters,B);return!1})(t)&&(n|=2);e.childIsDecorated(t)&&(n|=4);Te(t)?n|=8:!function(t){return Ee(t)&&e.hasSyntacticModifier(t,512)}(t)?Ce(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&h.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 v=_.createReturnStatement(m);e.setTextRangePos(v,f.pos),e.setEmitFlags(v,1920),d.push(v),e.insertStatementsAfterStandardPrologue(d,t.endLexicalEnvironment());var b=_.createImmediatelyInvokedArrowFunction(d);e.setEmitFlags(b,33554432);var D=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(_.getLocalName(i,!1,!1),void 0,void 0,b)]));e.setOriginalNode(D,i),e.setCommentRange(D,i),e.setSourceMapRange(D,e.moveRangePastDecorators(i)),e.startOnNewLine(D),d=[D]}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 218: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 283:return function(r){if(116===r.token)return;return e.visitEachChild(r,k,t)}(o);case 220:return function(t){return _.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 164: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 166: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 167: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 248: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 Ne(i,r),i}return n}(o);case 205: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 206: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 159: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 204: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 203:case 221:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return _.createPartiallyEmittedExpression(r,t)}(o);case 200:return function(t){return _.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 201:return function(t){return _.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 202:return function(t){return _.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 222:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return _.createPartiallyEmittedExpression(r,t)}(o);case 252:return function(t){if(!function(t){return!e.isEnumConst(t)||v.preserveConstEnums||v.isolatedModules}(t))return _.createNotEmittedStatement(t);var n=[],o=2,s=me(n,t);s&&(D===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 229: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 246: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 253:return ye(o);case 257:return Se(o);case 271:return function(t){return _.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 272: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(v,"alwaysStrict")&&!(e.isExternalModule(r)&&D>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return _.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,A,t,0,n))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function j(e){return!!(2048&e.transformFlags)}function J(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,j)||e.some(t.members,j)}function K(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(_.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,I,e.isClassElement)),e.setTextRange(_.createNodeArray(r),t.members)}function z(t,r){return e.filter(t.members,r?function(e){return U(e,!0,t)}:function(e){return U(e,!1,t)})}function U(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasSyntacticModifier(t,32)}function V(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||c.decorators)&&(r||(r=new Array(o)),r[s]=c.decorators)}return r}function q(t,r){switch(r.kind){case 166:case 167:return function(t,r){if(!r.body)return;var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(!s||r!==s)return;var c=s.decorators,u=V(o);if(!c&&!u)return;return{decorators:c,parameters:u}}(t,r);case 164:return function(e){if(!e.body)return;var t=e.decorators,r=V(e);if(!t&&!r)return;return{decorators:t,parameters:r}}(r);case 162:return function(e){var t=e.decorators;if(!t)return;return{decorators:t}}(r);default:return}}function W(t,r,n){if(n){var i=[];return e.addRange(i,e.map(n.decorators,Y)),e.addRange(i,e.flatMap(n.parameters,X)),function(t,r,n){!function(t,r,n){v.emitDecoratorMetadata&&(function(e){var t=e.kind;return 164===t||166===t||167===t||162===t}(t)&&n.push(p().createMetadataHelper("design:type",Q(t))),function(t){switch(t.kind){case 249:case 218:return void 0!==e.getFirstConstructorWithBody(t);case 164:case 166:case 167:return!0}return!1}(t)&&n.push(p().createMetadataHelper("design:paramtypes",function(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&166===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push($(e.getRestParameterElementType(c.type))):i.push(Q(c)))}return _.createArrayLiteralExpression(i)}(t,r))),function(e){return 164===e.kind}(t)&&n.push(p().createMetadataHelper("design:returntype",function(t){if(e.isFunctionLike(t)&&t.type)return $(t.type);if(e.isAsyncFunction(t))return _.createIdentifier("Promise");return _.createVoidZero()}(t))))}(t,r,n)}(t,r,i),i}}function H(t,r,n){e.addRange(t,e.map(function(e,t){for(var r,n=z(e,t),i=0,a=n;i<a.length;i++){var o=G(e,a[i]);o&&(r?r.push(o):r=[o])}return r}(r,n),ke))}function G(t,r){var n=W(r,t,q(t,r));if(n){var i=function(t,r){return e.hasSyntacticModifier(r,32)?_.getDeclarationName(t):function(e){return _.createPropertyAccessExpression(_.getDeclarationName(e),"prototype")}(t)}(t,r),a=ie(r,!0),o=x>0?162===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;i<a.length;i++){var o=a[i],s=p().createParamHelper(Y(o),r);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),n.push(s)}}return n}function Q(t){switch(t.kind){case 162:case 159:return $(t.type);case 167:case 166:return $(function(t){var r=h.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 249:case 218:case 164:return _.createIdentifier("Function");default:return _.createVoidZero()}}function $(t){if(void 0===t)return _.createIdentifier("Object");switch(t.kind){case 113:case 149:case 140:return _.createVoidZero();case 185:return $(t.type);case 173:case 174:return _.createIdentifier("Function");case 177:case 178:return _.createIdentifier("Array");case 171:case 131:return _.createIdentifier("Boolean");case 146:return _.createIdentifier("String");case 144:return _.createIdentifier("Object");case 190:switch(t.literal.kind){case 10:case 14:return _.createIdentifier("String");case 211:case 8:return _.createIdentifier("Number");case 9:return ne();case 109:case 94:return _.createIdentifier("Boolean");case 103:return _.createVoidZero();default:return e.Debug.failBadSyntaxKind(t.literal)}case 143:return _.createIdentifier("Number");case 154:return ne();case 147:return x<2?re():_.createIdentifier("Symbol");case 172:return function(t){var r=h.getTypeReferenceSerializationKind(t.typeName,o||a);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t)})))return _.createIdentifier("Object");var n=function e(t){if(78===t.kind){var r=te(t);return ee(r,r)}if(78===t.left.kind)return ee(te(t.left),te(t));var n=e(t.left),i=_.createTempVariable(y);return _.createLogicalAnd(_.createLogicalAnd(n.left,_.createStrictInequality(_.createAssignment(i,n.right),_.createVoidZero())),_.createPropertyAccessExpression(i,t.right))}(t.typeName),i=_.createTempVariable(y);return _.createConditionalExpression(_.createTypeCheck(_.createAssignment(i,n),"function"),void 0,i,void 0,_.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return te(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return _.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ne();case e.TypeReferenceSerializationKind.BooleanType:return _.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return _.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return _.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return _.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return x<2?re():_.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return _.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return _.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return _.createIdentifier("Object");default:return e.Debug.assertNever(r)}}(t);case 182:case 181:return Z(t.types);case 183:return Z([t.trueType,t.falseType]);case 187:if(141===t.operator)return $(t.type);break;case 175:case 188:case 189:case 176:case 128:case 151:case 186:case 192:break;case 299:case 300:case 304:case 305:case 306:break;case 301:case 302:case 303:return $(t.type);default:return e.Debug.failBadSyntaxKind(t)}return _.createIdentifier("Object")}function Z(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];185===a.kind;)a=a.type;if(140!==a.kind&&(b||(190!==a.kind||103!==a.literal.kind)&&149!==a.kind)){var o=$(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return _.createIdentifier("Object")}else r=o}}return r||_.createVoidZero()}function ee(e,t){return _.createLogicalAnd(_.createStrictInequality(_.createTypeOfExpression(e),_.createStringLiteral("undefined")),t)}function te(t){switch(t.kind){case 78:var r=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return r.original=void 0,e.setParent(r,e.getParseTreeNode(a)),r;case 156:return function(e){return _.createPropertyAccessExpression(te(e.left),e.right)}(t)}}function re(){return _.createConditionalExpression(_.createTypeCheck(_.createIdentifier("Symbol"),"function"),void 0,_.createIdentifier("Symbol"),void 0,_.createIdentifier("Object"))}function ne(){return x<99?_.createConditionalExpression(_.createTypeCheck(_.createIdentifier("BigInt"),"function"),void 0,_.createIdentifier("BigInt"),void 0,_.createIdentifier("Object")):_.createIdentifier("BigInt")}function ie(t,r){var n=t.name;return e.isPrivateIdentifier(n)?_.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?_.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?_.createStringLiteral(e.idText(n)):_.cloneNode(n)}function ae(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&c||e.some(t.decorators))){var n=e.visitNode(r.expression,k,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=_.getGeneratedNameForNode(r);return y(a),_.updateComputedPropertyName(r,_.createAssignment(a,n))}}return e.visitNode(r,k,e.isPropertyName)}function oe(t){return!e.nodeIsMissing(t.body)}function se(t){if(!(8388608&t.flags)){var r=_.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,k,e.isModifier),ae(t),void 0,void 0,e.visitNode(t.initializer,k));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function ce(r){if(oe(r))return _.updateConstructorDeclaration(r,void 0,void 0,e.visitParameterList(r.parameters,k,t),function(r,n){var i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(!e.some(i))return e.visitFunctionBody(r,k,t);var a=[],o=0;g(),o=e.addPrologueDirectivesAndInitialSuperCall(_,n,a,k),e.addRange(a,e.map(i,ue)),e.addRange(a,e.visitNodes(r.statements,k,e.isStatement,o)),a=_.mergeLexicalEnvironment(a,m());var s=_.createBlock(e.setTextRange(_.createNodeArray(a),r.statements),!0);return e.setTextRange(s,r),e.setOriginalNode(s,r),s}(r.body,r))}function ue(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(_.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(_.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(_.createExpressionStatement(_.createAssignment(e.setTextRange(_.createPropertyAccessExpression(_.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function le(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function de(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,k,t,0,!1,Ae):e.setTextRange(_.createAssignment(Fe(n),e.visitNode(r.initializer,k,e.isExpression)),r)}function _e(r){var n=ie(r,!1),a=function(r){var n=h.getConstantValue(r);return void 0!==n?"string"==typeof n?_.createStringLiteral(n):_.createNumericLiteral(n):(0==(8&u)&&(u|=8,t.enableSubstitution(78)),r.initializer?e.visitNode(r.initializer,k,e.isExpression):_.createVoidZero())}(r),o=_.createAssignment(_.createElementAccessExpression(i,n),a),s=10===a.kind?o:_.createAssignment(_.createElementAccessExpression(i,o),n);return e.setTextRange(_.createExpressionStatement(e.setTextRange(s,r)),r)}function pe(t){return Te(t)||Ee(t)&&D!==e.ModuleKind.ES2015&&D!==e.ModuleKind.ES2020&&D!==e.ModuleKind.ESNext&&D!==e.ModuleKind.System}function fe(t){s||(s=new e.Map);var r=ge(t);s.has(r)||s.set(r,t)}function ge(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function me(t,r){var n=_.createVariableStatement(e.visitNodes(r.modifiers,M,e.isModifier),_.createVariableDeclarationList([_.createVariableDeclaration(_.getLocalName(r,!1,!0))],294===a.kind?0:1));if(e.setOriginalNode(n,r),fe(r),function(e){if(s){var t=ge(e);return s.get(t)===e}return!0}(r))return 252===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=_.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function ye(o){if(!function(t){var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,!!v.preserveConstEnums||!!v.isolatedModules)}(o))return _.createNotEmittedStatement(o);e.Debug.assertNode(o.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&u)&&(u|=2,t.enableSubstitution(78),t.enableSubstitution(286),t.enableEmitNotification(253));var c=[],l=2,d=me(c,o);d&&(D===e.ModuleKind.System&&a===r||(l|=512));var p=Pe(o),g=we(o),y=e.hasSyntacticModifier(o,1)?_.getExternalModuleOrNamespaceExportName(i,o,!1,!0):_.getLocalName(o,!1,!0),h=_.createLogicalOr(y,_.createAssignment(y,_.createObjectLiteralExpression()));if(pe(o)){var b=_.getLocalName(o,!1,!0);h=_.createAssignment(b,h)}var x=_.createExpressionStatement(_.createCallExpression(_.createFunctionExpression(void 0,void 0,void 0,void 0,[_.createParameterDeclaration(void 0,void 0,void 0,p)],void 0,function(t,r){var a=i,o=n,c=s;i=r,n=t,s=void 0;var u,l,d=[];if(f(),t.body)if(254===t.body.kind)C(t.body,(function(t){return e.addRange(d,e.visitNodes(t.statements,P,e.isStatement))})),u=t.body.statements,l=t.body;else{var p=ye(t.body);p&&(e.isArray(p)?e.addRange(d,p):d.push(p));var g=function e(t){if(253===t.body.kind){return e(t.body)||t.body}}(t).body;u=e.moveRangePos(g.statements,-1)}e.insertStatementsAfterStandardPrologue(d,m()),i=a,n=o,s=c;var y=_.createBlock(e.setTextRange(_.createNodeArray(d),u),!0);e.setTextRange(y,l),t.body&&254===t.body.kind||e.setEmitFlags(y,1536|e.getEmitFlags(y));return y}(o,g)),void 0,[h]));return e.setOriginalNode(x,o),d&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,o),e.addEmitFlags(x,l),c.push(x),c.push(_.createEndOfDeclarationMarker(o)),c}function he(t){if(!t.isTypeOnly){var r=h.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,ve,e.isNamedImportBindings);return r||n?_.updateImportClause(t,!1,r,n):void 0}}function ve(t){if(260===t.kind)return h.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,be,e.isImportSpecifier);return e.some(r)?_.updateNamedImports(t,r):void 0}function be(e){return h.isReferencedAliasDeclaration(e)?e:void 0}function xe(t){return e.isNamespaceExport(t)?function(t){return _.updateNamespaceExport(t,e.visitNode(t.name,k,e.isIdentifier))}(t):function(t){var r=e.visitNodes(t.elements,De,e.isExportSpecifier);return e.some(r)?_.updateNamedExports(t,r):void 0}(t)}function De(e){return h.isValueAliasDeclaration(e)?e:void 0}function Se(n){if(e.isExternalModuleImportEqualsDeclaration(n)){var a=h.isReferencedAliasDeclaration(n);return a||1!==v.importsNotUsedAsValues?a?e.visitEachChild(n,k,t):void 0:e.setOriginalNode(e.setTextRange(_.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression),n),n)}if(function(t){return h.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&h.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var o,s,c,u=e.createExpressionFromEntityName(_,n.moduleReference);return e.setEmitFlags(u,3584),Ce(n)||!Te(n)?e.setOriginalNode(e.setTextRange(_.createVariableStatement(e.visitNodes(n.modifiers,M,e.isModifier),_.createVariableDeclarationList([e.setOriginalNode(_.createVariableDeclaration(n.name,void 0,void 0,u),n)])),n),n):e.setOriginalNode((o=n.name,s=u,c=n,e.setTextRange(_.createExpressionStatement(_.createAssignment(_.getNamespaceMemberName(i,o,!1,!0),s)),c)),n)}}function Te(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function Ee(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function Ce(t){return Ee(t)&&!e.hasSyntacticModifier(t,512)}function ke(e){return _.createExpressionStatement(e)}function Ne(t,r){var n=_.createAssignment(_.getExternalModuleOrNamespaceExportName(i,r,!1,!0),_.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var a=_.createExpressionStatement(n);e.setSourceMapRange(a,e.createRange(-1,r.end)),t.push(a)}function Ae(t,r,n){return e.setTextRange(_.createAssignment(Fe(t),r),n)}function Fe(e){return _.getNamespaceMemberName(i,e,!1,!0)}function Pe(t){var r=_.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function we(e){return _.getGeneratedNameForNode(e)}function Ie(t){if(u&d&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=h.getReferencedExportContainer(t,!1);if(r&&294!==r.kind)if(2&d&&253===r.kind||8&d&&252===r.kind)return e.setTextRange(_.createPropertyAccessExpression(_.getGeneratedNameForNode(r),t),t)}}function Oe(t){var r=function(t){if(v.isolatedModules)return;return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?h.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?_.createStringLiteral(r):_.createNumericLiteral(r);if(!v.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression),a=e.isPropertyAccessExpression(i)?e.declarationNameToString(i.name):e.getTextOfNode(i.argumentExpression);e.addSyntheticTrailingComment(n,3," "+a+" ")}return n}return t}}}(u||(u={})),function(e){var t,n;!function(e){e[e.ClassAliases=1]="ClassAliases"}(t||(t={})),function(e){e[e.InstanceField=0]="InstanceField"}(n||(n={})),e.transformClassFields=function(t){var n,i,a,o,s=t.factory,c=t.hoistVariableDeclaration,u=t.endLexicalEnvironment,l=t.resumeLexicalEnvironment,d=t.getEmitResolver(),_=t.getCompilerOptions(),p=e.getEmitScriptTarget(_),f=p<99,g=t.onSubstituteNode;t.onSubstituteNode=function(t,r){if(r=g(t,r),1===t)return function(t){switch(t.kind){case 78:return function(t){return function(t){if(1&n&&33554432&d.getNodeCheckFlags(t)){var r=d.getReferencedValueDeclaration(t);if(r){var a=i[r.id];if(a){var o=s.cloneNode(a);return e.setSourceMapRange(o,t),e.setCommentRange(o,t),o}}}return}(t)||t}(t)}return t}(r);return r};var m,y=[];return e.chainBundle(t,(function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||n.useDefineForClassFields&&99===n.target)return r;var i=e.visitEachChild(r,h,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function h(u){if(!(4194304&u.transformFlags))return u;switch(u.kind){case 218:case 249:return function(r){var u=a;a=void 0,f&&(y.push(m),m=void 0);var l=e.isClassDeclaration(r)?function(r){if(!e.forEach(r.members,k))return e.visitEachChild(r,h,t);var n=e.getEffectiveBaseTypeNode(r),i=!(!n||103===e.skipOuterExpressions(n.expression).kind),o=[s.updateClassDeclaration(r,void 0,r.modifiers,r.name,void 0,e.visitNodes(r.heritageClauses,h,e.isHeritageClause),N(r,i))];e.some(a)&&o.push(s.createExpressionStatement(s.inlineExpressions(a)));var c=e.getProperties(r,!0,!0);e.some(c)&&F(o,c,s.getInternalName(r));return o}(r):function(r){if(!e.forEach(r.members,k))return e.visitEachChild(r,h,t);var u=e.isClassDeclaration(e.getOriginalNode(r)),l=e.getProperties(r,!0,!0),_=e.getEffectiveBaseTypeNode(r),p=!(!_||103===e.skipOuterExpressions(_.expression).kind),f=s.updateClassExpression(r,e.visitNodes(r.decorators,h,e.isDecorator),r.modifiers,r.name,void 0,e.visitNodes(r.heritageClauses,h,e.isHeritageClause),N(r,p));if(e.some(l)||e.some(a)){if(u)return e.Debug.assertIsDefined(o,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),o&&a&&e.some(a)&&o.push(s.createExpressionStatement(s.inlineExpressions(a))),o&&e.some(l)&&F(o,l,s.getInternalName(r)),f;var g=[],m=16777216&d.getNodeCheckFlags(r),y=s.createTempVariable(c,!!m);if(m){0==(1&n)&&(n|=1,t.enableSubstitution(78),i=[]);var v=s.cloneNode(y);v.autoGenerateFlags&=-9,i[e.getOriginalNodeId(r)]=v}return e.setEmitFlags(f,65536|e.getEmitFlags(f)),g.push(e.startOnNewLine(s.createAssignment(y,f))),e.addRange(g,e.map(a,e.startOnNewLine)),e.addRange(g,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=P(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n}(l,y)),g.push(e.startOnNewLine(y)),s.inlineExpressions(g)}return f}(r);f&&(m=y.pop());return a=u,l}(u);case 162:return D(u);case 229:return function(n){var i=o;o=[];var a=e.visitEachChild(n,h,t),s=e.some(o)?r([a],o):a;return o=i,s}(u);case 157:return x(u);case 198:return function(r){if(f&&e.isPrivateIdentifier(r.name)){var n=O(r.name);if(n)return e.setOriginalNode(S(n,r.expression),r)}return e.visitEachChild(r,h,t)}(u);case 211:return function(r){if(f&&e.isPrivateIdentifierPropertyAccessExpression(r.operand)){var n=45===r.operator?39:46===r.operator?40:void 0,i=void 0;if(n&&(i=O(r.operand.name))){var a=E(e.visitNode(r.operand.expression,h,e.isExpression)),o=a.readExpression,c=a.initializeExpression,u=s.createPrefixUnaryExpression(39,S(i,o));return e.setOriginalNode(C(i,c||o,s.createBinaryExpression(u,n,s.createNumericLiteral(1)),62),r)}}return e.visitEachChild(r,h,t)}(u);case 212:return T(u,!1);case 200:return function(n){if(f&&e.isPrivateIdentifierPropertyAccessExpression(n.expression)){var i=s.createCallBinding(n.expression,c,p),a=i.thisArg,o=i.target;return s.updateCallExpression(n,s.createPropertyAccessExpression(e.visitNode(o,h),"call"),void 0,r([e.visitNode(a,h,e.isExpression)],e.visitNodes(n.arguments,h,e.isExpression)))}return e.visitEachChild(n,h,t)}(u);case 213:return function(n){if(f){if(e.isDestructuringAssignment(n)){var i=a;a=void 0,n=s.updateBinaryExpression(n,e.visitNode(n.left,v),n.operatorToken,e.visitNode(n.right,h));var o=e.some(a)?s.inlineExpressions(e.compact(r(a,[n]))):n;return a=i,o}if(e.isAssignmentExpression(n)&&e.isPrivateIdentifierPropertyAccessExpression(n.left)){var c=O(n.left.name);if(c)return e.setOriginalNode(C(c,n.left.expression,n.right,n.operatorToken.kind),n)}}return e.visitEachChild(n,h,t)}(u);case 79:return function(t){if(!f)return t;return e.setOriginalNode(s.createIdentifier(""),t)}(u);case 230:return function(r){if(e.isPostfixUnaryExpression(r.expression))return s.updateExpressionStatement(r,T(r.expression,!0));return e.visitEachChild(r,h,t)}(u);case 234:return function(r){if(r.incrementor&&e.isPostfixUnaryExpression(r.incrementor))return s.updateForStatement(r,e.visitNode(r.initializer,h,e.isForInitializer),e.visitNode(r.condition,h,e.isExpression),T(r.incrementor,!0),e.visitNode(r.statement,h,e.isStatement));return e.visitEachChild(r,h,t)}(u);case 202:return function(r){if(f&&e.isPrivateIdentifierPropertyAccessExpression(r.tag)){var n=s.createCallBinding(r.tag,c,p),i=n.thisArg,a=n.target;return s.updateTaggedTemplateExpression(r,s.createCallExpression(s.createPropertyAccessExpression(e.visitNode(a,h),"bind"),void 0,[e.visitNode(i,h,e.isExpression)]),void 0,e.visitNode(r.template,h,e.isTemplateLiteral))}return e.visitEachChild(r,h,t)}(u)}return e.visitEachChild(u,h,t)}function v(t){switch(t.kind){case 197:case 196:return function(t){return e.isArrayLiteralExpression(t)?s.updateArrayLiteralExpression(t,e.visitNodes(t.elements,L,e.isExpression)):s.updateObjectLiteralExpression(t,e.visitNodes(t.properties,R,e.isObjectLiteralElementLike))}(t);default:return h(t)}}function b(r){switch(r.kind){case 165:return;case 166:case 167:case 164:return e.visitEachChild(r,b,t);case 162:return D(r);case 157:return x(r);case 226:return r;default:return h(r)}}function x(r){var n=e.visitEachChild(r,h,t);if(e.some(a)){var i=a;i.push(r.expression),a=[],n=s.updateComputedPropertyName(n,s.inlineExpressions(i))}return n}function D(r){if(e.Debug.assert(!e.some(r.decorators)),!f&&e.isPrivateIdentifier(r.name))return s.updatePropertyDeclaration(r,void 0,e.visitNodes(r.modifiers,h,e.isModifier),r.name,void 0,void 0,void 0);var n=function(t,r){if(e.isComputedPropertyName(t)){var n=e.visitNode(t.expression,h,e.isExpression),i=e.skipPartiallyEmittedExpressions(n),a=e.isSimpleInlineableExpression(i);if(!(e.isAssignmentExpression(i)&&e.isGeneratedIdentifier(i.left))&&!a&&r){var o=s.getGeneratedNameForNode(t);return c(o),s.createAssignment(o,n)}return a||e.isIdentifier(i)?void 0:n}}(r.name,!!r.initializer||!!t.getCompilerOptions().useDefineForClassFields);n&&!e.isSimpleInlineableExpression(n)&&w().push(n)}function S(r,n){switch(n=e.visitNode(n,h,e.isExpression),r.placement){case 0:return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(e.nodeIsSynthesized(n)?n:s.cloneNode(n),r.weakMapName);default:return e.Debug.fail("Unexpected private identifier placement")}}function T(r,n){if(f&&e.isPrivateIdentifierPropertyAccessExpression(r.operand)){var i=45===r.operator?39:46===r.operator?40:void 0,a=void 0;if(i&&(a=O(r.operand.name))){var o=E(e.visitNode(r.operand.expression,h,e.isExpression)),u=o.readExpression,l=o.initializeExpression,d=s.createPrefixUnaryExpression(39,S(a,u)),_=n?void 0:s.createTempVariable(c);return e.setOriginalNode(s.inlineExpressions(e.compact([C(a,l||u,s.createBinaryExpression(_?s.createAssignment(_,d):d,i,s.createNumericLiteral(1)),62),_])),r)}}return e.visitEachChild(r,h,t)}function E(t){var r=e.nodeIsSynthesized(t)?t:s.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:r,initializeExpression:void 0};var n=s.createTempVariable(c);return{readExpression:n,initializeExpression:s.createAssignment(n,r)}}function C(r,n,i,a){switch(r.placement){case 0:return function(r,n,i,a){if(n=e.visitNode(n,h,e.isExpression),i=e.visitNode(i,h,e.isExpression),e.isCompoundAssignment(a)){var o=E(n),c=o.readExpression,u=o.initializeExpression;return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(u||c,r.weakMapName,s.createBinaryExpression(t.getEmitHelperFactory().createClassPrivateFieldGetHelper(c,r.weakMapName),e.getNonAssignmentOperatorForCompoundAssignment(a),i))}return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(n,r.weakMapName,i)}(r,n,i,a);default:return e.Debug.fail("Unexpected private identifier placement")}}function k(t){return e.isPropertyDeclaration(t)||f&&t.name&&e.isPrivateIdentifier(t.name)}function N(r,n){if(f)for(var i=0,a=r.members;i<a.length;i++){var o=a[i];e.isPrivateIdentifierPropertyDeclaration(o)&&I(o.name)}var c=[],d=function(r,n){var i=e.visitNode(e.getFirstConstructorWithBody(r),h,e.isConstructorDeclaration),a=r.members.filter(A);if(!e.some(a))return i;var o=e.visitParameterList(i?i.parameters:void 0,h,t),c=function(r,n,i){var a=t.getCompilerOptions().useDefineForClassFields,o=e.getProperties(r,!1,!1);a||(o=e.filter(o,(function(t){return!!t.initializer||e.isPrivateIdentifier(t.name)})));if(!n&&!e.some(o))return e.visitFunctionBody(void 0,h,t);l();var c=0,d=[];!n&&i&&d.push(s.createExpressionStatement(s.createCallExpression(s.createSuper(),void 0,[s.createSpreadElement(s.createIdentifier("arguments"))])));n&&(c=e.addPrologueDirectivesAndInitialSuperCall(s,n,d,h));if(null==n?void 0:n.body){var _=e.findIndex(n.body.statements,(function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),n)}),c);-1===_&&(_=n.body.statements.length),_>c&&(a||e.addRange(d,e.visitNodes(n.body.statements,h,e.isStatement,c,_-c)),c=_)}F(d,o,s.createThis()),n&&e.addRange(d,e.visitNodes(n.body.statements,h,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,b,e.isClassElement)),e.setTextRange(s.createNodeArray(c),r.members)}function A(r){return!(!e.isPropertyDeclaration(r)||e.hasStaticModifier(r))&&(t.getCompilerOptions().useDefineForClassFields?p<99:e.isInitializedProperty(r)||f&&e.isPrivateIdentifierPropertyDeclaration(r))}function F(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i],c=P(o,n);if(c){var u=s.createExpressionStatement(c);e.setSourceMapRange(u,e.moveRangePastModifiers(o)),e.setCommentRange(u,o),e.setOriginalNode(u,o),t.push(u)}}}function P(r,n){var i,a=!t.getCompilerOptions().useDefineForClassFields,o=e.isComputedPropertyName(r.name)&&!e.isSimpleInlineableExpression(r.name.expression)?s.updateComputedPropertyName(r.name,s.getGeneratedNameForNode(r.name)):r.name;if(f&&e.isPrivateIdentifier(o)){var c=O(o);if(c)switch(c.placement){case 0:return function(t,r,n){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()])}(n,e.visitNode(r.initializer,h,e.isExpression),c.weakMapName)}else e.Debug.fail("Undeclared private name for property declaration.")}if((!e.isPrivateIdentifier(o)||r.initializer)&&(!e.isPrivateIdentifier(o)||r.initializer)){var u=e.getOriginalNode(r),l=r.initializer||a?null!==(i=e.visitNode(r.initializer,h,e.isExpression))&&void 0!==i?i:s.createVoidZero():e.isParameterPropertyDeclaration(u,u.parent)&&e.isIdentifier(o)?o:s.createVoidZero();if(a||e.isPrivateIdentifier(o)){var d=e.createMemberAccessForPropertyName(s,n,o,o);return s.createAssignment(d,l)}var _=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?s.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,p=s.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return s.createObjectDefinePropertyCall(n,_,p)}}function w(){return a||(a=[])}function I(t){var r=e.getTextOfPropertyName(t),n=s.createUniqueName("_"+r.substring(1),24);c(n),(m||(m=new e.Map)).set(t.escapedText,{placement:0,weakMapName:n}),w().push(s.createAssignment(n,s.createNewExpression(s.createIdentifier("WeakMap"),void 0,[])))}function O(e){if(m&&(r=m.get(e.escapedText)))return r;for(var t=y.length-1;t>=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,h,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(C(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,h,e.isExpression)):e.isSpreadElement(t)?s.updateSpreadElement(t,n):n}return e.visitNode(t,v)}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,h),n?s.createAssignment(i,e.visitNode(n,h)):i)}return s.updatePropertyAssignment(t,e.visitNode(t.name,h),e.visitNode(t.initializer,v))}return e.visitNode(t,h)}}}(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=[],h=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){if(1&n&&function(e){var t=e.kind;return 249===t||165===t||164===t||166===t||167===t}(r)){var a=6144&p.getNodeCheckFlags(r);if(a!==m){var o=m;return m=a,v(t,r,i),void(m=o)}}else if(n&&y[e.getNodeId(r)]){o=m;return m=0,v(t,r,i),void(m=o)}v(t,r,i)},t.onSubstituteNode=function(t,n){if(n=b(t,n),1===t&&m)return function(t){switch(t.kind){case 198:return J(t);case 199:return K(t);case 200: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,C,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){h=t?h|e:h&~e}function D(e){return 0!=(h&e)}function S(){return D(2)}function T(e,t,r){var n=e&~h;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function E(r){return e.visitEachChild(r,C,t)}function C(r){if(0==(64&r.transformFlags))return r;switch(r.kind){case 129:return;case 210:return function(r){if(!D(1))return e.visitEachChild(r,C,t);return e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,C,e.isExpression)),r),r)}(r);case 164:return T(3,N,r);case 248:return T(3,A,r);case 205:return T(3,F,r);case 206:return T(1,P,r);case 198:return o&&e.isPropertyAccessExpression(r)&&105===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,C,t);case 199:return o&&105===r.expression.kind&&(s=!0),e.visitEachChild(r,C,t);case 166:case 167:case 165:case 249:case 218:return T(3,E,r);default:return e.visitEachChild(r,C,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 229:return function(r){if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,C,t)}(r);case 234:return function(t){var r=t.initializer;return c.updateForStatement(t,I(r)?O(r,!1):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 235:return function(t){return c.updateForInStatement(t,I(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 236:return function(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,C,e.isToken),I(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),e.visitNode(t.statement,k,e.isStatement,c.liftToBlock))}(r);case 284: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 227:case 241:case 255:case 281:case 282:case 244:case 232:case 233:case 231:case 240:case 242:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return C(r)}function N(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function A(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function F(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,t))}function P(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,C,e.isModifier),void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,C,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<a.length;i++){var o=a[i];e.isOmittedExpression(o)||w(o,r)}}function I(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(R)}function O(t,r){!function(t){e.forEach(t.declarations,M)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(c.converters.convertToAssignmentElementTarget(t.declarations[0].name),C,e.isExpression):void 0:c.inlineExpressions(e.map(n,L))}function M(t){var r=t.name;if(e.isIdentifier(r))_(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||M(a)}}function L(t){var r=e.setSourceMapRange(c.createAssignment(c.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,C,e.isExpression)}function R(t){var r=t.name;if(e.isIdentifier(r))return a.has(r.escapedText);for(var n=0,i=r.elements;n<i.length;n++){var o=i[n];if(!e.isOmittedExpression(o)&&R(o))return!0}return!1}function B(r){l();var _=e.getOriginalNode(r,e.isFunctionLike).type,f=g<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=p.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}return}(_):void 0,m=206===r.kind,h=0!=(8192&p.getNodeCheckFlags(r)),v=a;a=new e.Set;for(var b=0,x=r.parameters;b<x.length;b++){w(x[b],a)}var D,T=o,E=s;if(m||(o=new e.Set,s=!1),m){var k=u().createAwaiterHelper(S(),h,f,j(r.body)),N=d();if(e.some(N)){O=c.converters.convertToFunctionBlock(k);D=c.updateBlock(O,e.setTextRange(c.createNodeArray(e.concatenate(N,O.statements)),O.statements))}else D=k}else{var A=[],F=c.copyPrologue(r.body.statements,A,!1,C);A.push(c.createReturnStatement(u().createAwaiterHelper(S(),h,f,j(r.body,F)))),e.insertStatementsAfterStandardPrologue(A,d());var P=g>=2&&6144&p.getNodeCheckFlags(r);if(P&&(0==(1&n)&&(n|=1,t.enableSubstitution(200),t.enableSubstitution(198),t.enableSubstitution(199),t.enableEmitNotification(249),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(229)),o.size)){var I=i(c,p,r,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(A,[I])}var O=c.createBlock(A,!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)),D=O}return a=v,m||(o=T,s=E),D}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 249===t||165===t||164===t||166===t||167===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==b){var a=b;return b=i,d(t,r,n),void(b=a)}}else if(p&&D[e.getNodeId(r)]){a=b;return b=0,d(t,r,n),void(b=a)}d(t,r,n)};var _=t.onSubstituteNode;t.onSubstituteNode=function(t,i){if(i=_(t,i),1===t&&b)return function(t){switch(t.kind){case 198:return W(t);case 199:return H(t);case 200: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,h,v=!1,b=0,x=0,D=[];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);v=!1;var a=e.visitEachChild(r,C,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 E(t){m=e.append(m,n.createVariableDeclaration(t))}function C(e){return P(e,!1)}function k(e){return P(e,!0)}function N(e){if(129!==e.kind)return e}function A(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 F(r){return e.visitEachChild(r,C,t)}function P(a,o){if(0==(32&a.transformFlags))return a;switch(a.kind){case 210:return function(r){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(e.visitNode(r.expression,C,e.isExpression))),r),r);return e.visitEachChild(r,C,t)}(a);case 216:return function(r){if(2&f&&1&f){if(r.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(r.expression),C,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,C,e.isExpression):n.createVoidZero())),r),r)}return e.visitEachChild(r,C,t)}(a);case 239:return function(r){if(2&f&&1&f)return n.updateReturnStatement(r,M(r.expression?e.visitNode(r.expression,C,e.isExpression):n.createVoidZero()));return e.visitEachChild(r,C,t)}(a);case 242:return function(r){if(2&f){var i=e.unwrapInnermostStatementOfLabel(r);return 236===i.kind&&i.awaitModifier?O(i,r):n.restoreEnclosingLabel(e.visitNode(i,C,e.isStatement,n.liftToBlock),r)}return e.visitEachChild(r,C,t)}(a);case 197:return function(r){if(16384&r.transformFlags){var a=function(t){for(var r,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(287===s.kind){r&&(i.push(n.createObjectLiteralExpression(r)),r=void 0);var c=s.expression;i.push(e.visitNode(c,C,e.isExpression))}else r=e.append(r,285===s.kind?n.createPropertyAssignment(s.name,e.visitNode(s.initializer,C,e.isExpression)):e.visitNode(s,C,e.isObjectLiteralElementLike))}r&&i.push(n.createObjectLiteralExpression(r));return i}(r.properties);a.length&&197!==a[0].kind&&a.unshift(n.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=i().createAssignHelper([o,a[s]]);return o}return i().createAssignHelper(a)}return e.visitEachChild(r,C,t)}(a);case 213:return function(r,i){if(e.isDestructuringAssignment(r)&&16384&r.left.transformFlags)return e.flattenDestructuringAssignment(r,C,t,1,!i);if(27===r.operatorToken.kind)return n.updateBinaryExpression(r,e.visitNode(r.left,k,e.isExpression),r.operatorToken,e.visitNode(r.right,i?k:C,e.isExpression));return e.visitEachChild(r,C,t)}(a,o);case 284:return function(i){if(i.variableDeclaration&&e.isBindingPattern(i.variableDeclaration.name)&&16384&i.variableDeclaration.name.transformFlags){var a=n.getGeneratedNameForNode(i.variableDeclaration.name),o=n.updateVariableDeclaration(i.variableDeclaration,i.variableDeclaration.name,void 0,void 0,a),s=e.flattenDestructuringBinding(o,C,t,1),c=e.visitNode(i.block,C,e.isBlock);return e.some(s)&&(c=n.updateBlock(c,r([n.createVariableStatement(void 0,s)],c.statements))),n.updateCatchClause(i,n.updateVariableDeclaration(i.variableDeclaration,a,void 0,void 0,void 0),c)}return e.visitEachChild(i,C,t)}(a);case 229:return function(r){if(e.hasSyntacticModifier(r,1)){var n=v;v=!0;var i=e.visitEachChild(r,C,t);return v=n,i}return e.visitEachChild(r,C,t)}(a);case 246:return function(e){if(v){var t=v;v=!1;var r=w(e,!0);return v=t,r}return w(e,!1)}(a);case 232:case 233:case 235:return A(F,a,0,2);case 236:return O(a,void 0);case 234:return A(I,a,0,2);case 209:return function(r){return e.visitEachChild(r,k,t)}(a);case 165:return A(L,a,2,1);case 164:return A(j,a,2,1);case 166:return A(R,a,2,1);case 167:return A(B,a,2,1);case 248:return A(J,a,2,1);case 205:return A(z,a,2,1);case 206:return A(K,a,2,0);case 159:return function(r){if(16384&r.transformFlags)return n.updateParameterDeclaration(r,void 0,void 0,r.dotDotDotToken,n.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,C,e.isExpression));return e.visitEachChild(r,C,t)}(a);case 230:return function(r){return e.visitEachChild(r,k,t)}(a);case 204:return function(r,n){return e.visitEachChild(r,n?k:C,t)}(a,o);case 202:return function(r){return e.processTaggedTemplateExpression(t,r,C,g,E,e.ProcessLevel.LiftRestriction)}(a);case 198:return y&&e.isPropertyAccessExpression(a)&&105===a.expression.kind&&y.add(a.name.escapedText),e.visitEachChild(a,C,t);case 199:return y&&105===a.expression.kind&&(h=!0),e.visitEachChild(a,C,t);case 249:case 218:return A(F,a,2,1);default:return e.visitEachChild(a,C,t)}}function w(r,n){return e.isBindingPattern(r.name)&&16384&r.name.transformFlags?e.flattenDestructuringBinding(r,C,t,1,void 0,n):e.visitEachChild(r,C,t)}function I(t){return n.updateForStatement(t,e.visitNode(t.initializer,k,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitNode(t.statement,C,e.isStatement))}function O(r,a){var o=S(0,2);16384&r.initializer.transformFlags&&(r=function(t){var r=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var i=void 0,a=void 0,o=n.createTempVariable(void 0),s=[e.createForOfBindingStatement(n,r,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),n.updateForOfStatement(t,t.awaitModifier,e.setTextRange(n.createVariableDeclarationList([e.setTextRange(n.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(n.createBlock(e.setTextRange(n.createNodeArray(s),a),!0),i))}return t}(r));var c=r.awaitModifier?function(t,r,a){var o=e.visitNode(t.expression,C,e.isExpression),c=e.isIdentifier(o)?n.getGeneratedNameForNode(o):n.createTempVariable(void 0),u=e.isIdentifier(o)?n.getGeneratedNameForNode(c):n.createTempVariable(void 0),l=n.createUniqueName("e"),d=n.getGeneratedNameForNode(l),_=n.createTempVariable(void 0),p=e.setTextRange(i().createAsyncValuesHelper(o),t.expression),f=n.createCallExpression(n.createPropertyAccessExpression(c,"next"),void 0,[]),g=n.createPropertyAccessExpression(u,"done"),m=n.createPropertyAccessExpression(u,"value"),y=n.createFunctionCallCall(_,c,[]);s(l),s(_);var h=2&a?n.inlineExpressions([n.createAssignment(l,n.createVoidZero()),p]):p,v=e.setEmitFlags(e.setTextRange(n.createForStatement(e.setEmitFlags(e.setTextRange(n.createVariableDeclarationList([e.setTextRange(n.createVariableDeclaration(c,void 0,void 0,h),t.expression),n.createVariableDeclaration(u)]),t.expression),2097152),n.createComma(n.createAssignment(u,M(f)),n.createLogicalNot(g)),void 0,function(t,r){var i,a,o=e.createForOfBindingStatement(n,t.initializer,r),s=[e.visitNode(o,C,e.isStatement)],c=e.visitNode(t.statement,C,e.isStatement);e.isBlock(c)?(e.addRange(s,c.statements),i=c,a=c.statements):s.push(c);return e.setEmitFlags(e.setTextRange(n.createBlock(e.setTextRange(n.createNodeArray(s),a),!0),i),432)}(t,m)),t),256);return n.createTryStatement(n.createBlock([n.restoreEnclosingLabel(v,r)]),n.createCatchClause(n.createVariableDeclaration(d),e.setEmitFlags(n.createBlock([n.createExpressionStatement(n.createAssignment(l,n.createObjectLiteralExpression([n.createPropertyAssignment("error",d)])))]),1)),n.createBlock([n.createTryStatement(n.createBlock([e.setEmitFlags(n.createIfStatement(n.createLogicalAnd(n.createLogicalAnd(u,n.createLogicalNot(g)),n.createAssignment(_,n.createPropertyAccessExpression(c,"return"))),n.createExpressionStatement(M(y))),1)]),void 0,e.setEmitFlags(n.createBlock([e.setEmitFlags(n.createIfStatement(l,n.createThrowStatement(n.createPropertyAccessExpression(l,"error"))),1)]),1))]))}(r,a,o):n.restoreEnclosingLabel(e.visitEachChild(r,C,t),a);return T(o),c}function M(e){return 1&f?n.createYieldExpression(void 0,i().createAwaitHelper(e)):n.createAwaitExpression(e)}function L(r){var i=f;f=0;var a=n.updateConstructorDeclaration(r,void 0,r.modifiers,e.visitParameterList(r.parameters,C,t),V(r));return f=i,a}function R(r){var i=f;f=0;var a=n.updateGetAccessorDeclaration(r,void 0,r.modifiers,e.visitNode(r.name,C,e.isPropertyName),e.visitParameterList(r.parameters,C,t),void 0,V(r));return f=i,a}function B(r){var i=f;f=0;var a=n.updateSetAccessorDeclaration(r,void 0,r.modifiers,e.visitNode(r.name,C,e.isPropertyName),e.visitParameterList(r.parameters,C,t),V(r));return f=i,a}function j(r){var i=f;f=e.getFunctionFlags(r);var a=n.updateMethodDeclaration(r,void 0,1&f?e.visitNodes(r.modifiers,N,e.isModifier):r.modifiers,2&f?void 0:r.asteriskToken,e.visitNode(r.name,C,e.isPropertyName),e.visitNode(void 0,C,e.isToken),void 0,e.visitParameterList(r.parameters,C,t),void 0,2&f&&1&f?U(r):V(r));return f=i,a}function J(r){var i=f;f=e.getFunctionFlags(r);var a=n.updateFunctionDeclaration(r,void 0,1&f?e.visitNodes(r.modifiers,N,e.isModifier):r.modifiers,2&f?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&f&&1&f?U(r):V(r));return f=i,a}function K(r){var i=f;f=e.getFunctionFlags(r);var a=n.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,C,t),void 0,r.equalsGreaterThanToken,V(r));return f=i,a}function z(r){var i=f;f=e.getFunctionFlags(r);var a=n.updateFunctionExpression(r,1&f?e.visitNodes(r.modifiers,N,e.isModifier):r.modifiers,2&f?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,C,t),void 0,2&f&&1&f?U(r):V(r));return f=i,a}function U(r){a();var s=[],u=n.copyPrologue(r.body.statements,s,!1,C);q(s,r);var d=y,_=h;y=new e.Set,h=!1;var f=n.createReturnStatement(i().createAsyncGeneratorHelper(n.createFunctionExpression(void 0,n.createToken(41),r.name&&n.getGeneratedNameForNode(r.name),void 0,[],void 0,n.updateBlock(r.body,e.visitLexicalEnvironment(r.body.statements,C,t,u))),!!(1&x))),g=l>=2&&6144&c.getNodeCheckFlags(r);if(g){0==(1&p)&&(p|=1,t.enableSubstitution(200),t.enableSubstitution(198),t.enableSubstitution(199),t.enableEmitNotification(249),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(165),t.enableEmitNotification(229));var m=e.createSuperAccessVariableStatement(n,c,r,y);D[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var v=n.updateBlock(r.body,s);return g&&h&&(4096&c.getNodeCheckFlags(r)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(r)&&e.addEmitHelper(v,e.asyncSuperHelper)),y=d,h=_,v}function V(t){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(t.body,C,e.isConciseBody))&&void 0!==r?r:n.createBlock([]);e.isBlock(c)&&(i=n.copyPrologue(c.statements,s,!1,C)),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;a<o.length;a++){var s=o[a];if(16384&s.transformFlags){var c=n.getGeneratedNameForNode(s),u=e.flattenDestructuringBinding(s,C,t,1,c,!1,!0);if(e.some(u)){var l=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));e.setEmitFlags(l,1048576),r=e.append(r,l)}}}return r}function W(t){return 105===t.expression.kind?e.setTextRange(n.createPropertyAccessExpression(n.createUniqueName("_super",48),t.name),t):t}function H(t){return 105===t.expression.kind?(r=t.argumentExpression,i=t,4096&b?e.setTextRange(n.createPropertyAccessExpression(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[r]),"value"),i):e.setTextRange(n.createCallExpression(n.createIdentifier("_superIndex"),void 0,[r]),i)):t;var r,i}}}(u||(u={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,n,t)}));function n(i){if(0==(16&i.transformFlags))return i;switch(i.kind){case 284:return function(i){if(!i.variableDeclaration)return r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock));return e.visitEachChild(i,n,t)}(i);default:return e.visitEachChild(i,n,t)}}}}(u||(u={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(c){if(0==(8&c.transformFlags))return c;switch(c.kind){case 198:case 199:case 200:if(32&c.flags){var u=o(c,!1,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u}return e.visitEachChild(c,i,t);case 213:return 60===c.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a));return r.createConditionalExpression(s(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression))}(c):e.visitEachChild(c,i,t);case 207:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(a(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(c);default:return e.visitEachChild(c,i,t)}}function a(s,c,u){switch(s.kind){case 204:return function(t,n,i){var o=a(t.expression,n,i);return e.isSyntheticReference(o)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,o.expression),o.thisArg):r.updateParenthesizedExpression(t,o)}(s,c,u);case 198:case 199:return function(t,a,s){if(e.isOptionalChain(t))return o(t,a,s);var c,u=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(u,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(u)?c=u:(c=r.createTempVariable(n),u=r.createAssignment(c,u))),u=198===t.kind?r.updatePropertyAccessExpression(t,u,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,u,e.visitNode(t.argumentExpression,i,e.isExpression)),c?r.createSyntheticReferenceExpression(u,c):u}(s,c,u);case 200:return function(r,n){return e.isOptionalChain(r)?o(r,n,!1):e.visitEachChild(r,i,t)}(s,c);default:return e.visitNode(s,i,e.isExpression)}}function o(t,o,c){var u=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),l=u.expression,d=u.chain,_=a(l,e.isCallChain(d[0]),!1),p=e.isSyntheticReference(_)?_.thisArg:void 0,f=e.isSyntheticReference(_)?_.expression:_,g=f;e.isSimpleCopiableExpression(f)||(g=r.createTempVariable(n),f=r.createAssignment(g,f));for(var m,y=g,h=0;h<d.length;h++){var v=d[h];switch(v.kind){case 198:case 199:h===d.length-1&&o&&(e.isSimpleCopiableExpression(y)?m=y:(m=r.createTempVariable(n),y=r.createAssignment(m,y))),y=198===v.kind?r.createPropertyAccessExpression(y,e.visitNode(v.name,i,e.isIdentifier)):r.createElementAccessExpression(y,e.visitNode(v.argumentExpression,i,e.isExpression));break;case 200:y=0===h&&p?r.createFunctionCallCall(y,105===p.kind?r.createThis():p,e.visitNodes(v.arguments,i,e.isExpression)):r.createCallExpression(y,void 0,e.visitNodes(v.arguments,i,e.isExpression))}e.setOriginalNode(y,v)}var b=c?r.createConditionalExpression(s(f,g,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(y)):r.createConditionalExpression(s(f,g,!0),void 0,r.createVoidZero(),void 0,y);return m?r.createSyntheticReferenceExpression(b,m):b}function s(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}}(u||(u={})),function(e){e.transformESNext=function(t){var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(0==(4&a.transformFlags))return a;switch(a.kind){case 213:var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return function(t){var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,u=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var l=e.isSimpleCopiableExpression(s.expression),d=l?s.expression:n.createTempVariable(r),_=l?s.expression:n.createAssignment(d,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(d,s.name),s=n.createPropertyAccessExpression(_,s.name);else{var p=e.isSimpleCopiableExpression(s.argumentExpression),f=p?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(d,f),s=n.createElementAccessExpression(_,p?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,u)))}(o);default:return e.visitEachChild(a,i,t)}}}}(u||(u={})),function(e){e.transformJsx=function(r){var n,i=r.factory,a=r.getEmitHelperFactory,o=r.getCompilerOptions();return e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,s,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i}));function s(t){return 2&t.transformFlags?function(t){switch(t.kind){case 270:return u(t,!1);case 271:return l(t,!1);case 274:return d(t,!1);case 280:return y(t);default:return e.visitEachChild(t,s,r)}}(t):t}function c(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=g(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?g(r,t.substr(n)):r}(t.text);return void 0===r?void 0:i.createStringLiteral(r)}(t);case 280:return y(t);case 270:return u(t,!0);case 271:return l(t,!0);case 274:return d(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function u(e,t){return _(e.openingElement,e.children,t,e)}function l(e,t){return _(e,void 0,t,e)}function d(t,a){return function(t,a,s,u){var l=e.createExpressionForJsxFragment(i,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),o.reactNamespace,e.mapDefined(a,c),t,u);s&&e.startOnNewLine(l);return l}(t.openingFragment,t.children,a,t)}function _(t,s,u,l){var d,_=function t(r){if(270===r.kind)return t(r.openingElement);var n=r.tagName;return e.isIdentifier(n)&&e.isIntrinsicJsxName(n.escapedText)?i.createStringLiteral(e.idText(n)):e.createExpressionFromEntityName(i,n)}(t),g=t.attributes.properties;if(0===g.length)d=i.createNull();else{var m=e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,p):i.createObjectLiteralExpression(e.map(t,f))})));e.isJsxSpreadAttribute(g[0])&&m.unshift(i.createObjectLiteralExpression()),(d=e.singleOrUndefined(m))||(d=a().createAssignHelper(m))}var y=e.createExpressionForJsxElement(i,r.getEmitResolver().getJsxFactoryEntity(n),o.reactNamespace,_,d,e.mapDefined(s,c),t,l);return u&&e.startOnNewLine(y),y}function p(t){return e.visitNode(t.expression,s,e.isExpression)}function f(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:i.createStringLiteral(n)}(t),a=function(t){if(void 0===t)return i.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),a=i.createStringLiteral((o=t.text,((c=m(o))===o?void 0:c)||t.text),r);return e.setTextRange(a,t)}return 280===t.kind?void 0===t.expression?i.createTrue():e.visitNode(t.expression,s,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,c}(t.initializer);return i.createPropertyAssignment(r,a)}function g(e,t){var r=m(t);return void 0===e?r:e+" "+r}function m(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 y(t){return e.visitNode(t.expression,s,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 213: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,h=t.onEmitNode;function v(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&c&&e.isFunctionLike(r)){var i=b(16286,8&e.getEmitFlags(r)?81:65);return h(t,r,n),void x(i,0,0)}h(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 195:case 249:case 252:case 246: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=b(8064,64),n=[],i=[];d();var a=u.copyPrologue(t.statements,n,!1,T);e.addRange(i,e.visitNodes(t.statements,T,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o)));return u.mergeLexicalEnvironment(n,p()),L(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 b(e,t){var r=a;return a=16383&(a&~e|t),r}function x(e,t,r){a=-16384&(a&~t|r)|e}function D(e){return 0!=(8192&a)&&239===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)&&ue(t)||0!=(33554432&e.getEmitFlags(t))}function T(i){return S(i)?function(i){switch(i.kind){case 123:return;case 249: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 218:return function(e){return N(e)}(i);case 159: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 248:return function(r){var n=s;s=void 0;var i=b(16286,65),o=e.visitParameterList(r.parameters,T,t),c=V(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,T,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(i);case 206:return function(r){4096&r.transformFlags&&(a|=32768);var n=s;s=void 0;var i=b(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,V(r));e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),32768&a&&we();return x(i,0,0),s=n,o}(i);case 205:return function(r){var n=262144&e.getEmitFlags(r)?b(16278,69):b(16286,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,T,t),c=V(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 246:return G(i);case 78:return k(i);case 247:return function(r){if(3&r.flags||131072&r.transformFlags){3&r.flags&&Pe();var n=e.flatMap(r.declarations,1&r.flags?H:G),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;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)}(n)),i}return e.visitEachChild(r,T,t)}(i);case 241:return function(r){if(void 0!==s){var n=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,T,t);return s.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,T,t)}(i);case 255:return function(r){var n=b(7104,0),i=e.visitEachChild(r,T,t);return x(n,0,0),i}(i);case 227:return function(r,n){if(n)return e.visitEachChild(r,T,t);var i=256&a?b(7104,512):b(6976,128),o=e.visitEachChild(r,T,t);return x(i,0,0),o}(i,!1);case 238:case 237:return function(r){if(s){var n=238===r.kind?2:4;if(!(r.label&&s.labels&&s.labels.get(e.idText(r.label))||!r.label&&s.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?238===r.kind?(i="break-"+a.escapedText,me(s,!0,e.idText(a),i)):(i="continue-"+a.escapedText,me(s,!1,e.idText(a),i)):238===r.kind?(s.nonLocalJumps|=2,i="break"):(s.nonLocalJumps|=4,i="continue");var o=u.createStringLiteral(i);if(s.loopOutParameters.length){for(var c=s.loopOutParameters,l=void 0,d=0;d<c.length;d++){var _=fe(c[d],1);l=0===d?_:u.createBinaryExpression(l,27,_)}o=u.createBinaryExpression(l,27,o)}return u.createReturnStatement(o)}}return e.visitEachChild(r,T,t)}(i);case 242:return function(t){s&&!s.labels&&(s.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,s&&Y);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 232:case 233:return $(e,t);case 234:return Z(e,t);case 235:return ee(e,t);case 236:return te(e,t)}}(r,t):u.restoreEnclosingLabel(e.visitNode(r,T,e.isStatement,u.liftToBlock),t,s&&X)}(i);case 232:case 233:return $(i,void 0);case 234:return Z(i,void 0);case 235:return ee(i,void 0);case 236:return te(i,void 0);case 230:return function(r){switch(r.expression.kind){case 204:return u.updateExpressionStatement(r,q(r.expression,!1));case 213:return u.updateExpressionStatement(r,W(r.expression,!1))}return e.visitEachChild(r,T,t)}(i);case 197:return function(r){for(var n=r.properties,i=-1,o=!1,s=0;s<n.length;s++){var c=n[s];if(262144&c.transformFlags&&4&a||(o=157===e.Debug.checkDefined(c.name).kind)){i=s;break}}if(i<0)return e.visitEachChild(r,T,t);var l=u.createTempVariable(f),d=[],_=u.createAssignment(l,e.setEmitFlags(u.createObjectLiteralExpression(e.visitNodes(n,T,e.isObjectLiteralElementLike,0,i),r.multiLine),o?65536:0));r.multiLine&&e.startOnNewLine(_);return d.push(_),function(t,r,n,i){for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 166:case 167:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(z(n,u,r,!!r.multiLine));break;case 164:t.push(xe(c,n,r,r.multiLine));break;case 285:t.push(ve(c,n,r.multiLine));break;case 286:t.push(be(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(d,r,l,i),d.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(u.cloneNode(l),l),l.parent)):l),u.inlineExpressions(d)}(i);case 284:return function(n){var i,a=b(7104,0);if(e.Debug.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(n.variableDeclaration.name)){var o=u.createTempVariable(void 0),s=u.createVariableDeclaration(o);e.setTextRange(s,n.variableDeclaration);var c=e.flattenDestructuringBinding(n.variableDeclaration,T,t,0,o),l=u.createVariableDeclarationList(c);e.setTextRange(l,n.variableDeclaration);var d=u.createVariableStatement(void 0,l);i=u.updateCatchClause(n,s,(_=n.block,p=d,f=e.visitNodes(_.statements,T,e.isStatement),u.updateBlock(_,r([p],f))))}else i=e.visitEachChild(n,T,t);var _,p,f;return x(a,0,0),i}(i);case 286:return function(t){return e.setTextRange(u.createPropertyAssignment(t.name,k(u.cloneNode(t.name))),t)}(i);case 157:return function(r){return e.visitEachChild(r,T,t)}(i);case 196:return function(r){if(e.some(r.elements,e.isSpreadElement))return Se(r.elements,!0,!!r.multiLine,!!r.elements.hasTrailingComma);return e.visitEachChild(r,T,t)}(i);case 200:return function(t){if(33554432&e.getEmitFlags(t))return function(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=function(t){return e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer},i=s;s=void 0;var a=e.visitNodes(r.statements,T,e.isStatement);s=i;var o=e.filter(a,n),c=e.filter(a,(function(e){return!n(e)})),l=e.cast(e.first(o),e.isVariableStatement).declarationList.declarations[0],d=e.skipOuterExpressions(l.initializer),_=e.tryCast(d,e.isAssignmentExpression),p=e.cast(_?e.skipOuterExpressions(_.right):d,e.isCallExpression),f=e.cast(e.skipOuterExpressions(p.expression),e.isFunctionExpression),g=f.body.statements,m=0,y=-1,h=[];if(_){var v=e.tryCast(g[m],e.isExpressionStatement);v&&(h.push(v),m++),h.push(g[m]),m++,h.push(u.createExpressionStatement(u.createAssignment(_.left,e.cast(l.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(g,y));)y--;e.addRange(h,g,m,y),y<-1&&e.addRange(h,g,y+1);return e.addRange(h,c),e.addRange(h,o,1),u.restoreOuterExpressions(t.expression,u.restoreOuterExpressions(l.initializer,u.restoreOuterExpressions(_&&_.right,u.updateCallExpression(p,u.restoreOuterExpressions(p.expression,u.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,u.updateBlock(f.body,h))),void 0,p.arguments))))}(t);var r=e.skipOuterExpressions(t.expression);if(105===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement))return De(t,!0);return u.updateCallExpression(t,e.visitNode(t.expression,E,e.isExpression),void 0,e.visitNodes(t.arguments,T,e.isExpression))}(i);case 201:return function(n){if(e.some(n.arguments,e.isSpreadElement)){var i=u.createCallBinding(u.createPropertyAccessExpression(n.expression,"bind"),f),a=i.target,o=i.thisArg;return u.createNewExpression(u.createFunctionApplyCall(e.visitNode(a,T,e.isExpression),o,Se(u.createNodeArray(r([u.createVoidZero()],n.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(n,T,t)}(i);case 204:return q(i,!0);case 213:return W(i,!0);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(u.createStringLiteral(t.text),t)}(i);case 10:return function(t){if(t.hasExtendedUnicodeEscape)return e.setTextRange(u.createStringLiteral(t.text),t);return t}(i);case 8:return function(t){if(384&t.numericLiteralFlags)return e.setTextRange(u.createNumericLiteral(t.text),t);return t}(i);case 202:return function(r){return e.processTaggedTemplateExpression(t,r,T,n,v,e.ProcessLevel.All)}(i);case 215:return function(t){var r=[];(function(t,r){if(!function(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length}(r))return;t.push(u.createStringLiteral(r.head.text))})(r,t),function(t,r){for(var n=0,i=r.templateSpans;n<i.length;n++){var a=i[n];t.push(e.visitNode(a.expression,T,e.isExpression)),0!==a.literal.text.length&&t.push(u.createStringLiteral(a.literal.text))}}(r,t);var n=e.reduceLeft(r,u.createAdd);e.nodeIsSynthesized(n)&&e.setTextRange(n,t);return n}(i);case 216:return function(r){return e.visitEachChild(r,T,t)}(i);case 217:return function(t){return e.visitNode(t.expression,T,e.isExpression)}(i);case 105:return Fe(!1);case 107:return function(e){2&a&&(a|=32768);if(s)return 2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this"));return e}(i);case 223:return function(e){if(102===e.keywordToken&&"target"===e.name.escapedText)return a|=16384,u.createUniqueName("_newTarget",48);return e}(i);case 164:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=U(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(u.createPropertyAssignment(t.name,r),t)}(i);case 166:case 167:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=b(16286,65),o=e.visitParameterList(r.parameters,T,t),c=V(r);i=166===r.kind?u.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,r.type,c):u.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,c);return x(a,49152,0),s=n,i}(i);case 229:return function(r){var n,i=b(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;o<c.length;o++){var l=c[o];if(de(s,l),l.initializer){var d=void 0;e.isBindingPattern(l.name)?d=e.flattenDestructuringAssignment(l,T,t,0):(d=u.createBinaryExpression(l.name,62,e.visitNode(l.initializer,T,e.isExpression)),e.setTextRange(d,l)),a=e.append(a,d)}}n=a?e.setTextRange(u.createExpressionStatement(u.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,T,t);return x(i,0,0),n}(i);case 239:return function(r){if(s)return s.nonLocalJumps|=8,D(r)&&(r=C(r)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),r.expression?e.visitNode(r.expression,T,e.isExpression):u.createVoidZero())]));if(D(r))return C(r);return e.visitEachChild(r,T,t)}(i);default:return e.visitEachChild(i,T,t)}}(i):i}function E(e){return 105===e.kind?Fe(!0):T(e)}function C(t){return e.setOriginalNode(u.createReturnStatement(u.createUniqueName("_this",48)),t)}function k(e){return s&&m.isArgumentsLocalBinding(e)?s.argumentsName||(s.argumentsName=u.createUniqueName("arguments")):e}function N(r){r.name&&Pe();var o=e.getClassExtendsHeritageElement(r),c=u.createFunctionExpression(void 0,void 0,void 0,void 0,o?[u.createParameterDeclaration(void 0,void 0,void 0,u.createUniqueName("_super",48))]:[],void 0,function(r,o){var c=[];d(),function(t,r,n){n&&t.push(e.setTextRange(u.createExpressionStatement(l().createExtendsHelper(u.getInternalName(r))),n))}(c,r,o),function(r,n,i){var o=s;s=void 0;var c=b(16278,73),l=e.getFirstConstructorWithBody(n),d=function(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||230!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||200!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||105!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||217!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(l,void 0!==i),f=u.createFunctionDeclaration(void 0,void 0,void 0,u.getInternalName(n),void 0,function(r,n){return e.visitParameterList(r&&!n?r.parameters:void 0,T,t)||[]}(l,d),void 0,function(t,r,n,i){var o=!!n&&103!==e.skipOuterExpressions(n.expression).kind;if(!t)return function(t,r){var n=[];_(),u.mergeLexicalEnvironment(n,p()),r&&n.push(u.createReturnStatement(F()));var i=u.createNodeArray(n);e.setTextRange(i,t.members);var a=u.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a}(r,o);var s=[],c=[];_();var l,d=0;i||(d=u.copyStandardPrologue(t.body.statements,s,!1));w(c,t),M(c,t,i),i||(d=u.copyCustomPrologue(t.body.statements,c,d,T));if(i)l=F();else if(o&&d<t.body.statements.length){var f=t.body.statements[d];e.isExpressionStatement(f)&&e.isSuperCall(f.expression)&&(l=function(e){return De(e,!1)}(f.expression))}l&&(a|=8192,d++);if(e.addRange(c,e.visitNodes(t.body.statements,T,e.isStatement,d)),u.mergeLexicalEnvironment(s,p()),B(s,t,!1),o)if(!l||d!==t.body.statements.length||4096&t.body.transformFlags)R(c,t,l||A()),function t(r){if(239===r.kind)return!0;if(231===r.kind){var n=r;if(n.elseStatement)return t(n.thenStatement)&&t(n.elseStatement)}else if(227===r.kind){var i=e.lastOrUndefined(r.statements);if(i&&t(i))return!0}return!1}(t.body)||c.push(u.createReturnStatement(u.createUniqueName("_this",48)));else{var g=e.cast(e.cast(l,e.isBinaryExpression).left,e.isCallExpression),m=u.createReturnStatement(l);e.setCommentRange(m,e.getCommentRange(g)),e.setEmitFlags(g,1536),c.push(m)}else L(s,t);var y=u.createBlock(e.setTextRange(u.createNodeArray(e.concatenate(s,c)),t.body.statements),!0);return e.setTextRange(y,t.body),y}(l,n,i,d));e.setTextRange(f,l||n),i&&e.setEmitFlags(f,8);r.push(f),x(c,49152,0),s=o}(c,r,o),function(t,r){for(var i=0,a=r.members;i<a.length;i++){var o=a[i];switch(o.kind){case 226:t.push(j(o));break;case 164:t.push(J(Ie(r,o),o,r));break;case 166:case 167:var s=e.getAllAccessorDeclarations(r.members,o);o===s.firstAccessor&&t.push(K(Ie(r,o),s,r));break;case 165:break;default:e.Debug.failBadSyntaxKind(o,n&&n.fileName)}}}(c,r);var f=e.createTokenRange(e.skipTrivia(i,r.members.end),19),g=u.getInternalName(r),m=u.createPartiallyEmittedExpression(g);e.setTextRangeEnd(m,f.end),e.setEmitFlags(m,1536);var y=u.createReturnStatement(m);e.setTextRangePos(y,f.pos),e.setEmitFlags(y,1920),c.push(y),e.insertStatementsAfterStandardPrologue(c,p());var h=u.createBlock(e.setTextRange(u.createNodeArray(c),r.members),!0);return e.setEmitFlags(h,1536),h}(r,o));e.setEmitFlags(c,65536&e.getEmitFlags(r)|524288);var f=u.createPartiallyEmittedExpression(c);e.setTextRangeEnd(f,r.end),e.setEmitFlags(f,1536);var g=u.createPartiallyEmittedExpression(f);e.setTextRangeEnd(g,e.skipTrivia(i,r.pos)),e.setEmitFlags(g,1536);var m=u.createParenthesizedExpression(u.createCallExpression(g,void 0,o?[e.visitNode(o.expression,T,e.isExpression)]:[]));return e.addSyntheticLeadingComment(m,3,"* @class "),m}function A(){return e.setEmitFlags(u.createThis(),4)}function F(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(u.createUniqueName("_super",48),u.createNull()),u.createFunctionApplyCall(u.createUniqueName("_super",48),A(),u.createIdentifier("arguments"))),A())}function P(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function w(t,r){if(!e.some(r.parameters,P))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=I(t,o,s,c)||n:c&&(O(t,o,s,c),n=!0))}return n}function I(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,T,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,T,e.isExpression))),1048576)),!0)}function O(t,r,n,i){i=e.visitNode(i,T,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 M(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,T,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function L(e,t){return!!(32768&a&&206!==t.kind)&&(R(e,t,u.createThis()),!0)}function R(t,r,n){we();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 B(t,r,n){if(16384&a){var i=void 0;switch(r.kind){case 206:return t;case 164:case 166:case 167:i=u.createVoidZero();break;case 165:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 248:case 205: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 j(t){return e.setTextRange(u.createEmptyStatement(),t)}function J(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=U(n,n,void 0,i),l=e.visitNode(n.name,T,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 K(t,r,n){var i=u.createExpressionStatement(z(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function z(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,T,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=U(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=U(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 U(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.hasSyntacticModifier(r,32)?b(16286,73):b(16286,65),d=e.visitParameterList(r.parameters,T,t),_=V(r);return 16384&a&&!i&&(248===r.kind||205===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 V(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,T,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,T,e.isHoistedVariableStatement)),o=w(l,t)||o,o=M(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,T),r=d.statements,e.addRange(l,e.visitNodes(d.statements,T,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(206===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,T,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()),B(c,t,!1),L(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 q(r,n){if(!n)switch(r.expression.kind){case 204:return u.updateParenthesizedExpression(r,q(r.expression,!1));case 213:return u.updateParenthesizedExpression(r,W(r.expression,!1))}return e.visitEachChild(r,T,t)}function W(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,T,t,0,n):e.visitEachChild(r,T,t)}function H(r){var n=r.name;return e.isBindingPattern(n)?G(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,T,t)}function G(r){var n,i=b(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,T,t,0,void 0,0!=(32&i)):e.visitEachChild(r,T,t),x(i,0,0),n}function Y(t){s.labels.set(e.idText(t.label),!0)}function X(t){s.labels.set(e.idText(t.label),!1)}function Q(r,n,i,o,c){var l=b(r,n),_=function(r,n,i,o){if(!ue(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.visitEachChild(r,T,t),n,s&&X);return s&&(s.allowedNonLabeledJumps=c),l}var _=function(t){var r;switch(t.kind){case 234:case 235:case 236:var n=t.initializer;n&&247===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=se(t),c=0,u=r.declarations;c<u.length;c++){he(t,u[c],i,a,o)}var l={loopParameters:i,loopOutParameters:a};s&&(s.argumentsName&&(l.argumentsName=s.argumentsName),s.thisName&&(l.thisName=s.thisName),s.hoistedLocalVariables&&(l.hoistedLocalVariables=s.hoistedLocalVariables));return l}(r),f=[],g=s;s=_;var m,y=se(r)?function(t,r){var n=u.createUniqueName("_loop_init"),i=0!=(262144&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8);i&&4&a&&(o|=262144);var s=[];s.push(u.createVariableStatement(void 0,t.initializer)),ge(r.loopOutParameters,2,1,s);var c=u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,i?u.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(u.createBlock(s,!0),T,e.isBlock)),o))]),2097152)),l=u.createVariableDeclarationList(e.map(r.loopOutParameters,pe));return{functionName:n,containsYield:i,functionDeclaration:c,part:l}}(r,_):void 0,h=le(r)?function(t,r,n){var i=u.createUniqueName("_loop");d();var o=e.visitNode(t.statement,T,e.isStatement,u.liftToBlock),s=p(),c=[];(ce(t)||function(t){return e.isForStatement(t)&&!!t.incrementor&&oe(t.incrementor)}(t))&&(r.conditionVariable=u.createUniqueName("inc"),t.incrementor?c.push(u.createIfStatement(r.conditionVariable,u.createExpressionStatement(e.visitNode(t.incrementor,T,e.isExpression)),u.createExpressionStatement(u.createAssignment(r.conditionVariable,u.createTrue())))):c.push(u.createIfStatement(u.createLogicalNot(r.conditionVariable),u.createExpressionStatement(u.createAssignment(r.conditionVariable,u.createTrue())))),ce(t)&&c.push(u.createIfStatement(u.createPrefixUnaryExpression(53,e.visitNode(t.condition,T,e.isExpression)),e.visitNode(u.createBreakStatement(),T,e.isStatement))));e.isBlock(o)?e.addRange(c,o.statements):c.push(o);ge(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var l=u.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(l,o);var _=0!=(262144&t.statement.transformFlags),f=0;r.containsLexicalThis&&(f|=8);_&&0!=(4&a)&&(f|=262144);var g=u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(i,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,_?u.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,l),f))]),2097152)),m=function(t,r,n,i){var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=u.createCallExpression(t,void 0,e.map(r.loopParameters,(function(e){return e.name}))),c=i?u.createYieldExpression(u.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(u.createExpressionStatement(c)),ge(r.loopOutParameters,1,0,a);else{var l=u.createUniqueName("state"),d=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(l,void 0,void 0,c)]));if(a.push(d),ge(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var _=void 0;n?(n.nonLocalJumps|=8,_=u.createReturnStatement(l)):_=u.createReturnStatement(u.createPropertyAccessExpression(l,"value")),a.push(u.createIfStatement(u.createTypeCheck(l,"object"),_))}if(2&r.nonLocalJumps&&a.push(u.createIfStatement(u.createStrictEquality(l,u.createStringLiteral("break")),u.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var p=[];ye(r.labeledNonLocalBreaks,!0,l,n,p),ye(r.labeledNonLocalContinues,!1,l,n,p),a.push(u.createSwitchStatement(l,u.createCaseBlock(p)))}}return a}(i,r,n,_);return{functionName:i,containsYield:_,functionDeclaration:g,part:m}}(r,_,g):void 0;s=g,y&&f.push(y.functionDeclaration);h&&f.push(h.functionDeclaration);(function(e,t,r){var n;t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(u.createVariableDeclaration(t.argumentsName,void 0,void 0,u.createIdentifier("arguments"))));t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(u.createVariableDeclaration(t.thisName,void 0,void 0,u.createIdentifier("this"))));if(t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(u.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,c=t.loopOutParameters;s<c.length;s++){var l=c[s];n.push(u.createVariableDeclaration(l.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(u.createVariableDeclaration(t.conditionVariable,void 0,void 0,u.createFalse())));n&&e.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(n)))})(f,_,g),y&&f.push((v=y.functionName,b=y.containsYield,x=u.createCallExpression(v,void 0,[]),D=b?u.createYieldExpression(u.createToken(41),e.setEmitFlags(x,8388608)):x,u.createExpressionStatement(D)));var v,b,x,D;if(h)if(o)m=o(r,n,h.part,i);else{var S=_e(r,y,u.createBlock(h.part,!0));m=u.restoreEnclosingLabel(S,n,s&&X)}else{var E=_e(r,y,e.visitNode(r.statement,T,e.isStatement,u.liftToBlock));m=u.restoreEnclosingLabel(E,n,s&&X)}return f.push(m),f}(i,o,l,c);return x(l,0,0),_}function $(e,t){return Q(0,1280,e,t)}function Z(e,t){return Q(5056,3328,e,t)}function ee(e,t){return Q(3008,5376,e,t)}function te(e,t){return Q(3008,5376,e,t,g.downlevelIteration?ae:ie)}function re(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Pe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,T,t,0,n),l=e.setTextRange(u.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(l,r.initializer),e.setSourceMapRange(l,e.createRange(c[0].pos,e.last(c).end)),a.push(u.createVariableStatement(void 0,l))}else a.push(e.setTextRange(u.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(s?s.name:u.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=u.createAssignment(o,n);e.isDestructuringAssignment(d)?a.push(u.createExpressionStatement(W(d,!1))):(e.setTextRangeEnd(d,o.end),a.push(e.setTextRange(u.createExpressionStatement(e.visitNode(d,T,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return ne(e.addRange(a,i));var _=e.visitNode(r.statement,T,e.isStatement,u.liftToBlock);return e.isBlock(_)?u.updateBlock(_,e.setTextRange(u.createNodeArray(e.concatenate(a,_.statements)),_.statements)):(a.push(_),ne(a))}function ne(t){return e.setEmitFlags(u.createBlock(u.createNodeArray(t),!0),432)}function ie(t,r,n){var i=e.visitNode(t.expression,T,e.isExpression),a=u.createLoopVariable(),o=e.isIdentifier(i)?u.getGeneratedNameForNode(i):u.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(a,void 0,void 0,u.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(u.createLessThan(a,u.createPropertyAccessExpression(o,"length")),t.expression),e.setTextRange(u.createPostfixIncrement(a),t.expression),re(t,u.createElementAccessExpression(o,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),u.restoreEnclosingLabel(c,r,s&&X)}function ae(t,r,n,i){var a=e.visitNode(t.expression,T,e.isExpression),o=e.isIdentifier(a)?u.getGeneratedNameForNode(a):u.createTempVariable(void 0),c=e.isIdentifier(a)?u.getGeneratedNameForNode(o):u.createTempVariable(void 0),d=u.createUniqueName("e"),_=u.getGeneratedNameForNode(d),p=u.createTempVariable(void 0),g=e.setTextRange(l().createValuesHelper(a),t.expression),m=u.createCallExpression(u.createPropertyAccessExpression(o,"next"),void 0,[]);f(d),f(p);var y=1024&i?u.inlineExpressions([u.createAssignment(d,u.createVoidZero()),g]):g,h=e.setEmitFlags(e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,y),t.expression),u.createVariableDeclaration(c,void 0,void 0,m)]),t.expression),2097152),u.createLogicalNot(u.createPropertyAccessExpression(c,"done")),u.createAssignment(c,m),re(t,u.createPropertyAccessExpression(c,"value"),n)),t),256);return u.createTryStatement(u.createBlock([u.restoreEnclosingLabel(h,r,s&&X)]),u.createCatchClause(u.createVariableDeclaration(_),e.setEmitFlags(u.createBlock([u.createExpressionStatement(u.createAssignment(d,u.createObjectLiteralExpression([u.createPropertyAssignment("error",_)])))]),1)),u.createBlock([u.createTryStatement(u.createBlock([e.setEmitFlags(u.createIfStatement(u.createLogicalAnd(u.createLogicalAnd(c,u.createLogicalNot(u.createPropertyAccessExpression(c,"done"))),u.createAssignment(p,u.createPropertyAccessExpression(o,"return"))),u.createExpressionStatement(u.createFunctionCallCall(p,o,[]))),1)]),void 0,e.setEmitFlags(u.createBlock([e.setEmitFlags(u.createIfStatement(d,u.createThrowStatement(u.createPropertyAccessExpression(d,"error"))),1)]),1))]))}function oe(e){return 0!=(131072&m.getNodeCheckFlags(e))}function se(t){return e.isForStatement(t)&&!!t.initializer&&oe(t.initializer)}function ce(t){return e.isForStatement(t)&&!!t.condition&&oe(t.condition)}function ue(e){return le(e)||se(e)}function le(e){return 0!=(65536&m.getNodeCheckFlags(e))}function de(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(78===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function _e(t,r,n){switch(t.kind){case 234:return function(t,r,n){var i=t.condition&&oe(t.condition),a=i||t.incrementor&&oe(t.incrementor);return u.updateForStatement(t,e.visitNode(r?r.part:t.initializer,T,e.isForInitializer),e.visitNode(i?void 0:t.condition,T,e.isExpression),e.visitNode(a?void 0:t.incrementor,T,e.isExpression),n)}(t,r,n);case 235:return function(t,r){return u.updateForInStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r)}(t,n);case 236:return function(t,r){return u.updateForOfStatement(t,void 0,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),r)}(t,n);case 232:return function(t,r){return u.updateDoStatement(t,r,e.visitNode(t.expression,T,e.isExpression))}(t,n);case 233:return function(t,r){return u.updateWhileStatement(t,e.visitNode(t.expression,T,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function pe(e){return u.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function fe(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return u.createBinaryExpression(n,62,r)}function ge(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(u.createExpressionStatement(fe(o,r)))}}function me(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function ye(e,t,r,n,i){e&&e.forEach((function(e,a){var o=[];if(!n||n.labels&&n.labels.get(a)){var s=u.createIdentifier(a);o.push(t?u.createBreakStatement(s):u.createContinueStatement(s))}else me(n,t,a,e),o.push(u.createReturnStatement(r));i.push(u.createCaseClause(u.createStringLiteral(e),o))}))}function he(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];e.isOmittedExpression(l)||he(t,l,n,i,a)}else{n.push(u.createParameterDeclaration(void 0,void 0,void 0,o));var d=m.getNodeCheckFlags(r);if(4194304&d||a){var _=u.createUniqueName("out_"+e.idText(o)),p=0;4194304&d&&(p|=1),e.isForStatement(t)&&t.initializer&&m.isBindingCapturedByNode(t.initializer,r)&&(p|=2),i.push({flags:p,originalName:o,outParamName:_})}}}function ve(t,r,n){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,T,e.isPropertyName)),e.visitNode(t.initializer,T,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function be(t,r,n){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,T,e.isPropertyName)),u.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function xe(t,r,n,i){var a=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,T,e.isPropertyName)),U(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function De(r,n){if(8192&r.transformFlags||105===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=u.createCallBinding(r.expression,f),a=i.target,o=i.thisArg;105===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=8192&r.transformFlags?u.createFunctionApplyCall(e.visitNode(a,E,e.isExpression),105===r.expression.kind?o:e.visitNode(o,T,e.isExpression),Se(r.arguments,!1,!1,!1)):e.setTextRange(u.createFunctionCallCall(e.visitNode(a,E,e.isExpression),105===r.expression.kind?o:e.visitNode(o,T,e.isExpression),e.visitNodes(r.arguments,T,e.isExpression)),r),105===r.expression.kind){var c=u.createLogicalOr(s,A());s=n?u.createAssignment(u.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,T,t)}function Se(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,Ce,(function(e,t,r,o){return t(e,n,i&&o===a)})));if(g.downlevelIteration){if(1===o.length)if(Ee(s=o[0],"___spread"))return o[0];return l().createSpreadHelper(o)}if(1===o.length){var s=o[0];if(!r||function(t){return e.isArrayLiteralExpression(t)&&e.every(t.elements,Te)}(s)||Ee(s,"___spreadArrays"))return o[0]}return l().createSpreadArraysHelper(o)}function Te(t){return!e.isOmittedExpression(t)}function Ee(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&4096&e.getEmitFlags(t.expression)&&t.expression.escapedText===r}function Ce(t){return e.isSpreadElement(t)?ke:Ne}function ke(t){return e.map(t,Ae)}function Ne(t,r,n){return u.createArrayLiteralExpression(e.visitNodes(u.createNodeArray(t,n),T,e.isExpression),r)}function Ae(t){return e.visitNode(t.expression,T,e.isExpression)}function Fe(e){return 8&a&&!e?u.createPropertyAccessExpression(u.createUniqueName("_super",48),"prototype"):u.createUniqueName("_super",48)}function Pe(){0==(2&c)&&(c|=2,t.enableSubstitution(78))}function we(){0==(1&c)&&(c|=1,t.enableSubstitution(107),t.enableEmitNotification(165),t.enableEmitNotification(164),t.enableEmitNotification(166),t.enableEmitNotification(167),t.enableEmitNotification(206),t.enableEmitNotification(205),t.enableEmitNotification(248))}function Ie(t,r){return e.hasSyntacticModifier(r,32)?u.getInternalName(t):u.createPropertyAccessExpression(u.getInternalName(t),"prototype")}}}(u||(u={})),function(e){e.transformES5=function(t){var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 272:case 273:case 271:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(272),t.enableEmitNotification(273),t.enableEmitNotification(271),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){if(r.id&&n&&n[r.id])return o(t,r);if(r=o(t,r),e.isPropertyAccessExpression(r))return function(t){if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);if(r)return e.setTextRange(i.createElementAccessExpression(t.expression,r),t);return t}(r);if(e.isPropertyAssignment(r))return function(t){var r=e.isIdentifier(t.name)&&s(t.name);if(r)return i.updatePropertyAssignment(t,r,t.initializer);return t}(r);return r},t.enableSubstitution(198),t.enableSubstitution(285),e.chainBundle(t,(function(e){return e}));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=80&&r<=115)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(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,h=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,r){if(r=D(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,E,C,k,N,A,F,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 232:case 233:return function(r){return o?(ae(),r=e.visitEachChild(r,B,t),se(),r):e.visitEachChild(r,B,t)}(r);case 241:return function(r){o&&te({kind:2,isScript:!0,breakLabel:-1});r=e.visitEachChild(r,B,t),o&&ce();return r}(r);case 242:return function(r){o&&te({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1});r=e.visitEachChild(r,B,t),o&&ue();return r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 248:return J(t);case 205: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 248:return J(r);case 205:return K(r);case 166:case 167: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 229:return function(t){if(262144&t.transformFlags)return void H(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];h(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0===a.length)return;return e.setSourceMapRange(p.createExpressionStatement(p.inlineExpressions(e.map(a,G))),t)}(r);case 234:return function(r){o&&ae();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];h(s.name)}var c=e.getInitializedVariables(n);r=p.updateForStatement(r,c.length>0?p.inlineExpressions(e.map(c,G)):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&&se();return r}(r);case 235:return function(r){o&&ae();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];h(s.name)}r=p.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,B,e.isExpression),e.visitNode(r.statement,B,e.isStatement,p.liftToBlock))}else r=e.visitEachChild(r,B,t);o&&se();return r}(r);case 238:return function(r){if(o){var n=fe(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,B,t)}(r);case 237:return function(r){if(o){var n=ge(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,B,t)}(r);case 239:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[ye(2),r]:[ye(2)])),n);var r,n}(r);default:return 262144&r.transformFlags?function(r){switch(r.kind){case 213:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(Y(r.right))return e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=Z(),n=$();xe(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Te(r,n,t.left):Se(r,n,t.left);return xe(n,e.visitNode(t.right,B,e.isExpression),t.right),ee(r),n}(r):27===r.operatorToken.kind?function(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)):(Y(t)&&r.length>0&&(Ee(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}(r):p.updateBinaryExpression(r,Q(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(Y(i)){var a=void 0;switch(n.kind){case 198:a=p.updatePropertyAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 199:a=p.updateElementAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Q(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(Q(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 214:return function(r){if(Y(r.whenTrue)||Y(r.whenFalse)){var n=Z(),i=Z(),a=$();return Te(n,e.visitNode(r.condition,B,e.isExpression),r.condition),xe(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),De(i),ee(n),xe(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),ee(i),a}return e.visitEachChild(r,B,t)}(r);case 216:return function(t){var r=Z(),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 ee(r),function(t){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[]),t)}(t)}(r);case 196:return function(e){return U(e.elements,void 0,void 0,e.multiLine)}(r);case 197:return function(t){var r=t.properties,n=t.multiLine,i=X(r),a=$();xe(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){Y(i)&&r.length>0&&(be(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 199:return function(r){if(Y(r.argumentExpression))return p.updateElementAccessExpression(r,Q(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression));return e.visitEachChild(r,B,t)}(r);case 200:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,Y)){var n=p.createCallBinding(r.expression,h,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isLeftHandSideExpression)),a,U(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 201:return function(r){if(e.forEach(r.arguments,Y)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),h),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isExpression)),a,U(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,h=u,v=l,b=d,x=_,D=M,k=S,N=T,A=E,F=C;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,E=void 0,C=p.createTempVariable(void 0),g();var P=p.copyPrologue(t.statements,r,!1,B);V(t.statements,P);var w=Ce();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(w)),a=n,o=i,s=f,c=y,u=h,l=v,d=b,_=x,M=D,S=k,T=N,E=A,C=F,e.setTextRange(p.createBlock(r,t.multiLine),t)}function U(t,n,i,a){var o,s=X(t);if(s>0){o=$();var c=e.visitNodes(t,B,e.isExpression,0,s);xe(o,p.createArrayLiteralExpression(n?r([n],c):c)),n=void 0}var u=e.reduceLeft(t,(function(t,i){if(Y(i)&&t.length>0){var s=void 0!==o;o||(o=$()),xe(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 V(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)W(e[n])}function q(t){e.isBlock(t)?V(t.statements):W(t)}function W(r){var a=o;o||(o=Y(r)),function(r){switch(r.kind){case 227:return function(t){Y(t)?V(t.statements):be(e.visitNode(t,B,e.isStatement))}(r);case 230:return function(t){be(e.visitNode(t,B,e.isStatement))}(r);case 231:return function(t){if(Y(t))if(Y(t.thenStatement)||Y(t.elseStatement)){var r=Z(),n=t.elseStatement?Z():void 0;Te(t.elseStatement?n:r,e.visitNode(t.expression,B,e.isExpression),t.expression),q(t.thenStatement),t.elseStatement&&(De(r),ee(n),q(t.elseStatement)),ee(r)}else be(e.visitNode(t,B,e.isStatement));else be(e.visitNode(t,B,e.isStatement))}(r);case 232:return function(t){if(Y(t)){var r=Z(),n=Z();oe(r),ee(n),q(t.statement),ee(r),Se(n,e.visitNode(t.expression,B,e.isExpression)),se()}else be(e.visitNode(t,B,e.isStatement))}(r);case 233:return function(t){if(Y(t)){var r=Z(),n=oe(r);ee(r),Te(n,e.visitNode(t.expression,B,e.isExpression)),q(t.statement),De(r),se()}else be(e.visitNode(t,B,e.isStatement))}(r);case 234:return function(t){if(Y(t)){var r=Z(),n=Z(),i=oe(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?H(a):be(e.setTextRange(p.createExpressionStatement(e.visitNode(a,B,e.isExpression)),a))}ee(r),t.condition&&Te(i,e.visitNode(t.condition,B,e.isExpression)),q(t.statement),ee(n),t.incrementor&&be(e.setTextRange(p.createExpressionStatement(e.visitNode(t.incrementor,B,e.isExpression)),t.incrementor)),De(r),se()}else be(e.visitNode(t,B,e.isStatement))}(r);case 235:return function(t){if(Y(t)){var r=$(),n=$(),i=p.createLoopVariable(),a=t.initializer;h(i),xe(r,p.createArrayLiteralExpression()),be(p.createForInStatement(n,e.visitNode(t.expression,B,e.isExpression),p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(r,"push"),void 0,[n])))),xe(i,p.createNumericLiteral(0));var o=Z(),s=Z(),c=oe(s);ee(o),Te(c,p.createLessThan(i,p.createPropertyAccessExpression(r,"length")));var u=void 0;if(e.isVariableDeclarationList(a)){for(var l=0,d=a.declarations;l<d.length;l++){var _=d[l];h(_.name)}u=p.cloneNode(a.declarations[0].name)}else u=e.visitNode(a,B,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));xe(u,p.createElementAccessExpression(r,i)),q(t.statement),ee(s),be(p.createExpressionStatement(p.createPostfixIncrement(i))),De(o),se()}else be(e.visitNode(t,B,e.isStatement))}(r);case 237:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?De(r,t):be(t)}(r);case 238:return function(t){var r=fe(t.label?e.idText(t.label):void 0);r>0?De(r,t):be(t)}(r);case 239:return function(t){r=e.visitNode(t.expression,B,e.isExpression),n=t,Ee(8,[r],n);var r,n}(r);case 240:return function(t){Y(t)?(r=Q(e.visitNode(t.expression,B,e.isExpression)),n=Z(),i=Z(),ee(n),te({kind:1,expression:r,startLabel:n,endLabel:i}),q(t.statement),e.Debug.assert(1===ie()),ee(re().endLabel)):be(e.visitNode(t,B,e.isStatement));var r,n,i}(r);case 241:return function(t){if(Y(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(te({kind:2,isScript:!1,breakLabel:f=Z()}),f),a=Q(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var u=r.clauses[c];o.push(Z()),282===u.kind&&-1===s&&(s=c)}for(var l=0,d=[];l<n;){var _=0;for(c=l;c<n;c++){if(281===(u=r.clauses[c]).kind){if(Y(u.expression)&&d.length>0)break;d.push(p.createCaseClause(e.visitNode(u.expression,B,e.isExpression),[he(o[c],u.expression)]))}else _++}d.length&&(be(p.createSwitchStatement(a,p.createCaseBlock(d))),l+=d.length,d=[]),_>0&&(l+=_,_=0)}De(s>=0?o[s]:i);for(c=0;c<n;c++)ee(o[c]),V(r.clauses[c].statements);ce()}else be(e.visitNode(t,B,e.isStatement));var f}(r);case 242:return function(t){Y(t)?(r=e.idText(t.label),n=Z(),te({kind:4,isScript:!1,labelText:r,breakLabel:n}),q(t.statement),ue()):be(e.visitNode(t,B,e.isStatement));var r,n}(r);case 243:return function(t){var r;n=e.visitNode(null!==(r=t.expression)&&void 0!==r?r:p.createVoidZero(),B,e.isExpression),i=t,Ee(9,[n],i);var n,i}(r);case 244:return function(r){Y(r)?(a=Z(),o=Z(),ee(a),te({kind:0,state:0,startLabel:a,endLabel:o}),ve(),q(r.tryBlock),r.catchClause&&(!function(r){var a;if(e.Debug.assert(0===ie()),e.isGeneratedIdentifier(r.name))a=r.name,h(r.name);else{var o=e.idText(r.name);a=$(o),n||(n=new e.Map,i=[],t.enableSubstitution(78)),n.set(o,!0),i[e.getOriginalNodeId(r)]=a}var s=ne();e.Debug.assert(s.state<1),De(s.endLabel);var c=Z();ee(c),s.state=1,s.catchVariable=a,s.catchLabel=c,xe(a,p.createCallExpression(p.createPropertyAccessExpression(C,"sent"),void 0,[])),ve()}(r.catchClause.variableDeclaration),q(r.catchClause.block)),r.finallyBlock&&(!function(){e.Debug.assert(0===ie());var t=ne();e.Debug.assert(t.state<2),De(t.endLabel);var r=Z();ee(r),t.state=2,t.finallyLabel=r}(),q(r.finallyBlock)),function(){e.Debug.assert(0===ie());var t=re();t.state<2?De(t.endLabel):Ee(10);ee(t.endLabel),ve(),t.state=3}()):be(e.visitEachChild(r,B,t));var a,o}(r);default:be(e.visitNode(r,B,e.isStatement))}}(r),o=a}function H(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=p.cloneNode(i.name);e.setCommentRange(a,i.name),h(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var l=c;l<s;l++){if(Y((i=o[l]).initializer)&&u.length>0)break;u.push(G(i))}u.length&&(be(p.createExpressionStatement(p.inlineExpressions(u))),c+=u.length,u=[])}}function G(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function Y(e){return!!e&&0!=(262144&e.transformFlags)}function X(e){for(var t=e.length,r=0;r<t;r++)if(Y(e[r]))return r;return-1}function Q(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=p.createTempVariable(h);return xe(r,t,t),r}function $(e){var t=e?p.createUniqueName(e):p.createTempVariable(void 0);return h(t),t}function Z(){d||(d=[]);var e=M;return M++,d[e]=-1,e}function ee(t){e.Debug.assert(void 0!==d,"No labels were defined."),d[t]=S?S.length:0}function te(e){s||(s=[],u=[],c=[],l=[]);var t=u.length;return u[t]=0,c[t]=S?S.length:0,s[t]=e,l.push(e),t}function re(){var t=ne();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=u.length;return u[r]=1,c[r]=S?S.length:0,s[r]=t,l.pop(),t}function ne(){return e.lastOrUndefined(l)}function ie(){var e=ne();return e&&e.kind}function ae(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function oe(e){var t=Z();return te({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function se(){e.Debug.assert(3===ie());var t=re(),r=t.breakLabel;t.isScript||ee(r)}function ce(){e.Debug.assert(2===ie());var t=re(),r=t.breakLabel;t.isScript||ee(r)}function ue(){e.Debug.assert(4===ie());var t=re();t.isScript||ee(t.breakLabel)}function le(e){return 2===e.kind||3===e.kind}function de(e){return 4===e.kind}function _e(e){return 3===e.kind}function pe(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!de(n))break;if(n.labelText===e)return!0}return!1}function fe(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(de(r=l[t])&&r.labelText===e)return r.breakLabel;if(le(r)&&pe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(le(r=l[t]))return r.breakLabel}return 0}function ge(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(_e(r=l[t])&&pe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(_e(r=l[t]))return r.continueLabel}return 0}function me(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 ye(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([ye(3),me(t)])),r)}function ve(){Ee(0)}function be(e){e?Ee(1,[e]):ve()}function xe(e,t,r){Ee(2,[e,t],r)}function De(e,t){Ee(3,[e],t)}function Se(e,t,r){Ee(4,[e,t],r)}function Te(e,t,r){Ee(5,[e,t],r)}function Ee(e,t,r){void 0===S&&(S=[],T=[],E=[]),void 0===d&&ee(Z());var n=S.length;S[n]=e,T[n]=t,E[n]=r}function Ce(){L=0,R=0,k=void 0,N=!1,A=!1,F=void 0,P=void 0,w=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t<S.length;t++)Fe(t);ke(S.length)}else ke(0);if(F){var r=p.createPropertyAccessExpression(C,"label"),n=p.createSwitchStatement(r,p.createCaseBlock(F));return[e.startOnNewLine(n)]}if(P)return P;return[]}();return f().createGeneratorHelper(e.setEmitFlags(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,C)],void 0,p.createBlock(t,t.length>0)),524288))}function ke(e){(function(e){if(!A)return!0;if(!d||!_)return!1;for(var t=0;t<d.length;t++)if(d[t]===e&&_[t])return!0;return!1})(e)&&(Ae(e),O=void 0,we(void 0,void 0)),P&&F&&Ne(!1),function(){if(void 0!==_&&void 0!==k)for(var e=0;e<k.length;e++){var t=k[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=_[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++){s[o].text=String(e)}}}}()}function Ne(e){if(F||(F=[]),P){if(O)for(var t=O.length-1;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(C,"trys"),"push"),void 0,[p.createArrayLiteralExpression([me(n),me(i),me(a),me(o)])]))),I=void 0}e&&P.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(C,"label"),p.createNumericLiteral(R+1))))}F.push(p.createCaseClause(p.createNumericLiteral(R),P||[])),P=void 0}function Ae(e){if(d)for(var t=0;t<d.length;t++)d[t]===e&&(P&&(Ne(!N),N=!1,A=!1,R++),void 0===k&&(k=[]),void 0===k[R]?k[R]=[t]:k[R].push(t))}function Fe(t){if(Ae(t),function(e){if(s)for(;L<u.length&&c[L]<=e;L++){var t=s[L],r=u[L];switch(t.kind){case 0:0===r?(w||(w=[]),P||(P=[]),w.push(I),I=t):1===r&&(I=w.pop());break;case 1:0===r?(O||(O=[]),O.push(t)):1===r&&O.pop()}}}(t),!N){N=!1,A=!1;var r=S[t];if(0!==r){if(10===r)return N=!0,void Pe(p.createReturnStatement(p.createArrayLiteralExpression([ye(7)])));var n=T[t];if(1===r)return Pe(n[0]);var i,a,o,l=E[t];switch(r){case 2:return i=n[0],a=n[1],o=l,void Pe(e.setTextRange(p.createExpressionStatement(p.createAssignment(i,a)),o));case 3:return function(t,r){N=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),me(t)])),r),384))}(n[0],l);case 4:return function(t,r,n){Pe(e.setEmitFlags(p.createIfStatement(r,e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),me(t)])),n),384)),1))}(n[0],n[1],l);case 5:return function(t,r,n){Pe(e.setEmitFlags(p.createIfStatement(p.createLogicalNot(r),e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),me(t)])),n),384)),1))}(n[0],n[1],l);case 6:return function(t,r){N=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(4),t]:[ye(4)])),r),384))}(n[0],l);case 7:return function(t,r){N=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(5),t])),r),384))}(n[0],l);case 8:return we(n[0],l);case 9:return function(t,r){N=!0,A=!0,Pe(e.setTextRange(p.createThrowStatement(t),r))}(n[0],l)}}}}function Pe(e){e&&(P?P.push(e):P=[e])}function we(t,r){N=!0,A=!0,Pe(e.setEmitFlags(e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r),384))}}}(u||(u={})),function(e){e.transformModule=function(n){var i=n.factory,a=n.getEmitHelperFactory,o=n.startLexicalEnvironment,s=n.endLexicalEnvironment,c=n.hoistVariableDeclaration,u=n.getCompilerOptions(),l=n.getEmitResolver(),d=n.getEmitHost(),_=e.getEmitScriptTarget(u),p=e.getEmitModuleKind(u),f=n.onSubstituteNode,g=n.onEmitNode;n.onSubstituteNode=function(t,r){if((r=f(t,r)).id&&h[r.id])return r;if(1===t)return function(t){switch(t.kind){case 78:return Y(t);case 213:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=X(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];h[e.getNodeId(n)]=!0,n=H(o,n,t)}return n}}return t}(t);case 212:case 211:return function(t){if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=X(t.operand);if(r){for(var n=212===t.kind?e.setTextRange(i.createBinaryExpression(t.operand,i.createToken(45===t.operator?63:64),i.createNumericLiteral(1)),t):t,a=0,o=r;a<o.length;a++){var s=o[a];h[e.getNodeId(n)]=!0,n=H(s,n)}return n}}return t}(t)}return t}(r);if(e.isShorthandPropertyAssignment(r))return function(t){var r=t.name,n=Y(r);if(n!==r){if(t.objectAssignmentInitializer){var a=i.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(i.createPropertyAssignment(r,a),t)}return e.setTextRange(i.createPropertyAssignment(r,n),t)}return t}(r);return r},n.onEmitNode=function(t,r,n){294===r.kind?(m=r,y=b[e.getOriginalNodeId(m)],h=[],g(t,r,n),m=void 0,y=void 0,h=void 0):g(t,r,n)},n.enableSubstitution(78),n.enableSubstitution(213),n.enableSubstitution(211),n.enableSubstitution(212),n.enableSubstitution(286),n.enableEmitNotification(294);var m,y,h,v,b=[],x=[];return e.chainBundle(n,(function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,u)||2097152&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(u)&&e.outFile(u)))return t;m=t,y=e.collectExternalModuleInfo(n,t,l,u),b[e.getOriginalNodeId(t)]=y;var r=function(t){switch(t){case e.ModuleKind.AMD:return T;case e.ModuleKind.UMD:return E;default:return S}}(p)(t);return m=void 0,y=void 0,v=!1,r}));function D(){return!(y.exportEquals||!e.isExternalModule(m))}function S(t){o();var r=[],a=e.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&e.isExternalModule(m),c=i.copyPrologue(t.statements,r,a&&!e.isJsonSourceFile(t),F);D()&&e.append(r,W()),e.length(y.exportedNames)&&e.append(r,i.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(t,r){return i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.createIdentifier(e.idText(r))),t)}),i.createVoidZero()))),e.append(r,e.visitNode(y.externalHelpersImportDeclaration,F,e.isStatement)),e.addRange(r,e.visitNodes(t.statements,F,e.isStatement,c)),A(r,!1),e.insertStatementsAfterStandardPrologue(r,s());var l=i.updateSourceFile(t,e.setTextRange(i.createNodeArray(r),t.statements));return e.addEmitHelpers(l,n.readEmitHelpers()),l}function T(t){var a=i.createIdentifier("define"),o=e.tryGetModuleNameFromFile(i,t,d,u),s=e.isJsonSourceFile(t)&&t,c=C(t,!0),l=c.aliasedModuleNames,_=c.unaliasedModuleNames,p=c.importAliasNames,f=i.updateSourceFile(t,e.setTextRange(i.createNodeArray([i.createExpressionStatement(i.createCallExpression(a,void 0,r(o?[o]:[],[i.createArrayLiteralExpression(s?e.emptyArray:r([i.createStringLiteral("require"),i.createStringLiteral("exports")],l,_)),s?s.statements.length?s.statements[0].expression:i.createObjectLiteralExpression():i.createFunctionExpression(void 0,void 0,void 0,void 0,r([i.createParameterDeclaration(void 0,void 0,void 0,"require"),i.createParameterDeclaration(void 0,void 0,void 0,"exports")],p),void 0,N(t))])))]),t.statements));return e.addEmitHelpers(f,n.readEmitHelpers()),f}function E(t){var a=C(t,!1),o=a.aliasedModuleNames,s=a.unaliasedModuleNames,c=a.importAliasNames,l=e.tryGetModuleNameFromFile(i,t,d,u),_=i.createFunctionExpression(void 0,void 0,void 0,void 0,[i.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(i.createBlock([i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("module"),"object"),i.createTypeCheck(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),"object")),i.createBlock([i.createVariableStatement(void 0,[i.createVariableDeclaration("v",void 0,void 0,i.createCallExpression(i.createIdentifier("factory"),void 0,[i.createIdentifier("require"),i.createIdentifier("exports")]))]),e.setEmitFlags(i.createIfStatement(i.createStrictInequality(i.createIdentifier("v"),i.createIdentifier("undefined")),i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),i.createIdentifier("v")))),1)]),i.createIfStatement(i.createLogicalAnd(i.createTypeCheck(i.createIdentifier("define"),"function"),i.createPropertyAccessExpression(i.createIdentifier("define"),"amd")),i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("define"),void 0,r(l?[l]:[],[i.createArrayLiteralExpression(r([i.createStringLiteral("require"),i.createStringLiteral("exports")],o,s)),i.createIdentifier("factory")])))])))],!0),void 0)),p=i.updateSourceFile(t,e.setTextRange(i.createNodeArray([i.createExpressionStatement(i.createCallExpression(_,void 0,[i.createFunctionExpression(void 0,void 0,void 0,void 0,r([i.createParameterDeclaration(void 0,void 0,void 0,"require"),i.createParameterDeclaration(void 0,void 0,void 0,"exports")],c),void 0,N(t))]))]),t.statements));return e.addEmitHelpers(p,n.readEmitHelpers()),p}function C(t,r){for(var n=[],a=[],o=[],s=0,c=t.amdDependencies;s<c.length;s++){var _=c[s];_.name?(n.push(i.createStringLiteral(_.path)),o.push(i.createParameterDeclaration(void 0,void 0,void 0,_.name))):a.push(i.createStringLiteral(_.path))}for(var p=0,f=y.externalImports;p<f.length;p++){var g=f[p],h=e.getExternalModuleNameLiteral(i,g,m,d,l,u),v=e.getLocalNameForExternalImport(i,g,m);h&&(r&&v?(e.setEmitFlags(v,4),n.push(h),o.push(i.createParameterDeclaration(void 0,void 0,void 0,v))):a.push(h))}return{aliasedModuleNames:n,unaliasedModuleNames:a,importAliasNames:o}}function k(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(i,t,m,d,l,u)){var r=e.getLocalNameForExternalImport(i,t,m),n=O(t,r);if(n!==r)return i.createExpressionStatement(i.createAssignment(r,n))}}function N(r){o();var n=[],a=i.copyPrologue(r.statements,n,!u.noImplicitUseStrict,F);D()&&e.append(n,W()),e.length(y.exportedNames)&&e.append(n,i.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(t,r){return i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.createIdentifier(e.idText(r))),t)}),i.createVoidZero()))),e.append(n,e.visitNode(y.externalHelpersImportDeclaration,F,e.isStatement)),p===e.ModuleKind.AMD&&e.addRange(n,e.mapDefined(y.externalImports,k)),e.addRange(n,e.visitNodes(r.statements,F,e.isStatement,a)),A(n,!0),e.insertStatementsAfterStandardPrologue(n,s());var c=i.createBlock(n,!0);return v&&e.addEmitHelper(c,t),c}function A(t,r){if(y.exportEquals){var n=e.visitNode(y.exportEquals.expression,P);if(n)if(r){var a=i.createReturnStatement(n);e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else{a=i.createExpressionStatement(i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("module"),"exports"),n));e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}}function F(t){switch(t.kind){case 258:return function(t){var r,n=e.getNamespaceDeclarationNode(t);if(p!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(i.createExpressionStatement(M(t)),t),t);var a=[];n&&!e.isDefaultImport(t)?a.push(i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,O(t,M(t)))):(a.push(i.createVariableDeclaration(i.getGeneratedNameForNode(t),void 0,void 0,O(t,M(t)))),n&&e.isDefaultImport(t)&&a.push(i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,i.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList(a,_>=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(B(t)){var o=e.getOriginalNodeId(t);x[o]=j(x[o],t)}else r=j(r,t);return e.singleOrMany(r)}(t);case 257: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(H(t.name,M(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,M(t))],_>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(H(i.getExportName(t),i.getLocalName(t))),t),t)));if(B(t)){var n=e.getOriginalNodeId(t);x[n]=J(x[n],t)}else r=J(r,t);return e.singleOrMany(r)}(t);case 264: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,M(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var c=s[o];if(0===_)n.push(e.setOriginalNode(e.setTextRange(i.createExpressionStatement(a().createCreateBindingHelper(r,i.createStringLiteralFromNode(c.propertyName||c.name),c.propertyName?i.createStringLiteralFromNode(c.name):void 0)),c),c));else{var l=!(!u.esModuleInterop||67108864&e.getEmitFlags(t)||"default"!==e.idText(c.propertyName||c.name)),d=i.createPropertyAccessExpression(l?a().createImportDefaultHelper(r):r,c.propertyName||c.name);n.push(e.setOriginalNode(e.setTextRange(i.createExpressionStatement(H(i.getExportName(c),d,void 0,!0)),c),c))}}return e.singleOrMany(n)}return t.exportClause?((n=[]).push(e.setOriginalNode(e.setTextRange(i.createExpressionStatement(H(i.cloneNode(t.exportClause.name),function(t,r){if(!u.esModuleInterop||67108864&e.getEmitFlags(t))return r;if(e.getExportNeedsImportStarHelper(t))return a().createImportStarHelper(r);return r}(t,p!==e.ModuleKind.AMD?M(t):i.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(n)):e.setOriginalNode(e.setTextRange(i.createExpressionStatement(a().createExportStarHelper(p!==e.ModuleKind.AMD?M(t):r)),t),t)}(t);case 263:return function(t){if(t.isExportEquals)return;var r,n=t.original;if(n&&B(n)){var a=e.getOriginalNodeId(t);x[a]=q(x[a],i.createIdentifier("default"),e.visitNode(t.expression,P),t,!0)}else r=q(r,i.createIdentifier("default"),e.visitNode(t.expression,P),t,!0);return e.singleOrMany(r)}(t);case 229:return function(t){var r,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=0,u=t.declarationList.declarations;c<u.length;c++){var l=u[c];e.isIdentifier(l.name)&&e.isLocalName(l.name)?(s||(s=e.visitNodes(t.modifiers,G,e.isModifier)),a=e.append(a,l)):l.initializer&&(o=e.append(o,R(l)))}a&&(r=e.append(r,i.updateVariableStatement(t,s,i.updateVariableDeclarationList(t.declarationList,a)))),o&&(r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(i.inlineExpressions(o)),t),t)))}else r=e.append(r,e.visitEachChild(t,P,n));if(B(t)){var d=e.getOriginalNodeId(t);x[d]=K(x[d],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 248:return function(t){var r;r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(i.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,i.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,P),void 0,e.visitEachChild(t.body,P,n)),t),t)):e.append(r,e.visitEachChild(t,P,n));if(B(t)){var a=e.getOriginalNodeId(t);x[a]=U(x[a],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 249:return function(t){var r;r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(i.createClassDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),i.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,P),e.visitNodes(t.members,P)),t),t)):e.append(r,e.visitEachChild(t,P,n));if(B(t)){var a=e.getOriginalNodeId(t);x[a]=U(x[a],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 333:return function(t){if(B(t)&&229===t.original.kind){var r=e.getOriginalNodeId(t);x[r]=K(x[r],t.original)}return t}(t);case 334:return function(t){var r=e.getOriginalNodeId(t),n=x[r];if(n)return delete x[r],e.append(n,t);return t}(t);default:return e.visitEachChild(t,P,n)}}function P(t){return 2097152&t.transformFlags||1024&t.transformFlags?e.isImportCall(t)?function(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),P),n=!!(4096&t.transformFlags);switch(u.module){case e.ModuleKind.AMD:return w(r,n);case e.ModuleKind.UMD:return function(t,r){if(v=!0,e.isSimpleCopiableExpression(t)){var n=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?i.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(i.cloneNode(t),t),1536);return i.createConditionalExpression(i.createIdentifier("__syncRequire"),void 0,I(t,r),void 0,w(n,r))}var a=i.createTempVariable(c);return i.createComma(i.createAssignment(a,t),i.createConditionalExpression(i.createIdentifier("__syncRequire"),void 0,I(a,r),void 0,w(a,r)))}(null!=r?r:i.createVoidZero(),n);case e.ModuleKind.CommonJS:default:return I(r,n)}}(t):e.isDestructuringAssignment(t)?function(t){if(function t(r){if(e.isObjectLiteralExpression(r))for(var n=0,i=r.properties;n<i.length;n++){switch((s=i[n]).kind){case 285:if(t(s.initializer))return!0;break;case 286:if(t(s.name))return!0;break;case 287:if(t(s.expression))return!0;break;case 164:case 166:case 167:return!1;default:e.Debug.assertNever(s,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(r))for(var a=0,o=r.elements;a<o.length;a++){var s=o[a];if(e.isSpreadElement(s)){if(t(s.expression))return!0}else if(t(s))return!0}else if(e.isIdentifier(r))return e.length(X(r))>(e.isExportName(r)?1:0);return!1}(t.left))return e.flattenDestructuringAssignment(t,P,n,0,!1,L);return e.visitEachChild(t,P,n)}(t):e.visitEachChild(t,P,n):t}function w(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 I(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 O(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function M(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 L(t,r,n){var a=X(t);if(a){for(var o=e.isExportName(t)?r:i.createAssignment(t,r),s=0,c=a;s<c.length;s++){var u=c[s];e.setEmitFlags(o,4),o=H(u,o,n)}return o}return i.createAssignment(t,r)}function R(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,P),void 0,n,0,!1,L):i.createAssignment(e.setTextRange(i.createPropertyAccessExpression(i.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,P):i.createVoidZero())}function B(t){return 0!=(4194304&e.getEmitFlags(t))}function j(e,t){if(y.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=V(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 260:e=V(e,n);break;case 261:for(var i=0,a=n.elements;i<a.length;i++){e=V(e,a[i],!0)}}return e}function J(e,t){return y.exportEquals?e:V(e,t)}function K(e,t){if(y.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){e=z(e,n[r])}return e}function z(t,r){if(y.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=z(t,a))}else e.isGeneratedIdentifier(r.name)||(t=V(t,r));return t}function U(t,r){if(y.exportEquals)return t;e.hasSyntacticModifier(r,1)&&(t=q(t,e.hasSyntacticModifier(r,512)?i.createIdentifier("default"):i.getDeclarationName(r),i.getLocalName(r),r));return r.name&&(t=V(t,r)),t}function V(t,r,n){var a=i.getDeclarationName(r),o=y.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];t=q(t,u.name,a,u.name,void 0,n)}return t}function q(t,r,n,a,o,s){return t=e.append(t,function(t,r,n,a,o){var s=e.setTextRange(i.createExpressionStatement(H(t,r,void 0,o)),n);e.startOnNewLine(s),a||e.setEmitFlags(s,1536);return s}(r,n,a,o,s))}function W(){var t;return t=0===_?i.createExpressionStatement(H(i.createIdentifier("__esModule"),i.createTrue())):i.createExpressionStatement(i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"),"defineProperty"),void 0,[i.createIdentifier("exports"),i.createStringLiteral("__esModule"),i.createObjectLiteralExpression([i.createPropertyAssignment("value",i.createTrue())])])),e.setEmitFlags(t,1048576),t}function H(t,r,n,a){return e.setTextRange(a&&0!==_?i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Object"),"defineProperty"),void 0,[i.createIdentifier("exports"),i.createStringLiteralFromNode(t),i.createObjectLiteralExpression([i.createPropertyAssignment("enumerable",i.createTrue()),i.createPropertyAssignment("get",i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(r)])))])]):i.createAssignment(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.cloneNode(t)),r),n)}function G(e){switch(e.kind){case 92:case 87:return}return e}function Y(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(m);return r?i.createPropertyAccessExpression(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=l.getReferencedExportContainer(t,e.isExportName(t));if(n&&294===n.kind)return e.setTextRange(i.createPropertyAccessExpression(i.createIdentifier("exports"),i.cloneNode(t)),t);var a=l.getReferencedImportDeclaration(t);if(a){if(e.isImportClause(a))return e.setTextRange(i.createPropertyAccessExpression(i.getGeneratedNameForNode(a.parent),i.createIdentifier("default")),t);if(e.isImportSpecifier(a)){var o=a.propertyName||a.name;return e.setTextRange(i.createPropertyAccessExpression(i.getGeneratedNameForNode(a.parent.parent.parent),i.cloneNode(o)),t)}}}return t}function X(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return y&&y.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(u||(u={})),function(e){e.transformSystemModule=function(t){var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),u=t.onSubstituteNode,l=t.onEmitNode;t.onSubstituteNode=function(t,n){if(function(e){return y&&e.id&&y[e.id]}(n=u(t,n)))return n;if(1===t)return function(t){switch(t.kind){case 78:return function(t){if(4096&e.getEmitFlags(t)){var n=e.getExternalHelpersModuleName(d);return n?r.createPropertyAccessExpression(n,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var i=s.getReferencedImportDeclaration(t);if(i){if(e.isImportClause(i))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(i.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(i))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(i.parent.parent.parent),r.cloneNode(i.propertyName||i.name)),t)}}return t}(t);case 213:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=H(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){n=K(a[i],G(n))}return n}}return t}(t);case 211:case 212:return function(t){if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var n=H(t.operand);if(n){for(var i=212===t.kind?e.setTextRange(r.createPrefixUnaryExpression(t.operator,t.operand),t):t,a=0,o=n;a<o.length;a++){i=K(o[a],G(i))}return 212===t.kind&&(i=45===t.operator?r.createSubtract(G(i),r.createNumericLiteral(1)):r.createAdd(G(i),r.createNumericLiteral(1))),i}}return t}(t);case 223:return function(t){if(e.isImportMeta(t))return r.createPropertyAccessExpression(f,r.createIdentifier("meta"));return t}(t)}return t}(n);if(4===t)return function(t){switch(t.kind){case 286:return function(t){var n=t.name;if(!e.isGeneratedIdentifier(n)&&!e.isLocalName(n)){var i=s.getReferencedImportDeclaration(n);if(i){if(e.isImportClause(i))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(n),r.createPropertyAccessExpression(r.getGeneratedNameForNode(i.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(i))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(n),r.createPropertyAccessExpression(r.getGeneratedNameForNode(i.parent.parent.parent),r.cloneNode(i.propertyName||i.name))),t)}}return t}(t)}return t}(n);return n},t.onEmitNode=function(t,r,n){if(294===r.kind){var i=e.getOriginalNodeId(r);d=r,_=h[i],p=b[i],y=x[i],f=D[i],y&&delete x[i],l(t,r,n),d=void 0,_=void 0,p=void 0,f=void 0,y=void 0}else l(t,r,n)},t.enableSubstitution(78),t.enableSubstitution(286),t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableSubstitution(223),t.enableEmitNotification(294);var d,_,p,f,g,m,y,h=[],v=[],b=[],x=[],D=[];return e.chainBundle(t,(function(a){if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||2097152&a.transformFlags))return a;var u=e.getOriginalNodeId(a);d=a,m=a,_=h[u]=e.collectExternalModuleInfo(t,a,s,o),p=r.createUniqueName("exports"),b[u]=p,f=D[u]=r.createUniqueName("context");var l=function(t){for(var n=new e.Map,i=[],a=0,u=t;a<u.length;a++){var l=u[a],_=e.getExternalModuleNameLiteral(r,l,d,c,s,o);if(_){var p=_.text,f=n.get(p);void 0!==f?i[f].externalImports.push(l):(n.set(p,i.length),i.push({name:_,externalImports:[l]}))}}return i}(_.externalImports),v=function(t,a){var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(d),u=r.copyPrologue(t.statements,s,c,E);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(_.externalHelpersImportDeclaration,E,e.isStatement);var l=e.visitNodes(t.statements,E,e.isStatement,u);e.addRange(s,g),e.insertStatementsAfterStandardPrologue(s,i());var p=function(e){if(!_.hasExportStarsToExportValues)return;if(!_.exportedNames&&0===_.exportSpecifiers.size){for(var t=!1,n=0,i=_.externalImports;n<i.length;n++){var a=i[n];if(264===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=S(void 0);return e.push(o),o.name}}var s=[];if(_.exportedNames)for(var c=0,u=_.exportedNames;c<u.length;c++){var l=u[c];"default"!==l.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(l),r.createTrue()))}var d=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(d,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var p=S(d);return e.push(p),p.name}(s),m=524288&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,y=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",T(p,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(m,void 0,void 0,void 0,[],void 0,r.createBlock(l,!0)))],!0);return s.push(r.createReturnStatement(y)),r.createBlock(s,!0)}(a,l),C=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,p),r.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,v),k=e.tryGetModuleNameFromFile(r,a,c,o),N=r.createArrayLiteralExpression(e.map(l,(function(e){return e.name}))),A=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,k?[k,N,C]:[N,C]))]),a.statements)),1024);e.outFile(o)||e.moveEmitHelpers(A,v,(function(e){return!e.scoped}));y&&(x[u]=y,y=void 0);return d=void 0,_=void 0,p=void 0,f=void 0,g=void 0,m=void 0,A}));function S(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(p,void 0,[o]))],!0))}function T(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(function(t){return e.getLocalNameForExternalImport(r,t,d)})),u=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),l=[],_=0,f=s.externalImports;_<f.length;_++){var g=f[_],m=e.getLocalNameForExternalImport(r,g,d);switch(g.kind){case 258:if(!g.importClause)break;case 257:e.Debug.assert(void 0!==m),l.push(r.createExpressionStatement(r.createAssignment(m,u)));break;case 264:if(e.Debug.assert(void 0!==m),g.exportClause)if(e.isNamedExports(g.exportClause)){for(var y=[],h=0,v=g.exportClause.elements;h<v.length;h++){var b=v[h];y.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(u,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}l.push(r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createObjectLiteralExpression(y,!0)])))}else l.push(r.createExpressionStatement(r.createCallExpression(p,void 0,[r.createStringLiteral(e.idText(g.exportClause.name)),u])));else l.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[u])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,u)],void 0,r.createBlock(l,!0)))}return r.createArrayLiteralExpression(i,!0)}function E(t){switch(t.kind){case 258:return function(t){var n;t.importClause&&a(e.getLocalNameForExternalImport(r,t,d));if(w(t)){var i=e.getOriginalNodeId(t);v[i]=I(v[i],t)}else n=I(n,t);return e.singleOrMany(n)}(t);case 257:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,d)),w(t)){var i=e.getOriginalNodeId(t);v[i]=O(v[i],t)}else n=O(n,t);return e.singleOrMany(n)}(t);case 264:return function(t){return void e.Debug.assertIsDefined(t)}(t);case 263:return function(t){if(t.isExportEquals)return;var n=e.visitNode(t.expression,V,e.isExpression),i=t.original;if(!i||!w(i))return J(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);v[a]=j(v[a],r.createIdentifier("default"),n,!0)}(t);default:return z(t)}}function C(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||C(o)}else a(r.cloneNode(t.name))}function k(t){return 0==(2097152&e.getEmitFlags(t))&&(294===m.kind||0==(3&e.getOriginalNode(t).flags))}function N(r,n){var i=n?A:F;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,V,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,V,e.isExpression)):r.name}function A(e,t,r){return P(e,t,r,!0)}function F(e,t,r){return P(e,t,r,!1)}function P(t,n,i,o){return a(r.cloneNode(t)),o?K(t,G(e.setTextRange(r.createAssignment(t,n),i))):G(e.setTextRange(r.createAssignment(t,n),i))}function w(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(_.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=B(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 260:e=B(e,n);break;case 261:for(var i=0,a=n.elements;i<a.length;i++){e=B(e,a[i])}}return e}function O(e,t){return _.exportEquals?e:B(e,t)}function M(e,t,r){if(_.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=L(e,a,r))}return e}function L(t,n,i){if(_.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=L(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=j(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=B(t,n,c)}return t}function R(t,n){if(_.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=j(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=B(t,n,i)),t}function B(t,n,i){if(_.exportEquals)return t;var a=r.getDeclarationName(n),o=_.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var u=c[s];u.name.escapedText!==i&&(t=j(t,u.name,a))}return t}function j(t,r,n,i){return t=e.append(t,J(r,n,i))}function J(t,n,i){var a=r.createExpressionStatement(K(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function K(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(p,void 0,[i,n]),n)}function z(n){switch(n.kind){case 229:return function(t){if(!k(t.declarationList))return e.visitNode(t,V,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=w(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];u.initializer?n=e.append(n,N(u,a&&!o)):C(u)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var l=e.getOriginalNodeId(t);v[l]=M(v[l],t,a)}else i=M(i,t,!1);return e.singleOrMany(i)}(n);case 248:return function(n){if(g=e.hasSyntacticModifier(n,1)?e.append(g,r.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,W,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,V,e.isParameterDeclaration),void 0,e.visitNode(n.body,V,e.isBlock))):e.append(g,e.visitEachChild(n,V,t)),w(n)){var i=e.getOriginalNodeId(n);v[i]=R(v[i],n)}else g=R(g,n)}(n);case 249:return function(t){var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.decorators,V,e.isDecorator),void 0,t.name,void 0,e.visitNodes(t.heritageClauses,V,e.isHeritageClause),e.visitNodes(t.members,V,e.isClassElement)),t))),t)),w(t)){var o=e.getOriginalNodeId(t);v[o]=R(v[o],t)}else n=R(n,t);return e.singleOrMany(n)}(n);case 234:return function(t){var n=m;return m=t,t=r.updateForStatement(t,t.initializer&&U(t.initializer),e.visitNode(t.condition,V,e.isExpression),e.visitNode(t.incrementor,V,e.isExpression),e.visitNode(t.statement,z,e.isStatement)),m=n,t}(n);case 235:return function(t){var n=m;return m=t,t=r.updateForInStatement(t,U(t.initializer),e.visitNode(t.expression,V,e.isExpression),e.visitNode(t.statement,z,e.isStatement,r.liftToBlock)),m=n,t}(n);case 236:return function(t){var n=m;return m=t,t=r.updateForOfStatement(t,t.awaitModifier,U(t.initializer),e.visitNode(t.expression,V,e.isExpression),e.visitNode(t.statement,z,e.isStatement,r.liftToBlock)),m=n,t}(n);case 232:return function(t){return r.updateDoStatement(t,e.visitNode(t.statement,z,e.isStatement,r.liftToBlock),e.visitNode(t.expression,V,e.isExpression))}(n);case 233:return function(t){return r.updateWhileStatement(t,e.visitNode(t.expression,V,e.isExpression),e.visitNode(t.statement,z,e.isStatement,r.liftToBlock))}(n);case 242:return function(t){return r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,z,e.isStatement,r.liftToBlock))}(n);case 240:return function(t){return r.updateWithStatement(t,e.visitNode(t.expression,V,e.isExpression),e.visitNode(t.statement,z,e.isStatement,r.liftToBlock))}(n);case 241:return function(t){return r.updateSwitchStatement(t,e.visitNode(t.expression,V,e.isExpression),e.visitNode(t.caseBlock,z,e.isCaseBlock))}(n);case 255:return function(t){var n=m;return m=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,z,e.isCaseOrDefaultClause)),m=n,t}(n);case 281:return function(t){return r.updateCaseClause(t,e.visitNode(t.expression,V,e.isExpression),e.visitNodes(t.statements,z,e.isStatement))}(n);case 282:case 244:return function(r){return e.visitEachChild(r,z,t)}(n);case 284:return function(t){var n=m;return m=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,z,e.isBlock)),m=n,t}(n);case 227:return function(r){var n=m;return m=r,r=e.visitEachChild(r,z,t),m=n,r}(n);case 333:return function(t){if(w(t)&&229===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);v[r]=M(v[r],t.original,n)}return t}(n);case 334:return function(t){var r=e.getOriginalNodeId(t),n=v[r];if(n)return delete v[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(B(n,i),t):t}(n);default:return V(n)}}function U(n){if(function(t){return e.isVariableDeclarationList(t)&&k(t)}(n)){for(var i=void 0,a=0,o=n.declarations;a<o.length;a++){var s=o[a];i=e.append(i,N(s,!1)),s.initializer||C(s)}return i?r.inlineExpressions(i):r.createOmittedExpression()}return e.visitEachChild(n,z,t)}function V(n){return e.isDestructuringAssignment(n)?function(r){if(q(r.left))return e.flattenDestructuringAssignment(r,V,t,0,!0);return e.visitEachChild(r,V,t)}(n):e.isImportCall(n)?function(t){return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,e.some(t.arguments)?[e.visitNode(t.arguments[0],V)]:[])}(n):1024&n.transformFlags||2097152&n.transformFlags?e.visitEachChild(n,V,t):n}function q(t){if(e.isAssignmentExpression(t,!0))return q(t.left);if(e.isSpreadElement(t))return q(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,q);if(e.isArrayLiteralExpression(t))return e.some(t.elements,q);if(e.isShorthandPropertyAssignment(t))return q(t.name);if(e.isPropertyAssignment(t))return q(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&294===r.kind}return!1}function W(e){switch(e.kind){case 92:case 87:return}return e}function H(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&294===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,_&&_.exportedBindings[e.getOriginalNodeId(i)])}}return n}function G(t){return void 0===y&&(y=[]),y[e.getNodeId(t)]=!0,t}}}(u||(u={})),function(e){e.transformECMAScriptModule=function(t){var n,i=t.factory,a=t.getEmitHelperFactory,o=t.getCompilerOptions(),s=t.onEmitNode,c=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){e.isSourceFile(r)?((e.isExternalModule(r)||o.isolatedModules)&&o.importHelpers&&(n=new e.Map),s(t,r,i),n=void 0):s(t,r,i)},t.onSubstituteNode=function(t,r){if(r=c(t,r),n&&e.isIdentifier(r)&&4096&e.getEmitFlags(r))return function(t){var r=e.idText(t),a=n.get(r);a||n.set(r,a=i.createUniqueName(r,48));return a}(r);return r},t.enableEmitNotification(294),t.enableSubstitution(78),e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;if(e.isExternalModule(n)||o.isolatedModules){var s=function(r){var n=e.createExternalHelpersImportDeclarationIfNeeded(i,a(),r,o);if(n){var s=[],c=i.copyPrologue(r.statements,s);return e.append(s,n),e.addRange(s,e.visitNodes(r.statements,u,e.isStatement,c)),i.updateSourceFile(r,e.setTextRange(i.createNodeArray(s),r.statements))}return e.visitEachChild(r,u,t)}(n);return!e.isExternalModule(n)||e.some(s.statements,e.isExternalModuleIndicator)?s:i.updateSourceFile(s,e.setTextRange(i.createNodeArray(r(s.statements,[e.createEmptyExports(i)])),s.statements))}return n}));function u(t){switch(t.kind){case 257:return;case 263:return function(e){return e.isExportEquals?void 0:e}(t);case 264:return function(t){if(void 0!==o.module&&o.module>e.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=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=167===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 169: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 168: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 170: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 164:case 163: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:249===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 248: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 165: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 169:case 174: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 168: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 170: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 164:case 163: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:249===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 248:case 173: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 167:case 166: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 249:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 250:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 189:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 174:case 169:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:case 163: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:249===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 173:case 248:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 251: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 246===t.kind||195===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:162===t.kind||198===t.kind||161===t.kind||159===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:249===t.parent.kind||159===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:249===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:249===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&&159===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=i;function a(t){var a,c,u,l,d,_,p,f,g,m,y,h=function(){return e.Debug.fail("Diagnostic emitted without context")},v=h,b=!0,x=!1,D=!1,S=!1,T=!1,E=t.factory,C=t.getEmitHost(),k={trackSymbol:function(e,t,r){if(262144&e.flags)return;I(N.isSymbolAccessible(e,t,r,!0)),w(N.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"this"))},reportInaccessibleUniqueSymbolError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"unique symbol"))},reportCyclicStructureError:function(){p&&t.addDiagnostic(e.createDiagnosticForNode(p,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(p)))},reportPrivateInBaseOfClassExpression:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){p&&t.addDiagnostic(e.createDiagnosticForNode(p,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(p),r))},moduleResolverHost:C,trackReferencedAmbientModule:function(t,r){var n=N.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return w(n);var i=e.getSourceFileOfNode(t);g.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){x||(_||(_=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){for(var a=e.find(n.declarations,(function(t){return e.getSourceFileOfNode(t)===r})),o=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r})),s=0,c=o;s<c.length;s++){var u=c[s];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(a,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}},N=t.getEmitResolver(),A=t.getCompilerOptions(),F=A.noResolve,P=A.stripInternal;return function(i){if(294===i.kind&&i.isDeclarationFile)return i;if(295===i.kind){x=!0,g=new e.Map,m=new e.Map;var o=!1,s=E.createBundle(e.map(i.sourceFiles,(function(r){if(!r.isDeclarationFile){if(o=o||r.hasNoDefaultLib,f=r,a=r,u=void 0,d=!1,l=new e.Map,v=h,S=!1,T=!1,M(r,g),L(r,m),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){D=!1,b=!1;var n=e.isSourceFileJS(r)?E.createNodeArray(O(r,!0)):e.visitNodes(r.statements,$);return E.updateSourceFile(r,[E.createModuleDeclaration([],[E.createModifier(133)],E.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),E.createModuleBlock(e.setTextRange(E.createNodeArray(X(n)),r.statements)))],!0,[],[],!1,[])}b=!0;var i=e.isSourceFileJS(r)?E.createNodeArray(O(r)):e.visitNodes(r.statements,$);return E.updateSourceFile(r,X(i),!0,[],[],!1,[])}})),e.mapDefined(i.prepends,(function(t){if(297===t.kind){var r=e.createUnparsedSourceFile(t,"dts",P);return o=o||!!r.hasNoDefaultLib,M(r,g),w(r.typeReferenceDirectives),L(r,m),r}return t})));s.syntheticFileReferences=[],s.syntheticTypeReferences=K(),s.syntheticLibReferences=J(),s.hasNoDefaultLib=o;var p=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(i,C,!0).declarationFilePath)),k=U(s.syntheticFileReferences,p);return g.forEach(k),s}b=!0,S=!1,T=!1,a=i,f=i,v=h,x=!1,D=!1,d=!1,u=void 0,l=new e.Map,c=void 0,g=M(f,new e.Map),m=L(f,new e.Map);var N,F=[],I=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(i,C,!0).declarationFilePath)),R=U(F,I);if(e.isSourceFileJS(f))N=E.createNodeArray(O(i)),g.forEach(R),y=e.filter(N,e.isAnyImportSyntax);else{var B=e.visitNodes(i.statements,$);N=e.setTextRange(E.createNodeArray(X(B)),i.statements),g.forEach(R),y=e.filter(N,e.isAnyImportSyntax),e.isExternalModule(i)&&(!D||S&&!T)&&(N=e.setTextRange(E.createNodeArray(r(N,[e.createEmptyExports(E)])),N))}var j=E.updateSourceFile(i,N,!0,F,K(),i.hasNoDefaultLib,J());return j.exportedModulesFromDeclarationEmit=_,j;function J(){return e.map(e.arrayFrom(m.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function K(){return c?e.mapDefined(e.arrayFrom(c.keys()),z):[]}function z(t){if(y)for(var r=0,n=y;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return{fileName:t,pos:-1,end:-1}}function U(t,r){return function(a){var o;if(a.isDeclarationFile)o=a.fileName;else{if(x&&e.contains(i.sourceFiles,a))return;var s=e.getOutputPathsFor(a,C,!0);o=s.declarationFilePath||s.jsFilePath||a.fileName}if(o){var c=e.moduleSpecifiers.getModuleSpecifier(n(n({},A),{baseUrl:A.baseUrl&&e.toPath(A.baseUrl,C.getCurrentDirectory(),C.getCanonicalFileName)}),f,e.toPath(r,C.getCurrentDirectory(),C.getCanonicalFileName),e.toPath(o,C.getCurrentDirectory(),C.getCanonicalFileName),C,void 0);if(!e.pathIsRelative(c))return void w([c]);var u=e.getRelativePathToDirectoryOrUrl(r,o,C.getCurrentDirectory(),C.getCanonicalFileName,!1);if(e.startsWith(u,"./")&&e.hasExtension(u)&&(u=u.substring(2)),e.startsWith(u,"node_modules/")||e.pathContainsNodeModules(u))return;t.push({pos:-1,end:-1,fileName:u})}}}};function w(t){if(t){c=c||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];c.add(i)}}}function I(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(u)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(u,a)}else u=r.aliasesToMakeVisible}else{var o=v(r);o&&(o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)))}}function O(t,r){var n=v;v=function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:r.errorNode||t}};var i=N.getDeclarationStatementsForSourceFile(t,531469,k,r);return v=n,i}function M(t,r){return F||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(function(n){var i=C.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function L(t,r){return e.forEach(t.libReferenceDirectives,(function(t){C.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function R(t,r,n){var i;d||(i=v,v=e.createGetSymbolAccessibilityDiagnosticForNode(t));var a=E.updateParameterDeclaration(t,void 0,function(t,r,n){return e.factory.createModifiersFromModifierFlags(o(t,r,n))}(t,r),t.dotDotDotToken,function t(r){return 78===r.kind?r:194===r.kind?E.updateArrayBindingPattern(r,e.visitNodes(r.elements,n)):E.updateObjectBindingPattern(r,e.visitNodes(r.elements,n));function n(e){return 219===e.kind?e:E.updateBindingElement(e,e.dotDotDotToken,e.propertyName,t(e.name),B(e)?e.initializer:void 0)}}(t.name),N.isOptionalParameter(t)?t.questionToken||E.createToken(57):void 0,J(t,n||t.type,!0),j(t));return d||(v=i),a}function B(t){return function(t){switch(t.kind){case 162:case 161:return!e.hasEffectiveModifier(t,8);case 159:case 246:return!0}return!1}(t)&&N.isLiteralConstDeclaration(e.getParseTreeNode(t))}function j(t){if(B(t))return N.createLiteralConstValue(e.getParseTreeNode(t),k)}function J(t,r,n){if((n||!e.hasEffectiveModifier(t,8))&&!B(t)){var i,o=159===t.kind&&(N.isRequiredInitializedParameter(t)||N.isOptionalUninitializedParameterProperty(t));return r&&!o?e.visitNode(r,Q):e.getParseTreeNode(t)?167===t.kind?E.createKeywordTypeNode(128):(p=t.name,d||(i=v,v=e.createGetSymbolAccessibilityDiagnosticForNode(t)),246===t.kind||195===t.kind?s(N.createTypeOfDeclaration(t,a,531469,k)):159===t.kind||162===t.kind||161===t.kind?t.initializer?s(N.createTypeOfDeclaration(t,a,531469,k,o)||N.createTypeOfExpression(t.initializer,a,531469,k)):s(N.createTypeOfDeclaration(t,a,531469,k,o)):s(N.createReturnTypeOfSignatureDeclaration(t,a,531469,k))):r?e.visitNode(r,Q):E.createKeywordTypeNode(128)}function s(e){return p=void 0,d||(v=i),e||E.createKeywordTypeNode(128)}}function K(t){switch((t=e.getParseTreeNode(t)).kind){case 248:case 253:case 250:case 249:case 251:case 252:return!N.isDeclarationVisible(t);case 246:return!z(t);case 257:case 258:case 264:case 263:return!1}return!1}function z(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,z):N.isDeclarationVisible(t))}function U(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(function(e){return R(e,n)}));if(i)return E.createNodeArray(i,r.hasTrailingComma)}}function V(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[R(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);if(o)a=R(o,void 0,ae(t,N.getAllAccessorDeclarations(t)))}a||(a=E.createParameterDeclaration(void 0,void 0,void 0,"value")),n=e.append(n,a)}return E.createNodeArray(n||e.emptyArray)}function q(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,Q)}function W(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function H(e,t){I(N.isEntityNameVisible(e,t)),w(N.getTypeReferenceDirectivesForEntityName(e))}function G(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Y(r,n){if(n){if(D=D||253!==r.kind&&192!==r.kind,e.isStringLiteralLike(n))if(x){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),N,r);if(i)return E.createStringLiteral(i)}else{var a=N.getSymbolOfExternalModuleSpecifier(n);a&&(_||(_=[])).push(a)}return n}}function X(t){for(;e.length(u);){var r=u.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=b;b=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&x);var i=ee(r);b=n,l.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(function(t){if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(l.has(r)){var n=l.get(r);return l.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(S=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(D=!0)),n}}return t}))}function Q(r){if(!re(r)){if(e.isDeclaration(r)){if(K(r))return;if(e.hasDynamicName(r)&&!N.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&N.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;W(r)&&(n=a,a=r);var i=v,o=e.canProduceDiagnostics(r),s=d,c=(176===r.kind||189===r.kind)&&251!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return b(E.createPropertyDeclaration(void 0,ie(r),r.name,void 0,void 0,void 0))}if(o&&!d&&(v=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&H(r.exprName,a),c&&(d=!0),function(e){switch(e.kind){case 169:case 165:case 164:case 166:case 167:case 162:case 161:case 163:case 168:case 170:case 246:case 158:case 220:case 172:case 183:case 173:case 174:case 192:return!0}return!1}(r))switch(r.kind){case 220:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&H(r.expression,a);var u=e.visitEachChild(r,Q,t);return b(E.updateExpressionWithTypeArguments(u,u.expression,u.typeArguments));case 172:H(r.typeName,a);u=e.visitEachChild(r,Q,t);return b(E.updateTypeReferenceNode(u,u.typeName,u.typeArguments));case 169:return b(E.updateConstructSignature(r,q(r,r.typeParameters),U(r,r.parameters),J(r,r.type)));case 165:return b(E.createConstructorDeclaration(void 0,ie(r),U(r,r.parameters,0),void 0));case 164:return e.isPrivateIdentifier(r.name)?b(void 0):b(E.createMethodDeclaration(void 0,ie(r),void 0,r.name,r.questionToken,q(r,r.typeParameters),U(r,r.parameters),J(r,r.type),void 0));case 166:if(e.isPrivateIdentifier(r.name))return b(void 0);var l=ae(r,N.getAllAccessorDeclarations(r));return b(E.updateGetAccessorDeclaration(r,void 0,ie(r),r.name,V(r,e.hasEffectiveModifier(r,8)),J(r,l),void 0));case 167:return e.isPrivateIdentifier(r.name)?b(void 0):b(E.updateSetAccessorDeclaration(r,void 0,ie(r),r.name,V(r,e.hasEffectiveModifier(r,8)),void 0));case 162:return e.isPrivateIdentifier(r.name)?b(void 0):b(E.updatePropertyDeclaration(r,void 0,ie(r),r.name,r.questionToken,J(r,r.type),j(r)));case 161:return e.isPrivateIdentifier(r.name)?b(void 0):b(E.updatePropertySignature(r,ie(r),r.name,r.questionToken,J(r,r.type)));case 163:return e.isPrivateIdentifier(r.name)?b(void 0):b(E.updateMethodSignature(r,ie(r),r.name,r.questionToken,q(r,r.typeParameters),U(r,r.parameters),J(r,r.type)));case 168:return b(E.updateCallSignature(r,q(r,r.typeParameters),U(r,r.parameters),J(r,r.type)));case 170:return b(E.updateIndexSignature(r,void 0,ie(r),U(r,r.parameters),e.visitNode(r.type,Q)||E.createKeywordTypeNode(128)));case 246:return e.isBindingPattern(r.name)?te(r.name):(c=!0,d=!0,b(E.updateVariableDeclaration(r,r.name,void 0,J(r,r.type),j(r))));case 158:return function(t){return 164===t.parent.kind&&e.hasEffectiveModifier(t.parent,8)}(r)&&(r.default||r.constraint)?b(E.updateTypeParameterDeclaration(r,r.name,void 0,void 0)):b(e.visitEachChild(r,Q,t));case 183:var _=e.visitNode(r.checkType,Q),g=e.visitNode(r.extendsType,Q),m=a;a=r.trueType;var y=e.visitNode(r.trueType,Q);a=m;var h=e.visitNode(r.falseType,Q);return b(E.updateConditionalTypeNode(r,_,g,y,h));case 173:return b(E.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,Q),U(r,r.parameters),e.visitNode(r.type,Q)));case 174:return b(E.updateConstructorTypeNode(r,e.visitNodes(r.typeParameters,Q),U(r,r.parameters),e.visitNode(r.type,Q)));case 192:return e.isLiteralImportTypeNode(r)?b(E.updateImportTypeNode(r,E.updateLiteralTypeNode(r.argument,Y(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,Q,e.isTypeNode),r.isTypeOf)):b(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: "+e.SyntaxKind[r.kind])}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(f,r.pos).line===e.getLineAndCharacterOfPosition(f,r.end).line&&e.setEmitFlags(r,1),b(e.visitEachChild(r,Q,t))}}function b(t){return t&&o&&e.hasDynamicName(r)&&function(t){var r;d||(r=v,v=e.createGetSymbolAccessibilityDiagnosticForNodeName(t));p=t.name,e.Debug.assert(N.isLateBound(e.getParseTreeNode(t))),H(t.name.expression,a),d||(v=r);p=void 0}(r),W(r)&&(a=n),o&&!d&&(v=i),c&&(d=s),t===r?t:t&&e.setOriginalNode(G(t,r),r)}}function $(t){if(function(e){switch(e.kind){case 248:case 253:case 257:case 250:case 249:case 251:case 252:case 229:case 258:case 264:case 263:return!0}return!1}(t)&&!re(t)){switch(t.kind){case 264:return e.isSourceFile(t.parent)&&(D=!0),T=!0,E.updateExportDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.exportClause,Y(t,t.moduleSpecifier));case 263:if(e.isSourceFile(t.parent)&&(D=!0),T=!0,78===t.expression.kind)return t;var r=E.createUniqueName("_default",16);v=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}};var n=E.createVariableDeclaration(r,void 0,N.createTypeOfExpression(t.expression,t,531469,k),void 0);return[E.createVariableStatement(b?[E.createModifier(133)]:[],E.createVariableDeclarationList([n],2)),E.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var i=ee(t);return l.set(e.getOriginalNodeId(t),i),t}}function Z(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=E.createModifiersFromModifierFlags(11262&e.getEffectiveModifierFlags(t));return E.updateModifiers(t,r)}function ee(t){if(!re(t)){switch(t.kind){case 257:return function(t){if(N.isDeclarationVisible(t)){if(269===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return E.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.name,E.updateExternalModuleReference(t.moduleReference,Y(t,r)))}var n=v;return v=e.createGetSymbolAccessibilityDiagnosticForNode(t),H(t.moduleReference,a),v=n,t}}(t);case 258:return function(t){if(!t.importClause)return E.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,Y(t,t.moduleSpecifier));var r=t.importClause&&t.importClause.name&&N.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&E.updateImportDeclaration(t,void 0,t.modifiers,E.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),Y(t,t.moduleSpecifier));if(260===t.importClause.namedBindings.kind){var n=N.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?E.updateImportDeclaration(t,void 0,t.modifiers,E.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),Y(t,t.moduleSpecifier)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(function(e){return N.isDeclarationVisible(e)?e:void 0}));return i&&i.length||r?E.updateImportDeclaration(t,void 0,t.modifiers,E.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?E.updateNamedImports(t.importClause.namedBindings,i):void 0),Y(t,t.moduleSpecifier)):N.isImportRequiredByAugmentation(t)?E.updateImportDeclaration(t,void 0,t.modifiers,void 0,Y(t,t.moduleSpecifier)):void 0}(t)}if(!(e.isDeclaration(t)&&K(t)||e.isFunctionLike(t)&&N.isImplementationOfOverload(t))){var n;W(t)&&(n=a,a=t);var i=e.canProduceDiagnostics(t),o=v;i&&(v=e.createGetSymbolAccessibilityDiagnosticForNode(t));var s=b;switch(t.kind){case 251:return de(E.updateTypeAliasDeclaration(t,void 0,ie(t),t.name,e.visitNodes(t.typeParameters,Q,e.isTypeParameterDeclaration),e.visitNode(t.type,Q,e.isTypeNode)));case 250:return de(E.updateInterfaceDeclaration(t,void 0,ie(t),t.name,q(t,t.typeParameters),oe(t.heritageClauses),e.visitNodes(t.members,Q)));case 248:var c=de(E.updateFunctionDeclaration(t,void 0,ie(t),void 0,t.name,q(t,t.typeParameters),U(t,t.parameters),J(t,t.type),void 0));if(c&&N.isExpandoFunctionDeclaration(t)){var u=N.getPropertiesOfContainerFunction(t),d=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,c.name||E.createIdentifier("_default"),E.createModuleBlock([]),16);e.setParent(d,a),d.locals=e.createSymbolTable(u),d.symbol=u[0].parent;var _=[],p=e.mapDefined(u,(function(t){if(e.isPropertyAccessExpression(t.valueDeclaration)){v=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=N.createTypeOfDeclaration(t.valueDeclaration,d,531469,k);v=o;var n=e.unescapeLeadingUnderscores(t.escapedName),i=e.isStringANonContextualKeyword(n),a=i?E.getGeneratedNameForNode(t.valueDeclaration):E.createIdentifier(n);i&&_.push([a,n]);var s=E.createVariableDeclaration(a,void 0,r,void 0);return E.createVariableStatement(i?void 0:[E.createToken(92)],E.createVariableDeclarationList([s]))}}));_.length?p.push(E.createExportDeclaration(void 0,void 0,!1,E.createNamedExports(e.map(_,(function(e){var t=e[0],r=e[1];return E.createExportSpecifier(t,r)}))))):p=e.mapDefined(p,(function(e){return E.updateModifiers(e,0)}));var f=E.createModuleDeclaration(void 0,ie(t),t.name,E.createModuleBlock(p),16);if(!e.hasEffectiveModifier(c,512))return[c,f];var g=E.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(c)|2),m=E.updateFunctionDeclaration(c,void 0,g,void 0,c.name,c.typeParameters,c.parameters,c.type,void 0),y=E.updateModuleDeclaration(f,void 0,g,f.name,f.body),h=E.createExportAssignment(void 0,void 0,!1,f.name);return e.isSourceFile(t.parent)&&(D=!0),T=!0,[m,y,h]}return c;case 253:b=!1;var x=t.body;if(x&&254===x.kind){var C=S,A=T;T=!1,S=!1;var F=X(e.visitNodes(x.statements,$));8388608&t.flags&&(S=!1),e.isGlobalScopeAugmentation(t)||function(t){return e.some(t,ne)}(F)||T||(F=S?E.createNodeArray(r(F,[e.createEmptyExports(E)])):e.visitNodes(F,Z));var P=E.updateModuleBlock(x,F);b=s,S=C,T=A;var w=ie(t);return de(E.updateModuleDeclaration(t,void 0,w,e.isExternalModuleAugmentation(t)?Y(t,t.name):t.name,P))}b=s;w=ie(t);b=!1,e.visitNode(x,$);var I=e.getOriginalNodeId(x);P=l.get(I);return l.delete(I),de(E.updateModuleDeclaration(t,void 0,w,t.name,P));case 249:g=E.createNodeArray(ie(t));var O=q(t,t.typeParameters),M=e.getFirstConstructorWithBody(t),L=void 0;if(M){var R=v;L=e.compact(e.flatMap(M.parameters,(function(t){if(e.hasSyntacticModifier(t,92)&&!re(t))return v=e.createGetSymbolAccessibilityDiagnosticForNode(t),78===t.name.kind?G(E.createPropertyDeclaration(void 0,ie(t),t.name,t.questionToken,J(t,t.type),j(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(E.createPropertyDeclaration(void 0,ie(t),s.name,void 0,J(s,void 0),void 0)))}return i}(t.name)}))),v=R}var B=e.some(t.members,(function(t){return!!t.name&&e.isPrivateIdentifier(t.name)}))?[E.createPropertyDeclaration(void 0,void 0,E.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,V=e.concatenate(e.concatenate(B,L),e.visitNodes(t.members,Q)),ee=E.createNodeArray(V),te=e.getEffectiveBaseTypeNode(t);if(te&&!e.isEntityNameExpression(te.expression)&&103!==te.expression.kind){var ae=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",se=E.createUniqueName(ae+"_base",16);v=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:te,typeName:t.name}};var ce=E.createVariableDeclaration(se,void 0,N.createTypeOfExpression(te.expression,t,531469,k),void 0),ue=E.createVariableStatement(b?[E.createModifier(133)]:[],E.createVariableDeclarationList([ce],2)),le=E.createNodeArray(e.map(t.heritageClauses,(function(t){if(93===t.token){var r=v;v=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=E.updateHeritageClause(t,e.map(t.types,(function(t){return E.updateExpressionWithTypeArguments(t,se,e.visitNodes(t.typeArguments,Q))})));return v=r,n}return E.updateHeritageClause(t,e.visitNodes(E.createNodeArray(e.filter(t.types,(function(t){return e.isEntityNameExpression(t.expression)||103===t.expression.kind}))),Q))})));return[ue,de(E.updateClassDeclaration(t,void 0,g,t.name,O,le,ee))]}le=oe(t.heritageClauses);return de(E.updateClassDeclaration(t,void 0,g,t.name,O,le,ee));case 229:return de(function(t){if(!e.forEach(t.declarationList.declarations,z))return;var r=e.visitNodes(t.declarationList.declarations,Q);if(!e.length(r))return;return E.updateVariableStatement(t,E.createNodeArray(ie(t)),E.updateVariableDeclarationList(t.declarationList,r))}(t));case 252:return de(E.updateEnumDeclaration(t,void 0,E.createNodeArray(ie(t)),t.name,E.createNodeArray(e.mapDefined(t.members,(function(e){if(!re(e)){var t=N.getConstantValue(e);return G(E.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?E.createStringLiteral(t):E.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[t.kind])}}function de(r){return W(t)&&(a=n),i&&(v=o),253===t.kind&&(b=s),r===t?r:r&&e.setOriginalNode(G(r,t),t)}}function te(t){return e.flatten(e.mapDefined(t.elements,(function(t){return function(t){if(219===t.kind)return;if(t.name){if(!z(t))return;return e.isBindingPattern(t.name)?te(t.name):E.createVariableDeclaration(t.name,void 0,J(t,void 0),void 0)}}(t)})))}function re(e){return!!P&&!!e&&i(e,f)}function ne(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ie(t){var r=e.getEffectiveModifierFlags(t),n=function(t){var r=11003,n=b&&!function(e){if(250===e.kind)return!0;return!1}(t)?2:0,i=294===t.parent.kind;(!i||x&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0);return o(t,r,n)}(t);return r===n?t.modifiers:E.createModifiersFromModifierFlags(n)}function ae(t,r){var n=s(t);return n||t===r.firstAccessor||(n=s(r.firstAccessor),v=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=s(r.secondAccessor),v=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function oe(t){return E.createNodeArray(e.filter(e.map(t,(function(t){return E.updateHeritageClause(t,e.visitNodes(E.createNodeArray(e.filter(t.types,(function(r){return e.isEntityNameExpression(r.expression)||93===t.token&&103===r.expression.kind}))),Q))})),(function(e){return e.types&&!!e.types.length})))}}function o(t,r,n){void 0===r&&(r=11259),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function s(e){if(e)return 166===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=a}(u||(u={})),function(e){var t,n;function i(t,r,n){if(n)return e.emptyArray;var i=t.jsx,a=e.getEmitScriptTarget(t),o=e.getEmitModuleKind(t),c=[];return e.addRange(c,r&&e.map(r.before,s)),c.push(e.transformTypeScript),c.push(e.transformClassFields),2===i&&c.push(e.transformJsx),a<99&&c.push(e.transformESNext),a<7&&c.push(e.transformES2020),a<6&&c.push(e.transformES2019),a<5&&c.push(e.transformES2018),a<4&&c.push(e.transformES2017),a<3&&c.push(e.transformES2016),a<2&&(c.push(e.transformES2015),c.push(e.transformGenerators)),c.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(o)),a<1&&c.push(e.transformES5),e.addRange(c,r&&e.map(r.after,s)),c}function 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(336),m=0,y=[],h=[],v=[],b=[],x=0,D=!1,S=u,T=l,E=0,C=[],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(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is suspended."),y[x]=d,h[x]=_,v[x]=p,b[x]=m,x++,d=void 0,_=void 0,p=void 0,m=0},suspendLexicalEnvironment:function(){e.Debug.assert(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"Lexical environment is already suspended."),D=!0},resumeLexicalEnvironment:function(){e.Debug.assert(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(D,"Lexical environment is not suspended."),D=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!D,"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],_=h[x],p=v[x],m=b[x],0===x&&(y=[],h=[],v=[],b=[]);return t},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(t){e.Debug.assert(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<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(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},addInitializationStatement:function(t){e.Debug.assert(E>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(E<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(E>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(E<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++){var a=i[n];t(a)}f=e.append(f,r)},readEmitHelpers:function(){e.Debug.assert(E>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(E<2,"Cannot modify the transformation context after transformation has completed.");var t=f;return f=void 0,t},enableSubstitution:function(t){e.Debug.assert(E<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification:function(t){e.Debug.assert(E<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:O,isEmitNotificationEnabled:M,get onSubstituteNode(){return S},set onSubstituteNode(t){e.Debug.assert(E<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 T},set onEmitNode(t){e.Debug.assert(E<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),T=t},addDiagnostic:function(e){C.push(e)}},N=0,A=o;N<A.length;N++){var F=A[N];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(F)))}e.performance.mark("beforeTransform");var P=s.map((function(e){return e(k)})),w=function(e){for(var t=0,r=P;t<r.length;t++){e=(0,r[t])(e)}return e};E=1;var I=e.map(o,c?w:function(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:w(t)});return E=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:I,substituteNode:function(t,r){return e.Debug.assert(E<3,"Cannot substitute a node after the result is disposed."),r&&O(r)&&S(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(E<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(M(r)?T(t,r,n):n(t,r))},isEmitNotificationEnabled:M,dispose:function(){if(E<3){for(var t=0,r=o;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}d=void 0,y=void 0,_=void 0,h=void 0,S=void 0,T=void 0,f=void 0,E=3}},diagnostics:C};function O(t){return 0!=(1&g[t.kind])&&0==(4&e.getEmitFlags(t))}function M(t){return 0!=(2&g[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={get factory(){return e.factory},enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:e.returnUndefined,getCompilerOptions:function(){return{}},getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,getEmitHelperFactory:e.notImplemented,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,addInitializationStatement:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop}}(u||(u={})),function(e){var t,n,i=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function o(t,r,n,i,a,o){void 0===i&&(i=!1);var c=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,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<f.length;p++){var g,m=f[p];if(g=r(u(m,t,i),m))return g}if(o){var y=s(l);if(y)return r({buildInfoPath:y},void 0)}}}function s(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function c(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,a=i&&l(i,t),o=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:o,declarationMapPath:o&&e.getAreDeclarationMapsEnabled(t)?o+".map":void 0,buildInfoPath:s(t)}}function u(t,r,n){var i=r.getCompilerOptions();if(295===t.kind)return c(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,d(t,i)),o=e.isJsonSourceFile(t),s=o&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),u=i.emitDeclarationOnly||s?void 0:a,_=!u||e.isJsonSourceFile(t)?void 0:l(u,i),p=n||e.getEmitDeclarations(i)&&!o?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:u,sourceMapFilePath:_,declarationFilePath:p,declarationMapPath:p&&e.getAreDeclarationMapsEnabled(i)?p+".map":void 0,buildInfoPath:void 0}}function l(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function d(t,r){if(e.isJsonSourceFile(t))return".json";if(1===r.jsx)if(e.isSourceFileJS(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function _(t,r,n,i){return i?e.resolvePath(i,e.getRelativePathFromDirectory(function(t){return t.options.rootDir||e.getDirectoryPath(e.Debug.checkDefined(t.options.configFilePath))}(r),t,n)):t}function p(t,r,n){return e.Debug.assert(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")),e.changeExtension(_(t,r,n,r.options.declarationDir||r.options.outDir),".d.ts")}function f(t,r,n){if(!r.options.emitDeclarationOnly){var i=e.fileExtensionIs(t,".json"),a=e.changeExtension(_(t,r,n,r.options.outDir),i?".json":e.fileExtensionIs(t,".tsx")&&1===r.options.jsx?".jsx":".js");return i&&0===e.comparePaths(t,a,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:a}}function g(){var t;return{addOutput:function(e){e&&(t||(t=[])).push(e)},getOutputs:function(){return t||e.emptyArray}}}function m(e,t){var r=c(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,o=r.declarationMapPath,s=r.buildInfoPath;t(n),t(i),t(a),t(o),t(s)}function y(t,r,n,i){if(!e.fileExtensionIs(r,".d.ts")){var a=f(r,t,n);if(i(a),!e.fileExtensionIs(r,".json")&&(a&&t.options.sourceMap&&i(a+".map"),e.getEmitDeclarations(t.options))){var o=p(r,t,n);i(o),t.options.declarationMap&&i(o+".map")}}}function h(t,r,n,i,a,s,c){var u,l,d=i.scriptTransformers,_=i.declarationTransformers,p=r.getCompilerOptions(),f=p.sourceMap||p.inlineSourceMap||e.getAreDeclarationMapsEnabled(p)?[]:void 0,g=p.listEmittedFiles?[]:void 0,m=e.createDiagnosticCollection(),y=e.getNewLineCharacter(p,(function(){return r.getNewLine()})),h=e.createTextWriter(y),b=e.performance.createTimer("printTime","beforePrint","afterPrint"),D=b.enter,S=b.exit,T=!1;return D(),o(r,(function(i,o){var s,f=i.jsFilePath,y=i.sourceMapFilePath,h=i.declarationFilePath,b=i.declarationMapPath,D=i.buildInfoPath;D&&o&&e.isBundle(o)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(D,r.getCurrentDirectory())),u={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:o.sourceFiles.map((function(t){return S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))}))});(function(n,i,o,s){if(!n||a||!i)return;if(i&&r.isEmitBlocked(i)||p.noEmit)return void(T=!0);var c=e.transformNodes(t,r,e.factory,p,[n],d,!1),l=x({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!u,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),C(i,o,c.transformed[0],l,p),c.dispose(),u&&(u.js=l.bundleFileInfo)})(o,f,y,S),function(n,i,o,s){if(!n)return;if(!i)return void((a||p.emitDeclarationOnly)&&(T=!0));var d=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?d:e.filter(d,e.isSourceFileNotJson),g=e.outFile(p)?[e.factory.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;a&&!e.getEmitDeclarations(p)&&f.forEach(E);var y=e.transformNodes(t,r,e.factory,p,g,_,!1);if(e.length(y.diagnostics))for(var h=0,v=y.diagnostics;h<v.length;h++){var b=v[h];m.add(b)}var D=x({removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!u,recordInternalSection:!!u,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:y.emitNodeWithNotification,isEmitNotificationEnabled:y.isEmitNotificationEnabled,substituteNode:y.substituteNode}),S=!!y.diagnostics&&!!y.diagnostics.length||!!r.isEmitBlocked(i)||!!p.noEmit;if(T=T||S,(!S||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),C(i,o,y.transformed[0],D,{sourceMap:p.declarationMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),c&&294===y.transformed[0].kind)){var k=y.transformed[0];l=k.exportedModulesFromDeclarationEmit}y.dispose(),u&&(u.dts=D.bundleFileInfo)}(o,h,b,S),function(t,i){if(!i||n||T)return;var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))return void(T=!0);var o=e.version;e.writeFile(r,m,i,v({bundle:t,program:a,version:o}),!1)}(u,D),!T&&g&&(a||(f&&g.push(f),y&&g.push(y),D&&g.push(D)),h&&g.push(h),b&&g.push(b));function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:T,diagnostics:m.getDiagnostics(),emittedFiles:g,sourceMaps:f,exportedModulesFromDeclarationEmit:l};function E(r){e.isExportAssignment(r)?78===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,E)}function C(t,n,i,a,o){var s,c=295===i.kind?i:void 0,u=294===i.kind?i:void 0,l=c?c.sourceFiles:[u];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(294!==r.kind||!e.fileExtensionIs(r.fileName,".json"))}(o,i)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),function(t){var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r}(o),function(t,n,i){if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))}(o,t,u),o)),c?a.writeBundle(c,h,s):a.writeFile(u,h,s),s){f&&f.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var d=function(t,n,i,a,o){if(t.inlineSourceMap){var s=n.toString();return"data:application/json;base64,"+e.base64encode(e.sys,s)}var c=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var u=e.normalizeSlashes(t.mapRoot);return o&&(u=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,u))),0===e.getRootLength(u)?(u=e.combinePaths(r.getCommonSourceDirectory(),u),e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(u,c),r.getCurrentDirectory(),r.getCanonicalFileName,!0)):e.combinePaths(u,c)}return c}(o,s,t,n,u);if(d&&(h.isAtStartOfLine()||h.rawWrite(y),h.writeComment("//# sourceMappingURL="+d)),n){var _=s.toString();e.writeFile(r,m,n,_,!1,l)}}else h.writeLine();e.writeFile(r,m,t,h.getText(),!!p.emitBOM,l),h.clear()}}function v(e){return JSON.stringify(e,void 0,2)}function b(e){return JSON.parse(e)}function x(t,r){void 0===t&&(t={}),void 0===r&&(r={});var n,o,s,c,u,l,d,_,p,f,g,m,y,h,v,b,x,D,S=r.hasGlobalName,T=r.onEmitNode,E=void 0===T?e.noEmitNotification:T,C=r.isEmitNotificationEnabled,k=r.substituteNode,N=void 0===k?e.noEmitSubstitution:k,A=r.onBeforeEmitNodeArray,F=r.onAfterEmitNodeArray,P=r.onBeforeEmitToken,w=r.onAfterEmitToken,I=!!t.extendedDiagnostics,O=e.getNewLineCharacter(t),M=e.getEmitModuleKind(t),L=new e.Map,R=t.preserveSourceNewlines,B=function(e){f.write(e)},j=t.writeBundleFileInfo?{sections:[]}:void 0,J=j?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,K=t.recordInternalSection,z=0,U="text",V=!0,q=-1,W=-1,H=-1,G=-1,Y=!1,X=!!t.removeComments,Q=e.performance.createTimerIf(I,"commentTime","beforeComment","afterComment"),$=Q.enter,Z=Q.exit;return me(),{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 294:return te(r);case 295:return ee(r);case 296:return function(e,t){var r=f;ge(t,void 0),pe(4,e,void 0),me(),f=r}(r,de()),_e()}return re(t,r,n,de()),_e()},printList:function(e,t,r){return ne(e,t,r,de()),_e()},printFile:te,printBundle:ee,writeNode:re,writeList:ne,writeFile:le,writeBundle:ue,bundleFileInfo:j};function ee(e){return ue(e,de(),void 0),_e()}function te(e){return le(e,de(),void 0),_e()}function re(e,t,r,n){var i=f;ge(n,void 0),pe(e,t,r),me(),f=i}function ne(e,t,r,n){var i=f;ge(n,void 0),r&&fe(r),bt(a,t,e),me(),f=i}function ie(){return f.getTextPosWithWriteLine?f.getTextPosWithWriteLine():f.getTextPos()}function ae(t,r,n){var i=e.lastOrUndefined(j.sections);i&&i.kind===n?i.end=r:j.sections.push({pos:t,end:r,kind:n})}function oe(t){if(K&&j&&n&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,n)&&"internal"!==U){var r=U;return ce(f.getTextPos()),z=ie(),U="internal",r}}function se(e){e&&(ce(f.getTextPos()),z=ie(),U=e)}function ce(e){return z<e&&(ae(z,e,U),!0)}function ue(r,n,i){var a;m=!1;var o=f;ge(n,i),st(r),ot(r),Ne(r),function(t){rt(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++){he(o[a]),It()}}}(r);for(var s=0,c=r.prepends;s<c.length;s++){var u=c[s];It();var l=f.getTextPos(),d=j&&j.sections;if(d&&(j.sections=[]),pe(4,u,void 0),j){var _=j.sections;j.sections=d,u.oldFileOfCurrentEmit?(a=j.sections).push.apply(a,_):(_.forEach((function(t){return e.Debug.assert(e.isBundleFileTextLike(t))})),j.sections.push({pos:l,end:f.getTextPos(),kind:"prepend",data:J(u.fileName),texts:_}))}}z=ie();for(var p=0,g=r.sourceFiles;p<g.length;p++){var y=g[p];pe(0,y,y)}if(j&&r.sourceFiles.length&&ce(f.getTextPos())){var h=function(t){for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,u=a.statements;c<u.length;c++){var l=u[c];if(!e.isPrologueDirective(l))break;n.has(l.expression.text)||(n.add(l.expression.text),(o||(o=[])).push({pos:l.pos,end:l.end,expression:{pos:l.expression.pos,end:l.expression.end,text:l.expression.text}}),s=s<l.end?l.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r}(r);h&&(j.sources||(j.sources={}),j.sources.prologues=h);var v=function(r){var n;if(M===e.ModuleKind.None||t.noEmitHelpers)return;for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),u=Ae(s);if(u)for(var l=0,d=u;l<d.length;l++){var _=d[l];_.scoped||c||i.get(_.name)||(i.set(_.name,!0),(n||(n=[])).push(_.name))}}return n}(r);v&&(j.sources||(j.sources={}),j.sources.helpers=v)}me(),f=o}function le(e,t,r){m=!0;var n=f;ge(t,r),st(e),ot(e),pe(0,e,e),me(),f=n}function de(){return g||(g=e.createTextWriter(O))}function _e(){var e=g.getText();return g.clear(),e}function pe(e,t,r){r&&fe(r),De(e,t)}function fe(e){n=e,v=void 0,b=void 0,e&&Or(e)}function ge(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),y=n,V=!(f=r)||!y}function me(){o=[],s=[],c=new e.Set,u=[],l=0,d=[],n=void 0,v=void 0,b=void 0,x=void 0,D=void 0,ge(void 0,void 0)}function ye(){return v||(v=e.getLineStarts(n))}function he(e){if(void 0!==e){var t=oe(e),r=De(4,e);return se(t),r}}function ve(e){if(void 0!==e)return De(2,e)}function be(e){if(void 0!==e)return De(1,e)}function xe(t){return De(e.isStringLiteral(t)?6:4,t)}function De(t,r){var n=x,i=D,a=R;x=r,D=void 0,R&&134217728&e.getEmitFlags(r)&&(R=!1),Se(0,t,r)(t,r),e.Debug.assert(x===r);var o=D;return x=n,D=i,R=a,o||r}function Se(t,r,n){switch(t){case 0:if(E!==e.noEmitNotification&&(!C||C(n)))return Ee;case 1:if(N!==e.noEmitSubstitution&&(D=N(r,n))!==n)return ke;case 2:if(!X&&294!==n.kind)return fr;case 3:if(!V&&294!==n.kind&&!e.isInJsonFile(n))return Fr;case 4:return Ce;default:return e.Debug.assertNever(t)}}function Te(e,t,r){return Se(e+1,t,r)}function Ee(t,r){e.Debug.assert(x===r);var n=Te(0,t,r);E(t,r,n),e.Debug.assert(x===r)}function Ce(t,r){if(e.Debug.assert(x===r||D===r),0===t)return function(t){It();var r=t.statements;if(hr){if(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]))return void hr(t,r,nt)}nt(t)}(e.cast(r,e.isSourceFile));if(2===t)return we(e.cast(r,e.isIdentifier));if(6===t)return Fe(e.cast(r,e.isStringLiteral),!0);if(3===t)return function(e){he(e.name),Pt(),kt("in"),Pt(),he(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Me(!0);if(4===t){if(e.isKeyword(r.kind))return Rt(r,kt);switch(r.kind){case 15:case 16:case 17:return Fe(r,!1);case 296:case 290:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];It(),he(n)}}(r);case 289:return Pe(r);case 291:case 292:return o=r,s=ie(),Pe(o),void(j&&ae(s,f.getTextPos(),291===o.kind?"text":"internal"));case 293:return function(t){var r=ie();if(Pe(t),j){var n=e.clone(t.section);n.pos=r,n.end=f.getTextPos(),j.sections.push(n)}}(r);case 78:return we(r);case 79:return function(e){(e.symbol?Tt:B)(Zt(e,!1),e.symbol)}(r);case 156:return function(e){(function(e){78===e.kind?be(e):he(e)})(e.left),Et("."),he(e.right)}(r);case 157:return function(e){Et("["),be(e.expression),Et("]")}(r);case 158:return function(e){he(e.name),e.constraint&&(Pt(),kt("extends"),Pt(),he(e.constraint));e.default&&(Pt(),Nt("="),Pt(),he(e.default))}(r);case 159:return function(e){gt(e,e.decorators),ut(e,e.modifiers),he(e.dotDotDotToken),ct(e.name,At),he(e.questionToken),e.parent&&304===e.parent.kind&&!e.name?he(e.type):lt(e.type);dt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(r);case 160:return a=r,Et("@"),void be(a.expression);case 161:return function(e){gt(e,e.decorators),ut(e,e.modifiers),ct(e.name,wt),he(e.questionToken),lt(e.type),Ct()}(r);case 162:return function(e){gt(e,e.decorators),ut(e,e.modifiers),he(e.name),he(e.questionToken),he(e.exclamationToken),lt(e.type),dt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Ct()}(r);case 163:return function(e){tr(e),gt(e,e.decorators),ut(e,e.modifiers),he(e.name),he(e.questionToken),yt(e,e.typeParameters),ht(e,e.parameters),lt(e.type),Ct(),rr(e)}(r);case 164:return function(e){gt(e,e.decorators),ut(e,e.modifiers),he(e.asteriskToken),he(e.name),he(e.questionToken),Ke(e,ze)}(r);case 165:return function(e){ut(e,e.modifiers),kt("constructor"),Ke(e,ze)}(r);case 166:case 167:return function(e){gt(e,e.decorators),ut(e,e.modifiers),kt(166===e.kind?"get":"set"),Pt(),he(e.name),Ke(e,ze)}(r);case 168:return function(e){tr(e),gt(e,e.decorators),ut(e,e.modifiers),yt(e,e.typeParameters),ht(e,e.parameters),lt(e.type),Ct(),rr(e)}(r);case 169:return function(e){tr(e),gt(e,e.decorators),ut(e,e.modifiers),kt("new"),Pt(),yt(e,e.typeParameters),ht(e,e.parameters),lt(e.type),Ct(),rr(e)}(r);case 170:return function(e){gt(e,e.decorators),ut(e,e.modifiers),t=e,r=e.parameters,bt(t,r,8848),lt(e.type),Ct();var t,r}(r);case 171:return function(e){e.assertsModifier&&(he(e.assertsModifier),Pt());he(e.parameterName),e.type&&(Pt(),kt("is"),Pt(),he(e.type))}(r);case 172:return function(e){he(e.typeName),mt(e,e.typeArguments)}(r);case 173:return function(e){tr(e),yt(e,e.typeParameters),vt(e,e.parameters),Pt(),Et("=>"),Pt(),he(e.type),rr(e)}(r);case 304:return function(e){kt("function"),ht(e,e.parameters),Et(":"),he(e.type)}(r);case 174:return function(e){tr(e),kt("new"),Pt(),yt(e,e.typeParameters),ht(e,e.parameters),Pt(),Et("=>"),Pt(),he(e.type),rr(e)}(r);case 175:return function(e){kt("typeof"),Pt(),he(e.exprName)}(r);case 176:return function(t){Et("{");var r=1&e.getEmitFlags(t)?768:32897;bt(t,t.members,524288|r),Et("}")}(r);case 177:return function(e){he(e.elementType),Et("["),Et("]")}(r);case 178:return function(t){Be(22,t.pos,Et,t);var r=1&e.getEmitFlags(t)?528:657;bt(t,t.elements,524288|r),Be(23,t.elements.end,Et,t)}(r);case 179:return function(e){he(e.type),Et("?")}(r);case 181:return function(e){bt(e,e.types,516)}(r);case 182:return function(e){bt(e,e.types,520)}(r);case 183:return function(e){he(e.checkType),Pt(),kt("extends"),Pt(),he(e.extendsType),Pt(),Et("?"),Pt(),he(e.trueType),Pt(),Et(":"),Pt(),he(e.falseType)}(r);case 184:return function(e){kt("infer"),Pt(),he(e.typeParameter)}(r);case 185:return function(e){Et("("),he(e.type),Et(")")}(r);case 220:return function(e){be(e.expression),mt(e,e.typeArguments)}(r);case 186:return void kt("this");case 187:return function(e){Bt(e.operator,kt),Pt(),he(e.type)}(r);case 188:return function(e){he(e.objectType),Et("["),he(e.indexType),Et("]")}(r);case 189:return function(t){var r=e.getEmitFlags(t);Et("{"),1&r?Pt():(It(),Ot());t.readonlyToken&&(he(t.readonlyToken),141!==t.readonlyToken.kind&&kt("readonly"),Pt());Et("["),De(3,t.typeParameter),Et("]"),t.questionToken&&(he(t.questionToken),57!==t.questionToken.kind&&Et("?"));Et(":"),Pt(),he(t.type),Ct(),1&r?Pt():(It(),Mt());Et("}")}(r);case 190:return function(e){be(e.literal)}(r);case 192:return function(e){e.isTypeOf&&(kt("typeof"),Pt());kt("import"),Et("("),he(e.argument),Et(")"),e.qualifier&&(Et("."),he(e.qualifier));mt(e,e.typeArguments)}(r);case 299:return void Et("*");case 300:return void Et("?");case 301:return function(e){Et("?"),he(e.type)}(r);case 302:return function(e){Et("!"),he(e.type)}(r);case 303:return function(e){he(e.type),Et("=")}(r);case 180:case 305:return function(e){Et("..."),he(e.type)}(r);case 191:return function(e){he(e.dotDotDotToken),he(e.name),he(e.questionToken),Be(58,e.name.end,Et,e),Pt(),he(e.type)}(r);case 193:return function(e){Et("{"),bt(e,e.elements,525136),Et("}")}(r);case 194:return function(e){Et("["),bt(e,e.elements,524880),Et("]")}(r);case 195:return function(e){he(e.dotDotDotToken),e.propertyName&&(he(e.propertyName),Et(":"),Pt());he(e.name),dt(e.initializer,e.name.end,e)}(r);case 225:return function(e){be(e.expression),he(e.literal)}(r);case 226:return void Ct();case 227:return function(e){Oe(e,!e.multiLine&&Qt(e))}(r);case 229:return function(e){ut(e,e.modifiers),he(e.declarationList),Ct()}(r);case 228:return Me(!1);case 230:return function(t){be(t.expression),(!e.isJsonSourceFile(n)||e.nodeIsSynthesized(t.expression))&&Ct()}(r);case 231:return function(e){var t=Be(98,e.pos,kt,e);Pt(),Be(20,t,Et,e),be(e.expression),Be(21,e.expression.end,Et,e),ft(e,e.thenStatement),e.elseStatement&&(jt(e,e.thenStatement,e.elseStatement),Be(90,e.thenStatement.end,kt,e),231===e.elseStatement.kind?(Pt(),he(e.elseStatement)):ft(e,e.elseStatement))}(r);case 232:return function(t){Be(89,t.pos,kt,t),ft(t,t.statement),e.isBlock(t.statement)&&!R?Pt():jt(t,t.statement,t.expression);Le(t,t.statement.end),Ct()}(r);case 233:return function(e){Le(e,e.pos),ft(e,e.statement)}(r);case 234:return function(e){var t=Be(96,e.pos,kt,e);Pt();var r=Be(20,t,Et,e);Re(e.initializer),r=Be(26,e.initializer?e.initializer.end:r,Et,e),pt(e.condition),r=Be(26,e.condition?e.condition.end:r,Et,e),pt(e.incrementor),Be(21,e.incrementor?e.incrementor.end:r,Et,e),ft(e,e.statement)}(r);case 235:return function(e){var t=Be(96,e.pos,kt,e);Pt(),Be(20,t,Et,e),Re(e.initializer),Pt(),Be(100,e.initializer.end,kt,e),Pt(),be(e.expression),Be(21,e.expression.end,Et,e),ft(e,e.statement)}(r);case 236:return function(e){var t=Be(96,e.pos,kt,e);Pt(),function(e){e&&(he(e),Pt())}(e.awaitModifier),Be(20,t,Et,e),Re(e.initializer),Pt(),Be(155,e.initializer.end,kt,e),Pt(),be(e.expression),Be(21,e.expression.end,Et,e),ft(e,e.statement)}(r);case 237:return function(e){Be(85,e.pos,kt,e),_t(e.label),Ct()}(r);case 238:return function(e){Be(80,e.pos,kt,e),_t(e.label),Ct()}(r);case 239:return function(e){Be(104,e.pos,kt,e),pt(e.expression),Ct()}(r);case 240:return function(e){var t=Be(115,e.pos,kt,e);Pt(),Be(20,t,Et,e),be(e.expression),Be(21,e.expression.end,Et,e),ft(e,e.statement)}(r);case 241:return function(e){var t=Be(106,e.pos,kt,e);Pt(),Be(20,t,Et,e),be(e.expression),Be(21,e.expression.end,Et,e),Pt(),he(e.caseBlock)}(r);case 242:return function(e){he(e.label),Be(58,e.label.end,Et,e),Pt(),he(e.statement)}(r);case 243:return function(e){Be(108,e.pos,kt,e),pt(e.expression),Ct()}(r);case 244:return function(e){Be(110,e.pos,kt,e),Pt(),he(e.tryBlock),e.catchClause&&(jt(e,e.tryBlock,e.catchClause),he(e.catchClause));e.finallyBlock&&(jt(e,e.catchClause||e.tryBlock,e.finallyBlock),Be(95,(e.catchClause||e.tryBlock).end,kt,e),Pt(),he(e.finallyBlock))}(r);case 245:return function(e){Lt(86,e.pos,kt),Ct()}(r);case 246:return function(e){he(e.name),he(e.exclamationToken),lt(e.type),dt(e.initializer,e.type?e.type.end:e.name.end,e)}(r);case 247:return function(t){kt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Pt(),bt(t,t.declarations,528)}(r);case 248:return function(e){je(e)}(r);case 249:return function(e){We(e)}(r);case 250:return function(e){gt(e,e.decorators),ut(e,e.modifiers),kt("interface"),Pt(),he(e.name),yt(e,e.typeParameters),bt(e,e.heritageClauses,512),Pt(),Et("{"),bt(e,e.members,129),Et("}")}(r);case 251:return function(e){gt(e,e.decorators),ut(e,e.modifiers),kt("type"),Pt(),he(e.name),yt(e,e.typeParameters),Pt(),Et("="),Pt(),he(e.type),Ct()}(r);case 252:return function(e){ut(e,e.modifiers),kt("enum"),Pt(),he(e.name),Pt(),Et("{"),bt(e,e.members,145),Et("}")}(r);case 253:return function(e){ut(e,e.modifiers),1024&~e.flags&&(kt(16&e.flags?"namespace":"module"),Pt());he(e.name);var t=e.body;if(!t)return Ct();for(;253===t.kind;)Et("."),he(t.name),t=t.body;Pt(),he(t)}(r);case 254:return function(t){tr(t),e.forEach(t.statements,ir),Oe(t,Qt(t)),rr(t)}(r);case 255:return function(e){Be(18,e.pos,Et,e),bt(e,e.clauses,129),Be(19,e.clauses.end,Et,e,!0)}(r);case 256:return function(e){var t=Be(92,e.pos,kt,e);Pt(),t=Be(126,t,kt,e),Pt(),t=Be(139,t,kt,e),Pt(),he(e.name),Ct()}(r);case 257:return function(e){ut(e,e.modifiers),Be(99,e.modifiers?e.modifiers.end:e.pos,kt,e),Pt(),he(e.name),Pt(),Be(62,e.name.end,Et,e),Pt(),function(e){78===e.kind?be(e):he(e)}(e.moduleReference),Ct()}(r);case 258:return function(e){ut(e,e.modifiers),Be(99,e.modifiers?e.modifiers.end:e.pos,kt,e),Pt(),e.importClause&&(he(e.importClause),Pt(),Be(152,e.importClause.end,kt,e),Pt());be(e.moduleSpecifier),Ct()}(r);case 259:return function(e){e.isTypeOnly&&(Be(148,e.pos,kt,e),Pt());he(e.name),e.name&&e.namedBindings&&(Be(27,e.name.end,Et,e),Pt());he(e.namedBindings)}(r);case 260:return function(e){var t=Be(41,e.pos,Et,e);Pt(),Be(126,t,kt,e),Pt(),he(e.name)}(r);case 266:return function(e){var t=Be(41,e.pos,Et,e);Pt(),Be(126,t,kt,e),Pt(),he(e.name)}(r);case 261:return function(e){He(e)}(r);case 262:return function(e){Ge(e)}(r);case 263:return function(e){var t=Be(92,e.pos,kt,e);Pt(),e.isExportEquals?Be(62,t,Nt,e):Be(87,t,kt,e);Pt(),be(e.expression),Ct()}(r);case 264:return function(e){var t=Be(92,e.pos,kt,e);Pt(),e.isTypeOnly&&(t=Be(148,t,kt,e),Pt());e.exportClause?he(e.exportClause):t=Be(41,t,Et,e);if(e.moduleSpecifier){Pt(),Be(152,e.exportClause?e.exportClause.end:t,kt,e),Pt(),be(e.moduleSpecifier)}Ct()}(r);case 265:return function(e){He(e)}(r);case 267:return function(e){Ge(e)}(r);case 268:return;case 269:return function(e){kt("require"),Et("("),be(e.expression),Et(")")}(r);case 11:return function(e){f.writeLiteral(e.text)}(r);case 272:case 275:return function(t){if(Et("<"),e.isJsxOpeningElement(t)){var r=Ht(t.tagName,t);Ye(t.tagName),mt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Pt(),he(t.attributes),Gt(t.attributes,t),zt(r)}Et(">")}(r);case 273:case 276:return function(t){Et("</"),e.isJsxClosingElement(t)&&Ye(t.tagName);Et(">")}(r);case 277:return function(e){he(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Et,e.initializer,xe)}(r);case 278:return function(e){bt(e,e.properties,262656)}(r);case 279:return function(e){Et("{..."),be(e.expression),Et("}")}(r);case 280:return function(e){e.expression&&(Et("{"),he(e.dotDotDotToken),be(e.expression),Et("}"))}(r);case 281:return function(e){Be(81,e.pos,kt,e),Pt(),be(e.expression),Xe(e,e.statements,e.expression.end)}(r);case 282:return function(e){var t=Be(87,e.pos,kt,e);Xe(e,e.statements,t)}(r);case 283:return function(e){Pt(),Bt(e.token,kt),Pt(),bt(e,e.types,528)}(r);case 284:return function(e){var t=Be(82,e.pos,kt,e);Pt(),e.variableDeclaration&&(Be(20,t,Et,e),he(e.variableDeclaration),Be(21,e.variableDeclaration.end,Et,e),Pt());he(e.block)}(r);case 285:return function(t){he(t.name),Et(":"),Pt();var r=t.initializer;if(Er&&0==(512&e.getEmitFlags(r))){Er(e.getCommentRange(r).pos)}be(r)}(r);case 286:return function(e){he(e.name),e.objectAssignmentInitializer&&(Pt(),Et("="),Pt(),be(e.objectAssignmentInitializer))}(r);case 287:return function(e){e.expression&&(Be(25,e.pos,Et,e),be(e.expression))}(r);case 288:return function(e){he(e.name),dt(e.initializer,e.name.end,e)}(r);case 322:case 328:return function(e){Ze(e.tagName),tt(e.typeExpression),Pt(),e.isBracketed&&Et("[");he(e.name),e.isBracketed&&Et("]");et(e.comment)}(r);case 323:case 325:case 324:case 321:return Ze((i=r).tagName),tt(i.typeExpression),void et(i.comment);case 312:case 311:return function(e){Ze(e.tagName),Pt(),Et("{"),he(e.class),Et("}"),et(e.comment)}(r);case 326:return function(e){Ze(e.tagName),tt(e.constraint),Pt(),bt(e,e.typeParameters,528),et(e.comment)}(r);case 327:return function(e){Ze(e.tagName),e.typeExpression&&(298===e.typeExpression.kind?tt(e.typeExpression):(Pt(),Et("{"),B("Object"),e.typeExpression.isArrayType&&(Et("["),Et("]")),Et("}")));e.fullName&&(Pt(),he(e.fullName));et(e.comment),e.typeExpression&&308===e.typeExpression.kind&&Qe(e.typeExpression)}(r);case 320:return function(e){Ze(e.tagName),e.name&&(Pt(),he(e.name));et(e.comment),$e(e.typeExpression)}(r);case 309:return $e(r);case 308:return Qe(r);case 315:case 310:return function(e){Ze(e.tagName),et(e.comment)}(r);case 307:return function(e){if(B("/**"),e.comment)for(var t=0,r=e.comment.split(/\r\n?|\n/g);t<r.length;t++){var n=r[t];It(),Pt(),Et("*"),Pt(),B(n)}e.tags&&(1!==e.tags.length||325!==e.tags[0].kind||e.comment?bt(e,e.tags,33):(Pt(),he(e.tags[0])));Pt(),B("*/")}(r)}if(e.isExpression(r))t=1,N!==e.noEmitSubstitution&&(D=r=N(t,r));else if(e.isToken(r))return Rt(r,Et)}var i,a,o,s;if(1===t)switch(r.kind){case 8:case 9:return function(e){Fe(e,!1)}(r);case 10:case 13:case 14:return Fe(r,!1);case 78:return we(r);case 94:case 103:case 105:case 109:case 107:case 99:return void Rt(r,kt);case 196:return function(e){var t=e.elements,r=e.multiLine?65536:0;xt(e,t,8914|r)}(r);case 197:return function(t){e.forEach(t.properties,ar);var r=65536&e.getEmitFlags(t);r&&Ot();var i=t.multiLine?65536:0,a=n.languageVersion>=1&&!e.isJsonSourceFile(n)?64:0;bt(t,t.properties,526226|a|i),r&&Mt()}(r);case 198: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=Xt(t,t.expression,n),a=Xt(t,n,t.name);Kt(i,!1),28===n.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=er(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()||Et(".");t.questionDotToken?he(n):Be(n.kind,t.expression.end,Et,t);Kt(a,!1),he(t.name),zt(i,a)}(r);case 199:return function(e){be(e.expression),he(e.questionDotToken),Be(22,e.expression.end,Et,e),be(e.argumentExpression),Be(23,e.argumentExpression.end,Et,e)}(r);case 200:return function(e){be(e.expression),he(e.questionDotToken),mt(e,e.typeArguments),xt(e,e.arguments,2576)}(r);case 201:return function(e){Be(102,e.pos,kt,e),Pt(),be(e.expression),mt(e,e.typeArguments),xt(e,e.arguments,18960)}(r);case 202:return function(e){be(e.tag),mt(e,e.typeArguments),Pt(),be(e.template)}(r);case 203:return function(e){Et("<"),he(e.type),Et(">"),be(e.expression)}(r);case 204:return function(e){var t=Be(20,e.pos,Et,e),r=Ht(e.expression,e);be(e.expression),Gt(e.expression,e),zt(r),Be(21,e.expression?e.expression.end:t,Et,e)}(r);case 205:return function(e){or(e.name),je(e)}(r);case 206:return function(e){gt(e,e.decorators),ut(e,e.modifiers),Ke(e,Ie)}(r);case 207:return function(e){Be(88,e.pos,kt,e),Pt(),be(e.expression)}(r);case 208:return function(e){Be(111,e.pos,kt,e),Pt(),be(e.expression)}(r);case 209:return function(e){Be(113,e.pos,kt,e),Pt(),be(e.expression)}(r);case 210:return function(e){Be(130,e.pos,kt,e),Pt(),be(e.expression)}(r);case 211:return function(e){Bt(e.operator,Nt),function(e){var t=e.operand;return 211===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Pt();be(e.operand)}(r);case 212:return function(e){be(e.operand),Bt(e.operator,Nt)}(r);case 213: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=Xt(t,t.left,t.operatorToken),s=Xt(t,t.operatorToken,t.right);Kt(o,a),Sr(t.operatorToken.pos),Rt(t.operatorToken,100===t.operatorToken.kind?kt:Nt),Er(t.operatorToken.end,!0),Kt(s,!0),c(t.right);break;case 2:zt(o=Xt(t,t.left,t.operatorToken),s=Xt(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=x,o=D;x=t,D=void 0;var s=Se(0,1,t);s===Ce&&e.isBinaryExpression(t)?(i++,n[i]=0,r[i]=t):s(1,t),e.Debug.assert(x===t),x=a,D=o}}(r);case 214:return function(e){var t=Xt(e,e.condition,e.questionToken),r=Xt(e,e.questionToken,e.whenTrue),n=Xt(e,e.whenTrue,e.colonToken),i=Xt(e,e.colonToken,e.whenFalse);be(e.condition),Kt(t,!0),he(e.questionToken),Kt(r,!0),be(e.whenTrue),zt(t,r),Kt(n,!0),he(e.colonToken),Kt(i,!0),be(e.whenFalse),zt(n,i)}(r);case 215:return function(e){he(e.head),bt(e,e.templateSpans,262144)}(r);case 216:return function(e){Be(124,e.pos,kt,e),he(e.asteriskToken),pt(e.expression)}(r);case 217:return function(e){Be(25,e.pos,Et,e),be(e.expression)}(r);case 218:return function(e){or(e.name),We(e)}(r);case 219:return;case 221:return function(e){be(e.expression),e.type&&(Pt(),kt("as"),Pt(),he(e.type))}(r);case 222:return function(e){be(e.expression),Nt("!")}(r);case 223:return function(e){Lt(e.keywordToken,e.pos,Et),Et("."),he(e.name)}(r);case 270:return function(e){he(e.openingElement),bt(e,e.children,262144),he(e.closingElement)}(r);case 271:return function(e){Et("<"),Ye(e.tagName),mt(e,e.typeArguments),Pt(),he(e.attributes),Et("/>")}(r);case 274:return function(e){he(e.openingFragment),bt(e,e.children,262144),he(e.closingFragment)}(r);case 331:return function(e){be(e.expression)}(r);case 332:return function(e){xt(e,e.elements,528)}(r)}}function ke(t,r){e.Debug.assert(x===r||D===r),Te(1,t,r)(t,D),e.Debug.assert(x===r||D===r)}function Ne(r){var i=!1,a=295===r.kind?r:void 0;if(!a||M!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var u=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,l=e.isSourceFile(u)?u:e.isUnparsedSource(u)?void 0:n,d=t.noEmitHelpers||!!l&&e.hasRecordedExternalHelpers(l),_=(e.isSourceFile(u)||e.isUnparsedSource(u))&&!m,p=e.isUnparsedSource(u)?u.helpers:Ae(u);if(p)for(var g=0,y=p;g<y.length;g++){var h=y[g];if(h.scoped){if(a)continue}else{if(d)continue;if(_){if(L.get(h.name))continue;L.set(h.name,!0)}}var v=ie();"string"==typeof h.text?Jt(h.text):Jt(h.text(pr)),j&&j.sections.push({pos:v,end:f.getTextPos(),kind:"emitHelpers",data:h.name}),i=!0}}return i}}function Ae(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function Fe(r,n){var i=er(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?function(e){f.writeStringLiteral(e)}(i):function(e){f.writeLiteral(e)}(i)}function Pe(e){f.rawWrite(e.parent.text.substring(e.pos,e.end))}function we(e){(e.symbol?Tt:B)(Zt(e,!1),e.symbol),bt(e,e.typeArguments,53776)}function Ie(e){yt(e,e.typeParameters),vt(e,e.parameters),lt(e.type),Pt(),he(e.equalsGreaterThanToken)}function Oe(t,r){Be(18,t.pos,Et,t);var n=r||1&e.getEmitFlags(t)?768:129;bt(t,t.statements,n),Be(19,t.statements.end,Et,t,!!(1&n))}function Me(e){e?Et(";"):Ct()}function Le(e,t){var r=Be(114,t,kt,e);Pt(),Be(20,r,Et,e),be(e.expression),Be(21,e.expression.end,Et,e)}function Re(e){void 0!==e&&(247===e.kind?he(e):be(e))}function Be(t,r,i,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,u=r;if(c&&n&&(r=e.skipTrivia(n.text,r)),Sr&&c&&a.pos!==u){var l=o&&n&&!e.positionsAreOnSameLine(u,r,n);l&&Ot(),Sr(u),l&&Mt()}return r=Bt(t,i,r),Er&&c&&a.end!==r&&Er(r,!0),r}function je(e){gt(e,e.decorators),ut(e,e.modifiers),kt("function"),he(e.asteriskToken),Pt(),ve(e.name),Ke(e,ze)}function Je(e,t){Ue(t)}function Ke(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&Ot(),tr(t),e.forEach(t.parameters,ir),ir(t.body),r(t),E?E(4,n,Je):Ue(n),rr(t),i&&Mt()}else r(t),Pt(),be(n);else r(t),Ct()}function ze(e){yt(e,e.typeParameters),ht(e,e.parameters),lt(e.type)}function Ue(t){Pt(),Et("{"),Ot();var r=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,n))return!1;if(Ut(t,t.statements,2)||qt(t,t.statements,2))return!1;for(var r,i=0,a=t.statements;i<a.length;i++){var o=a[i];if(Vt(r,o,2)>0)return!1;r=o}return!0}(t)?Ve:qe;hr?hr(t,t.statements,r):r(t),Mt(),Lt(19,t.statements.end,Et,t)}function Ve(e){qe(e,!0)}function qe(e,t){var r=it(e.statements),n=f.getTextPos();Ne(e),0===r&&n===f.getTextPos()&&t?(Mt(),bt(e,e.statements,768),Ot()):bt(e,e.statements,1,r)}function We(t){e.forEach(t.members,ar),gt(t,t.decorators),ut(t,t.modifiers),kt("class"),t.name&&(Pt(),ve(t.name));var r=65536&e.getEmitFlags(t);r&&Ot(),yt(t,t.typeParameters),bt(t,t.heritageClauses,0),Pt(),Et("{"),bt(t,t.members,129),Et("}"),r&&Mt()}function He(e){Et("{"),bt(e,e.elements,525136),Et("}")}function Ge(e){e.propertyName&&(he(e.propertyName),Pt(),Be(126,e.propertyName.end,kt,e),Pt()),he(e.name)}function Ye(e){78===e.kind?be(e):he(e)}function Xe(t,r,i){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],n))?(Lt(58,i,Et,t),Pt(),a&=-130):Be(58,i,Et,t),bt(t,r,a)}function Qe(t){bt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function $e(t){t.typeParameters&&bt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&bt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(It(),Pt(),Et("*"),Pt(),he(t.type))}function Ze(e){Et("@"),he(e)}function et(e){e&&(Pt(),B(e))}function tt(e){e&&(Pt(),Et("{"),he(e.type),Et("}"))}function rt(e,t,r,i){if(e){var a=f.getTextPos();Ft('/// <reference no-default-lib="true"/>'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"no-default-lib"}),It()}if(n&&n.moduleName&&(Ft('/// <amd-module name="'+n.moduleName+'" />'),It()),n&&n.amdDependencies)for(var o=0,s=n.amdDependencies;o<s.length;o++){var c=s[o];c.name?Ft('/// <amd-dependency name="'+c.name+'" path="'+c.path+'" />'):Ft('/// <amd-dependency path="'+c.path+'" />'),It()}for(var u=0,l=t;u<l.length;u++){var d=l[u];a=f.getTextPos();Ft('/// <reference path="'+d.fileName+'" />'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"reference",data:d.fileName}),It()}for(var _=0,p=r;_<p.length;_++){d=p[_],a=f.getTextPos();Ft('/// <reference types="'+d.fileName+'" />'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"type",data:d.fileName}),It()}for(var g=0,m=i;g<m.length;g++){d=m[g],a=f.getTextPos();Ft('/// <reference lib="'+d.fileName+'" />'),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"lib",data:d.fileName}),It()}}function nt(t){var r=t.statements;tr(t),e.forEach(t.statements,ir),Ne(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&rt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),bt(t,r,1,-1===n?r.length:n),rr(t)}function it(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,fe(r)),It();var c=f.getTextPos();he(s),i&&j&&j.sections.push({pos:c,end:f.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function at(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){It();var a=f.getTextPos();he(i),j&&j.sections.push({pos:a,end:f.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function ot(t){if(e.isSourceFile(t))it(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++){at(i[n].prologues,r)}for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];it(s.statements,s,r,!0)}fe(void 0)}}function st(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return Ft(r),It(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),st(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++){if(st(s[o]))return!0}}}function ct(e,t){if(e){var r=B;B=t,he(e),B=r}}function ut(e,t){t&&t.length&&(bt(e,t,262656),Pt())}function lt(e){e&&(Et(":"),Pt(),he(e))}function dt(e,t,r){e&&(Pt(),Be(62,t,Nt,r),Pt(),be(e))}function _t(e){e&&(Pt(),he(e))}function pt(e){e&&(Pt(),be(e))}function ft(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Pt(),he(r)):(It(),Ot(),e.isEmptyStatement(r)?De(5,r):he(r),Mt())}function gt(e,t){bt(e,t,2146305)}function mt(e,t){bt(e,t,53776)}function yt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return mt(t,t.typeArguments);bt(t,r,53776)}function ht(e,t){bt(e,t,2576)}function vt(t,r){!function(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}(t,r)?ht(t,r):bt(t,r,528)}function bt(e,t,r,n,i){St(he,e,t,r,n,i)}function xt(e,t,r,n,i){St(be,e,t,r,n,i)}function Dt(e){switch(60&e){case 0:break;case 16:Et(",");break;case 4:Pt(),Et("|");break;case 32:Pt(),Et("*"),Pt();break;case 8:Pt(),Et("&")}}function St(t,r,a,o,s,c){void 0===s&&(s=0),void 0===c&&(c=a?a.length-s:0);var u=void 0===a;if(!(u&&16384&o)){var l=void 0===a||s>=a.length||0===c;if(l&&32768&o)return A&&A(a),void(F&&F(a));if(15360&o&&(Et(function(e){return i[15360&e][0]}(o)),l&&!u&&Er(a.pos,!0)),A&&A(a),l)!(1&o)||R&&e.rangeIsOnSingleLine(r,n)?256&o&&!(524288&o)&&Pt():It();else{var d=0==(262144&o),_=d,f=Ut(r,a,o);f?(It(f),_=!1):256&o&&Pt(),128&o&&Ot();for(var g=void 0,m=void 0,y=!1,h=0;h<c;h++){var v=a[s+h];if(32&o)It(),Dt(o);else if(g){60&o&&g.end!==r.end&&Sr(g.end),Dt(o),se(m);var b=Vt(g,v,o);b>0?(0==(131&o)&&(Ot(),y=!0),It(b),_=!1):g&&512&o&&Pt()}if(m=oe(v),_){if(Er)Er(e.getCommentRange(v).pos)}else _=d;p=v.pos,t(v),y&&(Mt(),y=!1),g=v}var x=64&o&&a.hasTrailingComma;16&o&&x&&Et(","),g&&60&o&&g.end!==r.end&&!(1024&e.getEmitFlags(g))&&Sr(g.end),128&o&&Mt(),se(m);var D=qt(r,a,o);D?It(D):2097408&o&&Pt()}F&&F(a),15360&o&&(l&&!u&&Sr(a.end),Et(function(e){return i[15360&e][1]}(o)))}}function Tt(e,t){f.writeSymbol(e,t)}function Et(e){f.writePunctuation(e)}function Ct(){f.writeTrailingSemicolon(";")}function kt(e){f.writeKeyword(e)}function Nt(e){f.writeOperator(e)}function At(e){f.writeParameter(e)}function Ft(e){f.writeComment(e)}function Pt(){f.writeSpace(" ")}function wt(e){f.writeProperty(e)}function It(e){void 0===e&&(e=1);for(var t=0;t<e;t++)f.writeLine(t>0)}function Ot(){f.increaseIndent()}function Mt(){f.decreaseIndent()}function Lt(t,r,n,i){return V?Bt(t,n,r):function(t,r,n,i,a){if(V||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||h;i=Pr(u,c?c.pos:i),0==(128&s)&&i>=0&&Ir(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&Ir(u,i);return i}(i,t,n,r,Bt)}function Rt(t,r){P&&P(t),r(e.tokenToString(t.kind)),w&&w(t)}function Bt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function jt(t,r,n){if(1&e.getEmitFlags(t))Pt();else if(R){var i=Xt(t,r,n);i?It(i):Pt()}else It()}function Jt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(It(),B(s))}}function Kt(e,t){e?(Ot(),It(e)):t&&Pt()}function zt(e,t){e&&Mt(),t&&Mt()}function Ut(t,r,i){if(2&i||R){if(65536&i)return 1;var a=r[0];if(void 0===a)return e.rangeIsOnSingleLine(t,n)?0:1;if(a.pos===p)return 0;if(11===a.kind)return 0;if(!(e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)||a.parent&&e.getOriginalNode(a.parent)!==e.getOriginalNode(t)))return R?Wt((function(r){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(a.pos,t.pos,n,r)})):e.rangeStartPositionsAreOnSameLine(t,a,n)?0:1;if(Yt(a,i))return 1}return 1&i?1:0}function Vt(t,r,i){if(2&i||R){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r)&&t.parent===r.parent)return R?Wt((function(i){return e.getLinesBetweenRangeEndAndRangeStart(t,r,n,i)})):e.rangeEndIsOnSameLineAsRangeStart(t,r,n)?0:1;if(Yt(t,i)||Yt(r,i))return 1}else if(e.getStartsOnNewLine(r))return 1;return 1&i?1:0}function qt(t,r,i){if(2&i||R){if(65536&i)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return e.rangeIsOnSingleLine(t,n)?0:1;if(!(e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)||a.parent&&a.parent!==t)){if(R){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return Wt((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,n,r)}))}return e.rangeEndPositionsAreOnSameLine(t,a,n)?0:1}if(Yt(a,i))return 1}return 1&i&&!(131072&i)?1:0}function Wt(t){e.Debug.assert(!!R);var r=t(!0);return 0===r?t(!1):r}function Ht(e,t){var r=R&&Ut(t,[e],0);return r&&Kt(r,!1),!!r}function Gt(e,t){var r=R&&qt(t,[e],0);r&&It(r)}function Yt(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function Xt(t,r,i){return 131072&e.getEmitFlags(t)?0:(t=$t(t),r=$t(r),i=$t(i),e.getStartsOnNewLine(i)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(i)?0:R?Wt((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,i,n,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,i,n)?0:1)}function Qt(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,n)}function $t(t){for(;204===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Zt(t,r){return e.isGeneratedIdentifier(t)?sr(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?Zt(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(n,t,r):t.text}function er(t,r,i){if(10===t.kind&&t.textSourceNode){var a=t.textSourceNode;if(e.isIdentifier(a)||e.isNumericLiteral(a)){var o=e.isNumericLiteral(a)?a.text:Zt(a);return i?'"'+e.escapeJsxAttributeString(o)+'"':r||16777216&e.getEmitFlags(t)?'"'+e.escapeString(o)+'"':'"'+e.escapeNonAsciiString(o)+'"'}return er(a,r,i)}return e.getLiteralText(t,n,r,i)}function tr(t){t&&524288&e.getEmitFlags(t)||(u.push(l),l=0,d.push(_))}function rr(t){t&&524288&e.getEmitFlags(t)||(l=u.pop(),_=d.pop())}function nr(t){_&&_!==e.lastOrUndefined(d)||(_=new e.Set),_.add(t)}function ir(t){if(t)switch(t.kind){case 227:e.forEach(t.statements,ir);break;case 242:case 240:case 232:case 233:ir(t.statement);break;case 231:ir(t.thenStatement),ir(t.elseStatement);break;case 234:case 236:case 235:ir(t.initializer),ir(t.statement);break;case 241:ir(t.caseBlock);break;case 255:e.forEach(t.clauses,ir);break;case 281:case 282:e.forEach(t.statements,ir);break;case 244:ir(t.tryBlock),ir(t.catchClause),ir(t.finallyBlock);break;case 284:ir(t.variableDeclaration),ir(t.block);break;case 229:ir(t.declarationList);break;case 247:e.forEach(t.declarations,ir);break;case 246:case 159:case 195:case 249:or(t.name);break;case 248:or(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,ir),ir(t.body));break;case 193:case 194:e.forEach(t.elements,ir);break;case 258:ir(t.importClause);break;case 259:or(t.name),ir(t.namedBindings);break;case 260:case 266:or(t.name);break;case 261:e.forEach(t.elements,ir);break;case 262:or(t.propertyName||t.name)}}function ar(e){if(e)switch(e.kind){case 285:case 286:case 162:case 164:case 166:case 167:or(e.name)}}function or(t){t&&(e.isGeneratedIdentifier(t)?sr(t):e.isBindingPattern(t)&&ir(t))}function sr(t){if(4==(7&t.autoGenerateFlags))return cr(function(t){var r=t.autoGenerateId,n=t,i=n.original;for(;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}(t),t.autoGenerateFlags);var r=t.autoGenerateId;return s[r]||(s[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return dr(0,!!(8&t.autoGenerateFlags));case 2:return dr(268435456,!!(8&t.autoGenerateFlags));case 3:return _r(e.idText(t),32&t.autoGenerateFlags?lr:ur,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function cr(t,r){var n=e.getNodeId(t);return o[n]||(o[n]=function(t,r){switch(t.kind){case 78:return _r(Zt(t),ur,!!(16&r),!!(8&r));case 253:case 252:return function(t){var r=Zt(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:_r(r)}(t);case 258:case 264:return function(t){var r=e.getExternalModuleName(t);return _r(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 248:case 249:case 263:return _r("default");case 218:return _r("class");case 164:case 166:case 167:return function(t){if(e.isIdentifier(t.name))return cr(t.name);return dr(0)}(t);case 157:return dr(0,!0);default:return dr(0)}}(t,r))}function ur(e){return lr(e)&&!c.has(e)&&!(_&&_.has(e))}function lr(t){return!n||e.isFileLevelUniqueName(n,t,S)}function dr(e,t){if(e&&!(l&e)&&ur(r=268435456===e?"_i":"_n"))return l|=e,t&&nr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n)if(ur(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&nr(r),r}}function _r(e,t,r,n){if(void 0===t&&(t=ur),r&&t(e))return n?nr(e):c.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?nr(a):c.add(a),a;i++}}function pr(e){return _r(e,lr,!0)}function fr(t,r){e.Debug.assert(x===r||D===r),$(),Y=!1;var n=e.getEmitFlags(r),i=e.getCommentRange(r),a=i.pos,o=i.end,s=330!==r.kind,c=a<0||0!=(512&n)||11===r.kind,u=o<0||0!=(1024&n)||11===r.kind,l=W,d=H,_=G;(a>0||o>0)&&a!==o&&(c||vr(a,s),(!c||a>=0&&0!=(512&n))&&(W=a),(!u||o>=0&&0!=(1024&n))&&(H=o,247===r.kind&&(G=o))),e.forEach(e.getSyntheticLeadingComments(r),gr),Z();var p=Te(2,t,r);2048&n?(X=!0,p(t,r),X=!1):p(t,r),$(),e.forEach(e.getSyntheticTrailingComments(r),mr),(a>0||o>0)&&a!==o&&(W=l,H=d,G=_,!u&&s&&function(e){Nr(e,Tr)}(o)),Z(),e.Debug.assert(x===r||D===r)}function gr(e){(e.hasLeadingNewline||2===e.kind)&&f.writeLine(),yr(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function mr(e){f.isAtStartOfLine()||f.writeSpace(" "),yr(e),e.hasTrailingNewLine&&f.writeLine()}function yr(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,O)}function hr(t,r,i){$();var a=r.pos,o=r.end,s=e.getEmitFlags(t),c=X||o<0||0!=(1024&s);a<0||0!=(512&s)||function(t){var r=e.emitDetachedComments(n.text,ye(),f,Ar,t,O,X);r&&(b?b.push(r):b=[r])}(r),Z(),2048&s&&!X?(X=!0,i(t),X=!1):i(t),$(),c||(vr(r.end,!0),Y&&!f.isAtStartOfLine()&&f.writeLine()),Z()}function vr(e,t){Y=!1,t?kr(e,Dr):0===e&&kr(e,br)}function br(t,r,i,a,o){(function(t,r){return e.isRecognizedTripleSlashComment(n.text,t,r)})(t,r)&&Dr(t,r,i,a,o)}function xr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function Dr(t,r,i,a,o){xr(n.text,t)&&(Y||(e.emitNewLineBeforeLeadingCommentOfPosition(ye(),f,o,t),Y=!0),wr(t),e.writeCommentRange(n.text,ye(),f,t,r,O),wr(r),a?f.writeLine():3===i&&f.writeSpace(" "))}function Sr(e){X||-1===e||vr(e,!0)}function Tr(t,r,i,a){xr(n.text,t)&&(f.isAtStartOfLine()||f.writeSpace(" "),wr(t),e.writeCommentRange(n.text,ye(),f,t,r,O),wr(r),a&&f.writeLine())}function Er(e,t){X||($(),Nr(e,t?Tr:Cr),Z())}function Cr(t,r,i,a){wr(t),e.writeCommentRange(n.text,ye(),f,t,r,O),wr(r),a?f.writeLine():f.writeSpace(" ")}function kr(t,r){!n||-1!==W&&t===W||(function(t){return void 0!==b&&e.last(b).nodePos===t}(t)?function(t){var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0;e.forEachLeadingCommentRange(n.text,r,t,r)}(r):e.forEachLeadingCommentRange(n.text,t,r,t))}function Nr(t,r){n&&(-1===H||t!==H&&t!==G)&&e.forEachTrailingCommentRange(n.text,t,r)}function Ar(t,r,i,a,o,s){xr(n.text,a)&&(wr(a),e.writeCommentRange(t,r,i,a,o,s),wr(o))}function Fr(t,r){e.Debug.assert(x===r||D===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?h:c,l=e.getEmitFlags(r);330!==r.kind&&0==(16&l)&&o>=0&&Ir(u,Pr(u,o)),64&l?(V=!0,n(t,r),V=!1):n(t,r),330!==r.kind&&0==(32&l)&&s>=0&&Ir(u,s)}e.Debug.assert(x===r||D===r)}function Pr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function wr(t){if(!(V||e.positionIsSynthesized(t)||Mr(h))){var r=e.getLineAndCharacterOfPosition(h,t),n=r.line,i=r.character;y.addMapping(f.getLine(),f.getColumn(),q,n,i,void 0)}}function Ir(e,t){if(e!==h){var r=h;Or(e),wr(t),Or(r)}else wr(t)}function Or(e){V||(h=e,Mr(e)||(q=y.addSource(e.fileName),t.inlineSources&&y.setSourceContent(q,e.text)))}function Mr(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<c.length;o++){y(t,c[o],r,i)}i(s(t.options))}return a()},e.getOutputFileNames=function(t,r,n){r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=g(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?m(t,a):y(t,r,n,a),o()},e.getFirstProjectOutput=function(t,r){if(e.outFile(t.options)){var n=c(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project "+t.options.configFilePath+" expected to have at least one output")}for(var i=0,a=t.fileNames;i<a.length;i++){var o=a[i];if(!e.fileExtensionIs(o,".d.ts")){if(n=f(o,t,r))return n;if(!e.fileExtensionIs(o,".json")&&e.getEmitDeclarations(t.options))return p(o,t,r)}}var u=s(t.options);return u||e.Debug.fail("project "+t.options.configFilePath+" expected to have at least one output")},e.emitFiles=h,e.getBuildInfoText=v,e.getBuildInfo=b,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=function(t,n,i,a){var o=c(t.options,!1),s=o.buildInfoPath,u=o.jsFilePath,l=o.sourceMapFilePath,d=o.declarationFilePath,_=o.declarationMapPath,p=n.readFile(e.Debug.checkDefined(s));if(!p)return s;var f=n.readFile(e.Debug.checkDefined(u));if(!f)return u;var g=l&&n.readFile(l);if(l&&!g||t.options.inlineSourceMap)return l||"inline sourcemap decoding";var m=d&&n.readFile(d);if(d&&!m)return d;var y=_&&n.readFile(_);if(_&&!y||t.options.inlineSourceMap)return _||"inline sourcemap decoding";var x=b(p);if(!x.bundle||!x.bundle.js||m&&!x.bundle.dts)return s;var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(s,n.getCurrentDirectory())),S=e.createInputFiles(f,m,l,g,_,y,u,d,s,x,!0),T=[],E=e.createPrependNodes(t.projectReferences,i,(function(e){return n.readFile(e)})),C=function(t,r,n){var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(function(e){return e.file}));return t.sourceFiles.map((function(t,i){var a,s,c=null==o?void 0:o.get(i),u=null==c?void 0:c.directives.map((function(t){var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),l=e.factory.createToken(1),d=e.factory.createSourceFile(null!=u?u:[],l,0);return d.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),d.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(d,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(d.statements,d),e.setTextRangePosWidth(l,d.end,0),e.setParent(l,d),d}))}(x.bundle,D,n),k={getPrependNodes:e.memoize((function(){return r(E,[S])})),getCanonicalFileName:n.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(x.bundle.commonSourceDirectory,D)},getCompilerOptions:function(){return t.options},getCurrentDirectory:function(){return n.getCurrentDirectory()},getNewLine:function(){return n.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return C},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(t,r,n){switch(t){case u:if(f===r)return;break;case l:if(g===r)return;break;case s:var i=b(r);i.program=x.program;var a=x.bundle,o=a.js,c=a.dts,p=a.sourceFiles;return i.bundle.js.sources=o.sources,c&&(i.bundle.dts.sources=c.sources),i.bundle.sourceFiles=p,void T.push({name:t,text:v(i),writeByteOrderMark:n});case d:if(m===r)return;break;case _:if(y===r)return;break;default:e.Debug.fail("Unexpected path: "+t)}T.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:function(e){return n.readFile(e)},fileExists:function(e){return n.fileExists(e)},useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap()};return h(e.notImplementedResolver,k,void 0,e.getTransformers(t.options,a)),T},function(e){e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"}(t||(t={})),e.createPrinter=x,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(n||(n={}))}(u||(u={})),function(e){var t;function r(e,t,r,n,i){return e.watchFile(t,r,n,i)}function n(e,t,n,i,a,o){return r(e,t,(function(e,t){return n(e,t,o)}),i,a)}function i(e,t,r,n,i){return e.watchDirectory(t,r,0!=(1&n),i)}function a(e,r){switch(e){case t.None:return r;case t.TriggerOnly:return c;case t.Verbose:return r===i?s:o}}function o(e,t,r,n,i,a,o,s,l,d,_,p){d(_+":: Added:: "+u(t,n,i,o,s,p));var f=c(e,t,r,n,i,a,o,s,l,d,_,p);return{close:function(){d(_+":: Close:: "+u(t,n,i,o,s,p)),f.close()}}}function s(t,r,n,i,a,o,s,l,d,_,p,f){var g=p+":: Added:: "+u(r,i,a,s,l,f);_(g);var m=e.timestamp(),y=c(t,r,n,i,a,o,s,l,d,_,p,f),h=e.timestamp()-m;return _("Elapsed:: "+h+"ms "+g),{close:function(){var t=p+":: Close:: "+u(r,i,a,s,l,f);_(t);var n=e.timestamp();y.close();var o=e.timestamp()-n;_("Elapsed:: "+o+"ms "+t)}}}function c(t,r,n,i,a,o,s,c,l,d,_,p){return l(t,r,(function(t,l){var f=_+":: Triggered with "+t+" "+(void 0!==l?l:"")+":: "+u(r,i,a,s,c,p);d(f);var g=e.timestamp();n(t,l,o);var m=e.timestamp()-g;d("Elapsed:: "+m+"ms "+f)}),i,a)}function u(e,t,r,n,i,a){return"WatchInfo: "+e+" "+t+" "+JSON.stringify(r)+" "+(a?a(n,i):void 0===i?n:n+" "+i)}function l(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:function(e){var r=c(o(e));return r&&_(r.files,u(e))||t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&function(r){var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)},getDirectories:function(e){var r=o(e),n=l(e,r);if(n)return n.directories.slice();return t.getDirectories(e)},readDirectory:function(i,a,s,c,u){var d=o(i),_=l(i,d);if(_)return e.matchFiles(i,a,s,c,n,r,u,(function(t){var r=o(t);if(r===d)return _;return l(t,r)||e.emptyFileSystemEntries}),f);return t.readDirectory(i,a,s,c,u)},createDirectory:t.createDirectory&&function(e){var r=c(o(e)),n=u(e);r&&p(r.directories,n,!0);t.createDirectory(e)},writeFile:t.writeFile&&function(e,r,n){var i=c(o(e));i&&g(i,u(e),!0);return t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(s(r))return void m();var n=c(r);if(!n)return;if(!t.directoryExists)return void m();var i=u(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};a.directoryExists||_(n.directories,i)?m():g(n,i,a.fileExists);return a},addOrDeleteFile:function(t,r,n){if(n===e.FileWatcherEventKind.Changed)return;var i=c(r);i&&g(i,u(t),n===e.FileWatcherEventKind.Created)},clearCache:m,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function u(t){return e.getBaseFileName(e.normalizePath(t))}function l(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return function(r,n){var a={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),u)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),a),a}(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function d(e,t){return a(e)===a(t)}function _(t,r){return e.some(t,(function(e){return d(e,r)}))}function p(t,r,n){if(_(t,r)){if(!n)return e.filterMutate(t,(function(e){return!d(e,r)}))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function g(e,t,r){p(e.files,t,r)}function m(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,n){function i(e,t){return{watcher:n(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:i,onDeleteValue:l,onExistingValue:function(e,r,n){if(e.flags===r)return;e.watcher.close(),t.set(n,i(n,r))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.configFileSpecs,c=t.program,u=t.extraFileExtensions,l=t.currentDirectory,d=t.useCaseSensitiveFileNames,_=t.writeLog,p=e.removeIgnoredPath(i);if(!p)return _("Project: "+a+" Detected ignored path: "+n),!0;if((i=p)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,u))return _("Project: "+a+" Detected file add/remove of non supported extension: "+n),!0;if(e.isExcludedFile(n,s,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),d,l))return _("Project: "+a+" Detected excluded file: "+n),!0;if(!c)return!1;if(o.outFile||o.outDir)return!1;if(e.fileExtensionIs(i,".d.ts")){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensions))return!1;var f=e.removeFileExtension(i),g=function(e){return!!e.getState}(c)?c.getProgramOrUndefined():c;return!(!m(f+".ts")&&!m(f+".tsx"))&&(_("Project: "+a+" Detected output file: "+n),!0);function m(e){return g?!!g.getSourceFileByPath(e):c.getState().fileInfos.has(e)}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(o,s,c){return function(r,i,o,s,c){var u=a(r,s),l=r===t.None?n:u,d=a(r,c);r===t.Verbose&&e.sysLog===e.noop&&e.setSysLog((function(e){return i(e)}));return{watchFile:function(e,t,r,n,a,c,l){return u(e,t,r,n,a,void 0,c,l,s,i,"FileWatcher",o)},watchFilePath:function(e,t,r,n,a,c,u,d){return l(e,t,r,n,a,c,u,d,s,i,"FileWatcher",o)},watchDirectory:function(e,t,r,n,a,s,u){return d(e,t,r,n,a,void 0,s,u,c,i,"DirectoryWatcher",o)}}}(o,s,c,r,i)},e.getFallbackOptions=function(t){var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=l}(u||(u={})),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function n(t,r,n){var i;return e.forEach(t,(function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a}))?"":i?e.getPathFromPathComponents(i):r}function i(e,t){return a(e,t)}function a(t,r,n){void 0===n&&(n=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames);function s(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var c=e.getNewLineCharacter(t,(function(){return n.newLine})),u=n.realpath&&function(e){return n.realpath(e)},l={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=l.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:s,getDefaultLibFileName:function(t){return e.combinePaths(s(),e.getDefaultLibFileName(t))},writeFile:function(r,o,s,c){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,s,(function(r,a,o){return function(r,a,o){if(!e.isWatchSet(t)||!n.createHash||!n.getModifiedTime)return void n.writeFile(r,a,o);i||(i=new e.Map);var s=n.createHash(a),c=n.getModifiedTime(r);if(c){var u=i.get(r);if(u&&u.byteOrderMark===o&&u.hash===s&&u.mtime.getTime()===c.getTime())return}n.writeFile(r,a,o);var l=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:s,byteOrderMark:o,mtime:l})}(r,a,o)}),(function(e){return(l.createDirectory||n.createDirectory)(e)}),(function(e){return t=e,!!a.has(t)||!!(l.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){c&&c(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return c},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+c)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:u,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)},createHash:e.maybeBind(n,n.createHash)};return l}function o(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+_(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),(function(e){return r.getCanonicalFileName(e)}))+"("+(a+1)+","+(o+1)+"): "+n}return n}var s;e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0}))},e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=n,e.createCompilerHost=i,e.createCompilerHostWorker=a,e.changeCompilerHostLikeToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,u=new e.Map,l=new e.Map,d=new e.Map,_=new e.Map,p=function(e,r){var n=i.call(t,r);return u.set(e,void 0!==n&&n),n};t.readFile=function(n){var a=r(n),o=u.get(a);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?p(a,n):i.call(t,n)};var f=n?function(t,i,a,o){var s=r(t),c=_.get(s);if(c)return c;var u=n(t,i,a,o);return u&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&_.set(s,u),u}:void 0;return t.fileExists=function(e){var n=r(e),i=l.get(n);if(void 0!==i)return i;var o=a.call(t,e);return l.set(n,!!o),o},c&&(t.writeFile=function(e,n,i,a,o){var s=r(e);l.delete(s);var d=u.get(s);if(void 0!==d&&d!==n)u.delete(s),_.delete(s);else if(f){var p=_.get(s);p&&p.text!==n&&_.delete(s)}c.call(t,e,n,i,a,o)}),o&&s&&(t.directoryExists=function(e){var n=r(e),i=d.get(n);if(void 0!==i)return i;var a=o.call(t,e);return d.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);d.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,getSourceFileWithCache:f,readFileWithCache:function(e){var t=r(e),n=u.get(t);return void 0!==n?!1!==n?n:void 0:p(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++){r+=o(i[n],t)}return r},e.formatDiagnostic=o,function(e){e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan=""}(s=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));function c(t){switch(t){case e.DiagnosticCategory.Error:return s.Red;case e.DiagnosticCategory.Warning:return s.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return s.Blue}}function u(e,t){return t+e+""}function l(t,r,n,i,a,o){var s=e.getLineAndCharacterOfPosition(t,r),c=s.line,l=s.character,d=e.getLineAndCharacterOfPosition(t,r+n),_=d.line,p=d.character,f=e.getLineAndCharacterOfPosition(t,t.text.length).line,g=_-c>=4,m=(_+1+"").length;g&&(m=Math.max("...".length,m));for(var y="",h=c;h<=_;h++){y+=o.getNewLine(),g&&c+1<h&&h<_-1&&(y+=i+u(e.padLeft("...",m),"")+" "+o.getNewLine(),h=_-1);var v=e.getPositionOfLineAndCharacter(t,h,0),b=h<f?e.getPositionOfLineAndCharacter(t,h+1,0):t.text.length,x=t.text.slice(v,b);if(x=(x=x.replace(/\s+$/g,"")).replace("\t"," "),y+=i+u(e.padLeft(h+1+"",m),"")+" ",y+=x+o.getNewLine(),y+=i+u(e.padLeft("",m),"")+" ",y+=a,h===c){var D=h===_?p:void 0;y+=x.slice(0,l).replace(/\S/g," "),y+=x.slice(l,D).replace(/./g,"~")}else y+=h===_?x.slice(0,p).replace(/./g,"~"):x.replace(/./g,"~");y+=""}return y}function d(t,r,n,i){void 0===i&&(i=u);var a=e.getLineAndCharacterOfPosition(t,r),o=a.line,c=a.character,l="";return l+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(function(e){return n.getCanonicalFileName(e)})):t.fileName,s.Cyan),l+=":",l+=i(""+(o+1),s.Yellow),l+=":",l+=i(""+(c+1),s.Yellow)}function _(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+=" "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++){i+=_(s[o],r,n)}return i}function p(t,r,n,i){if(0===t.length)return[];for(var a=[],o=new e.Map,s=0,c=t;s<c.length;s++){var u=c[s],l=void 0;o.has(u)?l=o.get(u):o.set(u,l=i(u,r,n)),a.push(l)}return a}function f(t,n,i,a){var o=t.getCompilerOptions();if(o.noEmit)return t.getSemanticDiagnostics(n,a),n||e.outFile(o)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(i,a);if(o.noEmitOnError){var s=r(t.getOptionsDiagnostics(a),t.getSyntacticDiagnostics(n,a),t.getGlobalDiagnostics(a),t.getSemanticDiagnostics(n,a));if(0===s.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(s=t.getDeclarationDiagnostics(void 0,a)),s.length){var c;if(!n&&!e.outFile(o)){var u=t.emitBuildInfo(i,a);u.diagnostics&&(s=r(s,u.diagnostics)),c=u.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}}}function g(t,r){return e.filter(t,(function(e){return!e.skippedOn||!r[e.skippedOn]}))}function m(t,r){return void 0===r&&(r=t),{fileExists:function(e){return r.fileExists(e)},readDirectory:function(t,n,i,a,o){return e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)},readFile:function(e){return r.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function y(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),u=c.jsFilePath,l=c.sourceMapFilePath,d=c.declarationFilePath,_=c.declarationMapPath,p=c.buildInfoPath,f=e.createInputFiles(n,u,l,d,_,p);(i||(i=[])).push(f)}}return i||e.emptyArray}function h(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function v(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function b(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((function(e){return e.text})),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}e.formatColorAndReset=u,e.formatLocation=d,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var n="",i=0,a=t;i<a.length;i++){var o=a[i];if(o.file)n+=d(m=o.file,y=o.start,r),n+=" - ";if(n+=u(e.diagnosticCategoryName(o),c(o.category)),n+=u(" TS"+o.code+": ",s.Grey),n+=_(o.messageText,r.getNewLine()),o.file&&(n+=r.getNewLine(),n+=l(o.file,o.start,o.length,"",c(o.category),r),o.relatedInformation)){n+=r.getNewLine();for(var p=0,f=o.relatedInformation;p<f.length;p++){var g=f[p],m=g.file,y=g.start,h=g.length,v=g.messageText;m&&(n+=r.getNewLine(),n+=" "+d(m,y,r),n+=l(m,y,h," ",s.Cyan,r)),n+=r.getNewLine(),n+=" "+_(v,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=_,e.loadWithLocalCache=p,e.inferredTypesContainingFile="__inferred type names__.ts",e.isProgramUptoDate=function(t,r,n,i,a,o,s,c){if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),c,(function(r,n,i){if(!e.projectReferenceIsEqualTo(r,n))return!1;return function t(r,n){if(r)return!!e.contains(u,r)||!!d(r.sourceFile)&&((u||(u=[])).push(r),!e.forEach(r.references,(function(e,n){return!t(e,r.commandLine.projectReferences[n])})));return!a(h(n))}(t.getResolvedProjectReferences()[i],r)})))return!1;if(t.getSourceFiles().some((function(e){return!d(e)||o(e.path)})))return!1;if(t.getMissingFilePaths().some(a))return!1;var l=t.getCompilerOptions();return!!e.compareDataObjects(l,n)&&(!l.configFile||!n.configFile||l.configFile.text===n.configFile.text);function d(e){return e.version===i(e.resolvedPath,e.fileName)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?r(e.options.configFile.parseDiagnostics,e.errors):e.errors},e.createProgram=function(a,o,s,c,u){var l,d,_,x,D,S,T,E,C,k,N,A=e.isArray(a)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(a,o,s,c,u):a,F=A.rootNames,P=A.options,w=A.configFileParsingDiagnostics,I=A.projectReferences,O=A.oldProgram,M=new e.Map,L={},R={},B=new e.Map,j=e.createDiagnosticCollection(),J="number"==typeof P.maxNodeModuleJsDepth?P.maxNodeModuleJsDepth:0,K=0,z=new e.Map,U=new e.Map;e.performance.mark("beforeProgram");var V,q,W,H,G=A.host||i(P),Y=m(G),X=P.noLib,Q=e.memoize((function(){return G.getDefaultLibFileName(P)})),$=G.getDefaultLibLocation?G.getDefaultLibLocation():e.getDirectoryPath(Q()),Z=e.createDiagnosticCollection(),ee=G.getCurrentDirectory(),te=e.getSupportedExtensions(P),re=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(P,te),ne=new e.Map,ie=G.hasInvalidatedResolution||e.returnFalse;if(G.resolveModuleNames)W=function(t,r,n,i){return G.resolveModuleNames(e.Debug.checkEachDefined(t),r,n,i,P).map((function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r}))};else{q=e.createModuleResolutionCache(ee,(function(e){return G.getCanonicalFileName(e)}),P);var ae=function(t,r,n){return e.resolveModuleName(t,r,P,G,q,n).resolvedModule};W=function(t,r,n,i){return p(e.Debug.checkEachDefined(t),r,i,ae)}}if(G.resolveTypeReferenceDirectives)H=function(t,r,n){return G.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,P)};else{var oe=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,P,G,n).resolvedTypeReferenceDirective};H=function(t,r,n){return p(e.Debug.checkEachDefined(t),r,n,oe)}}var se,ce,ue,le,de,_e,pe=new e.Map,fe=new e.Map,ge=e.createMultiMap(),me=new e.Map,ye=G.useCaseSensitiveFileNames()?new e.Map:void 0,he=!!(null===(l=G.useSourceOfProjectReferenceRedirect)||void 0===l?void 0:l.call(G))&&!P.disableSourceOfProjectReferenceRedirect,ve=function(t){var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:u};t.compilerHost.fileExists=u,a&&(n=t.compilerHost.directoryExists=function(n){return a.call(t.compilerHost,n)?(_(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((function(n){if(n){var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}}))),p(n,!1))});o&&(t.compilerHost.getDirectories=function(e){return!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]});s&&(t.compilerHost.realpath=function(e){var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)});return{onProgramCreateComplete:c,fileExists:u,directoryExists:n};function c(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o}function u(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&(!!e.isDeclarationFileName(r)&&p(r,!0))}function l(r){var n=t.getSourceOfProjectReferenceRedirect(r);return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0}function d(n){var i=t.toPath(n),a=""+i+e.directorySeparator;return e.forEachKey(r,(function(t){return i===t||e.startsWith(t,a)||e.startsWith(i,t+"/")}))}function _(r){var n;if(t.getResolvedProjectReferences()&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(a,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}}function p(r,n){var i,a=n?function(e){return l(e)}:function(e){return d(e)},o=a(r);if(void 0!==o)return o;var s=t.getSymlinkCache(),c=s.getSymlinkedDirectories();if(!c)return!1;var u=t.toPath(r);return!!e.stringContains(u,e.nodeModulesPathPart)&&(!(!n||!(null===(i=s.getSymlinkedFiles())||void 0===i?void 0:i.has(u)))||(e.firstDefinedIterator(c.entries(),(function(i){var o=i[0],c=i[1];if(c&&e.startsWith(u,o)){var l=a(u.replace(o,c.realPath));if(n&&l){var d=e.getNormalizedAbsolutePath(r,t.compilerHost.getCurrentDirectory());s.setSymlinkedFile(u,""+c.real+d.replace(new RegExp(o,"i"),""))}return l}}))||!1))}}({compilerHost:G,getSymlinkCache:nr,useSourceOfProjectReferenceRedirect:he,toPath:We,getResolvedProjectReferences:Xe,getSourceOfProjectReferenceRedirect:Pt,forEachResolvedProjectReference:Ft}),be=ve.onProgramCreateComplete,xe=ve.fileExists,De=ve.directoryExists,Se=function(t,r){if(!t)return!1;var n=t.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some((function(t){return!e.isJsonEqual(e.getCompilerOptionValue(n,t),e.getCompilerOptionValue(r,t))}))}(O,P);if(2!==(_e=function(){var t;if(!O)return 0;var r=O.getCompilerOptions();if(e.changesAffectModuleResolution(r,P))return O.structureIsReused=0;var n=O.getRootFileNames();if(!e.arrayIsEqualTo(n,F))return O.structureIsReused=0;if(!e.arrayIsEqualTo(P.types,r.types))return O.structureIsReused=0;if(It(O.getProjectReferences(),O.getResolvedProjectReferences(),(function(e,t,r){var n=Ut((r?r.commandLine.projectReferences:I)[t]);return e?!n||n.sourceFile!==e.sourceFile:void 0!==n}),(function(t,r){var n=r?Ot(r.sourceFile.path).commandLine.projectReferences:I;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return O.structureIsReused=0;I&&(ce=I.map(Ut));var i=[],a=[];if(O.structureIsReused=2,O.getMissingFilePaths().some((function(e){return G.fileExists(e)})))return O.structureIsReused=0;var o,s=O.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(o||(o={}));for(var c=new e.Map,u=0,l=s;u<l.length;u++){var d=l[u];if(!(A=G.getSourceFileByPath?G.getSourceFileByPath(d.fileName,d.resolvedPath,P.target,void 0,Se):G.getSourceFile(d.fileName,P.target,void 0,Se)))return O.structureIsReused=0;e.Debug.assert(!A.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var _=void 0;if(d.redirectInfo){if(A!==d.redirectInfo.unredirected)return O.structureIsReused=0;_=!1,A=d}else if(O.redirectTargetsMap.has(d.path)){if(A!==d)return O.structureIsReused=0;_=!1}else _=A!==d;A.path=d.path,A.originalFileName=d.originalFileName,A.resolvedPath=d.resolvedPath,A.fileName=d.fileName;var p=O.sourceFileToPackageName.get(d.path);if(void 0!==p){var f=c.get(p),g=_?1:0;if(void 0!==f&&1===g||1===f)return O.structureIsReused=0;c.set(p,g)}if(_){if(!e.arrayIsEqualTo(d.libReferenceDirectives,A.libReferenceDirectives,yt))return O.structureIsReused=0;d.hasNoDefaultLib!==A.hasNoDefaultLib&&(O.structureIsReused=1),e.arrayIsEqualTo(d.referencedFiles,A.referencedFiles,yt)||(O.structureIsReused=1),vt(A),e.arrayIsEqualTo(d.imports,A.imports,ht)||(O.structureIsReused=1),e.arrayIsEqualTo(d.moduleAugmentations,A.moduleAugmentations,ht)||(O.structureIsReused=1),(3145728&d.flags)!=(3145728&A.flags)&&(O.structureIsReused=1),e.arrayIsEqualTo(d.typeReferenceDirectives,A.typeReferenceDirectives,yt)||(O.structureIsReused=1),a.push({oldFile:d,newFile:A})}else ie(d.path)&&(O.structureIsReused=1,a.push({oldFile:d,newFile:A}));i.push(A)}if(2!==O.structureIsReused)return O.structureIsReused;for(var m=a.map((function(e){return e.oldFile})),y=0,h=s;y<h.length;y++){var v=h[y];if(!e.contains(m,v))for(var x=0,S=v.ambientModuleNames;x<S.length;x++){var T=S[x];M.set(T,v.fileName)}}for(var E=0,C=a;E<C.length;E++){var k=C[E],A=(d=k.oldFile,k.newFile),w=e.getNormalizedAbsolutePath(A.originalFileName,ee),L=b(A),R=Ge(L,w,A);if(e.hasChangesInResolutions(L,R,d.resolvedModules,e.moduleResolutionIsEqualTo)?(O.structureIsReused=1,A.resolvedModules=e.zipToMap(L,R)):A.resolvedModules=d.resolvedModules,Ve){var J=e.map(A.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)})),K=Ve(J,w,At(A.originalFileName));e.hasChangesInResolutions(J,K,d.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo)?(O.structureIsReused=1,A.resolvedTypeReferenceDirectiveNames=e.zipToMap(J,K)):A.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}}if(2!==O.structureIsReused)return O.structureIsReused;if(null===(t=G.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(G))return O.structureIsReused=1;se=O.getMissingFilePaths(),N=O.getRefFileMap(),e.Debug.assert(i.length===O.getSourceFiles().length);for(var z=0,V=i;z<V.length;z++){A=V[z];me.set(A.path,A)}O.getFilesByNameMap().forEach((function(e,t){e?e.path!==t?me.set(t,me.get(e.path)):O.isSourceFileFromExternalLibrary(e)&&U.set(e.path,!0):me.set(t,e)})),D=i,j=O.getFileProcessingDiagnostics();for(var q=0,W=a;q<W.length;q++){var H=W[q];j.reattachFileDiagnostics(H.newFile)}return B=O.getResolvedTypeReferenceDirectives(),fe=O.sourceFileToPackageName,ge=O.redirectTargetsMap,O.structureIsReused=2}())){if(_=[],x=[],I&&(ce||(ce=I.map(Ut)),F.length))for(var Te=0,Ee=ce;Te<Ee.length;Te++){var Ce=Ee[Te];if(Ce){var ke=e.outFile(Ce.commandLine.options);if(he){if(ke||e.getEmitModuleKind(Ce.commandLine.options)===e.ModuleKind.None)for(var Ne=0,Ae=Ce.commandLine.fileNames;Ne<Ae.length;Ne++){xt(we=Ae[Ne],!1,!1,void 0)}}else if(ke)xt(e.changeExtension(ke,".d.ts"),!1,!1,void 0);else if(e.getEmitModuleKind(Ce.commandLine.options)===e.ModuleKind.None)for(var Fe=0,Pe=Ce.commandLine.fileNames;Fe<Pe.length;Fe++){var we=Pe[Fe];e.fileExtensionIs(we,".d.ts")||e.fileExtensionIs(we,".json")||xt(e.getOutputDeclarationFileName(we,Ce.commandLine,!G.useCaseSensitiveFileNames()),!1,!1,void 0)}}}e.forEach(F,(function(e){return mt(e,!1,!1)}));var Ie=F.length?e.getAutomaticTypeDirectiveNames(P,G):e.emptyArray;if(Ie.length)for(var Oe=P.configFilePath?e.getDirectoryPath(P.configFilePath):G.getCurrentDirectory(),Me=Ve(Ie,e.combinePaths(Oe,e.inferredTypesContainingFile)),Le=0;Le<Ie.length;Le++)Rt(Ie[Le],Me[Le]);if(F.length&&!X){var Re=Q();!P.lib&&Re?mt(Re,!0,!1):e.forEach(P.lib,(function(t){mt(e.combinePaths($,t),!0,!1)}))}se=e.arrayFrom(e.mapDefinedIterator(me.entries(),(function(e){var t=e[0];return void 0===e[1]?t:void 0}))),D=e.stableSort(_,(function(t,r){return e.compareValues(qe(t),qe(r))})).concat(x),_=void 0,x=void 0}if(e.Debug.assert(!!se),O&&G.onReleaseOldSourceFile){for(var Be=0,je=O.getSourceFiles();Be<je.length;Be++){var Je=je[Be],Ke=nt(Je.resolvedPath);(Se||!Ke||Je.resolvedPath===Je.path&&Ke.resolvedPath!==Je.path)&&G.onReleaseOldSourceFile(Je,O.getCompilerOptions(),!!nt(Je.path))}O.forEachResolvedProjectReference((function(e,t){e&&!Ot(t)&&G.onReleaseOldSourceFile(e.sourceFile,O.getCompilerOptions(),!1)}))}O=void 0;var ze={getRootFileNames:function(){return F},getSourceFile:rt,getSourceFileByPath:nt,getSourceFiles:function(){return D},getMissingFilePaths:function(){return se},getRefFileMap:function(){return N},getFilesByNameMap:function(){return me},getCompilerOptions:function(){return P},getSyntacticDiagnostics:function(e,t){return it(e,ot,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(j.getGlobalDiagnostics(),e.concatenate(Z.getGlobalDiagnostics(),function(){if(!P.configFile)return e.emptyArray;var t=Z.getDiagnostics(P.configFile.fileName);return Ft((function(r){r&&(t=e.concatenate(t,Z.getDiagnostics(r.sourceFile.fileName)))})),t}())))},getGlobalDiagnostics:function(){return F.length?e.sortAndDeduplicateDiagnostics(Ze().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return it(e,ct,t)},getSuggestionDiagnostics:function(e,t){return st((function(){return Ze().getSuggestionDiagnostics(e,t)}))},getDeclarationDiagnostics:function(t,r){var n=ze.getCompilerOptions();return!t||e.outFile(n)?_t(t,r):it(t,gt,r)},getBindAndCheckDiagnostics:function(e,t){return ut(e,t)},getProgramDiagnostics:at,getTypeChecker:et,getClassifiableNames:function(){var t;if(!k){et(),k=new e.Set;for(var r=0,n=D;r<n.length;r++){var i=n[r];null===(t=i.classifiableNames)||void 0===t||t.forEach((function(e){return k.add(e)}))}}return k},getDiagnosticsProducingTypeChecker:Ze,getCommonSourceDirectory:He,emit:function(t,r,n,i,a,o){return st((function(){return function(t,r,n,i,a,o,s){if(!s){var c=f(t,r,n,i);if(c)return c}var u=Ze().getEmitResolver(e.outFile(P)?void 0:r,i);e.performance.mark("beforeEmit");var l=e.emitFiles(u,Ye(n),r,e.getTransformers(P,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),l}(ze,t,r,n,i,a,o)}))},getCurrentDirectory:function(){return ee},getNodeCount:function(){return Ze().getNodeCount()},getIdentifierCount:function(){return Ze().getIdentifierCount()},getSymbolCount:function(){return Ze().getSymbolCount()},getTypeCount:function(){return Ze().getTypeCount()},getInstantiationCount:function(){return Ze().getInstantiationCount()},getRelationCacheSizes:function(){return Ze().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return j},getResolvedTypeReferenceDirectives:function(){return B},isSourceFileFromExternalLibrary:$e,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!P.noLib)return!1;var r=G.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return P.lib?e.some(P.lib,(function(n){return r(t.fileName,e.combinePaths($,n))})):r(t.fileName,Q())},dropDiagnosticsProducingTypeChecker:function(){E=void 0},getSourceFileFromReference:function(e,r){return bt(t(r.fileName,e.fileName),(function(e){return me.get(We(e))||void 0}))},getLibFileFromReference:function(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return rt(e.combinePaths($,n))},sourceFileToPackageName:fe,redirectTargetsMap:ge,isEmittedFile:function(t){if(P.noEmit)return!1;var r=We(t);if(nt(r))return!1;var n=e.outFile(P);if(n)return rr(r,n)||rr(r,e.removeFileExtension(n)+".d.ts");if(P.declarationDir&&e.containsPath(P.declarationDir,r,ee,!G.useCaseSensitiveFileNames()))return!0;if(P.outDir)return e.containsPath(P.outDir,r,ee,!G.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!nt(i+".ts")||!!nt(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return w||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return q&&e.resolveModuleNameFromCache(t,r,q)},getProjectReferences:function(){return I},getResolvedProjectReferences:Xe,getProjectReferenceRedirect:Ct,getResolvedProjectReferenceToRedirect:At,getResolvedProjectReferenceByPath:Ot,forEachResolvedProjectReference:Ft,isSourceOfProjectReferenceRedirect:wt,emitBuildInfo:function(t){e.Debug.assert(!e.outFile(P)),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,Ye(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),r},fileExists:xe,directoryExists:De,getSymlinkCache:nr,realpath:null===(d=G.realpath)||void 0===d?void 0:d.bind(G),useCaseSensitiveFileNames:function(){return G.useCaseSensitiveFileNames()}};return be(),function(){P.strictPropertyInitialization&&!e.getStrictOptionValue(P,"strictNullChecks")&&Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");P.isolatedModules&&(P.out&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),P.outFile&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules"));P.inlineSourceMap&&(P.sourceMap&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),P.mapRoot&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));P.paths&&void 0===P.baseUrl&&Yt(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths");P.composite&&(!1===P.declaration&&Yt(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===P.incremental&&Yt(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t=e.outFile(P);P.tsBuildInfoFile?e.isIncrementalCompilation(P)||Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!P.incremental||t||P.configFilePath||Z.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){var t=P.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(P);It(I,ce,(function(r,n,i){var a=(i?i.commandLine.projectReferences:I)[n],o=i&&i.sourceFile;if(r){var s=r.commandLine.options;if(!s.composite||s.noEmit)(i?i.commandLine.fileNames:F).length&&(s.composite||Qt(o,n,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&Qt(o,n,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path));if(a.prepend){var c=e.outFile(s);c?G.fileExists(c)||Qt(o,n,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):Qt(o,n,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!i&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(Qt(o,n,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),ne.set(We(t),!0))}else Qt(o,n,e.Diagnostics.File_0_not_found,a.path)}))}(),P.composite)for(var r=new e.Set(F.map(We)),n=0,i=D;n<i.length;n++){var a=i[n];e.sourceFileMayBeEmitted(a,ze)&&!r.has(a.path)&&qt(a,r,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,a.fileName,P.configFilePath||"")}if(P.paths)for(var o in P.paths)if(e.hasProperty(P.paths,o))if(e.hasZeroOrOneAsteriskCharacter(o)||Ht(!0,o,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,o),e.isArray(P.paths[o])){var s=P.paths[o].length;0===s&&Ht(!1,o,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o);for(var c=0;c<s;c++){var u=P.paths[o][c],l=typeof u;"string"===l?e.hasZeroOrOneAsteriskCharacter(u)||Wt(o,c,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,o):Wt(o,c,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,o,l)}}else Ht(!1,o,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,o);P.sourceMap||P.inlineSourceMap||(P.inlineSources&&Yt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),P.sourceRoot&&Yt(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));P.out&&P.outFile&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile");!P.mapRoot||P.sourceMap||P.declarationMap||Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");P.declarationDir&&(e.getEmitDeclarations(P)||Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),t&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",P.out?"out":"outFile"));P.declarationMap&&!e.getEmitDeclarations(P)&&Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");P.lib&&P.noLib&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib");P.noImplicitUseStrict&&e.getStrictOptionValue(P,"alwaysStrict")&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var d=P.target||0,_=e.find(D,(function(t){return e.isExternalModule(t)&&!t.isDeclarationFile}));if(P.isolatedModules){P.module===e.ModuleKind.None&&d<2&&Yt(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var p=e.find(D,(function(t){return!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind}));if(p){var f=e.getErrorSpanForNode(p,p);Z.add(e.createFileDiagnostic(p,f.start,f.length,e.Diagnostics.All_files_must_be_modules_when_the_isolatedModules_flag_is_provided))}}else if(_&&d<2&&P.module===e.ModuleKind.None){f=e.getErrorSpanForNode(_,_.externalModuleIndicator);Z.add(e.createFileDiagnostic(_,f.start,f.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(t&&!P.emitDeclarationOnly)if(P.module&&P.module!==e.ModuleKind.AMD&&P.module!==e.ModuleKind.System)Yt(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,P.out?"out":"outFile","module");else if(void 0===P.module&&_){f=e.getErrorSpanForNode(_,_.externalModuleIndicator);Z.add(e.createFileDiagnostic(_,f.start,f.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,P.out?"out":"outFile"))}P.resolveJsonModule&&(e.getEmitModuleResolutionKind(P)!==e.ModuleResolutionKind.NodeJs?Yt(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(P)||Yt(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(P.outDir||P.sourceRoot||P.mapRoot){var g=He();P.outDir&&""===g&&D.some((function(t){return e.getRootLength(t.fileName)>1}))&&Yt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.useDefineForClassFields&&0===d&&Yt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");P.checkJs&&!P.allowJs&&Z.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));P.emitDeclarationOnly&&(e.getEmitDeclarations(P)||Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));P.emitDecoratorMetadata&&!P.experimentalDecorators&&Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");P.jsxFactory?(P.reactNamespace&&Yt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(P.jsxFactory,d)||Xt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!e.isIdentifierText(P.reactNamespace,d)&&Xt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace);P.jsxFragmentFactory&&(P.jsxFactory||Yt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),e.parseIsolatedEntityName(P.jsxFragmentFactory,d)||Xt("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory));if(!P.noEmit&&!P.suppressOutputPathCheck){var m=Ye(),y=new e.Set;e.forEachEmittedFile(m,(function(e){P.emitDeclarationOnly||h(e.jsFilePath,y),h(e.declarationFilePath,y)}))}function h(t,r){if(t){var n=We(t);if(me.has(n)){var i=void 0;P.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),tr(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=G.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?tr(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"),ze;function Ue(t,r,n,i){e.performance.mark("beforeResolveModule");var a=W(t,r,n,i);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),a}function Ve(t,r,n){e.performance.mark("beforeResolveTypeReference");var i=H(t,r,n);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),i}function qe(t){if(e.containsPath($,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 We(t){return e.toPath(t,ee,Jt)}function He(){if(void 0===T){var t=e.filter(D,(function(t){return e.sourceFileMayBeEmitted(t,ze)}));P.rootDir&&zt(t,P.rootDir)?T=e.getNormalizedAbsolutePath(P.rootDir,ee):P.composite&&P.configFilePath?zt(t,T=e.getDirectoryPath(e.normalizeSlashes(P.configFilePath))):(r=t,T=n(e.mapDefined(r,(function(e){return e.isDeclarationFile?void 0:e.fileName})),ee,Jt)),T&&T[T.length-1]!==e.directorySeparator&&(T+=e.directorySeparator)}var r;return T}function Ge(t,r,n){if(0===_e&&!n.ambientModuleNames.length)return Ue(t,r,void 0,At(n.originalFileName));var i,a,o,s=O&&O.getSourceFile(r);if(s!==n&&n.resolvedModules){for(var c=[],u=0,l=t;u<l.length;u++){var d=l[u],_=n.resolvedModules.get(d);c.push(_)}return c}for(var p={},f=0;f<t.length;f++){d=t[f];if(n===s&&!ie(s.path)){var g=e.getResolvedModule(s,d);if(g){e.isTraceEnabled(P,G)&&e.trace(G,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,d,r),(a||(a=new Array(t.length)))[f]=g,(o||(o=[])).push(d);continue}}var m=!1;e.contains(n.ambientModuleNames,d)?(m=!0,e.isTraceEnabled(P,G)&&e.trace(G,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,r)):m=v(d),m?(a||(a=new Array(t.length)))[f]=p:(i||(i=[])).push(d)}var y=i&&i.length?Ue(i,r,o,At(n.originalFileName)):e.emptyArray;if(!a)return e.Debug.assert(y.length===t.length),y;var h=0;for(f=0;f<a.length;f++)a[f]?a[f]===p&&(a[f]=void 0):(a[f]=y[h],h++);return e.Debug.assert(h===y.length),a;function v(t){var r=e.getResolvedModule(s,t),n=r&&O.getSourceFile(r.resolvedFileName);if(r&&n)return!1;var i=M.get(t);return!!i&&(e.isTraceEnabled(P,G)&&e.trace(G,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,i),!0)}}function Ye(t){return{getPrependNodes:Qe,getCanonicalFileName:Jt,getCommonSourceDirectory:ze.getCommonSourceDirectory,getCompilerOptions:ze.getCompilerOptions,getCurrentDirectory:function(){return ee},getNewLine:function(){return G.getNewLine()},getSourceFile:ze.getSourceFile,getSourceFileByPath:ze.getSourceFileByPath,getSourceFiles:ze.getSourceFiles,getLibFileFromReference:ze.getLibFileFromReference,isSourceFileFromExternalLibrary:$e,getResolvedProjectReferenceToRedirect:At,getProjectReferenceRedirect:Ct,isSourceOfProjectReferenceRedirect:wt,getSymlinkCache:nr,writeFile:t||function(e,t,r,n,i){return G.writeFile(e,t,r,n,i)},isEmitBlocked:tt,readFile:function(e){return G.readFile(e)},fileExists:function(t){var r=We(t);return!!nt(r)||!e.contains(se,r)&&G.fileExists(t)},useCaseSensitiveFileNames:function(){return G.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return ze.getProgramBuildInfo&&ze.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return ze.getSourceFileFromReference(e,t)},redirectTargetsMap:ge}}function Xe(){return ce}function Qe(){return y(I,(function(e,t){var r;return null===(r=ce[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=We(e),r=nt(t);return r?r.text:me.has(t)?void 0:G.readFile(t)}))}function $e(e){return!!U.get(e.path)}function Ze(){return E||(E=e.createTypeChecker(ze,!0))}function et(){return C||(C=e.createTypeChecker(ze,!1))}function tt(e){return ne.has(We(e))}function rt(e){return nt(We(e))}function nt(e){return me.get(e)||void 0}function it(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(ze.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function at(t){return e.skipTypeChecking(t,P,ze)?e.emptyArray:function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.flatten(n);if(!(null===(r=t.commentDirectives)||void 0===r?void 0:r.length))return a;return dt(t,t.commentDirectives,a).diagnostics}(t,j.getDiagnostics(t.fileName),Z.getDiagnostics(t.fileName))}function ot(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return st((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,i),r;function n(t,n){switch(n.kind){case 159:case 162:case 164:if(n.questionToken===t)return r.push(s(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 163:case 165:case 166:case 167:case 205:case 248:case 206:case 246: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 259:if(t.isTypeOnly)return r.push(s(t.parent,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 264:if(t.isTypeOnly)return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 257:return r.push(s(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 263:if(t.isExportEquals)return r.push(s(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 283:if(116===t.token)return r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 250:var i=e.tokenToString(117);return e.Debug.assertIsDefined(i),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 253:var a=16&t.flags?e.tokenToString(139):e.tokenToString(138);return e.Debug.assertIsDefined(a),r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 251:return r.push(s(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 252:var o=e.Debug.checkDefined(e.tokenToString(91));return r.push(s(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 222:return r.push(s(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 221:return r.push(s(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 203:e.Debug.fail()}}function i(t,n){switch(n.decorators!==t||P.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 249:case 218:case 164:case 165:case 166:case 167:case 205:case 248:case 206:if(t===n.typeParameters)return r.push(o(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 229:if(t===n.modifiers)return a(n.modifiers,229===n.kind),"skip";break;case 162:if(t===n.modifiers){for(var i=0,c=t;i<c.length;i++){var u=c[i];123!==u.kind&&r.push(s(u,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(u.kind)))}return"skip"}break;case 159:if(t===n.modifiers)return r.push(o(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 200:case 201:case 220:case 271:case 272:case 202:if(t===n.typeArguments)return r.push(o(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function a(t,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];switch(o.kind){case 84:if(n)continue;case 122:case 120:case 121:case 141:case 133:case 125:r.push(s(o,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(o.kind)))}}}function o(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function s(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}}))}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function st(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(C=void 0,E=void 0),t}}function ct(t,r){return e.concatenate(g(ut(t,r),P),at(t))}function ut(e,t){return ft(e,t,L,lt)}function lt(t,r){return st((function(){if(e.skipTypeChecking(t,P,ze))return e.emptyArray;var n=Ze();e.Debug.assert(!!t.bindDiagnostics);var i=e.isCheckJsEnabledForFile(t,P),a=!(!!t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||i||7===t.scriptKind),o=a?t.bindDiagnostics:e.emptyArray,s=a?n.getDiagnostics(t,r):e.emptyArray;return function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e.flatten(n);if(!(null===(r=t.commentDirectives)||void 0===r?void 0:r.length))return a;for(var o=dt(t,t.commentDirectives,a),s=o.diagnostics,c=o.directives,u=0,l=c.getUnusedExpectations();u<l.length;u++){var d=l[u];s.push(e.createDiagnosticForRange(t,d.range,e.Diagnostics.Unused_ts_expect_error_directive))}return s}(t,o,s,i?t.jsDocDiagnostics:void 0)}))}function dt(t,r,n){var i=e.createCommentDirectivesMap(t,r);return{diagnostics:n.filter((function(t){return-1===function(t,r){var n=t.file,i=t.start;if(!n)return-1;var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;for(;o>=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)})),directives:i}}function _t(e,t){return ft(e,t,R,pt)}function pt(t,r){return st((function(){var n=Ze().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Ye(e.noop),n,t)||e.emptyArray}))}function ft(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 gt(e,t){return e.isDeclarationFile?[]:_t(e,t)}function mt(t,r,n){xt(e.normalizePath(t),r,n,void 0)}function yt(e,t){return e.fileName===t.fileName}function ht(e,t){return 78===e.kind?78===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function vt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(P.importHelpers&&(P.isolatedModules||o)&&!t.isDeclarationFile){var s=e.factory.createStringLiteral(e.externalHelpersModuleNameText),c=e.factory.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),e.setParent(s,c),e.setParent(c,t),r=[s]}for(var u=0,l=t.statements;u<l.length;u++){d(l[u],!1)}return(1048576&t.flags||a)&&function(t){var n=/import|require/g;for(;null!==n.exec(t.text);){var i=_(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&1===i.arguments.length&&e.isStringLiteralLike(i.arguments[0])?r=e.append(r,i.arguments[0]):e.isLiteralImportTypeNode(i)&&(r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function d(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(r=e.append(r,c))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){var u=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(u))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(u);var l=a.body;if(l)for(var _=0,p=l.statements;_<p.length;_++){d(p[_],!0)}}}}function _(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function bt(t,r,n,i){if(e.hasExtension(t)){var a=G.getCanonicalFileName(t);if(!P.allowNonTsExtensions&&!e.forEach(re,(function(t){return e.fileExtensionIs(a,t)})))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+te.join("', '")+"'")));var o=r(t);if(n)if(o)i&&a===G.getCanonicalFileName(i.fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Ct(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=P.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!P.allowNonTsExtensions){var u=e.forEach(te,(function(e){return r(t+e)}));return n&&!u&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+te.join("', '")+"'"),u}n(e.Diagnostics.File_0_not_found,t)}function xt(e,t,n,i,a){bt(e,(function(e){return St(e,We(e),t,n,a,i)}),(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return j.add(jt.apply(void 0,r([a,e],t)))}),a&&a.file)}function Dt(t,r,n){var i=n?void 0:N&&N.get(r.path),a=i&&e.find(i,(function(e){return e.referencedFileName===r.fileName}));j.add(a?Vt(a,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,r.fileName,t):jt(n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r.fileName))}function St(t,r,n,i,a,o){if(he){var s=Pt(t);if(!s&&G.realpath&&P.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=G.realpath(t);c!==t&&(s=Pt(c))}if(s){var u=e.isString(s)?St(s,We(s),n,i,a,o):void 0;return u&&Et(u,r,void 0),u}}var l,d=t;if(me.has(r)){var p=me.get(r);if(Tt(t,p||void 0,a),p&&P.forceConsistentCasingInFileNames){var f=p.fileName;We(f)!==We(t)&&(t=Ct(t)||t),e.getNormalizedAbsolutePathWithoutRoot(f,ee)!==e.getNormalizedAbsolutePathWithoutRoot(t,ee)&&Dt(t,p,a)}return p&&U.get(p.path)&&0===K?(U.set(p.path,!1),P.noResolve||(Mt(p,n),Lt(p)),P.noLib||Bt(p),z.set(p.path,!1),Kt(p)):p&&z.get(p.path)&&K<J&&(z.set(p.path,!1),Kt(p)),p||void 0}if(a&&!he){var g=kt(t);if(g){if(e.outFile(g.commandLine.options))return;var m=Nt(g,t);t=m,l=We(m)}}var y=G.getSourceFile(t,P.target,(function(r){return j.add(jt(a,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))}),Se);if(o){var h=e.packageIdToString(o),v=pe.get(h);if(v){var b=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},U.set(n,K>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(v,y,t,r,We(t),d);return ge.add(v.path,t),Et(b,r,l),fe.set(r,o.name),x.push(b),b}y&&(pe.set(h,y),fe.set(r,o.name))}if(Et(y,r,l),y){if(U.set(r,K>0),y.fileName=t,y.path=r,y.resolvedPath=We(t),y.originalFileName=d,Tt(t,y,a),G.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(r),S=ye.get(D);S?Dt(t,S,a):ye.set(D,y)}X=X||y.hasNoDefaultLib&&!i,P.noResolve||(Mt(y,n),Lt(y)),P.noLib||Bt(y),Kt(y),n?_.push(y):x.push(y)}return y}function Tt(t,r,n){n&&r&&(N||(N=e.createMultiMap())).add(r.path,{referencedFileName:t,kind:n.kind,index:n.index,file:n.file.path})}function Et(e,t,r){r?(me.set(r,e),me.set(t,e||!1)):me.set(t,e)}function Ct(e){var t=kt(e);return t&&Nt(t,e)}function kt(t){if(ce&&ce.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return At(t)}function Nt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!G.useCaseSensitiveFileNames())}function At(t){void 0===le&&(le=new e.Map,Ft((function(e,t){e&&We(P.configFilePath)!==t&&e.commandLine.fileNames.forEach((function(e){return le.set(We(e),t)}))})));var r=le.get(We(t));return r&&Ot(r)}function Ft(e){return It(I,ce,(function(t,r,n){var i=We(h((n?n.commandLine.projectReferences:I)[r]));return e(t,i)}))}function Pt(t){if(e.isDeclarationFileName(t))return void 0===de&&(de=new e.Map,Ft((function(t){if(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");de.set(We(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,G.useCaseSensitiveFileNames());de.set(We(n),r)}}))}}))),de.get(We(t))}function wt(e){return he&&!!At(e)}function It(t,r,n,i){var a;return function t(r,n,i,o,s){if(s){var c=s(r,i);if(c)return c}return e.forEach(n,(function(r,n){if(!e.contains(a,r)){var c=o(r,n,i);if(c)return c;if(r)return(a||(a=[])).push(r),t(r.commandLine.projectReferences,r.references,r,o,s)}}))}(t,r,void 0,n,i)}function Ot(e){if(ue)return ue.get(e)||void 0}function Mt(r,n){e.forEach(r.referencedFiles,(function(i,a){xt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:a,file:r,pos:i.pos,end:i.end})}))}function Lt(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=Ve(r,t.originalFileName,At(t.originalFileName)),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o),Rt(s,o,{kind:e.RefFileKind.TypeReferenceDirective,index:i,file:t,pos:a.pos,end:a.end})}}function Rt(t,r,n){var i=B.get(t);if(!i||!i.primary){var a=!0;if(r){if(r.isExternalLibraryImport&&K++,r.primary)xt(r.resolvedFileName,!1,!1,r.packageId,n);else if(i){if(r.resolvedFileName!==i.resolvedFileName){var o=G.readFile(r.resolvedFileName),s=rt(i.resolvedFileName);if(o!==s.text){var c=n?void 0:N&&N.get(s.path),u=c&&e.find(c,(function(e){return e.referencedFileName===s.fileName}));j.add(u?Vt(u,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,r.resolvedFileName,i.resolvedFileName):jt(n,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,r.resolvedFileName,i.resolvedFileName))}}a=!1}else xt(r.resolvedFileName,!1,!1,r.packageId,n);r.isExternalLibraryImport&&K--}else j.add(jt(n,e.Diagnostics.Cannot_find_type_definition_file_for_0,t));a&&B.set(t,r)}}function Bt(t){e.forEach(t.libReferenceDirectives,(function(r){var n=e.toFileNameLowerCase(r.fileName),i=e.libMap.get(n);if(i)mt(e.combinePaths($,i),!0,!0);else{var a=e.removeSuffix(e.removePrefix(n,"lib."),".d.ts"),o=e.getSpellingSuggestion(a,e.libs,e.identity),s=o?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;j.add(e.createFileDiagnostic(t,r.pos,r.end-r.pos,s,n,o))}}))}function jt(t,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t?e.createFileDiagnostic.apply(void 0,r([t.file,t.pos,t.end-t.pos,n],i)):e.createCompilerDiagnostic.apply(void 0,r([n],i))}function Jt(e){return G.getCanonicalFileName(e)}function Kt(t){if(vt(t),t.imports.length||t.moduleAugmentations.length){var r=b(t),n=Ge(r,e.getNormalizedAbsolutePath(t.originalFileName,ee),t);e.Debug.assert(n.length===r.length);for(var i=0;i<r.length;i++){var a=n[i];if(e.setResolvedModule(t,r[i],a),a){var o=a.isExternalLibraryImport,s=!e.resolutionExtensionIsTSOrJson(a.extension),c=o&&s,u=a.resolvedFileName;o&&K++;var l=c&&K>J,d=u&&!v(P,a)&&!P.noResolve&&i<t.imports.length&&!l&&!(s&&!P.allowJs)&&(e.isInJSFile(t.imports[i])||!(4194304&t.imports[i].flags));if(l)z.set(t.path,!0);else if(d){var _=We(u),p=e.skipTrivia(t.text,t.imports[i].pos);St(u,_,!1,!1,{kind:e.RefFileKind.Import,index:i,file:t,pos:p,end:t.imports[i].end},a.packageId)}o&&K--}}}else t.resolvedModules=void 0}function zt(t,r){for(var n,i=!0,a=G.getCanonicalFileName(e.getNormalizedAbsolutePath(r,ee)),o=0,s=t;o<s.length;o++){var c=s[o];if(!c.isDeclarationFile)0!==G.getCanonicalFileName(e.getNormalizedAbsolutePath(c.fileName,ee)).indexOf(a)&&(n||(n=new e.Set(F.map(We))),qt(c,n,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,c.fileName,r),i=!1)}return i}function Ut(t){ue||(ue=new e.Map);var r,n,i=h(t),a=We(i),o=ue.get(a);if(void 0!==o)return o||void 0;if(G.getParsedCommandLine){if(!(r=G.getParsedCommandLine(i)))return Et(void 0,a,void 0),void ue.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),Et(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),G.getCurrentDirectory());if(Et(n=G.getSourceFile(i,100),a,void 0),void 0===n)return void ue.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,Y,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return ue.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map(Ut)),c}function Vt(t,n){for(var i,a,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var c,u,l=e.Debug.checkDefined(nt(t.file)),d=t.kind,_=t.index;switch(d){case e.RefFileKind.Import:c=e.skipTrivia(l.text,l.imports[_].pos),u=l.imports[_].end;break;case e.RefFileKind.ReferenceFile:c=(i=l.referencedFiles[_]).pos,u=i.end;break;case e.RefFileKind.TypeReferenceDirective:c=(a=l.typeReferenceDirectives[_]).pos,u=a.end;break;default:return e.Debug.assertNever(d)}return e.createFileDiagnostic.apply(void 0,r([l,c,u-c,n],o))}function qt(t,n,i){for(var a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];var s=null==N?void 0:N.get(t.path),c=e.forEach(s,(function(e){return n.has(e.file)?e:void 0}))||e.elementAt(s,0);Z.add(c?Vt.apply(void 0,r([c,i],a)):e.createCompilerDiagnostic.apply(void 0,r([i],a)))}function Wt(t,r,n,i,a,o){for(var s=!0,c=0,u=Gt();c<u.length;c++){var l=u[c];if(e.isObjectLiteralExpression(l.initializer))for(var d=0,_=e.getPropertyAssignment(l.initializer,t);d<_.length;d++){var p=_[d].initializer;e.isArrayLiteralExpression(p)&&p.elements.length>r&&(Z.add(e.createDiagnosticForNodeInSourceFile(P.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&Z.add(e.createCompilerDiagnostic(n,i,a,o))}function Ht(t,r,n,i){for(var a=!0,o=0,s=Gt();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&er(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&Z.add(e.createCompilerDiagnostic(n,i))}function Gt(){return function(t){var r=Zt();if(r)return e.getPropertyAssignment(r,t)}("paths")||e.emptyArray}function Yt(e,t,r,n){$t(!0,t,r,e,t,r,n)}function Xt(e,t,r){$t(!1,e,void 0,t,r)}function Qt(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||P.configFile,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));o&&o.elements.length>r?Z.add(e.createDiagnosticForNodeInSourceFile(t||P.configFile,o.elements[r],n,i,a)):Z.add(e.createCompilerDiagnostic(n,i,a))}function $t(t,r,n,i,a,o,s){var c=Zt();(!c||!er(c,t,r,n,i,a,o,s))&&Z.add(e.createCompilerDiagnostic(i,a,o,s))}function Zt(){if(void 0===V){V=null;var t=e.getTsConfigObjectLiteralExpression(P.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){V=i.initializer;break}}}return V}function er(t,r,n,i,a,o,s,c){for(var u=e.getPropertyAssignment(t,n,i),l=0,d=u;l<d.length;l++){var _=d[l];Z.add(e.createDiagnosticForNodeInSourceFile(P.configFile,r?_.name:_.initializer,a,o,s,c))}return!!u.length}function tr(e,t){ne.set(We(e),!0),Z.add(t)}function rr(t,r){return 0===e.comparePaths(t,r,ee,!G.useCaseSensitiveFileNames())}function nr(){return G.getSymlinkCache?G.getSymlinkCache():S||(S=e.discoverProbableSymlinks(D,Jt,G.getCurrentDirectory()))}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=f,e.filterSemanticDiagnotics=g,e.parseConfigHostFromCompilerHostLike=m,e.createPrependNodes=y,e.resolveProjectReferencePath=h,e.getResolutionDiagnostic=v}(u||(u={})),function(e){function t(e,t,r,n,i,a){var o=[],s=e.emit(t,(function(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,u=s.diagnostics,l=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:u,exportedModulesFromDeclarationEmit:l}}e.getFileEmitOutput=t,function(r){function n(t){if(t.declarations&&t.declarations[0]){var r=e.getSourceFileOfNode(t.declarations[0]);return r&&r.resolvedPath}}function i(e,t){var r=e.getSymbolAtLocation(t);return r&&n(r)}function a(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function o(t,r,n){var o;if(r.imports&&r.imports.length>0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c<u.length;c++){var l=i(s,u[c]);l&&S(l)}var d=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var _=0,p=r.referencedFiles;_<p.length;_++){var f=p[_];S(a(t,f.fileName,d,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(a(t,r,d,n))}})),r.moduleAugmentations.length){s=t.getTypeChecker();for(var g=0,m=r.moduleAugmentations;g<m.length;g++){var y=m[g];if(e.isStringLiteral(y)){var h=s.getSymbolAtLocation(y);h&&D(h)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var x=b[v];x.declarations.length>1&&D(x)}return o;function D(t){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){(o||(o=new e.Set)).add(t)}}function s(e,t){return t&&!t.referencedMap==!e}function c(e,t){t.forEach((function(t,r){return u(e,t,r)}))}function u(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function l(r,i,a,o,s,c,u){if(e.Debug.assert(!!a),e.Debug.assert(!u||!!r.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),r.hasCalledUpdateShapeSignature.has(a.resolvedPath)||o.has(a.resolvedPath))return!1;var l=r.fileInfos.get(a.resolvedPath);if(!l)return e.Debug.fail();var d,_=l.signature;if(a.isDeclarationFile){if(d=a.version,u&&d!==_){var p=r.referencedMap?r.referencedMap.get(a.resolvedPath):void 0;u.set(a.resolvedPath,p||!1)}}else{var f=t(i,a,!0,s,void 0,!0),g=f.outputFiles&&i.getCompilerOptions().declarationMap?f.outputFiles.length>1?f.outputFiles[1]:void 0:f.outputFiles.length>0?f.outputFiles[0]:void 0;g?(e.Debug.assert(e.fileExtensionIs(g.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(g.name)+" for "+g.name+":: All output files: "+JSON.stringify(f.outputFiles.map((function(e){return e.name})))})),d=c(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;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}(t)}function f(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function g(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:f(t,r,n)}function m(t,r,n,i,a,o,s){if(p(n))return f(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[n];var u=new e.Map;u.set(n.resolvedPath,n);for(var d=_(t,n.resolvedPath);d.length>0;){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 h=n.exportedModulesMap.get(f.resolvedPath);h&&c.set(f.resolvedPath,h)}}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 h=t.getSourceFileByPath(c);if(h.isDeclarationFile&&!f)return;if(h.hasNoDefaultLib&&!g)return;var v=n.semanticDiagnosticsPerFile.get(c);v&&(a.semanticDiagnosticsPerFile.set(c,n.hasReusableDiagnostic?function(t,r,n){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((function(t){var n=i(t,r,o);n.reportsUnnecessary=t.reportsUnnecessary,n.reportsDeprecated=t.reportDeprecated,n.source=t.source,n.skippedOn=t.skippedOn;var a=t.relatedInformation;return n.relatedInformation=a?a.length?a.map((function(e){return i(e,r,o)})):e.emptyArray:void 0,n}));function o(t){return e.toPath(t,a,n)}}(v,t,r):v),a.semanticDiagnosticsFromOldState||(a.semanticDiagnosticsFromOldState=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 v(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;o<i.length;){var c=i[o];if(!a.has(c.resolvedPath))return t.affectedFilesIndex=o,s(t,c,r,n),c;o++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),t.affectedFiles=void 0}var u=t.changedFilesSet.keys().next();if(u.done)return;var l=e.Debug.checkDefined(t.program),d=l.getCompilerOptions();if(e.outFile(d))return e.Debug.assert(!t.semanticDiagnosticsPerFile),l;t.currentAffectedFilesSignatures||(t.currentAffectedFilesSignatures=new e.Map),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap||(t.currentAffectedFilesExportedModulesMap=new e.Map)),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,l,u.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=u.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function s(t,r,n,i){if(c(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile!==t.affectedFiles)t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(t,r,n){if(!t.exportedModulesMap||!t.changedFilesSet.has(r.resolvedPath))return;if(!u(t,r.resolvedPath))return;if(t.compilerOptions.isolatedModules){var i=new e.Map;i.set(r.resolvedPath,!0);for(var a=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);a.length>0;){var o=a.pop();if(!i.has(o))if(i.set(o,!0),n(t,o)&&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)&&v(t,r,0))}return!1}(t,r,n,i)}));else if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var a=e.Debug.checkDefined(t.program),o=a.getCompilerOptions();e.forEach(a.getSourceFiles(),(function(r){return a.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,o,a)&&c(t,r.resolvedPath)}))}}function c(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function u(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function l(t,r,n,i){return e.forEachEntry(t.referencedMap,(function(a,o){return a.has(r)&&function t(r,n,i,a){if(!e.tryAddToSet(i,n))return!1;if(a(r,n))return!0;if(e.Debug.assert(!!r.currentAffectedFilesExportedModulesMap),e.forEachEntry(r.currentAffectedFilesExportedModulesMap,(function(e,o){return e&&e.has(n)&&t(r,o,i,a)})))return!0;if(e.forEachEntry(r.exportedModulesMap,(function(e,o){return!r.currentAffectedFilesExportedModulesMap.has(o)&&e.has(n)&&t(r,o,i,a)})))return!0;return!!e.forEachEntry(r.referencedMap,(function(e,t){return e.has(n)&&!i.has(t)&&a(r,t)}))}(t,o,n,i)}))}function d(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 _(e,t,r){return d(e,r),{result:t,affected:r}}function p(e,t,r,n,i,a){return d(e,r,n,i,a),{result:t,affected:r}}function f(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnotics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnotics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function g(t,r){var n={},i=e.getOptionsNameMap().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=m(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n}function m(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function y(t,r){return e.Debug.assert(!!t.length),t.map((function(t){var n=h(t,r);n.reportsUnnecessary=t.reportsUnnecessary,n.reportDeprecated=t.reportsDeprecated,n.source=t.source,n.skippedOn=t.skippedOn;var i=t.relatedInformation;return n.relatedInformation=i?i.length?i.map((function(e){return h(e,r)})):e.emptyArray:void 0,n}))}function h(e,t){var r=e.file;return n(n({},e),{file:r?t(r.resolvedPath):void 0})}function v(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function b(t,r){if(t){var n=new e.Map;for(var i in t)e.hasProperty(t,i)&&n.set(r(i),new e.Set(t[i].map(r)));return n}}function x(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t.program},releaseProgram:function(){return t.program=void 0},getCompilerOptions:function(){return t.compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t.program)}}!function(e){e[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full"}(e.BuilderFileEmit||(e.BuilderFileEmit={})),function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,u;return void 0===t?(e.Debug.assert(void 0===r),s=n,u=i,e.Debug.assert(!!u),c=u.getProgram()):e.isArray(t)?(u=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:u&&u.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,u=n,a=i),{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(n,i){var s=i.newProgram,c=i.host,u=i.oldProgram,l=i.configFileParsingDiagnostics,m=u&&u.getState();if(m&&s===m.program&&l===s.getConfigFileParsingDiagnostics())return s=void 0,m=void 0,u;var h,b=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),D=c.createHash||e.generateDjb2Hash,S=r(s,b,m);s.getProgramBuildInfo=function(){return function(t,r){if(!e.outFile(t.compilerOptions)){var n=e.Debug.checkDefined(t.program).getCurrentDirectory(),i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),n)),a={};t.fileInfos.forEach((function(e,r){var n=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(r);a[C(r)]=void 0===n?e:{version:e.version,signature:n,affectsGlobalScope:e.affectsGlobalScope}}));var o={fileInfos:a,options:g(t.compilerOptions,(function(t){return C(e.getNormalizedAbsolutePath(t,n))}))};if(t.referencedMap){for(var s={},c=0,u=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c<u.length;c++)s[C(p=u[c])]=e.arrayFrom(t.referencedMap.get(p).keys(),C).sort(e.compareStringsCaseSensitive);o.referencedMap=s}if(t.exportedModulesMap){for(var l={},d=0,_=e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive);d<_.length;d++){var p=_[d],f=t.currentAffectedFilesExportedModulesMap&&t.currentAffectedFilesExportedModulesMap.get(p);void 0===f?l[C(p)]=e.arrayFrom(t.exportedModulesMap.get(p).keys(),C).sort(e.compareStringsCaseSensitive):f&&(l[C(p)]=e.arrayFrom(f.keys(),C).sort(e.compareStringsCaseSensitive))}o.exportedModulesMap=l}if(t.semanticDiagnosticsPerFile){for(var m=[],h=0,v=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);h<v.length;h++){p=v[h];var b=t.semanticDiagnosticsPerFile.get(p);m.push(b.length?[C(p),t.hasReusableDiagnostic?b:y(b,C)]:C(p))}o.semanticDiagnosticsPerFile=m}if(t.affectedFilesPendingEmit){for(var x=[],D=new e.Set,S=0,T=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);S<T.length;S++){var E=T[S];e.tryAddToSet(D,E)&&x.push([C(E),t.affectedFilesPendingEmitKind.get(E)])}o.affectedFilesPendingEmit=x}return o}function C(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(i,t,r))}}(S,b)},s=void 0,u=void 0,m=void 0;var T=x(S,l);return T.getState=function(){return S},T.backupState=function(){e.Debug.assert(void 0===h),h=function(t){var r=e.BuilderState.clone(t);return r.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile),r.changedFilesSet=new e.Set(t.changedFilesSet),r.affectedFiles=t.affectedFiles,r.affectedFilesIndex=t.affectedFilesIndex,r.currentChangedFilePath=t.currentChangedFilePath,r.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=t.currentAffectedFilesExportedModulesMap&&new e.Map(t.currentAffectedFilesExportedModulesMap),r.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState),r.program=t.program,r.compilerOptions=t.compilerOptions,r.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,r.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),r.programEmitComplete=t.programEmitComplete,r}(S)},T.restoreState=function(){S=e.Debug.checkDefined(h),h=void 0},T.getAllDependencies=function(t){return e.BuilderState.getAllDependencies(S,e.Debug.checkDefined(S.program),t)},T.getSemanticDiagnostics=function(t,r){a(S,t);var n,i=e.Debug.checkDefined(S.program).getCompilerOptions();if(e.outFile(i))return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.checkDefined(S.program).getSemanticDiagnostics(t,r);if(t)return f(S,t,r);for(;C(r););for(var o=0,s=e.Debug.checkDefined(S.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,f(S,c,r))}return n||e.emptyArray},T.emit=function(r,i,o,s,u){if(n===t.EmitAndSemanticDiagnosticsBuilderProgram){a(S,r);var l=e.handleNoEmitOptions(T,r,i,o);if(l)return l;if(!r){for(var d=[],_=!1,p=void 0,f=[],g=void 0;g=E(i,o,s,u);)_=_||g.result.emitSkipped,p=e.addRange(p,g.result.diagnostics),f=e.addRange(f,g.result.emittedFiles),d=e.addRange(d,g.result.sourceMaps);return{emitSkipped:_,diagnostics:p||e.emptyArray,emittedFiles:f,sourceMaps:d}}}return e.Debug.checkDefined(S.program).emit(r,i||e.maybeBind(c,c.writeFile),o,s,u)},T.releaseProgram=function(){!function(t){e.BuilderState.releaseCache(t),t.program=void 0}(S),h=void 0},n===t.SemanticDiagnosticsBuilderProgram?T.getSemanticDiagnosticsOfNextAffectedFile=C:n===t.EmitAndSemanticDiagnosticsBuilderProgram?(T.getSemanticDiagnosticsOfNextAffectedFile=C,T.emitNextAffectedFile=E,T.emitBuildInfo=function(t,r){if(S.buildInfoEmitPending){var n=e.Debug.checkDefined(S.program).emitBuildInfo(t||e.maybeBind(c,c.writeFile),r);return S.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),T;function E(t,r,n,i){var a=o(S,r,D),s=1,u=!1;if(!a)if(e.outFile(S.compilerOptions)){var l=e.Debug.checkDefined(S.program);if(S.programEmitComplete)return;a=l}else{var d=function(t){var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var o=n.get(a.resolvedPath),s=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===o||o<s)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:s}}}t.affectedFilesPendingEmit=void 0,t.affectedFilesPendingEmitKind=void 0,t.affectedFilesPendingEmitIndex=void 0}}(S);if(!d){if(!S.buildInfoEmitPending)return;var _=e.Debug.checkDefined(S.program);return p(S,_.emitBuildInfo(t||e.maybeBind(c,c.writeFile),r),_,1,!1,!0)}a=d.affectedFile,s=d.emitKind,u=!0}return p(S,e.Debug.checkDefined(S.program).emit(a===S.program?void 0:a,t||e.maybeBind(c,c.writeFile),r,n||0===s,i),a,s,u)}function C(e,r){for(;;){var i=o(S,e,D);if(!i)return;if(i===S.program)return _(S,S.program.getSemanticDiagnostics(void 0,e),i);if(n===t.EmitAndSemanticDiagnosticsBuilderProgram&&v(S,i.resolvedPath,1),!r||!r(i))return _(S,f(S,i,e),i);d(S,i)}}},e.createBuildProgramUsingProgramBuildInfo=function(t,r,n){var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),a=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),o=new e.Map;for(var s in t.fileInfos)e.hasProperty(t.fileInfos,s)&&o.set(u(s),t.fileInfos[s]);var c={fileInfos:o,compilerOptions:e.convertToOptionsWithAbsolutePaths(t.options,(function(t){return e.getNormalizedAbsolutePath(t,i)})),referencedMap:b(t.referencedMap,u),exportedModulesMap:b(t.exportedModulesMap,u),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(function(t){return u(e.isString(t)?t:t[0])}),(function(t){return e.isString(t)?e.emptyArray:t[1]})),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(function(e){return u(e[0])})),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(function(e){return u(e[0])}),(function(e){return e[1]})),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0};return{getState:function(){return c},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return c.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function u(t){return e.toPath(t,i,a)}},e.createRedirectedBuilderProgram=x}(u||(u={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createAbstractBuilder=function(t,r,n,i,a,o){var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,u=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram({program:c,compilerOptions:c.getCompilerOptions()},u)}}(u||(u={})),function(e){function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(n,i,a){var o,s,c,u=e.createMultiMap(),l=[],d=e.createMultiMap(),_=!1,p=[],f=[],g=[],m=e.memoize((function(){return n.getCurrentDirectory()})),y=n.getCachedDirectoryStructureHost(),h=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),x=e.createModuleResolutionCacheWithMaps(v,b,m(),n.getCanonicalFileName),D=new e.Map,S=e.createCacheWithRedirects(),T=[".ts",".tsx",".js",".jsx",".json"],E=new e.Map,C=new e.Map,k=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),N=k&&n.toPath(k),A=void 0!==N?N.split(e.directorySeparator).length:0,F=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),C.forEach((function(e,t){0===e.refCount&&(C.delete(t),e.watcher.close())})),_=!1},resolveModuleNames:function(t,r,n,i){return R({names:t,containingFile:r,redirectedReference:i,cache:h,perDirectoryCacheWithRedirects:v,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=h.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return R({names:t,containingFile:r,redirectedReference:n,cache:D,perDirectoryCacheWithRedirects:S,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:w,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(!e.fileExtensionIs(t,".json"))return;var r=n.getCurrentProgram();if(!r)return;var i=r.getResolvedProjectReferenceByPath(t);if(!i)return;i.commandLine.fileNames.forEach((function(e){return 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(F,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:re,onDeleteValue:e.closeFileWatcher}):te()},closeTypeRootsWatch:te,clear:function(){e.clearMap(C,e.closeFileWatcherOf),E.clear(),u.clear(),te(),h.clear(),D.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(){v.clear(),b.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),h=u.getOrCreateMapOfCacheRedirects(s),v=h.get(y);v||(v=new e.Map,h.set(y,v));for(var b=[],x=n.getCompilationSettings(),D=f&&O(g),S=n.getCurrentProgram(),T=S&&S.getResolvedProjectReferenceToRedirect(a),E=T?!s||s.sourceFile.path!==T.sourceFile.path:!!s,C=new e.Map,k=0,N=i;k<N.length;k++){var A=N[k],F=m.get(A);if(!C.has(A)&&E||!F||F.isInvalidated||D&&!e.isExternalModuleNameRelative(A)&&_(F)){var P=F,w=v.get(A);w?F=w:(F=l(A,a,x,(null===(r=n.getCompilerHost)||void 0===r?void 0:r.call(n))||n,s),v.set(A,F)),m.set(A,F),z(A,F,g,d),P&&W(P,g,d),f&&o&&!I(P,F)&&(o.push(g),f=!1)}e.Debug.assert(void 0!==F&&!F.isInvalidated),C.set(A,!0),b.push(d(F))}return m.forEach((function(t,r){C.has(r)||e.contains(p,r)||(W(t,g,d),m.delete(r))})),b;function I(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=d(e),n=d(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function B(t){return e.endsWith(t,"/node_modules/@types")}function j(t,r){if(I(N,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,m());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r),n.length>A+1?{dir:i.slice(0,A+1).join(e.directorySeparator),dirPath:n.slice(0,A+1).join(e.directorySeparator)}:{dir:k,dirPath:N,nonRecursive:!1}}return J(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function J(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==N)for(;!I(n,N);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function K(t){return e.fileExtensionIsOneOf(t,T)}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;a<o.length;a++){var s=o[a],c=n.toPath(s),u=j(s,c);if(u){var d=u.dir,_=u.dirPath,p=u.nonRecursive;if(!K(c)){var f=E.get(c)||0;E.set(c,f+1)}_===N?(e.Debug.assert(!p),i=!0):q(d,_,p)}}i&&q(k,N,!0)}}function V(e,t){var r=n.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(U)}function q(t,r,n){var i=C.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):C.set(r,{watcher:G(t,r,n),refCount:1,nonRecursive:n})}function W(t,r,i){if(e.unorderedRemoveItem(e.Debug.assertDefined(t.files),r),t.refCount--,!t.refCount){var a=i(t);if(a&&a.resolvedFileName&&d.remove(n.toPath(a.resolvedFileName),t),e.unorderedRemoveItem(l,t)){for(var o=!1,s=0,c=t.failedLookupLocations;s<c.length;s++){var u=c[s],_=n.toPath(u),p=j(u,_);if(p){var f=p.dirPath,g=E.get(_);g&&(1===g?E.delete(_):(e.Debug.assert(g>1),E.set(_,g-1))),f===N?o=!0:H(f)}}o&&H(N)}}}function H(e){C.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(h,e,P),Y(D,e,w)}function Q(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var c=0,u=e.Debug.assertDefined(o.files);c<u.length;c++){var l=u[c];(s||(s=new e.Set)).add(l),_=_||e.endsWith(l,e.inferredTypesContainingFile)}}}return n}function $(r,i){if(i)g.push(r);else{var a=t(r);if(!a)return!1;if(r=a,n.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(B(r)||e.isNodeModulesDirectory(r)||B(o)||e.isNodeModulesDirectory(o))p.push(r),f.push(r);else{if(!K(r)&&!E.has(r))return!1;if(e.isEmittedFileOfProgram(n.getCurrentProgram(),r))return!1;p.push(r)}}n.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Z(){if(!p.length&&!f.length&&!g.length)return!1;var e=Q(l,ee);return p.length=0,f.length=0,g.length=0,e}function ee(t){return t.failedLookupLocations.some((function(t){var r=n.toPath(t);return e.contains(p,r)||f.some((function(t){return e.startsWith(r,t)}))||g.some((function(e){return I(e,r)}))}))}function te(){e.clearMap(F,e.closeFileWatcher)}function re(e,t){return n.watchTypeRootsDirectory(t,(function(r){var i=n.toPath(r);y&&y.addOrDeleteFileOrDirectory(r,i),_=!0,n.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(I(N,t))return N;var r=J(e,t);return r&&C.has(r.dirPath)?r.dirPath:void 0}(t,e);a&&$(i,a===i)}),1)}function ne(t){var i=e.getDirectoryPath(e.getDirectoryPath(t)),a=n.toPath(i);return a===N||r(a)}}}(u||(u={})),function(e){!function(t){var n,i;function a(t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(t){var r=t.imports;return e.firstDefined(r,(function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1}(n)?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function o(t,r,n,i,a){var o=s(r,i),u=p(r,n,i);return e.firstDefined(u,(function(e){return g(e,o,i,t)}))||c(n,o,t,a)}function s(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(t)}}function c(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory,s=i.ending,c=i.relativePreference,l=n.baseUrl,d=n.paths,_=n.rootDirs,p=_&&function(t,r,n,i,a,o){var s=m(r,t,i);if(void 0===s)return;var c=m(n,t,i),u=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?y(u,a,o):e.removeFileExtension(u)}(_,t,o,a,s,n)||y(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!l||0===c)return p;var g=h(t,l,a);if(!g)return p;var b=y(g,s,n),x=d&&f(e.removeFileExtension(g),b,d),D=void 0===x?b:x;return 1===c?D:(2!==c&&e.Debug.assertNever(c),v(D)||u(p)<u(D)?p:D)}function u(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function l(e){var t=e.match(/\//g);return t?t.length:0}function d(t,r){return e.compareValues(l(t),l(r))}function _(t,n,i,a,o){var s=e.hostGetCanonicalFileName(i),c=i.getCurrentDirectory(),u=i.isSourceOfProjectReferenceRedirect(n)?i.getProjectReferenceRedirect(n):void 0,l=i.redirectTargetsMap.get(e.toPath(n,c,s))||e.emptyArray,d=r(u?[u]:e.emptyArray,[n],l).map((function(t){return e.getNormalizedAbsolutePath(t,c)}));if(!a){var _=e.forEach(d,o);if(_)return _}var p=(i.getSymlinkCache?i.getSymlinkCache():e.discoverProbableSymlinks(i.getSourceFiles(),s,c)).getSymlinkedDirectories(),f=!i.useCaseSensitiveFileNames||i.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;return p&&e.forEachEntry(p,(function(r,n){if(!1!==r&&!e.startsWithDirectory(t,r.realPath,s)){var a=e.find(d,(function(e){return 0===f(e.slice(0,r.real.length),r.real)}));if(void 0!==a){var c=e.getRelativePathFromDirectory(r.real,a,s),u=e.resolvePath(n,c);if(!i.fileExists||i.fileExists(u)){var l=o(u);if(l)return l}}}}))||(a?e.forEach(d,o):void 0)}function p(t,r,n){var i=n.getCurrentDirectory(),a=e.hostGetCanonicalFileName(n),o=new e.Map,s=!1;_(t,r,n,!0,(function(t){o.set(t,a(t)),s=s||e.pathContainsNodeModules(t)}));for(var c,u=[],l=function(t){var r,n=e.ensureTrailingDirectorySeparator(t);o.forEach((function(t,i){e.startsWith(t,n)&&(s&&!e.pathContainsNodeModules(i)||(r||(r=[])).push(i),o.delete(i))})),r&&(r.length>1&&r.sort(d),u.push.apply(u,r));var i=e.getDirectoryPath(t);if(i===t)return c=t,"break";c=t=i},p=e.getDirectoryPath(e.toPath(t,i,a));0!==o.size;){var f=l(p);if(p=c,"break"===f)break}if(o.size){var g=e.arrayFrom(o.values());g.length>1&&g.sort(d),u.push.apply(u,g)}return u}function f(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),u=c.indexOf("*");if(-1!==u){var l=c.substr(0,u),d=c.substr(u+1);if(r.length>=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=r.getCanonicalFileName,s=r.sourceDirectory;if(n.fileExists&&n.readFile){var c=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}(t);if(c){var u=t;if(!a)for(var l=c.packageRootIndex,d=void 0;;){var _=x(l),p=_.moduleFileToTry,g=_.packageRootPath;if(g){u=g;break}if(d||(d=p),-1===(l=t.indexOf(e.directorySeparator,l+1))){u=D(d);break}}var m=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),h=o(u.substring(0,c.topLevelNodeModulesIndex));if(e.startsWith(s,h)||m&&e.startsWith(o(m),h)){var v=u.substring(c.topLevelPackageNameIndex+1),b=e.getPackageNameFromTypesPackageName(v);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&b===v?void 0:b}}}function x(r){var a=t.substring(0,r),s=e.combinePaths(a,"package.json"),c=t;if(n.fileExists(s)){var u=JSON.parse(n.readFile(s)),l=u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):void 0;if(l){var d=t.slice(a.length+1),_=f(e.removeFileExtension(d),y(d,0,i),l.paths);void 0!==_&&(c=e.combinePaths(a,_))}var p=u.typings||u.types||u.main;if(e.isString(p)){var g=e.toPath(p,a,o);if(e.removeFileExtension(g)===e.removeFileExtension(o(c)))return{packageRootPath:a,moduleFileToTry:c}}}return{moduleFileToTry:c}}function D(t){var r=e.removeFileExtension(t);return"/index"!==o(r.substring(c.fileNameIndex))||function(t,r){if(!t.fileExists)return;for(var n=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),i=0,a=n;i<a.length;i++){var o=r+a[i];if(t.fileExists(o))return o}}(n,r.substring(0,c.fileNameIndex))?r:r.substring(0,c.fileNameIndex)}}function m(t,r,n){return e.firstDefined(r,(function(e){var r=h(t,e,n);return v(r)?void 0:r}))}function y(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+function(t,r){var n=e.extensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+t);default:return e.Debug.assertNever(n)}}(t,n);default:return e.Debug.assertNever(r)}}function h(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function v(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Auto=2]="Auto"}(n||(n={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(i||(i={})),t.updateModuleSpecifier=function(t,r,n,i,a){var s=o(t,r,n,i,function(t,r){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}(t,a));if(s!==a)return s},t.getModuleSpecifier=function(e,t,r,n,i,s){return void 0===s&&(s={}),o(e,r,n,i,a(s,e,t))},t.getNodeModulesPackageName=function(t,r,n,i){var a=s(r,i),o=p(r,n,i);return e.firstDefined(o,(function(e){return g(e,a,i,t,!0)}))},t.getModuleSpecifiers=function(t,r,n,i,o){var u=function(t){var r=e.find(t.declarations,(function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))}));if(r)return r.name.text}(t);if(u)return[u];var l=s(n.path,i),d=e.getSourceFileOfNode(t.valueDeclaration||e.getNonAugmentationDeclaration(t)),_=p(n.path,d.originalFileName,i),f=a(o,r,n),m=e.mapDefined(_,(function(e){return g(e,l,i,r)}));return m.length?m:_.map((function(e){return c(e,l,r,f)}))},t.countPathComponents=u,t.forEachFileNameOfModule=_}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(u||(u={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function n(r,n){var i=r===e.sys?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return function(t){return r.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function i(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code))&&(t.clearScreen(),!0)}function a(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function o(t,r){return r?function(r,n,o){i(t,r,o);var s="["+e.formatColorAndReset(a(t),e.ForegroundColorEscapeSequences.Grey)+"] ";s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(n+n),t.write(s)}:function(r,n,o){var s="";i(t,r,o)||(s+=n),s+=a(t)+" - ",s+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,n),t.write(s)}}function s(t){return e.countWhere(t,(function(t){return t.category===e.DiagnosticCategory.Error}))}function c(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function u(t,r){if(0===t)return"";var n=e.createCompilerDiagnostic(1===t?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return""+r+e.flattenDiagnosticMessageText(n.messageText,r)+r+r}function l(t,r){(t.getCompilerOptions().listFiles||t.getCompilerOptions().listFilesOnly)&&e.forEach(t.getSourceFiles(),(function(e){r(e.fileName)}))}function d(t,r,n,i,a,o,c,u){var d=!!t.getCompilerOptions().listFilesOnly,_=t.getConfigFileParsingDiagnostics().slice(),p=_.length;e.addRange(_,t.getSyntacticDiagnostics(void 0,o)),_.length===p&&(e.addRange(_,t.getOptionsDiagnostics(o)),d||(e.addRange(_,t.getGlobalDiagnostics(o)),_.length===p&&e.addRange(_,t.getSemanticDiagnostics(void 0,o))));var f=d?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,o,c,u),g=f.emittedFiles,m=f.diagnostics;e.addRange(_,m);var y=e.sortAndDeduplicateDiagnostics(_);if(y.forEach(r),n){var h=t.getCurrentDirectory();e.forEach(g,(function(t){var r=e.getNormalizedAbsolutePath(t,h);n("TSFILE: "+r)})),l(t,n)}return i&&i(s(y)),{emitResult:f,diagnostics:y}}function _(t,r,n,i,a,o,s,c){var u=d(t,r,n,i,a,o,s,c),l=u.emitResult,_=u.diagnostics;return l.emitSkipped&&_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function 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=n.createHash||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var s=i.call.apply(i,r([t],e));return s&&(s.version=a.call(n,s.text)),s}},e.createProgramHost=f,e.createWatchCompilerHostOfConfigFile=function(e){var t=e.configFileName,r=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,u=e.reportWatchStatus,l=c||n(o),d=g(o,s,l,u);return d.onUnRecoverableConfigFileDiagnostic=function(e){return m(o,l,e)},d.configFileName=t,d.optionsToExtend=r,d.watchOptionsToExtend=i,d.extraFileExtensions=a,d},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var t=e.rootFiles,r=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,u=e.reportWatchStatus,l=g(o,s,c||n(o),u);return l.rootFiles=t,l.options=r,l.watchOptions=i,l.projectReferences=a,l},e.performIncrementalCompilation=function(t){var r=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,r)),a=e.createIncrementalProgram(t),o=_(a,t.reportDiagnostic||n(r),(function(e){return i.trace&&i.trace(e)}),t.reportErrorSummary||t.options.pretty?function(e){return r.write(u(e,r.newLine))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(u||(u={})),function(e){function t(t,r){if(!e.outFile(t)){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i=r.readFile(n);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,n,r)}}}}function n(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(function(t){return e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName)})),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=n,e.createIncrementalProgram=function(r){var i=r.rootNames,a=r.options,o=r.configFileParsingDiagnostics,s=r.projectReferences,c=r.host,u=r.createProgram;return c=c||n(a),(u=u||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=function(t,r,n,i,a,o,s,c){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})},e.createWatchProgram=function(n){var i,a,o,s,c,u,l,d,_,p=new e.Map,f=!1,g=n.useCaseSensitiveFileNames(),m=n.getCurrentDirectory(),y=n.configFileName,h=n.optionsToExtend,v=void 0===h?{}:h,b=n.watchOptionsToExtend,x=n.extraFileExtensions,D=n.createProgram,S=n.rootFiles,T=n.options,E=n.watchOptions,C=n.projectReferences,k=!1,N=!1,A=void 0===y?void 0:e.createCachedDirectoryStructureHost(n,m,g),F=A||n,P=e.parseConfigHostFromCompilerHostLike(n,F),w=G();y&&n.configFileParsingResult&&(ue(n.configFileParsingResult),w=G()),te(e.Diagnostics.Starting_compilation_in_watch_mode),y&&!n.configFileParsingResult&&(w=e.getNewLineCharacter(v,(function(){return n.getNewLine()})),e.Debug.assert(!S),ce(),w=G());var I,O=e.createWatchFactory(n,T),M=O.watchFile,L=O.watchFilePath,R=O.watchDirectory,B=O.writeLog,j=e.createGetCanonicalFileName(g);B("Current directory: "+m+" CaseSensitiveFileNames: "+g),y&&(I=M(n,y,(function(){e.Debug.assert(!!y),a=e.ConfigFileProgramReloadLevel.Full,ae()}),e.PollingInterval.High,E,e.WatchType.ConfigFile));var J=e.createCompilerHostFromProgramHost(n,(function(){return T}),F);e.setGetSourceFileAsHashVersioned(J,n);var K=J.getSourceFile;J.getSourceFile=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return $.apply(void 0,r([e,Y(e)],t))},J.getSourceFileByPath=$,J.getNewLine=function(){return w},J.fileExists=Q,J.onReleaseOldSourceFile=function(e,t,r){var n=p.get(e.resolvedPath);void 0!==n&&(X(n)?(l||(l=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),p.delete(e.resolvedPath),r||z.removeResolutionsOfFile(e.path)))},J.toPath=Y,J.getCompilationSettings=function(){return T},J.useSourceOfProjectReferenceRedirect=e.maybeBind(n,n.useSourceOfProjectReferenceRedirect),J.watchDirectoryOfFailedLookupLocation=function(t,r,i){return R(n,t,r,i,E,e.WatchType.FailedLookupLocations)},J.watchTypeRootsDirectory=function(t,r,i){return R(n,t,r,i,E,e.WatchType.TypeRoots)},J.getCachedDirectoryStructureHost=function(){return A},J.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!n.setTimeout||!n.clearTimeout)return z.invalidateResolutionsOfFailedLookupLocations();var e=ne();B("Scheduling invalidateFailedLookup"+(e?", Cancelled earlier one":"")),u=n.setTimeout(ie,250)},J.onInvalidatedResolution=ae,J.onChangedAutomaticTypeDirectiveNames=ae,J.fileIsOpen=e.returnFalse,J.getCurrentProgram=W,J.writeLog=B;var z=e.createResolutionCache(J,y?e.getDirectoryPath(e.getNormalizedAbsolutePath(y,m)):m,!1);J.resolveModuleNames=n.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveModuleNames.apply(n,e)}:function(e,t,r,n){return z.resolveModuleNames(e,t,r,n)},J.resolveTypeReferenceDirectives=n.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.resolveTypeReferenceDirectives.apply(n,e)}:function(e,t,r){return z.resolveTypeReferenceDirectives(e,t,r)};var U=!!n.resolveModuleNames||!!n.resolveTypeReferenceDirectives;return i=t(T,J),H(),fe(),y?{getCurrentProgram:q,getProgram:se,close:V}:{getCurrentProgram:q,getProgram:se,updateRootFileNames:function(t){e.Debug.assert(!y,"Cannot update root file names with config file watch mode"),S=t,ae()},close:V};function V(){ne(),z.clear(),e.clearMap(p,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),I&&(I.close(),I=void 0),s&&(e.clearMap(s,e.closeFileWatcherOf),s=void 0),o&&(e.clearMap(o,e.closeFileWatcher),o=void 0)}function q(){return i}function W(){return i&&i.getProgramOrUndefined()}function H(){B("Synchronizing program"),ne();var t=q();f&&(w=G(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),T)&&z.clear());var r=z.createHasInvalidatedResolution(U);return e.isProgramUptoDate(W(),S,T,ee,Q,r,re,C)?N&&(i=D(void 0,void 0,J,i,_,C),N=!1):function(t){B("CreatingProgramWith::"),B(" roots: "+JSON.stringify(S)),B(" options: "+JSON.stringify(T));var r=f||!W();f=!1,N=!1,z.startCachingPerDirectoryResolution(),J.hasInvalidatedResolution=t,J.hasChangedAutomaticTypeDirectiveNames=re,i=D(S,T,J,i,_,C),z.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(i.getProgram(),o||(o=new e.Map),_e),r&&z.updateTypeRootsWatch();if(l){for(var n=0,a=l;n<a.length;n++){var s=a[n];o.has(s)||p.delete(s)}l=void 0}}(r),n.afterProgramCreate&&t!==i&&n.afterProgramCreate(i),i}function G(){return e.getNewLineCharacter(T||v,(function(){return n.getNewLine()}))}function Y(t){return e.toPath(t,m,j)}function X(e){return"boolean"==typeof e}function Q(e){var t=Y(e);return!X(p.get(t))&&F.fileExists(e)}function $(t,r,i,a,o){var s=p.get(r);if(!X(s)){if(void 0===s||o||function(e){return"boolean"==typeof e.version}(s)){var c=K(t,i,a);if(s)c?(s.sourceFile=c,s.version=c.version,s.fileWatcher||(s.fileWatcher=L(n,t,le,e.PollingInterval.Low,E,r,e.WatchType.SourceFile))):(s.fileWatcher&&s.fileWatcher.close(),p.set(r,!1));else if(c){var u=L(n,t,le,e.PollingInterval.Low,E,r,e.WatchType.SourceFile);p.set(r,{sourceFile:c,version:c.version,fileWatcher:u})}else p.set(r,!1);return c}return s.sourceFile}}function Z(e){var t=p.get(e);void 0!==t&&(X(t)?p.set(e,{version:!1}):t.version=!1)}function ee(e){var t=p.get(e);return t&&t.version?t.version:void 0}function te(t){n.onWatchStatusChange&&n.onWatchStatusChange(e.createCompilerDiagnostic(t),w,T||v)}function re(){return z.hasChangedAutomaticTypeDirectiveNames()}function ne(){return!!u&&(n.clearTimeout(u),u=void 0,!0)}function ie(){u=void 0,z.invalidateResolutionsOfFailedLookupLocations()&&ae()}function ae(){n.setTimeout&&n.clearTimeout&&(c&&n.clearTimeout(c),B("Scheduling update"),c=n.setTimeout(oe,250))}function oe(){c=void 0,te(e.Diagnostics.File_change_detected_Starting_incremental_compilation),se()}function se(){switch(a){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),function(){B("Reloading new file names and options");var t=e.getFileNamesFromConfigSpecs(d,e.getNormalizedAbsolutePath(e.getDirectoryPath(y),m),T,P);e.updateErrorForNoInputFiles(t,e.getNormalizedAbsolutePath(y,m),d,_,k)&&(N=!0);S=t.fileNames,H()}();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),function(){B("Reloading config file: "+y),a=e.ConfigFileProgramReloadLevel.None,A&&A.clearCache();ce(),f=!0,H(),fe()}();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),H()}return e.perfLogger.logStopUpdateProgram("Done"),q()}function ce(){ue(e.getParsedCommandLineOfConfigFile(y,v,P,void 0,b,x))}function ue(t){S=t.fileNames,T=t.options,E=t.watchOptions,d=t.configFileSpecs,C=t.projectReferences,_=e.getConfigFileParsingDiagnostics(t).slice(),k=e.canJsonReportNoInputFiles(t.raw),N=!0}function le(t,r,n){de(t,n,r),r===e.FileWatcherEventKind.Deleted&&p.has(n)&&z.invalidateResolutionOfFile(n),z.removeResolutionsFromProjectReferenceRedirects(n),Z(n),ae()}function de(e,t,r){A&&A.addOrDeleteFile(e,t,r)}function _e(t){return L(n,t,pe,e.PollingInterval.Medium,E,t,e.WatchType.MissingFile)}function pe(t,r,n){de(t,n,r),r===e.FileWatcherEventKind.Created&&o.has(n)&&(o.get(n).close(),o.delete(n),Z(n),ae())}function fe(){d?e.updateWatchingWildcardDirectories(s||(s=new e.Map),new e.Map(e.getEntries(d.wildcardDirectories)),ge):s&&e.clearMap(s,e.closeFileWatcherOf)}function ge(t,r){return R(n,t,(function(r){e.Debug.assert(!!y);var n=Y(r);A&&A.addOrDeleteFileOrDirectory(r,n),Z(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:Y(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:y,configFileSpecs:d,options:T,program:q(),currentDirectory:m,useCaseSensitiveFileNames:g,writeLog:B})||a!==e.ConfigFileProgramReloadLevel.Full&&(a=e.ConfigFileProgramReloadLevel.Partial,ae())}),r,E,e.WatchType.WildcardDirectory)}}}(u||(u={})),function(e){!function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=7]="UpstreamOutOfDate",e[e.UpstreamBlocked=8]="UpstreamBlocked",e[e.ComputingUpstream=9]="ComputingUpstream",e[e.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",e[e.ContainerOnly=11]="ContainerOnly"}(e.UpToDateStatusType||(e.UpToDateStatusType={})),e.resolveConfigFileProjectName=function(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}}(u||(u={})),function(e){var t,n,i,a=new Date(-864e13),o=new Date(864e13);function s(t,r){return function(e,t,r){var n,i=e.get(t);return i||(n=r(),e.set(t,n)),i||n}(t,r,(function(){return new e.Map}))}function c(e,t){return t>e?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function 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 h(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),v=y.watchFile,b=y.watchFilePath,x=y.watchDirectory,D=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:v,watchFilePath:b,watchDirectory:x,writeLog:D};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 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 v(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function b(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,u=r;c<u.length;c++){l(u[c])}return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function l(r,c){var u=m(t,r);if(!o.has(u))if(a.has(u))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(u,!0),s.push(r);var d=h(t,r,u);if(d&&d.projectReferences)for(var _=0,p=d.projectReferences;_<p.length;_++){var f=p[_];l(v(t,f.path),c||f.circular)}s.pop(),o.set(u,!0),(n||(n=[])).push(r)}}}function x(t){return t.buildOrder||function(t){var r=b(t,t.rootNames.map((function(e){return v(t,e)})));t.resolvedConfigFilePaths.clear();var n=new e.Map(d(r).map((function(e){return[m(t,e),!0]}))),i={onDeleteValue:e.noop};e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.buildInfoChecked,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcher)}}));return t.buildOrder=r}(t)}function D(t,r,n){var i=r&&v(t,r),a=x(t);if(l(a))return a;if(i){var o=m(t,i);if(-1===e.findIndex(a,(function(e){return m(t,e)===o})))return}var s=i?b(t,[i]):a;return e.Debug.assert(!l(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function S(t){t.cache&&T(t);var n=t.compilerHost,i=t.host,a=t.readFileWithCache,o=n.getSourceFile,s=e.changeCompilerHostLikeToUseCache(i,(function(e){return g(t,e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.call.apply(o,r([n],e))})),c=s.originalReadFile,u=s.originalFileExists,l=s.originalDirectoryExists,d=s.originalCreateDirectory,_=s.originalWriteFile,p=s.getSourceFileWithCache,f=s.readFileWithCache;t.readFileWithCache=f,n.getSourceFile=p,t.cache={originalReadFile:c,originalFileExists:u,originalDirectoryExists:l,originalCreateDirectory:d,originalWriteFile:_,originalReadFileWithCache:a,originalGetSourceFile:o}}function T(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),a&&(a.directoryToModuleNameMap.clear(),a.moduleNameToDirectoryMap.clear()),e.cache=void 0}}function E(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function C(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function k(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&Z(t,e.Diagnostics.Starting_compilation_in_watch_mode),S(t),d(x(t)).forEach((function(r){return t.projectPendingBuild.set(m(t,r),e.ConfigFileProgramReloadLevel.None)})),r&&r.throwIfCancellationRequested())}function N(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function A(e,t,r,i,a){var o=!0;return{kind:n.UpdateOutputFileStamps,project:t,projectPath:r,buildOrder:a,getCompilerOptions:function(){return i.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){j(e,i,r),o=!1},done:function(){return o&&j(e,i,r),N(e,r)}}}function F(s,l,d,_,p,f,y){var b,x,D,S=s===n.Build?i.CreateProgram:i.EmitBundle;return s===n.Build?{kind:s,project:d,projectPath:_,buildOrder:y,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return l.currentDirectory},getBuilderProgram:function(){return E(e.identity)},getProgram:function(){return E((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return E((function(t){return t.getSourceFile(e)}))},getSourceFiles:function(){return C((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return C((function(t){return t.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return C((function(t){return t.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return C((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,t){return C((function(r){return r.getSyntacticDiagnostics(e,t)}))},getAllDependencies:function(e){return C((function(t){return t.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,t){return C((function(r){return r.getSemanticDiagnostics(e,t)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,t){return E((function(r){return r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t)}))},emit:function(e,t,r,n,a){return e||n?E((function(i){return i.emit(e,t,r,n,a)})):(z(i.SemanticDiagnostics,r),S===i.EmitBuildInfo?R(t,r):S===i.Emit?L(t,r,a):void 0)},done:T}:{kind:s,project:d,projectPath:_,buildOrder:y,getCompilerOptions:function(){return f.options},getCurrentDirectory:function(){return l.currentDirectory},emit:function(e,t){return S!==i.EmitBundle?D:K(e,t)},done:T};function T(e,t,r){return z(i.Done,e,t,r),N(l,_)}function E(e){return z(i.CreateProgram),b&&e(b)}function C(t){return E(t)||e.emptyArray}function k(){if(e.Debug.assert(void 0===b),l.options.dry)return $(l,e.Diagnostics.A_non_dry_build_would_build_project_0,d),x=t.Success,void(S=i.QueueReferencingProjects);if(l.options.verbose&&$(l,e.Diagnostics.Building_project_0,d),0===f.fileNames.length)return te(l,_,e.getConfigFileParsingDiagnostics(f)),x=t.None,void(S=i.QueueReferencingProjects);var r=l.host,n=l.compilerHost;l.projectCompilerOptions=f.options,function(t,r,n){if(!t.moduleResolutionCache)return;var i=t.moduleResolutionCache,a=g(t,r);if(0===i.directoryToModuleNameMap.redirectsMap.size)e.Debug.assert(0===i.moduleNameToDirectoryMap.redirectsMap.size),i.directoryToModuleNameMap.redirectsMap.set(a,i.directoryToModuleNameMap.ownMap),i.moduleNameToDirectoryMap.redirectsMap.set(a,i.moduleNameToDirectoryMap.ownMap);else{e.Debug.assert(i.moduleNameToDirectoryMap.redirectsMap.size>0);var o={sourceFile:n.options.configFile,commandLine:n};i.directoryToModuleNameMap.setOwnMap(i.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),i.moduleNameToDirectoryMap.setOwnMap(i.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}i.directoryToModuleNameMap.setOwnOptions(n.options),i.moduleNameToDirectoryMap.setOwnOptions(n.options)}(l,d,f),b=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(_,b),S++}function A(e,t,r){var n;e.length?(n=M(l,_,b,f,e,t,r),x=n.buildResult,S=n.step):S++}function P(n){e.Debug.assertIsDefined(b),A(r(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(n),b.getGlobalDiagnostics(n),b.getSyntacticDiagnostics(void 0,n)),t.SyntaxErrors,"Syntactic")}function w(r){A(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function L(r,n,o){var s,d;e.Debug.assertIsDefined(b),e.Debug.assert(S===i.Emit),b.backupState();var p=[],m=e.emitFilesAndReportErrors(b,(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 b.restoreState(),s=M(l,_,b,f,d,t.DeclarationEmitErrors,"Declaration file"),x=s.buildResult,S=s.step,{emitSkipped:!0,diagnostics:m.diagnostics};var y=l.host,h=l.compilerHost,v=t.DeclarationOutputUnchanged,D=a,T=!1,E=e.createDiagnosticCollection(),C=new e.Map;return p.forEach((function(n){var i,a=n.name,o=n.text,s=n.writeByteOrderMark;!T&&u(a)&&(y.fileExists(a)&&l.readFileWithCache(a)===o?i=y.getModifiedTime(a):(v&=~t.DeclarationOutputUnchanged,T=!0)),C.set(g(l,a),a),e.writeFile(r?{writeFile:r}:h,E,a,o,s),void 0!==i&&(D=c(i,D))})),j(E,C,D,T,p.length?p[0].name:e.getFirstProjectOutput(f,!y.useCaseSensitiveFileNames()),v),m}function R(n,a){e.Debug.assertIsDefined(b),e.Debug.assert(S===i.EmitBuildInfo);var o=b.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,b,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,_,b,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,b,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=v(l,e.path);return h(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,D=F(n.Build,l,d,_,p,f,y);e.Debug.assert(!!u.length);var b=e.createDiagnosticCollection(),T=new e.Map;return u.forEach((function(t){var n=t.name,i=t.text,a=t.writeByteOrderMark;T.set(g(l,n),n),e.writeFile(r?{writeFile:r}:c,b,n,i,a)})),{emitSkipped:!1,diagnostics:j(b,T,a,!1,u[0].name,t.DeclarationOutputUnchanged)}}function z(t,r,n,a){for(;S<=t&&S<i.Done;){var o=S;switch(S){case i.CreateProgram:k();break;case i.SyntaxDiagnostics:P(r);break;case i.SemanticDiagnostics:w(r);break;case i.Emit:L(n,r,a);break;case i.EmitBuildInfo:R(n,r);break;case i.EmitBundle:K(n,a);break;case i.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(D).done(r),S=i.Done;break;case i.QueueReferencingProjects:J(l,d,_,p,f,y,e.Debug.checkDefined(x)),S++;break;case i.Done:default:e.assertType(S)}e.Debug.assert(S>o)}}}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;s<r.length;s++){var c=r[s],u=m(t,c),d=t.projectPendingBuild.get(u);if(void 0!==d){i&&(i=!1,ie(t,r));var _=h(t,c,u);if(_){if(d===e.ConfigFileProgramReloadLevel.Full)H(t,c,u,_),G(t,c,u,_),Y(t,c,u,_);else if(d===e.ConfigFileProgramReloadLevel.Partial){var p=e.getFileNamesFromConfigSpecs(_.configFileSpecs,e.getDirectoryPath(c),_.options,t.parseConfigFileHost);e.updateErrorForNoInputFiles(p,c,_.configFileSpecs,_.errors,e.canJsonReportNoInputFiles(_.raw)),_.fileNames=p.fileNames,Y(t,c,u,_)}var f=R(t,_,u);if(ae(t,c,f),!a.force){if(f.type===e.UpToDateStatusType.UpToDate){te(t,u,e.getConfigFileParsingDiagnostics(_)),o.delete(u),a.dry&&$(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(f.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return te(t,u,e.getConfigFileParsingDiagnostics(_)),A(t,c,u,_,r)}if(f.type!==e.UpToDateStatusType.UpstreamBlocked){if(f.type!==e.UpToDateStatusType.ContainerOnly)return F(P(t,f,_)?n.Build:n.UpdateBundle,t,c,u,s,_,r);te(t,u,e.getConfigFileParsingDiagnostics(_)),o.delete(u)}else te(t,u,e.getConfigFileParsingDiagnostics(_)),o.delete(u),a.verbose&&$(t,f.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,f.upstreamProjectName)}else re(t,u),o.delete(u)}}}}function I(e,t,r){var n=e.writeFileName;n&&t.options.listEmittedFiles&&n("TSFILE: "+r)}function O(t,r,n){r?(r&&t.writeFileName&&e.listFiles(r,t.writeFileName),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function M(r,n,a,o,s,c,u){var l=!(c&t.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return te(r,n,s),r.projectStatus.set(n,{type:e.UpToDateStatusType.Unbuildable,reason:u+" errors"}),l?{buildResult:c,step:i.EmitBuildInfo}:(O(r,a,o),{buildResult:c,step:i.QueueReferencingProjects})}function L(t,r,n,i){if(n<(t.host.getModifiedTime(r)||e.missingFileModifiedTime))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function R(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var i=t.projectStatus.get(n);if(void 0!==i)return i;var s=function(t,r,n){for(var i=void 0,s=a,l=t.host,d=0,_=r.fileNames;d<_.length;d++){var p=_[d];if(!l.fileExists(p))return{type:e.UpToDateStatusType.Unbuildable,reason:p+" does not exist"};var f=l.getModifiedTime(p)||e.missingFileModifiedTime;f>s&&(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()),v="(none)",b=o,x="(none)",D=a,S=a,T=!1,E=0,C=y;E<C.length;E++){var k=C[E];if(!l.fileExists(k)){g=k;break}var N=l.getModifiedTime(k)||e.missingFileModifiedTime;if(N<b&&(b=N,v=k),N<s){T=!0;break}N>D&&(D=N,x=k),u(k)&&(S=c(S,l.getModifiedTime(k)||e.missingFileModifiedTime))}var A,F=!1,P=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var w=0,I=r.projectReferences;w<I.length;w++){var O=I[w];P=P||!!O.prepend;var M=e.resolveProjectReferencePath(O),B=m(t,M),j=R(t,h(t,M,B),B);if(j.type!==e.UpToDateStatusType.ComputingUpstream&&j.type!==e.UpToDateStatusType.ContainerOnly){if(j.type===e.UpToDateStatusType.Unbuildable||j.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:O.path,upstreamProjectBlocked:j.type===e.UpToDateStatusType.UpstreamBlocked};if(j.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:O.path};if(!g){if(j.newestInputFileTime&&j.newestInputFileTime<=b)continue;if(j.newestDeclarationFileContentChangedTime&&j.newestDeclarationFileContentChangedTime<=b){F=!0,A=O.path;continue}return e.Debug.assert(void 0!==v,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:v,newerProjectName:O.path}}}}}if(void 0!==g)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:g};if(T)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:v,newerInputFileName:i};var J=L(t,r.options.configFilePath,b,v);if(J)return J;var K=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return L(t,e,b,v)}));if(K)return K;if(!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var z=e.getTsBuildInfoEmitOutputFilePath(r.options);if(z){var U=t.readFileWithCache(z),V=U&&e.getBuildInfo(U);if(V&&(V.bundle||V.program)&&V.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:V.version}}}return P&&F?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:v,newerProjectName:A}:{type:F?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:s,newestOutputFileTime:D,newestInputFileName:i,newestOutputFileName:x,oldestOutputFileName:v}}(t,r,n);return t.projectStatus.set(n,s),s}function B(t,r,n,i,a){var o=t.host,s=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||s.length!==a.size)for(var l=!!t.options.verbose,d=o.now?o.now():new Date,_=0,p=s;_<p.length;_++){var f=p[_];a&&a.has(g(t,f))||(l&&(l=!1,$(t,i,r.options.configFilePath)),u(f)&&(n=c(n,o.getModifiedTime(f)||e.missingFileModifiedTime)),o.setModifiedTime(f,d))}return n}function j(t,r,n){if(t.options.dry)return $(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var i=B(t,r,a,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:i,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function J(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var u=a+1;u<s.length;u++){var l=s[u],d=m(r,l);if(!r.projectPendingBuild.has(d)){var _=h(r,l,d);if(_&&_.projectReferences)for(var p=0,f=_.projectReferences;p<f.length;p++){var g=f[p];if(m(r,v(r,g.path))===i){var y=r.projectStatus.get(d);if(y)switch(y.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){g.prepend?r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n}):y.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:y.type===e.UpToDateStatusType.OutOfDateWithPrepend?y.outOfDateOutputFileName:y.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:m(r,v(r,y.upstreamProjectName))===i&&E(r,d)}C(r,d,e.ConfigFileProgramReloadLevel.None);break}}}}}function K(t,r,n,i){var a=D(t,r,i);if(!a)return e.ExitStatus.InvalidProject_OutputsSkipped;k(t,n);for(var o=!0,s=0;;){var c=w(t,a,o);if(!c)break;o=!1,c.done(n),t.diagnostics.has(c.projectPath)||s++}return T(t),ne(t,a),function(e,t){if(!e.watchAllProjectsPending)return;e.watchAllProjectsPending=!1;for(var r=0,n=d(t);r<n.length;r++){var i=n[r],a=m(e,i),o=h(e,i,a);H(e,i,a,o),o&&(G(e,i,a,o),Y(e,i,a,o))}}(t,a),l(a)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:a.some((function(e){return t.diagnostics.has(m(t,e))}))?s?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function z(t,r,n){var i=D(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(l(i))return ee(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,c=0,u=i;c<u.length;c++){var d=u[c],_=m(t,d),p=h(t,d,_);if(void 0!==p)for(var f=0,g=e.getAllProjectOutputs(p,!o.useCaseSensitiveFileNames());f<g.length;f++){var y=g[f];o.fileExists(y)&&(s?s.push(y):(o.deleteFile(y),U(t,_,e.ConfigFileProgramReloadLevel.None)))}else re(t,_)}return s&&$(t,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((function(e){return"\r\n * "+e})).join("")),e.ExitStatus.Success}function U(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,E(t,r),C(t,r,n),S(t)}function V(e,t,r){e.reportFileChangeDetected=!0,U(e,t,r),q(e)}function q(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(W,250,e))}function W(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),Z(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var r=x(t),n=w(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&q(t):(T(t),ne(t,r))}function H(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(t.hostWithWatch,r,(function(){V(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function G(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(s(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.configFileSpecs.wildcardDirectories)),(function(a,o){return t.watchDirectory(t.hostWithWatch,a,(function(o){e.isIgnoredFileFromWildCardWatching({watchedDirPath:g(t,a),fileOrDirectory:o,fileOrDirectoryPath:g(t,o),configFileName:r,configFileSpecs:i.configFileSpecs,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return t.writeLog(e)}})||V(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)}))}function Y(t,r,n,i){t.watch&&e.mutateMap(s(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(function(e){return g(t,e)})),{createNewValue:function(a,o){return t.watchFilePath(t.hostWithWatch,o,(function(){return V(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null==i?void 0:i.watchOptions,a,e.WatchType.SourceFile,r)},onDeleteValue:e.closeFileWatcher})}function X(t,r,n,i,a){var o=f(t,r,n,i,a);return{build:function(e,t){return K(o,e,t)},clean:function(e){return z(o,e)},buildReferences:function(e,t){return K(o,e,t,!0)},cleanReferences:function(e){return z(o,e,!0)},getNextInvalidatedProject:function(e){return k(o,e),w(o,x(o),!1)},getBuildOrder:function(){return x(o)},getUpToDateStatusOfProject:function(e){var t=v(o,e),r=m(o,t);return R(o,h(o,t,r),r)},invalidateProject:function(t,r){return U(o,t,r||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return W(o)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(function(e){return y(e)?e:void 0})))},close:function(){return function(t){e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedWildcardDirectories,(function(t){return e.clearMap(t,e.closeFileWatcherOf)})),e.clearMap(t.allWatchedInputFiles,(function(t){return e.clearMap(t,e.closeFileWatcher)}))}(o)}}}function Q(t,r){return e.convertToRelativePath(r,t.currentDirectory,(function(e){return t.getCanonicalFileName(e)}))}function $(t,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,r([n],i)))}function Z(t,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];t.hostWithWatch.onWatchStatusChange&&t.hostWithWatch.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,r([n],i)),t.host.getNewLine(),t.baseCompilerOptions)}function ee(e,t){var r=e.host;t.forEach((function(e){return r.reportDiagnostic(e)}))}function te(e,t,r){ee(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function re(e,t){te(e,t,[e.configFileCache.get(t)])}function ne(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,i=t.diagnostics,a=0;l(r)?(ie(t,r.buildOrder),ee(t,r.circularDiagnostics),n&&(a+=e.getErrorCountForSummary(r.circularDiagnostics))):(r.forEach((function(r){var n=m(t,r);t.projectErrorsReported.has(n)||ee(t,i.get(n)||e.emptyArray)})),n&&i.forEach((function(t){return a+=e.getErrorCountForSummary(t)}))),t.watch?Z(t,e.getWatchErrorSummaryDiagnosticMessage(a),a):t.host.reportErrorSummary&&t.host.reportErrorSummary(a)}}function ie(t,r){t.options.verbose&&$(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((function(e){return"\r\n * "+Q(t,e)})).join(""))}function ae(t,r,n){t.options.verbose&&function(t,r,n){switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return $(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(t,r),Q(t,n.outOfDateOutputFileName),Q(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return $(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Q(t,r),Q(t,n.outOfDateOutputFileName),Q(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return $(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Q(t,r),Q(t,n.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return $(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Q(t,r),Q(t,n.newestInputFileName||""),Q(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return $(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Q(t,r),Q(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return $(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Q(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return $(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Q(t,r),Q(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return $(t,n.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Q(t,r),Q(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return $(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Q(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return $(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Q(t,r),n.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}}(t,r,n)}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(t||(t={})),e.isCircularBuildOrder=l,e.getBuildOrderFromAnyBuildOrder=d,e.createBuilderStatusReporter=_,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,t,r){return X(!1,e,t,r)},e.createSolutionBuilderWithWatch=function(e,t,r,n){return X(!0,e,t,r,n)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(n=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),function(e){e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"}(i||(i={}))}(u||(u={})),function(e){!function(t){t.ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",function(e){e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"}(t.Arguments||(t.Arguments={})),t.hasArgument=function(t){return e.sys.args.indexOf(t)>=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}}(e.server||(e.server={}))}(u||(u={})),function(e){!function(t){function r(t,r){return new e.Version(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest")).compareTo(t.version)<=0}function n(e){return t.nodeCoreModules.has(e)?"node":e}t.isTypingUpToDate=r,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=n,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,i,a,o,s,c,u,l,d){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var _=new e.Map;a=e.mapDefined(a,(function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var p=[];u.include&&S(u.include,"Explicitly included types");var f=u.exclude||[],g=new e.Set(a.map(e.getDirectoryPath));g.add(o),g.forEach((function(t){T(e.combinePaths(t,"package.json"),p),T(e.combinePaths(t,"bower.json"),p),E(e.combinePaths(t,"bower_components"),p),E(e.combinePaths(t,"node_modules"),p)})),function(t){var r=e.mapDefined(t,(function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names");e.some(t,(function(t){return e.fileExtensionIs(t,".jsx")}))&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(a),l&&S(e.deduplicate(l.map(n),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,t){var n=d.get(t);_.has(t)&&void 0===_.get(t)&&void 0!==n&&r(e,n)&&_.set(t,e.typingLocation)}));for(var m=0,y=f;m<y.length;m++){var h=y[m];_.delete(h)&&i&&i("Typing for "+h+" is in exclude list, will be ignored.")}var v=[],b=[];_.forEach((function(e,t){void 0!==e?b.push(e):v.push(t)}));var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:p};return i&&i("Result: "+JSON.stringify(x)),x;function D(e){_.has(e)||_.set(e,void 0)}function S(t,r){i&&i(r+": "+JSON.stringify(t)),e.forEach(t,D)}function T(r,n){if(t.fileExists(r)){n.push(r);var i=e.readConfigFile(r,(function(e){return t.readFile(e)})).config;S(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+r+"' dependencies")}}function E(r,n){if(n.push(r),t.directoryExists(r)){var a=t.readDirectory(r,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+r+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var u=c[s],l=e.normalizePath(u),d=e.getBaseFileName(l);if("package.json"===d||"bower.json"===d){var p=e.readConfigFile(l,(function(e){return t.readFile(e)})).config;if(("package.json"!==d||!p._requiredBy||0!==e.filter(p._requiredBy,(function(e){return"#"===e[0]||"/"===e})).length)&&p.name){var f=p.types||p.typings;if(f){var g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(l));i&&i(" Package '"+p.name+"' provides its own types."),_.set(p.name,g)}else o.push(p.name)}}}S(o," Found package names")}}},function(e){e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"}(t.NameValidationResult||(t.NameValidationResult={}));function i(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 function e(t,r){if(!t)return 1;if(t.length>214)return 2;if(46===t.charCodeAt(0))return 3;if(95===t.charCodeAt(0))return 4;if(r){var n=/^@([^/]+)\/([^/]+)$/.exec(t);if(n){var i=e(n[1],!1);if(0!==i)return{name:n[1],isScopeName:!0,result:i};var a=e(n[2],!1);return 0!==a?{name:n[2],isScopeName:!1,result:a}:0}}if(encodeURIComponent(t)!==t)return 5;return 0}(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?i(t,e.result,e.name,e.isScopeName):i(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.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 246:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 159:case 195:case 162:case 161:case 285:case 286:case 164:case 163:case 165:case 166:case 167:case 248:case 205:case 206:case 284:case 277:return 1;case 158:case 250:case 251:case 176:return 2;case 327:return void 0===t.name?3:2;case 288:case 249:return 3;case 253:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 252:case 261:case 262:case 257:case 258:case 263:case 264:return 7;case 294:return 5}return 7}function r(t){for(;156===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 294===(n=F(n)).kind?1:263===n.parent.kind||269===n.parent.kind||262===n.parent.kind||259===n.parent.kind||e.isImportEqualsDeclaration(n.parent)&&n===n.parent.name?7:r(n)?function(t){var r=156===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&257===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 107:return!e.isExpressionNode(t);case 186:return!0}switch(t.parent.kind){case 172:return!0;case 192:return!t.parent.isTypeOf;case 220:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(156===t.parent.kind){for(;t.parent&&156===t.parent.kind;)t=t.parent;r=t.right===e}return 172===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(198===t.parent.kind){for(;t.parent&&198===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&220===t.parent.kind&&283===t.parent.parent.kind){var n=t.parent.parent.parent;return 249===n.kind&&116===t.parent.parent.token||250===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(242===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 162:case 161:case 285:case 288:case 164:case 163:case 166:case 167:case 253:return e.getNameOfDeclaration(t.parent)===t;case 199:return t.parent.argumentExpression===t;case 157:return!0;case 190:return 188===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 294:case 164:case 163:case 248:case 205:case 166:case 167:case 249:case 250:case 252:case 253:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 294:return e.isExternalModule(r)?"module":"script";case 253:return"module";case 249:case 218:return"class";case 250:return"interface";case 251:case 320:case 327:return"type";case 252:return"enum";case 246:return c(r);case 195:return c(e.getRootDeclaration(r));case 206:case 248:case 205:return"function";case 166:return"getter";case 167:return"setter";case 164:case 163:return"method";case 285:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 162:case 161:case 286:case 287:return"property";case 170:return"index";case 169:return"construct";case 168:return"call";case 165:return"constructor";case 158:return"type parameter";case 288:return"enum member";case 159:return e.hasSyntacticModifier(r,92)?"property":"parameter";case 257:case 262:case 267:case 260:case 266:return"alias";case 213: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 263: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)&&159===t.parent.kind;default:return!1}};var f=/^\/\/\/\s*</;function g(e,t){return y(e.pos,e.end,t)}function m(e,t){return e.pos<t&&t<e.end}function y(e,t,r){return e<=r.pos&&t>=r.end}function h(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function v(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function b(e,t,r){return!!x(e,t,r)}function x(t,r,n){return e.find(t.getChildren(n),(function(e){return e.kind===r}))}function D(t){var r=e.find(t.parent.getChildren(),(function(r){return e.isSyntaxList(r)&&g(r,t)}));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function S(e){return 87===e.kind}function T(e){return 83===e.kind}function E(e){return 97===e.kind}function C(t,r){if(!r)switch(t.kind){case 249:case 218:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=e.find(t.modifiers,S);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),T);if(n)return n}}(t);case 248:case 205:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,S);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),E);if(n)return n}}(t)}if(e.isNamedDeclaration(t))return t.name}function k(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function N(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function A(t,r){var n=t.parent;if((e.isModifier(t)&&(r||87!==t.kind)?e.contains(n.modifiers,t):83===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):97===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):117===t.kind?e.isInterfaceDeclaration(n):91===t.kind?e.isEnumDeclaration(n):148===t.kind?e.isTypeAliasDeclaration(n):139===t.kind||138===t.kind?e.isModuleDeclaration(n):99===t.kind?e.isImportEqualsDeclaration(n):134===t.kind?e.isGetAccessorDeclaration(n):145===t.kind&&e.isSetAccessorDeclaration(n))&&(a=C(n,r)))return a;if((112===t.kind||84===t.kind||118===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(148===t.kind){if(e.isImportClause(n)&&n.isTypeOnly)if(a=k(n.parent,r))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly)if(a=N(n,r))return a}if(126===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(99===t.kind&&e.isImportDeclaration(n)&&(a=k(n,r)))return a;if(92===t.kind){var a;if(e.isExportDeclaration(n))if(a=N(n,r))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(142===t.kind&&e.isExternalModuleReference(n))return n.expression;if(152===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((93===t.kind||116===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind&&(a=function(e){if(1===e.types.length)return e.types[0].expression}(n)))return a;if(93===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(135===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(100===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(137===t.kind&&e.isTypeOperatorNode(n)&&137===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(141===t.kind&&e.isTypeOperatorNode(n)&&141===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((102===t.kind&&e.isNewExpression(n)||113===t.kind&&e.isVoidExpression(n)||111===t.kind&&e.isTypeOfExpression(n)||130===t.kind&&e.isAwaitExpression(n)||124===t.kind&&e.isYieldExpression(n)||88===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((100===t.kind||101===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(126===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(100===t.kind&&e.isForInStatement(n)||155===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function F(e){return A(e,!1)}function P(e,t,r){return I(e,t,!1,r,!1)}function w(e,t){return I(e,t,!0,void 0,!1)}function I(e,t,r,n,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if((r?c.getFullStart():c.getStart(e,!0))>t)break;var u=c.getEnd();if(t<u||t===u&&(1===c.kind||i)){a=c;continue e}if(n&&u===t){var l=M(t,e,c);if(l&&n(l))return l}}return a}}function O(t,r,n){return function r(i){if(e.isToken(i)&&i.pos===t.end)return i;return e.firstDefined(i.getChildren(n),(function(e){return(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&q(e,n)?r(e):void 0}))}(r)}function M(t,r,n,i){var a=function a(o){if(L(o)&&1!==o.kind)return o;for(var s=o.getChildren(r),c=0;c<s.length;c++){var u=s[c];if(t<u.end){if(u.getStart(r,!i)>=t||!q(u,r)||j(u)){var l=B(s,c,r);return l&&R(l,r)}return a(u)}}e.Debug.assert(void 0!==n||294===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=B(s,s.length,r);return d&&R(d,r)}(n||r);return e.Debug.assert(!(a&&j(a))),a}function L(t){return e.isToken(t)&&!j(t)}function R(e,t){if(L(e))return e;var r=e.getChildren(t),n=B(r,r.length,t);return n&&R(n,t)}function B(t,r,n){for(var i=r-1;i>=0;i--){if(j(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[i],n))return t[i]}}function j(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function J(e,t,r){for(var n=e.kind,i=0;;){var a=M(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function K(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function z(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=K(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 U(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=M(n.getFullStart(),r))&&28===n.kind&&(n=M(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=J(n,18,r)))return;break;case 21:if(!(n=J(n,20,r)))return;break;case 23:if(!(n=J(n,22,r)))return;break;case 27:a++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 137:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=M(n.getFullStart(),r)}}function V(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function W(e,t,r){var n=V(e,t,void 0);return!!n&&r===f.test(e.text.substring(n.pos,n.end))}function H(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function G(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Y(e,t){return{span:e,newText:t}}function X(e){return 148===e.kind}function Q(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 $(e,t){return n(n({},Q(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function Z(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?ee(n,i):n)}function ee(t,r){return e.factory.createStringLiteral(t,0===r)}function te(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function re(t){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 ne(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 ie(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function ae(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function oe(e){return e.declarations&&e.declarations.length>0&&159===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 h(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return h(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=h,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!function t(r,n){if(void 0===r||e.nodeIsMissing(r))return!1;switch(r.kind){case 249:case 250:case 252:case 197:case 193:case 176:case 227:case 254:case 255:case 261:case 265:return v(r,19,n);case 284:return t(r.block,n);case 201:if(!r.arguments)return!0;case 200:case 204:case 185:return v(r,21,n);case 173:case 174:return t(r.type,n);case 165:case 166:case 167:case 248:case 205:case 164:case 163:case 169:case 168:case 206:return r.body?t(r.body,n):r.type?t(r.type,n):b(r,21,n);case 253:return!!r.body&&t(r.body,n);case 231:return r.elseStatement?t(r.elseStatement,n):t(r.thenStatement,n);case 230:return t(r.expression,n)||b(r,26,n);case 196:case 194:case 199:case 157:case 178:return v(r,23,n);case 170:return r.type?t(r.type,n):b(r,23,n);case 281:case 282:return!1;case 234:case 235:case 236:case 233:return t(r.statement,n);case 232:return b(r,114,n)?v(r,21,n):t(r.statement,n);case 175:return t(r.exprName,n);case 208:case 207:case 209:case 216:case 217:return t(r.expression,n);case 202:return t(r.template,n);case 215:return t(e.lastOrUndefined(r.templateSpans),n);case 225:return e.nodeIsPresent(r.literal);case 264:case 258:return e.nodeIsPresent(r.moduleSpecifier);case 211:return t(r.operand,n);case 213:return t(r.right,n);case 214:return t(r.whenFalse,n);default:return!0}}(t,n)},e.findListItemInfo=function(t){var r=D(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=b,e.findChildOfKind=x,e.findContainingList=D,e.getAdjustedReferenceLocation=F,e.getAdjustedRenameLocation=function(e){return A(e,!0)},e.getTouchingPropertyName=function(t,r){return P(t,r,(function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t)}))},e.getTouchingToken=P,e.getTokenAtPosition=w,e.findTokenOnLeftOfPosition=function(t,r){var n=w(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:M(r,t)},e.findNextToken=O,e.findPrecedingToken=M,e.isInString=function(t,r,n){if(void 0===n&&(n=M(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var r=w(e,t);return!!r&&(11===r.kind||(29===r.kind&&11===r.parent.kind||(29===r.kind&&280===r.parent.kind||(!(!r||19!==r.kind||280!==r.parent.kind)||29===r.kind&&273===r.parent.kind))))},e.isInTemplateString=function(t,r){var n=w(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=function(t,r){var n=w(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=271&&r.kind<=280||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(270!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(w(e,t))},e.findPrecedingMatchingToken=J,e.removeOptionality=K,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=U(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==z(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=z,e.getPossibleTypeArgumentsInfo=U,e.isInComment=V,e.hasDocComment=function(t,r){var n=w(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.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"),263===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 172===t.kind||200===t.kind?t.typeArguments:e.isFunctionLike(t)||249===t.kind||250===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end},e.isAccessibilityModifier=function(e){switch(e){case 122:case 120:case 121:return!0}return!1},e.cloneCompilerOptions=function(t){var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(196===t.kind||197===t.kind){if(213===t.parent.kind&&t.parent.left===t&&62===t.parent.operatorToken.kind)return!0;if(236===t.parent.kind&&t.parent.initializer===t)return!0;if(e(285===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=function(e,t){return W(e,t,!0)},e.isInNonReferenceComment=function(e,t){return W(e,t,!1)},e.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return G(e);default:return H(e)}},e.createTextSpanFromNode=H,e.createTextSpanFromStringLiteralLikeContent=G,e.createTextRangeFromNode=function(t,r){return e.createRange(t.getStart(r),t.end)},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextRangeFromSpan=function(t){return e.createRange(t.start,t.start+t.length)},e.createTextChangeFromStartLength=function(t,r,n){return Y(e.createTextSpan(t,r),n)},e.createTextChange=Y,e.typeKeywords=[128,127,154,131,94,137,140,103,143,144,141,146,147,109,113,149,150,151],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isTypeKeywordToken=X,e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(t){return 157===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t)},e.programContainsModules=function(e){return e.getSourceFiles().some((function(t){return!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)}))},e.programContainsEs6Modules=function(e){return e.getSourceFiles().some((function(t){return!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator}))},e.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||e.target>=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=Q,e.getModuleSpecifierResolverHost=$,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?Z(e,t,r,n):void 0},e.makeImport=Z,e.makeStringLiteral=ee,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=te,e.getQuotePreference=function(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?te(n,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=re(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=re,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getPropertySymbolsFromBaseTypes=ne,e.isMemberSymbolInBaseType=function(e,t){return ne(e.parent,e.name,t,(function(e){return!0}))||!1},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!ie(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=229===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;c<u.length;c++){var l=u[c],d=e.OrganizeImports.getImportDeclarationInsertionIndex(o,l);if(0===d)t.insertNodeBefore(r,o[0],l,!1);else{var _=o[d-1];t.insertNodeAfter(r,_,l)}}else{var p=e.lastOrUndefined(o);p?t.insertNodesAfter(r,p,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=function(t,r){return e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),X)},e.textSpansEqual=ae,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&ae(e.textSpan,t.textSpan)},e.forEachUnique=function(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=function(t,r,n){for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=oe;var se=function(){var t,r,n,i,a=10*e.defaultMaximumTruncationLength;u();var o=function(t){return c(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(ue(" ",e.SymbolDisplayPartKind.space)),t.push(ue("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(ce(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(_e()),r=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:u,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(ue(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(ue(e,r)))}function u(){t=[],r=!0,n=0,i=0}}();function ce(t,r){return ue(t,function(t){var r=t.flags;if(3&r)return oe(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&r)return e.SymbolDisplayPartKind.propertyName;if(32768&r)return e.SymbolDisplayPartKind.propertyName;if(65536&r)return e.SymbolDisplayPartKind.propertyName;if(8&r)return e.SymbolDisplayPartKind.enumMemberName;if(16&r)return e.SymbolDisplayPartKind.functionName;if(32&r)return e.SymbolDisplayPartKind.className;if(64&r)return e.SymbolDisplayPartKind.interfaceName;if(384&r)return e.SymbolDisplayPartKind.enumName;if(1536&r)return e.SymbolDisplayPartKind.moduleName;if(8192&r)return e.SymbolDisplayPartKind.methodName;if(262144&r)return e.SymbolDisplayPartKind.typeParameterName;if(524288&r)return e.SymbolDisplayPartKind.aliasName;if(2097152&r)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(r))}function ue(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function le(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function de(t){return ue(t,e.SymbolDisplayPartKind.text)}e.symbolPart=ce,e.displayPart=ue,e.spacePart=function(){return ue(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=le,e.punctuationPart=function(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return ue(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?de(t):le(r)},e.textPart=de;function _e(){return ue("\n",e.SymbolDisplayPartKind.lineBreak)}function pe(e){try{return e(se),se.displayParts()}finally{se.clear()}}function fe(e){return 0!=(33554432&e.flags)}function ge(e){return 0!=(2097152&e.flags)}function me(e,t){void 0===t&&(t=!0);var r=e&&he(e);return r&&!t&&ve(r),r}function ye(t,r,n,i,a){var o;if(void 0===r&&(r=!0),n&&i&&e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent))(c=(s=i.getSymbolAtLocation(t.name))&&n.get(String(e.getSymbolId(s))))&&c.text!==(t.name||t.propertyName).getText()&&(o=e.setOriginalNode(e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,c,t.initializer),t));else if(n&&i&&e.isIdentifier(t)){var s,c;(c=(s=i.getSymbolAtLocation(t))&&n.get(String(e.getSymbolId(s))))&&(o=e.setOriginalNode(e.factory.createIdentifier(c.text),t))}return o||(o=he(t,n,i,a)),o&&!r&&ve(o),a&&o&&a(t,o),o}function he(t,r,n,i){var a=r||n||i?e.visitEachChild(t,(function(e){return ye(e,!0,r,n,i)}),e.nullTransformationContext):e.visitEachChild(t,me,e.nullTransformationContext);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 ve(e){be(e),xe(e)}function be(e){De(e,512,Se)}function xe(t){De(t,1024,e.getLastChild)}function De(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&De(i,r,n)}function Se(e){return e.forEachChild((function(e){return e}))}function Te(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,ke(r,n,i,a,e.addSyntheticLeadingComment))}function Ee(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,ke(r,n,i,a,e.addSyntheticTrailingComment))}function Ce(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,ke(r,n,i,a,e.addSyntheticLeadingComment))}function ke(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Ne(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Ae(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Fe(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Pe(e){return 168===e||169===e||170===e||161===e||163===e}function we(e){return 248===e||165===e||164===e||166===e||167===e}function Ie(e){return 253===e}function Oe(e){return 229===e||230===e||232===e||237===e||238===e||239===e||243===e||245===e||162===e||251===e||258===e||257===e||264===e||256===e||263===e}function Me(e,t){return Re(e,e.fileExists,t)}function Le(e){try{return e()}catch(e){return}}function Re(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return Le((function(){return t&&t.apply(e,r)}))}function Be(t,r){if(r.readFile){var i=function(e){try{return JSON.parse(e)}catch(e){return}}(r.readFile(t)||""),a={};if(i)for(var o=0,s=["dependencies","devDependencies","optionalDependencies","peerDependencies"];o<s.length;o++){var c=s[o],u=i[c];if(u){var l=new e.Map;for(var d in u)l.set(d,u[d]);a[c]=l}}var _=[[1,a.dependencies],[2,a.devDependencies],[8,a.optionalDependencies],[4,a.peerDependencies]];return n(n({},a),{parseable:!!i,fileName:t,get:p,has:function(e,t){return!!p(e,t)}})}function p(e,t){void 0===t&&(t=15);for(var r=0,n=_;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function je(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Je(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.getNewLineOrDefaultFromHost=function(e,t){var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=_e,e.mapToDisplayParts=pe,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),pe((function(i){e.writeType(t,r,17408|n,i)}))},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),pe((function(a){e.writeSymbol(t,r,n,8|i,a)}))},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,pe((function(i){e.writeSignature(t,r,n,void 0,i)}))},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.getScriptKind=function(t,r){return e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t))},e.getSymbolTarget=function(t,r){for(var n=t;ge(n)||fe(n)&&n.target;)n=fe(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=function(t,r){return e.getSymbolId(e.skipAlias(t,r))},e.getFirstNonSpaceCharacterPosition=function(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=function(t,r){for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=me,e.getSynthesizedDeepCloneWithRenames=ye,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return me(e,r)})),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=ve,e.suppressLeadingTrivia=be,e.suppressTrailingTrivia=xe,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,r.text)?Ce(e,t,r):Te(e,t,r),Ee(e,t,r)},e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n=t+"_"+i;return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var u=c[s],l=u.fileName,d=u.textChanges;e.Debug.assert(l===r);for(var _=0,p=d;_<p.length;_++){var f=p[_],g=f.span,m=f.newText,y=Ne(m,n);if(-1!==y&&(o=g.start+a+y,!i))return o;a+=m.length-g.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=Te,e.copyTrailingComments=Ee,e.copyTrailingAsLeadingComments=Ce,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 201:return t.getContextualType(r);case 213:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Ae(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 281:return r.expression===e?Fe(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){var n=r.quotePreference||"auto",i=JSON.stringify(t);switch(n){case"auto":case"double":return i;case"single":return"'"+e.stripQuotes(i).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(n)}},e.isEqualityOperatorKind=Ae,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 215:case 202:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Fe,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:$(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Pe,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=we,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ie,e.syntaxRequiresTrailingSemicolonOrASI=Oe,e.syntaxMayBeASICandidate=e.or(Pe,we,Ie,Oe),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Pe(t.kind)){if(n&&27===n.kind)return!1}else if(Ie(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(we(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!Oe(t.kind))return!1;if(232===t.kind)return!0;var a=O(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(Oe(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2},e.tryGetDirectories=function(e,t){return Re(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return Re(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Me,e.tryDirectoryExists=function(t,r){return Le((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Le,e.tryIOAndConsumeErrors=Re,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");Me(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||(!!(n=e.findConfigFile(t,(function(e){return Me(r,e)}),"package.json"))||void 0)})),n},e.getPackageJsonsVisibleToFile=function(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(function(t){var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Be(i,r);a&&n.push(a)}})),n},e.createPackageJsonInfo=Be,e.consumesNodeCoreModules=function(t){return e.some(t.imports,(function(t){var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))},e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=je,e.findDiagnosticForNode=function(t,r){var n=H(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,je)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],je);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return"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<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},e.isGlobalDeclaration=function(e){return!Je(e)},e.isNonGlobalDeclaration=Je}(u||(u={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(i,s,c){var u=0,l=0,d=[],_=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),p=_.prefix,f=_.pushTemplate;i=p+i;var g=p.length;f&&d.push(15),o.setText(i);var m=0,y=[],h=0;do{u=o.scan(),e.isTrivia(u)||(x(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,g,a(u),y),v>=i.length){var b=r(o,u,e.lastOrUndefined(d));void 0!==b&&(m=b)}}while(1!==u);function x(){switch(u){case 43:case 67:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:78===l&&h++;break;case 31:h>0&&h--;break;case 128:case 146:case 143:case 131:case 147:h>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 145:case 132:case 123:return!0;default:return!1}}(l,u))&&(u=78)}}return{endOfLineState:m,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],u=a[s+1],l=a[s+2];if(o>=0){var 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 253:case 249:case 250:case 248:case 218:case 205:case 206:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),d=l&&function t(r,n,i){var a=r.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);d&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(t),s.push(i),s.push(n)}(u.getStart(n),u.getEnd(),d)}u.forEachChild(c)}})),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:c(r[i+2])});return n}function l(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),u=[];return h(r),{spans:u,endOfLineState:0};function l(e,t,r){u.push(e),u.push(t),u.push(r)}function d(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];switch(i.pos!==t&&_(t,i.pos-t),l(i.pos,1,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 322:a(i);break;case 326:p(i),t=i.end;break;case 325:case 323:h(i.typeExpression),t=i.end}}t!==e.end&&_(t,e.end-t);return;function a(e){e.isNameFirst&&(_(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(_(t,e.typeExpression.pos-t),h(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(_(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}}(o.jsDoc)}else if(2===n&&function(t,n){var i=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,a=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;_(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<g&&_(c,g-c);return!0}(i,a))return;_(i,a)}function _(e,t){l(e,t,1)}function p(e){for(var t=0,r=e.getChildren();t<r.length;t++){h(r[t])}}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(l(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)g()}function g(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=y(t);n&&l(e,r-e,n)}function m(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 272:if(e.parent.tagName===e)return 19;break;case 273:if(e.parent.tagName===e)return 20;break;case 271:if(e.parent.tagName===e)return 21;break;case 277:if(e.parent.name===e)return 22}return}(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:d(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,u=c.charCodeAt(n);if(60===u||62===u){l(n,o,1);continue}e.Debug.assert(124===u||61===u),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(62===t&&(246===n.kind||162===n.kind||159===n.kind||277===n.kind))return 5;if(213===n.kind||211===n.kind||212===n.kind||214===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&277===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 249:return r.parent.name===r?11:void 0;case 158:return r.parent.name===r?15:void 0;case 250:return r.parent.name===r?13:void 0;case 252:return r.parent.name===r?12:void 0;case 253:return r.parent.name===r?14:void 0;case 159:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function h(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var u=c[s];m(u)||h(u)}}}}e.getSemanticClassifications=function(e,t,r,n,i){return u(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return u(l(e,t,r))},e.getEncodedSyntacticClassifications=l}(u||(u={})),function(e){!function(t){!function(n){function i(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((function(e){var r=e.name,n=e.kind,i=e.span;return{name:r,kind:n,kindModifiers:a(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:i}}))}}function a(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(t)}}var o;function s(t,r,n,i,a,o){var s,l,d=r.parent;switch(d.kind){case 190:switch(d.parent.kind){case 172:return{kind:2,types:u(i.getTypeArgumentConstraint(d)),isNewIdentifier:!1};case 188:return c(i.getTypeFromTypeNode(d.parent.objectType));case 192:return{kind:0,paths:p(t,r,a,o,i)};case 181:if(!e.isTypeReferenceNode(d.parent.parent))return;var _=(s=d.parent,l=d,e.mapDefined(s.types,(function(t){return t!==l&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0})));return{kind:2,types:u(i.getTypeArgumentConstraint(d.parent)).filter((function(t){return!e.contains(_,t.value)})),isNewIdentifier:!1};default:return}case 285:return e.isObjectLiteralExpression(d.parent)&&d.name===r?c(i.getContextualType(d.parent)):h();case 199:var f=d,g=f.expression,m=f.argumentExpression;return r===m?c(i.getTypeAtLocation(g)):void 0;case 200:case 201:if(!e.isRequireCall(d,!1)&&!e.isImportCall(d)){var y=e.SignatureHelp.getArgumentInfoForCompletions(r,n,t);return y?function(t,r){var n=!1,i=new e.Map,a=[];return r.getResolvedSignature(t.invocation,a,t.argumentCount),{kind:2,types:e.flatMap(a,(function(a){if(e.signatureHasRestParameter(a)||!(t.argumentCount>a.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),u(o,i)}})),isNewIdentifier:n}}(y,i):h()}case 258:case 264:case 269:return{kind:0,paths:p(t,r,a,o,i)};default:return h()}function h(){return{kind:2,types:u(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function c(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function u(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return u(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function l(e,t,r){return{name:e,kind:t,extension:r}}function d(e){return l(e,"directory",void 0)}function _(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r);return n.map((function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}}))}function p(t,n,i,a,o){return _(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=f(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 m(n,e,a,s,c)}))}(i.rootDirs,t,n,s,i,a,o):m(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=f(n);if(o){var d=n.project||i.getCurrentDirectory(),_=e.normalizePath(e.combinePaths(d,o));m(t,_,u,i,void 0,c),s&&y(c,t,_,u.extensions,s,i)}for(var p=h(t),g=0,v=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,p,a);g<v.length;g++){var x=v[g];c.push(l(x,"external module name",void 0))}if(b(i,n,r,p,u,c),e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var S=!1;if(void 0===p)for(var T=function(e){c.some((function(t){return t.name===e}))||(S=!0,c.push(l(e,"external module name",void 0)))},E=0,C=function(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,u=D;c<u.length;c++){var l=s[u[c]];if(l)for(var d in l)l.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&n.push(d)}return n}(i,r);E<C.length;E++){T(C[E])}S||e.forEachAncestorDirectory(r,(function(r){var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&m(t,n,u,i,void 0,c)}))}return c}(s,u,i,a,o)}(t,n,i,a,o))}function f(e,t){return void 0===t&&(t=!1),{extensions:g(e),includeExtensions:t}}function g(t){var r=e.getSupportedExtensions(t);return t.resolveJsonModule&&e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?r.concat(".json"):r}function m(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensions;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var u=e.resolvePath(r,t),_=e.hasTrailingDirectorySeparator(u)?u:e.getDirectoryPath(u),p=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,_))return o;var f=e.tryReadDirectory(i,_,s,void 0,["./*"]);if(f){for(var g=new e.Map,m=0,h=f;m<h.length;m++){var v=h[m];if(v=e.normalizePath(v),!a||0!==e.comparePaths(v,a,r,p)){var b=c||e.fileExtensionIs(v,".json")?e.getBaseFileName(v):e.removeFileExtension(e.getBaseFileName(v));g.set(b,e.tryGetExtensionFromPath(v))}}g.forEach((function(e,t){o.push(l(t,"script",e))}))}var x=e.tryGetDirectories(i,_);if(x)for(var D=0,S=x;D<S.length;D++){var T=S[D],E=e.getBaseFileName(e.normalizePath(T));"@types"!==E&&o.push(d(E))}var C=e.findPackageJson(_,i);if(C){var k=e.readJson(C,i).typesVersions;if("object"==typeof k){var N=e.getPackageJsonTypesVersionsPaths(k),A=N&&N.paths,F=u.slice(e.ensureTrailingDirectorySeparator(_).length);A&&y(o,F,_,s,A,i)}}return o}function y(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var u=function(e,r,n){t.some((function(t){return t.name===e}))||t.push(l(e,r,n))},d=0,_=v(s,c,r,n,i,o);d<_.length;d++){var p=_[d];u(p.name,p.kind,p.extension)}}}function h(t){return S(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function v(t,n,i,a,o,s){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:_(t);var c=t.slice(0,t.length-1),u=e.tryRemovePrefix(i,c);return void 0===u?_(c):e.flatMap(n,(function(t){return function(t,n,i,a,o){if(!o.readDirectory)return;var s=e.hasZeroOrOneAsteriskCharacter(i)?e.tryParsePattern(i):void 0;if(!s)return;var c=e.resolvePath(s.prefix),u=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),_=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),p=S(t),f=p?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,g=p?e.combinePaths(u,_+f):u,m=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(n,g)),h=p?y:e.ensureTrailingDirectorySeparator(y)+_,v=m?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(o,y,a,void 0,[v]),(function(t){var r=e.tryGetExtensionFromPath(t),n=D(t);return void 0===n?void 0:l(e.removeFileExtension(n),"script",r)})),x=e.mapDefined(e.tryGetDirectories(o,y).map((function(t){return e.combinePaths(y,t)})),(function(e){var t=D(e);return void 0===t?void 0:d(t)}));return r(b,x);function D(t){var r=function(t,r,n){return e.startsWith(t,r)&&e.endsWith(t,n)?t.slice(r.length,t.length-n.length):void 0}(e.normalizePath(t),h,m);return void 0===r?void 0:function(t){return t[0]===e.directorySeparator?t.slice(1):t}(r)}}(u,a,t,o,s)}));function _(t){return e.startsWith(t,i)?[d(t)]:e.emptyArray}}function b(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,u=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c<u.length;c++){f(u[c])}for(var d=0,_=e.findPackageJsons(n,t);d<_.length;d++){var p=_[d];f(e.combinePaths(e.getDirectoryPath(p),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var c=0,u=e.tryGetDirectories(t,n);c<u.length;c++){var d=u[c],_=e.unmangleScopedPackageName(d);if(!r.types||e.contains(r.types,_))if(void 0===i)s.has(_)||(o.push(l(_,"external module name",void 0)),s.set(_,!0));else{var p=e.combinePaths(n,d),f=e.tryRemoveDirectoryPrefix(i,_,e.hostGetCanonicalFileName(t));void 0!==f&&m(f,p,a,t,void 0,o)}}}}n.getStringLiteralCompletions=function(r,n,a,o,c,u,l,d){if(e.isInReferenceComment(r,n))return(p=function(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(function(e){return r>=e.pos&&r<=e.end}));if(!s)return;var c=t.text.slice(s.pos,r),u=x.exec(c);if(!u)return;var l=u[1],d=u[2],p=u[3],g=e.getDirectoryPath(t.path),y="path"===d?m(p,g,f(n,!0),i,t.path):"types"===d?b(i,n,g,h(p),f(n)):e.Debug.fail();return _(p,s.pos+l.length,y)}(r,n,c,u))&&i(p);if(e.isInString(r,n,a)){if(!a||!e.isStringLiteralLike(a))return;var p;return function(r,n,a,o,s,c){if(void 0===r)return;switch(r.kind){case 0:return i(r.paths);case 1:var u=[];return t.getCompletionEntriesFromSymbols(r.symbols,u,n,a,a,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,entries:u};case 2:u=r.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:"0",replacementSpan:e.getReplacementSpanForContextToken(n)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,entries:u};default:return e.Debug.assertNever(r)}}(p=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 x=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,D=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function S(t){return e.stringContains(t,e.directorySeparator)}}(t.StringCompletions||(t.StringCompletions={}))}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(t){var r,n,i,a,o,s;function c(e){return!!(e&&4&e.kind)}function u(e){return c(e)&&!!e.isFromPackageJson}function l(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function d(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function _(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function p(t,r){return"object"==typeof t?e.pseudoBigIntToString(t)+"n":e.isString(t)?e.quote(t,r):JSON.stringify(t)}function f(e,t){return{name:p(e,t),kind:"string",kindModifiers:"",sortText:r.LocationPriority}}function g(t,r,n,i,a,o,s,l,d,_,p,f,g){var v,b=e.getReplacementSpanForContextToken(n),x=d&&function(e){return!!(16&e.kind)}(d),D=d&&function(e){return!!(2&e.kind)}(d)||l;if(d&&function(e){return!!(1&e.kind)}(d))v=l?"this"+(x?"?.":"")+"["+m(s,g)+"]":"this"+(x?"?.":".")+s;else if((D||x)&&p){v=D?l?"["+m(s,g)+"]":"["+s+"]":s,(x||p.questionDotToken)&&(v="?."+v);var S=e.findChildOfKind(p,24,a)||e.findChildOfKind(p,28,a);if(!S)return;var T=e.startsWith(s,p.name.text)?p.name.end:S.end;b=e.createTextSpanFromBounds(S.getStart(a),T)}if(f&&(void 0===v&&(v=s),v="{"+v+"}","boolean"!=typeof f&&(b=e.createTextSpanFromNode(f,a))),d&&function(e){return!!(8&e.kind)}(d)&&p){void 0===v&&(v=s);var E=e.findPrecedingToken(p.pos,a),C="";E&&e.positionIsASICandidate(E.end,E.parent,a)&&(C=";"),C+="(await "+p.expression.getText()+")",v=l?""+C+v:C+(x?"?.":".")+v,b=e.createTextSpanFromBounds(p.getStart(a),p.end)}if(void 0===v||g.includeCompletionsWithInsertText)return{name:s,kind:e.SymbolDisplay.getSymbolKind(o,t,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:r,source:h(d),hasAction:d&&c(d)||void 0,isRecommended:y(t,_,o)||void 0,insertText:v,replacementSpan:b,isPackageJsonImport:u(d)||void 0}}function m(t,r){return/^\d+$/.test(t)?t:e.quote(t,r)}function y(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function h(t){return c(t)?e.stripQuotes(t.moduleSymbol.name):1===(null==t?void 0:t.kind)?n.ThisProperty:void 0}function v(t,n,i,a,o,s,c,u,l,d,_,p,f,m,y,h){for(var v=e.timestamp(),b=new e.Map,x=0,D=t;x<D.length;x++){var S=D[x],T=y?y[e.getSymbolId(S)]:void 0,E=C(S,c,T,l,!!p);if(E){var k=E.name,N=E.needsConvertPropertyAccess;if(!b.get(k)){var A=g(S,h&&h[e.getSymbolId(S)]||r.LocationPriority,i,a,o,s,k,N,T,m,_,f,d);if(A){var F=!(T||void 0===S.parent&&!e.some(S.declarations,(function(e){return e.getSourceFile()===a.getSourceFile()})));b.set(k,F),n.push(A)}}}}return u("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-v)),{has:function(e){return b.has(e)},add:function(e){return b.set(e,!0)}}}function b(t,r,n,i,a,o,s){var c=t.getCompilerOptions(),u=E(t,r,n,d(n,c),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a,o);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var l=u.symbols,_=u.literals,f=u.location,g=u.completionKind,m=u.symbolToOriginInfoMap,y=u.previousToken,v=u.isJsxInitializer,b=u.isTypeOnlyLocation,x=e.find(_,(function(e){return p(e,s)===a.name}));return void 0!==x?{type:"literal",literal:x}:e.firstDefined(l,(function(t){var r=m[e.getSymbolId(t)],n=C(t,c.target,r,g,u.isJsxIdentifierExpected);return n&&n.name===a.name&&h(r)===a.source?{type:"symbol",symbol:t,location:f,symbolToOriginInfoMap:m,previousToken:y,isJsxInitializer:v,isTypeOnlyLocation:b}:void 0}))||{type:"none"}}function x(t,r,n){return S(t,"",r,[e.displayPart(t,n)])}function D(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)})),u=c.displayParts,l=c.documentation,d=c.symbolKind,_=c.tags;return S(t.name,e.SymbolDisplay.getSymbolModifiers(t),d,u,l,_,o,s)}function S(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function T(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(function(e){return e.declarations.some((function(e){return 294===e.kind}))}(t.parent)?t:T(t.parent,r,n))}function E(t,n,i,a,o,s,c,u){var l=t.getTypeChecker(),d=e.timestamp(),_=e.getTokenAtPosition(i,o);n("getCompletionData: Get current token: "+(e.timestamp()-d)),d=e.timestamp();var p=e.isInComment(i,o,_);n("getCompletionData: Is inside comment: "+(e.timestamp()-d));var f=!1,g=!1;if(p){if(e.hasDocComment(i,o)){if(64===i.text.charCodeAt(o-1))return{kind:1};var m=e.getLineStartPositionForPosition(o,i);if(!/[^\*|\s(/)]/.test(i.text.substring(m,o)))return{kind:2}}var y=function(t,r){var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,(function(e){return e.pos<r})):void 0)}(_,o);if(y){if(y.tagName.pos<=o&&o<=y.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 322:case 328:case 323:case 325:case 327:return!0;default:return!1}}(y)&&y.typeExpression&&298===y.typeExpression.kind&&((_=e.getTokenAtPosition(i,o))&&(e.isDeclarationName(_)||328===_.parent.kind&&_.parent.name===_)||(f=de(y.typeExpression))),!f&&e.isJSDocParameterTag(y)&&(e.nodeIsMissing(y.name)||y.name.pos<=o&&o<=y.name.end))return{kind:3,tag:y}}if(!f)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=e.timestamp();var h=e.findPrecedingToken(o,i,void 0);n("getCompletionData: Get previous token 1: "+(e.timestamp()-d));var v=h;if(v&&o<=v.end&&(e.isIdentifierOrPrivateIdentifier(v)||e.isKeyword(v.kind))){var b=e.timestamp();v=e.findPrecedingToken(v.getFullStart(),i,void 0),n("getCompletionData: Get previous token 2: "+(e.timestamp()-b))}var x,D=_,S=!1,E=!1,C=!1,k=!1,N=!1,A=!1,w=e.getTouchingPropertyName(i,o);if(v){if(function(t){var r=e.timestamp(),a=function(t){return(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),o)||o===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t)))}(t)||function(t){var r=t.parent,n=r.kind;switch(t.kind){case 27:return 246===n||function(t){return 247===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,l)}(t)||229===n||252===n||se(n)||250===n||194===n||251===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 194===n;case 58:return 195===n;case 22:return 194===n;case 20:return 284===n||se(n);case 18:return 252===n;case 29:return 249===n||218===n||250===n||251===n||e.isFunctionLikeKind(n);case 123:return 162===n&&!e.isClassLike(r.parent);case 25:return 159===n||!!r.parent&&194===r.parent.kind;case 122:case 120:case 121:return 159===n&&!e.isConstructorDeclaration(r.parent);case 126:return 262===n||267===n||260===n;case 134:case 145:return!L(t);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 148:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(P(I(t))&&L(t))return!1;if(oe(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(I(t))||de(t)))return!1;switch(I(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!==h||o>h.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(272===e.parent.kind)return 272!==w.parent.kind;if(273===e.parent.kind||271===e.parent.kind)return!!e.parent.parent&&270===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(v))return void n("Returning an empty list because completion was requested in an invalid position.");var B=v.parent;if(24===v.kind||28===v.kind)switch(S=24===v.kind,E=28===v.kind,B.kind){case 198:if(D=(x=B).expression,(e.isCallExpression(D)||e.isFunctionLike(D))&&D.end===v.pos&&D.getChildCount(i)&&21!==e.last(D.getChildren(i)).kind)return;break;case 156:D=B.left;break;case 253:D=B.name;break;case 192:case 223:D=B;break;default:return}else if(1===i.languageVariant){if(B&&198===B.kind&&(v=B,B=B.parent),_.parent===w)switch(_.kind){case 31:270!==_.parent.kind&&272!==_.parent.kind||(w=_);break;case 43:271===_.parent.kind&&(w=_)}switch(B.kind){case 273:43===v.kind&&(k=!0,w=v);break;case 213:if(!R(B))break;case 271:case 270:case 272:A=!0,29===v.kind&&(C=!0,w=v);break;case 277:switch(h.kind){case 62:N=!0;break;case 78:A=!0,B!==h.parent&&!B.initializer&&e.findChildOfKind(B,62,i)&&(N=h)}}}}var j=e.timestamp(),J=5,K=!1,z=0,U=[],V=[],q=[],W=u.getImportSuggestionsCache&&u.getImportSuggestionsCache(),H=ne();if(S||E)!function(){J=2;var t=e.isLiteralImportTypeNode(D),r=f||t&&!D.isTypeOf||e.isPartOfTypeNode(D.parent)||e.isPossiblyTypeArgumentPosition(v,i,l),n=e.isInRightSideOfInternalImportEqualsDeclaration(D);if(e.isEntityName(D)||t){var a=e.isModuleDeclaration(D.parent);a&&(K=!0);var o=l.getSymbolAtLocation(D);if(o&&1920&(o=e.skipAlias(o,l)).flags){var c=l.getExportsOfModule(o);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var u=function(e){return l.isValidPropertyAccess(t?D:D.parent,e.name)},d=function(e){return ie(e)},_=a?function(e){return!!(1920&e.flags)&&!e.declarations.every((function(e){return e.parent===D.parent}))}:n?function(e){return d(e)||u(e)}:r?d:u,p=0,g=c;p<g.length;p++){var m=g[p];_(m)&&U.push(m)}if(!r&&o.declarations&&o.declarations.some((function(e){return 294!==e.kind&&253!==e.kind&&252!==e.kind}))){var y=!1;if((b=l.getTypeOfSymbolAtLocation(o,D).getNonOptionalType()).isNullableType())((x=S&&!E&&!1!==s.includeAutomaticOptionalChainCompletions)||E)&&(b=b.getNonNullableType(),x&&(y=!0));ee(b,!!(32768&D.flags),y)}return}}if(e.isMetaProperty(D)&&(102===D.keywordToken||99===D.keywordToken)&&v===D.getChildAt(1)){var h=102===D.keywordToken?"target":"meta";return void U.push(l.createSymbol(4,e.escapeLeadingUnderscores(h)))}if(!r){var b,x;y=!1;if((b=l.getTypeAtLocation(D).getNonOptionalType()).isNullableType())((x=S&&!E&&!1!==s.includeAutomaticOptionalChainCompletions)||E)&&(b=b.getNonNullableType(),x&&(y=!0));ee(b,!!(32768&D.flags),y)}}();else if(C){var G=l.getJsxIntrinsicTagNamesAt(w);e.Debug.assertEachIsDefined(G,"getJsxIntrinsicTagNames() should all be defined"),re(),U=G.concat(U),J=3,z=0}else if(k){var Y=v.parent.parent.openingElement.tagName,X=l.getSymbolAtLocation(Y);X&&(U=[X]),J=3,z=0}else if(!re())return;n("getCompletionData: Semantic work: "+(e.timestamp()-j));var Q=h&&function(t,r,n,i){var a=t.parent;switch(t.kind){case 78:return e.getContextualTypeFromParent(t,i);case 62:switch(a.kind){case 246:return i.getContextualType(a.initializer);case 213:return i.getTypeAtLocation(a.left);case 277:return i.getContextualTypeForJsxAttribute(a);default:return}case 102:return i.getContextualType(a);case 81:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&270!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(h,o,i,l),$=e.mapDefined(Q&&(Q.isUnion()?Q.types:[Q]),(function(e){return e.isLiteral()?e.value:void 0})),Z=h&&Q&&function(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),(function(r){var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?T(i,t,n):void 0}))}(h,Q,l);return{kind:0,symbols:U,completionKind:J,isInSnippetScope:g,propertyAccessToConvert:x,isNewIdentifierLocation:K,location:w,keywordFilters:z,literals:$,symbolToOriginInfoMap:V,recommendedCompletion:Z,previousToken:h,isJsxInitializer:N,insideJsDocTagTypeExpression:f,symbolToSortTextMap:q,isTypeOnlyLocation:H,isJsxIdentifierExpected:A};function ee(t,r,n){K=!!t.getStringIndexType(),E&&e.some(t.getCallSignatures())&&(K=!0);var i=192===D.kind?D:D.parent;if(a)U.push.apply(U,e.filter(M(t,l),(function(e){return l.isValidPropertyAccessForCompletions(i,t,e)})));else for(var o=0,c=t.getApparentProperties();o<c.length;o++){var u=c[o];l.isValidPropertyAccessForCompletions(i,t,u)&&te(u,!1,n)}if(r&&s.includeCompletionsWithInsertText){var d=l.getPromisedTypeOfPromise(t);if(d)for(var _=0,p=d.getApparentProperties();_<p.length;_++){u=p[_];l.isValidPropertyAccessForCompletions(i,d,u)&&te(u,!0,n)}}}function te(t,r,n){var i=e.firstDefined(t.declarations,(function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)}));if(i){var a=function t(r){return e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?t(r.expression):void 0}(i.expression),o=a&&l.getSymbolAtLocation(a),c=o&&T(o,v,l);if(c&&!V[e.getSymbolId(c)]){U.push(c);var u=c.parent;V[e.getSymbolId(c)]=u&&e.isExternalModuleSymbol(u)?{kind:_(6),moduleSymbol:u,isDefaultExport:!1}:{kind:_(2)}}else s.includeCompletionsWithInsertText&&(d(t),U.push(t))}else d(t),U.push(t);function d(t){s.includeCompletionsWithInsertText&&(r&&!V[e.getSymbolId(t)]?V[e.getSymbolId(t)]={kind:_(8)}:n&&(V[e.getSymbolId(t)]={kind:16}))}function _(e){return n?16|e:e}}function re(){return 1===(function(){var t,r,n=function(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 78:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}return}(v);if(!n)return 0;if(J=0,197===n.kind){var i=l.getContextualType(n),a=i&&l.getContextualType(n,4);if(!i||!a)return 2;K=e.hasIndexSignature(i||a),t=O(i,a,n,l),r=n.properties}else{e.Debug.assert(193===n.kind),K=!1;var o=e.getRootDeclaration(n.parent);if(!e.isVariableLike(o))return e.Debug.fail("Root declaration is not variable-like.");var s=e.hasInitializer(o)||e.hasType(o)||236===o.parent.parent.kind;if(s||159!==o.kind||(e.isExpression(o.parent)?s=!!l.getContextualType(o.parent):164!==o.parent.kind&&167!==o.parent.kind||(s=e.isExpression(o.parent.parent)&&!!l.getContextualType(o.parent.parent))),s){var c=l.getTypeAtLocation(n);if(!c)return 2;var u=e.getContainingClass(n);t=l.getPropertiesOfType(c).filter((function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))||u&&e.contains(c.symbol.declarations,u)})),r=n.elements}}t&&t.length>0&&(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<o.length;a++){var s=o[a];if((285===s.kind||286===s.kind||195===s.kind||164===s.kind||166===s.kind||167===s.kind||287===s.kind)&&!de(s)){var c=void 0;if(e.isSpreadAssignment(s))ce(s,n);else if(e.isBindingElement(s)&&s.propertyName)78===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var u=e.getNameOfDeclaration(s);c=u&&e.isPropertyNameLiteral(u)?e.getEscapedTextOfIdentifierOrLiteral(u):void 0}void 0!==c&&i.add(c)}}var l=t.filter((function(e){return!i.has(e.escapedName)}));return le(n,l),l}(t,e.Debug.checkDefined(r)));return ue(),1}()||function(){var t=!v||18!==v.kind&&27!==v.kind?void 0:e.tryCast(v.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(261===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return 261===t.kind?2:0;var n=l.getSymbolAtLocation(r);if(!n)return 2;J=3,K=!1;var i=l.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((function(e){return!de(e)})).map((function(e){return(e.propertyName||e.name).escapedText})));return U=i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)})),1}()||function(){var t,n=!v||18!==v.kind&&27!==v.kind?void 0:e.tryCast(v.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return J=5,K=!1,null===(t=i.locals)||void 0===t||t.forEach((function(t,n){var a,o;U.push(t),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(q[e.getSymbolId(t)]=r.OptionalMember)})),1}()||(function(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(oe(t))return r.parent}}}(v)?(J=5,K=!0,z=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 329:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 78:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(L(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(!r)return;switch(r.kind){case 62:return;case 26:case 19:return L(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!L(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var o=e.isClassLike(r.parent.parent)?P:F;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}(i,v,w,o);if(!t)return 0;if(J=3,K=!0,z=41===v.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===v.kind?v.parent.parent:v.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(78===v.kind&&!de(v))switch(v.getText()){case"private":n|=8;break;case"static":n|=32}if(!(8&n)){var a=e.flatMap(e.getAllSuperTypeNodes(t),(function(e){var r=l.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&l.getPropertiesOfType(l.getTypeOfSymbolAtLocation(r.symbol,t)):r&&l.getPropertiesOfType(r)}));U=function(t,r,n){for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((162===s.kind||164===s.kind||166===s.kind||167===s.kind)&&(!de(s)&&!e.hasEffectiveModifier(s,8)&&e.hasEffectiveModifier(s,32)===!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((function(t){return!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))}))}(a,t.members,n)}return 1}()||function(){var t=function(t){if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 78:case 198:case 278:case 277:case 279:if(r&&(271===r.kind||272===r.kind)){if(31===t.kind){var n=e.findPrecedingToken(t.pos,i,void 0);if(!r.typeArguments||n&&43===n.kind)break}return r}if(277===r.kind)return r.parent.parent;break;case 10:if(r&&(277===r.kind||279===r.kind))return r.parent.parent;break;case 19:if(r&&280===r.kind&&r.parent&&277===r.parent.kind)return r.parent.parent.parent;if(r&&279===r.kind)return r.parent.parent}}return}(v),r=t&&l.getContextualType(t.attributes);if(!r)return 0;var n=t&&l.getContextualType(t.attributes,4);return U=function(t,r){for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];de(s)||(277===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&ce(s,i))}var c=t.filter((function(e){return!n.has(e.escapedName)}));return le(i,c),c}(O(r,n,t.attributes,l),t.attributes.properties),ue(),J=3,K=!1,1}()||(function(){z=function(t){if(t){var r,n=e.findAncestor(t.parent,(function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)}));return n&&n}}(v)?5:1,J=1,K=function(e){if(e){var t=e.parent.kind;switch(I(e)){case 27:return 200===t||165===t||201===t||196===t||213===t||173===t;case 20:return 200===t||165===t||201===t||204===t||185===t;case 22:return 196===t||170===t||157===t;case 138:case 139:return!0;case 24:return 253===t;case 18:return 249===t;case 62:return 246===t||213===t;case 15:return 215===t;case 16:return 225===t;case 122:case 120:case 121:return 162===t}}return!1}(v),h!==v&&e.Debug.assert(!!h,"Expected 'contextToken' to be defined when different from 'previousToken'.");var a=h!==v?h.getStart():o,d=function(t,r,n){var i=t;for(;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(v,a,i)||i;g=function(t){switch(t.kind){case 294:case 215:case 280:case 227:return!0;default:return e.isStatement(t)}}(d);var _=2887656|(H?0:111551);U=l.getSymbolsInScope(d,_),e.Debug.assertEachIsDefined(U,"getSymbolsInScope() should all be defined");for(var p=0,f=U;p<f.length;p++){var m=f[p];l.isArgumentsSymbol(m)||e.some(m.declarations,(function(e){return e.getSourceFile()===i}))||(q[e.getSymbolId(m)]=r.GlobalsOrKeywords)}if(s.includeCompletionsWithInsertText&&294!==d.kind){var y=l.tryGetThisTypeAt(d,!1);if(y&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);if(a&&r.getTypeOfSymbolAtLocation(a,t)===e)return!0;return!1}(y,i,l))for(var b=0,x=M(y,l);b<x.length;b++){m=x[b];V[e.getSymbolId(m)]={kind:1},U.push(m),q[e.getSymbolId(m)]=r.SuggestedClassMembers}}if(s.includeCompletionsForModuleExports&&(i.externalModuleIndicator||i.commonJsModuleIndicator||e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions())||e.programContainsModules(t))){var D=h&&e.isIdentifier(h)?h.text.toLowerCase():"",S=function(r,a){var o=W&&W.get(i.fileName,l,c&&a.getProjectVersion?a.getProjectVersion():void 0);if(o)return n("getSymbolsFromOtherSourceFileExports: Using cached list"),o;var s=e.timestamp();n("getSymbolsFromOtherSourceFileExports: Recomputing list"+(c?" for details entry":""));var u=new e.Map,d=new e.Map,_=new e.Map,p=new e.Map,f=[],g=new e.Map;return e.codefix.forEachExternalModuleToImportFrom(t,a,i,!c,!0,(function(t,r,n,i){if(!c||!c.source||e.stripQuotes(t.name)===c.source){var a=n.getTypeChecker(),o=a.resolveExternalModuleSymbol(t);if(e.addToSeen(u,e.getSymbolId(o))){o!==t&&e.every(o.declarations,e.isNonGlobalDeclaration)&&m(o,t,i,!0);for(var s=0,l=a.getExportsAndPropertiesOfModule(t);s<l.length;s++){var f=l[s],y=e.getSymbolId(f).toString();if(e.addToSeen(d,y)&&!e.some(f.declarations,(function(t){return e.isExportSpecifier(t)&&!!t.propertyName&&e.isIdentifierANonContextualKeyword(t.name)}))){var h=a.getMergedSymbol(f.parent)!==o;if(h||e.some(f.declarations,(function(t){return e.isExportSpecifier(t)&&!t.propertyName&&!!t.parent.parent.moduleSpecifier}))){var v=h?f:ae(f);if(!v)continue;var b=e.getSymbolId(v).toString();g.has(b)||_.has(b)?e.addToSeen(_,y):(p.set(b,{alias:f,moduleSymbol:t,isFromPackageJson:i}),_.set(y,!0))}else p.delete(y),m(f,t,i,!1)}}}}})),p.forEach((function(e){return m(e.alias,e.moduleSymbol,e.isFromPackageJson,!1)})),n("getSymbolsFromOtherSourceFileExports: "+(e.timestamp()-s)),f;function m(t,n,i,a){var o="default"===t.escapedName;if(o&&(t=e.getLocalSymbolForExportDefault(t)||t),!l.isUndefinedSymbol(t)){e.addToSeen(g,e.getSymbolId(t));var s={kind:4,moduleSymbol:n,isDefaultExport:o,isFromPackageJson:i};f.push({symbol:t,symbolName:e.getNameForExportedSymbol(t,r),origin:s,skipFilter:a})}}}(t.getCompilerOptions().target,u);!c&&W&&W.set(i.fileName,S,u.getProjectVersion&&u.getProjectVersion()),S.forEach((function(t){var n=t.symbol,i=t.symbolName,a=t.skipFilter,o=t.origin;if(c){if(c.source&&e.stripQuotes(o.moduleSymbol.name)!==c.source)return}else if(!a&&!function(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}(i.toLowerCase(),D))return;var s=e.getSymbolId(n);U.push(n),V[s]=o,q[s]=r.AutoImportSuggestions}))}!function(t){var r=ne();r&&(z=v&&e.isAssertionExpression(v.parent)?6:7);e.filterMutate(t,(function(t){if(!e.isSourceFile(w)){if(e.isExportAssignment(w.parent))return!0;if(t=e.skipAlias(t,l),e.isInRightSideOfInternalImportEqualsDeclaration(w))return!!(1920&t.flags);if(r)return ie(t)}return!!(111551&e.getCombinedLocalAndExportSymbolFlags(t))}))}(U)}(),1))}function ne(){return f||!function(t){return t&&111===t.kind&&(175===t.parent.kind||e.isTypeOfExpression(t.parent))}(v)&&(e.isPossiblyTypeArgumentPosition(v,i,l)||e.isPartOfTypeNode(w)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 58:return 162===r||161===r||159===r||246===r||e.isFunctionLikeKind(r);case 62:return 251===r;case 126:return 221===r;case 29:return 172===r||203===r;case 93:return 158===r}}return!1}(v))}function ie(t,r){void 0===r&&(r=new e.Map);var n=e.skipAlias(t.exportSymbol||t,l);return!!(788968&n.flags)||!!(1536&n.flags)&&e.addToSeen(r,e.getSymbolId(n))&&l.getExportsOfModule(n).some((function(e){return ie(e,r)}))}function ae(t){return function(e,t,r){var n=t;for(;2097152&n.flags&&(n=e.getImmediateAliasedSymbol(n));)if(r(n))return n}(l,t,(function(t){return e.some(t.declarations,(function(t){return e.isExportSpecifier(t)||!!t.localSymbol}))}))}function oe(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function se(t){return e.isFunctionLikeKind(t)&&165!==t}function ce(e,t){var r=e.expression,n=l.getSymbolAtLocation(r),i=n&&l.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function ue(){U.forEach((function(t){16777216&t.flags&&(q[e.getSymbolId(t)]=q[e.getSymbolId(t)]||r.OptionalMember)}))}function le(t,n){if(0!==t.size)for(var i=0,a=n;i<a.length;i++){var o=a[i];t.has(o.name)&&(q[e.getSymbolId(o)]=r.MemberDeclaredBySpreadAssignment)}}function de(e){return e.getStart(i)<=o&&o<=e.getEnd()}}function C(t,r,n,i,a){var o=c(n)?e.getNameForExportedSymbol(t,r):t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(t.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}!function(e){e.LocationPriority="0",e.OptionalMember="1",e.MemberDeclaredBySpreadAssignment="2",e.SuggestedClassMembers="3",e.GlobalsOrKeywords="4",e.AutoImportSuggestions="5",e.JavascriptIdentifiers="6"}(r=t.SortText||(t.SortText={})),function(e){e.ThisProperty="ThisProperty/"}(n=t.CompletionSource||(t.CompletionSource={})),function(e){e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"}(i||(i={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.Last=7]="Last"}(a||(a={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(o||(o={})),t.createImportSuggestionsForFileCache=function(){var t,r,n;return{isEmpty:function(){return!t},clear:function(){t=void 0,n=void 0,r=void 0},set:function(e,i,a){t=i,n=e,a&&(r=a)},get:function(i,a,o){if(i===n)return o?r===o?t:void 0:(e.forEach(t,(function(e){var t,r,n;(null===(t=e.symbol.declarations)||void 0===t?void 0:t.length)&&(e.symbol=a.getMergedSymbol(e.origin.isDefaultExport&&null!==(r=e.symbol.declarations[0].localSymbol)&&void 0!==r?r:e.symbol.declarations[0].symbol)),(null===(n=e.origin.moduleSymbol.declarations)||void 0===n?void 0:n.length)&&(e.origin.moduleSymbol=a.getMergedSymbol(e.origin.moduleSymbol.declarations[0].symbol))})),t)}}},t.getCompletionsAtPosition=function(n,i,a,o,s,c,u){var p=i.getTypeChecker(),g=i.getCompilerOptions(),m=e.findPrecedingToken(s,o);if(!u||e.isInString(o,s,m)||function(t,r,n,i){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||R(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));default:return e.Debug.assertNever(r)}}(o,u,m,s)){var y=t.StringCompletions.getStringLiteralCompletions(o,s,m,p,g,n,a,c);if(y)return y;if(m&&e.isBreakOrContinueStatement(m.parent)&&(80===m.kind||85===m.kind||78===m.kind))return function(t){var n=function(t){var n=[],i=new e.Map,a=t;for(;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:r.LocationPriority}))}a=a.parent}return n}(t);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}(m.parent);var h=E(i,a,o,d(o,g),s,c,void 0,n);if(h)switch(h.kind){case 0:return function(t,n,i,a,o,s){var c=o.symbols,u=o.completionKind,l=o.isInSnippetScope,p=o.isNewIdentifierLocation,g=o.location,m=o.propertyAccessToConvert,y=o.keywordFilters,h=o.literals,b=o.symbolToOriginInfoMap,x=o.recommendedCompletion,D=o.isJsxInitializer,S=o.insideJsDocTagTypeExpression,T=o.symbolToSortTextMap;if(g&&g.parent&&e.isJsxClosingElement(g.parent)){var E=g.parent.parent.openingElement.tagName,C=!!e.findChildOfKind(g.parent,31,t);return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:E.getFullText(t)+(C?"":">"),kind:"class",kindModifiers:void 0,sortText:r.LocationPriority}]}}var N=[];if(d(t,i)){var F=v(c,N,void 0,g,t,n,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,b,T);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,g.pos,F,i.target,N)}else{if(!(p||c&&0!==c.length||0!==y))return;v(c,N,void 0,g,t,n,i.target,a,u,s,m,o.isJsxIdentifierExpected,D,x,b,T)}if(0!==y)for(var P=new e.Set(N.map((function(e){return e.name}))),w=0,I=function(t,r){if(!r)return A(t);var n=t+7+1;return k[n]||(k[n]=A(t).filter((function(t){return!function(e){switch(e){case 125:case 128:case 154:case 131:case 133:case 91:case 153:case 116:case 135:case 117:case 136:case 137:case 138:case 139:case 140:case 143:case 144:case 120:case 121:case 122:case 141:case 146:case 147:case 148:case 150:case 151:return!0;default:return!1}}(e.stringToToken(t.name))})))}(y,!S&&e.isSourceFileJS(t));w<I.length;w++){var O=I[w];P.has(O.name)||N.push(O)}for(var M=0,L=h;M<L.length;M++){var R=L[M];N.push(f(R,s))}return{isGlobalCompletion:l,isMemberCompletion:_(u),isNewIdentifierLocation:p,entries:N}}(o,p,g,a,h,c);case 1:return l(e.JsDoc.getJSDocTagNameCompletions());case 2:return l(e.JsDoc.getJSDocTagCompletions());case 3:return l(e.JsDoc.getJSDocParameterNameCompletions(h.tag));default:return e.Debug.assertNever(h)}}},t.getCompletionEntriesFromSymbols=v,t.getCompletionEntryDetails=function(r,n,i,a,o,s,u,l,d){var _=r.getTypeChecker(),f=r.getCompilerOptions(),g=o.name,m=e.findPrecedingToken(a,i);if(e.isInString(i,a,m))return t.StringCompletions.getStringLiteralCompletionDetails(g,i,a,m,_,f,s,d);var y=b(r,n,i,a,o,s,l);switch(y.type){case"request":var h=y.request;switch(h.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(g);case 2:return e.JsDoc.getJSDocTagCompletionDetails(g);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(g);default:return e.Debug.assertNever(h)}case"symbol":var v=y.symbol,S=y.location,T=function(t,r,n,i,a,o,s,u,l,d,_){var p=t[e.getSymbolId(r)];if(!p||!c(p))return{codeActions:void 0,sourceDisplay:void 0};var f=p.moduleSymbol,g=i.getMergedSymbol(e.skipAlias(r.exportSymbol||r,i)),m=e.codefix.getImportCompletionAction(g,f,s,e.getNameForExportedSymbol(r,o.target),a,n,d,l&&e.isIdentifier(l)?l.getStart(s):u,_),y=m.moduleSpecifier,h=m.codeAction;return{sourceDisplay:[e.textPart(y)],codeActions:[h]}}(y.symbolToOriginInfoMap,v,r,_,s,f,i,a,y.previousToken,u,l);return D(v,_,i,S,d,T.codeActions,T.sourceDisplay);case"literal":var E=y.literal;return x(p(E,l),"string","string"==typeof E?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return N().some((function(e){return e.name===g}))?x(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},t.createCompletionDetailsForSymbol=D,t.createCompletionDetails=S,t.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){var s=b(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(s||(s={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(t.CompletionKind||(t.CompletionKind={}));var k=[],N=e.memoize((function(){for(var t=[],n=80;n<=155;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function A(t){return k[t]||(k[t]=N().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return w(n)||133===n||138===n||148===n||139===n||126===n||e.isTypeKeyword(n)&&149!==n;case 5:return w(n);case 2:return P(n);case 3:return F(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||84===n;case 7:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}})))}function F(e){return 141===e}function P(t){switch(t){case 125:case 132:case 134:case 145:case 129:case 133:return!0;default:return e.isClassMemberModifier(t)}}function w(t){return 129===t||130===t||!e.isContextualKeyword(t)&&!P(t)}function I(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function O(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=o.isUnion()?i.getAllPossiblePropertiesOfTypes(o.types.filter((function(t){return!(131068&t.flags||i.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,i)||i.isTypeInvalidDueToUnionDiscriminant(t,n))}))):o.getApparentProperties();return a?s.filter((function(t){return e.some(t.declarations,(function(e){return e.parent!==n}))})):s}function M(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function L(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function R(t){var r=t.left;return e.nodeIsMissing(r)}}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(t){function n(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function i(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?i(t.catchClause):t.tryBlock&&i(t.tryBlock),t.finallyBlock&&i(t.finallyBlock)):e.isFunctionLike(t)?void 0:o(t,i)}function a(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:o(t,a)}function o(t,r){var n=[];return t.forEachChild((function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function s(e,t){var r=c(t);return!!r&&r===e}function c(t){return e.findAncestor(t,(function(r){switch(r.kind){case 241:if(237===t.kind)return!1;case 234:case 235:case 236:case 233:case 232:return!t.label||function(t,r){return!!e.findAncestor(t.parent,(function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"}))}(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function u(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind))&&(t.push(r),!0)}function l(t){var r=[];if(u(r,t.getFirstToken(),96,114,89)&&232===t.kind)for(var n=t.getChildren(),i=n.length-1;i>=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 234:case 235:case 236:case 232:case 233:return l(t);case 241: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)||294===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 h=c.parent.parent,v=[h.openingElement,h.closingElement].map((function(e){return n(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(t,r,n,i,a){var o=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<i.length;o++){if(90===i[o].kind&&o<i.length-1){for(var s=i[o],c=i[o+1],l=!0,d=c.getStart(r)-1;d>=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 145:return s(e.isAccessor,[134,145]);case 130:return c(t.parent,e.isAwaitExpression,m);case 129:return h(m(t));case 124:return h(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&u(n,t.getFirstToken(),124)}))})),n}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((a=t.kind,o=t.parent,e.mapDefined(function(t,n){var i=t.parent;switch(i.kind){case 254:case 294:case 227:case 281:case 282:return 128&n&&e.isClassDeclaration(t)?r(t.members,[t]):i.statements;case 165:case 164:case 248:return r(i.parameters,e.isClassLike(i.parent)?i.parent.members:[]);case 249:case 218:case 250:case 176: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;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)?h(r(e,i)):void 0}function h(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(294===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<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(function(t){switch(t.kind){case 264:case 258:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 257:var r;u(r=t)&&n(r,r.moduleReference.expression)}}))}function a(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function o(e,t){return t.getMergedSymbol(s(e).symbol)}function s(t){if(200===t.kind)return t.getSourceFile();var r=t.parent;return 294===r.kind?r:(e.Debug.assert(254===r.kind),e.cast(r.parent,c))}function c(e){return 253===e.kind&&10===e.name.kind}function u(e){return 269===e.moduleReference.kind&&10===e.moduleReference.expression.kind}t.createImportTracker=function(t,a,c,l){var d=function(t,r,n){for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];n&&n.throwIfCancellationRequested(),i(c,(function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a}(t,c,l);return function(i,_,p){var f=function(t,n,i,a,c,u){var l=a.exportingModuleSymbol,d=a.exportKind,_=e.nodeSeenTracker(),p=e.nodeSeenTracker(),f=[],g=!!l.globalExports,m=g?void 0:[];return h(l),{directImports:f,indirectUsers:y()};function y(){if(g)return t;for(var r=0,i=l.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&b(a)}return m.map(e.getSourceFileOfNode)}function h(t){var r=D(t);if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(_(a))switch(u&&u.throwIfCancellationRequested(),a.kind){case 200:if(!g){var l=a.parent;if(2===d&&246===l.kind){var p=l.name;if(78===p.kind){f.push(p);break}}b(a.getSourceFile())}break;case 78:break;case 257:v(a,a.name,e.hasSyntacticModifier(a,1),!1);break;case 258:f.push(a);var m=a.importClause&&a.importClause.namedBindings;m&&260===m.kind?v(a,m.name,!1,!0):!g&&e.isDefaultImport(a)&&b(s(a));break;case 264:a.exportClause?266===a.exportClause.kind?x(s(a)):f.push(a):h(o(a,c));break;case 192:f.push(a);break;default:e.Debug.failBadSyntaxKind(a,"Unexpected import kind.")}}}function v(t,n,i,a){if(2===d)a||f.push(t);else if(!g){var o=s(t);e.Debug.assert(294===o.kind||253===o.kind),i||function(t,n,i){var a=i.getSymbolAtLocation(n);return!!r(t,(function(t){if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a}))}}))}(o,n,c)?x(o):b(o)}}function b(t){e.Debug.assert(!g);var r=p(t);return r&&m.push(t),r}function x(t){if(b(t)){var r=c.getMergedSymbol(t.symbol);e.Debug.assert(!!(1536&r.flags));var n=D(r);if(n)for(var i=0,a=n;i<a.length;i++){var o=a[i];e.isImportTypeNode(o)||x(s(o))}}}function D(t){return i.get(e.getSymbolId(t).toString())}}(t,a,d,_,c,l),g=f.directImports,m=f.indirectUsers;return n({indirectUsers:m},function(t,r,n,i,a){var o=[],s=[];function c(e,t){o.push([e,t])}if(t)for(var l=0,d=t;l<d.length;l++){_(d[l])}return{importSearches:o,singleReferences:s};function _(t){if(257!==t.kind)if(78!==t.kind)if(192!==t.kind){if(10===t.moduleSpecifier.kind)if(264!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},l=o.name,d=o.namedBindings;if(d)switch(d.kind){case 260:p(d.name);break;case 261:0!==n&&1!==n||f(d);break;default:e.Debug.assertNever(d)}if(l&&(1===n||2===n)&&(!a||l.escapedText===e.symbolEscapedNameNoDefault(r)))c(l,i.getSymbolAtLocation(l))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var _=e.getFirstIdentifier(t.qualifier);_.escapedText===e.symbolName(r)&&s.push(_)}else 2===n&&s.push(t.argument.literal);else p(t);else u(t)&&p(t.name)}function p(e){2!==n||a&&!g(e.escapedText)||c(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],u=o.name,l=o.propertyName;if(g((l||u).escapedText))if(l)s.push(l),a&&u.escapedText!==r.escapedName||c(u,i.getSymbolAtLocation(u));else c(u,267===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(u))}}function g(e){return e===r.escapedName||0!==n&&"default"===e}}(g,i,_.exportKind,c,p))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(t.ExportKind||(t.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(t.ImportExport||(t.ImportExport={})),t.findModuleReferences=function(e,t,r){for(var n=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],u=r.valueDeclaration;if(294===u.kind){for(var l=0,d=c.referencedFiles;l<d.length;l++){var _=d[l];e.getSourceFileFromReference(c,_)===u&&n.push({kind:"reference",referencingFile:c,ref:_})}for(var p=0,f=c.typeReferenceDirectives;p<f.length;p++){_=f[p];var g=e.getResolvedTypeReferenceDirectives().get(_.fileName);void 0!==g&&g.resolvedFileName===u.fileName&&n.push({kind:"reference",referencingFile:c,ref:_})}}i(c,(function(e,t){a.getSymbolAtLocation(t)===r&&n.push({kind:"import",literal:t})}))}return n},t.getImportOrExportSymbol=function(t,r,n,i){return i?o():o()||function(){if(!function(t){var r=t.parent;switch(r.kind){case 257:return r.name===t&&u(r);case 262:return!r.propertyName;case 259:case 260:return e.Debug.assert(r.name===t),!0;default:return!1}}(t))return;var i=n.getImmediateAliasedSymbol(r);if(!i)return;"export="===(i=function(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a)}return t}(i,n)).escapedName&&(i=function(t,r){if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=t.valueDeclaration;if(e.isExportAssignment(n))return e.Debug.checkDefined(n.expression.symbol);if(e.isBinaryExpression(n))return e.Debug.checkDefined(n.right.symbol);if(e.isSourceFile(n))return e.Debug.checkDefined(n.symbol);return e.Debug.fail()}(i,n));var a=e.symbolEscapedNameNoDefault(i);if(void 0===a||"default"===a||a===r.escapedName)return{kind:0,symbol:i}}();function o(){var a=t.parent,o=a.parent;if(r.exportSymbol)return 198===a.kind?r.declarations.some((function(e){return e===a}))&&e.isBinaryExpression(o)?d(o,!1):void 0:s(r.exportSymbol,c(a));var u=function(t,r){var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t}(a,t);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(i)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,c(u))}if(e.isNamespaceExport(a))return s(r,0);if(e.isExportAssignment(a))return l(a);if(e.isExportAssignment(o))return l(o);if(e.isBinaryExpression(a))return d(a,!0);if(e.isBinaryExpression(o))return d(o,!0);if(e.isJSDocTypedefTag(a))return s(r,0);function l(t){var n=e.Debug.checkDefined(t.symbol.parent,"Expected export symbol to have a parent"),i=t.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:n,exportKind:i}}}function d(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=a(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function c(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=a}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(t){var i;function a(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:s(e)}}function o(e){return e&&void 0===e.kind}function s(t){if(e.isDeclaration(t))return c(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return c(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(function(t){return e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)}));return e.isDeclaration(i)?c(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?c(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||87===t.kind&&e.hasSyntacticModifier(t.parent,513)?c(t.parent):void 0}}function c(t){if(t)switch(t.kind){case 246:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?c(t.parent.parent):t.parent:t;case 195:return c(t.parent.parent);case 262:return t.parent.parent.parent;case 267:case 260:return t.parent.parent;case 259:case 266:return t.parent;case 213:return e.isExpressionStatement(t.parent)?t.parent:t;case 236:case 235:return{start:t.initializer,end:t.expression};case 285:case 286:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?c(e.findAncestor(t.parent,(function(t){return e.isBinaryExpression(t)||e.isForInOrOfStatement(t)}))):t;default:return t}}function u(e,t,r){if(r){var n=o(r)?m(r.start,t,r.end):m(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function l(t,r,n,o,s){if(294!==o.kind){var c=t.getTypeChecker();if(286===o.parent.kind){var u=[];return i.getReferenceEntriesForShorthandPropertyAssignment(o,c,(function(e){return u.push(a(e))})),u}if(105===o.kind||e.isSuperProperty(o.parent)){var l=c.getSymbolAtLocation(o);return l.valueDeclaration&&[a(l.valueDeclaration)]}return d(s,o,t,n,r,{implementations:!0,use:1})}}function d(t,r,n,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((function(e){return e.fileName})))),_(i.getReferencedSymbolsForNode(t,r,n,a,o,s,c))}function _(t){return t&&e.flatMap(t,(function(e){return e.references}))}function p(t,r,n){var a=i.getIntersectingMeaningFromDeclarations(n,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||n,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function f(e){var t=g(e);if(0===e.kind)return n(n({},t),{isWriteAccess:!1,isDefinition:!1});var r=e.kind,i=e.node;return n(n({},t),{isWriteAccess:h(i),isDefinition:v(i),isInString:2===r||void 0})}function g(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=m(e.node,t);return n({textSpan:r,fileName:t.fileName},u(r,t,e.context))}function m(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function y(e){return 0===e.kind?e.textSpan:m(e.node,e.node.getSourceFile())}function h(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(8388608&t.flags)return!0;switch(t.kind){case 213:case 195:case 249:case 218:case 87:case 252:case 288:case 267:case 259:case 257:case 262:case 250:case 320:case 327:case 277:case 253:case 256:case 260:case 266:case 159:case 286:case 251:case 158:return!0;case 285:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 248:case 205:case 165:case 164:case 166:case 167:return!!t.body;case 246:case 162:return!!t.initializer||e.isCatchClause(t.parent);case 163:case 161:case 328:case 322:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||87===t.kind||e.isWriteAccess(t)}function v(t){return 87===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||132===t.kind&&e.isConstructorDeclaration(t.parent)}!function(e){e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String"}(t.DefinitionKind||(t.DefinitionKind={})),function(e){e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(t.EntryKind||(t.EntryKind={})),t.nodeEntry=a,t.isContextWithStartAndEndNode=o,t.getContextNode=c,t.toContextSpan=u,function(e){e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename"}(t.FindReferencesUse||(t.FindReferencesUse={})),t.findReferencedSymbols=function(t,r,a,o,s){var l=e.getTouchingPropertyName(o,s),d=i.getReferencedSymbolsForNode(s,l,t,a,r,{use:1}),_=t.getTypeChecker();return d&&d.length?e.mapDefined(d,(function(t){var i=t.definition,a=t.references;return i&&{definition:_.runWithCancellationToken(r,(function(t){return function(t,r,i){var a=function(){switch(t.type){case 0:var n=p(f=t.symbol,r,i),a=n.displayParts,o=n.kind,s=a.map((function(e){return e.text})).join(""),u=f.declarations&&e.firstOrUndefined(f.declarations);return{node:u?e.getNameOfDeclaration(u)||u:i,name:s,kind:o,displayParts:a,context:c(u)};case 1:var l=t.node;return{node:l,name:l.text,kind:"label",displayParts:[e.displayPart(l.text,e.SymbolDisplayPartKind.text)]};case 2:var d=t.node,_=e.tokenToString(d.kind);return{node:d,name:_,kind:"keyword",displayParts:[{text:_,kind:"keyword"}]};case 3:var f,g=t.node,m=(f=r.getSymbolAtLocation(g))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,f,g.getSourceFile(),e.getContainerNode(g),g).displayParts||[e.textPart("this")];return{node:g,name:"this",kind:"var",displayParts:m};case 4:var y=t.node;return{node:y,name:y.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(y),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=a.node,s=a.name,l=a.kind,d=a.displayParts,_=a.context,f=o.getSourceFile(),g=m(e.isComputedPropertyName(o)?o.expression:o,f);return n({containerKind:"",containerName:"",fileName:f.fileName,kind:l,name:s,textSpan:g,displayParts:d},u(g,f,_))}(i,t,l)})),references:a.map(f)}})):void 0},t.getImplementationsAtPosition=function(t,i,a,o,s){var c,u=e.getTouchingPropertyName(o,s),d=l(t,i,a,u,s);if(198===u.parent.kind||195===u.parent.kind||199===u.parent.kind||105===u.kind)c=d&&r(d);else for(var _=d&&r(d),f=new e.Map;_&&_.length;){var m=_.shift();if(e.addToSeen(f,e.getNodeId(m.node))){c=e.append(c,m);var y=l(t,i,a,m.node,m.node.pos);y&&_.push.apply(_,y)}}var h=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var i=g(t);if(0!==t.kind){var a=t.node;return n(n({},i),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?p(n,r,t):197===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:218===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(a,r))}return n(n({},i),{kind:"",displayParts:[]})}(t,h)}))},t.findReferenceOrRenameEntries=function(t,r,n,a,o,s,c){return e.map(_(i.getReferencedSymbolsForNode(o,a,t,n,r,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=d,t.toRenameLocation=function(t,r,i,a){return n(n({},g(t)),a&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var u={prefixText:s+": "},l={suffixText:": "+s};if(3===a)return u;if(4===a)return l;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?u:l}return u}if(e.isImportSpecifier(o)&&!o.propertyName){var _=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(_.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,i))},t.toReferenceEntry=f,t.toHighlightSpan=function(e){var t=g(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=h(e.node),i=n({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:i}},t.getTextSpanOfEntry=y,function(r){function n(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function i(t,r,n,i,a,s){var u=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(u){var d=t.exports.get("export="),_=c(r,t,!!d,n,s);if(!d||!s.has(u.fileName))return _;var p=r.getTypeChecker();return o(r,_,l(t=e.skipAlias(d,p),void 0,n,s,p,i,a))}}function o(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var c=o[a];if(c&&c.length)if(r)for(var u=function(n){if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===i}));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort((function(r,n){var i=s(t,r),a=s(t,n);if(i!==a)return e.compareValues(i,a);var o=y(r),c=y(n);return o.start!==c.start?e.compareValues(o.start,c.start):e.compareValues(o.length,c.length)}))}},l=0,d=c;l<d.length;l++){var _=d[l];u(_)}else r=c}return r}function s(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function c(r,n,i,o,s){e.Debug.assert(!!n.valueDeclaration);var c=e.mapDefined(t.findModuleReferences(r,o,n),(function(t){if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var n=e.cast(r.parent,e.isImportTypeNode);if(i&&!n.qualifier)return}return a(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(n.declarations)for(var u=0,l=n.declarations;u<l.length;u++){switch((f=l[u]).kind){case 294:break;case 253:s.has(f.getSourceFile().fileName)&&c.push(a(f.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var d=n.exports.get("export=");if(d)for(var _=0,p=d.declarations;_<p.length;_++){var f,g=(f=p[_]).getSourceFile();if(s.has(g.fileName)){var m=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,92,g)):e.getNameOfDeclaration(f)||f;c.push(a(m))}}return c.length?[{definition:{type:0,symbol:n},references:c}]:e.emptyArray}function u(t){return 141===t.kind&&e.isTypeOperatorNode(t.parent)&&141===t.parent.operator}function l(t,r,n,i,a,o,s){var c=r&&function(t,r,n,i){var a=r.parent;if(e.isExportSpecifier(a)&&i)return N(r,t,a,n);return e.firstDefined(t.declarations,(function(i){if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at "+e.Debug.formatSyntaxKind(r.kind)+": "+e.Debug.formatSymbol(t))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))}(t,r,a,!B(s))||t,u=r?M(r,c):7,l=[],_=new p(n,i,r?function(t){switch(t.kind){case 132:return 1;case 78:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r):0,a,o,u,s,l),g=B(s)?e.find(c.declarations,e.isExportSpecifier):void 0;if(g)k(g.name,c,g,_.createSearch(r,t,void 0),_,!0,!0);else if(r&&87===r.kind)A(r,c,_),f(r,c,{exportingModuleSymbol:e.Debug.checkDefined(c.parent,"Expected export symbol to have a parent"),exportKind:1},_);else{var m=_.createSearch(r,c,void 0,{allSearchSymbols:r?w(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});d(c,_,m)}return l}function d(t,r,n){var i=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(205===a.kind||218===a.kind))return a;if(!r)return;if(8196&n){var o=e.find(r,(function(t){return e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierPropertyDeclaration(t)}));return o?e.getAncestor(o,249):void 0}if(r.some(e.isObjectBindingElementWithoutPropertyName))return;var s,c=i&&!(262144&t.flags);if(c&&(!e.isExternalModuleSymbol(i)||i.globalExports))return;for(var u=0,l=r;u<l.length;u++){var d=l[u],_=e.getContainerNode(d);if(s&&s!==_)return;if(!_||294===_.kind&&!e.isExternalOrCommonJsModule(_))return;s=_}return c?s.getSourceFile():s}(t);if(i)T(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),h(s,n,r)}}var _;r.getReferencedSymbolsForNode=function(t,r,s,d,_,p,f){if(void 0===p&&(p={}),void 0===f&&(f=new e.Set(d.map((function(e){return e.fileName})))),1===p.use?r=e.getAdjustedReferenceLocation(r):2===p.use&&(r=e.getAdjustedRenameLocation(r)),e.isSourceFile(r)){var g=e.GoToDefinition.getReferenceAtPosition(r,t,s),m=g&&s.getTypeChecker().getMergedSymbol(g.file.symbol);return m&&c(s,m,!1,d,f)}if(!p.implementations){var y=function(t,r,n){if(e.isTypeKeyword(t.kind)){if(113===t.kind&&e.isVoidExpression(t.parent))return;if(141===t.kind&&!u(t))return;return function(t,r,n,i){var o=e.flatMap(t,(function(t){return n.throwIfCancellationRequested(),e.mapDefined(b(t,e.tokenToString(r),t),(function(e){if(e.kind===r&&(!i||i(e)))return a(e)}))}));return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}(r,t.kind,n,141===t.kind?u:void 0)}if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&D(i.parent,i)}if(e.isLabelOfLabeledStatement(t))return D(t.parent,t);if(e.isThis(t))return function(t,r,n){var i=e.getThisContainer(t,!1),o=32;switch(i.kind){case 164:case 163:if(e.isObjectLiteralMethod(i))break;case 162:case 161:case 165:case 166:case 167:o&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 294:if(e.isExternalModule(i)||P(t))return;case 248:case 205:break;default:return}var s=e.flatMap(294===i.kind?r:[i.getSourceFile()],(function(t){return n.throwIfCancellationRequested(),b(t,"this",e.isSourceFile(i)?t:i).filter((function(t){if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(i.kind){case 205:case 248:return i.symbol===r.symbol;case 164:case 163:return e.isObjectLiteralMethod(i)&&i.symbol===r.symbol;case 218:case 249:return r.parent&&i.symbol===r.parent.symbol&&(32&e.getSyntacticModifierFlags(r))===o;case 294:return 294===r.kind&&!e.isExternalModule(r)&&!P(t)}}))})).map((function(e){return a(e)}));return[{definition:{type:3,node:e.firstDefined(s,(function(t){return e.isParameter(t.node.parent)?t.node:void 0}))||t},references:s}]}(t,r,n);if(105===t.kind)return function(t){var r=e.getSuperContainer(t,!1);if(!r)return;var n=32;switch(r.kind){case 162:case 161:case 164:case 163:case 165:case 166:case 167:n&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),o=e.mapDefined(b(i,"super",r),(function(t){if(105===t.kind){var i=e.getSuperContainer(t,!1);return i&&(32&e.getSyntacticModifierFlags(i))===n&&i.parent.symbol===r.symbol?a(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:o}]}(t);return}(r,d,_);if(y)return y}var h=s.getTypeChecker(),v=h.getSymbolAtLocation(r);if(!v)return!p.implementations&&e.isStringLiteral(r)?function(t,r,n){var i=e.flatMap(r,(function(r){return n.throwIfCancellationRequested(),e.mapDefined(b(r,t.text),(function(r){return e.isStringLiteral(r)&&r.text===t.text?a(r,2):void 0}))}));return[{definition:{type:4,node:t},references:i}]}(r,d,_):void 0;if("export="===v.escapedName)return c(s,v.parent,!1,d,f);var x=i(v,s,d,_,p,f);if(x&&!(33554432&v.flags))return x;var S=n(r,v,h),T=S&&i(S,s,d,_,p,f);return o(s,x,l(v,r,d,f,h,_,p),T)},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(_||(_={}));var p=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||function(t){if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(function(t){return!e.isSourceFile(t)&&!e.isModuleDeclaration(t)}));return r&&r.symbol}}(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&t?function(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0}));return 0===o.length?void 0:o}(t,r,this.checker):void 0,allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),n=this.symbolIdToReferences[r];return n||(n=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:n})),function(e,t){return n.push(a(e,t))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function f(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),u=0,l=o;u<l.length;u++){var d=l[u];g(d,n)&&c(d)}for(var _=0,p=a;_<p.length;_++){var f=p[_],m=f[0],y=f[1];S(m.getSourceFile(),n.createSearch(m,y,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(v)for(var b=0,x=s;b<x.length;b++){h(x[b],v,n)}}}function g(t,r){return!!E(t,r)&&(2!==r.options.use||!!e.isIdentifier(t)&&!(e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function m(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();S(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function h(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&S(t,r,n)}function v(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=b(n,o.name,a);s<c.length;s++){var u=c[s];if(e.isIdentifier(u)&&u!==t&&u.escapedText===t.escapedText){var l=r.getSymbolAtLocation(u);if(l===o||r.getShorthandAssignmentValueSymbol(u.parent)===o||e.isExportSpecifier(u.parent)&&N(u,l,u.parent,r)===o){var d=i(u);if(d)return d}}}}function b(t,r,n){return void 0===n&&(n=t),x(t,r,n).map((function(r){return e.getTouchingPropertyName(t,r)}))}function x(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function D(t,r){var n=t.getSourceFile(),i=r.text,o=e.mapDefined(b(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(),T(e,e,t,r,n)}function T(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=x(t,r.text,e);a<o.length;a++){C(t,o[a],r,n,i)}}function E(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function C(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(function(t,r){switch(t.kind){case 79:case 78:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 87:return"default".length===r.length;default:return!1}}(s,i.text)){if(E(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var u=s.parent;if(!e.isImportSpecifier(u)||u.propertyName!==s){if(e.isExportSpecifier(u))return e.Debug.assert(78===s.kind),void k(s,c,u,i,a,o);var l=function(t,r,n,i){var a=i.checker;return I(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,(function(n,i,a,o){return a&&O(r)!==O(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0}),(function(r){return!(t.parents&&!t.parents.some((function(t){return function t(r,n,i,a){if(r===n)return!0;var o=e.getSymbolId(r)+","+e.getSymbolId(n),s=i.get(o);if(void 0!==s)return s;i.set(o,!1);var c=!!r.declarations&&r.declarations.some((function(r){return e.getAllSuperTypeNodes(r).some((function(e){var r=a.getTypeAtLocation(e);return!!r&&!!r.symbol&&t(r.symbol,n,i,a)}))}));return i.set(o,c),c}(r.parent,t,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(l){switch(a.specialSearchKind){case 0:o&&A(s,l,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&A(t,n.symbol,i);var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(87===t.kind||t.parent.name===t),function(t,r,n){var i=F(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,132,r);e.Debug.assert(165===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((function(t){var r=t.valueDeclaration;if(r&&164===r.kind){var i=r.body;i&&R(i,107,(function(t){e.isNewExpressionTarget(t)&&n(t)}))}}))}(n.symbol,r,a());else{var o=function(t){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(t).parent)}(t);o&&(function(t,r){var n=F(t.symbol);if(!n||!n.declarations)return;for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(165===o.kind);var s=o.body;s&&R(s,105,(function(t){e.isCallExpressionTarget(t)&&r(t)}))}}(o,a()),function(e,t){if(function(e){return!!F(e.symbol)}(e))return;var r=e.symbol,n=t.createSearch(void 0,r,void 0);d(r,t,n)}(o,i))}}(s,r,i,a);break;case 2:!function(t,r,n){A(t,r.symbol,n);var i=t.parent;if(2===n.options.use||!e.isClassLike(i))return;e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.hasSyntacticModifier(c,32)&&(c.body&&c.body.forEachChild((function t(r){107===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)})))}}(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(!a)return;var o=a.symbol;0===a.kind?B(i.options)||m(o,i):f(e,o,a.exportInfo,i)}(s,c,i,a)}else!function(t,r,n){var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||A(s,o,n)}(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function k(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var u=i.parent,l=i.propertyName,d=i.name,_=u.parent,p=N(r,n,i,o.checker);if(c||a.includes(p)){if(l?r===l?(_.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(d)&&A(d,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===d.escapedText||b(),!B(o.options)||c){var g=87===r.originalKeywordKind||87===i.name.originalKeywordKind?1:0,y=e.Debug.checkDefined(i.symbol),h=t.getExportInfo(y,g,o.checker);h&&f(r,y,h,o)}if(1!==a.comingFrom&&_.moduleSpecifier&&!l&&!B(o.options)){var v=o.checker.getExportSpecifierLocalTargetSymbol(i);v&&m(v,o)}}function b(){s&&A(r,p,o)}}function N(t,r,n,i){return function(t,r){var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier}(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function A(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol,s=n.referenceAdder(o);n.options.implementations?function(t,r,n){if(e.isDeclarationName(t)&&function(t){return 8388608&t.flags?!(e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)):e.isVariableLike(t)?e.hasInitializer(t):e.isFunctionLikeDeclaration(t)?!!t.body:e.isClassLike(t)||e.isModuleOrEnumDeclaration(t)}(t.parent))return void r(t);if(78!==t.kind)return;286===t.parent.kind&&L(t,n.checker,r);var i=function t(r){return e.isIdentifier(r)||e.isPropertyAccessExpression(r)?t(r.parent):e.isExpressionWithTypeArguments(r)?e.tryCast(r.parent.parent,e.isClassLike):void 0}(t);if(i)return void r(i);var a=e.findAncestor(t,(function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),o=a.parent;if(e.hasType(o)&&o.type===a&&n.markSeenContainingTypeReference(o))if(e.hasInitializer(o))c(o.initializer);else if(e.isFunctionLike(o)&&o.body){var s=o.body;227===s.kind?e.forEachReturnStatement(s,(function(e){e.expression&&c(e.expression)})):c(s)}else e.isAssertionExpression(o)&&c(o.expression);function c(e){(function e(t){switch(t.kind){case 204:return e(t.expression);case 206:case 205:case 197:case 218:case 196:return!0;default:return!1}})(e)&&r(e)}}(t,s,n):s(t,a)}function F(e){return e.members&&e.members.get("__constructor")}function P(e){return 78===e.kind&&159===e.parent.kind&&e.parent.name===e}function w(e,t,r,n,i,a){var o=[];return I(e,t,r,n,!(n&&i),(function(t,r,n){n&&O(e)!==O(n)&&(n=void 0),o.push(n||r||t)}),(function(){return!a})),o}function I(t,r,i,a,o,s,c){var u=e.getContainingObjectLiteralElement(r);if(u){var l=i.getShorthandAssignmentValueSymbol(r.parent);if(l&&a)return s(l,void 0,void 0,3);var d=i.getContextualType(u.parent),_=d&&e.firstDefined(e.getPropertySymbolsFromContextualType(u,i,d,!0),(function(e){return T(e,4)}));if(_)return _;var p=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0}(r,i),f=p&&s(p,void 0,void 0,4);if(f)return f;var g=l&&s(l,void 0,void 0,3);if(g)return g}var m=n(r,t,i);if(m){var y=s(m,void 0,void 0,1);if(y)return y}var h=T(t);if(h)return h;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var v=i.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===v.length&&!!(1&v[0].flags)&&!!(4&v[1].flags)),T(1&t.flags?v[1]:v[0])}var b=e.getDeclarationOfKind(t,267);if(!a||b&&!b.propertyName){var x=b&&i.getExportSpecifierLocalTargetSymbol(b);if(x){var D=s(x,void 0,void 0,1);if(D)return D}}if(!a){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(i,r.parent):void 0:E(t,i))&&T(S,4)}if(e.Debug.assert(a),o)return(S=E(t,i))&&T(S,4);function T(t,r){return e.firstDefined(i.getRootSymbols(t),(function(n){return s(t,n,void 0,r)||(n.parent&&96&n.parent.flags&&c(n)?e.getPropertySymbolsFromBaseTypes(n.parent,n.name,i,(function(e){return s(t,n,e,r)})):void 0)}))}function E(t,r){var n=e.getDeclarationOfKind(t,195);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function O(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function M(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],u=e.getMeaningFromDeclaration(c);u&n&&(n|=u)}}while(n!==a)}return n}function L(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function R(t,r,n){e.forEachChild(t,(function(e){e.kind===r&&n(e),R(e,r,n)}))}function B(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=function(r,n,i,a,o,s,c,u){for(var l=t.createImportTracker(r,new e.Set(r.map((function(e){return e.fileName}))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),d=l.importSearches,_=l.indirectUsers,p=0,f=d;p<f.length;p++){u(f[p][0])}for(var g=0,m=_;g<m.length;g++)for(var y=0,h=b(m[g],c?"default":s);y<h.length;y++){var v=h[y];e.isIdentifier(v)&&!e.isImportOrExportSpecifier(v.parent)&&n.getSymbolAtLocation(v)===a&&u(v)}},r.isSymbolReferencedInFile=function(e,t,r,n){return void 0===n&&(n=r),v(e,t,r,(function(){return!0}),n)||!1},r.eachSymbolReferenceInFile=v,r.eachSignatureCall=function(t,r,n,i){if(t.name&&e.isIdentifier(t.name))for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,u=b(s[o],a.name);c<u.length;c++){var l=u[c];if(e.isIdentifier(l)&&l!==t.name&&l.escapedText===t.name.escapedText){var d=e.climbPastPropertyAccess(l),_=d.parent;if(e.isCallExpression(_)&&_.expression===d){var p=n.getSymbolAtLocation(l);p&&n.getRootSymbols(p).some((function(e){return e===a}))&&i(_)}}}},r.getIntersectingMeaningFromDeclarations=M,r.getReferenceEntriesForShorthandPropertyAssignment=L}(i=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(t){function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||function(t){return(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t)}(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 87===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function u(t,r){var n,a=s(t,r);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(function(e){return{file:e.getSourceFile().fileName,pos:e.pos}}));o.sort((function(t,r){return e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos}));for(var u=void 0,l=0,d=e.map(o,(function(e){return a.declarations[e]}));l<d.length;l++){var _=d[l];i(_)&&(u&&u.parent===_.parent&&u.end===_.pos||(n=e.append(n,_)),u=_)}}return n}function l(t,r){var n,i,a;return e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:u(t,r))&&void 0!==i?i:r:null!==(a=u(t,r))&&void 0!==a?a:r}function d(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return l(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&l(o,c);if(e.isDeclarationName(a))return i(a.parent)?l(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&l(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var u=o.getSymbolAtLocation(a);if(u&&(2097152&u.flags&&(u=o.getAliasedSymbol(u)),u.valueDeclaration)){s=!0,a=u.valueDeclaration;continue}}return}}function _(t,n){var i=n.getSourceFile(),a=function(t,n){if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}var a=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),s=e.isIdentifier(a)?e.idText(a):e.isStringOrNumericLiteralLike(a)?a.text:e.isComputedPropertyName(a)&&e.isStringOrNumericLiteralLike(a.expression)?a.expression.text:void 0;if(void 0===s){var c=t.getTypeChecker(),u=c.getSymbolAtLocation(a);u&&(s=c.symbolToString(u,n))}if(void 0===s){var l=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});s=e.usingSingleLineStringWriter((function(e){return l.writeNode(4,n,n.getSourceFile(),e)}))}return{text:s,pos:a.getStart(),end:a.getEnd()}}(t,n),s=function(t){var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 166:case 167:case 164:return 197===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 248:case 249:case 253:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}}(n),c=e.getNodeKind(n),u=e.getNodeModifiers(n),l=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),d=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:u,name:a.text,containerName:s,span:l,selectionSpan:d}}function p(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function g(t){return e.getNodeId(t.declaration)}function m(t,r){var n=[],a=function(t,r){function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)?n:n.expression,a=d(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var u=c[s];r.push({declaration:u,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(8388608&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 78:case 257:case 258:case 264:case 250:case 251:return;case 203:case 221:return void t(r.expression);case 246:case 159:return t(r.name),void t(r.initializer);case 200:case 201:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 202:return n(r),t(r.tag),void t(r.template);case 272:case 271:return n(r),t(r.tagName),void t(r.attributes);case 160:return n(r),void t(r.expression);case 198:case 199:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}}(t,n);switch(r.kind){case 294:!function(t,r){e.forEach(t.statements,r)}(r,a);break;case 253:!function(t,r){!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)}(r,a);break;case 248:case 205:case 206:case 164:case 166:case 167:!function(t,r,n){var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))}(t.getTypeChecker(),r,a);break;case 249:case 218:!function(t,r){e.forEach(t.decorators,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body&&(e.forEach(o.parameters,r),r(o.body))}}(r,a);break;default:e.Debug.assertNever(r)}return n}t.resolveCallHierarchyDeclaration=d,t.createCallHierarchyItem=_,t.getIncomingCalls=function(t,r,n){if(e.isSourceFile(r)||e.isModuleDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),p);return o?e.group(o,g,(function(r){return function(t,r){return function(e,t){return{from:e,fromSpans:t}}(_(t,r[0].declaration),e.map(r,(function(t){return e.createTextSpanFromRange(t.range)})))}(t,r)})):[]},t.getOutgoingCalls=function(t,r){return 8388608&r.flags||e.isMethodSignature(r)?[]:e.group(m(t,r),g,(function(r){return function(t,r){return n=_(t,r[0].declaration),i=e.map(r,(function(t){return e.createTextSpanFromRange(t.range)})),{to:n,fromSpans:i};var n,i}(t,r)}))}}(e.CallHierarchy||(e.CallHierarchy={}))}(u||(u={})),function(e){function t(t,n,i,a){var o=i(t);return function(t){var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=function(t){if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r}(s?s.fileName:t);return s?void 0===c?void 0:function(t,n,i,a){var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)}(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(function(t,r){return e.normalizePath(e.combinePaths(t,r))}(t,r))}function n(t,r,n){if(t){if(t.resolvedModule){var i=s(t.resolvedModule.resolvedFileName);if(i)return i}var a=e.forEach(t.failedLookupLocations,(function(t){var i=r(t);return i&&e.find(n,(function(e){return e.fileName===i}))?o(t):void 0}))||e.forEach(t.failedLookupLocations,o);return a||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=r(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=function(o,s,c,u,l,d,_){var p=e.hostUsesCaseSensitiveFileNames(u),f=e.createGetCanonicalFileName(p),g=t(s,c,f,_),m=t(c,s,f,_);return e.textChanges.ChangeTracker.with({host:u,formatContext:l,preferences:d},(function(t){!function(t,n,o,s,c,u,l){var d=t.getCompilerOptions().configFile;if(!d)return;var _=e.getDirectoryPath(d.fileName),p=e.getTsConfigObjectLiteralExpression(d);if(!p)return;function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++){r=g(i[n])||r}return r}function g(t){if(!e.isStringLiteral(t))return!1;var a=r(_,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(d,i(t,d),m(s)),!0)}function m(t){return e.getRelativePathFromDirectory(_,t,!l)}a(p,(function(t,r){switch(r){case"files":case"include":case"exclude":if(!f(t)&&"include"===r&&e.isArrayLiteralExpression(t.initializer)){var i=e.mapDefined(t.initializer.elements,(function(t){return e.isStringLiteral(t)?t.text:void 0})),o=e.getFileMatcherPatterns(_,[],i,l,u);e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),l).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),l).test(c)&&n.insertNodeAfter(d,e.last(t.initializer.elements),e.factory.createStringLiteral(m(c)))}break;case"compilerOptions":a(t.initializer,(function(t,r){var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(function(t){if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++){g(n[r])}}))}))}}))}(o,t,g,s,c,u.getCurrentDirectory(),p),function(t,a,o,s,c,u){for(var l=t.getSourceFiles(),d=function(d){var _=o(d.fileName),p=null!=_?_:d.fileName,f=e.getDirectoryPath(p),g=s(d.fileName),m=g||d.fileName,y=e.getDirectoryPath(m),h=void 0!==_||void 0!==g;!function(t,r,n,a){for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(d=n(c.fileName))&&d!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,d)}for(var u=0,l=t.imports;u<l.length;u++){var d,_=l[u];void 0!==(d=a(_))&&d!==_.text&&r.replaceRangeWithText(t,i(_,t),d)}}(d,a,(function(t){if(e.pathIsRelative(t)){var n=r(y,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,u))}}),(function(r){var i=t.getTypeChecker().getSymbolAtLocation(r);if(!i||!i.declarations.some((function(t){return e.isAmbientModule(t)}))){var a=void 0!==g?n(e.resolveModuleName(r.text,m,t.getCompilerOptions(),c),o,l):function(t,r,i,a,o,s){if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,u=s(c);return void 0===u?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}return n(o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName),s,a.getSourceFiles())}(i,r,d,t,c,o);return void 0!==a&&(a.updated||h&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),u(p),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},_=0,p=l;_<p.length;_++){d(p[_])}}(o,t,g,m,u,f)}))},e.getPathUpdater=t}(u||(u={})),function(e){!function(t){function i(t,n,i){var o=a(n,i,t);if(o)return[_(o.fileName,o.file.fileName)];var d=e.getTouchingPropertyName(n,i);if(d!==n){var p=d.parent,f=t.getTypeChecker();if(e.isJumpStatementTarget(d)){var g=e.getTargetLabel(d.parent,d.text);return g?[u(f,g,"label",d.text,void 0)]:void 0}var m=function(t,r){var n=r.getSymbolAtLocation(t);if(n&&2097152&n.flags&&function(e,t){if(78!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 259:case 257:return!0;case 262:return 261===t.parent.kind;default:return!1}}(t,n.declarations[0])){var i=r.getAliasedSymbol(n);if(i.declarations)return i}if(n&&e.isInJSFile(t)){var a=e.forEach(n.declarations,(function(t){return e.isVariableDeclaration(t)&&t.initializer&&e.isRequireCall(t.initializer,!0)?t.initializer:void 0}));if(a){var o=r.getSymbolAtLocation(a.arguments[0]);if(o)return r.resolveExternalModuleSymbol(o)}}return n}(d,f);if(!m)return function(t,r){if(!e.isPropertyAccessExpression(t.parent)||t.parent.name!==t)return;var n=r.getTypeAtLocation(t.parent.expression);return e.mapDefined(n.isUnionOrIntersection()?n.types:[n],(function(e){var t=r.getIndexInfoOfType(e,0);return t&&t.declaration&&l(r,t.declaration)}))}(d,f);var y=function(t,r){var n=function(t){var r=e.findAncestor(t,(function(t){return!e.isRightSideOfPropertyAccess(t)})),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)}))}(f,d);if(y&&(!e.isJsxOpeningLikeElement(d.parent)||!function(e){switch(e.kind){case 165:case 174:case 169:return!0;default:return!1}}(y))){var h=l(f,y);if(f.getRootSymbols(m).some((function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,y)}))||m.declarations&&m.declarations.some((function(t){return e.isVariableDeclaration(t)&&!!t.initializer&&e.isRequireCall(t.initializer,!1)})))return[h];var v=s(f,m,d,y)||e.emptyArray;return 105===d.kind?r([h],v):r(v,[h])}if(286===d.parent.kind){var b=f.getShorthandAssignmentValueSymbol(m.valueDeclaration);return b?b.declarations.map((function(e){return c(e,f,b,d)})):[]}if(e.isPropertyName(d)&&e.isBindingElement(p)&&e.isObjectBindingPattern(p.parent)&&d===(p.propertyName||p.name)){var x=e.getNameFromPropertyName(d),D=f.getTypeAtLocation(p.parent);return void 0===x?e.emptyArray:e.flatMap(D.isUnion()?D.types:[D],(function(e){var t=e.getProperty(x);return t&&s(f,t,d)}))}var S=e.getContainingObjectLiteralElement(d);if(S){var T=S&&f.getContextualType(S.parent);if(T)return e.flatMap(e.getPropertySymbolsFromContextualType(S,f,T,!1),(function(e){return s(f,e,d)}))}return s(f,m,d)}}function a(e,t,r){var n=d(e.referencedFiles,t);if(n)return(o=r.getSourceFileFromReference(e,n))&&{fileName:n.fileName,file:o};var i=d(e.typeReferenceDirectives,t);if(i){var a=r.getResolvedTypeReferenceDirectives().get(i.fileName);return(o=a&&r.getSourceFile(a.resolvedFileName))&&{fileName:i.fileName,file:o}}var o,s=d(e.libReferenceDirectives,t);return s?(o=r.getLibFileFromReference(s))&&{fileName:s.fileName,file:o}:void 0}function o(t,r,n){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(function(e){return e.symbol&&s(r,e.symbol,n)}))}function s(t,r,n,i){var a=e.filter(r.declarations,(function(t){return t!==i&&(!e.isAssignmentDeclaration(t)||t===r.valueDeclaration)}))||void 0;return function(){if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||132===n.kind)){return o((e.find(a,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?o(a,!1):void 0)||e.map(a,(function(e){return c(e,t,r,n)}));function o(i,a){if(i){var o=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike),s=o.filter((function(e){return!!e.body}));return o.length?0!==s.length?s.map((function(e){return c(e,t,r,n)})):[c(e.last(o),t,r,n)]:void 0}}}function c(t,r,n,i){var a=r.symbolToString(n),o=e.SymbolDisplay.getSymbolKind(r,n,i),s=n.parent?r.symbolToString(n.parent,i):"";return u(r,t,o,a,s)}function u(t,r,i,a,o){var s=e.getNameOfDeclaration(r)||r,c=s.getSourceFile(),u=e.createTextSpanFromNode(s,c);return n(n({fileName:c.fileName,textSpan:u,kind:i,name:a,containerKind:void 0,containerName:o},e.FindAllReferences.toContextSpan(u,c,e.FindAllReferences.getContextNode(r))),{isLocal:!t.isDeclarationVisible(r)})}function l(e,t){return c(t,e,t.symbol,t)}function d(t,r){return e.find(t,(function(t){return e.textRangeContainsPositionInclusive(t,r)}))}function _(t,r){return{fileName:r,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0}}t.getDefinitionAtPosition=i,t.getReferenceAtPosition=a,t.getTypeDefinitionAtPosition=function(t,r,n){var i=e.getTouchingPropertyName(r,n);if(i!==r){var a=t.getSymbolAtLocation(i);if(a){var s=t.getTypeOfSymbolAtLocation(a,i),c=function(t,r,n){if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}return}(a,s,t),u=c&&o(c,t,i);return u&&0!==u.length?u:o(s,t,i)}}},t.getDefinitionAndBoundSpan=function(t,r,n){var a=i(t,r,n);if(a&&0!==a.length){var o=d(r.referencedFiles,n)||d(r.typeReferenceDirectives,n)||d(r.libReferenceDirectives,n);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(r,n);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=d}(e.GoToDefinition||(e.GoToDefinition={}))}(u||(u={})),function(e){!function(t){var r,n,i=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function a(e){var t=e.comment;switch(e.kind){case 312:case 311:return n(e.class);case 326:return i(e.typeParameters.map((function(e){return e.getText()})).join(", "));case 325:return n(e.typeExpression);case 327:case 320:case 328:case 322:var r=e.name;return r?n(r):t;default:return t}function n(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}function o(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function s(t){switch(t.kind){case 248:case 205:case 164:case 165:case 163:return{commentOwner:t,parameters:t.parameters};case 285:return s(t.initializer);case 249:case 250:case 161:case 252:case 288:case 251:return{commentOwner:t};case 229:var r=t.declarationList.declarations;return{commentOwner:t,parameters:1===r.length&&r[0].initializer?function(t){for(;204===t.kind;)t=t.expression;switch(t.kind){case 205:case 206:return t.parameters;case 218:var r=e.find(t.members,e.isConstructorDeclaration);return r?r.parameters:e.emptyArray}return e.emptyArray}(r[0].initializer):void 0};case 294:return"quit";case 253:return 253===t.parent.kind?void 0:{commentOwner:t};case 230:return s(t.expression);case 213:var n=t;return 0===e.getAssignmentDeclarationKind(n)?"quit":{commentOwner:t,parameters:e.isFunctionLike(n.right)?n.right.parameters:e.emptyArray};case 162:var i=t.initializer;if(i&&(e.isFunctionExpression(i)||e.isArrowFunction(i)))return{commentOwner:t,parameters:i.parameters}}}t.getJsDocCommentsFromDeclarations=function(t){var r=[];return e.forEachUnique(t,(function(t){for(var n=0,i=function(t){switch(t.kind){case 322:case 328:return[t];case 320:case 327:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);n<i.length;n++){var a=i[n].comment;void 0!==a&&e.pushIfUnique(r,a)}})),e.intersperse(e.map(r,e.textPart),e.lineBreakPart())},t.getJsDocTagsFromDeclarations=function(t){var r=[];return e.forEachUnique(t,(function(t){for(var n=0,i=e.getJSDocTags(t);n<i.length;n++){var o=i[n];r.push({name:o.tagName.text,text:a(o)})}})),r},t.getJSDocTagNameCompletions=function(){return r||(r=e.map(i,(function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}})))},t.getJSDocTagNameCompletionDetails=o,t.getJSDocTagCompletions=function(){return n||(n=e.map(i,(function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}})))},t.getJSDocTagCompletionDetails=o,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a}))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:"0"}}})):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isJSDoc);if(!a||void 0===a.comment&&!e.length(a.tags)){var o=i.getStart(r);if(a||!(o<n)){var c=function(t){return e.forEachAncestor(t,s)}(i);if(c){var u=c.commentOwner,l=c.parameters;if(!(u.getStart(r)<n)){if(!l||0===l.length){return{newText:"/** */",caretOffset:3}}var d=function(t,r){for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)}(r,n),_="/**"+t+d+" * ";return{newText:_+t+function(e,t,r,n){return e.map((function(e,i){var a=e.name,o=e.dotDotDotToken,s=78===a.kind?a.text:"param"+i;return r+" * @param "+(t?o?"{...any} ":"{any} ":"")+s+n})).join("")}(l,e.hasJSFileExtension(r.fileName),d,t)+d+" */"+(o===n?t+d:""),caretOffset:_.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(u||(u={})),function(e){!function(t){function r(e,t){switch(e.kind){case 259:case 262:case 257:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||157===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&157===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=function(t,n,i,a,u,l){var d=e.createPatternMatcher(a);if(!d)return e.emptyArray;for(var _=[],p=function(e){if(i.throwIfCancellationRequested(),l&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach((function(t,i){!function(e,t,n,i,a,s){var c=e.getMatchForLastSegmentOfPattern(t);if(!c)return;for(var u=0,l=n;u<l.length;u++){var d=l[u];if(r(d,i))if(e.patternContainsDots){var _=e.getFullMatch(o(d),t);_&&s.push({name:t,fileName:a,matchKind:_.kind,isCaseSensitive:_.isCaseSensitive,declaration:d})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}}(d,i,t,n,e.fileName,_)}))},f=0,g=t;f<g.length;f++){p(g[f])}return _.sort(s),(void 0===u?_:_.slice(0,u)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(u||(u={})),function(e){!function(t){var r,n,i,a,o,s=/\s+/g,c=[],u=[],l=[];function d(){i=void 0,n=void 0,c=[],a=void 0,l=[]}function _(e){return K(e.getText(i))}function p(e){return e.node.kind}function f(e,t){e.children?e.children.push(t):e.children=[t]}function g(t){e.Debug.assert(!c.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=r;for(var n=0,i=t.statements;n<i.length;n++){T(i[n])}return D(),e.Debug.assert(!a&&!c.length),r}function m(e,t){f(a,y(e,t))}function y(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function h(t){o||(o=new e.Map),o.set(t,!0)}function v(e){for(var t=0;t<e;t++)D()}function b(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--){x(t,i=n[o])}return[n.length-1,n[0]]}function x(e,t){var r=y(e,t);f(a,r),c.push(a),u.push(o),o=void 0,a=r}function D(){a.children&&(E(a.children,a),A(a.children)),a=c.pop(),o=u.pop()}function S(e,t,r){x(e,r),T(t),D()}function T(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 165:var i=t;S(i,i.body);for(var a=0,s=i.parameters;a<s.length;a++){var c=s[a];e.isParameterPropertyDeclaration(c,i)&&m(c)}break;case 164:case 166:case 167:case 163:e.hasDynamicName(t)||S(t,t.body);break;case 162:case 161:e.hasDynamicName(t)||m(t);break;case 259:var u=t;u.name&&m(u.name);var l=u.namedBindings;if(l)if(260===l.kind)m(l);else for(var d=0,_=l.elements;d<_.length;d++){m(_[d])}break;case 286:S(t,t.name);break;case 287:var p=t.expression;e.isIdentifier(p)?m(t,p):m(t);break;case 195:case 285:case 246:var f=t,g=f.name,y=f.initializer;e.isBindingPattern(g)?T(g):y&&function(e){switch(e.kind){case 206:case 205:case 218:return!0;default:return!1}}(y)?(x(t),e.forEachChild(y,T),D()):S(t,y);break;case 248:var E=t.name;E&&e.isIdentifier(E)&&h(E.text),S(t,t.body);break;case 206:case 205:S(t,t.body);break;case 252:x(t);for(var C=0,k=t.members;C<k.length;C++){R(F=k[C])||m(F)}D();break;case 249:case 218:case 250:x(t);for(var N=0,A=t.members;N<A.length;N++){var F;T(F=A[N])}D();break;case 253:S(t,function t(r){return r.body&&e.isModuleDeclaration(r.body)?t(r.body):r}(t).body);break;case 263:var P=t.expression,w=e.isObjectLiteralExpression(P)?P:e.isArrowFunction(P)||e.isFunctionExpression(P)?P.body:void 0;w?(x(t),T(w),D()):m(t);break;case 267:case 257:case 170:case 168:case 169:case 251:m(t);break;case 200:case 213:var I=e.getAssignmentDeclarationKind(t);switch(I){case 1:case 2:return void S(t,t.right);case 6:case 3:var O=(z=t).left,M=3===I?O.expression:O,L=0,B=void 0;return e.isIdentifier(M.expression)?(h(M.expression.text),B=M.expression):(L=(r=b(z,M.expression))[0],B=r[1]),6===I?e.isObjectLiteralExpression(z.right)&&z.right.properties.length>0&&(x(z,B),e.forEachChild(z.right,T),D()):e.isFunctionExpression(z.right)||e.isArrowFunction(z.right)?S(t,z.right,B):(x(z,B),S(t,z.right,O.name),D()),void v(L);case 7:case 9:var j=t,J=(B=7===I?j.arguments[0]:j.arguments[0].expression,j.arguments[1]),K=b(t,B);L=K[0];return x(t,K[1]),x(t,e.setTextRange(e.factory.createIdentifier(J.text),J)),T(t.arguments[2]),D(),D(),void v(L);case 5:var z,U=(O=(z=t).left).expression;if(e.isIdentifier(U)&&"prototype"!==e.getElementOrPropertyAccessName(O)&&o&&o.has(U.text))return void(e.isFunctionExpression(z.right)||e.isArrowFunction(z.right)?S(t,z.right,U):e.isBindableStaticAccessExpression(O)&&(x(z,U),S(z.left,z.right,e.getNameOrArgument(O)),D()));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,T)}}function E(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&_(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,u=s;c<u.length;c++){var l;if(k(l=u[c],t,i,r))return!1}return s.push(t),!0}return!k(l=s,t,i,r)&&(n.set(o,[l,t]),!0)}))}t.getNavigationBarItems=function(t,r){n=r,i=t;try{return e.map(function(e){var t=[];function r(e){if(n(e)&&(t.push(e),e.children))for(var i=0,a=e.children;i<a.length;i++){r(a[i])}}return r(e),t;function n(e){if(e.children)return!0;switch(p(e)){case 249:case 218:case 252:case 250:case 253:case 294:case 251:case 327:case 320:return!0;case 206:case 248:case 205:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(p(e.parent)){case 254:case 294:case 164:case 165:return!0;default:return!1}}}}(g(t)),O)}finally{d()}},t.getNavigationTree=function(e,t){n=t,i=e;try{return I(g(e))}finally{d()}};var C=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function k(t,r,n,i){return!!function(t,r,n,i){function a(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var o=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,s=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(C[o]&&C[s]||a(t.node)&&C[o]||a(r.node)&&C[s]||e.isClassDeclaration(t.node)&&C[o]||e.isClassDeclaration(r.node)&&C[s]||e.isClassDeclaration(t.node)&&a(r.node)||e.isClassDeclaration(r.node)&&a(t.node)){var c=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||a(t.node)||a(r.node)){var u=a(t.node)?t.node:a(r.node)?r.node:void 0;if(void 0!==u){var l=y(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),u));l.indent=t.indent+1,l.children=t.node===u?t.children:r.children,t.children=t.node===u?e.concatenate([l],r.children||[r]):e.concatenate(t.children||[t],[l])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[t],r.children||[r]),t.children&&(E(t.children,t),A(t.children)));c=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&E(t.children,t);var d=r.node;return i.children[n-1].node.end===c.end?e.setTextRange(c,{pos:c.pos,end:d.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==o}(t,r,n,i)||!!function(t,r,n){if(t.kind!==r.kind||t.parent!==r.parent&&(!N(t,n)||!N(r,n)))return!1;switch(t.kind){case 162:case 164:case 166:case 167:return e.hasSyntacticModifier(t,32)===e.hasSyntacticModifier(r,32);case 253:return function e(t,r){return t.body.kind===r.body.kind&&(253!==t.body.kind||e(t.body,r.body))}(t,r);default:return!0}}(t.node,r.node,i)&&(function(t,r){var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes);t.children=e.concatenate(t.children,r.children),t.children&&(E(t.children,t),A(t.children))}(t,r),!0)}function N(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function A(e){e.sort(F)}function F(t,r){return e.compareStringsCaseSensitiveUI(P(t.node),P(r.node))||e.compareValues(p(t),p(r))}function P(t){if(253===t.kind)return L(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 205:case 206:case 218:return J(t);default:return}}function w(t,r){if(253===t.kind)return K(L(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"["+_(r.argumentExpression)+"]":_(r);if(n.length>0)return K(n)}switch(t.kind){case 294:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 263:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 206:case 248:case 205:case 249:case 218:return 512&e.getSyntacticModifierFlags(t)?"default":J(t);case 165:return"constructor";case 169:return"new()";case 168:return"()";case 170:return"[]";default:return"<unknown>"}}function I(t){return{text:w(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:j(t.node),spans:M(t),nameSpan:t.name&&B(t.name),childItems:e.map(t.children,I)}}function O(t){return{text:w(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:j(t.node),spans:M(t),childItems:e.map(t.children,(function(t){return{text:w(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:M(t),childItems:l,indent:0,bolded:!1,grayed:!1}}))||l,indent:t.indent,bolded:!1,grayed:!1}}function M(e){var t=[B(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(B(i))}return t}function L(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);var r=[];for(r.push(e.getTextOfIdentifierOrLiteral(t.name));t.body&&253===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function R(e){return!e.name||157===e.name.kind}function B(t){return 294===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function j(t){return t.parent&&246===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function J(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return K(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return K(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"<class>";if(e.isCallExpression(r)){var n=function t(r){if(e.isIdentifier(r))return r.text;if(e.isPropertyAccessExpression(r)){var n=t(r.expression),i=r.name.text;return void 0===n?i:n+"."+i}return}(r.expression);if(void 0!==n)return(n=K(n)).length>150?n+" callback":n+"("+K(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "))+") callback"}return"<function>"}function K(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;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,u=s.importClause,l=u.name,d=u.namedBindings;l&&c.defaultImports.push(s),d&&(e.isNamespaceImport(d)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}}(t),i=n.importWithoutClause,a=n.typeOnlyImports,c=n.regularImports,u=[];i&&u.push(i);for(var d=0,_=[c,a];d<_.length;d++){var p=_[d],f=p===a,g=p.defaultImports,m=p.namespaceImports,y=p.namedImports;if(f||1!==g.length||1!==m.length||0!==y.length){for(var h=0,v=e.stableSort(m,(function(e,t){return l(e.importClause.namedBindings.name,t.importClause.namedBindings.name)}));h<v.length;h++){var b=v[h];u.push(o(b,void 0,b.importClause.namedBindings))}if(0!==g.length||0!==y.length){var x=void 0,D=[];if(1===g.length)x=g[0].importClause.name;else for(var S=0,T=g;S<T.length;S++){N=T[S];D.push(e.factory.createImportSpecifier(e.factory.createIdentifier("default"),N.importClause.name))}D.push.apply(D,e.flatMap(y,(function(e){return e.importClause.namedBindings.elements})));var E=s(D),C=g.length>0?g[0]:y[0],k=0===E.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(E):e.factory.updateNamedImports(y[0].importClause.namedBindings,E);f&&x&&k?(u.push(o(C,x,void 0)),u.push(o(null!==(r=y[0])&&void 0!==r?r:C,void 0,k))):u.push(o(C,x,k))}}else{var N=g[0];u.push(o(N,N.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var c=0,u=[i,a];c<u.length;c++){var l=u[c];if(0!==l.length){var d=[];d.push.apply(d,e.flatMap(l,(function(t){return t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray})));var _=s(d),p=l[0];o.push(e.factory.updateExportDeclaration(p,p.decorators,p.modifiers,p.isTypeOnly,p.exportClause&&(e.isNamedExports(p.exportClause)?e.factory.updateNamedExports(p.exportClause,_):e.factory.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier))}}return o}function o(t,r,n){return e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier)}function s(t){return e.stableSort(t,c)}function c(e,t){return l(e.propertyName||e.name,t.propertyName||t.name)||l(e.name,t.name)}function u(t,r){var i=void 0===t?void 0:n(t),a=void 0===r?void 0:n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function l(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function d(t){var r;switch(t.kind){case 257:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 258:return t.moduleSpecifier;case 229:return t.declarationList.declarations[0].initializer.arguments[0]}}function _(t,r){return u(d(t),d(r))||function(t,r){return e.compareValues(p(t),p(r))}(t,r)}function p(e){var t;switch(e.kind){case 258:return e.importClause?e.importClause.isTypeOnly?1:260===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 257:return 5;case 229:return 6}}t.organizeImports=function(t,s,c,l,d){var p=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s,preferences:d}),f=function(n){return e.stableSort(i(function(t,n,i){for(var a=i.getTypeChecker(),s=a.getJsxNamespace(n),c=!!(2&n.transformFlags),u=[],l=0,d=t;l<d.length;l++){var _=d[l],p=_.importClause,f=_.moduleSpecifier;if(p){var g=p.name,m=p.namedBindings;if(g&&!h(g)&&(g=void 0),m)if(e.isNamespaceImport(m))h(m.name)||(m=void 0);else{var y=m.elements.filter((function(e){return h(e.name)}));y.length<m.elements.length&&(m=y.length?e.factory.updateNamedImports(m,y):void 0)}g||m?u.push(o(_,g,m)):r(n,f)&&(n.isDeclarationFile?u.push(e.factory.createImportDeclaration(_.decorators,_.modifiers,void 0,f)):u.push(_))}else u.push(_)}return u;function h(t){return c&&t.text===s||e.FindAllReferences.Core.isSymbolReferencedInFile(t,a,n)}}(n,t,l)),(function(e,t){return _(e,t)}))};h(t.statements.filter(e.isImportDeclaration),f),h(t.statements.filter(e.isExportDeclaration),a);for(var g=0,m=t.statements.filter(e.isAmbientModule);g<m.length;g++){var y=m[g];if(y.body)h(y.body.statements.filter(e.isImportDeclaration),f),h(y.body.statements.filter(e.isExportDeclaration),a)}return p.getChanges();function h(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var a=e.group(r,(function(e){return n(e.moduleSpecifier)})),o=e.stableSort(a,(function(e,t){return u(e[0].moduleSpecifier,t[0].moduleSpecifier)})),l=e.flatMap(o,(function(e){return n(e[0].moduleSpecifier)?i(e):e}));0===l.length?p.delete(t,r[0]):p.replaceNodeWithNodes(t,r[0],l,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(c,s.options)});for(var d=1;d<r.length;d++)p.deleteNode(t,r[d])}}},t.coalesceImports=i,t.coalesceExports=a,t.compareImportOrExportSpecifiers=c,t.compareModuleSpecifiers=u,t.importsAreSorted=function(t){return e.arrayIsSorted(t,_)},t.importSpecifiersAreSorted=function(t){return e.arrayIsSorted(t,c)},t.getImportDeclarationInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,_);return n<0?~n:n},t.getImportSpecifierInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,c);return n<0?~n:n},t.compareImportsOrRequireStatements=_}(e.OrganizeImports||(e.OrganizeImports={}))}(u||(u={})),function(e){!function(t){t.collectElements=function(t,n){var u=[];return function(t,n,i){var u=40,l=0,d=r(t.statements,[t.endOfFileToken]),_=d.length;for(;l<_;){for(;l<_&&!e.isAnyImportSyntax(d[l]);)g(d[l]),l++;if(l===_)break;for(var p=l;l<_&&e.isAnyImportSyntax(d[l]);)a(d[l],t,n,i),l++;var f=l-1;f!==p&&i.push(o(e.findChildOfKind(d[p],99,t).getStart(t),d[f].getEnd(),"imports"))}function g(r){var l;if(0!==u){n.throwIfCancellationRequested(),(e.isDeclaration(r)||1===r.kind)&&a(r,t,n,i),m(r)&&a(r.parent.parent.parent,t,n,i),e.isFunctionLike(r)&&e.isBinaryExpression(r.parent)&&e.isPropertyAccessExpression(r.parent.left)&&a(r.parent.left,t,n,i);var d=function(t,r){switch(t.kind){case 227:if(e.isFunctionLike(t.parent))return function(t,r,n){var i=function(t,r,n){if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)}(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&s(i,a,t,n,206!==t.kind)}(t.parent,t,r);switch(t.parent.kind){case 232:case 235:case 236:case 234:case 231:case 233:case 240:case 284:return g(t.parent);case 244:var n=t.parent;if(n.tryBlock===t)return g(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,95,r);if(i)return g(i)}default:return c(e.createTextSpanFromNode(t,r),"code")}case 254:return g(t.parent);case 249:case 218:case 250:case 252:case 255:case 176:case 193:return g(t);case 178:return g(t,!1,!e.isTupleTypeNode(t.parent),22);case 281:case 282:return m(t.statements);case 197:return f(t);case 196:return f(t,22);case 270:return l(t);case 274:return d(t);case 271:case 272:return _(t.attributes);case 215:case 14:return p(t);case 194:return g(t,!1,!e.isBindingElement(t.parent),22);case 206:return u(t);case 200:return a(t)}function a(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return s(n,i,t,r,!1,!0)}}function u(t){if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r))return c(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}function l(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return c(n,"code",n,!1,"<"+i+">...</"+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++}}function m(t){if(!e.isFunctionExpression(t)&&!e.isArrowFunction(t))return!1;var r=e.findAncestor(t,e.isVariableStatement);return!!r&&e.getSingleInitializerOfVariableStatementOrPropertyDeclaration(r)===t}}(t,n,u),function(t,r){for(var n=[],a=t.getLineStarts(),o=0,s=a;o<s.length;o++){var u=s[o],l=t.getLineEndOfPosition(u),d=i(t.text.substring(u,l));if(d&&!e.isInComment(t,u))if(d[1]){var _=n.pop();_&&(_.textSpan.length=l-_.textSpan.start,_.hintSpan.length=l-_.textSpan.start,r.push(_))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",u),l);n.push(c(p,"region",p,!1,d[2]||"#region"))}}}(t,u),u.sort((function(e,t){return e.textSpan.start-t.textSpan.start}))};var n=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function i(e){return n.exec(e)}function a(t,r,n,a){var s=e.getLeadingCommentRangesOfNode(t,r);if(s){for(var c=-1,u=-1,l=0,d=r.getFullText(),_=0,p=s;_<p.length;_++){var f=p[_],g=f.kind,m=f.pos,y=f.end;switch(n.throwIfCancellationRequested(),g){case 2:if(i(d.slice(m,y))){h(),l=0;break}0===l&&(c=m),u=y,l++;break;case 3:h(),a.push(o(m,y,"comment")),l=0;break;default:e.Debug.assertNever(g)}}h()}function h(){l>1&&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=h(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(E(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);d<p.length;d++){var f=p[d];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&l(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(E(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++){a=o(a,i(e,c[s],r))}return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&T(0,i.length,(function(a){return function(e,t,r){return r?_(e)===_(t):e===t}(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)}))}function u(t,r,n,i){for(var a=n.characterSpans,o=0,s=0;;){if(s===a.length)return!0;if(o===r.length)return!1;for(var u=r[o],d=!1;s<a.length;s++){var _=a[s];if(d&&(!l(n.text.charCodeAt(a[s-1].start))||!l(n.text.charCodeAt(a[s].start))))break;if(!c(t,u,n.text,i,_))break;d=!0,u=e.createTextSpan(u.start+_.length,u.length-_.length)}o++}}function l(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function 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;i<e.length;i++){f(e.charCodeAt(i))?(0===n&&(r=i),n++):n>0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return v(e,!1)}function h(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=p(t.charCodeAt(a-1)),s=p(t.charCodeAt(a)),c=S(t,r,a),u=r&&D(t,a,i);(b(t.charCodeAt(a-1))||b(t.charCodeAt(a))||o!==s||c||u)&&(x(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return x(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function b(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function x(e,t,r){return E(e,(function(e){return b(e)&&95!==e}),t,r)}function D(e,t,r){return t!==r&&t+1<e.length&&l(e.charCodeAt(t))&&d(e.charCodeAt(t+1))&&E(e,l,r,t)}function S(e,t,r){var n=l(e.charCodeAt(r-1));return l(e.charCodeAt(r))&&(!t||!n)}function T(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function E(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),T(r,n,(function(r){return t(e.charCodeAt(r),r)}))}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(t){var r=new e.Map,n=t.trim().split(".").map((function(e){return{totalTextChunk:m(t=e.trim()),subWordTextChunks:g(t)};var t}));if(!n.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(!a(r,e.last(n),i))return;if(n.length-1>t.length)return;for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=h}(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&&(138===(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;148===t&&e.scanner.lookAhead((function(){var t=e.scanner.scan();return 152!==t&&(41===t||18===t||78===t||e.isKeyword(t))}))&&(t=d());if(78===t||e.isKeyword(t))if(152===(t=d())){if(10===(t=d()))return p(),!0}else if(62===t){if(h(!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&&152===(t=d())&&10===(t=d())&&p()}else 41===t&&126===(t=d())&&(78===(t=d())||e.isKeyword(t))&&152===(t=d())&&10===(t=d())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(92===t){if(f(),148===(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&&152===(t=d())&&10===(t=d())&&p()}else if(41===t)152===(t=d())&&10===(t=d())&&p();else if(99===t){if(148===(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())&&h(!0))return!0}return!0}return!1}function h(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 142===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&p(),!0)}function v(){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&&(h(!1,!0)||v())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,x=i;b<x.length;b++){var D=x[b];c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(i)for(var T=0,E=i;T<E.length;T++){0===(D=E[T]).depth?(S||(S=[]),S.push(D.ref.fileName)):c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}}(u||(u={})),function(e){!function(t){function r(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function n(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}t.getRenameInfo=function(t,i,a,o){var s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,a));if(function(t){switch(t.kind){case 78:case 79:case 10:case 14:case 107:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(s)){var c=function(t,i,a,o,s){var c=i.getSymbolAtLocation(t);if(!c)return;var u=c.declarations;if(!u||0===u.length)return;if(u.some(o))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&87===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)return;if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?function(t,n,i){if(!e.isExternalModuleNameRelative(t.text))return r(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=e.find(i.declarations,e.isSourceFile);if(!a)return;var o=e.endsWith(t.text,"/index")||e.endsWith(t.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",u=t.text.lastIndexOf("/")+1,l=e.createTextSpan(t.getStart(n)+1+u,t.text.length-u);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:l}}(t,a,c):void 0;var l=e.SymbolDisplay.getSymbolKind(i,c,t),d=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&157===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0,_=d||i.symbolToString(c),p=d||i.getFullyQualifiedName(c);return function(e,t,r,i,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:n(a,o)}}(_,p,l,e.SymbolDisplay.getSymbolModifiers(c),t,a)}(s,t.getTypeChecker(),i,(function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}),o);if(c)return c}return r(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(u||(u={})),function(e){!function(t){function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=function(t,i){var o,s,c={textSpan:e.createTextSpanFromBounds(i.getFullStart(),i.getEnd())},l=i;e:for(;;){var d=a(l);if(!d.length)break;for(var _=0;_<d.length;_++){var p=d[_-1],f=d[_],g=d[_+1];if(f.getStart(i)>t)break e;if(r(i,t,f)){if(e.isBlock(f)||e.isTemplateSpan(f)||e.isTemplateHead(f)||e.isTemplateTail(f)||p&&e.isTemplateHead(p)||e.isVariableDeclarationList(f)&&e.isVariableStatement(l)||e.isSyntaxList(f)&&e.isVariableDeclarationList(l)||e.isVariableDeclaration(f)&&e.isSyntaxList(l)&&1===d.length){l=f;break}if(e.isTemplateSpan(l)&&g&&e.isTemplateMiddleOrTemplateTail(g))b(f.getFullStart()-"${".length,g.getStart()+"}".length);var m=e.isSyntaxList(f)&&(s=void 0,18===(s=(o=p)&&o.kind)||22===s||20===s||272===s)&&u(g)&&!e.positionsAreOnSameLine(p.getStart(),g.getStart(),i),y=e.hasJSDocNodes(f)&&f.jsDoc[0].getStart(),h=m?p.getEnd():f.getStart(),v=m?g.getStart():f.getEnd();e.isNumber(y)&&b(y,v),b(h,v),(e.isStringLiteral(f)||e.isTemplateLiteral(f))&&b(h+1,v-1),l=f;break}if(_===d.length-1)break e}}return c;function b(r,i){if(r!==i){var a=e.createTextSpanFromBounds(r,i);(!c||!e.textSpansEqual(a,c.textSpan)&&e.textSpanIntersectsWithPosition(a,t))&&(c=n({textSpan:a},c&&{parent:c}))}}};var i=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),i);if(e.isMappedTypeNode(t)){var r=t.getChildren(),n=r[0],a=r.slice(1),u=e.Debug.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||141===e.kind||e===t.questionToken||57===e.kind}));return[n,c(s(o(l,(function(e){var t=e.kind;return 22===t||158===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;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(c(r)),r=void 0),n.push(o))}return r&&n.push(c(r)),n}function s(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],s=e.last(t),u=n&&26===s.kind,l=t.slice(i+1,u?t.length-1:void 0),d=e.compact([a.length?c(a):void 0,o,l.length?c(l):void 0]);return u?d.concat(s):d}function c(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function u(e){var t=e&&e.kind;return 19===t||23===t||21===t||273===t}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(u||(u={})),function(e){!function(t){var n,i;function a(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function o(t,r){var n=function(t,r){if(29===t.kind||20===t.kind)return{list:p(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:l(n,t)}}(t,r);if(n){var i=n.list,a=n.argumentIndex,o=function(t){var r=t.getChildren(),n=e.countWhere(r,(function(e){return 27!==e.kind}));r.length>0&&27===e.last(r).kind&&n++;return n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,n);if(!s)return;var c=s.list,u=s.argumentIndex,l=s.argumentCount,_=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:_,argumentIndex:u,argumentCount:l}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?d(i,0,n):void 0;if(e.isTemplateHead(t)&&202===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(215===p.kind),d(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 d(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 h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:_=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.left)?c(t.left)+1:2}function u(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function l(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function d(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:_(t,n),argumentIndex:r,argumentCount:i}}function _(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();215===n.kind&&(0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)));return e.createTextSpan(i,a-i)}function p(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function f(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function g(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(n||(n={})),t.getSignatureHelpItems=function(t,r,n,i,l){var d=t.getTypeChecker(),_=e.findTokenOnLeftOfPosition(r,n);if(_){var p=!!i&&"characterTyped"===i.kind;if(!p||!e.isInString(r,n,_)&&!e.isInComment(r,n)){var h=!!i&&"invoked"===i.kind,v=function(t,r,n,i,a){for(var l=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)}));var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n){if(20!==t.kind&&27!==t.kind)return;var i=t.parent;switch(i.kind){case 204:case 164:case 205:case 206:var a=o(t,r);if(!a)return;var s=a.argumentIndex,u=a.argumentCount,l=a.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:s,argumentCount:u,argumentsSpan:l};case 213:var _=function t(r){return e.isBinaryExpression(r.parent)?t(r.parent):r}(i),p=n.getContextualType(_),f=20===t.kind?0:c(i)-1,g=c(_);return p&&{contextualType:p,argumentIndex:f,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!a)return;var s=a.contextualType,l=a.argumentIndex,d=a.argumentCount,_=a.argumentsSpan,p=s.getNonNullableType(),f=p.getCallSignatures();return 1!==f.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(f),node:t,symbol:u(p.symbol)},argumentsSpan:_,argumentIndex:l,argumentCount:d}}(t,0,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},d=t;!e.isSourceFile(d)&&(a||!e.isBlock(d));d=d.parent){var _=l(d);if("object"==typeof _)return _.value}return}(_,n,r,d,h);if(v){l.throwIfCancellationRequested();var b=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)}}(v,d,r,_,p);return l.throwIfCancellationRequested(),b?d.runWithCancellationToken(l,(function(e){return 0===b.kind?m(b.candidates,b.resolvedSignature,v,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:[y(e,c,n,g(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(b.symbol,v,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=f(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return m(a,a[0],t,r,e,!0)}))}))}))}(v,t,l):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}};function m(t,n,i,a,o,s){var c,u=i.isTypeParameterList,l=i.argumentCount,d=i.argumentsSpan,_=i.invocation,p=i.argumentIndex,m=g(_),y=2===_.kind?_.symbol:o.getSymbolAtLocation(f(_))||s&&(null===(c=n.declaration)||void 0===c?void 0:c.symbol),x=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,D=e.map(t,(function(t){return function(t,n,i,a,o,s){var c=(i?v: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:h,parameters:c,documentation:p,tags:f}}))}(t,x,u,o,m,a)}));0!==p&&e.Debug.assertLessThan(p,l);for(var S=0,T=0,E=0;E<D.length;E++){var C=D[E];if(t[E]===n&&(S=T,C.length>1))for(var k=0,N=0,A=C;N<A.length;N++){var F=A[N];if(F.isVariadic||F.parameters.length>=l){S=T+k;break}k++}T+=C.length}return e.Debug.assert(-1!==S),{items:e.flatMapToMutable(D,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:p,argumentCount:l}}function y(t,n,i,a,o){var s=e.symbolToDisplayParts(i,t),c=e.createPrinter({removeComments:!0}),u=n.map((function(e){return x(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:h,parameters:u,documentation:l,tags:d}}var h=[e.punctuationPart(27),e.spacePart()];function v(t,n,i,a){var o=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return x(e,n,i,a,s)})),u=t.thisParameter?[n.symbolToParameterDeclaration(t.thisParameter,i,70246400)]:[];return n.getExpandedParameters(t).map((function(t){var o=e.factory.createNodeArray(r(u,e.map(t,(function(e){return n.symbolToParameterDeclaration(e,i,70246400)})))),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,70246400)})));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,70246400);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 x(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.typeParameterToDeclaration(t,n,70246400);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;_<p.length;_++){var f=p[_],g=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),m=o(g,d);if(e.isString(m))return r(n,m,g);if(void 0!==m)return m||void 0}}}(u||(u={})),function(e){var t=new e.Map;function r(t){switch(t.kind){case 258:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&260===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 257:return t.name;default:return}}function n(t){return e.isReturnStatement(t)&&!!t.expression&&i(t.expression)}function i(t){if(!a(t)||!t.arguments.every(o))return!1;for(var r=t.expression;a(r)||e.isPropertyAccessExpression(r);){if(e.isCallExpression(r)&&!r.arguments.every(o))return!1;r=r.expression}return!0}function a(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")&&function(t){return!(t.arguments.length>2)&&(t.arguments.length<2||e.some(t.arguments,(function(t){return 103===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function o(e){switch(e.kind){case 248:case 205:case 206:t.set(s(e),!0);case 103:case 78:return!0;default:return!1}}function s(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(i,a,o){a.getSemanticDiagnostics(i,o);var c,u=[],l=a.getTypeChecker();i.commonJsModuleIndicator&&(e.programContainsEs6Modules(a)||e.compilerOptionsIndicateEs6Modules(a.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 229:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(function t(r){return e.isPropertyAccessExpression(r)?t(r.expression):r}(t.initializer),!0)}));case 230:var r=t.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var n=e.getAssignmentDeclarationKind(r);return 1===n||2===n;default:return!1}}))}(i)&&u.push(e.createDiagnosticForNode((c=i.commonJsModuleIndicator,e.isBinaryExpression(c)?c.left:c),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var d=e.isSourceFileJS(i);if(t.clear(),function r(a){if(d)(function(t){var r,n,i,a;if(205===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(r=t.symbol.members)||void 0===r?void 0:r.size))return!0;var o=e.getDeclarationOfExpando(t),s=null==o?void 0:o.symbol;return!(!s||!(null===(n=s.exports)||void 0===n?void 0:n.size)&&!(null===(i=s.members)||void 0===i?void 0:i.size))}if(248===t.kind)return!!(null===(a=t.symbol.members)||void 0===a?void 0:a.size);return!1})(a)&&u.push(e.createDiagnosticForNode(e.isVariableDeclaration(a.parent)?a.parent.name:a,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(a)&&a.parent===i&&2&a.declarationList.flags&&1===a.declarationList.declarations.length){var o=a.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&u.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(a)&&u.push(e.createDiagnosticForNode(a.name||a,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(a)&&function(r,i,a){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&(i=t.body,!!e.forEachReturnStatement(i,n))&&function(e,t){var r=t.getTypeAtLocation(e),n=t.getSignaturesOfType(r,0),i=n.length?t.getReturnTypeOfSignature(n[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,r);var i})(r,i)&&!t.has(s(r))&&a.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(a,l,u);a.forEachChild(r)}(i),e.getAllowSyntheticDefaultImports(a.getCompilerOptions()))for(var _=0,p=i.imports;_<p.length;_++){var f=p[_],g=r(e.importFromModuleSpecifier(f));if(g){var m=e.getResolvedModule(i,f.text),y=m&&a.getSourceFile(m.resolvedFileName);y&&y.externalModuleIndicator&&e.isExportAssignment(y.externalModuleIndicator)&&y.externalModuleIndicator.isExportEquals&&u.push(e.createDiagnosticForNode(g,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(u,i.bindSuggestionDiagnostics),e.addRange(u,a.getSuggestionDiagnostics(i,o)),u.sort((function(e,t){return e.start-t.start}))},e.isReturnStatementWithFixablePromiseHandler=n,e.isFixablePromiseHandler=i}(u||(u={})),function(e){!function(t){function r(t,r,i){var a=n(t,r,i);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,218)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function n(t,r,n){var a=t.getRootSymbols(r);if(1===a.length&&8192&e.first(a).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(107===n.kind&&e.isExpression(n))return"parameter";var o=e.getCombinedLocalAndExportSymbolFlags(r);if(3&o)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":i(r)?"local var":"var";if(16&o)return i(r)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(4&o){if(33554432&o&&6&r.checkFlags){var s=e.forEach(t.getRootSymbols(r),(function(t){var r=t.getFlags();if(98311&r)return"property";e.Debug.assert(!!(8208&r))}));return s||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property")}switch(n.parent&&n.parent.kind){case 272:case 270:case 271:return 78===n.kind?"property":"JSX attribute";case 277:return"JSX attribute";default:return"property"}}return""}function i(t){return!t.parent&&e.forEach(t.declarations,(function(t){if(205===t.kind)return!0;if(246!==t.kind&&248!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(294===r.kind||254===r.kind)return!1;return!0}))}t.getSymbolKind=r,t.getSymbolModifiers=function(t){var r=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var d,_,p,f,g=[],m=[],y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?n(i,a,c):"",b=!1,x=107===c.kind&&e.isInExpressionContext(c),D=!1;if(107===c.kind&&!x)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var S=void 0;if(d=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&198===c.parent.kind){var T=c.parent.name;(T===c||T&&0===T.getFullWidth())&&(c=c.parent)}var E=void 0;if(e.isCallOrNewExpression(c)?E=c:(e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)||c.parent&&(e.isJsxOpeningLikeElement(c.parent)||e.isTaggedTemplateExpression(c.parent))&&e.isFunctionLike(a.valueDeclaration))&&(E=c.parent),E){S=i.getResolvedSignature(E);var C=201===E.kind||e.isCallExpression(E)&&105===E.expression.kind,k=C?d.getConstructSignatures():d.getCallSignatures();if(e.contains(k,S.target)||e.contains(k,S)||(S=k.length?k[0]:void 0),S){switch(C&&32&h?(v="constructor",Y(d.symbol,v)):2097152&h?(X(v="alias"),g.push(e.spacePart()),C&&(g.push(e.keywordPart(102)),g.push(e.spacePart())),G(a)):Y(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(e.punctuationPart(58)),g.push(e.spacePart()),16&e.getObjectFlags(d)||!d.symbol||(e.addRange(g,e.symbolToDisplayParts(i,d.symbol,s,void 0,5)),g.push(e.lineBreakPart())),C&&(g.push(e.keywordPart(102)),g.push(e.spacePart())),Q(S,k,262144);break;default:Q(S,k)}b=!0,D=k.length>1}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||132===c.kind&&165===c.parent.kind){var N=c.parent;if(a.declarations&&e.find(a.declarations,(function(e){return e===(132===c.kind?N.parent:N)}))){k=165===N.kind?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();S=i.isImplementationOfOverload(N)?k[0]:i.getSignatureFromDeclaration(N),165===N.kind?(v="constructor",Y(d.symbol,v)):Y(168!==N.kind||2048&d.symbol.flags||4096&d.symbol.flags?a:d.symbol,v),Q(S,k),b=!0,D=k.length>1}}}if(32&h&&!b&&!x&&(W(),e.getDeclarationOfKind(a,218)?X("local class"):g.push(e.keywordPart(83)),g.push(e.spacePart()),G(a),$(a,o)),64&h&&2&u&&(q(),g.push(e.keywordPart(117)),g.push(e.spacePart()),G(a),$(a,o)),524288&h&&2&u&&(q(),g.push(e.keywordPart(148)),g.push(e.spacePart()),G(a),$(a,o),g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),e.addRange(g,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(q(),e.some(a.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(g.push(e.keywordPart(84)),g.push(e.spacePart())),g.push(e.keywordPart(91)),g.push(e.spacePart()),G(a)),1536&h&&!x){q();var A=(z=e.getDeclarationOfKind(a,253))&&z.name&&78===z.name.kind;g.push(e.keywordPart(A?139:138)),g.push(e.spacePart()),G(a)}if(262144&h&&2&u)if(q(),g.push(e.punctuationPart(20)),g.push(e.textPart("type parameter")),g.push(e.punctuationPart(21)),g.push(e.spacePart()),G(a),a.parent)H(),G(a.parent,s),$(a.parent,s);else{var F=e.getDeclarationOfKind(a,158);if(void 0===F)return e.Debug.fail();if(z=F.parent)if(e.isFunctionLikeKind(z.kind)){H();S=i.getSignatureFromDeclaration(z);169===z.kind?(g.push(e.keywordPart(102)),g.push(e.spacePart())):168!==z.kind&&z.name&&G(z.symbol),e.addRange(g,e.signatureToDisplayParts(i,S,o,32))}else 251===z.kind&&(H(),g.push(e.keywordPart(148)),g.push(e.spacePart()),G(z.symbol),$(z.symbol,o))}if(8&h&&(v="enum member",Y(a,"enum member"),288===(z=a.declarations[0]).kind)){var P=i.getConstantValue(z);void 0!==P&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.displayPart(e.getTextOfConstantValue(P),"number"==typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&a.flags){if(q(),!b){var w=i.getAliasedSymbol(a);if(w!==a&&w.declarations&&w.declarations.length>0){var I=w.declarations[0],O=e.getNameOfDeclaration(I);if(O){var M=e.isModuleWithStringLiteralName(I)&&e.hasSyntacticModifier(I,2),L="default"!==a.name&&!M,R=t(i,w,e.getSourceFileOfNode(I),I,O,u,L?a:w);g.push.apply(g,R.displayParts),g.push(e.lineBreakPart()),p=R.documentation,f=R.tags}}}switch(a.declarations[0].kind){case 256:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(139));break;case 263:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(a.declarations[0].isExportEquals?62:87));break;case 267:g.push(e.keywordPart(92));break;default:g.push(e.keywordPart(99))}g.push(e.spacePart()),G(a),e.forEach(a.declarations,(function(t){if(257===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.keywordPart(142)),g.push(e.punctuationPart(20)),g.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),g.push(e.punctuationPart(21));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),G(n,s))}return!0}}))}if(!b)if(""!==v){if(d)if(x?(q(),g.push(e.keywordPart(107))):Y(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||x){if(g.push(e.punctuationPart(58)),g.push(e.spacePart()),d.symbol&&262144&d.symbol.flags){var B=e.mapToDisplayParts((function(t){var r=i.typeParameterToDeclaration(d,s,70246400);V().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)}));e.addRange(g,B)}else e.addRange(g,e.typeToDisplayParts(i,d,s));if(a.target&&a.target.tupleLabelDeclaration){var j=a.target.tupleLabelDeclaration;e.Debug.assertNode(j.name,e.isIdentifier),g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.textPart(e.idText(j.name))),g.push(e.punctuationPart(21))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v){(k=d.getNonNullableType().getCallSignatures()).length&&(Q(k[0],k),D=k.length>1)}}else v=r(i,a,c);if(0!==m.length||D||(m=a.getContextualDocumentationComment(s,i)),0===m.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,(function(e){return 294===e.kind})))for(var J=0,K=a.declarations;J<K.length;J++){var z;if((z=K[J]).parent&&213===z.parent.kind){var U=i.getSymbolAtLocation(z.parent.right);if(U&&(m=U.getDocumentationComment(i),y=U.getJsDocTags(),m.length>0))break}}return 0!==y.length||D||(y=a.getJsDocTags()),0===m.length&&p&&(m=p),0===y.length&&f&&(y=f),{displayParts:g,documentation:m,symbolKind:v,tags:0===y.length?void 0:y};function V(){return _||(_=e.createPrinter({removeComments:!0})),_}function q(){g.length&&g.push(e.lineBreakPart()),W()}function W(){l&&(X("alias"),g.push(e.spacePart()))}function H(){g.push(e.spacePart()),g.push(e.keywordPart(100)),g.push(e.spacePart())}function G(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(g,n),16777216&a.flags&&g.push(e.punctuationPart(57))}function Y(t,r){q(),r&&(X(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(g.push(e.spacePart()),G(t)))}function X(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void g.push(e.textOrKeywordPart(t));default:return g.push(e.punctuationPart(20)),g.push(e.textOrKeywordPart(t)),void g.push(e.punctuationPart(21))}}function Q(t,r,n){void 0===n&&(n=0),e.addRange(g,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.operatorPart(39)),g.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),g.push(e.spacePart()),g.push(e.textPart(2===r.length?"overload":"overloads")),g.push(e.punctuationPart(21))),m=t.getDocumentationComment(i),y=t.getJsDocTags(),r.length>1&&0===m.length&&0===y.length&&(m=r[0].getDocumentationComment(i),y=r[0].getJsDocTags())}function $(t,r){var n=e.mapToDisplayParts((function(n){var a=i.symbolToTypeParameterDeclarations(t,r,70246400);V().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)}));e.addRange(g,n)}}}(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<u.length;c++){var l=u[c];a[l.name]=l.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var d=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),_=e.createSourceFile(d,t,a.target);r.moduleName&&(_.moduleName=r.moduleName),r.renamedDependencies&&(_.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var p,f,g=e.getNewLineCharacter(a),m={getSourceFile:function(t){return t===e.normalizePath(d)?_:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(f,void 0,"Unexpected multiple source map outputs, file:",t),f=r):(e.Debug.assertEqual(p,void 0,"Unexpected multiple outputs, file:",t),p=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return g},fileExists:function(e){return e===d},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},y=e.createProgram([d],a,m);return r.reportDiagnostics&&(e.addRange(i,y.getSyntacticDiagnostics(_)),e.addRange(i,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===p?e.Debug.fail("Output generation failed"):{outputText:p,diagnostics:i,sourceMapText:f}}var r;function n(t,n){r=r||e.filter(e.optionDeclarations,(function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,(function(e){return"number"!=typeof e}))})),t=e.cloneCompilerOptions(t);for(var i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(function(e){return e===i}))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++){i(o[a])}return t}e.transpileModule=t,e.transpile=function(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n}(u||(u={})),function(e){!function(t){!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(t.FormattingRequestKind||(t.FormattingRequestKind={}));var r=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=r}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r,n=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1);!function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"}(r||(r={})),t.getFormattingScanner=function(r,a,o,s,c){var u=1===a?i:n;u.setText(r),u.setTextPos(o);var l,d,_,p,f,g=!0,m=c({advance:function(){f=void 0,u.getStartPos()!==o?g=!!d&&4===e.last(d).kind:u.scan();l=void 0,d=void 0;var t=u.getStartPos();for(;t<s;){var r=u.getToken();if(!e.isTrivia(r))break;u.scan();var n={pos:t,end:u.getStartPos(),kind:r};t=u.getStartPos(),l=e.append(l,n)}_=u.getStartPos()},readTokenInfo:function(r){e.Debug.assert(y());var n=function(e){switch(e.kind){case 33:case 70:case 71:case 49:case 48:return!0}return!1}(r)?1:(i=r,13===i.kind?2:function(e){return 16===e.kind||17===e.kind}(r)?3:function(t){if(t.parent)switch(t.parent.kind){case 277:case 272:case 273:case 271:return e.isKeyword(t.kind)||78===t.kind}return!1}(r)?4:function(t){if(e.isJsxText(t)){var r=e.findAncestor(t.parent,(function(t){return e.isJsxElement(t)}));return!!r&&!e.isParenthesizedExpression(r.parent)}return!1}(r)?5:function(t){return t.parent&&e.isJsxAttribute(t.parent)&&t.parent.initializer===t}(r)?6:0);var i;if(f&&n===p)return v(f,r);u.getStartPos()!==_&&(e.Debug.assert(void 0!==f),u.setTextPos(_),u.scan());var a=function(t,r){var n=u.getToken();switch(p=0,r){case 1:if(31===n){p=1;var i=u.reScanGreaterToken();return e.Debug.assert(t.kind===i),i}break;case 2:if(function(e){return 43===e||67===e}(n)){p=2;i=u.reScanSlashToken();return e.Debug.assert(t.kind===i),i}break;case 3:if(19===n)return p=3,u.reScanTemplateToken(!1);break;case 4:return p=4,u.scanJsxIdentifier();case 5:return p=5,u.reScanJsxToken();case 6:return p=6,u.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}return n}(r,n),o=t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),a);d&&(d=void 0);for(;u.getStartPos()<s&&(a=u.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),a);if(d||(d=[]),d.push(c),4===a){u.scan();break}}return v(f={leadingTrivia:l,trailingTrivia:d,token:o},r)},readEOFTokenRange:function(){return e.Debug.assert(h()),t.createTextRangeWithKind(u.getStartPos(),u.getTextPos(),1)},isOnToken:y,isOnEOF:h,getCurrentLeadingTrivia:function(){return l},lastTrailingTriviaWasNewLine:function(){return g},skipToEndOf:function(e){u.setTextPos(e.end),_=u.getStartPos(),p=void 0,f=void 0,g=!1,l=void 0,d=void 0},skipToStartOf:function(e){u.setTextPos(e.pos),_=u.getStartPos(),p=void 0,f=void 0,g=!1,l=void 0,d=void 0}});return f=void 0,u.setText(void 0),m;function y(){var t=f?f.token.kind:u.getToken();return(f?f.token.pos:u.getStartPos())<s&&1!==t&&!e.isTrivia(t)}function h(){return 1===(f?f.token.kind:u.getToken())}function v(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){t.anyContext=e.emptyArray,function(e){e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction"}(t.RuleAction||(t.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(t.RuleFlags||(t.RuleFlags={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){function n(e,t,r,n,i,o){return void 0===o&&(o=0),{leftTokenRange:a(t),rightTokenRange:a(r),rule:{debugName:e,context:n,action:i,flags:o}}}function i(e){return{tokens:e,isSpecific:!0}}function a(t){return"number"==typeof t?i([t]):e.isArray(t)?i(t):t}function o(t,r,n){void 0===n&&(n=[]);for(var a=[],o=t;o<=r;o++)e.contains(n,o)||a.push(o);return i(a)}function s(e,t){return function(r){return r.options&&r.options[e]===t}}function c(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function u(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function l(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function d(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function _(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function p(e){return 234===e.contextNode.kind}function f(e){return!p(e)}function g(e){switch(e.contextNode.kind){case 213:return 27!==e.contextNode.operatorToken.kind;case 214:case 183:case 221:case 267:case 262:case 171:case 181:case 182:return!0;case 195:case 251:case 257:case 246:case 159:case 288:case 162:case 161:return 62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 235:case 158:return 100===e.currentTokenSpan.kind||100===e.nextTokenSpan.kind||62===e.currentTokenSpan.kind||62===e.nextTokenSpan.kind;case 236:return 155===e.currentTokenSpan.kind||155===e.nextTokenSpan.kind}return!1}function m(e){return!g(e)}function y(e){return!h(e)}function h(t){var r=t.contextNode.kind;return 162===r||161===r||159===r||246===r||e.isFunctionLikeKind(r)}function v(e){return 214===e.contextNode.kind||183===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||E(e)}function x(e){return 193===e.contextNode.kind||189===e.contextNode.kind||function(e){return T(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function D(e){return E(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return T(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function T(e){return C(e.contextNode)}function E(e){return C(e.nextTokenParent)}function C(e){if(P(e))return!0;switch(e.kind){case 227:case 255:case 197:case 254:return!0}return!1}function k(e){switch(e.contextNode.kind){case 248:case 164:case 163:case 166:case 167:case 168:case 205:case 165:case 206:case 250:return!0}return!1}function N(e){return!k(e)}function A(e){return 248===e.contextNode.kind||205===e.contextNode.kind}function F(e){return P(e.contextNode)}function P(e){switch(e.kind){case 249:case 218:case 250:case 252:case 176:case 253:case 264:case 265:case 258:case 261:return!0}return!1}function w(e){switch(e.currentTokenParent.kind){case 249:case 253:case 252:case 284:case 254:case 241:return!0;case 227:var t=e.currentTokenParent.parent;if(!t||206!==t.kind&&205!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 231:case 241:case 234:case 235:case 236:case 233:case 244:case 232:case 240:case 284:return!0;default:return!1}}function O(e){return 197===e.contextNode.kind}function M(e){return function(e){return 200===e.contextNode.kind}(e)||function(e){return 201===e.contextNode.kind}(e)}function L(e){return 27!==e.currentTokenSpan.kind}function R(e){return 23!==e.nextTokenSpan.kind}function B(e){return 21!==e.nextTokenSpan.kind}function j(e){return 206===e.contextNode.kind}function J(e){return 192===e.contextNode.kind}function K(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function z(e){return 11!==e.contextNode.kind}function U(e){return 270!==e.contextNode.kind&&274!==e.contextNode.kind}function V(e){return 280===e.contextNode.kind||279===e.contextNode.kind}function q(e){return 277===e.nextTokenParent.kind}function W(e){return 277===e.contextNode.kind}function H(e){return 271===e.contextNode.kind}function G(e){return!k(e)&&!E(e)}function Y(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&X(e.currentTokenParent)&&!X(e.nextTokenParent)}function X(t){for(;e.isExpressionNode(t);)t=t.parent;return 160===t.kind}function Q(e){return 247===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function $(e){return 2!==e.formattingRequestKind}function Z(e){return 253===e.contextNode.kind}function ee(e){return 176===e.contextNode.kind}function te(e){return 169===e.contextNode.kind}function re(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 172:case 203:case 251:case 249:case 218:case 250:case 248:case 205:case 206:case 164:case 163:case 168:case 169:case 200:case 201:case 220:return!0;default:return!1}}function ne(e){return re(e.currentTokenSpan,e.currentTokenParent)||re(e.nextTokenSpan,e.nextTokenParent)}function ie(e){return 203===e.contextNode.kind}function ae(e){return 113===e.currentTokenSpan.kind&&209===e.currentTokenParent.kind}function oe(e){return 216===e.contextNode.kind&&void 0!==e.contextNode.expression}function se(e){return 222===e.contextNode.kind}function ce(e){return!function(e){switch(e.contextNode.kind){case 231:case 234:case 235:case 236:case 232:case 233:return!0;default:return!1}}(e)}function ue(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(function(e){return!e.parent})),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:226!==r&&26!==r&&(250===t.contextNode.kind||251===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:234!==t.currentTokenParent.kind&&228!==t.currentTokenParent.kind&&226!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&215!==r&&15!==r&&14!==r&&24!==r)}function le(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=function(){for(var a=[],T=0;T<=155;T++)1!==T&&a.push(T);function C(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:a.filter((function(t){return!e.some((function(e){return e===t}))})),isSpecific:!1}}var P={tokens:a,isSpecific:!1},X=i(r(a,[3])),re=i(r(a,[1])),de=o(80,155),_e=o(29,77),pe=[100,101,155,126,136],fe=r([78],e.typeKeywords),ge=X,me=i([78,3,83,92,99]),ye=i([21,3,89,110,95,90]),he=[n("IgnoreBeforeComment",P,[2,3],t.anyContext,1),n("IgnoreAfterLineComment",2,P,t.anyContext,1),n("NotSpaceBeforeColon",P,58,[K,m,y],16),n("SpaceAfterColon",58,P,[K,m],4),n("NoSpaceBeforeQuestionMark",P,57,[K,m,y],16),n("SpaceAfterQuestionMarkInConditionalOperator",57,P,[K,v],4),n("NoSpaceAfterQuestionMark",57,P,[K],16),n("NoSpaceBeforeDot",P,[24,28],[K],16),n("NoSpaceAfterDot",[24,28],P,[K],16),n("NoSpaceBetweenImportParenInImportType",99,20,[K,J],16),n("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,78,20,22,18,107,102],[K,m],16),n("NoSpaceAfterUnaryPreincrementOperator",45,[78,20,107,102],[K],16),n("NoSpaceAfterUnaryPredecrementOperator",46,[78,20,107,102],[K],16),n("NoSpaceBeforeUnaryPostincrementOperator",[78,21,23,102],45,[K,ce],16),n("NoSpaceBeforeUnaryPostdecrementOperator",[78,21,23,102],46,[K,ce],16),n("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[K,g],4),n("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[K,g],4),n("SpaceAfterAddWhenFollowedByPreincrement",39,45,[K,g],4),n("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[K,g],4),n("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[K,g],4),n("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[K,g],4),n("NoSpaceAfterCloseBrace",19,[27,26],[K],16),n("NewLineBeforeCloseBraceInBlockContext",X,19,[S],8),n("SpaceAfterCloseBrace",19,C(21),[K,w],4),n("SpaceBetweenCloseBraceAndElse",19,90,[K],4),n("SpaceBetweenCloseBraceAndWhile",19,114,[K],4),n("NoSpaceBetweenEmptyBraceBrackets",18,19,[K,O],16),n("SpaceAfterConditionalClosingParen",21,22,[I],4),n("NoSpaceBetweenFunctionKeywordAndStar",97,41,[A],16),n("SpaceAfterStarInGeneratorDeclaration",41,78,[A],4),n("SpaceAfterFunctionInFuncDecl",97,P,[k],4),n("NewLineAfterOpenBraceInBlockContext",18,P,[S],8),n("SpaceAfterGetSetInMember",[134,145],78,[k],4),n("NoSpaceBetweenYieldKeywordAndStar",124,41,[K,oe],16),n("SpaceBetweenYieldOrYieldStarAndOperand",[124,41],P,[K,oe],4),n("NoSpaceBetweenReturnAndSemicolon",104,26,[K],16),n("SpaceAfterCertainKeywords",[112,108,102,88,104,111,130],P,[K],4),n("SpaceAfterLetConstInVariableDeclaration",[118,84],P,[K,Q],4),n("NoSpaceBeforeOpenParenInFuncCall",P,20,[K,M,L],16),n("SpaceBeforeBinaryKeywordOperator",P,pe,[K,g],4),n("SpaceAfterBinaryKeywordOperator",pe,P,[K,g],4),n("SpaceAfterVoidOperator",113,P,[K,ae],4),n("SpaceBetweenAsyncAndOpenParen",129,20,[j,K],4),n("SpaceBetweenAsyncAndFunctionKeyword",129,[97,78],[K],4),n("NoSpaceBetweenTagAndTemplateString",[78,21],[14,15],[K],16),n("SpaceBeforeJsxAttribute",P,78,[q,K],4),n("SpaceBeforeSlashInJsxOpeningElement",P,43,[H,K],4),n("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[H,K],16),n("NoSpaceBeforeEqualInJsxAttribute",P,62,[W,K],16),n("NoSpaceAfterEqualInJsxAttribute",62,P,[W,K],16),n("NoSpaceAfterModuleImport",[138,142],20,[K],16),n("SpaceAfterCertainTypeScriptKeywords",[125,83,133,87,91,92,93,134,116,99,117,138,139,120,122,121,141,145,123,148,152,137,135],P,[K],4),n("SpaceBeforeCertainTypeScriptKeywords",P,[93,116,152],[K],4),n("SpaceAfterModuleName",10,18,[Z],4),n("SpaceBeforeArrow",P,38,[K],4),n("SpaceAfterArrow",38,P,[K],4),n("NoSpaceAfterEllipsis",25,78,[K],16),n("NoSpaceAfterOptionalParameters",57,[21,27],[K,m],16),n("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[K,ee],16),n("NoSpaceBeforeOpenAngularBracket",fe,29,[K,ne],16),n("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[K,ne],16),n("NoSpaceAfterOpenAngularBracket",29,P,[K,ne],16),n("NoSpaceBeforeCloseAngularBracket",P,31,[K,ne],16),n("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[K,ne,N],16),n("SpaceBeforeAt",[21,78],59,[K],4),n("NoSpaceAfterAt",59,P,[K],16),n("SpaceAfterDecorator",P,[125,78,92,87,83,123,122,120,121,134,145,22,41],[Y],4),n("NoSpaceBeforeNonNullAssertionOperator",P,53,[K,se],16),n("NoSpaceAfterNewKeywordOnConstructorSignature",102,20,[K,te],16),n("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[K],4)],ve=[n("SpaceAfterConstructor",132,20,[c("insertSpaceAfterConstructor"),K],4),n("NoSpaceAfterConstructor",132,20,[l("insertSpaceAfterConstructor"),K],16),n("SpaceAfterComma",27,P,[c("insertSpaceAfterCommaDelimiter"),K,U,R,B],4),n("NoSpaceAfterComma",27,P,[l("insertSpaceAfterCommaDelimiter"),K,U],16),n("SpaceAfterAnonymousFunctionKeyword",[97,41],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],4),n("NoSpaceAfterAnonymousFunctionKeyword",[97,41],20,[l("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],16),n("SpaceAfterKeywordInControl",de,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),n("NoSpaceAfterKeywordInControl",de,20,[l("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),n("SpaceAfterOpenParen",20,P,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],4),n("SpaceBeforeCloseParen",P,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],4),n("SpaceBetweenOpenParens",20,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],4),n("NoSpaceBetweenParens",20,21,[K],16),n("NoSpaceAfterOpenParen",20,P,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],16),n("NoSpaceBeforeCloseParen",P,21,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),K],16),n("SpaceAfterOpenBracket",22,P,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],4),n("SpaceBeforeCloseBracket",P,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],4),n("NoSpaceBetweenBrackets",22,23,[K],16),n("NoSpaceAfterOpenBracket",22,P,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],16),n("NoSpaceBeforeCloseBracket",P,23,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),K],16),n("SpaceAfterOpenBrace",18,P,[_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),n("SpaceBeforeCloseBrace",P,19,[_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),n("NoSpaceBetweenEmptyBraceBrackets",18,19,[K,O],16),n("NoSpaceAfterOpenBrace",18,P,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K],16),n("NoSpaceBeforeCloseBrace",P,19,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),K],16),n("SpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),n("NoSpaceBetweenEmptyBraceBrackets",18,19,[u("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),K],16),n("SpaceAfterTemplateHeadAndMiddle",[15,16],P,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],4,1),n("SpaceBeforeTemplateMiddleAndTail",P,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],4),n("NoSpaceAfterTemplateHeadAndMiddle",[15,16],P,[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),z],16,1),n("NoSpaceBeforeTemplateMiddleAndTail",P,[16,17],[l("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),K],16),n("SpaceAfterOpenBraceInJsxExpression",18,P,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,V],4),n("SpaceBeforeCloseBraceInJsxExpression",P,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,V],4),n("NoSpaceAfterOpenBraceInJsxExpression",18,P,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,V],16),n("NoSpaceBeforeCloseBraceInJsxExpression",P,19,[l("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),K,V],16),n("SpaceAfterSemicolonInFor",26,P,[c("insertSpaceAfterSemicolonInForStatements"),K,p],4),n("NoSpaceAfterSemicolonInFor",26,P,[l("insertSpaceAfterSemicolonInForStatements"),K,p],16),n("SpaceBeforeBinaryOperator",P,_e,[c("insertSpaceBeforeAndAfterBinaryOperators"),K,g],4),n("SpaceAfterBinaryOperator",_e,P,[c("insertSpaceBeforeAndAfterBinaryOperators"),K,g],4),n("NoSpaceBeforeBinaryOperator",P,_e,[l("insertSpaceBeforeAndAfterBinaryOperators"),K,g],16),n("NoSpaceAfterBinaryOperator",_e,P,[l("insertSpaceBeforeAndAfterBinaryOperators"),K,g],16),n("SpaceBeforeOpenParenInFuncDecl",P,20,[c("insertSpaceBeforeFunctionParenthesis"),K,k],4),n("NoSpaceBeforeOpenParenInFuncDecl",P,20,[l("insertSpaceBeforeFunctionParenthesis"),K,k],16),n("NewLineBeforeOpenBraceInControl",ye,18,[c("placeOpenBraceOnNewLineForControlBlocks"),I,D],8,1),n("NewLineBeforeOpenBraceInFunction",ge,18,[c("placeOpenBraceOnNewLineForFunctions"),k,D],8,1),n("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",me,18,[c("placeOpenBraceOnNewLineForFunctions"),F,D],8,1),n("SpaceAfterTypeAssertion",31,P,[c("insertSpaceAfterTypeAssertion"),K,ie],4),n("NoSpaceAfterTypeAssertion",31,P,[l("insertSpaceAfterTypeAssertion"),K,ie],16),n("SpaceBeforeTypeAnnotation",P,[57,58],[c("insertSpaceBeforeTypeAnnotation"),K,h],4),n("NoSpaceBeforeTypeAnnotation",P,[57,58],[l("insertSpaceBeforeTypeAnnotation"),K,h],16),n("NoOptionalSemicolon",26,re,[s("semicolons",e.SemicolonPreference.Remove),ue],32),n("OptionalSemicolon",P,re,[s("semicolons",e.SemicolonPreference.Insert),le],64)],be=[n("NoSpaceBeforeSemicolon",P,26,[K],16),n("SpaceBeforeOpenBraceInControl",ye,18,[d("placeOpenBraceOnNewLineForControlBlocks"),I,$,b],4,1),n("SpaceBeforeOpenBraceInFunction",ge,18,[d("placeOpenBraceOnNewLineForFunctions"),k,E,$,b],4,1),n("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",me,18,[d("placeOpenBraceOnNewLineForFunctions"),F,$,b],4,1),n("NoSpaceBeforeComma",P,27,[K],16),n("NoSpaceBeforeOpenBracket",C(129,81),22,[K],16),n("NoSpaceAfterCloseBracket",23,P,[K,G],16),n("SpaceAfterSemicolon",26,P,[K],4),n("SpaceBetweenForAndAwaitKeyword",96,130,[K],4),n("SpaceBetweenStatements",[21,89,90,81],P,[K,U,f],4),n("SpaceAfterTryCatchFinally",[110,82,95],18,[K],4)];return r(he,ve,be)}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r;function n(){var n,o;return void 0===r&&(n=t.getAllRules(),o=function(e){for(var t=new Array(s*s),r=new Array(t.length),n=0,i=e;n<i.length;n++)for(var o=i[n],u=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,l=0,d=o.leftTokenRange.tokens;l<d.length;l++)for(var _=d[l],p=0,f=o.rightTokenRange.tokens;p<f.length;p++){var g=a(_,f[p]),m=t[g];void 0===m&&(m=t[g]=[]),c(m,o.rule,u,r,g)}return t}(n),r=function(t){var r=o[a(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var n=[],s=0,c=0,u=r;c<u.length;c++){var l=u[c],d=~i(s);l.action&d&&e.every(l.context,(function(e){return e(t)}))&&(n.push(l),s|=l.action)}if(n.length)return n}}),r}function i(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function a(t,r){return e.Debug.assert(t<=155&&r<=155,"Must compute formatting context from tokens"),t*s+r}t.getFormatContext=function(e,t){return{options:e,getRules:n(),host:t}};var o,s=156;function c(r,n,i,a,s){var c,u,l,d=3&n.action?i?o.StopRulesSpecific:o.StopRulesAny:n.context!==t.anyContext?i?o.ContextRulesSpecific:o.ContextRulesAny:i?o.NoContextRulesSpecific:o.NoContextRulesAny,_=a[s]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r}(_,d),0,n),a[s]=(l=1+((c=_)>>(u=d)&31),e.Debug.assert((31&l)===l,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<<u)|l<<u)}!function(e){e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"}(o||(o={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 249:case 250:return e.rangeContainsRange(t.members,r);case 253:var n=t.body;return!!n&&254===n.kind&&e.rangeContainsRange(n.statements,r);case 294:case 227:case 254:return e.rangeContainsRange(t.statements,r);case 284:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?d({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function d(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,(function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n}));if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return _(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,h=s.host,v=new t.FormattingContext(l,c,m),b=-1,x=[];if(o.advance(),o.isOnToken()){var D=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=D;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,p,y){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var h=E(i,s,p,y),v=a;e.forEachChild(i,(function(e){S(e,-1,i,h,s,c,!1)}),(function(e){T(e,i,s,h)}));for(;o.isOnToken();){var x=o.readTokenInfo(i);if(x.token.end>i.end)break;11!==i.kind?w(x,i,h,i):o.advance()}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&d&&A(D,l.getLineAndCharacterOfPosition(D.pos).line,i,d,f,_,a,h)}function S(a,s,c,u,d,_,p,f){var y=a.getStart(l),h=l.getLineAndCharacterOfPosition(y).line,x=h;a.decorators&&(x=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var D=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(D=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,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=D),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken();){if((S=o.readTokenInfo(i)).token.end>y){S.token.pos>y&&o.skipToStartOf(a);break}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 T=160===a.kind?h:_,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===r?{indentation:r===g?b:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:b,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,h,D,i,u,T);if(n(a,v,h,x,E.indentation,E.delta),11===a.kind){var C={pos:a.getStart(),end:a.getEnd()};if(C.pos!==C.end){var k=c.getChildren(l),N=k[e.findIndex(k,(function(e){return e.pos===a.pos}))-1];if(N&&l.getLineAndCharacterOfPosition(C.end).line!==l.getLineAndCharacterOfPosition(N.end).line){var A=l.getLineAndCharacterOfPosition(C.pos).line===l.getLineAndCharacterOfPosition(N.end).line;P(C,E.indentation,A,!1,!0)}}}return v=i,f&&196===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 165:case 248:case 205:case 164:case 163:case 206:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 200:case 201:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 172:if(e.typeArguments===t)return 29;break;case 176:return 18}return 0}(n,r),u=s,d=a;if(0!==c)for(;o.isOnToken();){if((h=o.readTokenInfo(n)).token.end>r.pos)break;if(h.token.kind===c){d=l.getLineAndCharacterOfPosition(h.token.pos).line,w(h,n,s,n);var _=void 0;if(-1!==b)_=b;else{var p=e.getLineStartPositionForPosition(h.token.pos,l);_=t.SmartIndenter.findFirstNonWhitespaceColumn(p,h.token.pos,l,m)}u=E(n,a,_,m.indentSize)}else w(h,n,s,n)}for(var f=-1,g=0;g<r.length;g++){f=S(r[g],f,i,u,d,d,!0,0===g)}var y=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(c);if(0!==y&&o.isOnToken()){var h;if(27===(h=o.readTokenInfo(n)).token.kind&&e.isCallLikeExpression(n))d!==l.getLineAndCharacterOfPosition(h.token.pos).line&&(o.advance(),h=o.isOnToken()?o.readTokenInfo(n):void 0);h&&h.token.kind===y&&e.rangeContainsRange(n,h.token)&&w(h,n,u,n,!0)}}function w(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),_=!1;t.leadingTrivia&&k(t.leadingTrivia,n,v,i);var p=0,f=e.rangeContainsRange(r,t.token),m=l.getLineAndCharacterOfPosition(t.token.pos);if(f){var y=u(t.token),h=d;if(p=N(t.token,m,n,v,i),!y)if(0===p){var x=h&&l.getLineAndCharacterOfPosition(h.end).line;_=c&&m.line!==x}else _=1===p}if(t.trailingTrivia&&k(t.trailingTrivia,n,v,i),_){var D=f&&!u(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,D,a);S=C(t.leadingTrivia,T,S,(function(e){return F(e.pos,T,!1)}))}-1!==D&&S&&(F(t.token.pos,D,1===p),g=m.line,b=D)}o.advance(),v=n}}(n,n,D,S,i,a)}if(!o.isOnToken()){var T=o.getCurrentLeadingTrivia();T&&(C(T,i,!1,(function(e){return N(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)})),!1!==m.trimTrailingWhitespace&&function(){var e=d?d.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;w(t,n+1,d)}())}return x;function E(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(a.kind){case 272:case 273:case 271:return!1}break;case 22:case 23:if(189!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 249:return 83;case 250:return 117;case 248:return 97;case 252:return 252;case 166:return 134;case 167:return 145;case 164:if(t.asteriskToken)return 41;case 162:case 159:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(m,n,r,l)&&(i+=e?m.indentSize:-m.indentSize,a=t.SmartIndenter.shouldIndentChildNode(m,r)?m.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(m,r,e,l,!0)?a:0}}function C(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],u=e.rangeContainsRange(r,c);switch(c.kind){case 3:u&&P(c,n,!i),i=!1;break;case 2:i&&u&&a(c),i=!1;break;case 4:i=!0}}return i}function k(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(r,c))N(c,l.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function N(e,t,n,i,a){var o=0;u(e)||(d?o=A(e,t.line,n,d,f,_,i,a):w(l.getLineAndCharacterOfPosition(r.pos).line,t.line));return d=e,_=n,f=t.line,o}function A(t,r,n,i,a,o,s,c){v.updateContext(i,o,t,n,s);var u=y(v),d=!1!==v.options.trimTrailingWhitespace,_=0;return u?e.forEachRight(u,(function(o){switch(_=function(t,r,n,i,a){var o=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return O(r.end,i.pos-r.end),o?2:0;break;case 32:O(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!==a-n)return M(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(h,m)),o?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!==i.pos-r.end||32!==l.text.charCodeAt(r.end))return M(r.end,i.pos-r.end," "),o?2:0;break;case 64:s=r.end,(c=";")&&x.push(e.createTextChangeFromStartLength(s,0,c))}var s,c;return 0}(o,i,a,t,r)){case 2:n.getStart(l)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(l)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===_)}d=d&&!(16&o.action)&&1!==o.flags})):d=d&&1!==t.kind,r!==a&&d&&w(a,r,i),_}function F(t,r,n){var i=p(r,m);if(n)M(t,0,i);else{var a=l.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,l);(r!==function(e,t){for(var r=0,n=0;n<t;n++)9===l.text.charCodeAt(e+n)?r+=m.tabSize-r%m.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==l.text.substr(t,e.length)}(i,o))&&M(o,a.character,i)}}function P(r,n,i,a,o){void 0===a&&(a=!0);var s=l.getLineAndCharacterOfPosition(r.pos).line,c=l.getLineAndCharacterOfPosition(r.end).line;if(s!==c){for(var u=[],d=r.pos,_=s;_<c;_++){var f=e.getEndLinePosition(_,l);u.push({pos:d,end:f}),d=e.getStartPositionOfLine(_+1,l)}if(a&&u.push({pos:d,end:r.end}),0!==u.length){var g=e.getStartPositionOfLine(s,l),y=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(g,u[0].pos,l,m),h=0;i&&(h=1,s++);for(var v=n-y.column,b=h;b<u.length;b++,s++){var x=e.getStartPositionOfLine(s,l),D=0===b?y:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(u[b].pos,u[b].end,l,m);if(o){if(e.isLineBreak(l.text.charCodeAt(e.getStartPositionOfLine(s,l))))continue;v=n-D.column}var S=D.column+v;if(S>0){var T=p(S,m);M(x,D.character,T)}else O(x,D.character)}}}else i||F(r.pos,n,!1)}function w(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,l),o=e.getEndLinePosition(i,l);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=I(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),O(s,o+1-s))}}}function I(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function O(t,r){r&&x.push(e.createTextChangeFromStartLength(t,r,""))}function M(t,r,n){(r||n)&&x.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,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&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(function(n){return e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())}))}},t.getIndentationString=p}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){!function(r){var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,u){for(var l=e.parent;l;){var p=!0;if(r){var f=e.getStart(i);p=f<r.pos||f>r.end}var g=s(l,e,i),y=g.line===t.line||_(l,e,t.line,i);if(p){var h=m(e,i,u,!y);if(-1!==h)return h+n;if(-1!==(h=c(e,l,t,y,i,u)))return h+n}D(u,l,e,i,o)&&!y&&(n+=u.indentSize);var v=d(l,e,t.line,i);l=(e=l).parent,t=v?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))&&(294===r.kind||!i)?h(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function 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(231===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 172:return a(n.typeArguments);case 197:return a(n.properties);case 196:return a(n.elements);case 176:return a(n.members);case 248:case 205:case 206:case 164:case 163:case 168:case 165:case 174:case 169:return a(n.typeParameters)||a(n.parameters);case 249:case 218:case 250:case 251:case 326:return a(n.typeParameters);case 201:case 200:return a(n.typeArguments)||a(n.arguments);case 247:return a(n.declarations);case 261:case 265:return a(n.elements);case 193:case 194:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,a,i),t,r)?a:void 0}}function g(e,t,r){return e?h(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function m(e,t,r,n){if(e.parent&&247===e.parent.kind)return-1;var i=p(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=y(i,a,t,r);if(-1!==o)return o}return g(i,t,r)+(n?r.indentSize:0)}return-1}function y(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=l(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,n,i);a=l(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return v(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 230:case 249:case 218:case 250:case 252:case 251:case 196:case 227:case 254:case 197:case 176:case 189:case 178:case 255:case 282:case 281:case 204:case 198:case 200:case 201:case 229:case 263:case 239:case 214:case 194:case 193:case 272:case 275:case 271:case 280:case 163:case 168:case 169:case 159:case 173:case 174:case 185:case 202:case 210:case 265:case 261:case 267:case 262:case 162:return!0;case 246:case 285:case 213:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&197===o)return function(t,r){var n=e.skipTrivia(t.text,r.pos),i=t.getLineAndCharacterOfPosition(n).line,a=t.getLineAndCharacterOfPosition(r.end).line;return i===a}(i,n);if(213!==r.kind)return!0;break;case 232:case 233:case 235:case 236:case 234:case 231:case 248:case 205:case 164:case 206:case 165:case 166:case 167:return 227!==o;case 264:return 265!==o;case 258:return 259!==o||!!n.namedBindings&&261!==n.namedBindings.kind;case 270:return 273!==o;case 274:return 276!==o;case 182:case 181:if(176===o||178===o)return!1}return a}function D(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&function(e,t){switch(e){case 239:case 243:case 237:case 238:return 227!==t.kind;default:return!1}}(r.kind,t))}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),r.getIndentation=function(r,n,i,s){if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),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 b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column,l=c.character;if(0===u)return u;return 42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var _=n.getLineAndCharacterOfPosition(r).line;if(i.indentStyle===e.IndentStyle.Block)return function(t,r,n){var i=r;for(;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&213!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var h=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return h&&!e.rangeContainsRange(h,c)?g(h,n,i)+i.indentSize:function(t,r,n,i,s,c){var d,_=n;for(;_;){if(e.positionBelongsToNode(_,r,t)&&D(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=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D}(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.Include=1]="Include"}(u=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,_={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:g(e,r,n)}}function f(t,r,n){var i=n.leadingTriviaOption;if(i===c.Exclude)return r.getStart(t);if(i===c.StartLine)return e.getLineStartPositionForPosition(r.getStart(t),t);if(i===c.JSDoc){var a=e.getJSDocCommentRanges(r,t.text);if(null==a?void 0:a.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=r.end,a=n.trailingTriviaOption;if(a===u.Exclude||e.isExpression(r)&&a!==u.Include)return i;var o=e.skipTrivia(t.text,i,!0);return o===i||a!==u.Include&&!e.isLineBreak(t.text.charCodeAt(o-1))?i:o}function m(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&197===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,h,v=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n<i.length;n++){var a=i[n];this.changes.push({kind:d.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:d.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll}),this.deleteRange(e,p(e,t,t,r))},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=g(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=void 0===r?e.text.length:f(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=_),this.replaceRange(e,p(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=_),this.replaceRange(e,p(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=_),this.replaceRangeWithNodes(e,p(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,p(e,t,t,_),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=_),this.replaceRangeWithNodes(e,p(e,t,r,i),n,i)},t.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,g(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,g());var u,l,d=e.getLeadingCommentRanges(s,o);if(!d)return o;for(var _=0,p=d;_<p.length;_++){var f=p[_];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){u={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){u={range:f,pinnedOrTripleSlash:!0};continue}if(u){if(u.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length)if(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l<t.getLineAndCharacterOfPosition(f.end).line+2)break;u={range:f,pinnedOrTripleSlash:!1}}u&&(o=u.range.end,g());return o;function g(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}}(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n=!1),this.insertNodeAt(e,f(e,t,{}),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierBefore=function(t,r,n){var i=n.getStart(t);this.insertNodeAt(t,i,e.factory.createToken(r),{suffix:" "})},t.prototype.insertLastModifierBefore=function(t,r,n){if(n.modifiers){var i=n.modifiers.end;this.insertNodeAt(t,i,e.factory.createToken(r),{prefix:" "})}else this.insertModifierBefore(t,r,n)},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=E(t,o),c=e.getTouchingToken(t,s?o:n),u=t.text.slice(a,o),l=(s?"":this.newLineCharacter)+"//"+i+this.newLineCharacter+u;this.insertText(t,c.getStart(t),l)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:g(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),u=t.text.slice(c,i);this.insertNodeAt(t,i,n,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+u})},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:d.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=246===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,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<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),u=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=u;else if(u!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===x(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&157===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),g(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var i=this.getInsertNodeAfterOptionsWorker(r);return n(n({},i),{prefix:r.end===t.end&&e.isStatement(r)?i.prefix?"\n"+i.prefix:"\n":i.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 249:case 253:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 246:case 10:case 78:return{prefix:", "};case 285:return{suffix:","+this.newLineCharacter};case 92:return{prefix:" "};case 159:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),206===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(97),e.factory.createIdentifier(n)],{joiner:" "}),C(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.factory.createToken(21))),227!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(104)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,205===r.kind?97:83,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&m(r,s)){var c=e.getLineAndCharacterOfPosition(t,l(t.text,i[a+1].getFullStart())),u=e.getLineAndCharacterOfPosition(t,s.end),d=void 0,_=void 0;u.line===c.line?(_=s.end,d=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(c.character-u.character)):_=e.getStartPositionOfLine(c.line,t);var p=""+e.tokenToString(s.kind)+t.text.substring(s.end,i[a+1].getStart(t));this.replaceRange(t,e.createRange(_,i[a+1].getStart(t)),n,{prefix:d,suffix:p})}}else{var f=r.getStart(t),g=e.getLineStartPositionForPosition(f,t),y=void 0,h=!1;if(1===i.length)y=27;else{var v=e.findPrecedingToken(r.pos,t);y=m(r,v)?v.kind:27,h=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==g}if(function(t,r){for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1}(t.text,r.end)&&(h=!0),h){this.replaceRange(t,e.createRange(o),e.factory.createToken(y));for(var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,f,t,this.formatContext.options),x=e.skipTrivia(t.text,o,!0,!1);x!==o&&e.isLineBreak(t.text.charCodeAt(x-1));)x--;this.replaceRange(t,e.createRange(x),n,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:e.tokenToString(y)+" "})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((function(r){var n=r.node,i=r.sourceFile,a=function(t,r){var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]}(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===x(n).length,u=e.positionsAreOnSameLine(o,s,i);c&&u&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),u&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=function(t,n){i.deletedNodes.some((function(r){return r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)}))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(n)):h.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((function(n){var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(function(e){return!r.has(e)}),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:b(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=y.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(y.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function b(t,r){return e.skipTrivia(t.text,f(t,r,{leadingTriviaOption:c.IncludeAll}),!1,!0)}function x(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function D(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function S(t){var r=e.visitEachChild(t,S,e.nullTransformationContext,T,S),n=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(n,i(t),o(t)),n}function T(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 C(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:b(n,i),end:o===a.length-1?g(n,i,{}):b(n,a[o+1])})):C(t,n,i)}t.ChangeTracker=v,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 D(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 h(e){n.writeLine(e)}function v(){n.increaseIndent()}function b(){n.decreaseIndent()}function x(){return n.getText()}function D(e){n.rawWrite(e),i(e,!1)}function S(e){n.writeLiteral(e),i(e,!0)}function T(){return n.getTextPos()}function E(){return n.getLine()}function C(){return n.getColumn()}function k(){return n.getIndent()}function N(){return n.isAtStartOfLine()}function A(){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:h,increaseIndent:v,decreaseIndent:b,getText:x,rawWrite:D,writeLiteral:S,getTextPos:T,getLine:E,getColumn:C,getIndent:k,isAtStartOfLine:N,hasTrailingComment:function(){return n.hasTrailingComment()},hasTrailingWhitespace:function(){return n.hasTrailingWhitespace()},clear:A}}(n),o="\n"===n?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!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;l<c.length-1;l++)u(l);var _=e.mapDefined(c,(function(t){var c=e.createTextSpanFromRange(t.range),u=function(t,r,a,o,s){if(t.kind===d.Remove)return"";if(t.kind===d.Text)return t.text;var c=t.options,u=void 0===c?{}:c,l=t.range.pos,_=function(t){return function(t,r,a,o,s,c,u){var l=o.indentation,d=o.prefix,_=o.delta,p=i(t,r,s),f=p.node,g=p.text;u&&u(f,g);var m=function(t,r){var i=t.options,a=!i.semicolons||i.semicolons===e.SemicolonPreference.Ignore,o=i.semicolons===e.SemicolonPreference.Remove||a&&!e.probablyUsesSemicolons(r);return n(n({},i),{semicolons:o?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}(c,r),y=void 0!==l?l:e.formatting.SmartIndenter.getIndentation(a,r,m,d===s||e.getLineStartPositionForPosition(a,r)===a);void 0===_&&(_=e.formatting.SmartIndenter.shouldIndentChildNode(m,t)&&m.indentSize||0);var h={text:g,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},v=e.formatting.formatNodeGivenIndentation(f,h,r.languageVariant,y,_,n(n({},c),{options:m}));return D(g,v)}(t,r,l,u,a,o,s)},p=t.kind===d.ReplaceWithMultipleNodes?t.nodes.map((function(t){return e.removeSuffix(_(t),a)})).join(t.options.joiner||a):_(t.node),f=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(l,r)===l?p:p.replace(/^\s+/,"");return(u.prefix||"")+f+(!u.suffix||e.endsWith(f,u.suffix)?"":u.suffix)}(t,s,r,a,o);if(c.length!==u.length||!e.stringContainsAt(s.text,u,c.start))return e.createTextChange(c,u)}));return _.length>0?{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=D,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{C(t,r,e.getAncestor(n,258))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 159: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 258:case 257:C(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 195:var s=a.parent;194===s.kind&&a!==e.last(s.elements)?C(t,i,a):k(t,n,i,a);break;case 246:!function(t,r,n,i){var a=i.parent;if(284===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 236:case 235:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 234:C(t,n,a);break;case 229:C(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 158:k(t,n,i,a);break;case 262:var l=a.parent;1===l.elements.length?r(t,i,l):k(t,n,i,a);break;case 260:r(t,i,a);break;case 26:C(t,i,a,{trailingTriviaOption:u.Exclude});break;case 97:C(t,i,a,{leadingTriviaOption:c.Exclude});break;case 249:case 248:C(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 C(t,r,n.name)}else C(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?k(t,n,i,a):C(t,i,a)}}}(h||(h={})),t.deleteNode=C}(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);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function d(t){var n=t.program,i=t.sourceFile,a=t.cancellationToken;return r(n.getSemanticDiagnostics(i,a),n.getSyntacticDiagnostics(i,a),e.computeSuggestionDiagnostics(i,n,a))}t.createCodeFixActionWithoutFixAll=function(e,t,r){return c(e,o(r),t,void 0,void 0)},t.createCodeFixAction=function(e,t,r,n,i,a){return c(e,o(r),t,n,o(i),a)},t.registerCodeFix=function(t){for(var r=0,n=t.errorCodes;r<n.length;r++){var o=n[r];i.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var u=c[s];e.Debug.assert(!a.has(u)),a.set(u,t)}},t.getSupportedErrorCodes=function(){return e.arrayFrom(i.keys())},t.getFixes=function(t){var r=d(t),a=i.get(String(t.errorCode));return e.flatMap(a,(function(i){return e.map(i.getCodeActions(t),function(t,r){for(var i=t.errorCodes,a=0,o=0,c=r;o<c.length;o++){var u=c[o];if(e.contains(i,u.code)&&a++,a>1)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(151)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(151),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)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,u=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),l=a(r,u&&u.relatedInformation&&e.find(u.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(l){return[i(t,l,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),u=a(o,c);if(u){return i(r,u,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(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];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}(t,a);if(!s)return;for(var c,u=s.isCompleteFix,d=function(t){var s=a.getSymbolAtLocation(t);if(!s)return"continue";var d=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),_=d&&e.tryCast(d.name,e.isIdentifier),p=e.getAncestor(d,229);if(!d||!p||d.type||!d.initializer||p.getSourceFile()!==r||e.hasSyntacticModifier(p,1)||!_||!l(d.initializer))return u=!1,"continue";var f=i.getSemanticDiagnostics(r,n);if(e.FindAllReferences.Core.eachSymbolReferenceInFile(_,a,r,(function(n){return t!==n&&!function(t,r,n,i){var a=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(function(e){return e.start===a.getStart(n)&&e.start+e.length===a.getEnd()}));return s&&e.contains(o,s.code)||1&i.getTypeAtLocation(a).flags}(n,f,r,a)})))return u=!1,"continue";(c||(c=[])).push({expression:d.initializer,declarationSymbol:s})},_=0,p=s.identifiers;_<p.length;_++){d(p[_])}return c&&{initializers:c,needsSecondPassForFixAll:!u}}(n,u,p,_,a);if(f){var g=s((function(t){e.forEach(f.initializers,(function(e){var r=e.expression;return d(t,i,u,a,r,c)})),c&&f.needsSecondPassForFixAll&&d(t,i,u,a,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",g,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(r,i,a,o,s,c){var u=s((function(e){return d(e,a,r.sourceFile,o,i,c)}));return t.createCodeFixAction(n,u,e.Diagnostics.Add_await,n,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function u(t,r,n,i,a){var o=e.getTokenAtPosition(t,n.start),s=e.findAncestor(o,(function(r){return r.getStart(t)<n.start||r.getEnd()>e.textSpanEnd(n)?"quit":e.isExpression(r)&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))}));return s&&function(t,r,n,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&l(s)?s:void 0}function l(t){return 32768&t.kind||!!e.findAncestor(t,(function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(248===t.parent.kind||205===t.parent.kind||206===t.parent.kind||164===t.parent.kind)}))}function d(t,r,n,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u<l.length;u++){var d=l[u];if(c&&e.isIdentifier(d))if((g=o.getSymbolAtLocation(d))&&c.has(e.getSymbolId(g)))continue;var p=o.getTypeAtLocation(d),f=o.getPromisedTypeOfPromise(p)?e.factory.createAwaitExpression(d):d;t.replaceNode(n,d,f)}else if(r===i&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression))if((g=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(g)))return;t.replaceNode(n,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),_(t,s.parent.expression,n)}else if(e.contains(a,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s))if((g=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(g)))return;t.replaceNode(n,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),_(t,s,n)}else{var g;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name))if((g=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(g)))return;t.replaceNode(n,s,e.factory.createAwaitExpression(s))}}function _(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[n],errorCodes:o,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,i=u(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),o=function(r){return e.textChanges.ChangeTracker.with(t,r)};return e.compact([s(t,i,n,a,o),c(t,i,n,a,o)])}},getAllCodeActions:function(r){var n=r.sourceFile,i=r.program,a=r.cancellationToken,l=r.program.getTypeChecker(),d=new e.Set;return t.codeFixAll(r,o,(function(e,t){var o=u(n,t.code,t,a,i);if(o){var _=function(t){return t(e),[]};return s(r,o,t.code,l,_,d)||c(r,o,t.code,l,_,d)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingConst",n=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function i(t,r,n,i,o){var s=e.getTokenAtPosition(r,n),c=e.findAncestor(s,(function(t){return e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!function(e){switch(e.kind){case 78:case 196:case 197:case 285:case 286:return!0;default:return!1}}(t)&&"quit"}));if(c)return a(t,c,r,o);var u=s.parent;if(e.isBinaryExpression(u)&&62===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(t,s,r,o);if(e.isArrayLiteralExpression(u)){var l=i.getTypeChecker();if(!e.every(u.elements,(function(t){return function(t,r){var n=e.isIdentifier(t)?t:e.isAssignmentExpression(t,!0)&&e.isIdentifier(t.left)?t.left:void 0;return!!n&&!r.getSymbolAtLocation(n)}(t,l)})))return;return a(t,u,r,o)}var d=e.findAncestor(s,(function(t){return!!e.isExpressionStatement(t.parent)||!function(e){switch(e.kind){case 78:case 213:case 27:return!0;default:return!1}}(t)&&"quit"}));if(d){if(!function t(r,n){if(!e.isBinaryExpression(r))return!1;if(27===r.operatorToken.kind)return e.every([r.left,r.right],(function(e){return t(e,n)}));return 62===r.operatorToken.kind&&e.isIdentifier(r.left)&&!n.getSymbolAtLocation(r.left)}(d,i.getTypeChecker()))return;return a(t,d,r,o)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,84,r)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(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;162!==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)||246===t.kind||161===t.kind||162===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((function(t){return!!e.getJSDocType(t)})))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var u=s[o];if(!u.type){var l=e.getJSDocType(u);l&&t.tryInsertTypeAnnotation(r,u,c(l))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var d=e.getJSDocReturnType(n);d&&t.tryInsertTypeAnnotation(r,n,c(d))}}else{var _=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(_))}}function c(t){switch(t.kind){case 299:case 300:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 303:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 302:return c(t.type);case 301:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)])}(t);case 305:return function(t){return e.factory.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 304:return function(t){var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(128))}(t);case 172:return function(t){var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var r=e.factory.createParameterDeclaration(void 0,void 0,void 0,143===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(143===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n}(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function u(t){var r=t.parent.parameters.indexOf(t),n=305===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return s(e,n.sourceFile,a)}));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&s(e,t.file,r)}))}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i){var s=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(s&&19&s.flags){var c=s.valueDeclaration;if(e.isFunctionDeclaration(c))t.replaceNode(r,c,function(t){var r=d(s);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var n=a(t,92);return e.factory.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(c));else if(e.isVariableDeclaration(c)){var u=function(t){var r=t.initializer;if(!r||!e.isFunctionExpression(r)||!e.isIdentifier(t.name))return;var n=d(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,void 0,r.parameters,r.body));var i=a(t.parent.parent,92);return e.factory.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}(c);if(!u)return;var l=c.parent.parent;e.isVariableDeclarationList(c.parent)&&c.parent.declarations.length>1?(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&&230===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=227===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),y=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),h=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=m(r.getTypeAtLocation(s),r),_=e.getSymbolId(c).toString();if(!d||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 y=e.getSynthesizedDeepClone(s);n.set(_,x(y)),o.add(p,c)}}}else{var h=e.firstOrUndefined(d.parameters),v=h&&e.isParameter(h.valueDeclaration)&&e.tryCast(h.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),b=l(v,o);n.set(_,b),o.add(v.text,c)}}}else e.forEachChild(s,t)})),e.getSynthesizedDeepCloneWithRenames(t,!0,a,r)}(o,i,f,a.sourceFile),v=h.body&&e.isBlock(h.body)?(d=h.body,p=[],e.forEachReturnStatement(d,(function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&p.push(t)})),p):e.emptyArray,b={checker:i,synthNamesMap:f,setOfExpressionsToReturn:y,isInJSFile:g};if(v.length){t.insertLastModifierBefore(r,129,o);for(var D=function(n){e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=_(a,b);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},S=0,T=v;S<T.length;S++){D(T[S])}}}}function c(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function u(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function l(t,r){var n=(r.get(t.text)||e.emptyArray).length;return x(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function d(){return o=!1,e.emptyArray}function _(t,r,n){if(c(t,r.checker,"then"))return 0===t.arguments.length?d():function(t,r,n){var i=t.arguments,a=i[0],o=i[1],s=h(a,r),c=g(a,n,s,t,r);if(o){var u=h(o,r),l=e.factory.createBlock(_(t.expression,r,s).concat(c)),d=g(o,n,u,t,r),p=u?D(u)?u.identifier.text:u.bindingPattern:"e",f=e.factory.createVariableDeclaration(p),m=e.factory.createCatchClause(f,e.factory.createBlock(d));return[e.factory.createTryStatement(l,m,void 0)]}return _(t.expression,r,s).concat(c)}(t,r,n);if(c(t,r.checker,"catch"))return 0===t.arguments.length?d():function(t,r,n){var i,a=t.arguments[0],o=h(a,r);n&&!S(t,r)&&(D(n)?(i=n,r.synthNamesMap.forEach((function(t,i){if(t.identifier.text===n.identifier.text){var a=function(t){return x(e.factory.createUniqueName(t.identifier.text,16))}(n);r.synthNamesMap.set(i,a)}}))):i=x(e.factory.createUniqueName("result",16),n.types),i.hasBeenDeclared=!0);var s,c,u=e.factory.createBlock(_(t.expression,r,i)),l=g(a,i,o,t,r),d=o?D(o)?o.identifier.text:o.bindingPattern:"e",p=e.factory.createVariableDeclaration(d),f=e.factory.createCatchClause(p,e.factory.createBlock(l));if(i&&!S(t,r)){c=e.getSynthesizedDeepClone(i.identifier);var m=i.types,y=r.checker.getUnionType(m,2),v=r.isInJSFile?void 0:r.checker.typeToTypeNode(y,void 0,void 0),b=[e.factory.createVariableDeclaration(c,void 0,v)];s=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(b,1))}var T=e.factory.createTryStatement(u,f,void 0),E=n&&c&&(C=n,1===C.kind)&&e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepCloneWithRenames(n.bindingPattern),void 0,void 0,c)],2));var C;return e.compact([s,T,E])}(t,r,n);if(e.isPropertyAccessExpression(t))return _(t.expression,r,n);var i=r.checker.getTypeAtLocation(t);return i&&r.checker.getPromisedTypeOfPromise(i)?(e.Debug.assertNode(t.original.parent,e.isPropertyAccessExpression),function(t,r,n){if(S(t,r))return[e.factory.createReturnStatement(e.getSynthesizedDeepClone(t))];return p(n,e.factory.createAwaitExpression(t),void 0)}(t,r,n)):d()}function p(t,r,n){return!t||v(t)?[e.factory.createExpressionStatement(r)]:D(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(b(t)),void 0,n,r)],2))]}function f(t,n){if(n&&t){var i=e.factory.createUniqueName("result",16);return r(p(x(i),t,n),[e.factory.createReturnStatement(i)])}return[e.factory.createReturnStatement(t)]}function g(t,r,n,i,a){var o,s,c,l;switch(t.kind){case 103:break;case 78:if(!n)break;var _=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,D(n)?[n.identifier]:[]);if(S(i,a))return f(_,null===(o=i.typeArguments)||void 0===o?void 0:o[0]);var g=a.checker.getTypeAtLocation(t),h=a.checker.getSignaturesOfType(g,0);if(!h.length)return d();var v=h[0].getReturnType(),x=p(r,e.factory.createAwaitExpression(_),null===(s=i.typeArguments)||void 0===s?void 0:s[0]);return r&&r.types.push(v),x;case 205:case 206:var T=t.body;if(e.isBlock(T)){for(var E=[],C=!1,k=0,N=T.statements;k<N.length;k++){var A=N[k];e.isReturnStatement(A)?(C=!0,e.isReturnStatementWithFixablePromiseHandler(A)?E=E.concat(y(a,[A],r)):E.push.apply(E,f(A.expression,null===(c=i.typeArguments)||void 0===c?void 0:c[0]))):E.push(A)}return S(i,a)?E.map((function(t){return e.getSynthesizedDeepClone(t)})):function(t,r,n,i){for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=u(c.expression,n.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===r?a.push(e.factory.createExpressionStatement(l)):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(b(r),void 0,void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(b(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2)));return a}(E,r,a,C)}var F=y(a,e.isFixablePromiseHandler(T)?[e.factory.createReturnStatement(T)]:e.emptyArray,r);if(F.length>0)return F;var P=m(a.checker.getTypeAtLocation(t),a.checker).getReturnType(),w=e.getSynthesizedDeepClone(T),I=a.checker.getPromisedTypeOfPromise(P)?e.factory.createAwaitExpression(w):w;if(S(i,a))return f(I,null===(l=i.typeArguments)||void 0===l?void 0:l[0]);var O=p(r,I,void 0);return r&&r.types.push(P),O;default:return d()}return e.emptyArray}function m(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function y(t,r,n){for(var i=[],a=0,o=r;a<o.length;a++){var s=o[a];e.forEachChild(s,(function r(a){if(e.isCallExpression(a)){var o=_(a,t,n);if((i=i.concat(o)).length>0)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())||x(t,i)}}function v(t){return!t||(D(t)?!t.identifier.text:e.every(t.elements,v))}function b(e){return D(e)?e.identifier:e.bindingPattern}function x(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function D(e){return 0===e.kind}function S(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes: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;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text);if(c&&c.resolvedFileName===r.fileName){var u=e.importFromModuleSpecifier(s);switch(u.kind){case 257:n.replaceNode(t,u,e.makeImport(u.name,void 0,s,i));break;case 200:e.isRequireCall(u,!1)&&n.replaceNode(t,u,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(u),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&62===a.operatorToken.kind)}i.forEachChild(n)}))}function i(r,n,i,c,f,g,m,y){switch(n.kind){case 229:return function(r,n,i,a,o,c,u){var p=n.declarationList,f=!1,g=e.flatMap(p.declarations,(function(n){var g=n.name,m=n.initializer;if(m){if(e.isExportsOrModuleExportsOrAlias(r,m))return f=!0,[];if(e.isRequireCall(m,!0))return f=!0,function(r,n,i,a,o,c,u,l){switch(n.kind){case 193:var p=e.mapAllOrFail(n.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:d(t.propertyName&&t.propertyName.text,t.name.text)}));if(p)return[e.makeImport(void 0,p,i,l)];case 194:var f=s(t.moduleSpecifierToValidIdentifier(i.text,u),c);return[e.makeImport(e.factory.createIdentifier(f),void 0,i,l),_(void 0,e.getSynthesizedDeepClone(n),e.factory.createIdentifier(f))];case 78:return function(t,r,n,i,a,o,c){for(var u=a.getSymbolAtLocation(r),l=new e.Map,d=!1,_=0,p=o.original.get(r.text);_<p.length;_++){var f=p[_];if(a.getSymbolAtLocation(f)===u&&f!==r){var g=f.parent;if(e.isPropertyAccessExpression(g)){var m=g.expression,y=g.name.text;e.Debug.assert(m===f,"Didn't expect expression === use");var h=l.get(y);void 0===h&&(h=s(y,o),l.set(y,h)),i.replaceNode(t,g,e.factory.createIdentifier(h))}else d=!0}}var v=0===l.size?void 0:e.arrayFrom(e.mapIterator(l.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));v||(d=!0);return[e.makeImport(d?e.getSynthesizedDeepClone(r):void 0,v,n,c)]}(r,n,i,a,o,c,l);default:return e.Debug.assertNever(n,"Convert to ES6 module got invalid name kind "+n.kind)}}(r,g,m.arguments[0],i,a,o,c,u);if(e.isPropertyAccessExpression(m)&&e.isRequireCall(m.expression,!0))return f=!0,function(t,r,n,i,a){switch(t.kind){case 193:case 194:var o=s(r,i);return[l(o,r,n,a),_(void 0,t,e.factory.createIdentifier(o))];case 78:return[l(t.text,r,n,a)];default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid syntax form "+t.kind)}}(g,m.name.text,m.expression.arguments[0],o,u)}return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],p.flags))}));f&&i.replaceNodeWithNodes(r,n,g)}(r,n,c,i,f,g,y),!1;case 230:var h=n.expression;switch(h.kind){case 200:return e.isRequireCall(h,!0)&&c.replaceNode(r,n,e.makeImport(void 0,void 0,h.arguments[0],y)),!1;case 213:return 62===h.operatorToken.kind&&function(t,r,n,i,s){var c=n.left,l=n.right;if(!e.isPropertyAccessExpression(c))return!1;if(e.isExportsOrModuleExportsOrAlias(t,c)){if(!e.isExportsOrModuleExportsOrAlias(t,l)){var d=e.isObjectLiteralExpression(l)?(f=l,(g=e.mapAllOrFail(f.properties,(function(t){switch(t.kind){case 166:case 167:case 286:case 287:return;case 285:return e.isIdentifier(t.name)?function(t,r){var n=[e.factory.createToken(92)];switch(r.kind){case 205:var i=r.name;if(i&&i.text!==t)return a();case 206:return u(t,n,r);case 218:return function(t,r,n){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),e.getSynthesizedDeepClones(n.members))}(t,n,r);default:return a()}function a(){return _(n,e.factory.createIdentifier(t),r)}}(t.name.text,t.initializer):void 0;case 164:return e.isIdentifier(t.name)?u(t.name.text,[e.factory.createToken(92)],t):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind "+t.kind)}})))&&[g,!1]):e.isRequireCall(l,!0)?function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),s=i?i.exports:e.emptyMap;return s.has("export=")?[[o(n)],!0]:s.has("default")?s.size>1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(l.arguments[0],r):void 0;return d?(i.replaceNodeWithNodes(t,n.parent,d[0]),d[1]):(i.replaceRangeWithText(t,e.createRange(c.getStart(t),l.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,c.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,r.right),p([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,s);var f,g;return!1}(r,i,h,c,m)}default:return!1}}function a(e){return p(void 0,e)}function o(t){return p([e.factory.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.add(e),e}function c(t){var r=e.createMultiMap();return function t(r,n){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 198:return t.name!==e;case 195:case 262:return t.propertyName!==e;default:return!0}}(r)&&n(r);r.forEachChild((function(e){return t(e,n)}))}(t,(function(e){return r.add(e.text,e)})),r}function u(t,r,n){return e.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(e.getSynthesizedDeepClone(n.body)))}function l(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[d(r,t)],n,i)}function d(t,r){return e.factory.createImportSpecifier(void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function _(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function p(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))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,u=a.program,l=a.preferences,d=e.textChanges.ChangeTracker.with(a,(function(t){if(function(t,r,a,o,u){var l={original:c(t),additional:new e.Set},d=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(o,t,111551,!0))&&a.set(o,s("_"+o,i))})),a}(t,r,l);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,d,a);for(var _=!1,p=0,f=t.statements;p<f.length;p++){var g=i(t,f[p],r,a,l,o,d,u);_=_||g}return _}(o,u.getTypeChecker(),t,u.getCompilerOptions().target,e.getQuotePreference(o,l)))for(var a=0,d=u.getSourceFiles();a<d.length;a++){var _=d[a];r(_,o,t,e.getQuotePreference(_,l))}}));return[t.createCodeFixActionWithoutFixAll("convertToEs6Module",d,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,n.sourceFile,o)})),c=o.left.text+'["'+o.right.text+'"]';return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=function(t,n){var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(function(n){var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))}(n,i);if(s.length===a.elements.length)t.replaceNode(i.sourceFile,o,e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!0,a,o.moduleSpecifier));else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(function(t){return!e.contains(s,t)}))),o.moduleSpecifier),u=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier);t.replaceNode(i.sourceFile,o,c),t.insertNodeAfter(i.sourceFile,o,u)}}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r,n.sourceFile);s&&!e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_the_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier)))}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(r,e.sourceFile),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var u=r.program.getTypeChecker(),l=function(t,r){var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))}(o,u),d=u.getTypeAtLocation(n),_=u.getPropertiesOfType(d).filter(e.and(a,(function(e){return!l.has(e.escapedName)}))),p=u.getTypeAtLocation(o),f=e.find(o.members,(function(t){return e.isConstructorDeclaration(t)}));p.getNumberIndexType()||m(d,1),p.getStringIndexType()||m(d,0);var g=t.createImportAdder(i,r.program,c,r.host);function m(e,n){var a=u.getIndexInfoOfType(e,n);a&&y(i,o,u.indexInfoToIndexSignatureDeclaration(a,n,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function y(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertNodeAtClassStart(e,t,r)}t.createMissingMemberNodes(o,_,i,r,c,g,(function(e){return y(i,o,e)})),g.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(function(i){var s=e.textChanges.ChangeTracker.with(r,(function(e){return o(r,i,a,c,e,r.preferences)}));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions:function(n){var a=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,u=e.getEffectiveImplementsTypeNodes(s);c<u.length;c++){var l=u[c];o(n,l,r.file,s,t,n.preferences)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){t.importFixName="import";var i,a,o=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function c(t,r,n,i,a){var o=r.getCompilerOptions(),c=[],l=[],_=new e.Map,p=new e.Map;return{addImportFromDiagnostic:function(e,t){var r=m(t,e.code,e.start,n);if(!r||!r.fixes.length)return;g(r)},addImportFromExportedSymbol:function(s,c){var l=e.Debug.checkDefined(s.parent),_=e.getNameForExportedSymbol(s,e.getEmitScriptTarget(o)),p=r.getTypeChecker(),m=p.getMergedSymbol(e.skipAlias(s,p)),y=d(t,m,l,_,a,r,n),h=!!c&&2===o.importsNotUsedAsValues,v=f(t,o);g({fixes:[u(t,y,l,_,r,void 0,h,v,a,i)],symbolName:_})},writeFixes:function(r){for(var n,a=e.getQuotePreference(t,i),o=0,u=c;o<u.length;o++){var d=u[o];D(r,t,d)}for(var f=0,g=l;f<g.length;f++){d=g[f];S(r,t,d,a)}_.forEach((function(e){var n=e.importClauseOrBindingPattern,i=e.defaultImport,a=e.namedImports,o=e.canUseTypeOnlyImport;x(r,t,n,i,a,o)})),p.forEach((function(t,r){var i=t.useRequire,o=s(t,["useRequire"]),c=i?C:E;n=e.combine(n,c(r,a,o))})),n&&e.insertImports(r,t,n,!0)}};function g(t){var r=t.fixes,n=t.symbolName,i=e.first(r);switch(i.kind){case 0:c.push(i);break;case 1:l.push(i);break;case 2:var a=i.importClauseOrBindingPattern,o=i.importKind,s=i.canUseTypeOnlyImport,u=String(e.getNodeId(a));(d=_.get(u))||_.set(u,d={importClauseOrBindingPattern:a,defaultImport:void 0,namedImports:[],canUseTypeOnlyImport:s}),0===o?e.pushIfUnique(d.namedImports,n):(e.Debug.assert(void 0===d.defaultImport||d.defaultImport===n,"(Add to Existing) Default import should be missing or match symbolName"),d.defaultImport=n);break;case 3:var d,f=i.moduleSpecifier,g=(o=i.importKind,i.useRequire),m=i.typeOnly;switch((d=p.get(f))?d.typeOnly=d.typeOnly&&m:p.set(f,d={namedImports:[],namespaceLikeImport:void 0,typeOnly:m,useRequire:g}),o){case 1:e.Debug.assert(void 0===d.defaultImport||d.defaultImport===n,"(Add new) Default import should be missing or match symbolName"),d.defaultImport=n;break;case 0:e.pushIfUnique(d.namedImports||(d.namedImports=[]),n);break;case 3:case 2:e.Debug.assert(void 0===d.namespaceLikeImport||d.namespaceLikeImport.name===n,"Namespacelike import shoudl be missing or match symbolName"),d.namespaceLikeImport={importKind:o,name:n}}break;default:e.Debug.assertNever(i,"fix wasn't never - got kind "+i.kind)}}}function u(t,r,n,i,a,o,s,c,u,l){return e.Debug.assert(r.some((function(e){return e.moduleSymbol===n})),"Some exportInfo should match the specified moduleSymbol"),e.first(p(r,i,o,s,c,a,t,u,l))}function l(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i,a,o,s){var c=[],u=o.getCompilerOptions();return A(o,a,t,!1,s,(function(a,o,s){var l=s.getTypeChecker();if(!o||a===n||!e.startsWith(t.fileName,e.getDirectoryPath(o.fileName))){var d=h(t,a,l,u);d&&d.name===i&&e.skipAlias(d.symbol,l)===r&&c.push({moduleSymbol:a,importKind:d.kind,exportedSymbolIsTypeOnly:_(d.symbol,l)});for(var p=0,f=l.getExportsAndPropertiesOfModule(a);p<f.length;p++){var g=f[p];g.name===i&&e.skipAlias(g,l)===r&&c.push({moduleSymbol:a,importKind:0,exportedSymbolIsTypeOnly:_(g,l)})}}})),c}function _(t,r){return!(111551&e.skipAlias(t,r).flags)}function p(t,n,i,a,o,s,c,u,l){var d=s.getTypeChecker(),_=e.flatMap(t,(function(t){return function(t,r,n){var i=t.moduleSymbol,a=t.importKind;return t.exportedSymbolIsTypeOnly&&e.isSourceFileJS(n)?e.emptyArray:e.mapDefined(n.imports,(function(t){var n=e.importFromModuleSpecifier(t);return e.isRequireVariableDeclaration(n.parent,!0)?r.resolveExternalModuleName(t)===i?{declaration:n.parent,importKind:a}:void 0:(258===n.kind||257===n.kind)&&r.getSymbolAtLocation(t)===i?{declaration:n,importKind:a}:void 0}))}(t,d,c)})),p=void 0===i?void 0:function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=function(t){var r,n,i;switch(t.kind){case 246:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 257:return t.name.text;case 258:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(a);if(o){var s=function(t,r){var n;switch(t.kind){case 246:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 257:return r.getAliasedSymbol(t.symbol);case 258:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(a,i);if(s&&s.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:o,position:n}}}))}(_,n,i,d),f=function(t,r){return e.firstDefined(t,(function(e){var t=e.declaration,n=e.importKind;if(257!==t.kind){if(246===t.kind)return 0!==n&&1!==n||193!==t.name.kind?void 0:{kind:2,importClauseOrBindingPattern:t.name,importKind:n,moduleSpecifier:t.initializer.arguments[0].text,canUseTypeOnlyImport:!1};var i=t.importClause;if(i){var a=i.name,o=i.namedBindings;return 1===n&&!a||0===n&&(!o||261===o.kind)?{kind:2,importClauseOrBindingPattern:i,importKind:n,moduleSpecifier:t.moduleSpecifier.getText(),canUseTypeOnlyImport:r}:void 0}}}))}(_,void 0!==i&&function(t,r){return e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(t,r))}(c,i)),m=f?[f]:function(t,r,n,i,a,o,s,c,u){var l=e.firstDefined(r,(function(t){return function(t,r,n){var i=t.declaration,a=t.importKind,o=258===i.kind?i.moduleSpecifier:246===i.kind?i.initializer.arguments[0]:269===i.moduleReference.kind?i.moduleReference.expression:void 0;return o&&e.isStringLiteral(o)?{kind:3,moduleSpecifier:o.text,importKind:a,typeOnly:r,useRequire:n}:void 0}(t,o,s)}));return l?[l]:g(n,i,a,o,s,t,c,u)}(t,_,s,c,i,a,o,u,l);return r(p?[p]:e.emptyArray,m)}function f(t,r){return e.isSourceFileJS(t)&&!t.externalModuleIndicator&&(!!t.commonJsModuleIndicator||e.getEmitModuleKind(r)<e.ModuleKind.ES2015)}function g(t,r,n,i,a,o,s,c){var u=e.isSourceFileJS(r),l=t.getCompilerOptions(),d=I(r,t,s).allowsImportingSpecifier,_=e.flatMap(o,(function(o){var d=o.moduleSymbol,_=o.importKind,p=o.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(d,l,r,e.createModuleSpecifierResolutionHost(t,s),c).map((function(t){return p&&u?{kind:1,moduleSpecifier:t,position:e.Debug.checkDefined(n,"position should be defined")}:{kind:3,moduleSpecifier:t,importKind:_,useRequire:a,typeOnly:i}}))}));return e.sort(_,(function(e,t){var r=d(e.moduleSpecifier),n=d(t.moduleSpecifier);return r&&!n?-1:n&&!r?1:e.moduleSpecifier.length-t.moduleSpecifier.length}))}function m(t,r,i,a){var o=e.getTokenAtPosition(t.sourceFile,i),s=r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(t,r){var n=t.sourceFile,i=t.program,a=t.host,o=t.preferences,s=i.getTypeChecker(),c=function(t,r){var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0}(r,s);if(!c)return;var u=s.getAliasedSymbol(c),l=c.name,d=[{moduleSymbol:u,importKind:y(n,i.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],_=f(n,i.getCompilerOptions());return{fixes:p(d,l,e.isIdentifier(r)?r.getStart(n):void 0,!1,_,i,n,a,o),symbolName:l}}(t,o):e.isIdentifier(o)?function(t,r,n){var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,u=a.getTypeChecker(),l=function(t,r,n){var i=n.parent;if((e.isJsxOpeningLikeElement(i)||e.isJsxClosingElement(i))&&i.tagName===n){var a=r.getJsxNamespace(t);if(e.isIntrinsicJsxName(n.text)||!r.resolveName(a,i,111551,!0))return a}return n.text}(i,u,r);e.Debug.assert("default"!==l,"'default' isn't a legal identifier and couldn't occur here");var d=a.getCompilerOptions(),g=2===d.importsNotUsedAsValues&&e.isValidTypeOnlyAliasUseSite(r),m=f(i,d),y=function(t,r,n,i,a,o,s,c){var u=e.createMultiMap();function l(t,r,n){u.add(e.getUniqueSymbolId(r,a).toString(),{moduleSymbol:t,importKind:n,exportedSymbolIsTypeOnly:_(r,a)})}return A(o,c,i,!0,s,(function(e){n.throwIfCancellationRequested();var s=h(i,e,a,o.getCompilerOptions());s&&s.name===t&&N(s.symbolForMeaning,r)&&l(e,s.symbol,s.kind);var c=a.tryGetMemberInModuleExportsAndProperties(t,e);c&&N(c,r)&&l(e,c,0)})),u}(l,e.getMeaningFromLocation(r),o,i,u,a,n,s);return{fixes:e.arrayFrom(e.flatMapIterator(y.entries(),(function(e){e[0];return p(e[1],l,r.getStart(i),g,m,a,i,s,c)}))),symbolName:l}}(t,o,a):void 0;return s&&n(n({},s),{fixes:e.sort(s.fixes,(function(e,t){return e.kind-t.kind}))})}function y(t,r){if(e.getAllowSyntheticDefaultImports(r))return 1;var n=e.getEmitModuleKind(r);switch(n){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&e.isExternalModule(t)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(n,"Unexpected moduleKind "+n)}}function h(t,r,i,a){var o=function(e,t,r,n){var i=r.tryGetMemberInModuleExports("default",t);if(i)return{symbol:i,kind:1};var a=r.resolveExternalModuleSymbol(t);return a===t?void 0:{symbol:a,kind:v(e,n)}}(t,r,i,a);if(o){var s=o.symbol,c=o.kind,u=function t(r,n,i,a){var o=e.getLocalSymbolForExportDefault(r);if(o)return{symbolForMeaning:o,name:o.name};var s=function(t){return t.declarations&&e.firstDefined(t.declarations,(function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression))return t.expression.text}else if(e.isExportSpecifier(t))return e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text}))}(r);if(void 0!==s)return{symbolForMeaning:r,name:s};if(2097152&r.flags){var c=i.getImmediateAliasedSymbol(r);return c&&t(c,e.Debug.checkDefined(c.parent,"Alias targets of default exports must have a parent"),i,a)}if("default"!==r.escapedName&&"export="!==r.escapedName)return{symbolForMeaning:r,name:r.getName()};return{symbolForMeaning:r,name:P(n,a.target)}}(s,r,i,a);return u&&n({symbol:s,kind:c},u)}}function v(t,r){var n=e.getAllowSyntheticDefaultImports(r);if(e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return n?1:2;if(e.isInJSFile(t))return e.isExternalModule(t)?1:3;for(var i=0,a=t.statements;i<a.length;i++){var o=a[i];if(e.isImportEqualsDeclaration(o))return 3}return n?1:3}function b(r,n,i,a,o){var s,c=e.textChanges.ChangeTracker.with(r,(function(t){s=function(t,r,n,i,a){switch(i.kind){case 0:return D(t,r,i),[e.Diagnostics.Change_0_to_1,n,i.namespacePrefix+"."+n];case 1:return S(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,T(i.moduleSpecifier,a)+n];case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,c=i.canUseTypeOnlyImport,u=i.moduleSpecifier;x(t,r,o,1===s?n:void 0,0===s?[n]:e.emptyArray,c);var l=e.stripQuotes(u);return[1===s?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,n,l];case 3:s=i.importKind,u=i.moduleSpecifier;var d=i.typeOnly,_=i.useRequire?C:E,p=1===s?{defaultImport:n,typeOnly:d}:0===s?{namedImports:[n],typeOnly:d}:{namespaceLikeImport:{importKind:s,name:n},typeOnly:d};return e.insertImports(t,r,_(u,a,p),!0),[1===s?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,n,u];default:return e.Debug.assertNever(i,"Unexpected fix kind "+i.kind)}}(t,n,i,a,o)}));return t.createCodeFixAction(t.importFixName,c,s,"fixMissingImport",e.Diagnostics.Add_all_missing_imports)}function x(t,r,n,i,a,o){if(193!==n.kind){var s=!o&&n.isTypeOnly;if(i&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(i),{suffix:", "})),a.length){var c=n.namedBindings&&e.cast(n.namedBindings,e.isNamedImports).elements,u=e.stableSort(a.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))})),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==c?void 0:c.length)&&e.OrganizeImports.importSpecifiersAreSorted(c))for(var l=0,d=u;l<d.length;l++){var _=d[l],p=e.OrganizeImports.getImportSpecifierInsertionIndex(c,_),f=n.namedBindings.elements[p-1];f?t.insertNodeInListAfter(r,f,_):t.insertNodeBefore(r,c[0],_,!e.positionsAreOnSameLine(c[0].getStart(),n.parent.getStart(),r))}else if(null==c?void 0:c.length)for(var g=0,m=u;g<m.length;g++){_=m[g];t.insertNodeAtEndOfList(r,c,_)}else if(u.length){var y=e.factory.createNamedImports(u);n.namedBindings?t.replaceNode(r,n.namedBindings,y):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),y)}}s&&t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r))}else{i&&b(n,i,"default");for(var h=0,v=a;h<v.length;h++){b(n,v[h],void 0)}}function b(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function D(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function S(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,T(i,n))}function T(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function E(t,r,n){var i,a,o,s=e.makeStringLiteral(t,r);(void 0!==n.defaultImport||(null===(i=n.namedImports)||void 0===i?void 0:i.length))&&(o=e.combine(o,e.makeImport(void 0===n.defaultImport?void 0:e.factory.createIdentifier(n.defaultImport),null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))})),t,r,n.typeOnly)));var c=n.namespaceLikeImport,u=n.typeOnly;if(c){var l=3===c.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,e.factory.createIdentifier(c.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(u,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(c.name))),s);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function C(t,r,n){var i,a,o,s=e.makeStringLiteral(t,r);if(n.defaultImport||(null===(i=n.namedImports)||void 0===i?void 0:i.length)){var c=(null===(a=n.namedImports)||void 0===a?void 0:a.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)})))||[];n.defaultImport&&c.unshift(e.factory.createBindingElement(void 0,"default",n.defaultImport));var u=k(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,u)}if(n.namespaceLikeImport){u=k(n.namespaceLikeImport.name,s);o=e.combine(o,u)}return e.Debug.checkDefined(o)}function k(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function N(t,r){var n=t.declarations;return e.some(n,(function(t){return!!(e.getMeaningFromDeclaration(t)&r)}))}function A(t,r,n,i,a,o){var s,c;F(t,r,n,i,(function(e,r){return o(e,r,t,!1)}));var u=a&&(null===(s=r.getPackageJsonAutoImportProvider)||void 0===s?void 0:s.call(r));if(u){var l=e.timestamp();F(u,r,n,i,(function(e,t){return o(e,t,u,!0)})),null===(c=r.log)||void 0===c||c.call(r,"forEachExternalModuleToImportFrom autoImportProvider: "+(e.timestamp()-l))}}function F(t,r,n,i,a){var o,s=0,c=e.createModuleSpecifierResolutionHost(t,r),u=i&&I(n,t,r,c);!function(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){n(a[i],void 0)}for(var o=0,s=r;o<s.length;o++){var c=s[o];e.isExternalOrCommonJsModule(c)&&n(t.getMergedSymbol(c.symbol),c)}}(t.getTypeChecker(),t.getSourceFiles(),(function(r,i){void 0===i?!u||u.allowsImportingAmbientModule(r)?a(r,i):u&&s++:i&&i!==n&&function(t,r,n,i){var a,o=e.hostGetCanonicalFileName(i),s=null===(a=i.getGlobalTypingsCacheLocation)||void 0===a?void 0:a.call(i);return!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,i,!1,(function(i){var a=t.getSourceFile(i);return(a===n||!a)&&function(t,r,n,i){var a=e.forEachAncestorDirectory(r,(function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0})),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)}(r.fileName,i,o,s)}))}(t,n,i,c)&&(!u||u.allowsImportingSourceFile(i)?a(r,i):u&&s++)})),null===(o=r.log)||void 0===o||o.call(r,"forEachExternalModuleToImportFrom: filtered out "+s+" modules by package.json contents")}function P(t,r){return w(e.removeFileExtension(e.stripQuotes(t.name)),r)}function w(t,r){var n=e.getBaseFileName(e.removeSuffix(t,"/index")),i="",a=!0,o=n.charCodeAt(0);e.isIdentifierStart(o,r)?i+=String.fromCharCode(o):a=!1;for(var s=1;s<n.length;s++){var c=n.charCodeAt(s),u=e.isIdentifierPart(c,r);if(u){var l=String.fromCharCode(c);a||(l=l.toUpperCase()),i+=l}a=u}return e.isStringANonContextualKeyword(i)?"_"+i:i||"_"}function I(t,r,n,i){void 0===i&&(i=e.createModuleSpecifierResolutionHost(r,n));var a,o=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||e.getPackageJsonsVisibleToFile(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t){if(!o.length)return!0;var r=u(t.valueDeclaration.getSourceFile().fileName);if(void 0===r)return!0;var n=e.stripQuotes(t.getName());if(c(n))return!0;return s(r)||s(n)},allowsImportingSourceFile:function(e){if(!o.length)return!0;var t=u(e.fileName);if(!t)return!0;return s(t)},allowsImportingSpecifier:function(t){if(!o.length||c(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return s(t)},moduleSpecifierResolutionHost:i};function s(t){for(var r=l(t),n=0,i=o;n<i.length;n++){var a=i[n];if(a.has(r)||a.has(e.getTypesPackageName(r)))return!0}return!1}function c(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===a&&(a=e.consumesNodeCoreModules(t)),a))}function u(r){if(e.stringContains(r,"node_modules")){var a=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t.path,r,i);if(a)return e.pathIsRelative(a)||e.isRootedDiskPath(a)?void 0:l(a)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?r[0]+"/"+r[1]:r[0]}}t.registerCodeFix({errorCodes:o,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=m(t,r,a.start,!0);if(o){var s=o.fixes,c=o.symbolName,u=e.getQuotePreference(i,n);return s.map((function(e){return b(t,i,c,e,u)}))}},fixIds:["fixMissingImport"],getAllCodeActions:function(r){var n=c(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,o,(function(e){return n.addImportFromDiagnostic(e,r)})),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=function(e,t,r,n){return c(e,t,!1,r,n)},function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(i||(i={})),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS"}(a||(a={})),t.getImportCompletionAction=function(t,r,n,i,a,o,s,c,_){var p=o.getCompilerOptions(),m=d(n,t,r,i,a,o,!0),y=f(n,p),h=2===p.importsNotUsedAsValues&&!e.isSourceFileJS(n)&&e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,c));return{moduleSpecifier:e.first(g(o,n,c,h,y,m,a,_)).moduleSpecifier,codeAction:l(b({host:a,formatContext:s,preferences:_},n,i,u(n,m,r,i,o,c,h,y,a,_),e.getQuotePreference(n,_)))}},t.forEachExternalModuleToImportFrom=A,t.moduleSymbolToValidIdentifier=P,t.moduleSpecifierToValidIdentifier=w}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);e.Debug.assert(107===a.kind);var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.assertDefined(e.findChildOfKind(o,97,r)),c=o.name,u=e.Debug.assertDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,u))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(84)),t.insertText(r,c.end," = "),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,u=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,u,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(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 191===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(;179===i.kind||180===i.kind||185===i.kind;)179===i.kind?a=!0:180===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=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function n(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.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var l=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));l&&l.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,l.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var d=e.findAncestor(a,e.isJsxOpeningLikeElement),_=c.getContextualTypeForArgumentAtIndex(d,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,_)}else{var p=e.getMeaningFromLocation(a),f=e.getTextOfNode(a);e.Debug.assert(void 0!==f,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,f,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(p))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function i(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.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:r,getCodeActions:function(r){var a=r.sourceFile,o=r.errorCode,s=n(a,r.span.start,r,o);if(s){var c=s.node,u=s.suggestedSymbol,l=r.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,a,c,u,l)}));return[t.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){var a=n(r.file,r.start,e,r.code),o=e.host.getCompilationSettings().target;a&&i(t,e.sourceFile,a.node,a.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="returnValueCorrect",i=[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 a(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 o(t,n,i,o){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var c=e.first(n.body.statements);if(e.isExpressionStatement(c)&&s(t,n,t.getTypeAtLocation(c.expression),i,o))return{declaration:n,kind:r.MissingReturnStatement,expression:c.expression,statement:c,commentSource:c.expression};if(e.isLabeledStatement(c)&&e.isExpressionStatement(c.statement)){var u=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(c.label,c.statement.expression)]);if(s(t,n,a(t,c.label,c.statement.expression),i,o))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:u,statement:c,commentSource:c.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:u,statement:c,commentSource:c.statement.expression}}else if(e.isBlock(c)&&1===e.length(c.statements)){var l=e.first(c.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)){u=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]);if(s(t,n,a(t,l.label,l.statement.expression),i,o))return{declaration:n,kind:r.MissingReturnStatement,expression:u,statement:c,commentSource:l}}}}}function s(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 c(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var s=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(!(s&&s.body&&s.type&&e.rangeContainsRange(s.type,a)))return;return o(t,s,t.getTypeFromTypeNode(s.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!e.isCallExpression(s.parent)||!s.body)return;var c=s.parent.arguments.indexOf(s),u=t.getContextualTypeForArgumentAtIndex(s.parent,c);if(!u)return;return o(t,s,u,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var l=function(t){switch(t.kind){case 246:case 159:case 195:case 162:case 285:return t.initializer;case 277:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 286:case 161:case 288:case 328:case 322:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return o(t,l,t.getTypeAtLocation(a.parent),!0)}}}function u(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 l(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 d(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function _(r,i,a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return u(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,o,e.Diagnostics.Add_a_return_statement,"fixAddReturnStatement",e.Diagnostics.Add_all_missing_return_statement)}function p(r,i,a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,o,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,"fixWrapTheBlockWithParen",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:i,fixIds:["fixAddReturnStatement","fixRemoveBracesFromArrowFunctionBody","fixWrapTheBlockWithParen"],getCodeActions:function(i){var a=i.program,o=i.sourceFile,s=i.span.start,u=i.errorCode,d=c(a.getTypeChecker(),o,s,u);if(d)return d.kind===r.MissingReturnStatement?e.append([_(i,d.expression,d.statement)],e.isArrowFunction(d.declaration)?function(r,i,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return l(e,r.sourceFile,i,a,o,!1)}));return t.createCodeFixAction(n,s,e.Diagnostics.Remove_braces_from_arrow_function_body,"fixRemoveBracesFromArrowFunctionBody",e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,d.declaration,d.expression,d.commentSource):void 0):[p(i,d.declaration,d.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,i,(function(t,n){var i=c(r.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(r.fixId){case"fixAddReturnStatement":u(t,n.file,i.expression,i.statement);break;case"fixRemoveBracesFromArrowFunctionBody":if(!e.isArrowFunction(i.declaration))return;l(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case"fixWrapTheBlockWithParen":if(!e.isArrowFunction(i.declaration))return;d(t,n.file,i.declaration,i.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(218===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(213===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<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function _(r,n,i,a,o,s,c,u){var l=t.createImportAdder(c,r.program,r.preferences,r.host),d=t.createMethodFromCallExpression(r,l,i,a,o,s,u),_=e.findAncestor(i,(function(t){return e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)}));_&&_.parent===s?n.insertNodeAfter(c,_,d):n.insertNodeAtClassStart(c,s,d),l.writeFixes(n)}function p(t,r,n,i){var a=e.some(i.members,(function(e){var t=r.getTypeAtLocation(e);return!!(t&&132&t.flags)})),o=e.factory.createEnumMember(n,a?e.factory.createStringLiteral(n.text):void 0);t.replaceNode(i.getSourceFile(),i,e.factory.updateEnumDeclaration(i,i.decorators,i.modifiers,i.name,e.concatenate(i.members,e.singleElementArray(o))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=o(r.sourceFile,r.span.start,r.program.getTypeChecker(),r.program);if(i){if(0===i.kind){var c=i.token,d=i.parentDeclaration,f=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.program.getTypeChecker(),c,d)}));return[t.createCodeFixAction(n,f,[e.Diagnostics.Add_missing_enum_member_0,c.text],a,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(function(r,i){var o=i.parentDeclaration,s=i.declSourceFile,c=i.modifierFlags,u=i.token,l=i.call,d=i.isJSFile;if(void 0===l)return;if(e.isPrivateIdentifier(u))return;var p=u.text,f=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return _(r,e,l,p,t,o,s,d)}))},g=[t.createCodeFixAction(n,f(32&c),[32&c?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,p],a,e.Diagnostics.Add_all_missing_members)];8&c&&g.unshift(t.createCodeFixActionWithoutFixAll(n,f(8),[e.Diagnostics.Declare_private_method_0,p]));return g}(r,i),function(r,i){return i.isJSFile?e.singleElementArray(function(r,i){var o=i.parentDeclaration,c=i.declSourceFile,u=i.modifierFlags,l=i.token;if(e.isInterfaceDeclaration(o))return;var d=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,c,o,l,!!(32&u))}));if(0===d.length)return;var _=32&u?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(l)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,d,[_,l.text],a,e.Diagnostics.Add_all_missing_members)}(r,i)):function(r,i){var o=i.parentDeclaration,s=i.declSourceFile,c=i.modifierFlags,d=i.token,_=d.text,p=32&c,f=u(r.program.getTypeChecker(),o,d),g=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return l(e,s,o,_,f,t)}))},m=[t.createCodeFixAction(n,g(32&c),[p?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,_],a,e.Diagnostics.Add_all_missing_members)];if(p||e.isPrivateIdentifier(d))return m;8&c&&m.unshift(t.createCodeFixActionWithoutFixAll(n,g(8),[e.Diagnostics.Declare_private_property_0,_]));return m.push(function(r,i,a,o,s){var c=e.factory.createKeywordTypeNode(146),u=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),l=e.factory.createIndexSignature(void 0,void 0,[u],s),d=e.textChanges.ChangeTracker.with(r,(function(e){return e.insertNodeAtClassStart(i,a,l)}));return t.createCodeFixActionWithoutFixAll(n,d,[e.Diagnostics.Add_index_signature_for_property_0,o])}(r,s,o,d.text,f)),m}(r,i)}(r,i))}},fixIds:[a],getAllCodeActions:function(r){var n=r.program,a=n.getTypeChecker(),c=new e.Map,d=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(f){t.eachDiagnostic(r,i,(function(t){var n=o(t.file,t.start,a,r.program);if(n&&e.addToSeen(c,e.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(0===n.kind){var i=n.token,s=n.parentDeclaration;p(f,a,i,s)}else{s=n.parentDeclaration;var u=n.token,l=e.getOrUpdate(d,s,(function(){return[]}));l.some((function(e){return e.token.text===u.text}))||l.push(n)}})),d.forEach((function(i,o){for(var c=t.getAllSupers(o,a),p=function(t){if(c.some((function(e){var r=d.get(e);return!!r&&r.some((function(e){return e.token.text===t.token.text}))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,o=t.modifierFlags,p=t.token,g=t.call,m=t.isJSFile;if(g&&!e.isPrivateIdentifier(p))_(r,f,g,p.text,32&o,i,a,m);else if(m&&!e.isInterfaceDeclaration(i))s(f,a,i,p,!!(32&o));else{var y=u(n.getTypeChecker(),i,p);l(f,a,i,p.text,y,32&o)}},g=0,m=i;g<m.length;g++){p(m[g])}}))})))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(r||(r={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(function(t,r){var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);for(;n.end<i;)n=n.parent;return n}(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,n=[r,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function i(e,t){return{type:"install package",file:e,packageName:t}}function a(t,r){var n=e.cast(e.getTokenAtPosition(t,r),e.isStringLiteral).text,i=e.parsePackageName(n).packageName;return e.isExternalModuleNameRelative(i)?void 0:i}function o(t,n,i){return i===r?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:n.isKnownTypesPackageName(t)?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:n,getCodeActions:function(r){var n=r.host,s=r.sourceFile,c=a(s,r.span.start);if(void 0!==c){var u=o(c,n,r.errorCode);return void 0===u?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],"installTypesPackage",e.Diagnostics.Install_all_missing_types_packages,i(s.fileName,u))]}},fixIds:["installTypesPackage"],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n,s){var c=a(n.file,n.start);if(void 0!==c)switch(r.fixId){case"installTypesPackage":var u=o(c,r.host,n.code);u&&s.push(i(n.file.fileName,u));break;default:e.Debug.fail("Bad fixId: "+r.fixId)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),u=i.program.getTypeChecker(),l=u.getTypeAtLocation(c),d=u.getPropertiesOfType(l).filter(o),_=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,d,n,i,s,_,(function(e){return a.insertNodeAtClassStart(n,r,e)})),_.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(function(e){return a(i(o,s.start),o,r,e,r.preferences)}));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(107===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((function(t){return e.isPropertyAccessExpression(t)&&t.expression===n}))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var u=c.constructor,l=c.superCall,d=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,o,u,l)}));return[t.createCodeFixAction(r,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Map;return t.codeFixAll(r,n,(function(t,r){var n=a(r.file,r.start);if(n){var c=n.constructor,u=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,u)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="enableExperimentalDecorators",n=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(function(r){t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);if(c<4||c>99){s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}}));a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}}})}(e.codefix||(e.codefix={}))}(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<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,u=s.heritageClauses,l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,u)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions:function(i){var a=i.sourceFile,s=i.preferences,c=i.span,u=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!1)})),l=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!0)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,l,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){return o(t,e.preferences,r.file,r.start,e.fixId===n)}))}});var a={">":"&gt;","}":"&rbrace;"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(s,r)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(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(151))}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,229===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 159:case 158:return!0;case 246:switch(e.parent.parent.parent.kind){case 236:case 235: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){var i=t.parent;switch(i.kind){case 164:var a=r.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,r))return!1;case 165:case 248:return!0;case 205:case 206:var o=i.parameters,s=o.indexOf(t);return e.Debug.assert(-1!==s,"The parameter should already be in the list"),n?o.slice(s+1).every((function(e){return 78===e.name.kind&&!e.symbol.isReferenced})):s===o.length-1;case 167:return!1;default:return e.Debug.failBadSyntaxKind(i)}})(n,i,o)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){t.deleteModifier(r,e)})):(t.delete(r,n),function(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,(function(e){var i=n.parent.parameters.indexOf(n);e.arguments.length>i&&t.delete(r,e.arguments[i])}))}(t,r,n,a,i)))}(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)}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,y=i.program,h=y.getTypeChecker(),v=y.getSourceFiles(),b=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(b))return[c(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,b)})),e.Diagnostics.Remove_template_tag)];if(29===b.kind)return[c(E=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,m,b)})),e.Diagnostics.Remove_type_parameters)];var x=l(b);if(x)return[c(E=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,x)})),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(x)])];if(e.isObjectBindingPattern(b.parent)){if(e.isParameter(b.parent.parent)){var D=b.parent.elements,S=[D.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(D,(function(e){return e.getText(m)})).join(", ")];return[c(e.textChanges.ChangeTracker.with(i,(function(e){return p(e,m,b.parent)})),S)]}return[c(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(m,b.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(d(m,b))return[c(e.textChanges.ChangeTracker.with(i,(function(e){return _(e,m,b.parent)})),e.Diagnostics.Remove_variable_statement)];var T=[];if(135===b.kind){var E=e.textChanges.ChangeTracker.with(i,(function(e){return s(e,m,b)})),C=e.cast(b.parent,e.isInferTypeNode).typeParameter.name.text;T.push(t.createCodeFixAction(r,E,[e.Diagnostics.Replace_infer_0_with_unknown,C],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var k=e.textChanges.ChangeTracker.with(i,(function(e){return g(m,b,e,h,v,!1)}));if(k.length){C=e.isComputedPropertyName(b.parent)?b.parent:b;T.push(c(k,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,C.getText(m)]))}}var N=e.textChanges.ChangeTracker.with(i,(function(e){return f(e,o,m,b)}));return N.length&&T.push(t.createCodeFixAction(r,N,[e.Diagnostics.Prefix_0_with_an_underscore,b.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),T},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,y=m.getTypeChecker(),h=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 v=l(m);v?t.delete(c,v):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,h,!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 231:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 233:case 234: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;n<i.length;n++){var a=i[n];if(!t(a))break;r=a}return r}(e.sliceAfter(s.parent.statements,s),(function(e){return e.pos<l})),"Some statement should be last");t.deleteNodeRange(r,s,d)}else t.delete(r,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start,t.length,t.code)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function n(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function i(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),a),o=i&&i.type;return o&&{typeNode:o,type:n.getTypeFromTypeNode(o)}}function a(e){switch(e.kind){case 221:case 168:case 169:case 248:case 166:case 170:case 189:case 164:case 163:case 159:case 162:case 161:case 167:case 251:case 203:case 246:return!0;default:return!1}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=r.program.getTypeChecker(),s=i(a,r.span.start,o);if(s){var c=s.typeNode,u=s.type,l=c.getText(a),d=[_(u,"fixJSDocTypes_plain",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 301===c.kind&&d.push(_(o.getNullableType(u,32768),"fixJSDocTypes_nullable",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),d}function _(i,s,u){var d=e.textChanges.ChangeTracker.with(r,(function(e){return n(e,a,c,i,o)}));return t.createCodeFixAction("jdocTypes",d,[e.Diagnostics.Change_0_to_1,l,o.typeToString(i)],s,u)}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var a=e.fixId,o=e.program,s=e.sourceFile,c=o.getTypeChecker();return t.codeFixAll(e,r,(function(e,t){var r=i(t.file,t.start,c);if(r){var o=r.typeNode,u=r.type,l=301===o.kind&&"fixJSDocTypes_nullable"===a?c.getNullableType(u,32768):u;n(e,s,o,l,c)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,r.text+"()")}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 164:a=i.name;break;case 248:case 205:a=e.findChildOfKind(i,97,t);break;case 206:a=e.findChildOfKind(i,20,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&78===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,129,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return t.codeFixAll(r,n,(function(t,n){var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],n="fixPropertyOverrideAccessor";function i(r,n,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=n,c=n+i;else if(a===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var u=o.program.getTypeChecker(),l=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(l),"error span of fixPropertyOverrideAccessor should only be on an accessor");var d=l.parent;e.Debug.assert(e.isClassLike(d),"erroneous accessors should only be inside classes");var _=e.singleOrUndefined(t.getAllSupers(d,u));if(!_)return[];var p=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(l.name)),f=u.getPropertyOfType(u.getTypeAtLocation(_),p);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var n="inferFromUsage",i=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function a(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function o(r,n,i,a,o,_,m,y,h){if(e.isParameterPropertyModifier(i.kind)||78===i.kind||25===i.kind||107===i.kind){var v=i.parent,b=t.createImportAdder(n,o,h,y);switch(a=function(t){switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t}(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(v)&&m(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return s(r,b,n,v,o,y,_),b.writeFixes(r),v;if(e.isPropertyAccessExpression(v)){var x=p(v.name,o,_),D=e.getTypeNodeIfAccessible(x,v,o,y);if(D){var S=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(D),"");d(r,n,e.cast(v.parent.parent,e.isExpressionStatement),[S])}return b.writeFixes(r),v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var T=o.getTypeChecker().getSymbolAtLocation(i);return T&&T.valueDeclaration&&e.isVariableDeclaration(T.valueDeclaration)&&m(T.valueDeclaration)?(s(r,b,n,T.valueDeclaration,o,y,_),b.writeFixes(r),T.valueDeclaration):void 0}var E=e.getContainingFunction(i);if(void 0!==E){var C;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(E)){c(r,b,n,E,o,y,_),C=E;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(E)){var k=e.cast(v,e.isParameter);!function(t,r,n,i,a,o,s,c){if(!e.isIdentifier(i.name))return;var d=function(t,r,n,i){var a=f(t,r,n,i);return a&&g(n,a,i).parameters(t)||t.parameters.map((function(t){return{declaration:t,type:e.isIdentifier(t.name)?p(t.name,n,i):n.getTypeChecker().getAnyType()}}))}(a,n,o,c);if(e.Debug.assert(a.parameters.length===d.length,"Parameter count and inference count should match"),e.isInJSFile(a))l(t,n,d,o,s);else{var _=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);_&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var m=0,y=d;m<y.length;m++){var h=y[m],v=h.declaration,b=h.type;!v||v.type||v.initializer||u(t,r,n,v,b,o,s)}_&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}(r,b,n,k,E,o,y,_),C=k}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(E)&&e.isIdentifier(E.name)&&(u(r,b,n,E,p(E.name,o,_),o,y),C=E);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(E)&&(c(r,b,n,E,o,y,_),C=E);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(E)&&m(E)&&(!function(t,r,n,i,a,o){var s=f(n,r,i,o);if(!s||!s.length)return;var c=g(i,s,o).thisParameter(),u=e.getTypeNodeIfAccessible(c,n,i,a);if(!u)return;e.isInJSFile(n)?function(t,r,n,i){d(t,r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])}(t,r,n,u):t.tryInsertThisTypeAnnotation(r,n,u)}(r,n,E,o,y,_),C=E);break;default:return e.Debug.fail(String(a))}return b.writeFixes(r),C}}}function s(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&u(t,r,n,i,p(i.name,a,s),a,o)}function c(t,r,n,i,a,o,s){var c=e.firstOrUndefined(i.parameters);if(c&&e.isIdentifier(i.name)&&e.isIdentifier(c.name)){var d=p(i.name,a,s);d===a.getTypeChecker().getAnyType()&&(d=p(c.name,a,s)),e.isInJSFile(i)?l(t,n,[{declaration:c,type:d}],a,o):u(t,r,n,c,d,a,o)}}function u(r,n,i,a,o,s,c){var u=e.getTypeNodeIfAccessible(o,a,s,c);if(u)if(e.isInJSFile(i)&&161!==a.kind){var l=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!l)return;var _=e.factory.createJSDocTypeExpression(u);d(r,i,l,[e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,_,""):e.factory.createJSDocTypeTag(void 0,_,"")])}else(function(r,n,i,a,o,s){var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);if(c&&a.tryInsertTypeAnnotation(i,n,c.typeNode))return e.forEach(c.symbols,(function(e){return o.addImportFromExportedSymbol(e,!0)})),!0;return!1})(u,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,u)}function l(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;o&&d(t,r,o,e.mapDefined(n,(function(t){var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a),o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),n&&e.factory.createJSDocParameterTag(void 0,o,!!t.isOptional,e.factory.createJSDocTypeExpression(n),!1,"")}})))}function d(t,n,i,a){var o=e.mapDefined(i.jsDoc,(function(e){return e.comment})),s=e.flatMapToMutable(i.jsDoc,(function(e){return e.tags})),c=a.filter((function(t){return!s||!s.some((function(r,n){var i=function(t,r){if(t.kind!==r.kind)return;switch(t.kind){case 322:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 323:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment)}}(r,t);return i&&(s[n]=i),!!i}))})),u=e.factory.createJSDocComment(o.join("\n"),e.factory.createNodeArray(r(s||e.emptyArray,c))),l=206===i.kind?function(e){if(162===e.parent.kind)return e.parent;return e.parent.parent}(i):i;l.jsDoc=i.jsDoc,l.jsDocCache=i.jsDocCache,t.insertJsdocCommentBefore(n,l,u)}function _(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(function(t){return 0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0}))}function p(e,t,r){return g(t,_(e,t,r),r).single()}function f(t,r,n,i){var a;switch(t.kind){case 165:a=e.findChildOfKind(t,132,r);break;case 206:case 205:var o=t.parent;a=e.isVariableDeclaration(o)&&e.isIdentifier(o.name)?o.name:t.name;break;case 248:case 164:a=t.name}if(a)return _(a,n,i)}function g(t,n,i){var a=t.getTypeChecker(),o={string:function(){return a.getStringType()},number:function(){return a.getNumberType()},Array:function(e){return a.createArrayType(e)},Promise:function(e){return a.createPromiseType(e)}},s=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:function(){return f(u(n))},parameters:function(o){if(0===n.length||!o.parameters)return;for(var s=c(),d=0,p=n;d<p.length;d++){var g=p[d];i.throwIfCancellationRequested(),l(g,s)}var m=r(s.constructs||[],s.calls||[]);return o.parameters.map((function(r,n){for(var s=[],c=e.isRestParameter(r),l=!1,d=0,p=m;d<p.length;d++){var g=p[d];if(g.argumentTypes.length<=n)l=e.isInJSFile(o),s.push(a.getUndefinedType());else if(c)for(var y=n;y<g.argumentTypes.length;y++)s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[y]));else s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[n]))}if(e.isIdentifier(r.name)){var h=u(_(r.name,t,i));s.push.apply(s,c?e.mapDefined(h,a.getElementTypeOfArrayType):h)}var v=f(s);return{type:c?a.createArrayType(v):v,isOptional:l&&!c,declaration:r}}))},thisParameter:function(){for(var t=c(),r=0,a=n;r<a.length;r++){var o=a[r];i.throwIfCancellationRequested(),l(o,t)}return f(t.candidateThisTypes||e.emptyArray)}};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(e){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},r=0,n=e;r<n.length;r++){var a=n[r];i.throwIfCancellationRequested(),l(a,t)}return g(t)}function l(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 230:!function(t,r){h(r,e.isCallExpression(t)?a.getVoidType():a.getAnyType())}(t,r);break;case 212:r.isNumber=!0;break;case 211:!function(e,t){switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}}(t.parent,r);break;case 213:!function(t,r,n){switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 64:case 66:case 65:case 67:case 68:case 72:case 73:case 77:case 69:case 71:case 70:case 40:case 29:case 32:case 31:case 33:var i=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&i.flags?h(n,i):n.isNumber=!0;break;case 63:case 39:var o=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:132&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 62:case 34:case 36:case 37:case 35:h(n,a.getTypeAtLocation(r.left===t?r.right:r.left));break;case 100:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||246!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||h(n,a.getTypeAtLocation(r.right))}}(t,t.parent,r);break;case 281:case 282:!function(e,t){h(t,a.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r);break;case 200:case 201:t.parent.expression===t?function(e,t){var r={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var n=0,i=e.arguments;n<i.length;n++){var o=i[n];r.argumentTypes.push(a.getTypeAtLocation(o))}l(e,r.return_),200===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)}(t.parent,r):d(t,r);break;case 198:!function(t,r){var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(t,i),r.properties.set(n,i)}(t.parent,r);break;case 199:!function(e,t,r){if(t===e.argumentExpression)return void(r.isNumberOrString=!0);var n=a.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};l(e,i),296&n.flags?r.numberIndex=i:r.stringIndex=i}(t.parent,t,r);break;case 285:case 286:!function(t,r){var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;v(r,a.getTypeAtLocation(n))}(t.parent,r);break;case 162:!function(e,t){v(t,a.getTypeAtLocation(e.parent))}(t.parent,r);break;case 246:var n=t.parent,i=n.name,o=n.initializer;if(t===i){o&&h(r,a.getTypeAtLocation(o));break}default:return d(t,r)}}function d(t,r){e.isExpressionNode(t)&&h(r,a.getContextualType(t))}function p(e){return f(g(e))}function f(t){if(!t.length)return a.getAnyType();var r=a.getUnionType([a.getStringType(),a.getNumberType()]),n=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var u=c[s],l=u.high,d=u.low;l(o)&&(e.Debug.assert(!d(o),"Priority can't have both low and high"),n.push(d))}return t.filter((function(e){return n.every((function(t){return!t(e)}))}))}(t,[{high:function(e){return e===a.getStringType()||e===a.getNumberType()},low:function(e){return e===r}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(t){return!(114689&t.flags||16&e.getObjectFlags(t))},low:function(t){return!!(16&e.getObjectFlags(t))}}]),i=n.filter((function(t){return 16&e.getObjectFlags(t)}));return i.length&&(n=n.filter((function(t){return!(16&e.getObjectFlags(t))}))).push(function(t){if(1===t.length)return t[0];for(var r=[],n=[],i=[],o=[],s=!1,c=!1,u=e.createMultiMap(),l=0,d=t;l<d.length;l++){for(var _=d[l],p=0,f=a.getPropertiesOfType(_);p<f.length;p++){var g=f[p];u.add(g.name,a.getTypeOfSymbolAtLocation(g,g.valueDeclaration))}r.push.apply(r,a.getSignaturesOfType(_,0)),n.push.apply(n,a.getSignaturesOfType(_,1)),_.stringIndexInfo&&(i.push(_.stringIndexInfo.type),s=s||_.stringIndexInfo.isReadonly),_.numberIndexInfo&&(o.push(_.numberIndexInfo.type),c=c||_.numberIndexInfo.isReadonly)}var m=e.mapEntries(u,(function(e,r){var n=r.length<t.length?16777216:0,i=a.createSymbol(4|n,e);return i.type=a.getUnionType(r),[e,i]}));return a.createAnonymousType(t[0].symbol,m,r,n,i.length?a.createIndexInfo(a.getUnionType(i),s):void 0,o.length?a.createIndexInfo(a.getUnionType(o),c):void 0)}(i)),a.getWidenedType(a.getUnionType(n.map(a.getBaseTypeOfLiteralType),2))}function g(t){var r,n,i,c=[];return t.isNumber&&c.push(a.getNumberType()),t.isString&&c.push(a.getStringType()),t.isNumberOrString&&c.push(a.getUnionType([a.getStringType(),a.getNumberType()])),t.numberIndex&&c.push(a.createArrayType(p(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.calls)||void 0===n?void 0:n.length)||(null===(i=t.constructs)||void 0===i?void 0:i.length)||t.stringIndex)&&c.push(function(t){var r=new e.Map;t.properties&&t.properties.forEach((function(e,t){var n=a.createSymbol(4,t);n.type=p(e),r.set(t,n)}));var n=t.calls?[y(t.calls)]:[],i=t.constructs?[y(t.constructs)]:[],o=t.stringIndex&&a.createIndexInfo(p(t.stringIndex),!1);return a.createAnonymousType(void 0,r,n,i,o,void 0)}(t)),c.push.apply(c,(t.candidateTypes||[]).map((function(e){return a.getBaseTypeOfLiteralType(e)}))),c.push.apply(c,function(t){if(!t.properties||!t.properties.size)return[];var r=s.filter((function(r){return function(t,r){return!!r.properties&&!e.forEachEntry(r.properties,(function(r,n){var i,o=a.getTypeOfPropertyOfType(t,n);return!o||(r.calls?!a.getSignaturesOfType(o,0).length||!a.isTypeAssignableTo(o,(i=r.calls,a.createAnonymousType(void 0,e.createSymbolTable(),[y(i)],e.emptyArray,void 0,void 0))):!a.isTypeAssignableTo(o,p(r)))}))}(r,t)}));if(0<r.length&&r.length<3)return r.map((function(r){return function(t,r){if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,i=e.singleOrUndefined(n.typeParameters);if(!i)return t;var s=[];return r.properties.forEach((function(t,r){var o=a.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!o,"generic should have all the properties of its reference."),s.push.apply(s,m(o,p(t),i))})),o[t.symbol.escapedName](f(s))}(r,t)}));return[]}(t)),c}function m(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(function(e){return m(e,r,n)}));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var i=a.getTypeArguments(t),o=a.getTypeArguments(r),s=[];if(i&&o)for(var c=0;c<i.length;c++)o[c]&&s.push.apply(s,m(i[c],o[c],n));return s}var u=a.getSignaturesOfType(t,0),l=a.getSignaturesOfType(r,0);return 1===u.length&&1===l.length?function(t,r,n){for(var i=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],u=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var l=a.getTypeOfSymbolAtLocation(s,s.valueDeclaration),d=u&&a.getElementTypeOfArrayType(l);d&&(l=d);var _=c.type||a.getTypeOfSymbolAtLocation(c,c.valueDeclaration);i.push.apply(i,m(l,_,n))}var p=a.getReturnTypeOfSignature(t),f=a.getReturnTypeOfSignature(r);return i.push.apply(i,m(p,f,n)),i}(u[0],l[0],n):[]}function y(t){for(var r=[],n=Math.max.apply(Math,t.map((function(e){return e.argumentTypes.length}))),i=function(n){var i=a.createSymbol(1,e.escapeLeadingUnderscores("arg"+n));i.type=f(t.map((function(e){return e.argumentTypes[n]||a.getUndefinedType()}))),t.some((function(e){return void 0===e.argumentTypes[n]}))&&(i.flags|=16777216),r.push(i)},o=0;o<n;o++)i(o);var s=p(function t(r){for(var n=new e.Map,i=0,a=r;i<a.length;i++){var o=a[i];o.properties&&o.properties.forEach((function(e,t){n.has(t)||n.set(t,[]),n.get(t).push(e)}))}var s=new e.Map;return n.forEach((function(e,r){s.set(r,t(e))})),{isNumber:r.some((function(e){return e.isNumber})),isString:r.some((function(e){return e.isString})),isNumberOrString:r.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(r,(function(e){return e.candidateTypes})),properties:s,calls:e.flatMap(r,(function(e){return e.calls})),constructs:e.flatMap(r,(function(e){return e.constructs})),numberIndex:e.forEach(r,(function(e){return e.numberIndex})),stringIndex:e.forEach(r,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(r,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}(t.map((function(e){return e.return_}))));return a.createSignature(void 0,void 0,void 0,r,s,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function v(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i,s=r.sourceFile,c=r.program,u=r.span.start,l=r.errorCode,d=r.cancellationToken,_=r.host,p=r.preferences,f=e.getTokenAtPosition(s,u),g=e.textChanges.ChangeTracker.with(r,(function(t){i=o(t,s,f,l,c,d,e.returnTrue,_,p)})),m=i&&e.getNameOfDeclaration(i);return m&&0!==g.length?[t.createCodeFixAction(n,g,[a(l,f),m.getText(s)],n,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[n],getAllCodeActions:function(r){var n=r.sourceFile,a=r.program,s=r.cancellationToken,c=r.host,u=r.preferences,l=e.nodeSeenTracker();return t.codeFixAll(r,i,(function(t,r){o(t,n,e.getTokenAtPosition(r.file,r.start),r.code,a,s,l,c,u)}))}}),t.addJSDocTags=d}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixReturnTypeInAsyncFunction",n=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function i(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),u=r.typeToTypeNode(c,o,void 0);return u?{returnTypeNode:o,returnType:s,promisedTypeNode:u,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.program,c=n.span,u=s.getTypeChecker(),l=i(o,s.getTypeChecker(),c.start);if(l){var d=l.returnTypeNode,_=l.returnType,p=l.promisedTypeNode,f=l.promisedType,g=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,d,p)}));return[t.createCodeFixAction(r,g,[e.Diagnostics.Replace_0_with_Promise_1,u.typeToString(_),u.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="disableJsDiagnostics",n=e.mapDefined(Object.keys(e.Diagnostics),(function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function i(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.program,s=n.span,c=n.host,u=n.formatContext;if(e.isInJSFile(a)&&e.isCheckJsEnabledForFile(a,o.getCompilerOptions())){var l=a.checkJsDirective?"":e.getNewLineOrDefaultFromHost(c,u.options),d=[t.createCodeFixActionWithoutFixAll("disableJsDiagnostics",[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+l)])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(a,s.start)&&d.unshift(t.createCodeFixAction("disableJsDiagnostics",e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a,s.start)})),e.Diagnostics.Ignore_this_error_message,r,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),d}},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&i(t,r.file,r.start,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t){return{trackSymbol:e.noop,moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,i,s,c,u,_){var p=t.getDeclarations();if(p&&p.length){var f=s.program.getTypeChecker(),g=e.getEmitScriptTarget(s.program.getCompilerOptions()),m=p[0],y=e.getSynthesizedDeepClone(e.getNameOfDeclaration(m),!1),h=function(t){if(4&t)return e.factory.createToken(122);if(16&t)return e.factory.createToken(121);return}(e.getEffectiveModifierFlags(m)),v=h?e.factory.createNodeArray([h]):void 0,b=f.getWidenedType(f.getTypeOfSymbolAtLocation(t,n)),x=!!(16777216&t.flags),D=!!(8388608&n.flags),S=e.getQuotePreference(i,c);switch(m.kind){case 161:case 162:var T=0===S?268435456:void 0,E=f.typeToTypeNode(b,n,T,r(s));if(u)(C=l(E,g))&&(E=C.typeNode,d(u,C.symbols));_(e.factory.createPropertyDeclaration(void 0,v,y,x?e.factory.createToken(57):void 0,E,void 0));break;case 166:case 167:var C,k=f.typeToTypeNode(b,n,void 0,r(s)),N=e.getAllAccessorDeclarations(p,m),A=N.secondAccessor?[N.firstAccessor,N.secondAccessor]:[N.firstAccessor];if(u)(C=l(k,g))&&(k=C.typeNode,d(u,C.symbols));for(var F=0,P=A;F<P.length;F++){var w=P[F];if(e.isGetAccessorDeclaration(w))_(e.factory.createGetAccessorDeclaration(void 0,v,y,e.emptyArray,k,D?void 0:o(S)));else{e.Debug.assertNode(w,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var I=e.getSetAccessorValueParameter(w),O=I&&e.isIdentifier(I.name)?e.idText(I.name):void 0;_(e.factory.createSetAccessorDeclaration(void 0,v,y,a(1,[O],[k],1,!1),D?void 0:o(S)))}}break;case 163:case 164:var M=f.getSignaturesOfType(b,0);if(!e.some(M))break;if(1===p.length){e.Debug.assert(1===M.length,"One declaration implies one signature"),B(S,M[0],v,y,D?void 0:o(S));break}for(var L=0,R=M;L<R.length;L++){B(S,R[L],e.getSynthesizedDeepClones(v,!1),e.getSynthesizedDeepClone(y,!1))}if(!D)if(p.length>M.length)B(S,f.getSignatureFromDeclaration(p[p.length-1]),v,y,o(S));else e.Debug.assert(p.length===M.length,"Declarations and signatures should match count"),_(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)),h=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(h)}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,v,S))}}function B(t,i,a,o,c){var p=function(t,n,i,a,o,s,c,u,_){var p=t.program,f=p.getTypeChecker(),g=e.getEmitScriptTarget(p.getCompilerOptions()),m=1073742081|(0===n?268435456:0),y=f.signatureToSignatureDeclaration(i,164,a,m,r(t));if(!y)return;var h=y.typeParameters,v=y.parameters,b=y.type;if(_){if(h){var x=e.sameMap(h,(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)}));h!==x&&(h=e.setTextRange(e.factory.createNodeArray(x,h.hasTrailingComma),h))}var D=e.sameMap(v,(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(v!==D&&(v=e.setTextRange(e.factory.createNodeArray(D,v.hasTrailingComma),v)),b){var S=l(b,g);S&&(b=S.typeNode,d(_,S.symbols))}}return e.factory.updateMethodDeclaration(y,void 0,o,y.asteriskToken,s,c?e.factory.createToken(57):void 0,h,v,b,u)}(s,t,i,n,a,o,x,c,u);p&&_(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 d(r,u.symbols),u.typeNode}return c}function a(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,r&&r[s]||"arg"+s,void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(t){return 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;s<l.length;s++){var d=l[s],_=d[0],p=d[1],f=u(o,_);void 0===f?t.insertNodeAtObjectStart(r,o,c(_,p)):t.replaceNode(r,f.initializer,p)}}else t.insertNodeAtObjectStart(r,i,c("compilerOptions",e.factory.createObjectLiteralExpression(n.map((function(e){return c(e[0],e[1])})),!0)))}}function c(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function u(t,r){return e.find(t.properties,(function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r}))}function l(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?function t(r,n){if(78===r.kind)return n;return e.factory.createQualifiedName(t(r.left,n),r.right)}(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var u=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,u)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function d(e,t){t.forEach((function(t){return e.addImportFromExportedSymbol(t,!0)}))}t.createMissingMemberNodes=function(e,t,r,i,a,o,s){for(var c=e.symbol.members,u=0,l=t;u<l.length;u++){var d=l[u];c.has(d.escapedName)||n(d,e,r,i,a,o,s)}},t.getNoopSymbolTrackerWithResolver=r,t.createMethodFromCallExpression=function(t,n,s,c,u,l,d){var _=!e.isInterfaceDeclaration(l),p=s.typeArguments,f=s.arguments,g=s.parent,m=e.getEmitScriptTarget(t.program.getCompilerOptions()),y=t.program.getTypeChecker(),h=r(t),v=e.map(f,(function(e){return i(y,n,y.getBaseTypeOfLiteralType(y.getTypeAtLocation(e)),l,m,void 0,h)})),b=e.map(f,(function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0})),x=y.getContextualType(s),D=d||!x?void 0:y.typeToTypeNode(x,l,void 0,h),S=e.getQuotePreference(t.sourceFile,t.preferences);return e.factory.createMethodDeclaration(void 0,u?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(u)):void 0,e.isYieldExpression(g)?e.factory.createToken(41):void 0,c,void 0,d?void 0:e.map(p,(function(t,r){return e.factory.createTypeParameterDeclaration(84+p.length-1<=90?String.fromCharCode(84+r):"T"+r)})),a(f.length,b,v,void 0,d),D,_?o(S):void 0)},t.typeToAutoImportableTypeNode=i,t.setJsonCompilerOptionValues=s,t.setJsonCompilerOptionValue=function(e,t,r,n){s(e,t,[[r,n]])},t.createJsonPropertyAssignment=c,t.findJsonProperty=u,t.tryGetAutoImportableReferenceFromTypeNode=l,t.importSymbols=d}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function i(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function a(t){return t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0}function o(t,i,a,o){void 0===o&&(o=!0);var s=e.getTokenAtPosition(t,i),c=i===a&&o,u=e.findAncestor(s.parent,r);if(!u||!e.nodeOverlapsWithStartEnd(u.name,t,i,a)&&!c)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!function(t){return e.isIdentifier(t)||e.isStringLiteral(t)}(u.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(u)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var l=u.name.text,d=e.startsWithUnderscore(l),_=n(d?l:e.getUniqueName("_"+l,t),u.name),p=n(d?e.getUniqueName(l.substring(1),t):l,u.name);return{info:{isStatic:e.hasStaticModifier(u),isReadonly:e.hasEffectiveReadonlyModifier(u),type:e.getTypeAnnotationNode(u),container:159===u.kind?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:_,accessorName:p,renameAccessor:d}}}function s(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertNodeAtClassStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}t.generateAccessorFromProperty=function(t,r,n,c,u){var l=o(t,r,n);if(l&&l.info){var d,_,p=e.textChanges.ChangeTracker.fromContext(c),f=l.info,g=f.isStatic,m=f.isReadonly,y=f.fieldName,h=f.accessorName,v=f.originalName,b=f.type,x=f.container,D=f.declaration;if(e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(D),e.suppressLeadingAndTrailingTrivia(x),e.isClassLike(x)){var S=e.getEffectiveModifierFlags(D);if(e.isSourceFileJS(t)){var T=a(S);d=T,_=T}else d=a(function(e){e&=-65,16&(e&=-9)||(e|=4);return e}(S)),_=a(function(e){return e&=-5,e&=-17,e|=8}(S))}!function(t,r,n,i,a){e.isPropertyDeclaration(n)?function(t,r,n,i,a){var o=e.factory.updatePropertyDeclaration(n,n.decorators,a,i,n.questionToken||n.exclamationToken,n.type,n.initializer);t.replaceNode(r,n,o)}(t,r,n,i,a):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,i):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,n.decorators,a,n.dotDotDotToken,e.cast(i,e.isIdentifier),n.questionToken,n.type,n.initializer))}(p,t,D,y,_);var E=function(t,r,n,a,o,s){return e.factory.createGetAccessorDeclaration(void 0,a,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(i(t,o,s))],!0))}(y,h,b,d,g,x);if(e.suppressLeadingAndTrailingTrivia(E),s(p,t,E,D,x),m){var C=e.getFirstConstructorWithBody(x);C&&function(t,r,n,i,a){if(!n.body)return;n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&107===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&107===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))}(p,t,C,y.text,v)}else{var k=function(t,r,n,a,o,s){return e.factory.createSetAccessorDeclaration(void 0,a,r,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(i(t,o,s),e.factory.createIdentifier("value")))],!0))}(y,h,b,d,g,x);e.suppressLeadingAndTrailingTrivia(k),s(p,t,k,D,x)}return p.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=o,t.getAllSupers=function(t,r){for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(r,n,i,a){var o=e.textChanges.ChangeTracker.with(r,(function(e){return e.replaceNode(n,i,a)}));return t.createCodeFixActionWithoutFixAll("invalidImportSyntax",o,[e.Diagnostics.Replace_import_with_0,o[0].textChanges[0].newText])}function n(n,i){var a=n.program.getTypeChecker().getTypeAtLocation(i);if(!a.symbol||!a.symbol.originatingImport)return[];var o=[],s=a.symbol.originatingImport;if(e.isImportCall(s)||e.addRange(o,function(t,n){var i=e.getSourceFileOfNode(n),a=e.getNamespaceDeclarationNode(n),o=t.program.getCompilerOptions(),s=[];return s.push(r(t,i,n,e.makeImport(a.name,void 0,n.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(r(t,i,n,e.factory.createImportEqualsDeclaration(void 0,void 0,a.name,e.factory.createExternalModuleReference(n.moduleSpecifier)))),s}(n,s)),e.isExpression(i)&&(!e.isNamedDeclaration(i.parent)||i.parent.name!==i)){var c=n.sourceFile,u=e.textChanges.ChangeTracker.with(n,(function(t){return t.replaceNode(c,i,e.factory.createPropertyAccessExpression(i,"default"),{})}));o.push(t.createCodeFixActionWithoutFixAll("invalidImportSyntax",u,e.Diagnostics.Use_synthetic_default_member))}return o}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(t){var r=t.sourceFile,i=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?200:201,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.kind===i}));if(!a)return[];var o=a.expression;return n(t,o)}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var r=t.sourceFile,i=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length}));if(!i)return[];return n(t,i)}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="strictClassInitialization",n=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):void 0}function a(n,i){var a=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,n.sourceFile,i)}));return t.createCodeFixAction(r,a,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,i.getText()],"addMissingPropertyDefiniteAssignmentAssertions",e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function o(t,r,n){var i=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function s(n,i){var a=e.textChanges.ChangeTracker.with(n,(function(e){return c(e,n.sourceFile,i)}));return t.createCodeFixAction(r,a,[e.Diagnostics.Add_undefined_type_to_property_0,i.name.getText()],"addMissingPropertyUndefinedType",e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function c(t,r,n){var i=e.factory.createKeywordTypeNode(149),a=n.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.factory.createUnionTypeNode(o))}function u(t,r,n,i){var a=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function l(t,r){return function t(r,n){if(512&n.flags)return n===r.getFalseType()||n===r.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(n.isStringLiteral())return e.factory.createStringLiteral(n.value);if(n.isNumberLiteral())return e.factory.createNumericLiteral(n.value);if(2048&n.flags)return e.factory.createBigIntLiteral(n.value);if(n.isUnion())return e.firstDefined(n.types,(function(e){return t(r,e)}));if(n.isClass()){var i=e.getClassLikeDeclarationOfSymbol(n.symbol);if(!i||e.hasSyntacticModifier(i,128))return;var a=e.getFirstConstructorWithBody(i);if(a&&a.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(n.symbol.name),void 0,void 0)}if(r.isArrayLikeType(n))return e.factory.createArrayLiteralExpression();return}(t,t.getTypeFromTypeNode(r.type))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var c=[s(n,o),a(n,o)];return e.append(c,function(n,i){var a=l(n.program.getTypeChecker(),i);if(!a)return;var o=e.textChanges.ChangeTracker.with(n,(function(e){return u(e,n.sourceFile,i,a)}));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],"addMissingPropertyInitializer",e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(n,o)),c}},fixIds:["addMissingPropertyDefiniteAssignmentAssertions","addMissingPropertyUndefinedType","addMissingPropertyInitializer"],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){var a=i(n.file,n.start);if(a)switch(r.fixId){case"addMissingPropertyDefiniteAssignmentAssertions":o(t,n.file,a);break;case"addMissingPropertyUndefinedType":c(t,n.file,a);break;case"addMissingPropertyInitializer":var s=l(r.program.getTypeChecker(),a);if(!s)return;u(t,n.file,a,s);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,void 0,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),c))}function a(t,r,n){var i=e.getTokenAtPosition(t,n).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?function(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)}(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,n.preferences)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="useBigintLiteral",n=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(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(192===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(141):void 0,u,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){function r(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 248:case 249:case 250:case 252:case 251:case 253:var l=o;return l.name&&e.isIdentifier(l.name)?{info:{exportNode:l,exportName:l.name,wasDefault:u,exportingModuleSymbol:s}}:void 0;case 229: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 n(t,r){return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor("Convert export",{getAvailableActions:function(t){var n=r(t,"invoked"===t.triggerReason);if(!n)return e.emptyArray;if(void 0===n.error){var i=n.info.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;return[{name:"Convert export",description:i,actions:[{name:n.info.wasDefault?"Convert default export to named export":"Convert named export to default export",description:i}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:"Convert export",description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[{name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,notApplicableReason:n.error}]},{name:"Convert export",description:e.Diagnostics.Convert_named_export_to_default_export.message,actions:[{name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,notApplicableReason:n.error}]}]:e.emptyArray},getEditsForAction:function(t,i){return e.Debug.assert("Convert default export to named export"===i||"Convert named export to default export"===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,(function(i){var a,o,s,c,u,l;return o=t.file,s=t.program,c=e.Debug.checkDefined(null===(a=r(t))||void 0===a?void 0:a.info,"context must have info"),u=i,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 248:case 249:case 250:n.insertNodeAfter(t,c,e.factory.createToken(87));break;case 229:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(e.first(o.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 252:case 251:case 253: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)}}}(o,c,u,s.getTypeChecker()),void function(t,r,i,a){var o=r.wasDefault,s=r.exportName,c=r.exportingModuleSymbol,u=t.getTypeChecker(),l=e.Debug.checkDefined(u.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,a,l,c,s.text,o,(function(t){var r=t.getSourceFile();o?function(t,r,i,a){var o=r.parent;switch(o.kind){case 198:i.replaceNode(t,r,e.factory.createIdentifier(a));break;case 262:case 267:var s=o;i.replaceNode(t,s,n(a,s.name.text));break;case 259:var c=o;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),s=n(a,r.text);var u=c.namedBindings;if(u)if(260===u.kind){i.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[n(a,r.text)],c.parent.moduleSpecifier,l);i.insertNodeAfter(t,c.parent,d)}else i.delete(t,r),i.insertNodeAtEndOfList(t,u.elements,s);else i.replaceNode(t,r,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(o)}}(r,t,i,s.text):function(t,r,n){var i=r.parent;switch(i.kind){case 198:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 262: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 267: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,i)}))}(s,c,u,l)})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){function r(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()<i.start+i.length)){var s=o.importClause;return s?s.namedBindings?{info:s.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function n(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier)}t.registerRefactor("Convert import",{getAvailableActions:function(t){var n=r(t,"invoked"===t.triggerReason);if(!n)return e.emptyArray;if(void 0===n.error){var i=260===n.info.kind?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message;return[{name:"Convert import",description:i,actions:[{name:260===n.info.kind?"Convert namespace import to named imports":"Convert named imports to namespace import",description:i}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:"Convert import",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,actions:[{name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,notApplicableReason:n.error}]},{name:"Convert import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,actions:[{name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,notApplicableReason:n.error}]}]:e.emptyArray},getEditsForAction:function(t,i){return e.Debug.assert("Convert namespace import to named imports"===i||"Convert named imports to namespace import"===i,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(t,(function(i){var a,o,s,c,u,l;return o=t.file,s=t.program,c=i,u=e.Debug.checkDefined(null===(a=r(t))||void 0===a?void 0:a.info,"Context must provide an import to convert"),l=s.getTypeChecker(),void(260===u.kind?function(t,r,i,a,o){var s=!1,c=[],u=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(a.name,r,t,(function(t){if(e.isPropertyAccessExpression(t.parent)){var n=e.cast(t.parent,e.isPropertyAccessExpression),i=n.name.text;r.resolveName(i,t,67108863,!0)&&u.set(i,!0),e.Debug.assert(n.expression===t,"Parent expression should match id"),c.push(n)}else s=!0}));for(var l=new e.Map,d=0,_=c;d<_.length;d++){var p=_[d],f=p.name.text,g=l.get(f);void 0===g&&l.set(f,g=u.has(f)?e.getUniqueName(f,t):f),i.replaceNode(t,p,e.factory.createIdentifier(g))}var m=[];l.forEach((function(t,r){m.push(e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var y=a.parent.parent;s&&!o?i.insertNodeAfter(t,y,n(y,void 0,m)):i.replaceNode(t,y,n(y,s?e.factory.createIdentifier(a.name.text):void 0,m))}(o,l,c,u,e.getAllowSyntheticDefaultImports(s.getCompilerOptions())):function(t,r,i,a){for(var o=a.parent.parent,s=o.moduleSpecifier,c=s&&e.isStringLiteral(s)?e.codefix.moduleSpecifierToValidIdentifier(s.text,99):"module",u=a.elements.some((function(n){return e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,(function(e){return!!r.resolveName(c,e,67108863,!0)}))||!1}))?e.getUniqueName(c,t):c,l=[],d=function(n){var a=(n.propertyName||n.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,(function(r){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(u),a);e.isShorthandPropertyAssignment(r.parent)?i.replaceNode(t,r.parent,e.factory.createPropertyAssignment(r.text,o)):e.isExportSpecifier(r.parent)&&!r.parent.propertyName?l.some((function(e){return e.name===n.name}))||l.push(e.factory.createImportSpecifier(n.propertyName&&e.factory.createIdentifier(n.propertyName.text),e.factory.createIdentifier(n.name.text))):i.replaceNode(t,r,o)}))},_=0,p=a.elements;_<p.length;_++)d(p[_]);i.replaceNode(t,a,e.factory.createNamespaceImport(e.factory.createIdentifier(u))),l.length&&i.insertNodeAfter(t,a.parent.parent,n(o,void 0,l))}(o,l,c,u))})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){!function(r){var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression);function a(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function o(t){return a(t)||function(t){return e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t)}(t)}function s(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,s=e.getRefactorContextSpan(t),d=0===s.length;if(!d||r){var _=e.getTokenAtPosition(n,s.start),p=e.findTokenOnLeftOfPosition(n,s.start+s.length),f=e.createTextSpanFromBounds(_.pos,p&&p.end>=_.pos?p.getEnd():_.getEnd()),g=d?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=l(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=l(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){return(e.isIdentifier(r)||e.isPropertyAccessExpression(r))&&function(t,r){for(;e.isCallExpression(t)||e.isPropertyAccessExpression(t);){var n=e.isPropertyAccessExpression(r)?r.name.getText():r.getText();if(e.isPropertyAccessExpression(t)&&t.name.getText()===n)break;t=t.expression}for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r);){if(t.name.getText()!==r.name.getText())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 t=e.skipParentheses(t),e.isBinaryExpression(t)?l(t.left):!e.isPropertyAccessExpression(t)&&!e.isCallExpression(t)||e.isOptionalChain(t)?void 0:t}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=function t(r,n,i){if(e.isPropertyAccessExpression(n)||e.isCallExpression(n)){var a=t(r,n.expression,i),o=i.length>0?i[i.length-1]:void 0,s=(null==o?void 0:o.getText())===n.expression.getText();if(s&&i.pop(),e.isCallExpression(n))return s?e.factory.createCallChain(a,e.factory.createToken(28),n.typeArguments,n.arguments):e.factory.createCallChain(a,n.questionDotToken,n.typeArguments,n.arguments);if(e.isPropertyAccessExpression(n))return s?e.factory.createPropertyAccessChain(a,e.factory.createToken(28),n.name):e.factory.createPropertyAccessChain(a,n.questionDotToken,n.name)}return n}(r,o,s);l&&(e.isPropertyAccessExpression(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 163:case 164:case 168:case 165:case 169:case 248: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 163:u=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 164: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 168:u=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 165:u=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,d(a),c.body);break;case 169:u=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 248: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;function s(t){var r=u(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:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),name:"function_extract_error",notApplicableReason:D(r.errors)}]},{name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),name:"constant_extract_error",notApplicableReason:D(r.errors)}]}]:e.emptyArray;var i=function(t,r){var n=_(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 165:return"constructor";case 205:case 248:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 206:return"arrow function";case 164:return"method '"+t.name.getText()+"'";case 166:return"'get "+t.name.getText()+"'";case 167:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 249===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 254===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,s=[],c=new e.Map,l=[],d=new e.Map,p=0,f=0,g=i;f<g.length;f++){var m=g[f],y=m.functionExtraction,h=m.constantExtraction,v=y.description;if(0===y.errors.length?c.has(v)||(c.set(v,!0),s.push({description:v,name:"function_scope_"+p})):a||(a={description:v,name:"function_scope_"+p,notApplicableReason:D(y.errors)}),0===h.errors.length){var b=h.description;d.has(b)||(d.set(b,!0),l.push({description:b,name:"constant_scope_"+p}))}else o||(o={description:v,name:"constant_scope_"+p,notApplicableReason:D(h.errors)});p++}var x=[];return s.length?x.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:s}):t.preferences.provideRefactorNotApplicableReason&&a&&x.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[a]}),l.length?x.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:l}):t.preferences.provideRefactorNotApplicableReason&&o&&x.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[o]}),x.length?x:e.emptyArray;function D(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function c(t,r){var n=u(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,r,n){var a=_(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o,s){var c,u,l=n.usages,d=n.typeParameterUsages,_=n.substitutions,y=s.program.getTypeChecker(),h=e.getEmitScriptTarget(s.program.getCompilerOptions()),b=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),x=r.getSourceFile(),D=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",x),S=e.isInJSFile(r),T=e.factory.createIdentifier(D),E=[],C=[];l.forEach((function(t,n){var i;if(!S){var a=y.getTypeOfSymbolAtLocation(t.symbol,t.node);a=y.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(y,b,a,r,h,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i);E.push(o),2===t.usage&&(u||(u=[])).push(t),C.push(e.factory.createIdentifier(n))}));var k=e.arrayFrom(d.values()).map((function(e){return{type:e,declaration:p(e)}})).sort(f),N=0===k.length?void 0:k.map((function(e){return e.declaration})),A=void 0!==N?N.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)})):void 0;if(e.isExpression(t)&&!S){var F=y.getContextualType(t);c=y.typeToTypeNode(F,r,1)}var P,w=function(t,r,n,i,a){var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,_).slice();if(s&&!a&&e.isStatement(t)){var d=g(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=g(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,T,void 0,N,E,c,I)}else P=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,N,E,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)}))}((m(o.range)?e.last(o.range):o.range).end,r);R?L.insertNodeBefore(s.file,R,P,!0):L.insertNodeAtEndOfScope(s.file,r,P);b.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,D),J=e.factory.createCallExpression(j,A,C);o.facts&i.IsGenerator&&(J=e.factory.createYieldExpression(e.factory.createToken(41),J));o.facts&i.IsAsyncFunction&&(J=e.factory.createAwaitExpression(J));v(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;W<H.length;W++){K=H[W];z.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(K.name)));var G=y.typeToTypeNode(y.getBaseTypeOfLiteralType(y.getTypeAtLocation(K)),r,1);U.push(e.factory.createPropertySignature(void 0,K.symbol.name,void 0,G)),q=q||void 0!==K.type,V&=K.parent.flags}var Y=q?e.factory.createTypeLiteralNode(U):void 0;Y&&e.setEmitFlags(Y,1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(z),void 0,Y,J)],V)))}else if(a.length||u){if(a.length)for(var X=0,Q=a;X<Q.length;X++){var $=(K=Q[X]).parent.flags;2&$&&($=-3&$|1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(K.symbol.name,void 0,ne(K.type))],$)))}O&&B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,ne(c))],1)));var Z=g(a,u);O&&Z.unshift(e.factory.createShorthandPropertyAssignment(O)),1===Z.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),B.push(e.factory.createExpressionStatement(e.factory.createAssignment(Z[0].name,J))),o.facts&i.HasReturn&&B.push(e.factory.createReturnStatement())):(B.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(Z),J))),O&&B.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?B.push(e.factory.createReturnStatement(J)):m(o.range)?B.push(e.factory.createExpressionStatement(J)):B.push(J);m(o.range)?L.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),B):L.replaceNodeWithNodes(s.file,o.range,B);var ee=L.getChanges(),te=(m(o.range)?e.first(o.range):o.range).getSourceFile().fileName,re=e.getRenameLocation(ee,te,D,!1);return{renameFilename:te,renameLocation:re,edits:ee};function ne(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,(function(e){return 149===e.kind}))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(149)])}}}(c,o[n],u[n],d,t,r)}(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s){o=+s[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,r,n){var a=_(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.constantErrorsPerScope,p=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),e.Debug.assert(0===p.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o){var s,c=n.substitutions,u=o.program.getTypeChecker(),l=r.getSourceFile(),_=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",l),p=e.isInJSFile(r),f=p||!u.isContextSensitive(t)?void 0:u.typeToTypeNode(u.getContextualType(t),r,1),g=function(t,r){return r.size?n(t):t;function n(t){var i=r.get(e.getNodeId(t).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(t,n,e.nullTransformationContext)}}(t,c);s=A(f,g),f=s.variableType,g=s.initializer,e.suppressLeadingAndTrailingTrivia(g);var m=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!p,"Cannot extract to a JS class");var y=[];y.push(e.factory.createModifier(120)),a&i.InStaticRegion&&y.push(e.factory.createModifier(123)),y.push(e.factory.createModifier(141));var b=e.factory.createPropertyDeclaration(void 0,y,_,void 0,f,g),x=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(_));v(t)&&(x=e.factory.createJsxExpression(void 0,x));var D=function(t,r){var n,i=r.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,D,b,!0),m.replaceNode(o.file,t,x)}else{var S=e.factory.createVariableDeclaration(_,void 0,f,g),T=function(t,r){var n;for(;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(T){m.insertNodeBefore(o.file,T,S);x=e.factory.createIdentifier(_);m.replaceNode(o.file,t,x)}else if(230===t.parent.kind&&r===e.findAncestor(t,d)){var E=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,E)}else{E=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));if(0===(D=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)d(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(h(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.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,E,!1):m.insertNodeBefore(o.file,D,E,!1),230===t.parent.kind)m.delete(o.file,t.parent);else{x=e.factory.createIdentifier(_);v(t)&&(x=e.factory.createJsxExpression(void 0,x)),m.replaceNode(o.file,t,x)}}}var C=m.getChanges(),k=t.getSourceFile().fileName,N=e.getRenameLocation(C,k,_,!0);return{renameFilename:k,renameLocation:N,edits:C};function A(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=u.getTypeAtLocation(t),o=e.singleOrUndefined(u.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,l=0,d=i.parameters;l<d.length;l++){var _=d[l];if(_.type)s.push(_);else{var p=u.getTypeAtLocation(_);p===u.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(_,_.decorators,_.modifiers,_.dotDotDotToken,_.name,_.questionToken,_.type||u.typeToTypeNode(p,r,1),_.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||u.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var g=u.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,u.typeToTypeNode(g,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||u.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function u(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s=0===o&&a,c=e.getTokenAtPosition(t,r.start),u=s?function(t){return e.findAncestor(t,(function(t){return t.parent&&y(t)&&!e.isBinaryExpression(t.parent)}))}(c):e.getParentNodeInSpan(c,t,r),d=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),_=s?u:e.getParentNodeInSpan(d,t,r),p=[],f=i.None;if(!u||!_)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(u.parent!==_.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(u!==_){if(!h(u.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var g=[],m=0,v=u.parent.statements;m<v.length;m++){var b=v[m];if(b===u||g.length){var x=T(b);if(x)return{errors:x};g.push(b)}if(b===_)break}return g.length?{targetRange:{range:g,facts:f,declarations:p}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isJSDoc(u))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(e.isReturnStatement(u)&&!u.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var D=function(t){if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)){for(var r=0,n=void 0,i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t}(u),S=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)];return}(D)||T(D);return S?{errors:S}:{targetRange:{range:l(D),facts:f,declarations:p}};function T(t){var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&y(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(8388608&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(t);s&&function(t,r){for(var n=t;n!==r;){if(162===n.kind){e.hasSyntacticModifier(n,32)&&(f|=i.InStaticRegion);break}if(159===n.kind){165===e.getContainingFunction(n).kind&&(f|=i.InStaticRegion);break}164===n.kind&&e.hasSyntacticModifier(n,32)&&(f|=i.InStaticRegion),n=n.parent}}(t,s);var c,u=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=246===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;p.push(a.symbol)}switch(a.kind){case 258:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 105:if(200===a.parent.kind){var l=e.getContainingClass(a);if(l.pos<r.start||l.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else f|=i.UsesThis;break;case 206: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 249:case 248:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 218:case 205:case 164:case 165:case 166:case 167:return!1}var d=u;switch(a.kind){case 231:case 244:u=0;break;case 227:a.parent&&244===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 282:case 281:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 186:case 107:f|=i.UsesThis;break;case 242:var _=a.label;(c||(c=[])).push(_.escapedText),e.forEachChild(a,t),c.pop();break;case 238:case 237:(_=a.label)?e.contains(c,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(238===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 210:f|=i.IsAsyncFunction;break;case 216:f|=i.IsGenerator;break;case 239:4&u?f|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=d}(t),o}}function l(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function d(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function _(t,r){var a=r.file,o=function(t){var r=m(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(159===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),d(r)&&(o.push(r),294===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=[],y=[],h=new e.Map,v=[],b=m(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var T=0,E=r;T<E.length;T++){var C=E[T];_.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),p.push(new e.Map),f.push(e.isFunctionLikeDeclaration(C)&&248!==C.kind?[e.createDiagnosticForNode(C,n.cannotExtractToOtherFunctionLike)]:[]);var k=[];l&&k.push(l),e.isClassLike(C)&&e.isInJSFile(C)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToJSClass)),e.isArrowFunction(C)&&!e.isBlock(C.body)&&k.push(e.createDiagnosticForNode(C,n.cannotExtractToExpressionArrowFunction)),g.push(k)}var N=new e.Map,A=m(t.range)?e.factory.createBlock(t.range):t.range,F=m(t.range)?e.first(t.range):t.range,P=z(F);if(V(A),P&&!m(t.range)){U(s.getContextualType(t.range))}if(d.size>0){for(var w=new e.Map,I=0,O=F;void 0!==O&&I<r.length;O=O.parent)if(O===r[I]&&(w.forEach((function(e,t){_[I].typeParameterUsages.set(t,e)})),I++),e.isDeclarationWithTypeParameters(O))for(var M=0,L=e.getEffectiveTypeParameterDeclarations(O);M<L.length;M++){var R=L[M],B=s.getTypeAtLocation(R);d.has(B.id.toString())&&w.set(B.id.toString(),B)}e.Debug.assert(I===r.length,"Should have iterated all scopes")}if(y.length){var j=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(j,H)}for(var J=function(r){var i=_[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=m(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(m(t.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!m(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<r.length;K++)J(K);return{target:A,usagesPerScope:_,functionErrorsPerScope:f,constantErrorsPerScope:g,exposedVariableDeclarations:v};function z(t){return!!e.findAncestor(t,(function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length}))}function U(e){for(var t=0,r=s.getSymbolWalker((function(){return c.throwIfCancellationRequested(),!0})).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&d.set(n.id.toString(),n)}}function V(t,r){(void 0===r&&(r=1),P)&&U(s.getTypeAtLocation(t));if(e.isDeclaration(t)&&t.symbol&&y.push(t),e.isAssignmentExpression(t))V(t.left,2),V(t.right);else if(e.isUnaryExpressionWithWrite(t))V(t.operand,2);else if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))e.forEachChild(t,V);else if(e.isIdentifier(t)){if(!t.parent)return;if(e.isQualifiedName(t.parent)&&t!==t.parent.left)return;if(e.isPropertyAccessExpression(t.parent)&&t!==t.parent.expression)return;q(t,r,e.isPartOfTypeNode(t))}else e.forEachChild(t,V)}function q(t,n,i){var a=W(t,n,i);if(a)for(var o=0;o<r.length;o++){var s=p[o].get(a);s&&_[o].substitutions.set(e.getNodeId(t).toString(),s)}}function W(c,u,l){var d=G(c);if(d){var m=e.getSymbolId(d).toString(),y=N.get(m);if(y&&y>=u)return m;if(N.set(m,u),y){for(var h=0,v=_;h<v.length;h++){var b=v[h];b.usages.get(c.text)&&b.usages.set(c.text,{usage:u,symbol:d,node:c})}return m}var x=d.getDeclarations(),D=x&&e.find(x,(function(e){return e.getSourceFile()===o}));if(D&&!e.rangeContainsStartEnd(a,D.getStart(),D.end)){if(t.facts&i.IsGenerator&&2===u){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),T=0,E=f;T<E.length;T++){E[T].push(S)}for(var C=0,k=g;C<k.length;C++){k[C].push(S)}}for(var A=0;A<r.length;A++){var F=r[A];if(s.resolveName(d.name,F,d.flags,!1)!==d&&!p[A].has(m)){var P=Y(d.exportSymbol||d,F,l);if(P)p[A].set(m,P);else if(l){if(!(262144&d.flags)){S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope);f[A].push(S),g[A].push(S)}}else _[A].usages.set(c.text,{usage:u,symbol:d,node:c})}}return m}}}function H(r){if(!(r===t.range||m(t.range)&&t.range.indexOf(r)>=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(y,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();h.has(a)||(v.push(i),h.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 m(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 p(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function f(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function g(t,r){var n=e.map(t,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)})),i=e.map(r,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)}));return void 0===n?i:void 0===i?n:n.concat(i)}function m(t){return e.isArray(t)}function y(e){var t=e.parent;switch(t.kind){case 288:return!1}switch(e.kind){case 10:return 258!==t.kind&&262!==t.kind;case 217:case 193:case 195:return!1;case 78:return 195!==t.kind&&262!==t.kind&&267!==t.kind}return!0}function h(e){switch(e.kind){case 227:case 294:case 254:case 281:return!0;default:return!1}}function v(t){return(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&e.isJsxElement(t.parent)}t.registerRefactor("Extract Symbol",{getAvailableActions:s,getEditsForAction:c}),r.getAvailableActions=s,r.getEditsForAction=c,function(t){function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=r("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block")}(n=r.Messages||(r.Messages={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(i||(i={})),r.getRangeToExtract=u,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(a||(a={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){function r(t,r){void 0===r&&(r=!0);var i=t.file,a=t.startPosition,o=e.isSourceFileJS(i),s=e.getTokenAtPosition(i,a),c=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),u=c.pos===c.end&&r,l=e.findAncestor(s,(function(t){return t.parent&&e.isTypeNode(t)&&!n(c,t.parent,i)&&(u||e.nodeOverlapsWithStartEnd(s,i,c.pos,c.end))}));if(!l||!e.isTypeNode(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var d=t.program.getTypeChecker(),_=e.Debug.checkDefined(e.findAncestor(l,e.isStatement),"Should find a statement"),p=function(t,r,i,a){var o=[];return s(r)?void 0:o;function s(c){if(e.isTypeReferenceNode(c)){if(e.isIdentifier(c.typeName)&&(_=t.resolveName(c.typeName.text,c.typeName,262144,!0))){var u=e.cast(e.first(_.declarations),e.isTypeParameterDeclaration);n(i,u,a)&&!n(r,u,a)&&o.push(u)}}else if(e.isInferTypeNode(c)){var l=e.findAncestor(c,(function(t){return e.isConditionalTypeNode(t)&&n(t.extendsType,c,a)}));if(!l||!n(r,l,a))return!0}else if(e.isTypePredicateNode(c)||e.isThisTypeNode(c)){var d=e.findAncestor(c.parent,e.isFunctionLike);if(d&&d.type&&n(d.type,c,a)&&!n(r,d,a))return!0}else if(e.isTypeQueryNode(c)){var _;if(e.isIdentifier(c.exprName)){if((_=t.resolveName(c.exprName.text,c.exprName,111551,!1))&&n(i,_.valueDeclaration,a)&&!n(r,_.valueDeclaration,a))return!0}else if(e.isThisIdentifier(c.exprName.left)&&!n(r,c.parent,a))return!0}return a&&e.isTupleTypeNode(c)&&e.getLineAndCharacterOfPosition(a,c.pos).line===e.getLineAndCharacterOfPosition(a,c.end).line&&e.setEmitFlags(c,1),e.forEachChild(c,s)}}(d,l,_,i);return p?{info:{isJS:o,selection:l,firstStatement:_,typeParameters:p,typeElements:function t(r,n){if(!n)return;if(e.isIntersectionTypeNode(n)){for(var i=[],a=new e.Map,o=0,s=n.types;o<s.length;o++){var c=t(r,s[o]);if(!c||!c.every((function(t){return t.name&&e.addToSeen(a,e.getNameFromPropertyName(t.name))})))return;e.addRange(i,c)}return i}if(e.isParenthesizedTypeNode(n))return t(r,n.type);if(e.isTypeLiteralNode(n))return n.members;return}(d,l)}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function n(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor("Extract type",{getAvailableActions:function(t){var n=r(t,"invoked"===t.triggerReason);return n?void 0===n.error?[{name:"Extract type",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:n.info.isJS?[{name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef)}]:e.append([{name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias)}],n.info.typeElements&&{name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface)})}]:t.preferences.provideRefactorNotApplicableReason?[{name:"Extract type",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[{name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),notApplicableReason:n.error},{name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),notApplicableReason:n.error},{name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),notApplicableReason:n.error}]}]:e.emptyArray:e.emptyArray},getEditsForAction:function(t,n){var i,a=t.file,o=e.Debug.checkDefined(null===(i=r(t))||void 0===i?void 0:i.info,"Expected to find a range to extract"),s=e.getUniqueName("NewType",a),c=e.textChanges.ChangeTracker.with(t,(function(t){switch(n){case"Extract to type alias":return e.Debug.assert(!o.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,n,s.map((function(t){return e.factory.updateTypeParameterDeclaration(t,t.name,t.constraint,void 0)})),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))))}(t,a,s,o);case"Extract to typedef":return e.Debug.assert(o.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(n)),u=[];e.forEach(s,(function(t){var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);u.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(u,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))))}(t,a,s,o);case"Extract to interface":return e.Debug.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=i.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,n,s,void 0,c);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(u),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))))}(t,a,s,o);default:e.Debug.fail("Unexpected action name")}})),u=a.fileName;return{edits:c,renameFilename:u,renameLocation:e.getRenameLocation(c,u,s,!1)}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){var r,n;t.generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,t.registerRefactor(r,{getEditsForAction:function(t,r){if(t.endPosition){var n=e.codefix.getAccessorConvertiblePropertyAtPosition(t.file,t.startPosition,t.endPosition);if(n&&n.info){var i=e.codefix.generateAccessorFromProperty(t.file,t.startPosition,t.endPosition,t,r);if(i){var a=t.file.fileName,o=n.info.renameAccessor?n.info.accessorName:n.info.fieldName;return{renameFilename:a,renameLocation:(e.isIdentifier(o)?0:-1)+e.getRenameLocation(i,a,o.text,e.isParameter(n.info.declaration)),edits:i}}}}},getAvailableActions:function(t){if(!t.endPosition)return e.emptyArray;var i=e.codefix.getAccessorConvertiblePropertyAtPosition(t.file,t.startPosition,t.endPosition,"invoked"===t.triggerReason);return i?i.error?t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[{name:r,description:n,notApplicableReason:i.error}]}]:e.emptyArray:[{name:r,description:n,actions:[{name:r,description:n}]}]:e.emptyArray}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){function n(t){var r=function(t){var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(function(e){return e.end>n.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}}(t);if(void 0!==r){var n=[],i=[],a=r.toMove,o=r.afterLast;return e.getRangesWhere(a,(function(t){return!function(t){switch(t.kind){case 258:return!0;case 257:return!e.hasSyntacticModifier(t,1);case 229:return t.declarationList.declarations.every((function(t){return!!t.initializer&&e.isRequireCall(t.initializer,!0)}));default:return!1}}(t)}),(function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:i}}}function i(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function a(e){return 258===e.kind?e.moduleSpecifier:257===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function o(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function s(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((function(t){return e.factory.createImportSpecifier(void 0,e.factory.createIdentifier(t))}));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)}));return s.length?c(e.factory.createObjectBindingPattern(s),void 0,u(e.factory.createStringLiteral(n))):void 0}function c(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function u(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function l(t,r,n,i){switch(r.kind){case 258:!function(t,r,n,i){if(!r.importClause)return;var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),u=!s||(260===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((function(e){return i(e.name)})));if(c&&u)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(u)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(261===s.kind)for(var l=0,d=s.elements;l<d.length;l++){var _=d[l];i(_.name)&&n.delete(t,_)}}(t,r,n,i);break;case 257:i(r.name)&&n.delete(t,r);break;case 246:!function(t,r,n,i){var a=r.name;switch(a.kind){case 78:i(a)&&n.delete(t,a);break;case 194:break;case 193:if(a.elements.every((function(t){return e.isIdentifier(t.name)&&i(t.name)})))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}}(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind "+r.kind)}}function d(t){switch(t.kind){case 257:case 262:case 259:case 260:return!0;case 246:return _(t);case 195:return e.isVariableDeclaration(t.parent.parent)&&_(t.parent.parent);default:return!1}}function _(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function p(t,r,n){switch(t.kind){case 258:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&function(t,r){if(260===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((function(e){return r(e.name)}));return n.length?e.factory.createNamedImports(n):void 0}(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),r):void 0;case 257:return n(t.name)?t:void 0;case 246:var s=function(t,r){switch(t.kind){case 78:return r(t)?t:void 0;case 194:return t;case 193:var n=t.elements.filter((function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)}));return n.length?e.factory.createObjectBindingPattern(n):void 0}}(t.name,n);return s?c(s,t.type,u(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind "+t.kind)}}function f(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor("Move to a new file",{getAvailableActions:function(t){if(!t.preferences.allowTextChangesInNewFiles||void 0===n(t))return e.emptyArray;var r=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:"Move to a new file",description:r,actions:[{name:"Move to a new file",description:r}]}]},getEditsForAction:function(t,c){e.Debug.assert("Move to a new file"===c,"Wrong refactor invoked");var _=e.Debug.checkDefined(n(t));return{edits:e.textChanges.ChangeTracker.with(t,(function(n){return c=t.file,k=t.program,N=_,A=n,F=t.host,P=t.preferences,w=k.getTypeChecker(),I=function(t,r,n){var i=new g,a=new g,o=new g,s=S(e.find(r,(function(e){return!!(2&e.transformFlags)})));s&&a.add(s);for(var c=0,u=r;c<u.length;c++)v(D=u[c],(function(t){i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var l=0,_=r;l<_.length;l++)f(D=_[l],n,(function(e){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var s=n[r];d(s)?a.add(e):m(s)&&y(s)===t&&!i.has(e)&&o.add(e)}}));for(var p=a.clone(),h=new g,b=0,x=t.statements;b<x.length;b++){var D=x[b];e.contains(r,D)||(s&&2&D.transformFlags&&p.delete(s),f(D,n,(function(e){i.has(e)&&h.add(e),p.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:h,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:p};function S(t){if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,d)?i:void 0}}}(c,N.all,w),O=e.getDirectoryPath(c.fileName),M=e.extensionFromPath(c.fileName),L=function(t,r,n,i){for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a=t+"."+o}}(I.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",M,O,F),R=L+M,A.createNewFile(c,e.combinePaths(O,R),function(t,n,c,d,_,f,g){var y=_.getTypeChecker();if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return i(t,d.ranges,c),d.all;var k=!!t.externalModuleIndicator,N=e.getQuotePreference(t,g),A=function(t,r,n,i){var a,o=[];return t.forEach((function(t){"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),s(a,o,r,n,i)}(n.oldFileImportsFromNewFile,f,k,N);A&&e.insertImports(c,t,A,!0),function(t,r,n,i,a){for(var s=0,c=t.statements;s<c.length;s++){var u=c[s];e.contains(r,u)||o(u,(function(e){return l(t,e,n,(function(e){return i.has(a.getSymbolAtLocation(e))}))}))}}(t,d.all,c,n.unusedImportsFromOldFile,y),i(t,d.ranges,c),function(t,r,n,i,s){for(var c=r.getTypeChecker(),d=function(r){if(r===n)return"continue";for(var d=function(d){o(d,(function(o){if(c.getSymbolAtLocation(a(o))===n.symbol){var _=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(c,t.parent):e.skipAlias(c.getSymbolAtLocation(t),c);return!!r&&i.has(r)};l(r,o,t,_);var f=e.combinePaths(e.getDirectoryPath(a(o).text),s),g=p(o,e.factory.createStringLiteral(f),_);g&&t.insertNodeAfter(r,d,g);var m=function(t){switch(t.kind){case 258:return t.importClause&&t.importClause.namedBindings&&260===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 257:return t.name;case 246:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(o);m&&function(t,r,n,i,a,o,s,c){var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),d=!1,_=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(function(t){e.isPropertyAccessExpression(t.parent)&&(d=d||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&_.push(t))})),_.length){for(var p=d?e.getUniqueName(l,r):l,f=0,g=_;f<g.length;f++){var m=g[f];t.replaceNode(r,m,e.factory.createIdentifier(p))}t.insertNodeAfter(r,c,function(t,r,n){var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 258:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a);case 257:return e.factory.createImportEqualsDeclaration(void 0,void 0,i,e.factory.createExternalModuleReference(a));case 246:return e.factory.createVariableDeclaration(i,void 0,void 0,u(a));default:return e.Debug.assertNever(t,"Unexpected node kind "+t.kind)}}(c,a,o))}}(t,r,c,i,s,f,m,o)}}))},_=0,f=r.statements;_<f.length;_++)d(f[_])},_=0,f=r.getSourceFiles();_<f.length;_++)d(f[_])}(c,_,t,n.movedSymbols,f);var F=function(t,r,n,i,c,u,l){for(var d,_=[],f=0,g=t.statements;f<g.length;f++)o(g[f],(function(t){e.append(_,p(t,a(t),(function(e){return r.has(c.getSymbolAtLocation(e))})))}));var y=[],h=e.nodeSeenTracker();return n.forEach((function(r){for(var n=0,a=r.declarations;n<a.length;n++){var o=a[n];if(m(o)){var s=b(o);if(s){var c=x(o);h(c)&&D(t,c,i,u),e.hasSyntacticModifier(o,512)?d=s:y.push(s.text)}}}})),e.append(_,s(d,y,e.removeFileExtension(e.getBaseFileName(t.fileName)),u,l)),_}(t,n.oldImportsNeededByNewFile,n.newFileImportsFromOldFile,c,y,k,N),P=function(t,n,i,a){return e.flatMap(n,(function(n){if(function(t){return e.Debug.assert(e.isSourceFile(t.parent),"Node parent should be a SourceFile"),h(t)||e.isVariableStatement(t)}(n)&&!S(t,n,a)&&v(n,(function(t){return i.has(e.Debug.checkDefined(t.symbol))}))){var o=function(e,t){return t?[T(e)]:function(e){return r([e],E(e).map(C))}(e)}(n,a);if(o)return o}return n}))}(t,d.all,n.oldFileImportsFromNewFile,k);return F.length&&P.length?r(F,[4],P):r(F,P)}(c,I,A,N,k,L,P)),void function(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),u=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),l=u&&e.find(u.properties,(function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text}));l&&e.isArrayLiteralExpression(l.initializer)&&r.insertNodeInListAfter(o,e.last(l.initializer.elements),e.factory.createStringLiteral(c),l.initializer.elements)}}(k,A,c.fileName,R,e.hostGetCanonicalFileName(F));var c,k,N,A,F,P,w,I,O,M,L,R})),renameFilename:void 0,renameLocation:void 0}}});var g=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function m(t){return h(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function y(t){return e.isVariableDeclaration(t)?t.parent.parent.parent:t.parent}function h(e){switch(e.kind){case 248:case 249:case 253:case 252:case 251:case 250:case 257:return!0;default:return!1}}function v(t,r){switch(t.kind){case 248:case 249:case 253:case 252:case 251:case 250:case 257:return r(t);case 229:return e.firstDefined(t.declarationList.declarations,(function(t){return function t(r,n){switch(r.kind){case 78:return n(e.cast(r.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));case 194:case 193:return e.firstDefined(r.elements,(function(r){return e.isOmittedExpression(r)?void 0:t(r.name,n)}));default:return e.Debug.assertNever(r,"Unexpected name kind "+r.kind)}}(t.name,r)}));case 230:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function b(t){return e.isExpressionStatement(t)?e.tryCast(t.expression.left.name,e.isIdentifier):e.tryCast(t.name,e.isIdentifier)}function x(t){switch(t.kind){case 246:return t.parent.parent;case 195:return x(e.cast(t.parent.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));default:return t}}function D(t,r,n,i){if(!S(t,r,i))if(i)e.isExpressionStatement(r)||n.insertExportModifier(t,r);else{var a=E(r);0!==a.length&&n.insertNodesAfter(t,r,a.map(C))}}function S(t,r,n){return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1):E(r).some((function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))}))}function T(t){var r=e.concatenate([e.factory.createModifier(92)],t.modifiers);switch(t.kind){case 248:return e.factory.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 249:return e.factory.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 229:return e.factory.updateVariableStatement(t,r,t.declarationList);case 253:return e.factory.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 252:return e.factory.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 251:return e.factory.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 250:return e.factory.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 257:return e.factory.updateImportEqualsDeclaration(t,t.decorators,r,t.name,t.moduleReference);case 230:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind "+t.kind)}}function E(t){switch(t.kind){case 248:case 249:return[t.name.text];case 229:return e.mapDefined(t.declarationList.declarations,(function(t){return e.isIdentifier(t.name)?t.name.text:void 0}));case 253:case 252:case 251:case 250:case 257:return e.emptyArray;case 230:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind "+t.kind)}}function C(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),62,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){!function(r){var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,a=e.Diagnostics.Add_braces_to_arrow_function.message,o=e.Diagnostics.Remove_braces_from_arrow_function.message;function s(t,r,n){void 0===n&&(n=!0);var i=e.getTokenAtPosition(t,r),a=e.getContainingFunction(i);if(!a)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(a))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(a,i)&&(!e.rangeContainsRange(a.body,i)||n)){if(e.isExpression(a.body))return{info:{func:a,addBraces:!0,expression:a.body}};if(1===a.body.statements.length){var o=e.first(a.body.statements);if(e.isReturnStatement(o))return{info:{func:a,addBraces:!1,expression:o.expression,returnStatement:o}}}}}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=t.startPosition,a=s(n,i);if(!a||!a.info)return;var o,c=a.info,u=c.expression,l=c.returnStatement,d=c.func;if("Add braces to arrow function"===r){var _=e.factory.createReturnStatement(u);o=e.factory.createBlock([_],!0),e.suppressLeadingAndTrailingTrivia(o),e.copyLeadingComments(u,_,n,3,!0)}else if("Remove braces from arrow function"===r&&l){var p=u||e.factory.createVoidZero();o=e.needsParentheses(p)?e.factory.createParenthesizedExpression(p):p,e.suppressLeadingAndTrailingTrivia(o),e.copyTrailingAsLeadingComments(l,o,n,3,!1),e.copyLeadingComments(l,o,n,3,!1),e.copyTrailingComments(l,o,n,3,!1)}else e.Debug.fail("invalid action");var f=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNode(n,d.body,o)}));return{renameFilename:void 0,renameLocation:void 0,edits:f}},getAvailableActions:function(t){var r=t.file,c=t.startPosition,u=t.triggerReason,l=s(r,c,"invoked"===u);if(!l)return e.emptyArray;if(void 0===l.error)return[{name:n,description:i,actions:[l.info.addBraces?{name:"Add braces to arrow function",description:a}:{name:"Remove braces from arrow function",description:o}]}];if(t.preferences.provideRefactorNotApplicableReason)return[{name:n,description:i,actions:[{name:"Add braces to arrow function",description:a,notApplicableReason:l.error},{name:"Remove braces from arrow function",description:o,notApplicableReason:l.error}]}];return e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){!function(n){var i="Convert parameters to destructured object";function a(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function o(t){if(e.isDeclaration(t.node.parent))return t.node}function s(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 200:case 201:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 198:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 199:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function c(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 198:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 199:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function u(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function l(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!function(t){var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(function(t){return!e.isJSDocNode(t)}));return!!n&&e.isFunctionLikeDeclaration(n)}return!1}(i))return!(a&&function(t,r){if(!function(t,r){return function(e){if(f(e))return e.length-1;return e.length}(t)>=2&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 248:return _(t)&&d(t,r);case 164:return d(t,r);case 165:return e.isClassDeclaration(t.parent)?_(t.parent)&&d(t,r):p(t.parent.parent)&&d(t,r);case 205:case 206: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,h=t.cancellationToken,v=t.host,b=l(d,_,p.getTypeChecker());if(!b||!h)return;var x=function(t,n,i){var l=function(t){switch(t.kind){case 248:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless function declaration should be a default export")];case 164:return[t.name];case 165:var r=e.Debug.checkDefined(e.findChildOfKind(t,132,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 218===t.parent.kind?[t.parent.parent.name,r]:[r];case 206:return[t.parent.name];case 205: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 249: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 218: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;g<y.length;g++){var h=y[g];if(1===h.kind){if(e.contains(_,m(h.node))||e.isNewExpressionTarget(h.node)){if(a(h))continue;if(b=o(h)){i.declarations.push(b);continue}var v=s(h);if(v){i.functionCalls.push(v);continue}}if(f&&e.contains(p,m(h.node))){var b;if(a(h))continue;if(b=o(h)){i.declarations.push(b);continue}var x=c(h);if(x){n.accessExpressions.push(x);continue}if(e.isClassDeclaration(t.parent)){var D=u(h);if(D){n.typeUsages.push(D);continue}}}i.valid=!1}else i.valid=!1}return i}function m(t){var r=p.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,p)}}(b,p,h);if(x.valid){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(t){return function(t,r,n,i,a,o){var s=e.map(function(t,r,n){var i,a=r.getTypeChecker(),o=g(t.parameters),s=e.map(o,p),c=e.factory.createObjectBindingPattern(s),u=m(o);e.every(o,b)&&(i=e.factory.createObjectLiteralExpression());var l=e.factory.createParameterDeclaration(void 0,void 0,void 0,c,void 0,u,i);if(f(t.parameters)){var d=t.parameters[0],_=e.factory.createParameterDeclaration(void 0,void 0,void 0,d.name,void 0,d.type);return e.suppressLeadingAndTrailingTrivia(_.name),e.copyComments(d.name,_.name),d.type&&(e.suppressLeadingAndTrailingTrivia(_.type),e.copyComments(d.type,_.type)),e.factory.createNodeArray([_,l])}return e.factory.createNodeArray([l]);function p(t){var r=e.factory.createBindingElement(void 0,void 0,y(t),e.isRestParameter(t)&&b(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r}function m(t){var r=e.map(t,h);return e.addEmitFlags(e.factory.createTypeLiteralNode(r),1)}function h(t){var r=t.type;r||!t.initializer&&!e.isRestParameter(t)||(r=v(t));var n=e.factory.createPropertySignature(void 0,y(t),b(t)?e.factory.createToken(57):t.questionToken,r);return e.suppressLeadingAndTrailingTrivia(n),e.copyComments(t.name,n.name),t.type&&n.type&&e.copyComments(t.type,n.type),n}function v(t){var i=a.getTypeAtLocation(t);return e.getTypeNodeIfAccessible(i,t,r,n)}function b(t){if(e.isRestParameter(t)){var r=a.getTypeAtLocation(t);return!a.isTupleType(r)}return a.isOptionalParameter(t)}}(a,r,n),(function(t){return e.getSynthesizedDeepClone(t)}));i.replaceNodeRangeWithNodes(t,e.first(a.parameters),e.last(a.parameters),s,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include});for(var c=e.sortAndDeduplicate(o.functionCalls,(function(t,r){return e.compareValues(t.pos,r.pos)})),u=0,l=c;u<l.length;u++){var d=l[u];if(d.arguments&&d.arguments.length){var _=e.getSynthesizedDeepClone(m(a,d.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(d),e.first(d.arguments),e.last(d.arguments),_,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}}(d,p,v,t,b,x)}))}}return{edits:[]}},getAvailableActions:function(t){var r=t.file,n=t.startPosition;if(e.isSourceFileJS(r))return e.emptyArray;if(!l(r,n,t.program.getTypeChecker()))return e.emptyArray;var a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object);return[{name:i,description:a,actions:[{name:i,description:a}]}]}})}(t.convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){!function(r){var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string);function a(t,r){var n=e.getTokenAtPosition(t,r),i=c(n);return!u(i)&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function o(t,r){var n=c(r),i=t.file,a=function(t,r){var n=t.nodes,i=t.operators,a=function(t,r){return function(n,i){n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)}}(i,r),o=function(t,r,n){return function(i,a){for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,a),s=d(0,n),c=s[0],u=s[1],l=s[2];if(c===n.length){var p=e.factory.createNoSubstitutionTemplateLiteral(u);return o(l,p),p}var f=[],g=e.factory.createTemplateHead(u);o(l,g);for(var m=c;m<n.length;m++){var y=_(n[m]);a(m,y);var h=d(m+1,n),v=h[0],b=h[1],x=h[2],D=(m=v-1)===n.length-1?e.factory.createTemplateTail(b):e.factory.createTemplateMiddle(b);o(x,D),f.push(e.factory.createTemplateSpan(y,D))}return e.factory.createTemplateExpression(g,f)}(l(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],u={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(function(e){e.deleteRange(i,u),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,n,a)}))}function s(e){return 62!==e.operatorToken.kind}function c(t){for(;e.isBinaryExpression(t.parent)&&s(t.parent);)t=t.parent;return t}function u(e){var t=l(e),r=t.containsString,n=t.areOperatorsValid;return r&&n}function l(t){if(e.isBinaryExpression(t)){var r=l(t.left),n=r.nodes,i=r.operators,a=r.containsString,o=r.areOperatorsValid;if(!a&&!e.isStringLiteral(t.right))return{nodes:[t],operators:[],containsString:!1,areOperatorsValid:!0};var s=39===t.operatorToken.kind,c=o&&s;return n.push(t.right),i.push(t.operatorToken),{nodes:n,operators:i,containsString:!0,areOperatorsValid:c}}return{nodes:[t],operators:[],containsString:e.isStringLiteral(t),areOperatorsValid:!0}}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,s=t.startPosition,c=a(n,s);switch(r){case i:return{edits:o(t,c)};default:return e.Debug.fail("invalid action")}},getAvailableActions:function(t){var r=t.file,o=t.startPosition,s=c(a(r,o)),l={name:n,description:i,actions:[]};if(e.isBinaryExpression(s)&&u(s))return l.actions.push({name:n,description:i}),[l];return e.emptyArray}});function d(t,r){for(var n="",i=[];t<r.length&&e.isStringLiteral(r[t]);){n+=r[t].text,i.push(t),t++}return[t,n,i]}function _(t){return e.isParenthesizedExpression(t)&&(!function(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}(t),t=t.expression),t}}(t.convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){!function(r){var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),o=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),s=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function);function c(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function u(t,r,n){var i=e.getTokenAtPosition(t,r),a=function(t){if(!function(t){return e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length}(t))return;var r=(e.isVariableDeclaration(t)?t:t.declarations[0]).initializer;return r&&e.isArrowFunction(r)?r:void 0}(i.parent);if(a&&!c(a.body))return{selectedVariableDeclaration:!0,func:a};var o=e.getContainingFunction(i),s=n.getTypeChecker();if(o&&(e.isFunctionExpression(o)||e.isArrowFunction(o))&&!e.rangeContainsRange(o.body,i)&&!c(o.body)){if(e.isFunctionExpression(o)&&o.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(o.name,s,t))return;return{selectedVariableDeclaration:!1,func:o}}}function l(t){return e.isExpression(t)?e.factory.createBlock([e.factory.createReturnStatement(t)],!0):t}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=t.startPosition,a=t.program,o=u(n,i,a);if(!o)return;var s=o.func,c=[];switch(r){case"Convert to anonymous function":c.push.apply(c,function(t,r){var n=t.file,i=l(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(n,r,a)}))}(t,s));break;case"Convert to named function":var d=function(t){var r=t.parent;if(!e.isVariableDeclaration(r)||!e.isVariableDeclarationInVariableStatement(r))return;var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}(s);if(!d)return;c.push.apply(c,function(t,r,n){var i=t.file,a=l(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,u=n.name;e.suppressLeadingTrivia(c);var d=e.factory.createFunctionDeclaration(r.decorators,c.modifiers,r.asteriskToken,u,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,c,d)})):e.textChanges.ChangeTracker.with(t,(function(e){e.delete(i,o),e.insertNodeAfter(i,c,d)}))}(t,s,d));break;case"Convert to arrow function":if(!e.isFunctionExpression(s))return;c.push.apply(c,function(t,r){var n,i=t.file,a=r.body.statements[0];!function(t,r){return 1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression}(r.body,a)?n=r.body:(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n));var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,r,o)}))}(t,s));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:c}},getAvailableActions:function(t){var r=t.file,c=t.startPosition,l=t.program,d=u(r,c,l);if(!d)return e.emptyArray;var _=d.selectedVariableDeclaration,p=d.func,f=[];(_||e.isArrowFunction(p)&&e.isVariableDeclaration(p.parent))&&f.push({name:"Convert to named function",description:o});!_&&e.isArrowFunction(p)&&f.push({name:"Convert to anonymous function",description:a});e.isFunctionExpression(p)&&f.push({name:"Convert to arrow function",description:s});return[{name:n,description:i,actions:f}]}})}(t.convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){function t(t,r,n,a){var o=e.isNodeKind(t)?new i(t,r,n):78===t?new l(78,r,n):79===t?new d(79,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(329,e.pos,e.end,r);n._children=[];for(var i=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];a(n._children,i,c.pos,r),n._children.push(c),i=c.end}return a(n._children,i,e.end,r),n}(e,r)),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,c),a(i,o,r.end,r),e.scanner.setText(void 0),i}(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(function(e){return e.kind<298||e.kind>328}));return n.kind<156?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<156?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<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(78===o&&e.Debug.fail("Did not expect "+e.Debug.formatSyntaxKind(a.kind)+" to have an Identifier in its trivia"),r.push(t(o,n,s,a))),n=s,1===o)break}}var o=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),s=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=g([r],t)}else this.documentationComment=g(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){switch(null==t?void 0:t.kind){case 166:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=g(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorDocumentationComment;case 167:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=g(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(r)}},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),u=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return c(t,e),t}(o),l=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=78,i}return c(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(o);l.prototype.kind=78;var d=function(t){function r(e,r,n){return t.call(this,r,n)||this}return c(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(o);d.prototype.kind=79;var _=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},Object.defineProperty(t.prototype,"typeArguments",{get:function(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),p=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=g(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}();function f(t){return e.getJSDocTags(t).some((function(e){return"inheritDoc"===e.tagName.text}))}function g(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);return(0===n.length||t.some(f))&&e.forEachUnique(t,(function(t){var i=function(t,r,n){return e.firstDefined(t.parent?e.getAllSuperTypeNodes(t.parent):e.emptyArray,(function(e){var t=n.getTypeAtLocation(e),i=t&&n.getPropertyOfType(t,r),a=i&&i.getDocumentationComment(n);return a&&a.length?a:void 0}))}(t,t.symbol.name,r);i&&(n=0===n.length?i.slice():i.concat(e.lineBreakPart(),n))})),n}var m=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=294,i}return c(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 248:case 205:case 164:case 163: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 249:case 218:case 250:case 251:case 252:case 253:case 257:case 267:case 262:case 259:case 260:case 166:case 167:case 176:r(a),e.forEachChild(a,i);break;case 159:if(!e.hasSyntacticModifier(a,92))break;case 246:case 195:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 288:case 162:case 161:r(a);break;case 264:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 258:var _=a.importClause;_&&(_.name&&r(_.name),_.namedBindings&&(260===_.namedBindings.kind?r(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 213: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 h(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!v(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[v(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function b(){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=b,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<i.length;n++){var a=i[n];this.createEntry(a,e.toPath(a,this.currentDirectory,r))}this._compilationSettings=t.getCompilationSettings()||{target:1,jsx:1}}return t.prototype.compilationSettings=function(){return this._compilationSettings},t.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach((function(r){e.isString(r)?t.push(r):t.push(r.hostFileName)})),t},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),D=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r)throw new Error("Could not find file: '"+t+"'.");var n,i=e.getScriptKind(t,this.host),a=this.host.getScriptVersion(t);if(this.currentFileName!==t)n=T(t,r,99,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=E(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function S(e,t,r){e.version=r,e.scriptSnapshot=t}function T(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return S(s,r,i),s}function E(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var u=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+u+c:s?s+u:u+c}var l=e.updateSourceFile(t,o,i,a);return S(l,r,n),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return T(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=T,e.updateLanguageServiceSourceFile=E;var C=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}(),k=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=k;var N=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],A=r(N,["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function F(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(157===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(t.parent)||197!==t.parent.parent.kind&&278!==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 D(t),d=0,_=new C(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 v(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 b(){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),h=l.getRootFileNames(),v=t.hasInvalidatedResolution||e.returnFalse,b=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),D=l.getProjectReferences();if(!e.isProgramUptoDate(c,h,l.compilationSettings(),(function(e,r){return t.getScriptVersion(r)}),k,v,b,D)){var S=l.compilationSettings(),T={getSourceFile:function(t,r,n,i){return N(t,e.toPath(t,p,m),r,n,i)},getSourceFileByPath:N,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:v,hasChangedAutomaticTypeDirectiveNames:b,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,T);var E=i.getKeyForCompilationSettings(S),C={rootNames:h,options:S,host:T,oldProgram:c,projectReferences:D};return c=e.createProgram(C),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 N(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,E,s.scriptSnapshot,s.version,s.scriptKind)}return i.acquireDocumentWithKey(t,r,S,E,s.scriptSnapshot,s.version,s.scriptKind)}}}function S(){if(s!==e.LanguageServiceMode.Syntactic)return b(),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}))),b();var a=e.mapDefined(n,(function(e){return c.getSourceFile(e)})),o=v(t);return e.DocumentHighlights.getDocumentHighlights(c,_,o,r,a)}function E(t,r,n,i){b();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 h=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),v=f.exec(h);v&&(_=Math.min(_,v.index),p.set(y.toString(),v.index),h.substr(v.index,m.length)!==m&&(d=void 0===n||n))}for(y=c;y<=u;y++){var b=p.get(y.toString());void 0!==b&&(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]+b,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+b}}))}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?"\\{\\/\\*":"\\/\\*",h=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var v=c.substr(p,g.length)===g?g.length:0,b=e.isInComment(o,p+v);if(b)f&&(b.pos--,b.end++),_.push(b.pos),3===b.kind&&_.push(b.end),u=!0,p=b.end+1;else{var x=c.substring(p,r.end).search("("+y+")|("+h+")");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 D=_[0];c.substr(D,g.length)!==g&&s.push({newText:g,span:{length:0,start:D}});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,E=_;T<E.length;T++){var C=E[T],k=C-m.length>0?C-m.length:0;v=c.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:C-v}})}return s}function R(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 B={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 b(),c.getSyntacticDiagnostics(v(e),_).slice()},getSemanticDiagnostics:function(t){b();var n=v(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 b(),e.computeSuggestionDiagnostics(v(t),c,_)},getCompilerOptionsDiagnostics:function(){return b(),r(c.getOptionsDiagnostics(_),c.getGlobalDiagnostics(_))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,l.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return k(t)?(b(),e.getSemanticClassifications(c.getTypeChecker(),_,v(t),c.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,l.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return k(t)?(b(),e.getEncodedSemanticClassifications(c.getTypeChecker(),_,v(t),c.getClassifiableNames(),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 b(),e.Completions.getCompletionsAtPosition(t,c,f,v(r),i,o,a.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,a,o,s){return void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(c,f,v(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),b(),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;b();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,_)},getQuickInfoAtPosition:function(t,r){b();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;return t}(i),s=function(t,r){var n=F(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 198:case 156:return!e.isInComment(t,n);case 107:case 186: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 b(),e.GoToDefinition.getDefinitionAtPosition(c,v(t),r)},getDefinitionAndBoundSpan:function(t,r){return b(),e.GoToDefinition.getDefinitionAndBoundSpan(c,v(t),r)},getImplementationAtPosition:function(t,r){return b(),e.FindAllReferences.getImplementationsAtPosition(c,_,c.getSourceFiles(),v(t),r)},getTypeDefinitionAtPosition:function(t,r){return b(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),v(t),r)},getReferencesAtPosition:function(t,r){return b(),E(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return b(),e.FindAllReferences.findReferencedSymbols(c,_,c.getSourceFiles(),v(t),r)},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 198:case 156:case 10:case 94:case 109:case 103:case 105:case 107:case 186: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(253!==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),b();var a=n?[v(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return b(),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){b();var s=v(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 E(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){b();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<r.length;p++)c[p+3]&&(d=r[p]);if(void 0===d)return e.Debug.fail();if(!((i=a.charCodeAt(l+d.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var f=c[2];o.push({descriptor:d,message:f,position:l})}}}return o},getBraceMatchingAtPosition:function(t,r){var n=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=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){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&&function t(r){var n=r.openingElement,i=r.closingElement,a=r.parent;return!e.tagNamesAreEquivalent(n.tagName,i.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(n.tagName,a.openingElement.tagName)&&t(a)}(a)?{newText:"</"+a.openingElement.tagName.getText(n)+">"}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=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),b();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),b(),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 I(e)}))):I(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),b(),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)},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){b();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: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),b();var a=v(t);return e.refactor.getApplicableRefactors(R(a,r,n,e.emptyOptions,i))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),b();var s=v(t);return e.refactor.getEditsForRefactor(R(s,n,o,r),i,a)},toLineColumnOffset:y.toLineColumnOffset,getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(t,r){b();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){b();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){b();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}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:N.forEach((function(e){return B[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:A.forEach((function(e){return B[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return B},e.getNameTable=function(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)||269===t.parent.kind||function(e){return e&&e.parent&&199===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else if(e.isPrivateIdentifier(n)){i=n.escapedText;r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))}(t),t.nameTable},e.getContainingObjectLiteralElement=F,e.getPropertySymbolsFromContextualType=P,e.getDefaultLibFilePath=function(t){return"/prettier-security-dirname-placeholder"+e.directorySeparator+e.getDefaultLibFileName(t)},e.setObjectAllocator({getNodeConstructor:function(){return i},getTokenConstructor:function(){return u},getIdentifierConstructor:function(){return l},getPrivateIdentifierConstructor:function(){return d},getSourceFileConstructor:function(){return m},getSymbolConstructor:function(){return s},getTypeConstructor:function(){return _},getSignatureConstructor:function(){return p},getSourceMapSourceConstructor:function(){return y}})}(u||(u={})),function(e){!function(t){t.spanInSourceFileAtLocation=function(t,r){if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return 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 229:return h(r.declarationList.declarations[0]);case 246:case 162:case 161:return h(r);case 159:return function t(r){if(e.isBindingPattern(r.name))return D(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 248:case 164:case 163:case 166:case 167:case 165:case 205:case 206:return function(e){if(!e.body)return;if(v(e))return o(e);return d(e.body)}(r);case 227:if(e.isFunctionBlock(r))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();if(v(e.parent))return c(e.parent,t);return d(t)}(r);case 254:return b(r);case 284:return b(r.block);case 230:return o(r.expression);case 239:return o(r.getChildAt(0),r.expression);case 233:return s(r,r.expression);case 232:return d(r.statement);case 245:return o(r.getChildAt(0));case 231:return s(r,r.expression);case 242:return d(r.statement);case 238:case 237:return o(r.getChildAt(0),r.label);case 234: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 235:return s(r,r.expression);case 236:return x(r);case 241:return s(r,r.expression);case 281:case 282:return d(r.statements[0]);case 244:return b(r.tryBlock);case 243:case 263:return o(r,r.expression);case 257:return o(r,r.moduleReference);case 258:case 264:return o(r,r.moduleSpecifier);case 253:if(1!==e.getModuleInstanceState(r))return;case 249:case 252:case 288:case 195:return o(r);case 240:return d(r.statement);case 160:return m=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,m.pos),m.end);case 193:case 194:return D(r);case 250:case 251: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 252:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 249:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 255:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 254:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 252:case 249:return o(t);case 227:if(e.isFunctionBlock(t.parent))return o(t);case 284:return d(e.lastOrUndefined(t.parent.statements));case 255:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 193: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 194: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(232===e.parent.kind||200===e.parent.kind||201===e.parent.kind)return u(e);if(204===e.parent.kind)return l(e);return d(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 205:case 248:case 206:case 164:case 163:case 166:case 167:case 165:case 233:case 232:case 234:case 236:case 200:case 201:case 204:return u(e);default:return d(e.parent)}}(r);case 58:return function(t){if(e.isFunctionLike(t.parent)||285===t.parent.kind||159===t.parent.kind)return u(t);return d(t.parent)}(r);case 31:case 29:return function(e){if(203===e.parent.kind)return l(e);return d(e.parent)}(r);case 114:return function(e){if(232===e.parent.kind)return s(e,e.parent.expression);return d(e.parent)}(r);case 90:case 82:case 95:return l(r);case 155:return function(e){if(236===e.parent.kind)return l(e);return d(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if((78===r.kind||217===r.kind||285===r.kind||286===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(213===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 232:return u(r);case 160:return d(r.parent);case 234:case 236:return o(r);case 213:if(27===r.parent.operatorToken.kind)return o(r);break;case 206:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 285:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 203:if(r.parent.type===r)return l(r.parent.type);break;case 246:case 159:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return u(r);break;case 213: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 h(r){if(235===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?D(r.name):r.initializer||e.hasSyntacticModifier(r,1)||236===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 v(t){return e.hasSyntacticModifier(t,1)||249===t.parent.kind&&165!==t.kind}function b(r){switch(r.parent.kind){case 253:if(1!==e.getModuleInstanceState(r.parent))return;case 233:case 231:case 235:return c(r.parent,r.statements[0]);case 234:case 236:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function x(e){if(247!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function D(t){var r=e.forEach(t.elements,(function(e){return 219!==e.kind?e:void 0}));return r?d(r):195===t.parent.kind?o(t.parent):y(t.parent)}function S(t){e.Debug.assert(194!==t.kind&&193!==t.kind);var r=196===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 219!==e.kind?e:void 0}));return n?d(n):o(213===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<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+=n.finalLexState},r}(_),y=function(t){function n(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return c(n,t),n.prototype.forwardJSONCall=function(e,t){return u(this.logger,e,t,this.logPerformance)},n.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+t+"')",(function(){var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},n.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",(function(){var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},n.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+t+"')",(function(){var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},n.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",(function(){var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},n.prototype.convertFileReferences=function(t){if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},n.prototype.getTSConfigFileInfo=function(t,n){var i=this;return this.forwardJSONCall("getTSConfigFileInfo('"+t+"')",(function(){var a=e.parseJsonText(t,e.getSnapshotText(n)),o=e.normalizeSlashes(t),s=e.parseJsonSourceFileConfigFileContent(a,i.host,e.getDirectoryPath(o),{},o);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:p(r(a.parseDiagnostics,s.errors),"\r\n")}}))},n.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return e.getDefaultCompilerOptions()}))},n.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(function(e){return r.logger.log(e)}),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},n}(_),h=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=function(){return e.servicesVersion},r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var n=new a(r),i=e.createLanguageService(n,this.documentRegistry,!1);return new f(this,r,i)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new m(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new o(e);return new y(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=h}(u||(u={})),e.exports&&(e.exports=u),function(e){var t={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate(e.factory.createConstructorTypeNode,t),e.updateConstructorTypeNode=e.Debug.deprecate(e.factory.updateConstructorTypeNode,t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((function(t){return e.factory.createToken(t)}),t),e.createIdentifier=e.Debug.deprecate((function(t){return e.factory.createIdentifier(t,void 0,void 0)}),t),e.createTempVariable=e.Debug.deprecate((function(t){return e.factory.createTempVariable(t,void 0)}),t),e.getGeneratedNameForNode=e.Debug.deprecate((function(t){return e.factory.getGeneratedNameForNode(t,void 0)}),t),e.createOptimisticUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,16)}),t),e.createFileLevelUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,48)}),t),e.createIndexSignature=e.Debug.deprecate((function(t,r,n,i){return e.factory.createIndexSignature(t,r,n,i)}),t),e.createTypePredicateNode=e.Debug.deprecate((function(t,r){return e.factory.createTypePredicateNode(void 0,t,r)}),t),e.updateTypePredicateNode=e.Debug.deprecate((function(t,r,n){return e.factory.updateTypePredicateNode(t,void 0,r,n)}),t),e.createLiteral=e.Debug.deprecate((function(t){return"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)}),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createMethodSignature(void 0,i,a,t,r,n)}),t),e.updateMethodSignature=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)}),t),e.createTypeOperatorNode=e.Debug.deprecate((function(t,r){var n;return r?n=t:(r=t,n=137),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate((function(t,r,n){var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate((function(t,r,n,i){var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate((function(t,r,n,i){return void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n)}),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate((function(t,r){var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createClassExpression(void 0,t,r,n,i,a)}),t),e.updateClassExpression=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateClassExpression(t,void 0,r,n,i,a,o)}),t),e.createPropertySignature=e.Debug.deprecate((function(t,r,n,i,a){var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate((function(t,r,n,i,a,o){var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate((function(t,r){return e.factory.createExpressionWithTypeArguments(r,t)}),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate((function(t,r,n){return e.factory.updateExpressionWithTypeArguments(t,n,r)}),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(294===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 203===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(u||(u={}))}))),ns="object"==typeof t&&t&&t.Object===Object&&t,is="object"==typeof self&&self&&self.Object===Object&&self,as=(ns||is||Function("return this")()).Symbol;var os=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},ss=Array.isArray,cs=Object.prototype,us=cs.hasOwnProperty,ls=cs.toString,ds=as?as.toStringTag:void 0;var _s=function(e){var t=us.call(e,ds),r=e[ds];try{e[ds]=void 0;var n=!0}catch(e){}var i=ls.call(e);return n&&(t?e[ds]=r:delete e[ds]),i},ps=Object.prototype.toString;var fs=function(e){return ps.call(e)},gs=as?as.toStringTag:void 0;var ms=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":gs&&gs in Object(e)?_s(e):fs(e)};var ys=function(e){return null!=e&&"object"==typeof e};var hs=function(e){return"symbol"==typeof e||ys(e)&&"[object Symbol]"==ms(e)},vs=as?as.prototype:void 0,bs=vs?vs.toString:void 0;var xs=function e(t){if("string"==typeof t)return t;if(ss(t))return os(t,e)+"";if(hs(t))return bs?bs.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var Ds=function(e){return null==e?"":xs(e)};var Ss=function(e){return function(t){return null==e?void 0:e[t]}}({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Ts=/&(?:amp|lt|gt|quot|#39);/g,Es=RegExp(Ts.source);var Cs=function(e){return(e=Ds(e))&&Es.test(e)?e.replace(Ts,Ss):e},ks=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.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.OptionalCallExpression="OptionalCallExpression",e.OptionalMemberExpression="OptionalMemberExpression",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.SpreadElement="SpreadElement",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.ThisExpression="ThisExpression",e.ThrowStatement="ThrowStatement",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e.WithStatement="WithStatement",e.YieldExpression="YieldExpression",e.TSAbstractClassProperty="TSAbstractClassProperty",e.TSAbstractKeyword="TSAbstractKeyword",e.TSAbstractMethodDefinition="TSAbstractMethodDefinition",e.TSAnyKeyword="TSAnyKeyword",e.TSArrayType="TSArrayType",e.TSAsExpression="TSAsExpression",e.TSAsyncKeyword="TSAsyncKeyword",e.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.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})),Ns=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})),As=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Fs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Ps=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),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.__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 ks.AST_NODE_TYPES}}),Object.defineProperty(r,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ns.AST_TOKEN_TYPES}}),a(As,r),a(Fs,r),r.TSESTree=o(Ps)})),Is=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),Os=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0})})),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.__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 ws.AST_NODE_TYPES}}),Object.defineProperty(r,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return ws.AST_TOKEN_TYPES}}),Object.defineProperty(r,"TSESTree",{enumerable:!0,get:function(){return ws.TSESTree}}),i(Is,r),i(Os,r)})),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.typescriptVersionIsAtLeast=void 0;const o=a(ba),s=a(rs);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)})),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.firstDefined=r.nodeHasTokens=r.createError=r.convertTokens=r.convertToken=r.getTokenType=r.isChildOptionalChain=r.isOptionalChain=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(Cs),c=a(rs),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 h(e){return e.kind>=u.JsxElement&&e.kind<=u.JsxAttribute}function v(e,t){for(;e;){if(t(e))return e;e=e.parent}}function b(e){return!!v(e,h)}function x(e){return e.type===Ms.AST_NODE_TYPES.OptionalCallExpression||e.type==Ms.AST_NODE_TYPES.OptionalMemberExpression}function D(e){if("originalKeywordKind"in e&&e.originalKeywordKind)return e.originalKeywordKind===u.NullKeyword?Ms.AST_TOKEN_TYPES.Null:e.originalKeywordKind>=u.FirstFutureReservedWord&&e.originalKeywordKind<=u.LastKeyword?Ms.AST_TOKEN_TYPES.Identifier:Ms.AST_TOKEN_TYPES.Keyword;if(e.kind>=u.FirstKeyword&&e.kind<=u.LastFutureReservedWord)return e.kind===u.FalseKeyword||e.kind===u.TrueKeyword?Ms.AST_TOKEN_TYPES.Boolean:Ms.AST_TOKEN_TYPES.Keyword;if(e.kind>=u.FirstPunctuation&&e.kind<=u.LastBinaryOperator)return Ms.AST_TOKEN_TYPES.Punctuator;if(e.kind>=u.NoSubstitutionTemplateLiteral&&e.kind<=u.TemplateTail)return Ms.AST_TOKEN_TYPES.Template;switch(e.kind){case u.NumericLiteral:return Ms.AST_TOKEN_TYPES.Numeric;case u.JsxText:return Ms.AST_TOKEN_TYPES.JSXText;case u.StringLiteral:return!e.parent||e.parent.kind!==u.JsxAttribute&&e.parent.kind!==u.JsxElement?Ms.AST_TOKEN_TYPES.String:Ms.AST_TOKEN_TYPES.JSXText;case u.RegularExpressionLiteral:return Ms.AST_TOKEN_TYPES.RegularExpression;case u.Identifier:case u.ConstructorKeyword:case u.GetKeyword:case u.SetKeyword:}if(e.parent&&e.kind===u.Identifier){if(h(e.parent))return Ms.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===u.PropertyAccessExpression&&b(e))return Ms.AST_TOKEN_TYPES.JSXIdentifier}return Ms.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=D(e);return a===Ms.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 T(e,t){return e.kind===u.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function E(e,t){if(void 0!==e)for(let r=0;r<e.length;r++){const n=t(e[r],r);if(void 0!==n)return n}}r.isAssignmentOperator=d,r.isLogicalOperator=_,r.getTextForTokenKind=function(e){return c.tokenToString(e)},r.isESTreeClassMember=function(e){return e.kind!==u.SemicolonClassElement},r.hasModifier=function(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.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)?Ms.AST_NODE_TYPES.AssignmentExpression:_(e)?Ms.AST_NODE_TYPES.LogicalExpression:Ms.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=h,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<t.length;e++){switch(t[e].kind){case u.PublicKeyword:return"public";case u.ProtectedKeyword:return"protected";case u.PrivateKeyword:return"private"}}return null},r.findNextToken=function(e,t,r){return function t(n){if(c.isToken(n)&&n.pos===e.end)return n;return E(n.getChildren(r),n=>(n.pos<=e.pos&&n.end>e.end||n.pos===e.end)&&T(n,r)?t(n):void 0)}(t)},r.findFirstMatchingAncestor=v,r.hasJSXAncestor=b,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.isOptionalChain=x,r.isChildOptionalChain=function(e,t){return!(!x(t)||e.expression.kind===c.SyntaxKind.ParenthesizedExpression)||!!Ls.typescriptVersionIsAtLeast[3.9]&&(!(t.type!==Ms.AST_NODE_TYPES.TSNonNullExpression||!x(t.expression))&&(e.expression.kind===c.SyntaxKind.NonNullExpression&&e.expression.expression.kind!==c.SyntaxKind.ParenthesizedExpression))},r.getTokenType=D,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=T,r.firstDefined=E})),Bs=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(rs),s=o.SyntaxKind;r.convertError=function(e){return Rs.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?Rs.findNextToken(n,this.ast,this.ast):Rs.findNextToken(r,this.ast,this.ast);if(t.range[0]=a.getStart(this.ast),t.loc=Rs.getLocFor(t.range[0],t.range[1],this.ast),i)return this.createNode(e,{type:Ms.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[r.getStart(this.ast),t.range[1]],exportKind:"value"});{const n=t.type===Ms.AST_NODE_TYPES.TSInterfaceDeclaration||t.type===Ms.AST_NODE_TYPES.TSTypeAliasDeclaration,i=!0===t.declare;return this.createNode(e,{type:Ms.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=Rs.getRange(e,this.ast)),r.loc||(r.loc=Rs.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=Rs.getLocFor(n,e.end,this.ast);return{type:Ms.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}convertBodyExpressions(e,t){let r=Rs.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=Rs.findNextToken(e,this.ast,this.ast);return this.createNode(t,{type:Ms.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],params:e.map(e=>this.convertType(e))})}convertTSTypeParametersToTypeParametersDeclaration(e){const t=Rs.findNextToken(e,this.ast,this.ast);return{type:Ms.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,t.end],loc:Rs.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}):[]}deeplyCopy(e){if(e.kind===o.SyntaxKind.JSDocFunctionType)throw Rs.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&&!Ms.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:Ms.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:Ms.AST_NODE_TYPES.JSXIdentifier,name:"this"});break;case s.Identifier:default:r=this.createNode(e,{type:Ms.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<t.length;n++){switch(t[n].kind){case s.ExportKeyword:case s.DefaultKeyword:r[n]=!0;break;case s.ConstKeyword:e.const=!0,r[n]=!0;break;case s.DeclareKeyword:e.declare=!0,r[n]=!0}}const n=t.filter((e,t)=>!r[t]);n&&n.length&&(e.modifiers=n.map(e=>this.convertChild(e)))}fixParentLocation(e,t){t[0]<e.range[0]&&(e.range[0]=t[0],e.loc.start=Rs.getLineAndCharacterFor(e.range[0],this.ast)),t[1]>e.range[1]&&(e.range[1]=t[1],e.loc.end=Rs.getLineAndCharacterFor(e.range[1],this.ast))}convertNode(e,t){var r,n,i,a,c,u,l,d,_;switch(e.kind){case s.SourceFile:return this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case s.Identifier:return this.createNode(e,{type:Ms.AST_NODE_TYPES.Identifier,name:e.text});case s.WithStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.ReturnStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case s.LabeledStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case s.ContinueStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case s.BreakStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case s.IfStatement:return this.createNode(e,{type:Ms.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:Ms.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:Ms.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:Ms.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case s.TryStatement:return this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.DoStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case s.ForStatement:return this.createNode(e,{type:Ms.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:Ms.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:Ms.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=Rs.hasModifier(s.DeclareKeyword,e),r=this.createNode(e,{type:t||!e.body?Ms.AST_NODE_TYPES.TSDeclareFunction:Ms.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:Rs.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)),e.decorators&&(r.decorators=e.decorators.map(e=>this.convertChild(e))),this.fixExports(e,r)}case s.VariableDeclaration:{const t=this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map(e=>this.convertChild(e)),kind:Rs.getDeclarationKind(e.declarationList)});return e.decorators&&(t.decorators=e.decorators.map(e=>this.convertChild(e))),Rs.hasModifier(s.DeclareKeyword,e)&&(t.declare=!0),this.fixExports(e,t)}case s.VariableDeclarationList:return this.createNode(e,{type:Ms.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map(e=>this.convertChild(e)),kind:Rs.getDeclarationKind(e)});case s.ExpressionStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case s.ThisKeyword:return this.createNode(e,{type:Ms.AST_NODE_TYPES.ThisExpression});case s.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:Ms.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map(e=>this.convertPattern(e))}):this.createNode(e,{type:Ms.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map(e=>this.convertChild(e))});case s.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:Ms.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map(e=>this.convertPattern(e))}):this.createNode(e,{type:Ms.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map(e=>this.convertChild(e))});case s.PropertyAssignment:return this.createNode(e,{type:Ms.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:Rs.isComputedProperty(e.name),method:!1,shorthand:!1,kind:"init"});case s.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:Ms.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:Ms.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:Ms.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=Rs.hasModifier(s.AbstractKeyword,e),r=this.createNode(e,{type:t?Ms.AST_NODE_TYPES.TSAbstractClassProperty:Ms.AST_NODE_TYPES.ClassProperty,key:this.convertChild(e.name),value:this.convertChild(e.initializer),computed:Rs.isComputedProperty(e.name),static:Rs.hasModifier(s.StaticKeyword,e),readonly:Rs.hasModifier(s.ReadonlyKeyword,e)||void 0,declare:Rs.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=Rs.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===Ms.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?Ms.AST_NODE_TYPES.FunctionExpression:Ms.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:Rs.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:Ms.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:r,computed:Rs.isComputedProperty(e.name),method:e.kind===s.MethodDeclaration,shorthand:!1,kind:"init"});else{r.params=this.convertParameters(e.parameters);const t=Rs.hasModifier(s.AbstractKeyword,e)?Ms.AST_NODE_TYPES.TSAbstractMethodDefinition:Ms.AST_NODE_TYPES.MethodDefinition;n=this.createNode(e,{type:t,key:this.convertChild(e.name),value:r,computed:Rs.isComputedProperty(e.name),static:Rs.hasModifier(s.StaticKeyword,e),kind:"method"}),e.decorators&&(n.decorators=e.decorators.map(e=>this.convertChild(e)));const i=Rs.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===Ms.AST_NODE_TYPES.Property||(n.kind="constructor"),n}case s.Constructor:{const t=Rs.getLastModifier(e),r=t&&Rs.findNextToken(t,e,this.ast)||e.getFirstToken(),n=this.createNode(e,{type:e.body?Ms.AST_NODE_TYPES.FunctionExpression:Ms.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:Ms.AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(this.ast),r.end]}),a=Rs.hasModifier(s.StaticKeyword,e),o=this.createNode(e,{type:Rs.hasModifier(s.AbstractKeyword,e)?Ms.AST_NODE_TYPES.TSAbstractMethodDefinition:Ms.AST_NODE_TYPES.MethodDefinition,key:i,value:n,computed:!1,static:a,kind:a?"method":"constructor"}),c=Rs.getTSNodeAccessibility(e);return c&&(o.accessibility=c),o}case s.FunctionExpression:{const t=this.createNode(e,{type:Ms.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Rs.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:Ms.AST_NODE_TYPES.Super});case s.ArrayBindingPattern:return this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:Ms.AST_NODE_TYPES.RestElement,argument:r}):r}{let t;return t=e.dotDotDotToken?this.createNode(e,{type:Ms.AST_NODE_TYPES.RestElement,argument:this.convertChild(null!==(r=e.propertyName)&&void 0!==r?r:e.name)}):this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:Rs.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:Ms.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case s.AwaitExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case s.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:Ms.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:Ms.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:Ms.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:Ms.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:Ms.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:Ms.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case s.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:Ms.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:Ms.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}),e.modifiers&&(n.range[0]=r.range[0],n.loc=Rs.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=Rs.getLineAndCharacterFor(r.range[1],this.ast)),r.optional=!0),e.modifiers?this.createNode(e,{type:Ms.AST_NODE_TYPES.TSParameterProperty,accessibility:null!==(i=Rs.getTSNodeAccessibility(e))&&void 0!==i?i:void 0,readonly:Rs.hasModifier(s.ReadonlyKeyword,e)||void 0,static:Rs.hasModifier(s.StaticKeyword,e)||void 0,export:Rs.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?Ms.AST_NODE_TYPES.ClassDeclaration:Ms.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:Ms.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 Rs.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))),Rs.hasModifier(s.AbstractKeyword,e)&&(o.abstract=!0),Rs.hasModifier(s.DeclareKeyword,e)&&(o.declare=!0),e.decorators&&(o.decorators=e.decorators.map(e=>this.convertChild(e)));const u=e.members.filter(Rs.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:Ms.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case s.ImportDeclaration:{const t=this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case s.ImportSpecifier:return this.createNode(e,{type:Ms.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:Ms.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:Ms.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:Ms.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:Ms.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:Ms.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:Ms.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case s.PrefixUnaryExpression:case s.PostfixUnaryExpression:{const t=Rs.getTextForTokenKind(e.operator);return"++"===t||"--"===t?this.createNode(e,{type:Ms.AST_NODE_TYPES.UpdateExpression,operator:t,prefix:e.kind===s.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:Ms.AST_NODE_TYPES.UnaryExpression,operator:t,prefix:e.kind===s.PrefixUnaryExpression,argument:this.convertChild(e.operand)})}case s.DeleteExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case s.VoidExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case s.TypeOfExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case s.TypeOperator:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSTypeOperator,operator:Rs.getTextForTokenKind(e.operator),typeAnnotation:this.convertChild(e.type)});case s.BinaryExpression:if(Rs.isComma(e.operatorToken)){const t=this.createNode(e,{type:Ms.AST_NODE_TYPES.SequenceExpression,expressions:[]}),r=this.convertChild(e.left);return r.type===Ms.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=Rs.getBinaryExpressionType(e.operatorToken);return this.allowPattern&&t===Ms.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:Ms.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:t,operator:Rs.getTextForTokenKind(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,t===Ms.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=void 0!==e.questionDotToken,a=Rs.isChildOptionalChain(e,t);return i||a?this.createNode(e,{type:Ms.AST_NODE_TYPES.OptionalMemberExpression,object:t,property:r,computed:n,optional:i}):this.createNode(e,{type:Ms.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:!1})}case s.ElementAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.argumentExpression),n=!0,i=void 0!==e.questionDotToken,a=Rs.isChildOptionalChain(e,t);return i||a?this.createNode(e,{type:Ms.AST_NODE_TYPES.OptionalMemberExpression,object:t,property:r,computed:n,optional:i}):this.createNode(e,{type:Ms.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:!1})}case s.CallExpression:{if(e.expression.kind===s.ImportKeyword){if(1!==e.arguments.length)throw Rs.createError(this.ast,e.arguments.pos,"Dynamic import must have one specifier as an argument.");return this.createNode(e,{type:Ms.AST_NODE_TYPES.ImportExpression,source:this.convertChild(e.arguments[0])})}const t=this.convertChild(e.expression),r=e.arguments.map(e=>this.convertChild(e));let n;const i=void 0!==e.questionDotToken,a=Rs.isChildOptionalChain(e,t);return n=i||a?this.createNode(e,{type:Ms.AST_NODE_TYPES.OptionalCallExpression,callee:t,arguments:r,optional:i}):this.createNode(e,{type:Ms.AST_NODE_TYPES.CallExpression,callee:t,arguments:r,optional:!1}),e.typeArguments&&(n.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),n}case s.NewExpression:{const t=this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:Ms.AST_NODE_TYPES.Identifier,name:Rs.getTextForTokenKind(e.keywordToken)}),property:this.convertChild(e.name)});case s.Decorator:return this.createNode(e,{type:Ms.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case s.StringLiteral:{const r=this.createNode(e,{type:Ms.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=Rs.unescapeStringLiteralText(e.text),r}case s.NumericLiteral:return this.createNode(e,{type:Ms.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case s.BigIntLiteral:{const t=Rs.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:Ms.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:Ms.AST_NODE_TYPES.Literal,value:n,raw:e.text,regex:{pattern:t,flags:r}})}case s.TrueKeyword:return this.createNode(e,{type:Ms.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case s.FalseKeyword:return this.createNode(e,{type:Ms.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case s.NullKeyword:return!Ls.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(e,{type:Ms.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Ms.AST_NODE_TYPES.Literal,value:null,raw:"null"});case s.EmptyStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.EmptyStatement});case s.DebuggerStatement:return this.createNode(e,{type:Ms.AST_NODE_TYPES.DebuggerStatement});case s.JsxElement:return this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:Ms.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:Rs.getRange(e,this.ast)}),closingElement:null,children:[]});case s.JsxOpeningElement:return this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case s.JsxOpeningFragment:return this.createNode(e,{type:Ms.AST_NODE_TYPES.JSXOpeningFragment});case s.JsxClosingFragment:return this.createNode(e,{type:Ms.AST_NODE_TYPES.JSXClosingFragment});case s.JsxExpression:{const t=e.expression?this.convertChild(e.expression):this.createNode(e,{type:Ms.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:Ms.AST_NODE_TYPES.JSXSpreadChild,expression:t}):this.createNode(e,{type:Ms.AST_NODE_TYPES.JSXExpressionContainer,expression:t})}case s.JsxAttribute:{const t=this.convertChild(e.name);return t.type=Ms.AST_NODE_TYPES.JSXIdentifier,this.createNode(e,{type:Ms.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:Ms.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:Ms.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:Ms.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case s.QualifiedName:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case s.TypeReference:return this.createNode(e,{type:Ms.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:Ms.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:Ms.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:Ms.AST_NODE_TYPES["TS".concat(s[e.kind])]});case s.NonNullExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});case s.TypeLiteral:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map(e=>this.convertChild(e))});case s.ArrayType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case s.IndexedAccessType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case s.ConditionalType:return this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case s.MappedType:{const t=this.createNode(e,{type:Ms.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter)});return e.readonlyToken&&(e.readonlyToken.kind===s.ReadonlyKeyword?t.readonly=!0:t.readonly=Rs.getTextForTokenKind(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===s.QuestionToken?t.optional=!0:t.optional=Rs.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:Ms.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return Rs.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:Ms.AST_NODE_TYPES.TSMethodSignature,computed:Rs.isComputedProperty(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters)});Rs.isOptional(e)&&(t.optional=!0),e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),Rs.hasModifier(s.ReadonlyKeyword,e)&&(t.readonly=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));const r=Rs.getTSNodeAccessibility(e);return r&&(t.accessibility=r),Rs.hasModifier(s.ExportKeyword,e)&&(t.export=!0),Rs.hasModifier(s.StaticKeyword,e)&&(t.static=!0),t}case s.PropertySignature:{const t=this.createNode(e,{type:Ms.AST_NODE_TYPES.TSPropertySignature,optional:Rs.isOptional(e)||void 0,computed:Rs.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:Rs.hasModifier(s.ReadonlyKeyword,e)||void 0,static:Rs.hasModifier(s.StaticKeyword,e)||void 0,export:Rs.hasModifier(s.ExportKeyword,e)||void 0}),r=Rs.getTSNodeAccessibility(e);return r&&(t.accessibility=r),t}case s.IndexSignature:{const t=this.createNode(e,{type:Ms.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map(e=>this.convertChild(e))});e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e)),Rs.hasModifier(s.ReadonlyKeyword,e)&&(t.readonly=!0);const r=Rs.getTSNodeAccessibility(e);return r&&(t.accessibility=r),Rs.hasModifier(s.ExportKeyword,e)&&(t.export=!0),Rs.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=Ms.AST_NODE_TYPES.TSConstructSignatureDeclaration;break;case s.CallSignature:t=Ms.AST_NODE_TYPES.TSCallSignatureDeclaration;break;case s.FunctionType:t=Ms.AST_NODE_TYPES.TSFunctionType;break;case s.ConstructorType:default:t=Ms.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?Ms.AST_NODE_TYPES.TSInterfaceHeritage:Ms.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!==(_=e.heritageClauses)&&void 0!==_?_:[],r=this.createNode(e,{type:Ms.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:Ms.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 e.decorators&&(r.decorators=e.decorators.map(e=>this.convertChild(e))),Rs.hasModifier(s.AbstractKeyword,e)&&(r.abstract=!0),Rs.hasModifier(s.DeclareKeyword,e)&&(r.declare=!0),this.fixExports(e,r)}case s.TypePredicate:{const t=this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map(e=>this.convertChild(e))});return this.applyModifiersToResult(t,e.modifiers),e.decorators&&(t.decorators=e.decorators.map(e=>this.convertChild(e))),this.fixExports(e,t)}case s.EnumMember:{const t=this.createNode(e,{type:Ms.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:Ms.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:Ms.AST_NODE_TYPES.TSParenthesizedType,typeAnnotation:this.convertType(e.type)});case s.UnionType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSUnionType,types:e.types.map(e=>this.convertType(e))});case s.IntersectionType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSIntersectionType,types:e.types.map(e=>this.convertType(e))});case s.AsExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case s.InferType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case s.LiteralType:return Ls.typescriptVersionIsAtLeast["4.0"]&&e.literal.kind===s.NullKeyword?this.createNode(e.literal,{type:Ms.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:Ms.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case s.TypeAssertionExpression:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case s.ImportEqualsDeclaration:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),isExport:Rs.hasModifier(s.ExportKeyword,e)});case s.ExternalModuleReference:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case s.NamespaceExportDeclaration:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case s.AbstractKeyword:return this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.TSTupleType,elementTypes:t})}case s.NamedTupleMember:{const t=this.createNode(e,{type:Ms.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:Ms.AST_NODE_TYPES.TSRestType,typeAnnotation:t})):t}case s.OptionalType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case s.RestType:return this.createNode(e,{type:Ms.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});default:return this.deeplyCopy(e)}}}})),js=function(e,t){return(js=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 Js=function(){return(Js=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ks(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=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 zs(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 Us(e){return this instanceof Us?(this.v=e,this):new Us(e)}var Vs=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}js(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return Js},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},__decorate:function(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if("object"==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]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},__createBinding:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},__exportStar:function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])},__values:Ks,__read:zs,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(zs(arguments[t]));return e},__spreadArrays:function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)n[i]=a[o];return n},__await:Us,__asyncGenerator:function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof Us?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:Us(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=Ks(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}}),qs=r((function(e,t){function r(e){return e.kind===rs.SyntaxKind.ModuleDeclaration}function n(e){return e.kind===rs.SyntaxKind.PropertyAccessExpression}function i(e){return e.kind===rs.SyntaxKind.QualifiedName}Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessorDeclaration=function(e){return e.kind===rs.SyntaxKind.GetAccessor||e.kind===rs.SyntaxKind.SetAccessor},t.isArrayBindingPattern=function(e){return e.kind===rs.SyntaxKind.ArrayBindingPattern},t.isArrayLiteralExpression=function(e){return e.kind===rs.SyntaxKind.ArrayLiteralExpression},t.isArrayTypeNode=function(e){return e.kind===rs.SyntaxKind.ArrayType},t.isArrowFunction=function(e){return e.kind===rs.SyntaxKind.ArrowFunction},t.isAsExpression=function(e){return e.kind===rs.SyntaxKind.AsExpression},t.isAssertionExpression=function(e){return e.kind===rs.SyntaxKind.AsExpression||e.kind===rs.SyntaxKind.TypeAssertionExpression},t.isAwaitExpression=function(e){return e.kind===rs.SyntaxKind.AwaitExpression},t.isBinaryExpression=function(e){return e.kind===rs.SyntaxKind.BinaryExpression},t.isBindingElement=function(e){return e.kind===rs.SyntaxKind.BindingElement},t.isBindingPattern=function(e){return e.kind===rs.SyntaxKind.ArrayBindingPattern||e.kind===rs.SyntaxKind.ObjectBindingPattern},t.isBlock=function(e){return e.kind===rs.SyntaxKind.Block},t.isBlockLike=function(e){return void 0!==e.statements},t.isBooleanLiteral=function(e){return e.kind===rs.SyntaxKind.TrueKeyword||e.kind===rs.SyntaxKind.FalseKeyword},t.isBreakOrContinueStatement=function(e){return e.kind===rs.SyntaxKind.BreakStatement||e.kind===rs.SyntaxKind.ContinueStatement},t.isBreakStatement=function(e){return e.kind===rs.SyntaxKind.BreakStatement},t.isCallExpression=function(e){return e.kind===rs.SyntaxKind.CallExpression},t.isCallLikeExpression=function(e){switch(e.kind){case rs.SyntaxKind.CallExpression:case rs.SyntaxKind.Decorator:case rs.SyntaxKind.JsxOpeningElement:case rs.SyntaxKind.JsxSelfClosingElement:case rs.SyntaxKind.NewExpression:case rs.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}},t.isCallSignatureDeclaration=function(e){return e.kind===rs.SyntaxKind.CallSignature},t.isCaseBlock=function(e){return e.kind===rs.SyntaxKind.CaseBlock},t.isCaseClause=function(e){return e.kind===rs.SyntaxKind.CaseClause},t.isCaseOrDefaultClause=function(e){return e.kind===rs.SyntaxKind.CaseClause||e.kind===rs.SyntaxKind.DefaultClause},t.isCatchClause=function(e){return e.kind===rs.SyntaxKind.CatchClause},t.isClassDeclaration=function(e){return e.kind===rs.SyntaxKind.ClassDeclaration},t.isClassExpression=function(e){return e.kind===rs.SyntaxKind.ClassExpression},t.isClassLikeDeclaration=function(e){return e.kind===rs.SyntaxKind.ClassDeclaration||e.kind===rs.SyntaxKind.ClassExpression},t.isCommaListExpression=function(e){return e.kind===rs.SyntaxKind.CommaListExpression},t.isConditionalExpression=function(e){return e.kind===rs.SyntaxKind.ConditionalExpression},t.isConditionalTypeNode=function(e){return e.kind===rs.SyntaxKind.ConditionalType},t.isConstructorDeclaration=function(e){return e.kind===rs.SyntaxKind.Constructor},t.isConstructorTypeNode=function(e){return e.kind===rs.SyntaxKind.ConstructorType},t.isConstructSignatureDeclaration=function(e){return e.kind===rs.SyntaxKind.ConstructSignature},t.isContinueStatement=function(e){return e.kind===rs.SyntaxKind.ContinueStatement},t.isComputedPropertyName=function(e){return e.kind===rs.SyntaxKind.ComputedPropertyName},t.isDebuggerStatement=function(e){return e.kind===rs.SyntaxKind.DebuggerStatement},t.isDecorator=function(e){return e.kind===rs.SyntaxKind.Decorator},t.isDefaultClause=function(e){return e.kind===rs.SyntaxKind.DefaultClause},t.isDeleteExpression=function(e){return e.kind===rs.SyntaxKind.DeleteExpression},t.isDoStatement=function(e){return e.kind===rs.SyntaxKind.DoStatement},t.isElementAccessExpression=function(e){return e.kind===rs.SyntaxKind.ElementAccessExpression},t.isEmptyStatement=function(e){return e.kind===rs.SyntaxKind.EmptyStatement},t.isEntityName=function(e){return e.kind===rs.SyntaxKind.Identifier||i(e)},t.isEntityNameExpression=function e(t){return t.kind===rs.SyntaxKind.Identifier||n(t)&&e(t.expression)},t.isEnumDeclaration=function(e){return e.kind===rs.SyntaxKind.EnumDeclaration},t.isEnumMember=function(e){return e.kind===rs.SyntaxKind.EnumMember},t.isExportAssignment=function(e){return e.kind===rs.SyntaxKind.ExportAssignment},t.isExportDeclaration=function(e){return e.kind===rs.SyntaxKind.ExportDeclaration},t.isExportSpecifier=function(e){return e.kind===rs.SyntaxKind.ExportSpecifier},t.isExpression=function(e){switch(e.kind){case rs.SyntaxKind.ArrayLiteralExpression:case rs.SyntaxKind.ArrowFunction:case rs.SyntaxKind.AsExpression:case rs.SyntaxKind.AwaitExpression:case rs.SyntaxKind.BinaryExpression:case rs.SyntaxKind.CallExpression:case rs.SyntaxKind.ClassExpression:case rs.SyntaxKind.CommaListExpression:case rs.SyntaxKind.ConditionalExpression:case rs.SyntaxKind.DeleteExpression:case rs.SyntaxKind.ElementAccessExpression:case rs.SyntaxKind.FalseKeyword:case rs.SyntaxKind.FunctionExpression:case rs.SyntaxKind.Identifier:case rs.SyntaxKind.JsxElement:case rs.SyntaxKind.JsxFragment:case rs.SyntaxKind.JsxExpression:case rs.SyntaxKind.JsxOpeningElement:case rs.SyntaxKind.JsxOpeningFragment:case rs.SyntaxKind.JsxSelfClosingElement:case rs.SyntaxKind.MetaProperty:case rs.SyntaxKind.NewExpression:case rs.SyntaxKind.NonNullExpression:case rs.SyntaxKind.NoSubstitutionTemplateLiteral:case rs.SyntaxKind.NullKeyword:case rs.SyntaxKind.NumericLiteral:case rs.SyntaxKind.ObjectLiteralExpression:case rs.SyntaxKind.OmittedExpression:case rs.SyntaxKind.ParenthesizedExpression:case rs.SyntaxKind.PostfixUnaryExpression:case rs.SyntaxKind.PrefixUnaryExpression:case rs.SyntaxKind.PropertyAccessExpression:case rs.SyntaxKind.RegularExpressionLiteral:case rs.SyntaxKind.SpreadElement:case rs.SyntaxKind.StringLiteral:case rs.SyntaxKind.SuperKeyword:case rs.SyntaxKind.TaggedTemplateExpression:case rs.SyntaxKind.TemplateExpression:case rs.SyntaxKind.ThisKeyword:case rs.SyntaxKind.TrueKeyword:case rs.SyntaxKind.TypeAssertionExpression:case rs.SyntaxKind.TypeOfExpression:case rs.SyntaxKind.VoidExpression:case rs.SyntaxKind.YieldExpression:return!0;default:return!1}},t.isExpressionStatement=function(e){return e.kind===rs.SyntaxKind.ExpressionStatement},t.isExpressionWithTypeArguments=function(e){return e.kind===rs.SyntaxKind.ExpressionWithTypeArguments},t.isExternalModuleReference=function(e){return e.kind===rs.SyntaxKind.ExternalModuleReference},t.isForInStatement=function(e){return e.kind===rs.SyntaxKind.ForInStatement},t.isForInOrOfStatement=function(e){return e.kind===rs.SyntaxKind.ForOfStatement||e.kind===rs.SyntaxKind.ForInStatement},t.isForOfStatement=function(e){return e.kind===rs.SyntaxKind.ForOfStatement},t.isForStatement=function(e){return e.kind===rs.SyntaxKind.ForStatement},t.isFunctionDeclaration=function(e){return e.kind===rs.SyntaxKind.FunctionDeclaration},t.isFunctionExpression=function(e){return e.kind===rs.SyntaxKind.FunctionExpression},t.isFunctionTypeNode=function(e){return e.kind===rs.SyntaxKind.FunctionType},t.isGetAccessorDeclaration=function(e){return e.kind===rs.SyntaxKind.GetAccessor},t.isIdentifier=function(e){return e.kind===rs.SyntaxKind.Identifier},t.isIfStatement=function(e){return e.kind===rs.SyntaxKind.IfStatement},t.isImportClause=function(e){return e.kind===rs.SyntaxKind.ImportClause},t.isImportDeclaration=function(e){return e.kind===rs.SyntaxKind.ImportDeclaration},t.isImportEqualsDeclaration=function(e){return e.kind===rs.SyntaxKind.ImportEqualsDeclaration},t.isImportSpecifier=function(e){return e.kind===rs.SyntaxKind.ImportSpecifier},t.isIndexedAccessTypeNode=function(e){return e.kind===rs.SyntaxKind.IndexedAccessType},t.isIndexSignatureDeclaration=function(e){return e.kind===rs.SyntaxKind.IndexSignature},t.isInferTypeNode=function(e){return e.kind===rs.SyntaxKind.InferType},t.isInterfaceDeclaration=function(e){return e.kind===rs.SyntaxKind.InterfaceDeclaration},t.isIntersectionTypeNode=function(e){return e.kind===rs.SyntaxKind.IntersectionType},t.isIterationStatement=function(e){switch(e.kind){case rs.SyntaxKind.ForStatement:case rs.SyntaxKind.ForOfStatement:case rs.SyntaxKind.ForInStatement:case rs.SyntaxKind.WhileStatement:case rs.SyntaxKind.DoStatement:return!0;default:return!1}},t.isJsDoc=function(e){return e.kind===rs.SyntaxKind.JSDocComment},t.isJsxAttribute=function(e){return e.kind===rs.SyntaxKind.JsxAttribute},t.isJsxAttributeLike=function(e){return e.kind===rs.SyntaxKind.JsxAttribute||e.kind===rs.SyntaxKind.JsxSpreadAttribute},t.isJsxAttributes=function(e){return e.kind===rs.SyntaxKind.JsxAttributes},t.isJsxClosingElement=function(e){return e.kind===rs.SyntaxKind.JsxClosingElement},t.isJsxClosingFragment=function(e){return e.kind===rs.SyntaxKind.JsxClosingFragment},t.isJsxElement=function(e){return e.kind===rs.SyntaxKind.JsxElement},t.isJsxExpression=function(e){return e.kind===rs.SyntaxKind.JsxExpression},t.isJsxFragment=function(e){return e.kind===rs.SyntaxKind.JsxFragment},t.isJsxOpeningElement=function(e){return e.kind===rs.SyntaxKind.JsxOpeningElement},t.isJsxOpeningFragment=function(e){return e.kind===rs.SyntaxKind.JsxOpeningFragment},t.isJsxOpeningLikeElement=function(e){return e.kind===rs.SyntaxKind.JsxOpeningElement||e.kind===rs.SyntaxKind.JsxSelfClosingElement},t.isJsxSelfClosingElement=function(e){return e.kind===rs.SyntaxKind.JsxSelfClosingElement},t.isJsxSpreadAttribute=function(e){return e.kind===rs.SyntaxKind.JsxSpreadAttribute},t.isJsxText=function(e){return e.kind===rs.SyntaxKind.JsxText},t.isLabeledStatement=function(e){return e.kind===rs.SyntaxKind.LabeledStatement},t.isLiteralExpression=function(e){return e.kind>=rs.SyntaxKind.FirstLiteralToken&&e.kind<=rs.SyntaxKind.LastLiteralToken},t.isLiteralTypeNode=function(e){return e.kind===rs.SyntaxKind.LiteralType},t.isMappedTypeNode=function(e){return e.kind===rs.SyntaxKind.MappedType},t.isMetaProperty=function(e){return e.kind===rs.SyntaxKind.MetaProperty},t.isMethodDeclaration=function(e){return e.kind===rs.SyntaxKind.MethodDeclaration},t.isMethodSignature=function(e){return e.kind===rs.SyntaxKind.MethodSignature},t.isModuleBlock=function(e){return e.kind===rs.SyntaxKind.ModuleBlock},t.isModuleDeclaration=r,t.isNamedExports=function(e){return e.kind===rs.SyntaxKind.NamedExports},t.isNamedImports=function(e){return e.kind===rs.SyntaxKind.NamedImports},t.isNamespaceDeclaration=function e(t){return r(t)&&t.name.kind===rs.SyntaxKind.Identifier&&void 0!==t.body&&(t.body.kind===rs.SyntaxKind.ModuleBlock||e(t.body))},t.isNamespaceImport=function(e){return e.kind===rs.SyntaxKind.NamespaceImport},t.isNamespaceExportDeclaration=function(e){return e.kind===rs.SyntaxKind.NamespaceExportDeclaration},t.isNewExpression=function(e){return e.kind===rs.SyntaxKind.NewExpression},t.isNonNullExpression=function(e){return e.kind===rs.SyntaxKind.NonNullExpression},t.isNoSubstitutionTemplateLiteral=function(e){return e.kind===rs.SyntaxKind.NoSubstitutionTemplateLiteral},t.isNullLiteral=function(e){return e.kind===rs.SyntaxKind.NullKeyword},t.isNumericLiteral=function(e){return e.kind===rs.SyntaxKind.NumericLiteral},t.isNumericOrStringLikeLiteral=function(e){switch(e.kind){case rs.SyntaxKind.StringLiteral:case rs.SyntaxKind.NumericLiteral:case rs.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}},t.isObjectBindingPattern=function(e){return e.kind===rs.SyntaxKind.ObjectBindingPattern},t.isObjectLiteralExpression=function(e){return e.kind===rs.SyntaxKind.ObjectLiteralExpression},t.isOmittedExpression=function(e){return e.kind===rs.SyntaxKind.OmittedExpression},t.isParameterDeclaration=function(e){return e.kind===rs.SyntaxKind.Parameter},t.isParenthesizedExpression=function(e){return e.kind===rs.SyntaxKind.ParenthesizedExpression},t.isParenthesizedTypeNode=function(e){return e.kind===rs.SyntaxKind.ParenthesizedType},t.isPostfixUnaryExpression=function(e){return e.kind===rs.SyntaxKind.PostfixUnaryExpression},t.isPrefixUnaryExpression=function(e){return e.kind===rs.SyntaxKind.PrefixUnaryExpression},t.isPropertyAccessExpression=n,t.isPropertyAssignment=function(e){return e.kind===rs.SyntaxKind.PropertyAssignment},t.isPropertyDeclaration=function(e){return e.kind===rs.SyntaxKind.PropertyDeclaration},t.isPropertySignature=function(e){return e.kind===rs.SyntaxKind.PropertySignature},t.isQualifiedName=i,t.isRegularExpressionLiteral=function(e){return e.kind===rs.SyntaxKind.RegularExpressionLiteral},t.isReturnStatement=function(e){return e.kind===rs.SyntaxKind.ReturnStatement},t.isSetAccessorDeclaration=function(e){return e.kind===rs.SyntaxKind.SetAccessor},t.isShorthandPropertyAssignment=function(e){return e.kind===rs.SyntaxKind.ShorthandPropertyAssignment},t.isSignatureDeclaration=function(e){return void 0!==e.parameters},t.isSourceFile=function(e){return e.kind===rs.SyntaxKind.SourceFile},t.isSpreadAssignment=function(e){return e.kind===rs.SyntaxKind.SpreadAssignment},t.isSpreadElement=function(e){return e.kind===rs.SyntaxKind.SpreadElement},t.isStringLiteral=function(e){return e.kind===rs.SyntaxKind.StringLiteral},t.isSwitchStatement=function(e){return e.kind===rs.SyntaxKind.SwitchStatement},t.isSyntaxList=function(e){return e.kind===rs.SyntaxKind.SyntaxList},t.isTaggedTemplateExpression=function(e){return e.kind===rs.SyntaxKind.TaggedTemplateExpression},t.isTemplateExpression=function(e){return e.kind===rs.SyntaxKind.TemplateExpression},t.isTemplateLiteral=function(e){return e.kind===rs.SyntaxKind.TemplateExpression||e.kind===rs.SyntaxKind.NoSubstitutionTemplateLiteral},t.isTextualLiteral=function(e){return e.kind===rs.SyntaxKind.StringLiteral||e.kind===rs.SyntaxKind.NoSubstitutionTemplateLiteral},t.isThrowStatement=function(e){return e.kind===rs.SyntaxKind.ThrowStatement},t.isTryStatement=function(e){return e.kind===rs.SyntaxKind.TryStatement},t.isTupleTypeNode=function(e){return e.kind===rs.SyntaxKind.TupleType},t.isTypeAliasDeclaration=function(e){return e.kind===rs.SyntaxKind.TypeAliasDeclaration},t.isTypeAssertion=function(e){return e.kind===rs.SyntaxKind.TypeAssertionExpression},t.isTypeLiteralNode=function(e){return e.kind===rs.SyntaxKind.TypeLiteral},t.isTypeOfExpression=function(e){return e.kind===rs.SyntaxKind.TypeOfExpression},t.isTypeOperatorNode=function(e){return e.kind===rs.SyntaxKind.TypeOperator},t.isTypeParameterDeclaration=function(e){return e.kind===rs.SyntaxKind.TypeParameter},t.isTypePredicateNode=function(e){return e.kind===rs.SyntaxKind.TypePredicate},t.isTypeReferenceNode=function(e){return e.kind===rs.SyntaxKind.TypeReference},t.isTypeQueryNode=function(e){return e.kind===rs.SyntaxKind.TypeQuery},t.isUnionTypeNode=function(e){return e.kind===rs.SyntaxKind.UnionType},t.isVariableDeclaration=function(e){return e.kind===rs.SyntaxKind.VariableDeclaration},t.isVariableStatement=function(e){return e.kind===rs.SyntaxKind.VariableStatement},t.isVariableDeclarationList=function(e){return e.kind===rs.SyntaxKind.VariableDeclarationList},t.isVoidExpression=function(e){return e.kind===rs.SyntaxKind.VoidExpression},t.isWhileStatement=function(e){return e.kind===rs.SyntaxKind.WhileStatement},t.isWithStatement=function(e){return e.kind===rs.SyntaxKind.WithStatement}})),Ws=n(Vs),Hs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(qs,t),t.isImportTypeNode=function(e){return e.kind===rs.SyntaxKind.ImportType}})),Gs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(Hs,t),t.isOptionalTypeNode=function(e){return e.kind===rs.SyntaxKind.OptionalType},t.isRestTypeNode=function(e){return e.kind===rs.SyntaxKind.RestType},t.isSyntheticExpression=function(e){return e.kind===rs.SyntaxKind.SyntheticExpression}})),Ys=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(Gs,t),t.isBigIntLiteral=function(e){return e.kind===rs.SyntaxKind.BigIntLiteral}})),Xs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(Ys,t)})),Qs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isConditionalType=function(e){return 0!=(e.flags&rs.TypeFlags.Conditional)},t.isEnumType=function(e){return 0!=(e.flags&rs.TypeFlags.Enum)},t.isGenericType=function(e){return 0!=(e.flags&rs.TypeFlags.Object)&&0!=(e.objectFlags&rs.ObjectFlags.ClassOrInterface)&&0!=(e.objectFlags&rs.ObjectFlags.Reference)},t.isIndexedAccessType=function(e){return 0!=(e.flags&rs.TypeFlags.IndexedAccess)},t.isIndexedAccessype=function(e){return 0!=(e.flags&rs.TypeFlags.Index)},t.isInstantiableType=function(e){return 0!=(e.flags&rs.TypeFlags.Instantiable)},t.isInterfaceType=function(e){return 0!=(e.flags&rs.TypeFlags.Object)&&0!=(e.objectFlags&rs.ObjectFlags.ClassOrInterface)},t.isIntersectionType=function(e){return 0!=(e.flags&rs.TypeFlags.Intersection)},t.isLiteralType=function(e){return 0!=(e.flags&(rs.TypeFlags.StringOrNumberLiteral|rs.TypeFlags.BigIntLiteral))},t.isObjectType=function(e){return 0!=(e.flags&rs.TypeFlags.Object)},t.isSubstitutionType=function(e){return 0!=(e.flags&rs.TypeFlags.Substitution)},t.isTypeParameter=function(e){return 0!=(e.flags&rs.TypeFlags.TypeParameter)},t.isTypeReference=function(e){return 0!=(e.flags&rs.TypeFlags.Object)&&0!=(e.objectFlags&rs.ObjectFlags.Reference)},t.isTypeVariable=function(e){return 0!=(e.flags&rs.TypeFlags.TypeVariable)},t.isUnionOrIntersectionType=function(e){return 0!=(e.flags&rs.TypeFlags.UnionOrIntersection)},t.isUnionType=function(e){return 0!=(e.flags&rs.TypeFlags.Union)},t.isUniqueESSymbolType=function(e){return 0!=(e.flags&rs.TypeFlags.UniqueESSymbol)}})),$s=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(Qs,t)})),Zs=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar($s,t);const r=$s;function n(e){return 0!==(e.flags&rs.TypeFlags.Object&&e.objectFlags&rs.ObjectFlags.Tuple)}t.isTupleType=n,t.isTupleTypeReference=function(e){return r.isTypeReference(e)&&n(e.target)}})),ec=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(Zs,t)})),tc=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(Ys,t),Ws.__exportStar(ec,t)})),rc=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ws.__exportStar(ec,t)})),nc=r((function(e,t){function r(e,t){if(!n(t,rs.TypeFlags.Undefined))return t;const r=n(t,rs.TypeFlags.Null);return t=e.getNonNullableType(t),r?e.getNullableType(t,rs.TypeFlags.Null):t}function n(e,t){for(const r of a(e))if(ic.isTypeFlagSet(r,t))return!0;return!1}function i(e,t,r){let n;return r|=rs.TypeFlags.Any,function t(i){if(rc.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 rc.isUnionType(i)?i.types.every(t):rc.isIntersectionType(i)?i.types.some(t):ic.isTypeFlagSet(i,r)}(t)}function a(e){return rc.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 ic.isTypeFlagSet(e,rs.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=(ic.isNumericPropertyName(t)?r.getIndexInfoOfType(o,rs.IndexKind.Number):void 0)||r.getIndexInfoOfType(o,rs.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,rc.isIntersectionType,e=>{const n=u(e,t);if(void 0===n)return!1;if(n.flags&rs.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&rc.isTupleTypeReference(e))return e.target.readonly;switch(function(e,t,r){if(!rc.isObjectType(e)||!ic.isObjectFlagSet(e,rs.ObjectFlags.Mapped))return;const n=e.symbol.declarations[0];return void 0===n.readonlyToken||/^__@[^@]+$/.test(t)?l(e.modifiersType,t,r):n.readonlyToken.kind!==rs.SyntaxKind.MinusToken}(e,t,r)){case!0:return!0;case!1:return!1}}return ic.isSymbolFlagSet(n,rs.SymbolFlags.ValueModule)||_(n,r)})}function _(e,t){return(e.flags&rs.SymbolFlags.Accessor)===rs.SymbolFlags.GetAccessor||void 0!==e.declarations&&e.declarations.some(e=>ic.isModifierFlagSet(e,rs.ModifierFlags.Readonly)||Xs.isVariableDeclaration(e)&&ic.isNodeFlagSet(e.parent,rs.NodeFlags.Const)||Xs.isCallExpression(e)&&ic.isReadonlyAssignmentDeclaration(e,t)||Xs.isEnumMember(e)||(Xs.isPropertyAssignment(e)||Xs.isShorthandPropertyAssignment(e))&&ic.isInConstContext(e.parent))}Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyObjectType=function e(t){if(rc.isObjectType(t)&&t.objectFlags&rs.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,rs.TypeFlags.NumberLike)},t.isTypeAssignableToString=function(e,t){return i(e,t,rs.TypeFlags.StringLike)},t.getCallSignaturesOfType=function e(t){if(rc.isUnionType(t)){const r=[];for(const n of t.types)r.push(...e(n));return r}if(rc.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 rc.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&(rs.TypeFlags.Undefined|rs.TypeFlags.Null|rs.TypeFlags.Void))||(rc.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&(rs.TypeFlags.StringLiteral|rs.TypeFlags.NumberLiteral)){const t=String(e.value);return{displayName:t,symbolName:rs.escapeLeadingUnderscores(t)}}if(rc.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===rs.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(t.getTypeAtLocation(e).getProperty("prototype"),e)},t.getIteratorYieldResultFromIteratorResult=function(e,t,n){return rc.isUnionType(e)&&e.types.find(e=>{const i=e.getProperty("done");return void 0!==i&&c(r(n,n.getTypeOfSymbolAtLocation(i,t)),!1)})||e}})),ic=r((function(e,t){function r(e){return e>=rs.SyntaxKind.FirstToken&&e<=rs.SyntaxKind.LastToken}function n(e){return e>=rs.SyntaxKind.FirstAssignment&&e<=rs.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.pos||t>=e.end))return r(e.kind)?e:(void 0===n&&(n=e.getSourceFile()),s(e,t,n,!0===i))}function s(e,t,n,i){e:for(;;){for(const a of e.getChildren(n))if(a.end>t&&(i||a.kind!==rs.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===rs.SyntaxKind.JsxText||t>=n.end-(rs.tokenToString(n.kind)||"").length)return;const i=0===n.pos?(rs.getShebang(e.text)||"").length:n.pos;return 0!==i&&rs.forEachTrailingCommentRange(e.text,i,u,t)||rs.forEachLeadingCommentRange(e.text,i,u,t)}function u(e,t,r,n,i){return i>=e&&i<t?{pos:e,end:t,kind:r}:void 0}function l(e){if(e.kind===rs.SyntaxKind.ComputedPropertyName){if(!Xs.isLiteralExpression(e.expression))return;return tc.isBigIntLiteral(e.expression)?e.expression.text.slice(0,-1):e.expression.text}return e.text}function d(e,t){for(const r of e.elements){if(r.kind!==rs.SyntaxKind.BindingElement)continue;let e;if(e=r.name.kind===rs.SyntaxKind.Identifier?t(r):d(r.name,t),e)return e}}function _(e){return 0!=(e.flags&rs.NodeFlags.BlockScoped)}function p(e){switch(e.kind){case rs.SyntaxKind.InterfaceDeclaration:case rs.SyntaxKind.TypeAliasDeclaration:case rs.SyntaxKind.MappedType:return 4;case rs.SyntaxKind.ConditionalType:return 8;default:return 0}}function f(e){switch(e.kind){case rs.SyntaxKind.FunctionExpression:case rs.SyntaxKind.ArrowFunction:case rs.SyntaxKind.Constructor:case rs.SyntaxKind.ModuleDeclaration:case rs.SyntaxKind.ClassDeclaration:case rs.SyntaxKind.ClassExpression:case rs.SyntaxKind.EnumDeclaration:case rs.SyntaxKind.MethodDeclaration:case rs.SyntaxKind.FunctionDeclaration:case rs.SyntaxKind.GetAccessor:case rs.SyntaxKind.SetAccessor:case rs.SyntaxKind.MethodSignature:case rs.SyntaxKind.CallSignature:case rs.SyntaxKind.ConstructSignature:case rs.SyntaxKind.ConstructorType:case rs.SyntaxKind.FunctionType:return 1;case rs.SyntaxKind.SourceFile:return rs.isExternalModule(e)?1:0;default:return 0}}function g(e){switch(e.kind){case rs.SyntaxKind.Block:const t=e.parent;return t.kind===rs.SyntaxKind.CatchClause||t.kind!==rs.SyntaxKind.SourceFile&&f(t)?0:2;case rs.SyntaxKind.ForStatement:case rs.SyntaxKind.ForInStatement:case rs.SyntaxKind.ForOfStatement:case rs.SyntaxKind.CaseBlock:case rs.SyntaxKind.CatchClause:case rs.SyntaxKind.WithStatement:return 2;default:return 0}}function m(e,t,n=e.getSourceFile()){return function e(i){return r(i.kind)?t(i):i.kind!==rs.SyntaxKind.JSDocComment?i.getChildren(n).forEach(e):void 0}(e)}function y(e){return e.kind===rs.SyntaxKind.JsxElement||e.kind===rs.SyntaxKind.JsxFragment}let h;function v(e,t){return void 0===h?h=rs.createScanner(t,!1,void 0,e):(h.setScriptTarget(t),h.setText(e)),h.scan(),h}function b(e){return e>=65536?2:1}function x(e,t=rs.ScriptTarget.Latest){if(0===e.length)return!1;let r=e.codePointAt(0);if(!rs.isIdentifierStart(r,t))return!1;for(let n=b(r);n<e.length;n+=b(r))if(r=e.codePointAt(n),!rs.isIdentifierPart(r,t))return!1;return!0}function D(e,t,r){return rs.getLineAndCharacterOfPosition(e,t).line===rs.getLineAndCharacterOfPosition(e,r).line}function S(e,t){switch(e.kind){case rs.SyntaxKind.CallExpression:case rs.SyntaxKind.PostfixUnaryExpression:case rs.SyntaxKind.AwaitExpression:case rs.SyntaxKind.YieldExpression:case rs.SyntaxKind.DeleteExpression:return!0;case rs.SyntaxKind.TypeAssertionExpression:case rs.SyntaxKind.AsExpression:case rs.SyntaxKind.ParenthesizedExpression:case rs.SyntaxKind.NonNullExpression:case rs.SyntaxKind.VoidExpression:case rs.SyntaxKind.TypeOfExpression:case rs.SyntaxKind.PropertyAccessExpression:case rs.SyntaxKind.SpreadElement:case rs.SyntaxKind.PartiallyEmittedExpression:return S(e.expression,t);case rs.SyntaxKind.BinaryExpression:return n(e.operatorToken.kind)||S(e.left,t)||S(e.right,t);case rs.SyntaxKind.PrefixUnaryExpression:switch(e.operator){case rs.SyntaxKind.PlusPlusToken:case rs.SyntaxKind.MinusMinusToken:return!0;default:return S(e.operand,t)}case rs.SyntaxKind.ElementAccessExpression:return S(e.expression,t)||void 0!==e.argumentExpression&&S(e.argumentExpression,t);case rs.SyntaxKind.ConditionalExpression:return S(e.condition,t)||S(e.whenTrue,t)||S(e.whenFalse,t);case rs.SyntaxKind.NewExpression:if(2&t||S(e.expression,t))return!0;if(void 0!==e.arguments)for(const r of e.arguments)if(S(r,t))return!0;return!1;case rs.SyntaxKind.TaggedTemplateExpression:if(1&t||S(e.tag,t))return!0;if(e.template.kind===rs.SyntaxKind.NoSubstitutionTemplateLiteral)return!1;e=e.template;case rs.SyntaxKind.TemplateExpression:for(const r of e.templateSpans)if(S(r.expression,t))return!0;return!1;case rs.SyntaxKind.ClassExpression:return function(e,t){if(void 0!==e.heritageClauses&&e.heritageClauses[0].token===rs.SyntaxKind.ExtendsKeyword)for(const r of e.heritageClauses[0].types)if(S(r.expression,t))return!0;for(const r of e.members)if(void 0!==r.name&&r.name.kind===rs.SyntaxKind.ComputedPropertyName&&S(r.name.expression,t)||Xs.isPropertyDeclaration(r)&&void 0!==r.initializer&&S(r.initializer,t))return!0;return!1}(e,t);case rs.SyntaxKind.ArrayLiteralExpression:for(const r of e.elements)if(S(r,t))return!0;return!1;case rs.SyntaxKind.ObjectLiteralExpression:for(const r of e.properties){if(void 0!==r.name&&r.name.kind===rs.SyntaxKind.ComputedPropertyName&&S(r.name.expression,t))return!0;switch(r.kind){case rs.SyntaxKind.PropertyAssignment:if(S(r.initializer,t))return!0;break;case rs.SyntaxKind.SpreadAssignment:if(S(r.expression,t))return!0}}return!1;case rs.SyntaxKind.JsxExpression:return void 0!==e.expression&&S(e.expression,t);case rs.SyntaxKind.JsxElement:case rs.SyntaxKind.JsxFragment:for(const r of e.children)if(r.kind!==rs.SyntaxKind.JsxText&&S(r,t))return!0;if(e.kind===rs.SyntaxKind.JsxFragment)return!1;e=e.openingElement;case rs.SyntaxKind.JsxSelfClosingElement:case rs.SyntaxKind.JsxOpeningElement:if(4&t)return!0;for(const r of e.attributes.properties)if(r.kind===rs.SyntaxKind.JsxSpreadAttribute){if(S(r.expression,t))return!0}else if(void 0!==r.initializer&&S(r.initializer,t))return!0;return!1;case rs.SyntaxKind.CommaListExpression:for(const r of e.elements)if(S(r,t))return!0;return!1;default:return!1}}function T(e){switch(e.kind){case rs.SyntaxKind.ShorthandPropertyAssignment:if(void 0!==e.objectAssignmentInitializer)return!0;case rs.SyntaxKind.PropertyAssignment:case rs.SyntaxKind.SpreadAssignment:e=e.parent;break;case rs.SyntaxKind.SpreadElement:if(e.parent.kind!==rs.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent}for(;;)switch(e.parent.kind){case rs.SyntaxKind.BinaryExpression:return e.parent.left===e&&e.parent.operatorToken.kind===rs.SyntaxKind.EqualsToken;case rs.SyntaxKind.ForOfStatement:return e.parent.initializer===e;case rs.SyntaxKind.ArrayLiteralExpression:case rs.SyntaxKind.ObjectLiteralExpression:e=e.parent;break;case rs.SyntaxKind.SpreadAssignment:case rs.SyntaxKind.PropertyAssignment:e=e.parent.parent;break;case rs.SyntaxKind.SpreadElement:if(e.parent.parent.kind!==rs.SyntaxKind.ArrayLiteralExpression)return!1;e=e.parent.parent;break;default:return!1}}function E(e){const t=e.parent;switch(t.kind){case rs.SyntaxKind.DeleteExpression:return 4;case rs.SyntaxKind.PostfixUnaryExpression:return 3;case rs.SyntaxKind.PrefixUnaryExpression:return t.operator===rs.SyntaxKind.PlusPlusToken||t.operator===rs.SyntaxKind.MinusMinusToken?3:1;case rs.SyntaxKind.BinaryExpression:return t.right===e?1:n(t.operatorToken.kind)?t.operatorToken.kind===rs.SyntaxKind.EqualsToken?2:3:1;case rs.SyntaxKind.ShorthandPropertyAssignment:return t.objectAssignmentInitializer===e?1:T(t)?2:1;case rs.SyntaxKind.PropertyAssignment:return t.name===e?0:T(t)?2:1;case rs.SyntaxKind.ArrayLiteralExpression:case rs.SyntaxKind.SpreadElement:case rs.SyntaxKind.SpreadAssignment:return T(t)?2:1;case rs.SyntaxKind.ParenthesizedExpression:case rs.SyntaxKind.NonNullExpression:case rs.SyntaxKind.TypeAssertionExpression:case rs.SyntaxKind.AsExpression:return E(t);case rs.SyntaxKind.ForOfStatement:case rs.SyntaxKind.ForInStatement:return t.initializer===e?2:1;case rs.SyntaxKind.ExpressionWithTypeArguments:return t.parent.token===rs.SyntaxKind.ExtendsKeyword&&t.parent.parent.kind!==rs.SyntaxKind.InterfaceDeclaration?1:0;case rs.SyntaxKind.ComputedPropertyName:case rs.SyntaxKind.ExpressionStatement:case rs.SyntaxKind.TypeOfExpression:case rs.SyntaxKind.ElementAccessExpression:case rs.SyntaxKind.ForStatement:case rs.SyntaxKind.IfStatement:case rs.SyntaxKind.DoStatement:case rs.SyntaxKind.WhileStatement:case rs.SyntaxKind.SwitchStatement:case rs.SyntaxKind.WithStatement:case rs.SyntaxKind.ThrowStatement:case rs.SyntaxKind.CallExpression:case rs.SyntaxKind.NewExpression:case rs.SyntaxKind.TaggedTemplateExpression:case rs.SyntaxKind.JsxExpression:case rs.SyntaxKind.Decorator:case rs.SyntaxKind.TemplateSpan:case rs.SyntaxKind.JsxOpeningElement:case rs.SyntaxKind.JsxSelfClosingElement:case rs.SyntaxKind.JsxSpreadAttribute:case rs.SyntaxKind.VoidExpression:case rs.SyntaxKind.ReturnStatement:case rs.SyntaxKind.AwaitExpression:case rs.SyntaxKind.YieldExpression:case rs.SyntaxKind.ConditionalExpression:case rs.SyntaxKind.CaseClause:case rs.SyntaxKind.JsxElement:return 1;case rs.SyntaxKind.ArrowFunction:return t.body===e?1:2;case rs.SyntaxKind.PropertyDeclaration:case rs.SyntaxKind.VariableDeclaration:case rs.SyntaxKind.Parameter:case rs.SyntaxKind.EnumMember:case rs.SyntaxKind.BindingElement:case rs.SyntaxKind.JsxAttribute:return t.initializer===e?1:0;case rs.SyntaxKind.PropertyAccessExpression:return t.expression===e?1:0;case rs.SyntaxKind.ExportAssignment:return t.isExportEquals?1:0}return 0}function C(e){switch(e.kind){case rs.SyntaxKind.Parameter:case rs.SyntaxKind.CallSignature:case rs.SyntaxKind.ConstructSignature:case rs.SyntaxKind.MethodSignature:case rs.SyntaxKind.PropertySignature:case rs.SyntaxKind.ArrowFunction:case rs.SyntaxKind.ParenthesizedExpression:case rs.SyntaxKind.SpreadAssignment:case rs.SyntaxKind.ShorthandPropertyAssignment:case rs.SyntaxKind.PropertyAssignment:case rs.SyntaxKind.FunctionExpression:case rs.SyntaxKind.FunctionDeclaration:case rs.SyntaxKind.LabeledStatement:case rs.SyntaxKind.ExpressionStatement:case rs.SyntaxKind.VariableStatement:case rs.SyntaxKind.Constructor:case rs.SyntaxKind.MethodDeclaration:case rs.SyntaxKind.PropertyDeclaration:case rs.SyntaxKind.GetAccessor:case rs.SyntaxKind.SetAccessor:case rs.SyntaxKind.ClassDeclaration:case rs.SyntaxKind.ClassExpression:case rs.SyntaxKind.InterfaceDeclaration:case rs.SyntaxKind.TypeAliasDeclaration:case rs.SyntaxKind.EnumMember:case rs.SyntaxKind.EnumDeclaration:case rs.SyntaxKind.ModuleDeclaration:case rs.SyntaxKind.ImportEqualsDeclaration:case rs.SyntaxKind.IndexSignature:case rs.SyntaxKind.FunctionType:case rs.SyntaxKind.ConstructorType:case rs.SyntaxKind.JSDocFunctionType:case rs.SyntaxKind.EndOfFileToken:case rs.SyntaxKind.ExportDeclaration:return!0;default:return!1}}function k(e,t){if(e.kind===rs.SyntaxKind.EndOfFileToken)return N(e,t||e.parent);const r=[];for(const n of e.getChildren(t)){if(!Xs.isJsDoc(n))break;r.push(n)}return r}function N(e,t,r){const n=e.getStart(t),i=rs[r&&D(t,e.pos,n)?"forEachTrailingCommentRange":"forEachLeadingCommentRange"](t.text,e.pos,(e,r,n)=>n===rs.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=rs.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,rs.forEachChild(e,t=>u(t,e),t=>{t.pos+=a,t.end+=a;for(const r of t)u(r,e)})}}function A(e,t){return new F(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>=rs.SyntaxKind.FirstNode},t.isAssignmentKind=n,t.isTypeNodeKind=function(e){return e>=rs.SyntaxKind.FirstTypeNode&&e<=rs.SyntaxKind.LastTypeNode},t.isJsDocKind=function(e){return e>=rs.SyntaxKind.FirstJSDocNode&&e<=rs.SyntaxKind.LastJSDocNode},t.isKeywordKind=function(e){return e>=rs.SyntaxKind.FirstKeyword&&e<=rs.SyntaxKind.LastKeyword},t.isThisParameter=function(e){return e.name.kind===rs.SyntaxKind.Identifier&&e.name.originalKeywordKind===rs.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,rs.SyntaxKind.PublicKeyword,rs.SyntaxKind.ProtectedKeyword,rs.SyntaxKind.PrivateKeyword,rs.SyntaxKind.ReadonlyKeyword)},t.hasAccessModifier=function(e){return i(e.modifiers,rs.SyntaxKind.PublicKeyword,rs.SyntaxKind.ProtectedKeyword,rs.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!=(rs.getCombinedModifierFlags(e)&t)},t.getPreviousStatement=function(e){const t=e.parent;if(Xs.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(Xs.isBlockLike(t)){const r=t.statements.indexOf(e);if(r<t.statements.length)return t.statements[r+1]}},t.getPreviousToken=function(e,t){let n=e.parent;for(;void 0!==n&&n.pos===e.pos;)n=n.parent;if(void 0!==n)e:for(;;){const i=n.getChildren(t);for(let t=i.length-1;t>=0;--t){const a=i[t];if(a.pos<e.pos&&a.kind!==rs.SyntaxKind.JSDocComment){if(r(a.kind))return a;n=a;continue e}}return}},t.getNextToken=function(e,t=e.getSourceFile()){if(e.kind===rs.SyntaxKind.SourceFile||e.kind===rs.SyntaxKind.EndOfFileToken)return;const r=e.end;for(e=e.parent;e.end===r;){if(void 0===e.parent)return e.endOfFileToken;e=e.parent}return s(e,r,t,!1)},t.getTokenAtPosition=o,t.getCommentAtPosition=c,t.isPositionInComment=function(e,t,r){return void 0!==c(e,t,r)},t.commentText=function(e,t){return e.substring(t.pos+2,t.kind===rs.SyntaxKind.SingleLineCommentTrivia?t.end:t.end-2)},t.getWrappedNodeAtPosition=function(e,t){if(!(e.node.pos>t||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===rs.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&rs.NodeFlags.Let?1:e.flags&rs.NodeFlags.Const?2:0},t.isBlockScopedVariableDeclarationList=_,t.isBlockScopedVariableDeclaration=function(e){const t=e.parent;return t.kind===rs.SyntaxKind.CatchClause||_(t)},t.isBlockScopedDeclarationStatement=function(e){switch(e.kind){case rs.SyntaxKind.VariableStatement:return _(e.declarationList);case rs.SyntaxKind.ClassDeclaration:case rs.SyntaxKind.EnumDeclaration:case rs.SyntaxKind.InterfaceDeclaration:case rs.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}},t.isInSingleStatementContext=function(e){switch(e.parent.kind){case rs.SyntaxKind.ForStatement:case rs.SyntaxKind.ForInStatement:case rs.SyntaxKind.ForOfStatement:case rs.SyntaxKind.WhileStatement:case rs.SyntaxKind.DoStatement:case rs.SyntaxKind.IfStatement:case rs.SyntaxKind.WithStatement:case rs.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 rs.SyntaxKind.ClassDeclaration:case rs.SyntaxKind.ClassExpression:case rs.SyntaxKind.FunctionExpression:return!0;case rs.SyntaxKind.FunctionDeclaration:return void 0!==e.body;case rs.SyntaxKind.MethodDeclaration:case rs.SyntaxKind.GetAccessor:case rs.SyntaxKind.SetAccessor:return e.parent.kind===rs.SyntaxKind.ObjectLiteralExpression;default:return!1}},t.isFunctionWithBody=function(e){switch(e.kind){case rs.SyntaxKind.GetAccessor:case rs.SyntaxKind.SetAccessor:case rs.SyntaxKind.FunctionDeclaration:case rs.SyntaxKind.MethodDeclaration:case rs.SyntaxKind.Constructor:return void 0!==e.body;case rs.SyntaxKind.FunctionExpression:case rs.SyntaxKind.ArrowFunction:return!0;default:return!1}},t.forEachToken=m,t.forEachTokenWithTrivia=function(e,t,r=e.getSourceFile()){const n=r.text,i=rs.createScanner(r.languageVersion,!1,r.languageVariant,n);return m(e,e=>{const a=e.kind===rs.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<a;){const s=i.getTextPos();if(t(n,r,{pos:o,end:s},e.parent),s===a)break;r=i.scan(),o=i.getTokenPos()}}return t(n,e.kind,{end:e.end,pos:a},e.parent)},r)},t.forEachComment=function(e,t,r=e.getSourceFile()){const n=r.text,i=r.languageVariant!==rs.LanguageVariant.JSX;return m(e,e=>{if(e.pos!==e.end)return e.kind!==rs.SyntaxKind.JsxText&&rs.forEachLeadingCommentRange(n,0===e.pos?(rs.getShebang(n)||"").length:e.pos,a),i||function(e){switch(e.kind){case rs.SyntaxKind.CloseBraceToken:return e.parent.kind!==rs.SyntaxKind.JsxExpression||!y(e.parent.parent);case rs.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case rs.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case rs.SyntaxKind.JsxOpeningFragment:return!1;case rs.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!y(e.parent.parent);case rs.SyntaxKind.JsxClosingElement:case rs.SyntaxKind.JsxClosingFragment:return!y(e.parent.parent.parent)}}return!0}(e)?rs.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;e<n;++e){const n=t[e];let o=n;for(;o>a&&rs.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=rs.ScriptTarget.Latest){const r=v(e,t);return r.isIdentifier()&&r.getTextPos()===e.length&&0===r.getTokenPos()},t.isValidPropertyAccess=x,t.isValidPropertyName=function(e,t=rs.ScriptTarget.Latest){if(x(e,t))return!0;const r=v(e,t);return r.getTextPos()===e.length&&r.getToken()===rs.SyntaxKind.NumericLiteral&&r.getTokenValue()===e},t.isValidNumericLiteral=function(e,t=rs.ScriptTarget.Latest){const r=v(e,t);return r.getToken()===rs.SyntaxKind.NumericLiteral&&r.getTextPos()===e.length&&0===r.getTokenPos()},t.isValidJsxIdentifier=function(e,t=rs.ScriptTarget.Latest){if(0===e.length)return!1;let r=e.codePointAt(0);if(!rs.isIdentifierStart(r,t))return!1;for(let n=b(r);n<e.length;n+=b(r))if(r=e.codePointAt(n),!rs.isIdentifierPart(r,t)&&45!==r)return!1;return!0},t.isNumericPropertyName=function(e){return String(+e)===e},t.isSameLine=D,function(e){e[e.None=0]="None",e[e.TaggedTemplate=1]="TaggedTemplate",e[e.Constructor=2]="Constructor",e[e.JsxElement=4]="JsxElement"}(t.SideEffectOptions||(t.SideEffectOptions={})),t.hasSideEffects=S,t.getDeclarationOfBindingElement=function(e){let t=e.parent.parent;for(;t.kind===rs.SyntaxKind.BindingElement;)t=t.parent.parent;return t},t.isExpressionValueUsed=function(e){for(;;){const t=e.parent;switch(t.kind){case rs.SyntaxKind.CallExpression:case rs.SyntaxKind.NewExpression:case rs.SyntaxKind.ElementAccessExpression:case rs.SyntaxKind.WhileStatement:case rs.SyntaxKind.DoStatement:case rs.SyntaxKind.WithStatement:case rs.SyntaxKind.ThrowStatement:case rs.SyntaxKind.ReturnStatement:case rs.SyntaxKind.JsxExpression:case rs.SyntaxKind.JsxSpreadAttribute:case rs.SyntaxKind.JsxElement:case rs.SyntaxKind.JsxFragment:case rs.SyntaxKind.JsxSelfClosingElement:case rs.SyntaxKind.ComputedPropertyName:case rs.SyntaxKind.ArrowFunction:case rs.SyntaxKind.ExportSpecifier:case rs.SyntaxKind.ExportAssignment:case rs.SyntaxKind.ImportDeclaration:case rs.SyntaxKind.ExternalModuleReference:case rs.SyntaxKind.Decorator:case rs.SyntaxKind.TaggedTemplateExpression:case rs.SyntaxKind.TemplateSpan:case rs.SyntaxKind.ExpressionWithTypeArguments:case rs.SyntaxKind.TypeOfExpression:case rs.SyntaxKind.AwaitExpression:case rs.SyntaxKind.YieldExpression:case rs.SyntaxKind.LiteralType:case rs.SyntaxKind.JsxAttributes:case rs.SyntaxKind.JsxOpeningElement:case rs.SyntaxKind.JsxClosingElement:case rs.SyntaxKind.IfStatement:case rs.SyntaxKind.CaseClause:case rs.SyntaxKind.SwitchStatement:return!0;case rs.SyntaxKind.PropertyAccessExpression:return t.expression===e;case rs.SyntaxKind.QualifiedName:return t.left===e;case rs.SyntaxKind.ShorthandPropertyAssignment:return t.objectAssignmentInitializer===e||!T(t);case rs.SyntaxKind.PropertyAssignment:return t.initializer===e&&!T(t);case rs.SyntaxKind.SpreadAssignment:case rs.SyntaxKind.SpreadElement:case rs.SyntaxKind.ArrayLiteralExpression:return!T(t);case rs.SyntaxKind.ParenthesizedExpression:case rs.SyntaxKind.AsExpression:case rs.SyntaxKind.TypeAssertionExpression:case rs.SyntaxKind.PostfixUnaryExpression:case rs.SyntaxKind.PrefixUnaryExpression:case rs.SyntaxKind.NonNullExpression:e=t;break;case rs.SyntaxKind.ForStatement:return t.condition===e;case rs.SyntaxKind.ForInStatement:case rs.SyntaxKind.ForOfStatement:return t.expression===e;case rs.SyntaxKind.ConditionalExpression:if(t.condition===e)return!0;e=t;break;case rs.SyntaxKind.PropertyDeclaration:case rs.SyntaxKind.BindingElement:case rs.SyntaxKind.VariableDeclaration:case rs.SyntaxKind.Parameter:case rs.SyntaxKind.EnumMember:return t.initializer===e;case rs.SyntaxKind.ImportEqualsDeclaration:return t.moduleReference===e;case rs.SyntaxKind.CommaListExpression:if(t.elements[t.elements.length-1]!==e)return!1;e=t;break;case rs.SyntaxKind.BinaryExpression:if(t.right===e){if(t.operatorToken.kind===rs.SyntaxKind.CommaToken){e=t;break}return!0}switch(t.operatorToken.kind){case rs.SyntaxKind.CommaToken:case rs.SyntaxKind.EqualsToken:return!1;case rs.SyntaxKind.EqualsEqualsEqualsToken:case rs.SyntaxKind.EqualsEqualsToken:case rs.SyntaxKind.ExclamationEqualsEqualsToken:case rs.SyntaxKind.ExclamationEqualsToken:case rs.SyntaxKind.InstanceOfKeyword:case rs.SyntaxKind.PlusToken:case rs.SyntaxKind.MinusToken:case rs.SyntaxKind.AsteriskToken:case rs.SyntaxKind.SlashToken:case rs.SyntaxKind.PercentToken:case rs.SyntaxKind.AsteriskAsteriskToken:case rs.SyntaxKind.GreaterThanToken:case rs.SyntaxKind.GreaterThanGreaterThanToken:case rs.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case rs.SyntaxKind.GreaterThanEqualsToken:case rs.SyntaxKind.LessThanToken:case rs.SyntaxKind.LessThanLessThanToken:case rs.SyntaxKind.LessThanEqualsToken:case rs.SyntaxKind.AmpersandToken:case rs.SyntaxKind.BarToken:case rs.SyntaxKind.CaretToken:case rs.SyntaxKind.BarBarToken:case rs.SyntaxKind.AmpersandAmpersandToken:case rs.SyntaxKind.InKeyword:return!0;default:e=t}break;default:return!1}}},function(e){e[e.None=0]="None",e[e.Read=1]="Read",e[e.Write=2]="Write",e[e.Delete=4]="Delete",e[e.ReadWrite=3]="ReadWrite",e[e.Modification=6]="Modification"}(t.AccessKind||(t.AccessKind={})),t.getAccessKind=E,t.isReassignmentTarget=function(e){return 0!=(2&E(e))},t.canHaveJsDoc=C,t.getJsDoc=k,t.parseJsDocOfNode=function(e,t,r=e.getSourceFile()){if(C(e)&&e.kind!==rs.SyntaxKind.EndOfFileToken){const n=k(e,r);if(0!==n.length||!t)return n}return N(e,r,t)},function(e){e[e.ImportDeclaration=1]="ImportDeclaration",e[e.ImportEquals=2]="ImportEquals",e[e.ExportFrom=4]="ExportFrom",e[e.DynamicImport=8]="DynamicImport",e[e.Require=16]="Require",e[e.ImportType=32]="ImportType",e[e.All=63]="All",e[e.AllImports=59]="AllImports",e[e.AllStaticImports=3]="AllStaticImports",e[e.AllImportExpressions=24]="AllImportExpressions",e[e.AllRequireLike=18]="AllRequireLike",e[e.AllNestedImports=56]="AllNestedImports",e[e.AllTopLevelImports=7]="AllTopLevelImports"}(t.ImportKind||(t.ImportKind={})),t.findImports=function(e,t){const r=[];for(const r of A(e,t))switch(r.kind){case rs.SyntaxKind.ImportDeclaration:n(r.moduleSpecifier);break;case rs.SyntaxKind.ImportEqualsDeclaration:n(r.moduleReference.expression);break;case rs.SyntaxKind.ExportDeclaration:n(r.moduleSpecifier);break;case rs.SyntaxKind.CallExpression:n(r.arguments[0]);break;case rs.SyntaxKind.ImportType:Xs.isLiteralTypeNode(r.argument)&&n(r.argument.literal);break;default:throw new Error("unexpected node")}return r;function n(e){Xs.isTextualLiteral(e)&&r.push(e)}},t.findImportLikeNodes=A;class F{constructor(e,t){this._sourceFile=e,this._options=t,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 t of e)Xs.isImportDeclaration(t)?1&this._options&&this._result.push(t):Xs.isImportEqualsDeclaration(t)?2&this._options&&t.moduleReference.kind===rs.SyntaxKind.ExternalModuleReference&&this._result.push(t):Xs.isExportDeclaration(t)?void 0!==t.moduleSpecifier&&4&this._options&&this._result.push(t):Xs.isModuleDeclaration(t)&&this._findImportsInModule(t)}_findImportsInModule(e){if(void 0!==e.body)return e.body.kind===rs.SyntaxKind.ModuleDeclaration?this._findImportsInModule(e.body):void this._findImports(e.body.statements)}_findNestedImports(){let e;e=16==(56&this._options)?/\brequire\s*[</(]/g:16&this._options?/\b(?:import|require)\s*[</(]/g:/\bimport\s*[</(]/g;const t=0!=(this._sourceFile.flags&rs.NodeFlags.JavaScriptFile);for(let r=e.exec(this._sourceFile.text);null!==r;r=e.exec(this._sourceFile.text)){const e=s(this._sourceFile,r.index,this._sourceFile,"i"===r[0][0]&&t);if(e.kind===rs.SyntaxKind.ImportKeyword){if(e.end-"import".length!==r.index)continue;switch(e.parent.kind){case rs.SyntaxKind.ImportType:this._result.push(e.parent);break;case rs.SyntaxKind.CallExpression:1===e.parent.arguments.length&&this._result.push(e.parent)}}else e.kind===rs.SyntaxKind.Identifier&&e.end-"require".length===r.index&&e.parent.kind===rs.SyntaxKind.CallExpression&&e.parent.expression===e&&1===e.parent.arguments.length&&this._result.push(e.parent)}}}function P(e){for(;e.kind===rs.SyntaxKind.ModuleBlock;){do{e=e.parent}while(e.flags&rs.NodeFlags.NestedNamespace);if(i(e.modifiers,rs.SyntaxKind.DeclareKeyword))return!0;e=e.parent}return!1}function w(e,t){return(e.strict?!1!==e[t]:!0===e[t])&&("strictPropertyInitialization"!==t||w(e,"strictNullChecks"))}function I(e){return Xs.isTypeReferenceNode(e.type)&&e.type.typeName.kind===rs.SyntaxKind.Identifier&&"const"===e.type.typeName.escapedText}function O(e){return 3===e.arguments.length&&Xs.isEntityNameExpression(e.arguments[0])&&Xs.isNumericOrStringLikeLiteral(e.arguments[1])&&Xs.isPropertyAccessExpression(e.expression)&&"defineProperty"===e.expression.name.escapedText&&Xs.isIdentifier(e.expression.expression)&&"Object"===e.expression.expression.escapedText}function M(e){return rs.isPropertyAccessExpression(e)&&rs.isIdentifier(e.expression)&&"Symbol"===e.expression.escapedText}function L(e){return{displayName:"[Symbol.".concat(e.name.text,"]"),symbolName:"__@"+e.name.text}}function R(e,t){const r={known:!0,names:[]};if(M(e=B(e)))r.names.push(L(e));else{const n=t.getTypeAtLocation(e);for(const e of nc.unionTypeParts(t.getBaseConstraintOfType(n)||n)){const t=nc.getPropertyNameFromType(e);t?r.names.push(t):r.known=!1}}return r}function B(e){for(;e.kind===rs.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}t.isStatementInAmbientContext=function(e){for(;e.flags&rs.NodeFlags.NestedNamespace;)e=e.parent;return i(e.modifiers,rs.SyntaxKind.DeclareKeyword)||P(e.parent)},t.isAmbientModuleBlock=P,t.getIIFE=function(e){let t=e.parent;for(;t.kind===rs.SyntaxKind.ParenthesizedExpression;)t=t.parent;return Xs.isCallExpression(t)&&e.end<=t.expression.end?t:void 0},t.isStrictCompilerOptionEnabled=w,t.isCompilerOptionEnabled=function e(t,r){switch(r){case"stripInternal":return!0===t.stripInternal&&e(t,"declaration");case"declaration":return t.declaration||e(t,"composite");case"incremental":return void 0===t.incremental?e(t,"composite"):t.incremental;case"skipDefaultLibCheck":return t.skipDefaultLibCheck||e(t,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return!0===t.suppressImplicitAnyIndexErrors&&e(t,"noImplicitAny");case"allowSyntheticDefaultImports":return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:e(t,"esModuleInterop")||t.module===rs.ModuleKind.System;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return w(t,r)}return!0===t[r]},t.isAmbientModule=function(e){return e.name.kind===rs.SyntaxKind.StringLiteral||0!=(e.flags&rs.NodeFlags.GlobalAugmentation)},t.getCheckJsDirective=function(e){let t;return rs.forEachLeadingCommentRange(e,(rs.getShebang(e)||"").length,(r,n,i)=>{if(i===rs.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 rs.SyntaxKind.TypeAssertionExpression:case rs.SyntaxKind.AsExpression:return I(e);case rs.SyntaxKind.PrefixUnaryExpression:if(t.kind!==rs.SyntaxKind.NumericLiteral)return!1;switch(e.operator){case rs.SyntaxKind.PlusToken:case rs.SyntaxKind.MinusToken:t=e;break e;default:return!1}case rs.SyntaxKind.PropertyAssignment:if(e.initializer!==t)return!1;t=e.parent;break;case rs.SyntaxKind.ShorthandPropertyAssignment:t=e.parent;break;case rs.SyntaxKind.ParenthesizedExpression:case rs.SyntaxKind.ArrayLiteralExpression:case rs.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&&Xs.isPropertyAssignment(n.valueDeclaration)?t.getTypeAtLocation(n.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(n,e.arguments[2]);return nc.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:rs.escapeLeadingUnderscores(r)}]}:R(e.expression,t)},t.getSingleLateBoundPropertyNameOfPropertyName=function(e,t){const r=l(e);if(void 0!==r)return{displayName:r,symbolName:rs.escapeLeadingUnderscores(r)};const{expression:n}=e;return M(n)?L(n):nc.getPropertyNameFromType(t.getTypeAtLocation(n))},t.unwrapParentheses=B})),ac=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(rs);r.convertComments=function(e,t){const r=[];return ic.forEachComment(e,(n,i)=>{const a=i.kind==o.SyntaxKind.SingleLineCommentTrivia?Ms.AST_TOKEN_TYPES.Line:Ms.AST_TOKEN_TYPES.Block,s=[i.pos,i.end],c=Rs.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}})),oc=["left","right"],sc=["left","right"],cc=["elements"],uc=["elements"],lc=["params","body"],dc=["argument"],_c=["body"],pc=["left","right"],fc=["label"],gc=["callee","arguments"],mc=["param","body"],yc=["expression"],hc=["body"],vc=["id","superClass","body"],bc=["id","superClass","body"],xc=["test","consequent","alternate"],Dc=["label"],Sc=[],Tc=["body","test"],Ec=[],Cc=["exported","source"],kc=["declaration"],Nc=["declaration","specifiers","source"],Ac=["exported","local"],Fc=["expression"],Pc=["argument"],wc=["argument"],Ic=["init","test","update","body"],Oc=["left","right","body"],Mc=["left","right","body"],Lc=["id","params","body"],Rc=["id","params","body"],Bc=[],jc=["test","consequent","alternate"],Jc=["specifiers","source"],Kc=["local"],zc=["source"],Uc=["local"],Vc=["imported","local"],qc=["name","value"],Wc=["name"],Hc=["openingElement","children","closingElement"],Gc=[],Yc=["expression"],Xc=[],Qc=["object","property"],$c=["namespace","name"],Zc=["name","attributes"],eu=["argument"],tu=[],ru=["openingFragment","children","closingFragment"],nu=[],iu=["label","body"],au=["left","right"],ou=["object","property"],su=["meta","property"],cu=["key","value"],uu=["callee","arguments"],lu=["properties"],du=["properties"],_u=["body"],pu=["key","value"],fu=["argument"],gu=["argument"],mu=["expressions"],yu=["argument"],hu=[],vu=["discriminant","cases"],bu=["test","consequent"],xu=["tag","quasi"],Du=[],Su=["quasis","expressions"],Tu=[],Eu=["argument"],Cu=["block","handler","finalizer"],ku=["argument"],Nu=["argument"],Au=["declarations"],Fu=["id","init"],Pu=["test","body"],wu=["object","body"],Iu=["argument"],Ou={AssignmentExpression:oc,AssignmentPattern:sc,ArrayExpression:cc,ArrayPattern:uc,ArrowFunctionExpression:lc,AwaitExpression:dc,BlockStatement:_c,BinaryExpression:pc,BreakStatement:fc,CallExpression:gc,CatchClause:mc,ChainExpression:yc,ClassBody:hc,ClassDeclaration:vc,ClassExpression:bc,ConditionalExpression:xc,ContinueStatement:Dc,DebuggerStatement:Sc,DoWhileStatement:Tc,EmptyStatement:Ec,ExportAllDeclaration:Cc,ExportDefaultDeclaration:kc,ExportNamedDeclaration:Nc,ExportSpecifier:Ac,ExpressionStatement:Fc,ExperimentalRestProperty:Pc,ExperimentalSpreadProperty:wc,ForStatement:Ic,ForInStatement:Oc,ForOfStatement:Mc,FunctionDeclaration:Lc,FunctionExpression:Rc,Identifier:Bc,IfStatement:jc,ImportDeclaration:Jc,ImportDefaultSpecifier:Kc,ImportExpression:zc,ImportNamespaceSpecifier:Uc,ImportSpecifier:Vc,JSXAttribute:qc,JSXClosingElement:Wc,JSXElement:Hc,JSXEmptyExpression:Gc,JSXExpressionContainer:Yc,JSXIdentifier:Xc,JSXMemberExpression:Qc,JSXNamespacedName:$c,JSXOpeningElement:Zc,JSXSpreadAttribute:eu,JSXText:tu,JSXFragment:ru,Literal:nu,LabeledStatement:iu,LogicalExpression:au,MemberExpression:ou,MetaProperty:su,MethodDefinition:cu,NewExpression:uu,ObjectExpression:lu,ObjectPattern:du,Program:_u,Property:pu,RestElement:fu,ReturnStatement:gu,SequenceExpression:mu,SpreadElement:yu,Super:hu,SwitchStatement:vu,SwitchCase:bu,TaggedTemplateExpression:xu,TemplateElement:Du,TemplateLiteral:Su,ThisExpression:Tu,ThrowStatement:Eu,TryStatement:Cu,UnaryExpression:ku,UpdateExpression:Nu,VariableDeclaration:Au,VariableDeclarator:Fu,WhileStatement:Pu,WithStatement:wu,YieldExpression:Iu},Mu=n(Object.freeze({__proto__:null,AssignmentExpression:oc,AssignmentPattern:sc,ArrayExpression:cc,ArrayPattern:uc,ArrowFunctionExpression:lc,AwaitExpression:dc,BlockStatement:_c,BinaryExpression:pc,BreakStatement:fc,CallExpression:gc,CatchClause:mc,ChainExpression:yc,ClassBody:hc,ClassDeclaration:vc,ClassExpression:bc,ConditionalExpression:xc,ContinueStatement:Dc,DebuggerStatement:Sc,DoWhileStatement:Tc,EmptyStatement:Ec,ExportAllDeclaration:Cc,ExportDefaultDeclaration:kc,ExportNamedDeclaration:Nc,ExportSpecifier:Ac,ExpressionStatement:Fc,ExperimentalRestProperty:Pc,ExperimentalSpreadProperty:wc,ForStatement:Ic,ForInStatement:Oc,ForOfStatement:Mc,FunctionDeclaration:Lc,FunctionExpression:Rc,Identifier:Bc,IfStatement:jc,ImportDeclaration:Jc,ImportDefaultSpecifier:Kc,ImportExpression:zc,ImportNamespaceSpecifier:Uc,ImportSpecifier:Vc,JSXAttribute:qc,JSXClosingElement:Wc,JSXElement:Hc,JSXEmptyExpression:Gc,JSXExpressionContainer:Yc,JSXIdentifier:Xc,JSXMemberExpression:Qc,JSXNamespacedName:$c,JSXOpeningElement:Zc,JSXSpreadAttribute:eu,JSXText:tu,JSXFragment:ru,Literal:nu,LabeledStatement:iu,LogicalExpression:au,MemberExpression:ou,MetaProperty:su,MethodDefinition:cu,NewExpression:uu,ObjectExpression:lu,ObjectPattern:du,Program:_u,Property:pu,RestElement:fu,ReturnStatement:gu,SequenceExpression:mu,SpreadElement:yu,Super:hu,SwitchStatement:vu,SwitchCase:bu,TaggedTemplateExpression:xu,TemplateElement:Du,TemplateLiteral:Su,ThisExpression:Tu,ThrowStatement:Eu,TryStatement:Cu,UnaryExpression:ku,UpdateExpression:Nu,VariableDeclaration:Au,VariableDeclarator:Fu,WhileStatement:Pu,WithStatement:wu,YieldExpression:Iu,default:Ou}));const Lu=Object.freeze(Object.keys(Mu));for(const e of Lu)Object.freeze(Mu[e]);Object.freeze(Mu);const Ru=new Set(["parent","leadingComments","trailingComments"]);function Bu(e){return!Ru.has(e)&&"_"!==e[0]}var ju=Object.freeze({KEYS:Mu,getKeys:e=>Object.keys(e).filter(Bu),unionWith(e){const t=Object.assign({},Mu);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)}}),Ju=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(ju).unionWith({ImportExpression:["source"],ArrayPattern:["decorators","elements","typeAnnotation"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],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"],OptionalCallExpression:["callee","typeParameters","arguments"],OptionalMemberExpression:["object","property"],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:["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:[],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})),Ku=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visitorKeys=void 0,Object.defineProperty(t,"visitorKeys",{enumerable:!0,get:function(){return Ju.visitorKeys}})})),zu=r((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.simpleTraverse=void 0;class r{constructor(e,t=!1){this.allVisitorKeys=Ku.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)}})),Uu=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 Bs.convertError(n[0]);const i=new Bs.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1,shouldPreserveNodeMaps:r}),a=i.convertProgram();return t.range&&t.loc||zu.simpleTraverse(a,{enter:e=>{t.range||delete e.range,t.loc||delete e.loc}}),t.tokens&&(a.tokens=Rs.convertTokens(e)),t.comment&&(a.comments=ac.convertComments(e,t.code)),{estree:a,astMaps:i.getASTMaps()}}})),Vu=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(fr),c=a(rs),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}}})),qu=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(lr),c=o(fr),u=a(rs),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=Vu.getTsconfigPath(t.projects[0],t),n=u.getParsedCommandLineOfConfigFile(r,Vu.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}}})),Wu=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(lr),c=a(rs),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,Vu.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},Vu.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}}})),Hu=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(lr),c=o(gr),u=o(ba),l=a(rs),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 h(e){return(t,r)=>{const n=Vu.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 v={code:"",filePath:""};function b(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}r.getProgramsForProjects=function(e,t,r){const n=Vu.getCanonicalFileName(t),i=[];v.code=e,v.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 of r.projects){const t=Vu.getTsconfigPath(e,r),i=_.get(t);if(!i)continue;let a=g.get(t),o=null;if(a||(o=i.getProgram().getProgram(),a=new Set(o.getRootFileNames().map(e=>Vu.getCanonicalFileName(e))),g.set(t,a)),a.has(n))return d("Found existing program for file. %s",n),o=null!=o?o:i.getProgram().getProgram(),o.getTypeChecker(),[o]}d("File did not belong to any existing programs, moving to create/update. %s",n);for(const e of r.projects){const t=Vu.getTsconfigPath(e,r),a=_.get(t);if(a){const e=T(a,n,t);if(!e)continue;e.getTypeChecker(),i.push(e);continue}const o=S(t,r),s=o.getProgram().getProgram();_.set(t,o),s.getTypeChecker(),i.push(s)}return i};const D=u.default.satisfies(l.version,">=3.9.0-beta",{includePrerelease:!0});function S(e,t){d("Creating watch program for %s.",e);const r=l.createWatchCompilerHost(e,Vu.createDefaultCompilerOptionsFromExtra(t),l.sys,l.createAbstractBuilder,b,()=>{}),n=r.readFile;r.readFile=(e,t)=>{const r=Vu.getCanonicalFileName(e),i=r===v.filePath?v.code:n(r,t);return void 0!==i&&y.set(r,x(i)),i},r.onUnRecoverableConfigFileDiagnostic=b,r.afterProgramCreate=e=>{const t=e.getConfigFileParsingDiagnostics().filter(e=>e.category===l.DiagnosticCategory.Error&&18003!==e.code);t.length>0&&b(t[0])},r.watchFile=h(p),r.watchDirectory=h(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,D?(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(!D){const e=o.getProgram;o.getProgram=()=>(a&&a(),a=void 0,e.call(o))}return o}function T(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=Vu.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=Vu.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(Vu.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=S})),Gu=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(lr),a=n(fr),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=Rs.firstDefined(Hu.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}})),Yu=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(lr),c=a(rs),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,Vu.getScriptKind(t))}})),Xu=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(rs);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))}}})),Qu=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.parseAndGenerateServices=r.parse=void 0;const s=o(lr),c=o(si),u=o(ba),l=a(rs),d=s.default("typescript-eslint:typescript-estree:parser"),_=">=3.3.1 <4.1.0",p=l.version,f=u.default.satisfies(p,[_].concat([]).join(" || "));let g,m=!1;function y(e){return"string"!=typeof e?String(e):e}function h({jsx:e}={}){return e?"estree.tsx":"estree.ts"}function v(){g={code:"",comment:!1,comments:[],createDefaultProgram:!1,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!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 b(e){if(!0===e.debugLevel?g.debugLevel=new Set(["typescript-eslint"]):Array.isArray(e.debugLevel)&&(g.debugLevel=new Set(e.debugLevel)),g.debugLevel.size>0){const e=[];g.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(g.debugLevel.has("eslint")||s.default.enabled("eslint:*"))&&e.push("eslint:*,-eslint:code-path"),s.default.enable(e.join(","))}g.range="boolean"==typeof e.range&&e.range,g.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(g.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(g.comment=!0,g.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(g.jsx=!0),"string"==typeof e.filePath&&"<input>"!==e.filePath?g.filePath=e.filePath:g.filePath=h(g),"boolean"==typeof e.useJSXTextNode&&e.useJSXTextNode&&(g.useJSXTextNode=!0),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(g.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?g.log=e.loggerFn:!1===e.loggerFn&&(g.log=()=>{}),"string"==typeof e.tsconfigRootDir&&(g.tsconfigRootDir=e.tsconfigRootDir),g.filePath=Vu.ensureAbsolutePath(g.filePath,g),g.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;r=r.reduce((e,t)=>e.concat(c.default(t)?Yn.sync(t,{cwd:g.tsconfigRootDir}):t),[]);const n=[];if(Array.isArray(t))for(const e of t)e instanceof RegExp?n.push(e):"string"==typeof e&&n.push(new RegExp(e));else n.push(/\/node_modules\//);const i=r.filter(e=>{for(const t of n)if(t.test(e))return!1;return!0});return d("parserOptions.project matched projects: %s",r),d("ignore list applied to parserOptions.project: %s",i),i}(e.project,e.projectFolderIgnoreList),Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every(e=>"string"==typeof e)&&(g.extraFileExtensions=e.extraFileExtensions),"boolean"==typeof e.preserveNodeMaps&&(g.preserveNodeMaps=e.preserveNodeMaps),g.createDefaultProgram="boolean"==typeof e.createDefaultProgram&&e.createDefaultProgram}function x(){var e;if(!f&&!m){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(_),"YOUR TYPESCRIPT VERSION: ".concat(p),"Please only submit bug reports when using the officially supported version.",e];g.log(t.join("\n\n"))}m=!0}}r.parse=function(e,t){if(v(),null==t?void 0:t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');e=y(e),g.code=e,void 0!==t&&b(t),x();const r=Yu.createSourceFile(e,g),{estree:n}=Uu.astConverter(r,g,!1);return n},r.parseAndGenerateServices=function(e,t){v(),e=y(e),g.code=e,void 0!==t&&(b(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(g.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),x();const r=g.projects&&g.projects.length>0,{ast:n,program:i}=function(e,t,r){return t&&Gu.createProjectProgram(e,r,g)||t&&r&&qu.createDefaultProgram(e,g)||Wu.createIsolatedProgram(e,g)}(e,r,g.createDefaultProgram),a="boolean"!=typeof g.preserveNodeMaps||g.preserveNodeMaps,{estree:o,astMaps:s}=Uu.astConverter(n,g,a);if(i&&g.errorOnTypeScriptSyntacticAndSemanticIssues){const e=Xu.getFirstSemanticOrSyntacticError(i,n);if(e)throw Bs.convertError(e)}return{ast:o,services:{hasFullTypeInformation:r,program:i,esTreeNodeToTSNodeMap:s.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:s.tsNodeToESTreeNodeMap}}}})),$u="@typescript-eslint/typescript-estree",Zu="A parser that converts TypeScript source code into an ESTree compatible form",el=["dist","README.md","LICENSE"],tl={node:"^10.12.0 || >=12.0.0"},rl={type:"git",url:"https://github.com/typescript-eslint/typescript-eslint.git",directory:"packages/typescript-estree"},nl={url:"https://github.com/typescript-eslint/typescript-eslint/issues"},il=["ast","estree","ecmascript","javascript","typescript","parser","syntax"],al={build:"tsc -b tsconfig.build.json",clean:"tsc -b tsconfig.build.json --clean",postclean:"rimraf dist",format:'prettier --write "./**/*.{ts,js,json,md}" --ignore-path ../../.prettierignore',lint:"eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",test:"jest --coverage",typecheck:"tsc -p tsconfig.json --noEmit"},ol={"@typescript-eslint/types":"3.10.0","@typescript-eslint/visitor-keys":"3.10.0",debug:"^4.1.1",glob:"^7.1.6","is-glob":"^4.0.1",lodash:"^4.17.15",semver:"^7.3.2",tsutils:"^3.17.1"},sl={"@babel/code-frame":"^7.10.4","@babel/parser":"^7.11.3","@babel/types":"^7.11.0","@types/babel__code-frame":"^7.0.1","@types/debug":"^4.1.5","@types/is-glob":"^4.0.1","@types/lodash":"^4.14.149","@types/semver":"^7.1.0","@types/tmp":"^0.2.0","@typescript-eslint/shared-fixtures":"3.10.0",glob:"*","jest-specific-snapshot":"*","make-dir":"*",tmp:"^0.2.1",typescript:"*"},cl={typescript:{optional:!0}},ul={type:"opencollective",url:"https://opencollective.com/typescript-eslint"},ll="50f9c4afcb08f65a5c6410e8a08f90df6f266cac",dl={name:$u,version:"3.10.0",description:Zu,main:"dist/index.js",types:"dist/index.d.ts",files:el,engines:tl,repository:rl,bugs:nl,license:"BSD-2-Clause",keywords:il,scripts:al,dependencies:ol,devDependencies:sl,peerDependenciesMeta:cl,funding:ul,gitHead:ll},_l=n(Object.freeze({__proto__:null,name:$u,version:"3.10.0",description:Zu,main:"dist/index.js",types:"dist/index.d.ts",files:el,engines:tl,repository:rl,bugs:nl,license:"BSD-2-Clause",keywords:il,scripts:al,dependencies:ol,devDependencies:sl,peerDependenciesMeta:cl,funding:ul,gitHead:ll,default:dl})),pl=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=r.parseAndGenerateServices=r.parse=void 0,Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return Qu.parse}}),Object.defineProperty(r,"parseAndGenerateServices",{enumerable:!0,get:function(){return Qu.parseAndGenerateServices}}),Object.defineProperty(r,"simpleTraverse",{enumerable:!0,get:function(){return zu.simpleTraverse}}),i(Ms,r),Object.defineProperty(r,"clearCaches",{enumerable:!0,get:function(){return Hu.clearCaches}}),Object.defineProperty(r,"visitorKeys",{enumerable:!0,get:function(){return Ku.visitorKeys}}),r.version=_l.version}));const{hasPragma:fl}=it,{locStart:gl,locEnd:ml}=st;function yl(e,t){return pl.parse(e,{loc:!0,range:!0,comment:!0,useJSXTextNode:!0,jsx:t,tokens:!0,loggerFn:!1})}return{parsers:{typescript:{parse:function(t,r,n){const i=function(e){return new RegExp(["(^[^\"'`]*</)","|","(^[^/]{2}.*/>)"].join(""),"m").test(e)}(t);let a;try{a=yl(t,i)}catch(r){try{a=yl(t,!i)}catch(t){const n=r;if(void 0===n.lineNumber)throw n;throw e(n.message,{start:{line:n.lineNumber,column:n.column+1}})}}return zt(a,Object.assign({},n,{originalText:t}))},astFormat:"estree",hasPragma:fl,locStart:gl,locEnd:ml}}}}));