From c6fe848be271d90bdabf5e6d336a56f2f3be9e49 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Mon, 12 Oct 2020 21:18:02 -0700 Subject: [PATCH] fix: project param support --- .github/workflows/main.yml | 6 ++++++ dist/index.js | 2 +- projectFixtures/sub/package.json | 7 +++++++ projectFixtures/sub/src/main.js | 12 +++++++++++ projectFixtures/sub/tsconfig.json | 35 +++++++++++++++++++++++++++++++ src/index.ts | 24 +++++++++++++++++---- 6 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 projectFixtures/sub/package.json create mode 100644 projectFixtures/sub/src/main.js create mode 100644 projectFixtures/sub/tsconfig.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d85f66..7540d95 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,5 +23,11 @@ jobs: ${{ runner.os }}-node- - name: Install dependencies run: yarn install --frozen-lockfile + - name: Build + run: yarn build - name: Typecheck uses: ./ + - name: Typecheck projectFixtures/sub + uses: ./ + with: + project: projectFixtures/sub diff --git a/dist/index.js b/dist/index.js index e2af61f..9ffba1f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13,4 +13,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var a,i=this&&this.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0;for(var t=0,r=e;t>1);switch(r(t(e[c]),n)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function h(e,n,t,r,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===r||r<0?0:r,s=void 0===a||o+a>i-1?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=t;o<=s;)c=n(c,e[o],o),o++;return c}}return t}e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim"),e.getIterator=t,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(n){var t=new e.Map;for(var r in n)v.call(n,r)&&t.set(r,n[r]);return t},e.length=function(e){return e?e.length:0},e.forEach=function(e,n){if(e)for(var t=0;t=0;t--){var r=n(e[t],t);if(r)return r}},e.firstDefined=function(e,n){if(void 0!==e)for(var t=0;t=0;t--){var r=e[t];if(n(r,t))return r}},e.findIndex=function(e,n,t){for(var r=t||0;r=0;r--)if(n(e[r],r))return r;return-1},e.findMap=function(n,t){for(var r=0;r0&&e.Debug.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);n:for(var s=i;is&&e.Debug.assertGreaterThanOrEqual(r(n[i],n[i-1]),0),r(t[o],n[i])){case-1:a.push(t[o]);continue e;case 0:continue e;case 1:continue n}}return a},e.sum=function(e,n){for(var t=0,r=0,a=e;rn?1:0}function G(e,n){return P(e,n)}e.toFileNameLowerCase=O,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var n;return function(){return e&&(n=e(),e=void 0),n}},e.memoizeOne=function(n){var t=new e.Map;return function(e){var r=typeof e+":"+e,a=t.get(r);return void 0!==a||t.has(r)||(a=n(e),t.set(r,a)),a}},e.compose=function(e,n,t,r,a){if(a){for(var i=[],o=0;o0?1:0}function a(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return r(e,t,n)}}function i(e){return void 0!==e?o():function(e,t){return r(e,t,n)};function n(e,n){return e.localeCompare(n)}}function o(){return function(n,t){return r(n,t,e)};function e(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,n){return en?1:0}}}();function j(e,n,t){for(var r=new Array(n.length+1),a=new Array(n.length+1),i=t+1,o=0;o<=n.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>t?o-t:1,l=n.length>t+o?t+o:n.length;a[0]=o;for(var u=o,d=1;dt)return;var f=r;r=a,a=f}var m=r[n.length];return m>t?void 0:m}function H(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function K(e,n){for(var t=n;t=t.length+r.length&&z(n,t)&&H(n,r)}e.getUILocale=function(){return U},e.setUILocale=function(e){U!==e&&(U=e,B=void 0)},e.compareStringsCaseSensitiveUI=function(e,n){return(B||(B=V(U)))(e,n)},e.compareProperties=function(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])},e.compareBooleans=function(e,n){return M(e?1:0,n?1:0)},e.getSpellingSuggestion=function(n,t,r){for(var a,i=Math.min(2,Math.floor(.34*n.length)),o=Math.floor(.4*n.length)+1,s=!1,c=n.toLowerCase(),l=0,u=t;la&&(a=c.prefix.length,r=s)}return r},e.startsWith=z,e.removePrefix=function(e,n){return z(e,n)?e.substr(n.length):e},e.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=N),z(t(e),t(n))?e.substring(n.length):void 0},e.and=function(e,n){return function(t){return e(t)&&n(t)}},e.or=function(){for(var e=[],n=0;n=e}function p(n,r){return!!d(n)||(u[r]={level:n,assertion:t[r]},t[r]=e.noop,!1)}function f(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||f),t}function m(e,n,t,r){e||(n=n?"False expression: "+n:"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"==typeof t?t:t())),f(n,r||m))}function _(e,n,t){null==e&&f(n,t||_)}function g(e,n,t){return _(e,n,t||g),e}function y(e,n,t){for(var r=0,a=e;r0&&0===a[0][0]?a[0][1]:"0";if(r){for(var i="",o=n,s=0,c=a;sn)break;0!==u&&u&n&&(i=i+(i?"|":"")+d,o&=~u)}if(0===o)return i}else for(var p=0,f=a;pr)for(var a=0,o=e.getOwnKeys(u);a=c.level&&(t[s]=c,u[s]=void 0)}},t.shouldAssert=d,t.fail=f,t.failBadSyntaxKind=function e(n,t,r){return f((t||"Unexpected node.")+"\r\nNode "+E(n.kind)+" was unexpected.",r||e)},t.assert=m,t.assertEqual=function e(n,t,r,a,i){n!==t&&f("Expected "+n+" === "+t+". "+(r?a?r+" "+a:r:""),i||e)},t.assertLessThan=function e(n,t,r,a){n>=t&&f("Expected "+n+" < "+t+". "+(r||""),a||e)},t.assertLessThanOrEqual=function e(n,t,r){n>t&&f("Expected "+n+" <= "+t,r||e)},t.assertGreaterThanOrEqual=function e(n,t,r){n= "+t,r||e)},t.assertIsDefined=_,t.checkDefined=g,t.assertDefined=g,t.assertEachIsDefined=y,t.checkEachDefined=h,t.assertEachDefined=h,t.assertNever=function n(t,r,a){return void 0===r&&(r="Illegal value:"),f(r+" "+("object"==typeof t&&e.hasProperty(t,"kind")&&e.hasProperty(t,"pos")&&E?"SyntaxKind: "+E(t.kind):JSON.stringify(t)),a||n)},t.assertEachNode=function n(t,r,a,i){p(1,"assertEachNode")&&m(void 0===r||e.every(t,r),a||"Unexpected node.",(function(){return"Node array did not pass test '"+v(r)+"'."}),i||n)},t.assertNode=function e(n,t,r,a){p(1,"assertNode")&&m(void 0!==n&&(void 0===t||t(n)),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" did not pass test '"+v(t)+"'."}),a||e)},t.assertNotNode=function e(n,t,r,a){p(1,"assertNotNode")&&m(void 0===n||void 0===t||!t(n),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" should not have passed test '"+v(t)+"'."}),a||e)},t.assertOptionalNode=function e(n,t,r,a){p(1,"assertOptionalNode")&&m(void 0===t||void 0===n||t(n),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" did not pass test '"+v(t)+"'."}),a||e)},t.assertOptionalToken=function e(n,t,r,a){p(1,"assertOptionalToken")&&m(void 0===t||void 0===n||n.kind===t,r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" was not a '"+E(t)+"' token."}),a||e)},t.assertMissingNode=function e(n,t,r){p(1,"assertMissingNode")&&m(void 0===n,t||"Unexpected node.",(function(){return"Node "+E(n.kind)+" was unexpected'."}),r||e)},t.getFunctionName=v,t.formatSymbol=function(n){return"{ name: "+e.unescapeLeadingUnderscores(n.escapedName)+"; flags: "+A(n.flags)+"; declarations: "+e.map(n.declarations,(function(e){return E(e.kind)}))+" }"},t.formatEnum=b,t.formatSyntaxKind=E,t.formatNodeFlags=T,t.formatModifierFlags=S,t.formatTransformFlags=x,t.formatEmitFlags=L,t.formatSymbolFlags=A,t.formatTypeFlags=D,t.formatObjectFlags=C;var I,N=!1;function R(e){return function(){if(k(),!I)throw new Error("Debugging helpers could not be loaded.");return I}().formatControlFlowGraph(e)}function k(){if(!N){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return D(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?C(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var n=0,t=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return d?function(e,n,t,r){var a=O(e,!0,n,t,r);return function(){throw new TypeError(a)}}(n,s,u,t.message):p?function(e,n,t,r){var a=!1;return function(){a||(l.warn(O(e,!1,n,t,r)),a=!0)}}(n,s,u,t.message):e.noop}t.printControlFlowGraph=function(e){return console.log(R(e))},t.formatControlFlowGraph=R,t.attachFlowNodeDebugInfo=function(n){N&&("__debugFlowFlags"in n||Object.defineProperties(n,{__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return R(this)}}}))},t.enableDebugInfo=k,t.deprecate=function(e,n){return function(e,n){return function(){return e(),n.apply(this,arguments)}}(w(v(e),n),e)}}(e.Debug||(e.Debug={}))}(d||(d={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(d||(d={})),function(e){!function(n){var t,r,a,i="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function c(n,t,r){var a=0;return{enter:function(){1==++a&&l(t)},exit:function(){0==--a?(l(r),u(n,t,r)):a<0&&e.Debug.fail("enter/exit count does not match.")}}}function l(n){o&&(r.set(n,e.timestamp()),t.set(n,(t.get(n)||0)+1),i(n))}function u(n,t,i){if(o){var c=i&&r.get(i)||e.timestamp(),l=t&&r.get(t)||s;a.set(n,(a.get(n)||0)+(c-l))}}n.createTimerIf=function(e,t,r,a){return e?c(t,r,a):n.nullTimer},n.createTimer=c,n.nullTimer={enter:e.noop,exit:e.noop},n.mark=l,n.measure=u,n.getCount=function(e){return t&&t.get(e)||0},n.getDuration=function(e){return a&&a.get(e)||0},n.forEachMeasure=function(e){a.forEach((function(n,t){e(t,n)}))},n.enable=function(){t=new e.Map,r=new e.Map,a=new e.Map,o=!0,s=e.timestamp()},n.disable=function(){o=!1}}(e.performance||(e.performance={}))}(d||(d={})),function(e){var n,r,a={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var i=null!==(n=process.env.TS_ETW_MODULE_PATH)&&void 0!==n?n:"./node_modules/@microsoft/typescript-etw";r=t(14)(i)}catch(e){r=void 0}e.perfLogger=r&&r.logEvent?r:a}(d||(d={})),function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,t=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^(0|[1-9]\d*)$/,i=function(){function n(n,a,i,s,c){if(void 0===a&&(a=0),void 0===i&&(i=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof n){var l=e.Debug.checkDefined(o(n),"Invalid version");n=l.major,a=l.minor,i=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(n>=0,"Invalid argument: major"),e.Debug.assert(a>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch"),e.Debug.assert(!s||t.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||r.test(c),"Invalid argument: build"),this.major=n,this.minor=a,this.patch=i,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return n.tryParse=function(e){var t=o(e);if(t)return new n(t.major,t.minor,t.patch,t.prerelease,t.build)},n.prototype.compareTo=function(n){return this===n?0:void 0===n?1:e.compareValues(this.major,n.major)||e.compareValues(this.minor,n.minor)||e.compareValues(this.patch,n.patch)||function(n,t){if(n===t)return 0;if(0===n.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(n.length,t.length),i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function f(e){for(var n=[],t=0,r=e.trim().split(c);t=",r.version)),y(a.major)||t.push(y(a.minor)?h("<",a.version.increment("major")):y(a.patch)?h("<",a.version.increment("minor")):h("<=",a.version)),!0)}function g(e,n,t){var r=m(n);if(!r)return!1;var a=r.version,o=r.major,s=r.minor,c=r.patch;if(y(o))"<"!==e&&">"!==e||t.push(h("<",i.zero));else switch(e){case"~":t.push(h(">=",a)),t.push(h("<",a.increment(y(s)?"major":"minor")));break;case"^":t.push(h(">=",a)),t.push(h("<",a.increment(a.major>0||y(s)?"major":a.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":t.push(h(e,a));break;case"<=":case">":t.push(y(s)?h("<="===e?"<":">=",a.increment("major")):y(c)?h("<="===e?"<":">=",a.increment("minor")):h(e,a));break;case"=":case void 0:y(s)||y(c)?(t.push(h(">=",a)),t.push(h("<",a.increment(y(s)?"major":"minor")))):t.push(h("=",a));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,n){return{operator:e,operand:n}}function v(e,n){for(var t=0,r=n;t":return a>0;case">=":return a>=0;case"=":return 0===a;default:return e.Debug.assertNever(t)}}function E(n){return e.map(n,T).join(" ")}function T(e){return""+e.operator+e.operand}}(d||(d={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.EqualsToken=62]="EqualsToken",e[e.PlusEqualsToken=63]="PlusEqualsToken",e[e.MinusEqualsToken=64]="MinusEqualsToken",e[e.AsteriskEqualsToken=65]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=67]="SlashEqualsToken",e[e.PercentEqualsToken=68]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=72]="AmpersandEqualsToken",e[e.BarEqualsToken=73]="BarEqualsToken",e[e.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 n,t=function(){};e.OperationCanceledException=t,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"}(n=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=n[e.category];return t?r.toLowerCase():r},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}}}(d||(d={})),function(e){function a(e){for(var n=5381,t=0;t0;p(),o--){var u=n[a];if(u)if(u.isClosed)n[a]=void 0;else{l++;var d=g(u,v(u.fileName));u.isClosed?n[a]=void 0:d?(u.unchangedPolls=0,n!==r&&(n[a]=void 0,_(u))):u.unchangedPolls!==e.unchangedPollThresholds[t]?u.unchangedPolls++:n===r?(u.unchangedPolls=1,n[a]=void 0,m(u,s.Low)):t!==s.High&&(u.unchangedPolls++,n[a]=void 0,m(u,t===s.Low?s.Medium:s.High)),n[a]&&(c=4,y="linux"===process.platform||"darwin"===process.platform,h=d.platform(),b="win32"!==h&&"win64"!==h&&!k((p=n,p.replace(/\w/g,(function(e){var n=e.toUpperCase();return e===n?e.toLowerCase():n})))),T=g&&("win32"===process.platform||"darwin"===process.platform),x=E({pollingWatchFile:_((function(e,n,t){var r;return l.watchFile(e,{persistent:!0,interval:t},a),{close:function(){return l.unwatchFile(e,a)}};function a(t,a){var o=0==+a.mtime||r===i.Deleted;if(0==+t.mtime){if(o)return;r=i.Deleted}else if(o)r=i.Created;else{if(+t.mtime==+a.mtime)return;r=i.Changed}n(e,r)}}),b),getModifiedTime:P,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(n,t,r,a,o,s){var c,u,d;y&&(u=n.substr(n.lastIndexOf(e.directorySeparator)),d=u.slice(e.directorySeparator.length));var p=R(n,t)?m():g();return{close:function(){p.close(),p=void 0}};function f(t){e.sysLog("sysLog:: "+n+":: Changing watcher to "+(t===m?"Present":"Missing")+"FileSystemEntryWatcher"),r("rename",""),p&&(p.close(),p=t())}function m(){void 0===c&&(c=T?{persistent:!0,recursive:!!a}:{persistent:!0});try{var t=l.watch(n,c,y?_:r);return t.on("error",(function(){return f(g)})),t}catch(t){return e.sysLog("sysLog:: "+n+":: Changing to fsWatchFile"),L(n,v(r),o,s)}}function _(e,a){return"rename"!==e||a&&a!==d&&a.lastIndexOf(u)!==a.length-u.length||R(n,t)?r(e,a):f(g)}function g(){return L(n,(function(e,r){r===i.Created&&R(n,t)&&f(m)}),o,s)}},useCaseSensitiveFileNames:b,fileExists:k,fsSupportsRecursiveFsWatch:T,directoryExists:O,getAccessibleSortedChildDirectories:function(e){return N(e).directories},realpath:w,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY}),L=x.watchFile,A=x.watchDirectory,D={args:process.argv.slice(2),newLine:d.EOL,useCaseSensitiveFileNames:b,write:function(e){process.stdout.write(e)},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(n,t){e.perfLogger.logStartReadFile(n);var r=function(e,n){var t;try{t=l.readFileSync(e)}catch(e){return}var r=t.length;if(r>=2&&254===t[0]&&255===t[1]){r&=-2;for(var a=0;a=2&&255===t[0]&&254===t[1]?t.toString("utf16le",2):r>=3&&239===t[0]&&187===t[1]&&191===t[2]?t.toString("utf8",3):t.toString("utf8")}(n);return e.perfLogger.logStopReadFile(),r},writeFile:function(n,t,r){var a;e.perfLogger.logEvent("WriteFile: "+n),r&&(t="\ufeff"+t);try{a=l.openSync(n,"w"),l.writeSync(a,t,void 0,"utf8")}finally{void 0!==a&&l.closeSync(a)}},watchFile:L,watchDirectory:A,resolvePath:function(e){return u.resolve(e)},fileExists:k,directoryExists:O,createDirectory:function(e){if(!D.directoryExists(e))try{l.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return n},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(e){return N(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(n,t,r,a,i){return e.matchFiles(n,t,r,a,b,process.cwd(),i,N,w)},getModifiedTime:P,setModifiedTime:function(e,n){try{l.utimesSync(e,n,n)}catch(e){return}},deleteFile:function(e){try{return l.unlinkSync(e)}catch(e){return}},createHash:o?M:a,createSHA256Hash:o?M:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var n=l.statSync(e);if(n.isFile())return n.size}catch(e){}return 0},exit:function(e){C((function(){return process.exit(e)}))},enableCPUProfiler:function(e,n){if(s)return n(),!1;var r=t(40);if(!r||!r.Session)return n(),!1;var a=new r.Session;return a.connect(),a.post("Profiler.enable",(function(){a.post("Profiler.start",(function(){s=a,f=e,n()}))})),!0},disableCPUProfiler:C,realpath:w,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{t(32).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:I,base64decode:function(e){return I(e,"base64").toString("utf8")},base64encode:function(e){return I(e).toString("base64")},require:function(n,r){try{var a=e.resolveJSModule(r,n,D);return{module:t(14)(a),modulePath:a,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return D;function C(n){if(s&&"stopping"!==s){var t=s;return s.post("Profiler.stop",(function(a,i){var o=i.profile;if(!a){try{l.statSync(f).isDirectory()&&(f=u.join(f,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(e){}try{l.mkdirSync(u.dirname(f),{recursive:!0})}catch(e){}l.writeFileSync(f,JSON.stringify(function(n){for(var t=0,a=new e.Map,i=e.normalizeSlashes(r),o="file://"+(1===e.getRootLength(i)?"":"/")+i,s=0,l=n.nodes;s0}function a(e){return 0!==u(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(n,t){return n.length>t.length&&e.endsWith(n,t)}function c(e){return e.length>0&&t(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(n){if(!n)return 0;var t=n.charCodeAt(0);if(47===t||92===t){if(n.charCodeAt(1)!==t)return 1;var r=n.indexOf(47===t?e.directorySeparator:"\\",2);return r<0?n.length:r+1}if(l(t)&&58===n.charCodeAt(1)){var a=n.charCodeAt(2);if(47===a||92===a)return 3;if(2===n.length)return 2}var i=n.indexOf("://");if(-1!==i){var o=i+"://".length,s=n.indexOf(e.directorySeparator,o);if(-1!==s){var c=n.slice(0,i),u=n.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&l(n.charCodeAt(s+1))){var d=function(e,n){var t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){var r=e.charCodeAt(n+2);if(97===r||65===r)return n+3}return-1}(n,s+2);if(-1!==d){if(47===n.charCodeAt(d))return~(d+1);if(d===n.length)return~d}}return~(s+1)}return~n.length}return 0}function d(e){var n=u(e);return n<0?~n:n}function p(n){var t=d(n=h(n));return t===n.length?n:(n=L(n)).slice(0,Math.max(t,n.lastIndexOf(e.directorySeparator)))}function f(n,t,r){if(d(n=h(n))===n.length)return"";var a=(n=L(n)).slice(Math.max(d(n),n.lastIndexOf(e.directorySeparator)+1)),i=void 0!==t&&void 0!==r?_(a,t,r):void 0;return i?a.slice(0,a.length-i.length):a}function m(n,t,r){if(e.startsWith(t,".")||(t="."+t),n.length>=t.length&&46===n.charCodeAt(n.length-t.length)){var a=n.slice(n.length-t.length);if(r(a,t))return a}}function _(n,t,r){if(t)return function(e,n,t){if("string"==typeof n)return m(e,n,t)||"";for(var r=0,a=n;r=0?a.substring(i):""}function g(n,t){return void 0===t&&(t=""),function(n,t){var r=n.substring(0,t),a=n.substring(t).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([r],a)}(n=b(t,n),d(n))}function y(n){return 0===n.length?"":(n[0]&&A(n[0]))+n.slice(1).join(e.directorySeparator)}function h(t){return t.replace(n,e.directorySeparator)}function v(n){if(!e.some(n))return[];for(var t=[n[0]],r=1;r1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(a)}}return t}function b(e){for(var n=[],t=1;t0&&n===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.hasExtension=function(n){return e.stringContains(f(n),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,n){for(var t=0,r=n;t0==d(t)>0,"Paths must either both be absolute or both be relative");var a="function"==typeof r?r:e.identity;return y(N(n,t,"boolean"==typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a))}function k(n,t,a,i,o){var s=N(E(a,n),E(a,t),e.equateStringsCaseSensitive,i),c=s[0];if(o&&r(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(n,t){return I(n,t,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(n,t){return I(n,t,e.compareStringsCaseInsensitive)},e.comparePaths=function(n,t,r,a){return"string"==typeof r?(n=b(r,n),t=b(r,t)):"boolean"==typeof r&&(a=r),I(n,t,e.getStringComparer(a))},e.containsPath=function(n,t,r,a){if("string"==typeof r?(n=b(r,n),t=b(r,t)):"boolean"==typeof r&&(a=r),void 0===n||void 0===t)return!1;if(n===t)return!0;var i=v(g(n)),o=v(g(t));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(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:n(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:n(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:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(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:n(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:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(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:n(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:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(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:n(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:n(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:n(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:n(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:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(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:n(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:n(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:n(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:n(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:n(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:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(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:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(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:n(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:n(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),Only_ECMAScript_imports_may_use_import_type:n(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:n(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:n(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:n(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:n(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:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(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:n(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:n(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:n(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:n(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:n(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(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:n(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:n(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:n(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:n(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:n(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:n(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(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:n(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(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:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(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:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(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:n(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:n(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:n(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:n(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:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:n(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:n(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:n(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:n(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:n(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:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(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:n(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:n(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:n(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:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(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:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(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:n(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:n(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:n(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:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(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:n(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:n(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:n(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:n(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:n(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:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(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:n(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:n(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:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(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:n(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:n(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:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(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:n(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:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(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:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(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:n(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:n(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:n(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(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:n(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:n(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:n(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:n(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:n(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:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(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:n(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:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(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:n(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:n(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:n(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(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:n(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:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(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:n(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:n(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:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(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:n(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:n(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:n(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:n(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:n(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:n(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:n(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:n(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:n(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:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(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:n(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:n(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:n(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:n(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:n(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:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(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:n(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:n(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:n(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:n(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:n(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:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(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:n(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:n(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:n(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:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(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:n(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:n(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:n(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:n(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:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(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:n(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(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:n(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:n(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:n(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:n(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:n(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:n(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:n(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:n(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:n(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:n(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:n(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:n(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:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:n(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(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:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(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:n(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:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(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:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:n(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:n(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(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:n(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:n(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:n(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:n(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:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(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:n(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:n(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:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(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:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(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:n(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:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(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:n(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:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(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:n(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:n(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:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:n(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(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:n(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:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(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:n(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:n(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:n(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:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:n(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:n(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:n(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:n(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:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(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:n(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:n(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:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(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:n(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:n(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:n(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:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(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:n(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:n(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:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(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:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(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:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(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:n(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:n(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:n(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:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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.")}}(d||(d={})),function(e){var n;function t(e){return e>=78}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||t(e)};var r=((n={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,n.debugger=86,n.declare=133,n.default=87,n.delete=88,n.do=89,n.else=90,n.enum=91,n.export=92,n.extends=93,n.false=94,n.finally=95,n.for=96,n.from=152,n.function=97,n.get=134,n.if=98,n.implements=116,n.import=99,n.in=100,n.infer=135,n.instanceof=101,n.interface=117,n.is=136,n.keyof=137,n.let=118,n.module=138,n.namespace=139,n.never=140,n.new=102,n.null=103,n.number=143,n.object=144,n.package=119,n.private=120,n.protected=121,n.public=122,n.readonly=141,n.require=142,n.global=153,n.return=104,n.set=145,n.static=123,n.string=146,n.super=105,n.switch=106,n.symbol=147,n.this=107,n.throw=108,n.true=109,n.try=110,n.type=148,n.typeof=111,n.undefined=149,n.unique=150,n.unknown=151,n.var=112,n.void=113,n.while=114,n.with=115,n.yield=124,n.async=129,n.await=130,n.of=155,n),a=new e.Map(e.getEntries(r)),i=new e.Map(e.getEntries(o(o({},r),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],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],p=[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],f=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,m=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function _(e,n){if(e=2?d:1===n?l:s)}e.isUnicodeIdentifierStart=g;var y,h=(y=[],i.forEach((function(e,n){y[e]=n})),y);function v(e){for(var n=new Array,t=0,r=0;t127&&A(a)&&(n.push(r),r=t)}}return n.push(r),n}function b(n,t,r,a,i){(t<0||t>=n.length)&&(i?t=t<0?0:t>=n.length?n.length-1:t:e.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+n.length+" , line map is correct? "+(void 0!==a?e.arraysEqual(n,v(a)):"unknown")));var o=n[t]+r;return i?o>n[t+1]?n[t+1]:"string"==typeof a&&o>a.length?a.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function A(e){return 10===e||13===e||8232===e||8233===e}function D(e){return e>=48&&e<=57}function C(e){return D(e)||e>=65&&e<=70||e>=97&&e<=102}function I(e){return e>=48&&e<=55}e.tokenToString=function(e){return h[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):b(E(e),n,t,e.text,r)},e.computePositionOfLineAndCharacter=b,e.getLineStarts=E,e.computeLineAndCharacterOfPosition=T,e.computeLineOfPosition=S,e.getLinesBetweenPositions=function(e,n,t){if(n===t)return 0;var r=E(e),a=Math.min(n,t),i=a===t,o=i?n:t,s=S(r,a),c=S(r,o,s);return i?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,n){return T(E(e),n)},e.isWhiteSpaceLike=x,e.isWhiteSpaceSingleLine=L,e.isLineBreak=A,e.isOctalDigit=I,e.couldStartTrivia=function(e,n){var t=e.charCodeAt(n);switch(t){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===n;default:return t>127}},e.skipTrivia=function(n,t,r,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(t))return t;for(;;){var i=n.charCodeAt(t);switch(i){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(47===n.charCodeAt(t+1)){for(t+=2;t127&&x(i)){t++;continue}}return t}};var N="<<<<<<<".length;function R(n,t){if(e.Debug.assert(t>=0),0===t||A(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+N=0&&t127&&x(_)){d&&A(_)&&(u=!0),t++;continue}break e}}return d&&(f=a(s,c,l,u,i,f)),f}function F(e,n,t,r,a){return M(!0,e,n,!1,t,r,a)}function G(e,n,t,r,a){return M(!0,e,n,!0,t,r,a)}function B(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function U(e){var n=O.exec(e);if(n)return n[0]}function V(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,n)}function j(e,n,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===t&&(45===e||58===e)||e>127&&function(e,n){return _(e,n>=2?p:1===n?u:c)}(e,n)}e.isShebangTrivia=w,e.scanShebangTrivia=P,e.forEachLeadingCommentRange=function(e,n,t,r){return M(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return M(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=F,e.reduceEachTrailingCommentRange=G,e.getLeadingCommentRanges=function(e,n){return F(e,n,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return G(e,n,B,void 0,void 0)},e.getShebang=U,e.isIdentifierStart=V,e.isIdentifierPart=j,e.isIdentifierText=function(e,n,t){var r=H(e,0);if(!V(r,n))return!1;for(var a=K(r);a115},isReservedWord:function(){return g>=80&&g<=115},isUnterminated:function(){return 0!=(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:function(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=71):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=70):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=_+1,g=62},reScanSlashToken:function(){if(43===g||67===g){for(var t=_+1,r=!1,a=!1;;){if(t>=d){h|=4,S(e.Diagnostics.Unterminated_regular_expression_literal);break}var i=b.charCodeAt(t);if(A(i)){h|=4,S(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===i&&!a){t++;break}91===i?a=!0:92===i?r=!0:93===i&&(a=!1)}t++}for(;t=d)return g=1;var e=H(b,u);switch(u+=K(e),e){case 9:case 11:case 12:case 32:for(;u=0&&V(t,n))return u+=3,h|=8,y=Y()+$(),g=ee();var r=Q();return r>=0&&V(r,n)?(u+=6,h|=1024,y=String.fromCharCode(r)+$(),g=ee()):(u++,g=0)}if(V(e,n)){for(var a=e;u=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;a.push(s),u++,o=!1}}return a.length=d){r+=b.substring(a,u),h|=4,S(e.Diagnostics.Unterminated_string_literal);break}var i=b.charCodeAt(u);if(i===t){r+=b.substring(a,u),u++;break}if(92!==i||n){if(A(i)&&!n){r+=b.substring(a,u),h|=4,S(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=b.substring(a,u),r+=J(),a=u}return r}function z(n){for(var t,r=96===b.charCodeAt(u),a=++u,i="";;){if(u>=d){i+=b.substring(a,u),h|=4,S(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var o=b.charCodeAt(u);if(96===o){i+=b.substring(a,u),u++,t=r?14:17;break}if(36===o&&u+1=d)return S(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(u);switch(u++,r){case 48:return n&&u=0?String.fromCharCode(t):(S(e.Diagnostics.Hexadecimal_digit_expected),"")}function Y(){var n=B(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(S(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(S(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=d?(S(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(u)?u++:(S(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":q(t)}function Q(){if(u+5=2&&117===H(b,u+1)&&123===H(b,u+2)){var e=u;u+=3;var t=B(1,!1),r=t?parseInt(t,16):-1;return u=e,r}return-1}function $(){for(var e="",t=u;u=0&&j(r,n)){u+=3,h|=8,e+=Y(),t=u;continue}if(!((r=Q())>=0&&j(r,n)))break;h|=1024,e+=b.substring(t,u),e+=q(r),t=u+=6}}return e+=b.substring(t,u)}function ee(){var e=y.length;if(e>=2&&e<=11){var n=y.charCodeAt(0);if(n>=97&&n<=122){var t=a.get(y);if(void 0!==t)return g=t}}return g=78}function ne(n){for(var t="",r=!1,a=!1;;){var i=b.charCodeAt(u);if(95!==i){if(r=!0,!D(i)||i-48>=n)break;t+=b[u],u++,a=!1}else h|=512,r?(r=!1,a=!0):S(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t}function te(){if(110===b.charCodeAt(u))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var n=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+n,8}function re(){var t;p=u,h=0;for(var a=!1;;){if(_=u,u>=d)return g=1;var o=H(b,u);if(35===o&&0===u&&w(b,u)){if(u=P(b,u),r)continue;return g=6}switch(o){case 10:case 13:if(h|=1,r){u++;continue}return 13===o&&u+1=0&&V(T,n))return u+=3,h|=8,y=Y()+$(),g=ee();var x=Q();return x>=0&&V(x,n)?(u+=6,h|=1024,y=String.fromCharCode(x)+$(),g=ee()):(S(e.Diagnostics.Invalid_character),u++,g=0);case 35:if(0!==u&&"!"===b[u+1])return S(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0;if(u++,V(o=b.charCodeAt(u),n)){for(u++;u=d)return g=1;var n=b.charCodeAt(u);if(60===n)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===n)return u++,g=18;for(var t=0,r=-1;u0&&r++,A(n)&&0===t?t=-1:x(n)||(t=u),u++}var a=-1===r?u:r;return y=b.substring(p,a),-1===t?12:11}function oe(){switch(p=u,b.charCodeAt(u)){case 34:case 39:return y=W(!0),g=10;default:return re()}}function se(e,n){var t=u,r=p,a=_,i=g,o=y,s=h,c=e();return c&&!n||(u=t,p=r,_=a,g=i,y=o,h=s),c}function ce(e,n,t){b=e||"",d=void 0===t?b.length:n+t,le(n||0)}function le(n){e.Debug.assert(n>=0),u=n,p=n,_=n,g=0,y=void 0,h=0}};var H=String.prototype.codePointAt?function(e,n){return e.codePointAt(n)}:function(e,n){var t=e.length;if(!(n<0||n>=t)){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&t>n+1){var a=e.charCodeAt(n+1);if(a>=56320&&a<=57343)return 1024*(r-55296)+a-56320+65536}return r}};function K(e){return e>=65536?2:1}var W=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(n){if(e.Debug.assert(0<=n&&n<=1114111),n<=65535)return String.fromCharCode(n);var t=Math.floor((n-65536)/1024)+55296,r=(n-65536)%1024+56320;return String.fromCharCode(t,r)};function q(e){return W(e)}e.utf16EncodeAsString=q}(d||(d={})),function(e){function n(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,n){var t=i(e,n);return t&&0===t.length?void 0:t}function a(e,n,t,r){return t<=e+n&&t+r>=e}function i(e,t){var r=Math.max(e.start,t.start),a=Math.min(n(e),n(t));return r<=a?s(r,a):void 0}function o(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function s(e,n){return o(e,n-e)}function c(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function l(n){return!!Y(n)&&e.every(n.elements,u)}function u(n){return!!e.isOmittedExpression(n)||l(n.name)}function d(n){for(var t=n.parent;e.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function p(n,t){e.isBindingElement(n)&&(n=d(n));var r=t(n);return 246===n.kind&&(n=n.parent),n&&247===n.kind&&(r|=t(n),n=n.parent),n&&229===n.kind&&(r|=t(n)),r}function f(e){return 0==(8&e.flags)}function m(e){var n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function _(e){return m(e.escapedText)}function g(n){var t=n.parent.parent;if(t){if(ie(t))return y(t);switch(t.kind){case 229:if(t.declarationList&&t.declarationList.declarations[0])return y(t.declarationList.declarations[0]);break;case 230:var r=t.expression;switch(213===r.kind&&62===r.operatorToken.kind&&(r=r.left),r.kind){case 198:return r.name;case 199:var a=r.argumentExpression;if(e.isIdentifier(a))return a}break;case 204:return y(t.expression);case 242:if(ie(t.statement)||ne(t.statement))return y(t.statement)}}}function y(n){var t=E(n);return t&&e.isIdentifier(t)?t:void 0}function h(e){return e.name||g(e)}function v(e){return!!e.name}function b(n){switch(n.kind){case 78:return n;case 328:case 322:var t=n.name;if(156===t.kind)return t.right;break;case 200:case 213:var r=n;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 327:return h(n);case 321:return g(n);case 263:var a=n.expression;return e.isIdentifier(a)?a:void 0;case 199:var i=n;if(e.isBindableStaticElementAccessExpression(i))return i.argumentExpression}return n.name}function E(n){if(void 0!==n)return b(n)||(e.isFunctionExpression(n)||e.isClassExpression(n)?T(n):void 0)}function T(n){if(n.parent){if(e.isPropertyAssignment(n.parent)||e.isBindingElement(n.parent))return n.parent.name;if(e.isBinaryExpression(n.parent)&&n===n.parent.right){if(e.isIdentifier(n.parent.left))return n.parent.left;if(e.isAccessExpression(n.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(n.parent.left)}else if(e.isVariableDeclaration(n.parent)&&e.isIdentifier(n.parent.name))return n.parent.name}}function S(n,t){if(n.name){if(e.isIdentifier(n.name)){var r=n.name.escapedText;return I(n.parent,t).filter((function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===r}))}var a=n.parent.parameters.indexOf(n);e.Debug.assert(a>-1,"Parameters should always be in their parents' parameter list");var i=I(n.parent,t).filter(e.isJSDocParameterTag);if(a=156}function G(e){return 8<=e&&e<=14}function B(e){return 14<=e&&e<=17}function U(n){return e.isPropertyDeclaration(n)&&e.isPrivateIdentifier(n.name)}function V(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 j(n){return!!(92&e.modifierToFlag(n))}function H(e){return e&&W(e.kind)}function K(e){switch(e){case 248:case 164:case 165:case 166:case 167:case 205:case 206:return!0;default:return!1}}function W(e){switch(e){case 163:case 168:case 309:case 169:case 170:case 173:case 304:case 174:return!0;default:return K(e)}}function q(e){var n=e.kind;return 165===n||162===n||164===n||166===n||167===n||170===n||226===n}function z(e){return e&&(249===e.kind||218===e.kind)}function J(e){var n=e.kind;return 169===n||168===n||161===n||163===n||170===n}function X(e){var n=e.kind;return 285===n||286===n||287===n||164===n||166===n||167===n}function Y(e){if(e){var n=e.kind;return 194===n||193===n}return!1}function Q(e){switch(e.kind){case 193:case 197:return!0}return!1}function Z(e){switch(e.kind){case 194:case 196:return!0}return!1}function $(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 $(e)}}function ne(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)}}(P(e).kind)}function te(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function re(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 ae(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 ie(n){return 158===n.kind?n.parent&&326!==n.parent.kind||e.isInJSFile(n):206===(t=n.kind)||195===t||249===t||218===t||165===t||252===t||288===t||267===t||248===t||205===t||166===t||259===t||257===t||262===t||250===t||277===t||164===t||163===t||253===t||256===t||260===t||266===t||159===t||285===t||162===t||161===t||167===t||286===t||251===t||158===t||246===t||327===t||320===t||328===t;var t}function oe(e){return e.kind>=310&&e.kind<=328}e.isExternalModuleNameRelative=function(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)},e.sortAndDeduplicateDiagnostics=function(n){return e.sortAndDeduplicate(n,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=n,e.textSpanIsEmpty=t,e.textSpanContainsPosition=function(e,t){return t>=e.start&&t=e.pos&&n<=e.end},e.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&n(t)<=n(e)},e.textSpanOverlapsWith=function(e,n){return void 0!==r(e,n)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,n){return a(e.start,e.length,n.start,n.length)},e.textSpanIntersectsWith=function(e,n,t){return a(e.start,e.length,n,t)},e.decodedTextSpanIntersectsWith=a,e.textSpanIntersectsWithPosition=function(e,t){return t<=n(e)&&t>=e.start},e.textSpanIntersection=i,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],a=r.span.start,i=n(r.span),o=a+r.newLength,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=_,e.symbolName=function(e){return e.valueDeclaration&&U(e.valueDeclaration)?_(e.valueDeclaration.name):m(e.escapedName)},e.nodeHasName=function n(t,r){return!(!v(t)||!e.isIdentifier(t.name)||_(t.name)!==_(r))||!(!e.isVariableStatement(t)||!e.some(t.declarationList.declarations,(function(e){return n(e,r)})))},e.getNameOfJSDocTypedef=h,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=E,e.getAssignedName=T,e.getJSDocParameterTags=x,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return L(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return L(e,!0)},e.hasJSDocParameterTags=function(n){return!!R(n,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(n){return R(n,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(n){return k(n,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(n){return R(n,e.isJSDocClassTag)},e.getJSDocPublicTag=function(n){return R(n,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(n){return R(n,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(n){return R(n,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(n){return R(n,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(n){return R(n,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(n){return R(n,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(n){return R(n,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(n){return R(n,e.isJSDocReadonlyTag,!0)},e.getJSDocDeprecatedTag=function(n){return R(n,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(n){return R(n,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(n){return R(n,e.isJSDocEnumTag)},e.getJSDocThisTag=function(n){return R(n,e.isJSDocThisTag)},e.getJSDocReturnTag=A,e.getJSDocTemplateTag=function(n){return R(n,e.isJSDocTemplateTag)},e.getJSDocTypeTag=D,e.getJSDocType=C,e.getJSDocReturnType=function(n){var t=A(n);if(t&&t.typeExpression)return t.typeExpression.type;var r=D(n);if(r&&r.typeExpression){var a=r.typeExpression.type;if(e.isTypeLiteralNode(a)){var i=e.find(a.members,e.isCallSignatureDeclaration);return i&&i.type}if(e.isFunctionTypeNode(a)||e.isJSDocFunctionType(a))return a.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return I(e,!0)},e.getAllJSDocTags=k,e.getAllJSDocTagsOfKind=function(e,n){return N(e).filter((function(e){return e.kind===n}))},e.getEffectiveTypeParameterDeclarations=function(n){if(e.isJSDocSignature(n))return e.emptyArray;if(e.isJSDocTypeAlias(n))return e.Debug.assert(307===n.parent.kind),e.flatMap(n.parent.tags,(function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0}));if(n.typeParameters)return n.typeParameters;if(e.isInJSFile(n)){var t=e.getJSDocTypeParameterDeclarations(n);if(t.length)return t;var r=C(n);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(n){return n.constraint?n.constraint:e.isJSDocTemplateTag(n.parent)&&n===n.parent.typeParameters[0]?n.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(n){return e.isPropertyAccessExpression(n)&&!!(32&n.flags)},e.isElementAccessChain=function(n){return e.isElementAccessExpression(n)&&!!(32&n.flags)},e.isCallChain=function(n){return e.isCallExpression(n)&&!!(32&n.flags)},e.isOptionalChain=O,e.isOptionalChainRoot=w,e.isExpressionOfOptionalChainRoot=function(e){return w(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!O(e.parent)||w(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 213===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"const"===n.typeName.escapedText&&!n.typeArguments},e.skipPartiallyEmittedExpressions=P,e.isNonNullChain=function(n){return e.isNonNullExpression(n)&&!!(32&n.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=M,e.isUnparsedNode=function(e){return M(e)||289===e.kind||293===e.kind},e.isJSDocPropertyLikeTag=function(e){return 328===e.kind||322===e.kind},e.isNode=function(e){return F(e.kind)},e.isNodeKind=F,e.isToken=function(e){return e.kind>=0&&e.kind<=155},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=G,e.isLiteralExpression=function(e){return G(e.kind)},e.isTemplateLiteralKind=B,e.isTemplateLiteralToken=function(e){return B(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 16===n||17===n},e.isImportOrExportSpecifier=function(n){return e.isImportSpecifier(n)||e.isExportSpecifier(n)},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||B(e.kind)},e.isGeneratedIdentifier=function(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=U,e.isPrivateIdentifierPropertyAccessExpression=function(n){return e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name)},e.isModifierKind=V,e.isParameterPropertyModifier=j,e.isClassMemberModifier=function(e){return j(e)||123===e},e.isModifier=function(e){return V(e.kind)},e.isEntityName=function(e){var n=e.kind;return 156===n||78===n},e.isPropertyName=function(e){var n=e.kind;return 78===n||79===n||10===n||8===n||157===n},e.isBindingName=function(e){var n=e.kind;return 78===n||193===n||194===n},e.isFunctionLike=H,e.isFunctionLikeDeclaration=function(e){return e&&K(e.kind)},e.isFunctionLikeKind=W,e.isFunctionOrModuleBlock=function(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&H(n.parent)},e.isClassElement=q,e.isClassLike=z,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=J,e.isClassOrTypeElement=function(e){return J(e)||q(e)},e.isObjectLiteralElementLike=X,e.isTypeNode=function(n){return e.isTypeNodeKind(n.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 173:case 174:return!0}return!1},e.isBindingPattern=Y,e.isAssignmentPattern=function(e){var n=e.kind;return 196===n||197===n},e.isArrayBindingElement=function(e){var n=e.kind;return 195===n||219===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 246:case 159:case 195:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Q(e)||Z(e)},e.isObjectBindingOrAssignmentPattern=Q,e.isArrayBindingOrAssignmentPattern=Z,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 198===n||156===n||192===n},e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 198===n||156===n},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 n=e.kind;return 215===n||14===n},e.isLeftHandSideExpression=function(e){return $(P(e).kind)},e.isUnaryExpression=function(e){return ee(P(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=ne,e.isAssertionExpression=function(e){var n=e.kind;return 203===n||221===n},e.isNotEmittedOrPartiallyEmittedNode=function(n){return e.isNotEmittedStatement(n)||e.isPartiallyEmittedExpression(n)},e.isIterationStatement=function e(n,t){switch(n.kind){case 234:case 235:case 236:case 232:case 233:return!0;case 242:return t&&e(n.statement,t)}return!1},e.isScopeMarker=te,e.hasScopeMarker=function(n){return e.some(n,te)},e.needsScopeMarker=function(n){return!(e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)||e.isAmbientModule(n))},e.isExternalModuleIndicator=function(n){return e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)},e.isForInOrOfStatement=function(e){return 235===e.kind||236===e.kind},e.isConciseBody=function(n){return e.isBlock(n)||ne(n)},e.isFunctionBody=function(n){return e.isBlock(n)},e.isForInitializer=function(n){return e.isVariableDeclarationList(n)||ne(n)},e.isModuleBody=function(e){var n=e.kind;return 254===n||253===n||78===n},e.isNamespaceBody=function(e){var n=e.kind;return 254===n||253===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 78===n||253===n},e.isNamedImportBindings=function(e){var n=e.kind;return 261===n||260===n},e.isModuleOrEnumDeclaration=function(e){return 253===e.kind||252===e.kind},e.isDeclaration=ie,e.isDeclarationStatement=function(e){return re(e.kind)},e.isStatementButNotDeclaration=function(e){return ae(e.kind)},e.isStatement=function(n){var t=n.kind;return ae(t)||re(t)||function(n){if(227!==n.kind)return!1;if(void 0!==n.parent&&(244===n.parent.kind||284===n.parent.kind))return!1;return!e.isFunctionBlock(n)}(n)},e.isStatementOrBlock=function(e){var n=e.kind;return ae(n)||re(n)||227===n},e.isModuleReference=function(e){var n=e.kind;return 269===n||156===n||78===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 107===n||78===n||198===n},e.isJsxChild=function(e){var n=e.kind;return 270===n||280===n||271===n||11===n||274===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 277===n||279===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 10===n||280===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 272===n||271===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 281===n||282===n},e.isJSDocNode=function(e){return e.kind>=298&&e.kind<=328},e.isJSDocCommentContainingNode=function(n){return 307===n.kind||306===n.kind||oe(n)||e.isJSDocTypeLiteral(n)||e.isJSDocSignature(n)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 167===e.kind},e.isGetAccessor=function(e){return 166===e.kind},e.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&n.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||X(e)},e.isTypeReferenceType=function(e){return 172===e.kind||220===e.kind};e.guessIndentation=function(n){for(var t=1073741823,r=0,a=n;r=0);var r=e.getLineStarts(t),a=n,i=t.text;if(a+1===r.length)return i.length-1;var o=r[a],s=r[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function p(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function f(e){return!p(e)}function m(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r0?h(n._children[0],t,r):e.skipTrivia((t||u(n)).text,n.pos)}function v(e,n,t){return void 0===t&&(t=!1),b(e.text,n,t)}function b(n,t,r){if(void 0===r&&(r=!1),p(t))return"";var a=n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end);return function(n){return!!s(n,e.isJSDocTypeExpression)}(t)&&(a=a.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),a}function E(e,n){return void 0===n&&(n=!1),v(u(e),e,n)}function T(e){return e.pos}function S(e){var n=e.emitNode;return n&&n.flags||0}function x(e){var n=hn(e);return 246===n.kind&&284===n.parent.kind}function L(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||D(n))}function A(n){return e.isModuleDeclaration(n)||e.isIdentifier(n)}function D(e){return!!(1024&e.flags)}function C(e){return L(e)&&I(e)}function I(n){switch(n.parent.kind){case 294:return e.isExternalModule(n.parent);case 254:return L(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function N(n,t){switch(n.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(t)}return!1}function R(n){switch(n.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(n),!1}}function k(e){switch(e.kind){case 258:case 257:return!0;default:return!1}}function O(e){return e&&0!==c(e)?E(e):"(Missing)"}function w(n){switch(n.kind){case 78:case 79:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 157:return cn(n.expression)?e.escapeLeadingUnderscores(n.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(n)}}function P(n){switch(n.kind){case 107:return"this";case 79:case 78:return 0===c(n)?e.idText(n):E(n);case 156:return P(n.left)+"."+P(n.right);case 198:return e.isIdentifier(n.name)||e.isPrivateIdentifier(n.name)?P(n.expression)+"."+P(n.name):e.Debug.assertNever(n.name);default:return e.Debug.assertNever(n)}}function M(e,n,t,r,a,i,o){var s=G(e,n);return rr(e,s.start,s.length,t,r,a,i,o)}function F(n,t){var r=e.createScanner(n.languageVersion,!0,n.languageVariant,n.text,void 0,t);r.scan();var a=r.getTokenPos();return e.createTextSpanFromBounds(a,r.getTextPos())}function G(n,t){var r=t;switch(t.kind){case 294:var a=e.skipTrivia(n.text,0,!1);return a===n.text.length?e.createTextSpan(0,0):F(n,a);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:r=t.name;break;case 206:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&227===t.body.kind){var a=e.getLineAndCharacterOfPosition(n,t.body.pos).line;if(a0?t.statements[0].pos:t.end;return e.createTextSpanFromBounds(i,o)}if(void 0===r)return F(n,t.pos);e.Debug.assert(!e.isJSDoc(r));var s=p(r),c=s||e.isJsxText(t)?r.pos:e.skipTrivia(n.text,r.pos);return s?(e.Debug.assert(c===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,r.end)}function B(e){return 6===e.scriptKind}function U(n){return!!(2&e.getCombinedNodeFlags(n))}function V(e){return 200===e.kind&&99===e.expression.kind}function j(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function H(e){return 230===e.kind&&10===e.expression.kind}function K(e){return!!(1048576&S(e))}function W(n){return e.isIdentifier(n.name)&&!n.initializer}e.changesAffectModuleResolution=function(e,n){return e.configFilePath!==n.configFilePath||a(e,n)},e.optionsHaveModuleResolutionChanges=a,e.findAncestor=s,e.forEachAncestor=function(n,t){for(;;){var r=t(n);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(n))return;n=n.parent}},e.forEachEntry=function(e,n){for(var t=e.entries(),r=t.next();!r.done;r=t.next()){var a=r.value,i=a[0],o=n(a[1],i);if(o)return o}},e.forEachKey=function(e,n){for(var t=e.keys(),r=t.next();!r.done;r=t.next()){var a=n(r.value);if(a)return a}},e.copyEntries=function(e,n){e.forEach((function(e,t){n.set(t,e)}))},e.usingSingleLineStringWriter=function(e){var n=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(n)}},e.getFullWidth=c,e.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},e.setResolvedModule=function(n,t,r){n.resolvedModules||(n.resolvedModules=new e.Map),n.resolvedModules.set(t,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=new e.Map),n.resolvedTypeReferenceDirectiveNames.set(t,r)},e.projectReferenceIsEqualTo=function(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular},e.moduleResolutionIsEqualTo=function(e,n){return e.isExternalLibraryImport===n.isExternalLibraryImport&&e.extension===n.extension&&e.resolvedFileName===n.resolvedFileName&&e.originalPath===n.originalPath&&(t=e.packageId,r=n.packageId,t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version);var t,r},e.packageIdToString=function(e){var n=e.name,t=e.subModuleName;return(t?n+"/"+t:n)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary},e.hasChangesInResolutions=function(n,t,r,a){e.Debug.assert(n.length===t.length);for(var i=0;i=0),e.getLineStarts(t)[n]},e.nodePosToString=function(n){var t=u(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=d,e.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n)||e.identifiers.has(n))},e.nodeIsMissing=p,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,n){return m(e,n,H)},e.insertStatementsAfterCustomPrologue=function(e,n){return m(e,n,g)},e.insertStatementAfterStandardPrologue=function(e,n){return _(e,n,H)},e.insertStatementAfterCustomPrologue=function(e,n){return _(e,n,g)},e.isRecognizedTripleSlashComment=function(n,t,r){if(47===n.charCodeAt(t+1)&&t+2=e.ModuleKind.ES2015||!t.noImplicitUseStrict)))},e.isBlockScope=N,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 320:case 327:case 309:return!0;default:return e.assertType(n),R(n)}},e.isDeclarationWithTypeParameterChildren=R,e.isAnyImportSyntax=k,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(n){return k(n)||e.isExportDeclaration(n)},e.getEnclosingBlockScopeContainer=function(e){return s(e.parent,(function(e){return N(e,e.parent)}))},e.declarationNameToString=O,e.getNameFromIndexInfo=function(e){return e.declaration?O(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 157===e.kind&&!cn(e.expression)},e.getTextOfPropertyName=w,e.entityNameToString=P,e.createDiagnosticForNode=function(e,n,t,r,a,i){return M(u(e),e,n,t,r,a,i)},e.createDiagnosticForNodeArray=function(n,t,r,a,i,o,s){var c=e.skipTrivia(n.text,t.pos);return rr(n,c,t.end-c,r,a,i,o,s)},e.createDiagnosticForNodeInSourceFile=M,e.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=u(e),a=G(r,e);return{file:r,start:a.start,length:a.length,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}},e.createDiagnosticForRange=function(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}},e.getSpanOfTokenAtPosition=F,e.getErrorSpanForNode=G,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=B,e.isEnumConst=function(n){return!!(2048&e.getCombinedModifierFlags(n))},e.isDeclarationReadonly=function(n){return!(!(64&e.getCombinedModifierFlags(n))||e.isParameterPropertyDeclaration(n,n.parent))},e.isVarConst=U,e.isLet=function(n){return!!(1&e.getCombinedNodeFlags(n))},e.isSuperCall=function(e){return 200===e.kind&&105===e.expression.kind},e.isImportCall=V,e.isImportMeta=function(n){return e.isMetaProperty(n)&&99===n.keywordToken&&"meta"===n.name.escapedText},e.isLiteralImportTypeNode=j,e.isPrologueDirective=H,e.isCustomPrologue=K,e.isHoistedFunction=function(n){return K(n)&&e.isFunctionDeclaration(n)},e.isHoistedVariableStatement=function(n){return K(n)&&e.isVariableStatement(n)&&e.every(n.declarationList.declarations,W)},e.getLeadingCommentRangesOfNode=function(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=159===n.kind||158===n.kind||205===n.kind||206===n.kind||204===n.kind?e.concatenate(e.getTrailingCommentRanges(t,n.pos),e.getLeadingCommentRanges(t,n.pos)):e.getLeadingCommentRanges(t,n.pos);return e.filter(r,(function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var q=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var z=/^(\/\/\/\s*/;function J(n){if(171<=n.kind&&n.kind<=192)return!0;switch(n.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!==n.parent.kind;case 220:return!Lt(n);case 158:return 189===n.parent.kind||184===n.parent.kind;case 78:(156===n.parent.kind&&n.parent.right===n||198===n.parent.kind&&n.parent.name===n)&&(n=n.parent),e.Debug.assert(78===n.kind||156===n.kind||198===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 156:case 198:case 107:var t=n.parent;if(175===t.kind)return!1;if(192===t.kind)return!t.isTypeOf;if(171<=t.kind&&t.kind<=192)return!0;switch(t.kind){case 220:return!Lt(t);case 158:case 326:return n===t.constraint;case 162:case 161:case 159:case 246:return n===t.type;case 248:case 205:case 206:case 165:case 164:case 163:case 166:case 167:return n===t.type;case 168:case 169:case 170:case 203:return n===t.type;case 200:case 201:return e.contains(t.typeArguments,n);case 202:return!1}}return!1}function X(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 Y(e){return 247===e.parent.kind&&229===e.parent.parent.kind}function Q(e,n,t){return e.properties.filter((function(e){if(285===e.kind){var r=w(e.name);return n===r||!!t&&t===r}return!1}))}function Z(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function $(n,t){var r=Z(n);return r?Q(r,t):e.emptyArray}function ee(n,t){for(e.Debug.assert(294!==n.kind);;){if(!(n=n.parent))return e.Debug.fail();switch(n.kind){case 157:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 160:159===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 206:if(!t)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 n}}}function ne(e){var n=e.kind;return(198===n||199===n)&&105===e.expression.kind}function te(n,t,r){if(e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name))return!1;switch(n.kind){case 249:return!0;case 162:return 249===t.kind;case 166:case 167:case 164:return void 0!==n.body&&249===t.kind;case 159:return void 0!==t.body&&(165===t.kind||164===t.kind||167===t.kind)&&249===r.kind}return!1}function re(e,n,t){return void 0!==e.decorators&&te(e,n,t)}function ae(e,n,t){return re(e,n,t)||ie(e,n)}function ie(n,t){switch(n.kind){case 249:return e.some(n.members,(function(e){return ae(e,n,t)}));case 164:case 167:return e.some(n.parameters,(function(e){return re(e,n,t)}));default:return!1}}function oe(e){var n=e.parent;return(272===n.kind||271===n.kind||273===n.kind)&&n.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 n=e.parent;switch(n.kind){case 246:case 159:case 162:case 161:case 288:case 285:case 195:return n.initializer===e;case 230:case 231:case 232:case 233:case 239:case 240:case 241:case 281:case 243:return n.expression===e;case 234:var t=n;return t.initializer===e&&247!==t.initializer.kind||t.condition===e||t.incrementor===e;case 235:case 236:var r=n;return r.initializer===e&&247!==r.initializer.kind||r.expression===e;case 203:case 221:case 225:case 157:return e===n.expression;case 160:case 280:case 279:case 287:return!0;case 220:return n.expression===e&&Lt(n);case 286:return n.objectAssignmentInitializer===e;default:return se(n)}}function le(e){for(;156===e.kind||78===e.kind;)e=e.parent;return 175===e.kind}function ue(e){return 257===e.kind&&269===e.moduleReference.kind}function de(e){return pe(e)}function pe(e){return!!e&&!!(131072&e.flags)}function fe(n,t){if(200!==n.kind)return!1;var r=n,a=r.expression,i=r.arguments;if(78!==a.kind||"require"!==a.escapedText)return!1;if(1!==i.length)return!1;var o=i[0];return!t||e.isStringLiteralLike(o)}function me(n,t){return e.isVariableDeclaration(n)&&!!n.initializer&&fe(n.initializer,t)}function _e(n){return e.isBinaryExpression(n)||Wt(n)||e.isIdentifier(n)||e.isCallExpression(n)}function ge(n){return pe(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&(56===n.initializer.operatorToken.kind||60===n.initializer.operatorToken.kind)&&n.name&&At(n.name)&&he(n.name,n.initializer.left)?n.initializer.right:n.initializer}function ye(n,t){if(e.isCallExpression(n)){var r=Xe(n.expression);return 205===r.kind||206===r.kind?n:void 0}return 205===n.kind||218===n.kind||206===n.kind||e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function he(n,t){if(mn(n)&&mn(t))return _n(n)===_n(t);if(e.isIdentifier(n)&&Le(t)&&(107===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Ne(t);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),he(n,r)}return!(!Le(n)||!Le(t))&&(ke(n)===ke(t)&&he(n.expression,t.expression))}function ve(e){for(;xt(e,!0);)e=e.right;return e}function be(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function Ee(n){return e.isIdentifier(n)&&"module"===n.escapedText}function Te(n){return(e.isPropertyAccessExpression(n)||Ae(n))&&Ee(n.expression)&&"exports"===ke(n)}function Se(n){var t=function(n){if(e.isCallExpression(n)){if(!xe(n))return 0;var t=n.arguments[0];return be(t)||Te(t)?8:De(t)&&"prototype"===ke(t)?9:7}if(62!==n.operatorToken.kind||!Wt(n.left)||(r=ve(n),e.isVoidExpression(r)&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text))return 0;var r;if(Ie(n.left.expression,!0)&&"prototype"===ke(n.left)&&e.isObjectLiteralExpression(we(n)))return 6;return Oe(n.left)}(n);return 5===t||pe(n)?t:0}function xe(n){return 3===e.length(n.arguments)&&e.isPropertyAccessExpression(n.expression)&&e.isIdentifier(n.expression.expression)&&"Object"===e.idText(n.expression.expression)&&"defineProperty"===e.idText(n.expression.name)&&cn(n.arguments[1])&&Ie(n.arguments[0],!0)}function Le(n){return e.isPropertyAccessExpression(n)||Ae(n)}function Ae(n){return e.isElementAccessExpression(n)&&(cn(n.argumentExpression)||pn(n.argumentExpression))}function De(n,t){return e.isPropertyAccessExpression(n)&&(!t&&107===n.expression.kind||e.isIdentifier(n.name)&&Ie(n.expression,!0))||Ce(n,t)}function Ce(e,n){return Ae(e)&&(!n&&107===e.expression.kind||At(e.expression)||De(e.expression,!0))}function Ie(e,n){return At(e)||De(e,n)}function Ne(n){return e.isPropertyAccessExpression(n)?n.name:n.argumentExpression}function Re(n){if(e.isPropertyAccessExpression(n))return n.name;var t=Xe(n.argumentExpression);return e.isNumericLiteral(t)||e.isStringLiteralLike(t)?t:n}function ke(n){var t=Re(n);if(t){if(e.isIdentifier(t))return t.escapedText;if(e.isStringLiteralLike(t)||e.isNumericLiteral(t))return e.escapeLeadingUnderscores(t.text)}if(e.isElementAccessExpression(n)&&pn(n.argumentExpression))return gn(e.idText(n.argumentExpression.name))}function Oe(n){if(107===n.expression.kind)return 4;if(Te(n))return 2;if(Ie(n.expression,!0)){if(Ct(n.expression))return 3;for(var t=n;!e.isIdentifier(t.expression);)t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===ke(t))&&De(n))return 1;if(Ie(n,!0)||e.isElementAccessExpression(n)&&dn(n))return 5}return 0}function we(n){for(;e.isBinaryExpression(n.right);)n=n.right;return n.right}function Pe(n){switch(n.parent.kind){case 258:case 264:return n.parent;case 269:return n.parent.parent;case 200:return V(n.parent)||fe(n.parent,!1)?n.parent:void 0;case 190:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function Me(e){return 327===e.kind||320===e.kind||321===e.kind}function Fe(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==Se(n.expression)&&e.isBinaryExpression(n.expression.right)&&(56===n.expression.right.operatorToken.kind||60===n.expression.right.operatorToken.kind)?n.expression.right.right:void 0}function Ge(e){switch(e.kind){case 229:var n=Be(e);return n&&n.initializer;case 162:case 285:return e.initializer}}function Be(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function Ue(n){return e.isModuleDeclaration(n)&&n.body&&253===n.body.kind?n.body:void 0}function Ve(n){var t=n.parent;return 285===t.kind||263===t.kind||162===t.kind||230===t.kind&&198===n.kind||Ue(t)||e.isBinaryExpression(n)&&62===n.operatorToken.kind?t:t.parent&&(Be(t.parent)===n||e.isBinaryExpression(t)&&62===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Be(t.parent.parent)||Ge(t.parent.parent)===n||Fe(t.parent.parent))?t.parent.parent:void 0}function je(n){var t=He(n);return t&&e.isFunctionLike(t)?t:void 0}function He(n){var t=Ke(n);return Fe(t)||function(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&62===n.expression.operatorToken.kind?ve(n.expression):void 0}(t)||Ge(t)||Be(t)||Ue(t)||t}function Ke(n){return e.Debug.checkDefined(s(n.parent,e.isJSDoc)).parent}function We(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&305===t.kind}function qe(e){for(var n=e.parent;;){switch(n.kind){case 213:var t=n.operatorToken.kind;return Et(t)&&n.left===e?62===t||bt(t)?1:2:0;case 211:case 212:var r=n.operator;return 45===r||46===r?2:0;case 235:case 236:return n.initializer===e?1:0;case 204:case 196:case 217:case 222:e=n;break;case 286:if(n.name!==e)return 0;e=n.parent;break;case 285:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function ze(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function Je(e){return ze(e,204)}function Xe(n){return e.skipOuterExpressions(n,1)}function Ye(n){return At(n)||e.isClassExpression(n)}function Qe(e){return Ye(Ze(e))}function Ze(n){return e.isExportAssignment(n)?n.expression:n.right}function $e(n){var t=en(n);if(t&&pe(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function en(e){var n=rn(e.heritageClauses,93);return n&&n.types.length>0?n.types[0]:void 0}function nn(n){if(pe(n))return e.getJSDocImplementsTags(n).map((function(e){return e.class}));var t=rn(n.heritageClauses,116);return null==t?void 0:t.types}function tn(e){var n=rn(e.heritageClauses,93);return n?n.types:void 0}function rn(e,n){if(e)for(var t=0,r=e;t0&&e.every(n.declarationList.declarations,(function(e){return me(e,t)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,n){return 34===v(n,e).charCodeAt(0)},e.getDeclarationOfExpando=function(n){if(n.parent){var t,r;if(e.isVariableDeclaration(n.parent)&&n.parent.initializer===n){if(!pe(n)&&!U(n.parent))return;t=n.parent.name,r=n.parent}else if(e.isBinaryExpression(n.parent)){var a=n.parent,i=n.parent.operatorToken.kind;if(62===i&&a.right===n)r=t=a.left;else if(!(56!==i&&60!==i||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(t=a.parent.name,r=a.parent):e.isBinaryExpression(a.parent)&&62===a.parent.operatorToken.kind&&a.parent.right===a&&(r=t=a.parent.left),t&&Ie(t)&&he(t,a.left))))return}if(t&&ye(n,Ct(t)))return r}},e.isAssignmentDeclaration=_e,e.getEffectiveInitializer=ge,e.getDeclaredExpandoInitializer=function(e){var n=ge(e);return n&&ye(n,Ct(e.name))},e.getAssignedExpandoInitializer=function(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&62===n.parent.operatorToken.kind){var t=Ct(n.parent.left);return ye(n.parent.right,t)||function(n,t,r){var a=e.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&ye(t.right,r);if(a&&he(n,t.left))return a}(n.parent.left,n.parent.right,t)}if(n&&e.isCallExpression(n)&&xe(n)){var r=function(n,t){return e.forEach(n.properties,(function(n){return e.isPropertyAssignment(n)&&e.isIdentifier(n.name)&&"value"===n.name.escapedText&&n.initializer&&ye(n.initializer,t)}))}(n.arguments[2],"prototype"===n.arguments[1].text);if(r)return r}},e.getExpandoInitializer=ye,e.isDefaultedExpandoInitializer=function(n){var t=e.isVariableDeclaration(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)&&62===n.parent.operatorToken.kind?n.parent.left:void 0;return t&&ye(n.right,Ct(t))&&At(t)&&he(t,n.left)},e.getNameOfExpando=function(n){if(e.isBinaryExpression(n.parent)){var t=56!==n.parent.operatorToken.kind&&60!==n.parent.operatorToken.kind||!e.isBinaryExpression(n.parent.parent)?n.parent:n.parent.parent;if(62===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name},e.getRightMostAssignedExpression=ve,e.isExportsIdentifier=be,e.isModuleIdentifier=Ee,e.isModuleExportsAccessExpression=Te,e.getAssignmentDeclarationKind=Se,e.isBindableObjectDefinePropertyCall=xe,e.isLiteralLikeAccess=Le,e.isLiteralLikeElementAccess=Ae,e.isBindableStaticAccessExpression=De,e.isBindableStaticElementAccessExpression=Ce,e.isBindableStaticNameExpression=Ie,e.getNameOrArgument=Ne,e.getElementOrPropertyAccessArgumentExpressionOrName=Re,e.getElementOrPropertyAccessName=ke,e.getAssignmentDeclarationPropertyAccessKind=Oe,e.getInitializerOfBinaryExpression=we,e.isPrototypePropertyAssignment=function(n){return e.isBinaryExpression(n)&&3===Se(n)},e.isSpecialPropertyDeclaration=function(n){return pe(n)&&n.parent&&230===n.parent.kind&&(!e.isElementAccessExpression(n)||Ae(n))&&!!e.getJSDocTypeTag(n.parent)},e.setValueDeclaration=function(e,n){var t=e.valueDeclaration;(!t||(!(8388608&n.flags)||8388608&t.flags)&&_e(t)&&!_e(n)||t.kind!==n.kind&&A(t))&&(e.valueDeclaration=n)},e.isFunctionSymbol=function(n){if(!n||!n.valueDeclaration)return!1;var t=n.valueDeclaration;return 248===t.kind||e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionLike(t.initializer)},e.importFromModuleSpecifier=function(n){return Pe(n)||e.Debug.failBadSyntaxKind(n.parent)},e.tryGetImportFromModuleSpecifier=Pe,e.getExternalModuleName=function(n){switch(n.kind){case 258:case 264:return n.moduleSpecifier;case 257:return 269===n.moduleReference.kind?n.moduleReference.expression:void 0;case 192:return j(n)?n.argument.literal:void 0;default:return e.Debug.assertNever(n)}},e.getNamespaceDeclarationNode=function(n){switch(n.kind){case 258:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 257:return n;case 264:return n.exportClause&&e.tryCast(n.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(n)}},e.isDefaultImport=function(e){return 258===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(n,t){var r;if(n.name&&(r=t(n)))return r;if(n.namedBindings&&(r=e.isNamespaceImport(n.namedBindings)?t(n.namedBindings):e.forEach(n.namedBindings.elements,t)))return r},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(n){var t=e.isJSDocFunctionType(n)?e.firstOrUndefined(n.parameters):void 0,r=e.tryCast(t&&t.name,e.isIdentifier);return!!r&&"new"===r.escapedText},e.isJSDocTypeAlias=Me,e.isTypeAlias=function(n){return Me(n)||e.isTypeAliasDeclaration(n)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ge,e.getSingleVariableOfVariableStatement=Be,e.getJSDocCommentsAndTags=function(n,t){var r;X(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(r=e.append(r,e.last(n.initializer.jsDoc)));for(var a=n;a&&a.parent;){if(e.hasJSDocNodes(a)&&(r=e.append(r,e.last(a.jsDoc))),159===a.kind){r=e.addRange(r,(t?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(a));break}if(158===a.kind){r=e.addRange(r,(t?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(a));break}a=Ve(a)}return r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=je(n);if(r){var a=e.find(r.parameters,(function(e){return 78===e.name.kind&&e.name.escapedText===t}));return a&&a.symbol}}},e.getHostSignatureFromJSDoc=je,e.getEffectiveJSDocHost=He,e.getJSDocHost=Ke,e.getTypeParameterFromJsDoc=function(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return r&&e.find(r,(function(e){return e.name.escapedText===t}))},e.hasRestParameter=function(n){var t=e.lastOrUndefined(n.parameters);return!!t&&We(t)},e.isRestParameter=We,e.hasTypeArguments=function(e){return!!e.typeArguments},function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=qe,e.isAssignmentTarget=function(e){return 0!==qe(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 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(n){return e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isMethodOrAccessor(n)||e.isFunctionDeclaration(n)||e.isConstructorDeclaration(n)},e.walkUpParenthesizedTypes=function(e){return ze(e,185)},e.walkUpParenthesizedExpressions=Je,e.skipParentheses=Xe,e.isDeleteTarget=function(e){return(198===e.kind||199===e.kind)&&((e=Je(e.parent))&&207===e.kind)},e.isNodeDescendantOf=function(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1},e.isDeclarationName=function(n){return!e.isSourceFile(n)&&!e.isBindingPattern(n)&&e.isDeclaration(n.parent)&&n.parent.name===n},e.getDeclarationFromName=function(n){var t=n.parent;switch(n.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(t))return t.parent;case 78:if(e.isDeclaration(t))return t.name===n?t:void 0;if(e.isQualifiedName(t)){var r=t.parent;return e.isJSDocParameterTag(r)&&r.name===t?r:void 0}var a=t.parent;return e.isBinaryExpression(a)&&0!==Se(a)&&(a.left.symbol||a.symbol)&&e.getNameOfDeclaration(a)===n?a:void 0;case 79:return e.isDeclaration(t)&&t.name===n?t:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(n){return cn(n)&&157===n.parent.kind&&e.isDeclaration(n.parent.parent)},e.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 162:case 161:case 164:case 163:case 166:case 167:case 288:case 285:case 198:return n.name===e;case 156:return n.right===e;case 195:case 262:return n.propertyName===e;case 267:case 277:return!0}return!1},e.isAliasSymbolDeclaration=function(n){return 257===n.kind||256===n.kind||259===n.kind&&!!n.name||260===n.kind||266===n.kind||262===n.kind||267===n.kind||263===n.kind&&Qe(n)||e.isBinaryExpression(n)&&2===Se(n)&&Qe(n)||e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&62===n.parent.operatorToken.kind&&Ye(n.parent.right)||286===n.kind||285===n.kind&&Ye(n.initializer)},e.getAliasDeclarationFromName=function e(n){switch(n.parent.kind){case 259:case 262:case 260:case 267:case 263:case 257:return n.parent;case 156:do{n=n.parent}while(156===n.parent.kind);return e(n)}},e.isAliasableExpression=Ye,e.exportAssignmentIsAlias=Qe,e.getExportAssignmentExpression=Ze,e.getPropertyAssignmentAliasLikeExpression=function(e){return 286===e.kind?e.name:285===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=$e,e.getClassExtendsHeritageElement=en,e.getEffectiveImplementsTypeNodes=nn,e.getAllSuperTypeNodes=function(n){return e.isInterfaceDeclaration(n)?tn(n)||e.emptyArray:e.isClassLike(n)&&e.concatenate(e.singleElementArray($e(n)),nn(n))||e.emptyArray},e.getInterfaceBaseTypeNodes=tn,e.getHeritageClause=rn,e.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},e.isKeyword=an,e.isContextualKeyword=on,e.isNonContextualKeyword=sn,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&sn(t)},e.isStringAKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&an(t)},e.isIdentifierANonContextualKeyword=function(e){var n=e.originalKeywordKind;return!!n&&!on(n)},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 n=0;switch(e.kind){case 248:case 205:case 164:e.asteriskToken&&(n|=1);case 206:ct(e,256)&&(n|=2)}return e.body||(n|=4),n},e.isAsyncFunction=function(e){switch(e.kind){case 248:case 205:case 206:case 164:return void 0!==e.body&&void 0===e.asteriskToken&&ct(e,256)}return!1},e.isStringOrNumericLiteralLike=cn,e.isSignedNumericLiteral=ln,e.hasDynamicName=un,e.isDynamicName=dn,e.isWellKnownSymbolSyntactically=pn,e.getPropertyNameForPropertyNameNode=fn,e.isPropertyNameLiteral=mn,e.getTextOfIdentifierOrLiteral=_n,e.getEscapedTextOfIdentifierOrLiteral=function(n){return e.isIdentifierOrPrivateIdentifier(n)?n.escapedText:e.escapeLeadingUnderscores(n.text)},e.getPropertyNameForUniqueESSymbol=function(n){return"__@"+e.getSymbolId(n)+"@"+n.escapedName},e.getPropertyNameForKnownSymbolName=gn,e.getSymbolNameForPrivateIdentifier=function(n,t){return"__#"+e.getSymbolId(n)+"@"+t},e.isKnownSymbol=function(n){return e.startsWith(n.escapedName,"__@")},e.isESSymbolIdentifier=yn,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 159===hn(e).kind},e.getRootDeclaration=hn,e.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 165===n||205===n||248===n||206===n||164===n||166===n||167===n||253===n||294===n},e.nodeIsSynthesized=vn,e.getOriginalSourceFile=function(n){return e.getParseTreeNode(n,e.isSourceFile)||n},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var n=En(e),t=201===e.kind&&void 0!==e.arguments;return bn(e.kind,n,t)},e.getOperatorAssociativity=bn,e.getExpressionPrecedence=function(e){var n=En(e),t=201===e.kind&&void 0!==e.arguments;return Tn(e.kind,n,t)},e.getOperator=En,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=Tn,e.getBinaryOperatorPrecedence=Sn,e.createDiagnosticCollection=function(){var n=[],t=[],r=new e.Map,a=!1;return{add:function(i){var o;i.file?(o=r.get(i.file.fileName))||(o=[],r.set(i.file.fileName,o),e.insertSorted(t,i.file.fileName,e.compareStringsCaseSensitive)):(a&&(a=!1,n=n.slice()),o=n);e.insertSorted(o,i,or)},lookup:function(t){var a;a=t.file?r.get(t.file.fileName):n;if(!a)return;var i=e.binarySearch(a,t,e.identity,sr);if(i>=0)return a[i];return},getGlobalDiagnostics:function(){return a=!0,n},getDiagnostics:function(a){if(a)return r.get(a)||[];var i=e.flatMapToMutable(t,(function(e){return r.get(e)}));if(!n.length)return i;return i.unshift.apply(i,n),i},reattachFileDiagnostics:function(n){e.forEach(r.get(n.fileName),(function(e){return e.file=n}))}}};var xn=/\$\{/g;e.hasInvalidEscape=function(n){return n&&!!(e.isNoSubstitutionTemplateLiteral(n)?n.templateFlags:n.head.templateFlags||e.some(n.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Ln=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,An=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Dn=/[\\`]/g,Cn=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"}));function In(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Nn(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Cn.get(e)||In(e.charCodeAt(0))}function Rn(e,n){var t=96===n?Dn:39===n?An:Ln;return e.replace(t,Nn)}e.escapeString=Rn;var kn=/[^\u0000-\u007F]/g;function On(e,n){return e=Rn(e,n),kn.test(e)?e.replace(kn,(function(e){return In(e.charCodeAt(0))})):e}e.escapeNonAsciiString=On;var wn=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Pn=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Mn=new e.Map(e.getEntries({'"':""","'":"'"}));function Fn(e){return 0===e.charCodeAt(0)?"�":Mn.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Gn(e,n){var t=39===n?Pn:wn;return e.replace(t,Fn)}e.escapeJsxAttributeString=Gn,e.stripQuotes=function(e){var n,t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e},e.isIntrinsicJsxName=function(n){var t=n.charCodeAt(0);return t>=97&&t<=122||e.stringContains(n,"-")};var Bn=[""," "];function Un(e){return void 0===Bn[e]&&(Bn[e]=Un(e-1)+Bn[1]),Bn[e]}function Vn(){return Bn[1].length}function jn(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Hn(e,n,t){return n.moduleName||Kn(e,n.fileName,t&&t.fileName)}function Kn(n,t,r){var a=function(e){return n.getCanonicalFileName(e)},i=e.toPath(r?e.getDirectoryPath(r):n.getCommonSourceDirectory(),n.getCurrentDirectory(),a),o=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s=Ur(e.getRelativePathToDirectoryOrUrl(i,o,i,a,!1));return r?e.ensurePathIsNonModuleName(s):s}function Wn(e,n,t,r,a){var i=n.declarationDir||n.outDir;return Ur(i?Xn(e,i,t,r,a):e)+".d.ts"}function qn(e){return e.outFile||e.out}function zn(e,n,t){return!(n.getCompilerOptions().noEmitForJsFiles&&de(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&!(B(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&(t||!n.isSourceOfProjectReferenceRedirect(e.fileName))}function Jn(e,n,t){return Xn(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function Xn(n,t,r,a,i){var o=e.getNormalizedAbsolutePath(n,r);return o=0===i(o).indexOf(i(a))?o.substring(a.length):o,e.combinePaths(t,o)}function Yn(n,t){return e.computeLineOfPosition(n,t)}function Qn(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&Zn(e.parameters[0]);return e.parameters[n?1:0]}}function Zn(e){return $n(e.name)}function $n(e){return!!e&&78===e.kind&&et(e)}function et(e){return 107===e.originalKeywordKind}function nt(n){if(pe(n)||!e.isFunctionDeclaration(n)){var t=n.type;return t||!pe(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}}function tt(e,n,t,r){rt(e,n,t.pos,r)}function rt(e,n,t,r){r&&r.length&&t!==r[0].pos&&Yn(e,t)!==Yn(e,r[0].pos)&&n.writeLine()}function at(e,n,t,r,a,i,o,s){if(r&&r.length>0){a&&t.writeSpace(" ");for(var c=!1,l=0,u=r;l=0&&e.kind<=155?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|yt(e)),!n||4096&e.modifierFlagsCache||!t&&!pe(e)||!e.parent||(e.modifierFlagsCache|=4096|gt(e)),-536875009&e.modifierFlagsCache)}function mt(e){return ft(e,!0)}function _t(e){return ft(e,!1)}function gt(n){var t=0;return n.parent&&!e.isParameter(n)&&(pe(n)&&(e.getJSDocPublicTagNoCache(n)&&(t|=4),e.getJSDocPrivateTagNoCache(n)&&(t|=8),e.getJSDocProtectedTagNoCache(n)&&(t|=16),e.getJSDocReadonlyTagNoCache(n)&&(t|=64)),e.getJSDocDeprecatedTagNoCache(n)&&(t|=8192)),t}function yt(e){var n=ht(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function ht(e){var n=0;if(e)for(var t=0,r=e;t=62&&e<=77}function Tt(e){var n=St(e);return n&&!n.isImplements?n.class:void 0}function St(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:116===n.parent.token}:void 0}function xt(n,t){return e.isBinaryExpression(n)&&(t?62===n.operatorToken.kind:Et(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function Lt(e){return void 0!==Tt(e)}function At(e){return 78===e.kind||Dt(e)}function Dt(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&At(n.expression)}function Ct(e){return De(e)&&"prototype"===ke(e)}e.getIndentString=Un,e.getIndentSize=Vn,e.createTextWriter=function(n){var t,r,a,i,o,s=!1;function c(n){var r=e.computeLineStarts(n);r.length>1?(i=i+r.length-1,o=t.length-n.length+e.last(r),a=o-t.length==0):a=!1}function l(e){e&&e.length&&(a&&(e=Un(r)+e,a=!1),t+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){t="",r=0,a=!0,i=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(t+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){a&&!e||(i++,o=(t+=n).length,a=!0,s=!1)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return i},getColumn:function(){return a?r*Vn():t.length-o},getText:function(){return t},isAtStartOfLine:function(){return a},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,n){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return a?t.length:t.length+n.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return o(o({},e),{writeTrailingSemicolon:function(){n=!0},writeLiteral:function(n){t(),e.writeLiteral(n)},writeStringLiteral:function(n){t(),e.writeStringLiteral(n)},writeSymbol:function(n,r){t(),e.writeSymbol(n,r)},writePunctuation:function(n){t(),e.writePunctuation(n)},writeKeyword:function(n){t(),e.writeKeyword(n)},writeOperator:function(n){t(),e.writeOperator(n)},writeParameter:function(n){t(),e.writeParameter(n)},writeSpace:function(n){t(),e.writeSpace(n)},writeProperty:function(n){t(),e.writeProperty(n)},writeComment:function(n){t(),e.writeComment(n)},writeLine:function(){t(),e.writeLine()},increaseIndent:function(){t(),e.increaseIndent()},decreaseIndent:function(){t(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=jn,e.hostGetCanonicalFileName=function(n){return e.createGetCanonicalFileName(jn(n))},e.getResolvedExternalModuleName=Hn,e.getExternalModuleNameFromDeclaration=function(e,n,t){var r=n.getExternalModuleFileFromDeclaration(t);if(r&&!r.isDeclarationFile)return Hn(e,r)},e.getExternalModuleNameFromPath=Kn,e.getOwnEmitOutputFilePath=function(e,n,t){var r=n.getCompilerOptions();return(r.outDir?Ur(Jn(e,n,r.outDir)):Ur(e))+t},e.getDeclarationEmitOutputFilePath=function(e,n){return Wn(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Wn,e.outFile=qn,e.getSourceFilesToEmit=function(n,t,r){var a=n.getCompilerOptions();if(qn(a)){var i=lr(a),o=a.emitDeclarationOnly||i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(n.getSourceFiles(),(function(t){return(o||!e.isExternalModule(t))&&zn(t,n,r)}))}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,(function(e){return zn(e,n,r)}))},e.sourceFileMayBeEmitted=zn,e.getSourceFilePathInNewDir=Jn,e.getSourceFilePathInNewDirWorker=Xn,e.writeFile=function(n,t,r,a,i,o){n.writeFile(r,a,i,(function(n){t.add(ar(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))}),o)},e.writeFileEnsuringDirectories=function(n,t,r,a,i,o){try{a(n,t,r)}catch(s){!function n(t,r,a){t.length>e.getRootLength(t)&&!a(t)&&(n(e.getDirectoryPath(t),r,a),r(t))}(e.getDirectoryPath(e.normalizePath(n)),i,o),a(n,t,r)}},e.getLineOfLocalPosition=function(n,t){var r=e.getLineStarts(n);return e.computeLineOfPosition(r,t)},e.getLineOfLocalPositionFromLineMap=Yn,e.getFirstConstructorWithBody=function(n){return e.find(n.members,(function(n){return e.isConstructorDeclaration(n)&&f(n.body)}))},e.getSetAccessorValueParameter=Qn,e.getSetAccessorTypeAnnotationNode=function(e){var n=Qn(e);return n&&n.type},e.getThisParameter=function(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(Zn(t))return t}},e.parameterIsThisKeyword=Zn,e.isThisIdentifier=$n,e.identifierIsThisKeyword=et,e.getAllAccessorDeclarations=function(n,t){var r,a,i,o;return un(t)?(r=t,166===t.kind?i=t:167===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,(function(n){e.isAccessor(n)&&ct(n,32)===ct(t,32)&&(fn(n.name)===fn(t.name)&&(r?a||(a=n):r=n,166!==n.kind||i||(i=n),167!==n.kind||o||(o=n)))})),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}},e.getEffectiveTypeAnnotationNode=nt,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(n){return e.isJSDocSignature(n)?n.type&&n.type.typeExpression&&n.type.typeExpression.type:n.type||(pe(n)?e.getJSDocReturnType(n):void 0)},e.getJSDocTypeParameterDeclarations=function(n){return e.flatMap(e.getJSDocTags(n),(function(n){return function(n){return e.isJSDocTemplateTag(n)&&!(307===n.parent.kind&&n.parent.tags.some(Me))}(n)?n.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=Qn(e);return n&&nt(n)},e.emitNewLineBeforeLeadingComments=tt,e.emitNewLineBeforeLeadingCommentsOfPosition=rt,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&Yn(e,t)!==Yn(e,r)&&n.writeLine()},e.emitComments=at,e.emitDetachedComments=function(n,t,r,a,i,o,s){var c,l;if(s?0===i.pos&&(c=e.filter(e.getLeadingCommentRanges(n,i.pos),(function(e){return y(n,e.pos)}))):c=e.getLeadingCommentRanges(n,i.pos),c){for(var u=[],d=void 0,p=0,f=c;p=_+2)break}u.push(m),d=m}if(u.length){_=Yn(t,e.last(u).end);Yn(t,e.skipTrivia(n,i.pos))>=_+2&&(tt(t,r,i,c),at(n,t,r,u,!1,!0,o,a),l={nodePos:i.pos,detachedCommentEndPos:e.last(u).end})}}return l},e.writeCommentRange=function(n,t,r,a,i,o){if(42===n.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(t,a),c=t.length,l=void 0,u=a,d=s.line;u0){var m=f%Vn(),_=Un((f-m)/Vn());for(r.rawWrite(_);m;)r.rawWrite(" "),m--}else r.rawWrite("")}it(n,i,r,o,u,p),u=p}else r.writeComment(n.substring(a,i))},e.hasEffectiveModifiers=function(e){return 0!==mt(e)},e.hasSyntacticModifiers=function(e){return 0!==_t(e)},e.hasEffectiveModifier=st,e.hasSyntacticModifier=ct,e.hasStaticModifier=lt,e.hasEffectiveReadonlyModifier=ut,e.getSelectedEffectiveModifierFlags=dt,e.getSelectedSyntacticModifierFlags=pt,e.getEffectiveModifierFlags=mt,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return ft(e,!0,!0)},e.getSyntacticModifierFlags=_t,e.getEffectiveModifierFlagsNoCache=function(e){return yt(e)|gt(e)},e.getSyntacticModifierFlagsNoCache=yt,e.modifiersToFlags=ht,e.modifierToFlag=vt,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=bt,e.isLogicalOrCoalescingAssignmentExpression=function(e){return bt(e.operatorToken.kind)},e.isAssignmentOperator=Et,e.tryGetClassExtendingExpressionWithTypeArguments=Tt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=St,e.isAssignmentExpression=xt,e.isDestructuringAssignment=function(e){if(xt(e,!0)){var n=e.left.kind;return 197===n||196===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Lt,e.isEntityNameExpression=At,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(n){return 78===n.kind||107===n.kind||105===n.kind||198===n.kind&&e(n.expression)||204===n.kind&&e(n.expression)},e.isPropertyAccessEntityNameExpression=Dt,e.tryGetPropertyAccessOrIdentifierToString=function n(t){if(e.isPropertyAccessExpression(t)){var r=n(t.expression);if(void 0!==r)return r+"."+P(t.name)}else if(e.isIdentifier(t))return e.unescapeLeadingUnderscores(t.escapedText)},e.isPrototypeAccess=Ct,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(n){if(function(n){return n&&e.length(n.declarations)>0&&ct(n.declarations[0],512)}(n))for(var t=0,r=n.declarations;t>6|192),t.push(63&i|128)):i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i<131072?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point")}return t}(n),c=0,l=s.length;c>2,r=(3&s[c])<<4|s[c+1]>>4,a=(15&s[c+1])<<2|s[c+2]>>6,i=63&s[c+2],c+1>=l?a=i=64:c+2>=l&&(i=64),o+=It.charAt(t)+It.charAt(r)+It.charAt(a)+It.charAt(i),c+=3;return o}e.convertToBase64=Nt,e.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):Nt(n)},e.base64decode=function(e,n){if(e&&e.base64decode)return e.base64decode(n);for(var t=n.length,r=[],a=0;a>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?r.push(l):0===d&&0!==c?r.push(l,u):r.push(l,u,d),a+=4}return function(e){for(var n="",t=0,r=e.length;t=n||-1===t),{pos:n,end:t}}function Ot(e,n){return kt(n,e.end)}function wt(e){return e.decorators&&e.decorators.length>0?Ot(e,e.decorators.end):e}function Pt(e,n,t){return Mt(Ft(e,t,!1),n.end,t)}function Mt(n,t,r){return 0===e.getLinesBetweenPositions(r,n,t)}function Ft(n,t,r){return Kr(n.pos)?-1:e.skipTrivia(t.text,n.pos,!1,r)}function Gt(e){return void 0!==e.initializer}function Bt(e){return 33554432&e.flags?e.checkFlags:0}function Ut(n){var t=n.parent;if(!t)return 0;switch(t.kind){case 204:return Ut(t);case 212:case 211:var r=t.operator;return 45===r||46===r?c():0;case 213:var a=t,i=a.left,o=a.operatorToken;return i===n&&Et(o.kind)?62===o.kind?1:c():0;case 198:return t.name!==n?0:Ut(t);case 285:var s=Ut(t.parent);return n===t.name?function(n){switch(n){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(n)}}(s):s;case 286:return n===t.objectAssignmentInitializer?0:Ut(t.parent);case 196:return Ut(t);default:return 0}function c(){return t.parent&&230===function(e){for(;204===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function Vt(e,n,t){var r=t.onDeleteValue,a=t.onExistingValue;e.forEach((function(t,i){var o=n.get(i);void 0===o?(e.delete(i),r(t,i)):a&&a(t,o,i)}))}function jt(e){if(32&e.flags){var n=Ht(e);return!!n&&ct(n,128)}return!1}function Ht(n){return e.find(n.declarations,e.isClassLike)}function Kt(e){return 3899393&e.flags?e.objectFlags:0}function Wt(e){return 198===e.kind||199===e.kind}function qt(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function zt(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function Jt(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function Xt(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Yt(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function Qt(e,n,t){this.pos=n,this.end=t,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 Zt(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function $t(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,(function(n,a){return""+e.Debug.checkDefined(t[+a+r])}))}function er(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function nr(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function tr(n,t){var r=t.fileName||"",a=t.text.length;e.Debug.assertEqual(n.fileName,r),e.Debug.assertLessThanOrEqual(n.start,a),e.Debug.assertLessThanOrEqual(n.start+n.length,a);var i={file:t,start:n.start,length:n.length,messageText:n.messageText,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary};if(n.relatedInformation){i.relatedInformation=[];for(var o=0,s=n.relatedInformation;o4&&(i=$t(i,arguments,4)),{file:n,start:t,length:r,messageText:i,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,reportsDeprecated:a.reportsDeprecated}}function ar(e){var n=er(e);return arguments.length>1&&(n=$t(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function ir(e){return e.file?e.file.path:void 0}function or(n,t){return sr(n,t)||function(n,t){if(!n.relatedInformation&&!t.relatedInformation)return 0;if(n.relatedInformation&&t.relatedInformation)return e.compareValues(n.relatedInformation.length,t.relatedInformation.length)||e.forEach(n.relatedInformation,(function(e,n){return or(e,t.relatedInformation[n])}))||0;return n.relatedInformation?-1:1}(n,t)||0}function sr(n,t){return e.compareStringsCaseSensitive(ir(n),ir(t))||e.compareValues(n.start,t.start)||e.compareValues(n.length,t.length)||e.compareValues(n.code,t.code)||function n(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var a=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(a)return a;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),o=0;or.next.length)return 1;return 0}(n.messageText,t.messageText)||0}function cr(e){return e.target||0}function lr(n){return"number"==typeof n.module?n.module:cr(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function ur(e){return!(!e.declaration&&!e.composite)}function dr(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function pr(e,n){return n.strictFlag?dr(e,n.name):e[n.name]}function fr(e){for(var n=!1,t=0;t0?Ot(e,e.modifiers.end):wt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return kt(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return Pt(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return Mt(Ft(e,t,!1),Ft(n,t,!1),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return Mt(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=Pt,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return Mt(e.end,Ft(n,t,!1),t)},e.getLinesBetweenRangeEndAndRangeStart=function(n,t,r,a){var i=Ft(t,r,a);return e.getLinesBetweenPositions(r,n.end,i)},e.getLinesBetweenRangeEndPositions=function(n,t,r){return e.getLinesBetweenPositions(r,n.end,t.end)},e.isNodeArrayMultiLine=function(e,n){return!Mt(e.pos,e.end,n)},e.positionsAreOnSameLine=Mt,e.getStartPositionOfRange=Ft,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(n,t,r,a){var i=e.skipTrivia(r.text,n,!1,a),o=function(n,t,r){void 0===t&&(t=0);for(;n-- >t;)if(!e.isWhiteSpaceLike(r.text.charCodeAt(n)))return n}(i,t,r);return e.getLinesBetweenPositions(r,null!=o?o:t,i)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(n,t,r,a){var i=e.skipTrivia(r.text,n,!1,a);return e.getLinesBetweenPositions(r,n,Math.min(t,i))},e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 252:case 253:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,Gt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Bt,e.getDeclarationModifierFlagsFromSymbol=function(n){if(n.valueDeclaration){var t=e.getCombinedModifierFlags(n.valueDeclaration);return n.parent&&32&n.parent.flags?t:-29&t}if(6&Bt(n)){var r=n.checkFlags;return(1024&r?8:256&r?4:16)|(2048&r?32:0)}return 4194304&n.flags?36:0},e.skipAlias=function(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Ut(e)},e.isWriteAccess=function(e){return 0!==Ut(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Rt||(Rt={})),e.compareDataObjects=function e(n,t){if(!n||!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(var r in n)if("object"==typeof n[r]){if(!e(n[r],t[r]))return!1}else if("function"!=typeof n[r]&&n[r]!==t[r])return!1;return!0},e.clearMap=function(e,n){e.forEach(n),e.clear()},e.mutateMapSkippingNewValues=Vt,e.mutateMap=function(e,n,t){Vt(e,n,t);var r=t.createNewValue;n.forEach((function(n,t){e.has(t)||e.set(t,r(t,n))}))},e.isAbstractConstructorType=function(e){return!!(16&Kt(e))&&!!e.symbol&&jt(e.symbol)},e.isAbstractConstructorSymbol=jt,e.getClassLikeDeclarationOfSymbol=Ht,e.getObjectFlags=Kt,e.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(n,t){return!!e.forEachAncestorDirectory(n,(function(e){return!!t(e)||void 0}))},e.isUMDExportSymbol=function(n){return!!n&&!!n.declarations&&!!n.declarations[0]&&e.isNamespaceExportDeclaration(n.declarations[0])},e.showModuleSpecifier=function(n){var t=n.moduleSpecifier;return e.isStringLiteral(t)?t.text:E(t)},e.getLastChild=function(n){var t;return e.forEachChild(n,(function(e){f(e)&&(t=e)}),(function(e){for(var n=e.length-1;n>=0;n--)if(f(e[n])){t=e[n];break}})),t},e.addToSeen=function(e,n,t){return void 0===t&&(t=!0),n=String(n),!e.has(n)&&(e.set(n,t),!0)},e.isObjectTypeDeclaration=function(n){return e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isTypeLiteralNode(n)},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=Wt,e.getNameOfAccessExpression=function(n){return 198===n.kind?n.name:(e.Debug.assert(199===n.kind),n.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,n){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(n)return e;case 221:case 199:case 198:case 222:case 331:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return Xt},getTokenConstructor:function(){return Yt},getIdentifierConstructor:function(){return Qt},getPrivateIdentifierConstructor:function(){return Xt},getSourceFileConstructor:function(){return Xt},getSymbolConstructor:function(){return qt},getTypeConstructor:function(){return zt},getSignatureConstructor:function(){return Jt},getSourceMapSourceConstructor:function(){return Zt}},e.setObjectAllocator=function(n){e.objectAllocator=n},e.formatStringFromArgs=$t,e.setLocalizedDiagnosticMessages=function(n){e.localizedDiagnosticMessages=n},e.getLocaleSpecificMessage=er,e.createDetachedDiagnostic=function(n,t,r,a){e.Debug.assertGreaterThanOrEqual(t,0),e.Debug.assertGreaterThanOrEqual(r,0);var i=er(a);return arguments.length>4&&(i=$t(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary,fileName:n}},e.attachFileToDiagnostics=function(e,n){for(var t=[],r=0,a=e;r2&&(t=$t(t,arguments,2)),t},e.createCompilerDiagnostic=ar,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,n){var t=er(n);return arguments.length>2&&(t=$t(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next[0];t.next=[n]},e.compareDiagnostics=or,e.compareDiagnosticsSkipRelatedInformation=sr,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=cr,e.getEmitModuleKind=lr,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;return void 0===t&&(t=lr(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t},e.hasJsonModuleEmitEnabled=function(n){switch(lr(n)){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!(!ur(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(n){var t=lr(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop||t===e.ModuleKind.System},e.getEmitDeclarations=ur,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=dr,e.compilerOptionsAffectSemanticDiagnostics=function(n,t){return t!==n&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!zr(pr(t,e),pr(n,e))}))},e.compilerOptionsAffectEmit=function(n,t){return t!==n&&e.affectsEmitOptionDeclarations.some((function(e){return!zr(pr(t,e),pr(n,e))}))},e.getCompilerOptionValue=pr,e.hasZeroOrOneAsteriskCharacter=fr,e.createSymlinkCache=mr,e.discoverProbableSymlinks=function(n,t,r){for(var a=mr(),i=0,o=e.flatten(e.mapDefined(n,(function(n){return n.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(n.resolvedModules.values(),(function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0}))))})));i0;)c+=")?",p--;return c}(n,t,r,xr[r])}))}function Dr(e){return!/[.*?]/.test(e)}function Cr(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function Ir(n,t,r,a,i){n=e.normalizePath(n),i=e.normalizePath(i);var o=e.combinePaths(i,n);return{includeFilePatterns:e.map(Ar(r,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Lr(r,o,"files"),includeDirectoryPattern:Lr(r,o,"directories"),excludePattern:Lr(t,o,"exclude"),basePaths:Rr(n,r,a)}}function Nr(e,n){return new RegExp(e,n?"":"i")}function Rr(n,t,r){var a=[n];if(t){for(var i=[],o=0,s=t;o=0;r--)if(e.fileExtensionIs(n,t[r]))return Gr(r,t);return 0},e.adjustExtensionPriority=Gr,e.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var Br=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Ur(e){for(var n=0,t=Br;n=0)}function Wr(e){return".ts"===e||".tsx"===e||".d.ts"===e}function qr(n){return e.find(Br,(function(t){return e.fileExtensionIs(n,t)}))}function zr(n,t){return n===t||"object"==typeof n&&null!==n&&"object"==typeof t&&null!==t&&e.equalOwnProperties(n,t,zr)}function Jr(e,n){return e.pos=n,e}function Xr(e,n){return e.end=n,e}function Yr(e,n,t){return Xr(Jr(e,n),t)}function Qr(e,n){return e&&n&&(e.parent=n),e}e.removeFileExtension=Ur,e.tryRemoveExtension=Vr,e.removeExtension=jr,e.changeExtension=function(n,t){return e.changeAnyExtension(n,t,Br,!1)},e.tryParsePattern=Hr,e.positionIsSynthesized=Kr,e.extensionIsTS=Wr,e.resolutionExtensionIsTSOrJson=function(e){return Wr(e)||".json"===e},e.extensionFromPath=function(n){var t=qr(n);return void 0!==t?t:e.Debug.fail("File "+n+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==qr(e)},e.tryGetExtensionFromPath=qr,e.isCheckJsEnabledForFile=function(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(n,t){for(var r=[],a=0,i=n;aa&&(a=o)}return{min:r,max:a}},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,n,t){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||t.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=zr,e.parsePseudoBigInt=function(e){var n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:for(var t=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}for(var a=e.length-1,i=(a-2)*n,o=new Uint16Array((i>>>4)+(15&i?1:0)),s=a-1,c=0;s>=2;s--,c+=n){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var f="",m=o.length-1,_=!0;_;){var g=0;_=!1;for(l=m;l>=0;l--){var y=g<<16|o[l],h=y/10|0;o[l]=h,g=y-10*h,h&&!_&&(m=l,_=!0)}f=g+f}return f},e.pseudoBigIntToString=function(e){var n=e.negative,t=e.base10Value;return(n&&"0"!==t?"-":"")+t},e.isValidTypeOnlyAliasUseSite=function(e){return!!(8388608&e.flags)||le(e)||function(e){if(78!==e.kind)return!1;var n=s(e.parent,(function(e){switch(e.kind){case 283:return!0;case 198:case 220:return!1;default:return"quit"}}));return 116===(null==n?void 0:n.token)||250===(null==n?void 0:n.parent.kind)}(e)||function(e){for(;78===e.kind||198===e.kind;)e=e.parent;if(157!==e.kind)return!1;if(ct(e.parent,128))return!0;var n=e.parent.parent.kind;return 250===n||176===n}(e)||!se(e)},e.typeOnlyDeclarationIsExport=function(e){return 267===e.kind},e.isIdentifierTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)},e.arrayIsHomogeneous=function(n,t){if(void 0===t&&(t=e.equateValues),n.length<2)return!0;for(var r=n[0],a=1,i=n.length;a3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!a&&1===s&&216===r.kind);case 1:return!1;case 0:if(a)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===n){if(function(e){return 41===e||51===e||50===e||52===e}(n))return!1;if(39===n){var u=i?t(i):0;if(e.isLiteralKind(u)&&u===t(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,a,i,o)?n.createParenthesizedExpression(a):a}function a(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(201!==r.kind||r.arguments)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function i(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(213,27)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function o(e){return 183===e.kind?n.createParenthesizedType(e):e}function s(e){switch(e.kind){case 181:case 182:case 173:case 174:return n.createParenthesizedType(e)}return o(e)}function c(t,r){return 0===r&&e.isFunctionOrConstructorTypeNode(t)&&t.typeParameters?n.createParenthesizedType(t):t}},e.nullParenthesizerRules={parenthesizeLeftSideOfBinary:function(e,n){return n},parenthesizeRightSideOfBinary:function(e,n,t){return t},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(n){return e.cast(n,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(n){return e.cast(n,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(n){return e.cast(n,e.isNodeArray)},parenthesizeTypeArguments:function(n){return n&&e.cast(n,e.isNodeArray)}}}(d||(d={})),function(e){e.createNodeConverters=function(n){return{convertToFunctionBlock:function(t,r){if(e.isBlock(t))return t;var a=n.createReturnStatement(t);e.setTextRange(a,t);var i=n.createBlock([a],r);return e.setTextRange(i,t),i},convertToFunctionExpression:function(t){if(!t.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var r=n.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:r,convertToAssignmentPattern:a,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function t(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadElement(t.name),t),t);var r=s(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(n.createAssignment(r,t.initializer),t),t):r}return e.cast(t,e.isExpression)}function r(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=s(t.name);return e.setOriginalNode(e.setTextRange(n.createPropertyAssignment(t.propertyName,t.initializer?n.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.cast(t,e.isObjectLiteralElementLike)}function a(e){switch(e.kind){case 194:case 196:return o(e);case 193:case 197:return i(e)}}function i(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(n.createObjectLiteralExpression(e.map(t.elements,r)),t),t):e.cast(t,e.isObjectLiteralExpression)}function o(r){return e.isArrayBindingPattern(r)?e.setOriginalNode(e.setTextRange(n.createArrayLiteralExpression(e.map(r.elements,t)),r),r):e.cast(r,e.isArrayLiteralExpression)}function s(n){return e.isBindingPattern(n)?a(n):e.cast(n,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}}(d||(d={})),function(e){var n,t=0;function r(r,f){var m=8&r?a:o,_=e.memoize((function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(C)})),g=e.memoize((function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(C)})),y=e.memoizeOne((function(e){return function(n,t){return In(n,e,t)}})),v=e.memoizeOne((function(e){return function(n){return Dn(e,n)}})),b=e.memoizeOne((function(e){return function(n){return Cn(n,e)}})),E=e.memoizeOne((function(e){return function(){return function(e){return N(e)}(e)}})),T=e.memoizeOne((function(e){return function(n){return qt(e,n)}})),S=e.memoizeOne((function(e){return function(n,t){return function(e,n,t){return n.type!==t?m(qt(e,t),n):n}(e,n,t)}})),x=e.memoizeOne((function(e){return function(n,t){return or(e,n,t)}})),L=e.memoizeOne((function(e){return function(n,t,r){return function(e,n,t,r){void 0===t&&(t=Qt(n));return n.tagName!==t||n.comment!==r?m(or(e,t,r),n):n}(e,n,t,r)}})),A=e.memoizeOne((function(e){return function(n,t,r){return sr(e,n,t,r)}})),D=e.memoizeOne((function(e){return function(n,t,r,a){return function(e,n,t,r,a){void 0===t&&(t=Qt(n));return n.tagName!==t||n.typeExpression!==r||n.comment!==a?m(sr(e,t,r,a),n):n}(e,n,t,r,a)}})),C={get parenthesizer(){return _()},get converters(){return g()},createNodeArray:I,createNumericLiteral:H,createBigIntLiteral:K,createStringLiteral:q,createStringLiteralFromNode:function(n){var t=W(e.getTextOfIdentifierOrLiteral(n),void 0);return t.textSourceNode=n,t},createRegularExpressionLiteral:z,createLiteralLikeNode:function(e,n){switch(e){case 8:return H(n,0);case 9:return K(n);case 10:return q(n,void 0);case 11:return _r(n,!1);case 12:return _r(n,!0);case 13:return z(n);case 14:return On(e,n,void 0,0)}},createIdentifier:Y,updateIdentifier:function(n,t){return n.typeArguments!==t?m(Y(e.idText(n),t),n):n},createTempVariable:Q,createLoopVariable:function(){return X("",2)},createUniqueName:function(n,t){void 0===t&&(t=0);return e.Debug.assert(!(7&t),"Argument out of range: flags"),e.Debug.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),X(n,3|t)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(n){e.startsWith(n,"#")||e.Debug.fail("First character of private identifier must be #: "+n);var t=f.createBasePrivateIdentifierNode(79);return t.escapedText=e.escapeLeadingUnderscores(n),t.transformFlags|=4194304,t},createToken:ee,createSuper:function(){return ee(105)},createThis:ne,createNull:function(){return ee(103)},createTrue:te,createFalse:re,createModifier:ae,createModifiersFromModifierFlags:ie,createQualifiedName:oe,updateQualifiedName:function(e,n,t){return e.left!==n||e.right!==t?m(oe(n,t),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,n){return e.expression!==n?m(se(n),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,n,t,r){return e.name!==n||e.constraint!==t||e.default!==r?m(ce(n,t,r),e):e},createParameterDeclaration:le,updateParameterDeclaration:ue,createDecorator:de,updateDecorator:function(e,n){return e.expression!==n?m(de(n),e):e},createPropertySignature:pe,updatePropertySignature:fe,createPropertyDeclaration:me,updatePropertyDeclaration:_e,createMethodSignature:ge,updateMethodSignature:ye,createMethodDeclaration:he,updateMethodDeclaration:ve,createConstructorDeclaration:be,updateConstructorDeclaration:Ee,createGetAccessorDeclaration:Te,updateGetAccessorDeclaration:Se,createSetAccessorDeclaration:xe,updateSetAccessorDeclaration:Le,createCallSignature:Ae,updateCallSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(Ae(n,t,r),e):e},createConstructSignature:De,updateConstructSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(De(n,t,r),e):e},createIndexSignature:Ce,updateIndexSignature:Ie,createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Ne,updateTypePredicateNode:function(e,n,t,r){return e.assertsModifier!==n||e.parameterName!==t||e.type!==r?m(Ne(n,t,r),e):e},createTypeReferenceNode:Re,updateTypeReferenceNode:function(e,n,t){return e.typeName!==n||e.typeArguments!==t?m(Re(n,t),e):e},createFunctionTypeNode:ke,updateFunctionTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(ke(n,t,r),e):e},createConstructorTypeNode:Oe,updateConstructorTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(Oe(n,t,r),e):e},createTypeQueryNode:we,updateTypeQueryNode:function(e,n){return e.exprName!==n?m(we(n),e):e},createTypeLiteralNode:Pe,updateTypeLiteralNode:function(e,n){return e.members!==n?m(Pe(n),e):e},createArrayTypeNode:Me,updateArrayTypeNode:function(e,n){return e.elementType!==n?m(Me(n),e):e},createTupleTypeNode:Fe,updateTupleTypeNode:function(e,n){return e.elements!==n?m(Fe(n),e):e},createNamedTupleMember:Ge,updateNamedTupleMember:function(e,n,t,r,a){return e.dotDotDotToken!==n||e.name!==t||e.questionToken!==r||e.type!==a?m(Ge(n,t,r,a),e):e},createOptionalTypeNode:Be,updateOptionalTypeNode:function(e,n){return e.type!==n?m(Be(n),e):e},createRestTypeNode:Ue,updateRestTypeNode:function(e,n){return e.type!==n?m(Ue(n),e):e},createUnionTypeNode:function(e){return Ve(181,e)},updateUnionTypeNode:function(e,n){return je(e,n)},createIntersectionTypeNode:function(e){return Ve(182,e)},updateIntersectionTypeNode:function(e,n){return je(e,n)},createConditionalTypeNode:He,updateConditionalTypeNode:function(e,n,t,r,a){return e.checkType!==n||e.extendsType!==t||e.trueType!==r||e.falseType!==a?m(He(n,t,r,a),e):e},createInferTypeNode:Ke,updateInferTypeNode:function(e,n){return e.typeParameter!==n?m(Ke(n),e):e},createImportTypeNode:We,updateImportTypeNode:function(e,n,t,r,a){void 0===a&&(a=e.isTypeOf);return e.argument!==n||e.qualifier!==t||e.typeArguments!==r||e.isTypeOf!==a?m(We(n,t,r,a),e):e},createParenthesizedType:qe,updateParenthesizedType:function(e,n){return e.type!==n?m(qe(n),e):e},createThisTypeNode:function(){var e=N(186);return e.transformFlags=1,e},createTypeOperatorNode:ze,updateTypeOperatorNode:function(e,n){return e.type!==n?m(ze(e.operator,n),e):e},createIndexedAccessTypeNode:Je,updateIndexedAccessTypeNode:function(e,n,t){return e.objectType!==n||e.indexType!==t?m(Je(n,t),e):e},createMappedTypeNode:Xe,updateMappedTypeNode:function(e,n,t,r,a){return e.readonlyToken!==n||e.typeParameter!==t||e.questionToken!==r||e.type!==a?m(Xe(n,t,r,a),e):e},createLiteralTypeNode:Ye,updateLiteralTypeNode:function(e,n){return e.literal!==n?m(Ye(n),e):e},createObjectBindingPattern:Qe,updateObjectBindingPattern:function(e,n){return e.elements!==n?m(Qe(n),e):e},createArrayBindingPattern:Ze,updateArrayBindingPattern:function(e,n){return e.elements!==n?m(Ze(n),e):e},createBindingElement:$e,updateBindingElement:function(e,n,t,r,a){return e.propertyName!==t||e.dotDotDotToken!==n||e.name!==r||e.initializer!==a?m($e(n,t,r,a),e):e},createArrayLiteralExpression:nn,updateArrayLiteralExpression:function(e,n){return e.elements!==n?m(nn(n,e.multiLine),e):e},createObjectLiteralExpression:tn,updateObjectLiteralExpression:function(e,n){return e.properties!==n?m(tn(n,e.multiLine),e):e},createPropertyAccessExpression:4&r?function(n,t){return e.setEmitFlags(rn(n,t),131072)}:rn,updatePropertyAccessExpression:function(n,t,r){if(e.isPropertyAccessChain(n))return on(n,t,n.questionDotToken,e.cast(r,e.isIdentifier));return n.expression!==t||n.name!==r?m(rn(t,r),n):n},createPropertyAccessChain:4&r?function(n,t,r){return e.setEmitFlags(an(n,t,r),131072)}:an,updatePropertyAccessChain:on,createElementAccessExpression:sn,updateElementAccessExpression:function(n,t,r){if(e.isElementAccessChain(n))return ln(n,t,n.questionDotToken,r);return n.expression!==t||n.argumentExpression!==r?m(sn(t,r),n):n},createElementAccessChain:cn,updateElementAccessChain:ln,createCallExpression:un,updateCallExpression:function(n,t,r,a){if(e.isCallChain(n))return pn(n,t,n.questionDotToken,r,a);return n.expression!==t||n.typeArguments!==r||n.arguments!==a?m(un(t,r,a),n):n},createCallChain:dn,updateCallChain:pn,createNewExpression:fn,updateNewExpression:function(e,n,t,r){return e.expression!==n||e.typeArguments!==t||e.arguments!==r?m(fn(n,t,r),e):e},createTaggedTemplateExpression:mn,updateTaggedTemplateExpression:function(e,n,t,r){return e.tag!==n||e.typeArguments!==t||e.template!==r?m(mn(n,t,r),e):e},createTypeAssertion:_n,updateTypeAssertion:gn,createParenthesizedExpression:yn,updateParenthesizedExpression:hn,createFunctionExpression:vn,updateFunctionExpression:bn,createArrowFunction:En,updateArrowFunction:Tn,createDeleteExpression:Sn,updateDeleteExpression:function(e,n){return e.expression!==n?m(Sn(n),e):e},createTypeOfExpression:xn,updateTypeOfExpression:function(e,n){return e.expression!==n?m(xn(n),e):e},createVoidExpression:Ln,updateVoidExpression:function(e,n){return e.expression!==n?m(Ln(n),e):e},createAwaitExpression:An,updateAwaitExpression:function(e,n){return e.expression!==n?m(An(n),e):e},createPrefixUnaryExpression:Dn,updatePrefixUnaryExpression:function(e,n){return e.operand!==n?m(Dn(e.operator,n),e):e},createPostfixUnaryExpression:Cn,updatePostfixUnaryExpression:function(e,n){return e.operand!==n?m(Cn(n,e.operator),e):e},createBinaryExpression:In,updateBinaryExpression:function(e,n,t,r){return e.left!==n||e.operatorToken!==t||e.right!==r?m(In(n,t,r),e):e},createConditionalExpression:Nn,updateConditionalExpression:function(e,n,t,r,a,i){return e.condition!==n||e.questionToken!==t||e.whenTrue!==r||e.colonToken!==a||e.whenFalse!==i?m(Nn(n,t,r,a,i),e):e},createTemplateExpression:Rn,updateTemplateExpression:function(e,n,t){return e.head!==n||e.templateSpans!==t?m(Rn(n,t),e):e},createTemplateHead:function(e,n,t){return kn(15,e,n,t)},createTemplateMiddle:function(e,n,t){return kn(16,e,n,t)},createTemplateTail:function(e,n,t){return kn(17,e,n,t)},createNoSubstitutionTemplateLiteral:function(e,n,t){return kn(14,e,n,t)},createTemplateLiteralLikeNode:On,createYieldExpression:wn,updateYieldExpression:function(e,n,t){return e.expression!==t||e.asteriskToken!==n?m(wn(n,t),e):e},createSpreadElement:Pn,updateSpreadElement:function(e,n){return e.expression!==n?m(Pn(n),e):e},createClassExpression:Mn,updateClassExpression:Fn,createOmittedExpression:function(){return en(219)},createExpressionWithTypeArguments:Gn,updateExpressionWithTypeArguments:function(e,n,t){return e.expression!==n||e.typeArguments!==t?m(Gn(n,t),e):e},createAsExpression:Bn,updateAsExpression:Un,createNonNullExpression:Vn,updateNonNullExpression:jn,createNonNullChain:Hn,updateNonNullChain:Kn,createMetaProperty:Wn,updateMetaProperty:function(e,n){return e.name!==n?m(Wn(e.keywordToken,n),e):e},createTemplateSpan:qn,updateTemplateSpan:function(e,n,t){return e.expression!==n||e.literal!==t?m(qn(n,t),e):e},createSemicolonClassElement:function(){var e=N(226);return e.transformFlags|=256,e},createBlock:zn,updateBlock:function(e,n){return e.statements!==n?m(zn(n,e.multiLine),e):e},createVariableStatement:Jn,updateVariableStatement:Xn,createEmptyStatement:Yn,createExpressionStatement:Qn,updateExpressionStatement:function(e,n){return e.expression!==n?m(Qn(n),e):e},createIfStatement:Zn,updateIfStatement:function(e,n,t,r){return e.expression!==n||e.thenStatement!==t||e.elseStatement!==r?m(Zn(n,t,r),e):e},createDoStatement:$n,updateDoStatement:function(e,n,t){return e.statement!==n||e.expression!==t?m($n(n,t),e):e},createWhileStatement:et,updateWhileStatement:function(e,n,t){return e.expression!==n||e.statement!==t?m(et(n,t),e):e},createForStatement:nt,updateForStatement:function(e,n,t,r,a){return e.initializer!==n||e.condition!==t||e.incrementor!==r||e.statement!==a?m(nt(n,t,r,a),e):e},createForInStatement:tt,updateForInStatement:function(e,n,t,r){return e.initializer!==n||e.expression!==t||e.statement!==r?m(tt(n,t,r),e):e},createForOfStatement:rt,updateForOfStatement:function(e,n,t,r,a){return e.awaitModifier!==n||e.initializer!==t||e.expression!==r||e.statement!==a?m(rt(n,t,r,a),e):e},createContinueStatement:at,updateContinueStatement:function(e,n){return e.label!==n?m(at(n),e):e},createBreakStatement:it,updateBreakStatement:function(e,n){return e.label!==n?m(it(n),e):e},createReturnStatement:ot,updateReturnStatement:function(e,n){return e.expression!==n?m(ot(n),e):e},createWithStatement:st,updateWithStatement:function(e,n,t){return e.expression!==n||e.statement!==t?m(st(n,t),e):e},createSwitchStatement:ct,updateSwitchStatement:function(e,n,t){return e.expression!==n||e.caseBlock!==t?m(ct(n,t),e):e},createLabeledStatement:lt,updateLabeledStatement:ut,createThrowStatement:dt,updateThrowStatement:function(e,n){return e.expression!==n?m(dt(n),e):e},createTryStatement:pt,updateTryStatement:function(e,n,t,r){return e.tryBlock!==n||e.catchClause!==t||e.finallyBlock!==r?m(pt(n,t,r),e):e},createDebuggerStatement:function(){return N(245)},createVariableDeclaration:ft,updateVariableDeclaration:function(e,n,t,r,a){return e.name!==n||e.type!==r||e.exclamationToken!==t||e.initializer!==a?m(ft(n,t,r,a),e):e},createVariableDeclarationList:mt,updateVariableDeclarationList:function(e,n){return e.declarations!==n?m(mt(n,e.flags),e):e},createFunctionDeclaration:_t,updateFunctionDeclaration:gt,createClassDeclaration:yt,updateClassDeclaration:ht,createInterfaceDeclaration:vt,updateInterfaceDeclaration:bt,createTypeAliasDeclaration:Et,updateTypeAliasDeclaration:Tt,createEnumDeclaration:St,updateEnumDeclaration:xt,createModuleDeclaration:Lt,updateModuleDeclaration:At,createModuleBlock:Dt,updateModuleBlock:function(e,n){return e.statements!==n?m(Dt(n),e):e},createCaseBlock:Ct,updateCaseBlock:function(e,n){return e.clauses!==n?m(Ct(n),e):e},createNamespaceExportDeclaration:It,updateNamespaceExportDeclaration:function(e,n){return e.name!==n?m(It(n),e):e},createImportEqualsDeclaration:Nt,updateImportEqualsDeclaration:Rt,createImportDeclaration:kt,updateImportDeclaration:Ot,createImportClause:wt,updateImportClause:function(e,n,t,r){return e.isTypeOnly!==n||e.name!==t||e.namedBindings!==r?m(wt(n,t,r),e):e},createNamespaceImport:Pt,updateNamespaceImport:function(e,n){return e.name!==n?m(Pt(n),e):e},createNamespaceExport:Mt,updateNamespaceExport:function(e,n){return e.name!==n?m(Mt(n),e):e},createNamedImports:Ft,updateNamedImports:function(e,n){return e.elements!==n?m(Ft(n),e):e},createImportSpecifier:Gt,updateImportSpecifier:function(e,n,t){return e.propertyName!==n||e.name!==t?m(Gt(n,t),e):e},createExportAssignment:Bt,updateExportAssignment:Ut,createExportDeclaration:Vt,updateExportDeclaration:jt,createNamedExports:Ht,updateNamedExports:function(e,n){return e.elements!==n?m(Ht(n),e):e},createExportSpecifier:Kt,updateExportSpecifier:function(e,n,t){return e.propertyName!==n||e.name!==t?m(Kt(n,t),e):e},createMissingDeclaration:function(){return R(268,void 0,void 0)},createExternalModuleReference:Wt,updateExternalModuleReference:function(e,n){return e.expression!==n?m(Wt(n),e):e},get createJSDocAllType(){return E(299)},get createJSDocUnknownType(){return E(300)},get createJSDocNonNullableType(){return T(302)},get updateJSDocNonNullableType(){return S(302)},get createJSDocNullableType(){return T(301)},get updateJSDocNullableType(){return S(301)},get createJSDocOptionalType(){return T(303)},get updateJSDocOptionalType(){return S(303)},get createJSDocVariadicType(){return T(305)},get updateJSDocVariadicType(){return S(305)},get createJSDocNamepathType(){return T(306)},get updateJSDocNamepathType(){return S(306)},createJSDocFunctionType:zt,updateJSDocFunctionType:function(e,n,t){return e.parameters!==n||e.type!==t?m(zt(n,t),e):e},createJSDocTypeLiteral:Jt,updateJSDocTypeLiteral:function(e,n,t){return e.jsDocPropertyTags!==n||e.isArrayType!==t?m(Jt(n,t),e):e},createJSDocTypeExpression:Xt,updateJSDocTypeExpression:function(e,n){return e.type!==n?m(Xt(n),e):e},createJSDocSignature:Yt,updateJSDocSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?m(Yt(n,t,r),e):e},createJSDocTemplateTag:$t,updateJSDocTemplateTag:function(e,n,t,r,a){void 0===n&&(n=Qt(e));return e.tagName!==n||e.constraint!==t||e.typeParameters!==r||e.comment!==a?m($t(n,t,r,a),e):e},createJSDocTypedefTag:er,updateJSDocTypedefTag:function(e,n,t,r,a){void 0===n&&(n=Qt(e));return e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==a?m(er(n,t,r,a),e):e},createJSDocParameterTag:nr,updateJSDocParameterTag:function(e,n,t,r,a,i,o){void 0===n&&(n=Qt(e));return e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==a||e.isNameFirst!==i||e.comment!==o?m(nr(n,t,r,a,i,o),e):e},createJSDocPropertyTag:tr,updateJSDocPropertyTag:function(e,n,t,r,a,i,o){void 0===n&&(n=Qt(e));return e.tagName!==n||e.name!==t||e.isBracketed!==r||e.typeExpression!==a||e.isNameFirst!==i||e.comment!==o?m(tr(n,t,r,a,i,o),e):e},createJSDocCallbackTag:rr,updateJSDocCallbackTag:function(e,n,t,r,a){void 0===n&&(n=Qt(e));return e.tagName!==n||e.typeExpression!==t||e.fullName!==r||e.comment!==a?m(rr(n,t,r,a),e):e},createJSDocAugmentsTag:ar,updateJSDocAugmentsTag:function(e,n,t,r){void 0===n&&(n=Qt(e));return e.tagName!==n||e.class!==t||e.comment!==r?m(ar(n,t,r),e):e},createJSDocImplementsTag:ir,updateJSDocImplementsTag:function(e,n,t,r){void 0===n&&(n=Qt(e));return e.tagName!==n||e.class!==t||e.comment!==r?m(ir(n,t,r),e):e},get createJSDocTypeTag(){return A(325)},get updateJSDocTypeTag(){return D(325)},get createJSDocReturnTag(){return A(323)},get updateJSDocReturnTag(){return D(323)},get createJSDocThisTag(){return A(324)},get updateJSDocThisTag(){return D(324)},get createJSDocEnumTag(){return A(321)},get updateJSDocEnumTag(){return D(321)},get createJSDocAuthorTag(){return x(313)},get updateJSDocAuthorTag(){return L(313)},get createJSDocClassTag(){return x(315)},get updateJSDocClassTag(){return L(315)},get createJSDocPublicTag(){return x(316)},get updateJSDocPublicTag(){return L(316)},get createJSDocPrivateTag(){return x(317)},get updateJSDocPrivateTag(){return L(317)},get createJSDocProtectedTag(){return x(318)},get updateJSDocProtectedTag(){return L(318)},get createJSDocReadonlyTag(){return x(319)},get updateJSDocReadonlyTag(){return L(319)},get createJSDocDeprecatedTag(){return x(314)},get updateJSDocDeprecatedTag(){return L(314)},createJSDocUnknownTag:cr,updateJSDocUnknownTag:function(e,n,t){return e.tagName!==n||e.comment!==t?m(cr(n,t),e):e},createJSDocComment:lr,updateJSDocComment:function(e,n,t){return e.comment!==n||e.tags!==t?m(lr(n,t),e):e},createJsxElement:ur,updateJsxElement:function(e,n,t,r){return e.openingElement!==n||e.children!==t||e.closingElement!==r?m(ur(n,t,r),e):e},createJsxSelfClosingElement:dr,updateJsxSelfClosingElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?m(dr(n,t,r),e):e},createJsxOpeningElement:pr,updateJsxOpeningElement:function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?m(pr(n,t,r),e):e},createJsxClosingElement:fr,updateJsxClosingElement:function(e,n){return e.tagName!==n?m(fr(n),e):e},createJsxFragment:mr,createJsxText:_r,updateJsxText:function(e,n,t){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==t?m(_r(n,t),e):e},createJsxOpeningFragment:function(){var e=N(275);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=N(276);return e.transformFlags|=2,e},updateJsxFragment:function(e,n,t,r){return e.openingFragment!==n||e.children!==t||e.closingFragment!==r?m(mr(n,t,r),e):e},createJsxAttribute:gr,updateJsxAttribute:function(e,n,t){return e.name!==n||e.initializer!==t?m(gr(n,t),e):e},createJsxAttributes:yr,updateJsxAttributes:function(e,n){return e.properties!==n?m(yr(n),e):e},createJsxSpreadAttribute:hr,updateJsxSpreadAttribute:function(e,n){return e.expression!==n?m(hr(n),e):e},createJsxExpression:vr,updateJsxExpression:function(e,n){return e.expression!==n?m(vr(e.dotDotDotToken,n),e):e},createCaseClause:br,updateCaseClause:function(e,n,t){return e.expression!==n||e.statements!==t?m(br(n,t),e):e},createDefaultClause:Er,updateDefaultClause:function(e,n){return e.statements!==n?m(Er(n),e):e},createHeritageClause:Tr,updateHeritageClause:function(e,n){return e.types!==n?m(Tr(e.token,n),e):e},createCatchClause:Sr,updateCatchClause:function(e,n,t){return e.variableDeclaration!==n||e.block!==t?m(Sr(n,t),e):e},createPropertyAssignment:xr,updatePropertyAssignment:function(e,n,t){return e.name!==n||e.initializer!==t?function(e,n){n.decorators&&(e.decorators=n.decorators);n.modifiers&&(e.modifiers=n.modifiers);n.questionToken&&(e.questionToken=n.questionToken);n.exclamationToken&&(e.exclamationToken=n.exclamationToken);return m(e,n)}(xr(n,t),e):e},createShorthandPropertyAssignment:Lr,updateShorthandPropertyAssignment:function(e,n,t){return e.name!==n||e.objectAssignmentInitializer!==t?function(e,n){n.decorators&&(e.decorators=n.decorators);n.modifiers&&(e.modifiers=n.modifiers);n.equalsToken&&(e.equalsToken=n.equalsToken);n.questionToken&&(e.questionToken=n.questionToken);n.exclamationToken&&(e.exclamationToken=n.exclamationToken);return m(e,n)}(Lr(n,t),e):e},createSpreadAssignment:Ar,updateSpreadAssignment:function(e,n){return e.expression!==n?m(Ar(n),e):e},createEnumMember:Dr,updateEnumMember:function(e,n,t){return e.name!==n||e.initializer!==t?m(Dr(n,t),e):e},createSourceFile:function(e,n,t){var r=f.createBaseSourceFileNode(294);return r.statements=I(e),r.endOfFileToken=n,r.flags|=t,r.fileName="",r.text="",r.languageVersion=0,r.languageVariant=0,r.scriptKind=0,r.isDeclarationFile=!1,r.hasNoDefaultLib=!1,r.transformFlags|=d(r.statements)|u(r.endOfFileToken),r},updateSourceFile:function(n,t,r,a,i,o,s){void 0===r&&(r=n.isDeclarationFile);void 0===a&&(a=n.referencedFiles);void 0===i&&(i=n.typeReferenceDirectives);void 0===o&&(o=n.hasNoDefaultLib);void 0===s&&(s=n.libReferenceDirectives);return n.statements!==t||n.isDeclarationFile!==r||n.referencedFiles!==a||n.typeReferenceDirectives!==i||n.hasNoDefaultLib!==o||n.libReferenceDirectives!==s?m(function(n,t,r,a,i,o,s){var c=f.createBaseSourceFileNode(294);for(var l in n)"emitNode"!==l&&!e.hasProperty(c,l)&&e.hasProperty(n,l)&&(c[l]=n[l]);return c.flags|=n.flags,c.statements=I(t),c.endOfFileToken=n.endOfFileToken,c.isDeclarationFile=r,c.referencedFiles=a,c.typeReferenceDirectives=i,c.hasNoDefaultLib=o,c.libReferenceDirectives=s,c.transformFlags=d(c.statements)|u(c.endOfFileToken),c}(n,t,r,a,i,o,s),n):n},createBundle:Cr,updateBundle:function(n,t,r){void 0===r&&(r=e.emptyArray);return n.sourceFiles!==t||n.prepends!==r?m(Cr(t,r),n):n},createUnparsedSource:function(n,t,r){var a=N(296);return a.prologues=n,a.syntheticReferences=t,a.texts=r,a.fileName="",a.text="",a.referencedFiles=e.emptyArray,a.libReferenceDirectives=e.emptyArray,a.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(a,n)},a},createUnparsedPrologue:function(e){return Ir(289,e)},createUnparsedPrepend:function(e,n){var t=Ir(290,e);return t.texts=n,t},createUnparsedTextLike:function(e,n){return Ir(n?292:291,e)},createUnparsedSyntheticReference:function(e){var n=N(293);return n.data=e.data,n.section=e,n},createInputFiles:function(){var e=N(297);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,n,t){void 0===n&&(n=!1);var r=N(224);return r.type=e,r.isSpread=n,r.tupleNameSource=t,r},createSyntaxList:function(e){var n=N(329);return n._children=e,n},createNotEmittedStatement:function(n){var t=N(330);return t.original=n,e.setTextRange(t,n),t},createPartiallyEmittedExpression:Nr,updatePartiallyEmittedExpression:Rr,createCommaListExpression:Or,updateCommaListExpression:function(e,n){return e.elements!==n?m(Or(n),e):e},createEndOfDeclarationMarker:function(e){var n=N(334);return n.emitNode={},n.original=e,n},createMergeDeclarationMarker:function(e){var n=N(333);return n.emitNode={},n.original=e,n},createSyntheticReferenceExpression:wr,updateSyntheticReferenceExpression:function(e,n,t){return e.expression!==n||e.thisArg!==t?m(wr(n,t),e):e},cloneNode:Pr,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,n,t){return un(vn(void 0,void 0,void 0,void 0,n?[n]:[],void 0,zn(e,!0)),void 0,t?[t]:[])},createImmediatelyInvokedArrowFunction:function(e,n,t){return un(En(void 0,void 0,n?[n]:[],void 0,void 0,zn(e,!0)),void 0,t?[t]:[])},createVoidZero:Mr,createExportDefault:function(e){return Bt(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Vt(void 0,void 0,!1,Ht([Kt(void 0,e)]))},createTypeCheck:function(e,n){return"undefined"===n?C.createStrictEquality(e,Mr()):C.createStrictEquality(xn(e),q(n))},createMethodCall:Fr,createGlobalMethodCall:Gr,createFunctionBindCall:function(e,n,t){return Fr(e,"bind",i([n],t))},createFunctionCallCall:function(e,n,t){return Fr(e,"call",i([n],t))},createFunctionApplyCall:function(e,n,t){return Fr(e,"apply",[n,t])},createArraySliceCall:function(e,n){return Fr(e,"slice",void 0===n?[]:[Yr(n)])},createArrayConcatCall:function(e,n){return Fr(e,"concat",n)},createObjectDefinePropertyCall:function(e,n,t){return Gr("Object","defineProperty",[e,Yr(n),t])},createPropertyDescriptor:function(n,t){var r=[];Br(r,"enumerable",Yr(n.enumerable)),Br(r,"configurable",Yr(n.configurable));var a=Br(r,"writable",Yr(n.writable));a=Br(r,"value",n.value)||a;var i=Br(r,"get",n.get);return i=Br(r,"set",n.set)||i,e.Debug.assert(!(a&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),tn(r,!t)},createCallBinding:function(n,t,r,a){void 0===a&&(a=!1);var i,o,s=e.skipOuterExpressions(n,15);e.isSuperProperty(s)?(i=ne(),o=s):e.isSuperKeyword(s)?(i=ne(),o=void 0!==r&&r<2?e.setTextRange(Y("_super"),s):s):4096&e.getEmitFlags(s)?(i=Mr(),o=_().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?Ur(s.expression,a)?(i=Q(t),o=rn(e.setTextRange(C.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s):e.isElementAccessExpression(s)?Ur(s.expression,a)?(i=Q(t),o=sn(e.setTextRange(C.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s):(i=Mr(),o=_().parenthesizeLeftSideOfAccess(n));return{target:o,thisArg:i}},inlineExpressions:function(n){return n.length>10?Or(n):e.reduceLeft(n,C.createComma)},getInternalName:function(e,n,t){return Vr(e,n,t,49152)},getLocalName:function(e,n,t){return Vr(e,n,t,16384)},getExportName:jr,getDeclarationName:function(e,n,t){return Vr(e,n,t)},getNamespaceMemberName:Hr,getExternalModuleOrNamespaceExportName:function(n,t,r,a){if(n&&e.hasSyntacticModifier(t,1))return Hr(n,Vr(t),r,a);return jr(t,r,a)},restoreOuterExpressions:function n(t,r,a){void 0===a&&(a=15);if(t&&e.isOuterExpression(t,a)&&(i=t,!(e.isParenthesizedExpression(i)&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i))))return function(e,n){switch(e.kind){case 204:return hn(e,n);case 203:return gn(e,e.type,n);case 221:return Un(e,n,e.type);case 222:return jn(e,n);case 331:return Rr(e,n)}}(t,n(t.expression,r));var i;return r},restoreEnclosingLabel:function n(t,r,a){if(!r)return t;var i=ut(r,r.label,e.isLabeledStatement(r.statement)?n(t,r.statement):t);a&&a(r);return i},createUseStrictPrologue:Kr,copyPrologue:function(e,n,t,r){var a=Wr(e,n,t);return qr(e,n,a,r)},copyStandardPrologue:Wr,copyCustomPrologue:qr,ensureUseStrict:function(n){if(!e.findUseStrictPrologue(n))return e.setTextRange(I(i([Kr()],n)),n);return n},liftToBlock:function(n){return e.Debug.assert(e.every(n,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(n)||zn(n)},mergeLexicalEnvironment:function(n,t){if(!e.some(t))return n;var r=zr(n,e.isPrologueDirective,0),a=zr(n,e.isHoistedFunction,r),o=zr(n,e.isHoistedVariableStatement,a),s=zr(t,e.isPrologueDirective,0),c=zr(t,e.isHoistedFunction,s),l=zr(t,e.isHoistedVariableStatement,c),u=zr(t,e.isCustomPrologue,l);e.Debug.assert(u===t.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(n)?n.slice():n;u>l&&d.splice.apply(d,i([o,0],t.slice(l,u)));l>c&&d.splice.apply(d,i([a,0],t.slice(c,l)));c>s&&d.splice.apply(d,i([r,0],t.slice(s,c)));if(s>0)if(0===r)d.splice.apply(d,i([0,0],t.slice(0,s)));else{for(var p=new e.Map,f=0;f=0;f--){var _=t[f];p.has(_.expression.text)||d.unshift(_)}}if(e.isNodeArray(n))return e.setTextRange(I(d,n.hasTrailingComma),n);return n},updateModifiers:function(n,t){var r;"number"==typeof t&&(t=ie(t));return e.isParameter(n)?ue(n,n.decorators,t,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):e.isPropertySignature(n)?fe(n,t,n.name,n.questionToken,n.type):e.isPropertyDeclaration(n)?_e(n,n.decorators,t,n.name,null!==(r=n.questionToken)&&void 0!==r?r:n.exclamationToken,n.type,n.initializer):e.isMethodSignature(n)?ye(n,t,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):e.isMethodDeclaration(n)?ve(n,n.decorators,t,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):e.isConstructorDeclaration(n)?Ee(n,n.decorators,t,n.parameters,n.body):e.isGetAccessorDeclaration(n)?Se(n,n.decorators,t,n.name,n.parameters,n.type,n.body):e.isSetAccessorDeclaration(n)?Le(n,n.decorators,t,n.name,n.parameters,n.body):e.isIndexSignatureDeclaration(n)?Ie(n,n.decorators,t,n.parameters,n.type):e.isFunctionExpression(n)?bn(n,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isArrowFunction(n)?Tn(n,t,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):e.isClassExpression(n)?Fn(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isVariableStatement(n)?Xn(n,t,n.declarationList):e.isFunctionDeclaration(n)?gt(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isClassDeclaration(n)?ht(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isInterfaceDeclaration(n)?bt(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isTypeAliasDeclaration(n)?Tt(n,n.decorators,t,n.name,n.typeParameters,n.type):e.isEnumDeclaration(n)?xt(n,n.decorators,t,n.name,n.members):e.isModuleDeclaration(n)?At(n,n.decorators,t,n.name,n.body):e.isImportEqualsDeclaration(n)?Rt(n,n.decorators,t,n.name,n.moduleReference):e.isImportDeclaration(n)?Ot(n,n.decorators,t,n.importClause,n.moduleSpecifier):e.isExportAssignment(n)?Ut(n,n.decorators,t,n.expression):e.isExportDeclaration(n)?jt(n,n.decorators,t,n.isTypeOnly,n.exportClause,n.moduleSpecifier):e.Debug.assertNever(n)}};return C;function I(n,t){if(void 0===n||n===e.emptyArray)n=[];else if(e.isNodeArray(n))return void 0===n.transformFlags&&p(n),n;var r=n.length,a=r>=1&&r<=4?n.slice():n;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!t,p(a),a}function N(e){return f.createBaseNode(e)}function R(e,n,t){var r=N(e);return r.decorators=Jr(n),r.modifiers=Jr(t),r.transformFlags|=d(r.decorators)|d(r.modifiers),r.symbol=void 0,r.localSymbol=void 0,r.locals=void 0,r.nextContainer=void 0,r}function k(n,t,r,a){var i=R(n,t,r);if(a=Xr(a),i.name=a,a)switch(i.kind){case 164:case 166:case 167:case 162:case 285:if(e.isIdentifier(a)){i.transformFlags|=l(a);break}default:i.transformFlags|=u(a)}return i}function O(e,n,t,r,a){var i=k(e,n,t,r);return i.typeParameters=Jr(a),i.transformFlags|=d(i.typeParameters),a&&(i.transformFlags|=1),i}function w(e,n,t,r,a,i,o){var s=O(e,n,t,r,a);return s.parameters=I(i),s.type=o,s.transformFlags|=d(s.parameters)|u(s.type),o&&(s.transformFlags|=1),s}function P(e,n){return n.typeArguments&&(e.typeArguments=n.typeArguments),m(e,n)}function M(e,n,t,r,a,i,o,s){var c=w(e,n,t,r,a,i,o);return c.body=s,c.transformFlags|=-8388609&u(c.body),s||(c.transformFlags|=1),c}function F(e,n){return n.exclamationToken&&(e.exclamationToken=n.exclamationToken),n.typeArguments&&(e.typeArguments=n.typeArguments),P(e,n)}function G(e,n,t,r,a,i){var o=O(e,n,t,r,a);return o.heritageClauses=Jr(i),o.transformFlags|=d(o.heritageClauses),o}function B(e,n,t,r,a,i,o){var s=G(e,n,t,r,a,i);return s.members=I(o),s.transformFlags|=d(s.members),s}function U(e,n,t,r,a){var i=k(e,n,t,r);return i.initializer=a,i.transformFlags|=u(i.initializer),i}function V(e,n,t,r,a,i){var o=U(e,n,t,r,i);return o.type=a,o.transformFlags|=u(a),a&&(o.transformFlags|=1),o}function j(e,n){var t=$(e);return t.text=n,t}function H(e,n){void 0===n&&(n=0);var t=j(8,"number"==typeof e?e+"":e);return t.numericLiteralFlags=n,384&n&&(t.transformFlags|=256),t}function K(n){var t=j(9,"string"==typeof n?n:e.pseudoBigIntToString(n)+"n");return t.transformFlags|=4,t}function W(e,n){var t=j(10,e);return t.singleQuote=n,t}function q(e,n,t){var r=W(e,n);return r.hasExtendedUnicodeEscape=t,t&&(r.transformFlags|=256),r}function z(e){return j(13,e)}function J(n,t){void 0===t&&n&&(t=e.stringToToken(n)),78===t&&(t=void 0);var r=f.createBaseIdentifierNode(78);return r.originalKeywordKind=t,r.escapedText=e.escapeLeadingUnderscores(n),r}function X(e,n){var r=J(e,void 0);return r.autoGenerateFlags=n,r.autoGenerateId=t,t++,r}function Y(e,n,t){var r=J(e,t);return n&&(r.typeArguments=I(n)),130===r.originalKeywordKind&&(r.transformFlags|=8388608),r}function Q(e,n){var t=1;n&&(t|=8);var r=X("",t);return e&&e(r),r}function Z(n,t){void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags");var r=X(n&&e.isIdentifier(n)?e.idText(n):"",4|t);return r.original=n,r}function $(e){return f.createBaseTokenNode(e)}function ee(n){e.Debug.assert(n>=0&&n<=155,"Invalid token"),e.Debug.assert(n<=14||n>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(n<=8||n>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(78!==n,"Invalid token. Use 'createIdentifier' to create identifiers");var t=$(n),r=0;switch(n){case 129:r=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:r=1;break;case 123:case 105:r=256;break;case 107:r=4096}return r&&(t.transformFlags|=r),t}function ne(){return ee(107)}function te(){return ee(109)}function re(){return ee(94)}function ae(e){return ee(e)}function ie(e){var n=[];return 1&e&&n.push(ae(92)),2&e&&n.push(ae(133)),512&e&&n.push(ae(87)),2048&e&&n.push(ae(84)),4&e&&n.push(ae(122)),8&e&&n.push(ae(120)),16&e&&n.push(ae(121)),128&e&&n.push(ae(125)),32&e&&n.push(ae(123)),64&e&&n.push(ae(141)),256&e&&n.push(ae(129)),n}function oe(e,n){var t=N(156);return t.left=e,t.right=Xr(n),t.transformFlags|=u(t.left)|l(t.right),t}function se(e){var n=N(157);return n.expression=_().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=33024|u(n.expression),n}function ce(e,n,t){var r=k(158,void 0,void 0,e);return r.constraint=n,r.default=t,r.transformFlags=1,r}function le(n,t,r,a,i,o,s){var c=V(159,n,t,a,o,s&&_().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=r,c.questionToken=i,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=u(c.dotDotDotToken)|u(c.questionToken),i&&(c.transformFlags|=1),92&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=2048),(s||r)&&(c.transformFlags|=256)),c}function ue(e,n,t,r,a,i,o,s){return e.decorators!==n||e.modifiers!==t||e.dotDotDotToken!==r||e.name!==a||e.questionToken!==i||e.type!==o||e.initializer!==s?m(le(n,t,r,a,i,o,s),e):e}function de(e){var n=N(160);return n.expression=_().parenthesizeLeftSideOfAccess(e),n.transformFlags|=2049|u(n.expression),n}function pe(e,n,t,r){var a=k(161,void 0,e,n);return a.type=r,a.questionToken=t,a.transformFlags=1,a}function fe(e,n,t,r,a){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==a?m(pe(n,t,r,a),e):e}function me(n,t,r,a,i,o){var s=V(162,n,t,r,i,o);return s.questionToken=a&&e.isQuestionToken(a)?a:void 0,s.exclamationToken=a&&e.isExclamationToken(a)?a:void 0,s.transformFlags|=u(s.questionToken)|u(s.exclamationToken)|4194304,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=2048),(a||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function _e(n,t,r,a,i,o,s){return n.decorators!==t||n.modifiers!==r||n.name!==a||n.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||n.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||n.type!==o||n.initializer!==s?m(me(t,r,a,i,o,s),n):n}function ge(e,n,t,r,a,i){var o=w(163,void 0,e,n,r,a,i);return o.questionToken=t,o.transformFlags=1,o}function ye(e,n,t,r,a,i,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==a||e.parameters!==i||e.type!==o?P(ge(n,t,r,a,i,o),e):e}function he(n,t,r,a,i,o,s,c,l){var d=M(164,n,t,a,o,s,c,l);return d.asteriskToken=r,d.questionToken=i,d.transformFlags|=u(d.asteriskToken)|u(d.questionToken)|256,i&&(d.transformFlags|=1),256&e.modifiersToFlags(d.modifiers)?d.transformFlags|=r?32:64:r&&(d.transformFlags|=512),d}function ve(e,n,t,r,a,i,o,s,c,l){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.questionToken!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?F(he(n,t,r,a,i,o,s,c,l),e):e}function be(e,n,t,r){var a=M(165,e,n,void 0,void 0,t,void 0,r);return a.transformFlags|=256,a}function Ee(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.parameters!==r||e.body!==a?F(be(n,t,r,a),e):e}function Te(e,n,t,r,a,i){return M(166,e,n,t,void 0,r,a,i)}function Se(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.type!==i||e.body!==o?F(Te(n,t,r,a,i,o),e):e}function xe(e,n,t,r,a){return M(167,e,n,t,void 0,r,void 0,a)}function Le(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.body!==i?F(xe(n,t,r,a,i),e):e}function Ae(e,n,t){var r=w(168,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function De(e,n,t){var r=w(169,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ce(e,n,t,r){var a=w(170,e,n,void 0,void 0,t,r);return a.transformFlags=1,a}function Ie(e,n,t,r,a){return e.parameters!==r||e.type!==a||e.decorators!==n||e.modifiers!==t?P(Ce(n,t,r,a),e):e}function Ne(e,n,t){var r=N(171);return r.assertsModifier=e,r.parameterName=Xr(n),r.type=t,r.transformFlags=1,r}function Re(e,n){var t=N(172);return t.typeName=Xr(e),t.typeArguments=n&&_().parenthesizeTypeArguments(I(n)),t.transformFlags=1,t}function ke(e,n,t){var r=w(173,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Oe(e,n,t){var r=w(174,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function we(e){var n=N(175);return n.exprName=e,n.transformFlags=1,n}function Pe(e){var n=N(176);return n.members=I(e),n.transformFlags=1,n}function Me(e){var n=N(177);return n.elementType=_().parenthesizeElementTypeOfArrayType(e),n.transformFlags=1,n}function Fe(e){var n=N(178);return n.elements=I(e),n.transformFlags=1,n}function Ge(e,n,t,r){var a=N(191);return a.dotDotDotToken=e,a.name=n,a.questionToken=t,a.type=r,a.transformFlags=1,a}function Be(e){var n=N(179);return n.type=_().parenthesizeElementTypeOfArrayType(e),n.transformFlags=1,n}function Ue(e){var n=N(180);return n.type=e,n.transformFlags=1,n}function Ve(e,n){var t=N(e);return t.types=_().parenthesizeConstituentTypesOfUnionOrIntersectionType(n),t.transformFlags=1,t}function je(e,n){return e.types!==n?m(Ve(e.kind,n),e):e}function He(e,n,t,r){var a=N(183);return a.checkType=_().parenthesizeMemberOfConditionalType(e),a.extendsType=_().parenthesizeMemberOfConditionalType(n),a.trueType=t,a.falseType=r,a.transformFlags=1,a}function Ke(e){var n=N(184);return n.typeParameter=e,n.transformFlags=1,n}function We(e,n,t,r){void 0===r&&(r=!1);var a=N(192);return a.argument=e,a.qualifier=n,a.typeArguments=t&&_().parenthesizeTypeArguments(t),a.isTypeOf=r,a.transformFlags=1,a}function qe(e){var n=N(185);return n.type=e,n.transformFlags=1,n}function ze(e,n){var t=N(187);return t.operator=e,t.type=_().parenthesizeMemberOfElementType(n),t.transformFlags=1,t}function Je(e,n){var t=N(188);return t.objectType=_().parenthesizeMemberOfElementType(e),t.indexType=n,t.transformFlags=1,t}function Xe(e,n,t,r){var a=N(189);return a.readonlyToken=e,a.typeParameter=n,a.questionToken=t,a.type=r,a.transformFlags=1,a}function Ye(e){var n=N(190);return n.literal=e,n.transformFlags=1,n}function Qe(e){var n=N(193);return n.elements=I(e),n.transformFlags|=131328|d(n.elements),8192&n.transformFlags&&(n.transformFlags|=16416),n}function Ze(e){var n=N(194);return n.elements=I(e),n.transformFlags|=131328|d(n.elements),n}function $e(n,t,r,a){var i=U(195,void 0,void 0,r,a);return i.propertyName=Xr(t),i.dotDotDotToken=n,i.transformFlags|=256|u(i.dotDotDotToken),i.propertyName&&(i.transformFlags|=e.isIdentifier(i.propertyName)?l(i.propertyName):u(i.propertyName)),n&&(i.transformFlags|=8192),i}function en(e){return N(e)}function nn(e,n){var t=en(196);return t.elements=_().parenthesizeExpressionsOfCommaDelimitedList(I(e)),t.multiLine=n,t.transformFlags|=d(t.elements),t}function tn(e,n){var t=en(197);return t.properties=I(e),t.multiLine=n,t.transformFlags|=d(t.properties),t}function rn(n,t){var r=en(198);return r.expression=_().parenthesizeLeftSideOfAccess(n),r.name=Xr(t),r.transformFlags=u(r.expression)|(e.isIdentifier(r.name)?l(r.name):u(r.name)),e.isSuperKeyword(n)&&(r.transformFlags|=96),r}function an(n,t,r){var a=en(198);return a.flags|=32,a.expression=_().parenthesizeLeftSideOfAccess(n),a.questionDotToken=t,a.name=Xr(r),a.transformFlags|=8|u(a.expression)|u(a.questionDotToken)|(e.isIdentifier(a.name)?l(a.name):u(a.name)),a}function on(n,t,r,a){return e.Debug.assert(!!(32&n.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==t||n.questionDotToken!==r||n.name!==a?m(an(t,r,a),n):n}function sn(n,t){var r=en(199);return r.expression=_().parenthesizeLeftSideOfAccess(n),r.argumentExpression=Yr(t),r.transformFlags|=u(r.expression)|u(r.argumentExpression),e.isSuperKeyword(n)&&(r.transformFlags|=96),r}function cn(e,n,t){var r=en(199);return r.flags|=32,r.expression=_().parenthesizeLeftSideOfAccess(e),r.questionDotToken=n,r.argumentExpression=Yr(t),r.transformFlags|=u(r.expression)|u(r.questionDotToken)|u(r.argumentExpression)|8,r}function ln(n,t,r,a){return e.Debug.assert(!!(32&n.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==t||n.questionDotToken!==r||n.argumentExpression!==a?m(cn(t,r,a),n):n}function un(n,t,r){var a=en(200);return a.expression=_().parenthesizeLeftSideOfAccess(n),a.typeArguments=Jr(t),a.arguments=_().parenthesizeExpressionsOfCommaDelimitedList(I(r)),a.transformFlags|=u(a.expression)|d(a.typeArguments)|d(a.arguments),a.typeArguments&&(a.transformFlags|=1),e.isImportKeyword(a.expression)?a.transformFlags|=2097152:e.isSuperProperty(a.expression)&&(a.transformFlags|=4096),a}function dn(n,t,r,a){var i=en(200);return i.flags|=32,i.expression=_().parenthesizeLeftSideOfAccess(n),i.questionDotToken=t,i.typeArguments=Jr(r),i.arguments=_().parenthesizeExpressionsOfCommaDelimitedList(I(a)),i.transformFlags|=u(i.expression)|u(i.questionDotToken)|d(i.typeArguments)|d(i.arguments)|8,i.typeArguments&&(i.transformFlags|=1),e.isSuperProperty(i.expression)&&(i.transformFlags|=4096),i}function pn(n,t,r,a,i){return e.Debug.assert(!!(32&n.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==t||n.questionDotToken!==r||n.typeArguments!==a||n.arguments!==i?m(dn(t,r,a,i),n):n}function fn(e,n,t){var r=en(201);return r.expression=_().parenthesizeExpressionOfNew(e),r.typeArguments=Jr(n),r.arguments=t?_().parenthesizeExpressionsOfCommaDelimitedList(t):void 0,r.transformFlags|=u(r.expression)|d(r.typeArguments)|d(r.arguments)|8,r.typeArguments&&(r.transformFlags|=1),r}function mn(n,t,r){var a=en(202);return a.tag=_().parenthesizeLeftSideOfAccess(n),a.typeArguments=Jr(t),a.template=r,a.transformFlags|=u(a.tag)|d(a.typeArguments)|u(a.template)|256,a.typeArguments&&(a.transformFlags|=1),e.hasInvalidEscape(a.template)&&(a.transformFlags|=32),a}function _n(e,n){var t=en(203);return t.expression=_().parenthesizeOperandOfPrefixUnary(n),t.type=e,t.transformFlags|=u(t.expression)|u(t.type)|1,t}function gn(e,n,t){return e.type!==n||e.expression!==t?m(_n(n,t),e):e}function yn(e){var n=en(204);return n.expression=e,n.transformFlags=u(n.expression),n}function hn(e,n){return e.expression!==n?m(yn(n),e):e}function vn(n,t,r,a,i,o,s){var c=M(205,void 0,n,r,a,i,o,s);return c.asteriskToken=t,c.transformFlags|=u(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=32:c.transformFlags|=64:c.asteriskToken&&(c.transformFlags|=512),c}function bn(e,n,t,r,a,i,o,s){return e.name!==r||e.modifiers!==n||e.asteriskToken!==t||e.typeParameters!==a||e.parameters!==i||e.type!==o||e.body!==s?F(vn(n,t,r,a,i,o,s),e):e}function En(n,t,r,a,i,o){var s=M(206,void 0,n,void 0,t,r,a,_().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=i?i:ee(38),s.transformFlags|=256|u(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=64),s}function Tn(e,n,t,r,a,i,o){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==a||e.equalsGreaterThanToken!==i||e.body!==o?F(En(n,t,r,a,i,o),e):e}function Sn(e){var n=en(207);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=u(n.expression),n}function xn(e){var n=en(208);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=u(n.expression),n}function Ln(e){var n=en(209);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=u(n.expression),n}function An(e){var n=en(210);return n.expression=_().parenthesizeOperandOfPrefixUnary(e),n.transformFlags|=524384|u(n.expression),n}function Dn(e,n){var t=en(211);return t.operator=e,t.operand=_().parenthesizeOperandOfPrefixUnary(n),t.transformFlags|=u(t.operand),t}function Cn(e,n){var t=en(212);return t.operator=n,t.operand=_().parenthesizeOperandOfPostfixUnary(e),t.transformFlags=u(t.operand),t}function In(n,t,r){var a,i=en(213),o="number"==typeof(a=t)?ee(a):a,s=o.kind;return i.left=_().parenthesizeLeftSideOfBinary(s,n),i.operatorToken=o,i.right=_().parenthesizeRightSideOfBinary(s,i.left,r),i.transformFlags|=u(i.left)|u(i.operatorToken)|u(i.right),60===s?i.transformFlags|=8:62===s?e.isObjectLiteralExpression(i.left)?i.transformFlags|=1312:e.isArrayLiteralExpression(i.left)&&(i.transformFlags|=1280):42===s||66===s?i.transformFlags|=128:e.isLogicalOrCoalescingAssignmentOperator(s)&&(i.transformFlags|=4),i}function Nn(e,n,t,r,a){var i=en(214);return i.condition=_().parenthesizeConditionOfConditionalExpression(e),i.questionToken=null!=n?n:ee(57),i.whenTrue=_().parenthesizeBranchOfConditionalExpression(t),i.colonToken=null!=r?r:ee(58),i.whenFalse=_().parenthesizeBranchOfConditionalExpression(a),i.transformFlags|=u(i.condition)|u(i.questionToken)|u(i.whenTrue)|u(i.colonToken)|u(i.whenFalse),i}function Rn(e,n){var t=en(215);return t.head=e,t.templateSpans=I(n),t.transformFlags|=u(t.head)|d(t.templateSpans)|256,t}function kn(t,r,a,i){void 0===i&&(i=0),e.Debug.assert(!(-2049&i),"Unsupported template flags.");var o=void 0;if(void 0!==a&&a!==r&&"object"==typeof(o=function(t,r){n||(n=e.createScanner(99,!1,0));switch(t){case 14:n.setText("`"+r+"`");break;case 15:n.setText("`"+r+"${");break;case 16:n.setText("}"+r+"${");break;case 17:n.setText("}"+r+"`")}var a,i=n.scan();23===i&&(i=n.reScanTemplateToken(!1));if(n.isUnterminated())return n.setText(void 0),c;switch(i){case 14:case 15:case 16:case 17:a=n.getTokenValue()}if(void 0===a||1!==n.scan())return n.setText(void 0),c;return n.setText(void 0),a}(t,a)))return e.Debug.fail("Invalid raw text");if(void 0===r){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");r=o}else void 0!==o&&e.Debug.assert(r===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return On(t,r,a,i)}function On(e,n,t,r){var a=$(e);return a.text=n,a.rawText=t,a.templateFlags=2048&r,a.transformFlags|=256,a.templateFlags&&(a.transformFlags|=32),a}function wn(n,t){e.Debug.assert(!n||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");var r=en(216);return r.expression=t&&_().parenthesizeExpressionForDisallowedComma(t),r.asteriskToken=n,r.transformFlags|=262432|(u(r.expression)|u(r.asteriskToken)),r}function Pn(e){var n=en(217);return n.expression=_().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=8448|u(n.expression),n}function Mn(e,n,t,r,a,i){var o=B(218,e,n,t,r,a,i);return o.transformFlags|=256,o}function Fn(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?m(Mn(n,t,r,a,i,o),e):e}function Gn(e,n){var t=N(220);return t.expression=_().parenthesizeLeftSideOfAccess(e),t.typeArguments=n&&_().parenthesizeTypeArguments(n),t.transformFlags|=u(t.expression)|d(t.typeArguments)|256,t}function Bn(e,n){var t=en(221);return t.expression=e,t.type=n,t.transformFlags|=u(t.expression)|u(t.type)|1,t}function Un(e,n,t){return e.expression!==n||e.type!==t?m(Bn(n,t),e):e}function Vn(e){var n=en(222);return n.expression=_().parenthesizeLeftSideOfAccess(e),n.transformFlags|=1|u(n.expression),n}function jn(n,t){return e.isNonNullChain(n)?Kn(n,t):n.expression!==t?m(Vn(t),n):n}function Hn(e){var n=en(222);return n.flags|=32,n.expression=_().parenthesizeLeftSideOfAccess(e),n.transformFlags|=1|u(n.expression),n}function Kn(n,t){return e.Debug.assert(!!(32&n.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),n.expression!==t?m(Hn(t),n):n}function Wn(n,t){var r=en(223);switch(r.keywordToken=n,r.name=t,r.transformFlags|=u(r.name),n){case 102:r.transformFlags|=256;break;case 99:r.transformFlags|=4;break;default:return e.Debug.assertNever(n)}return r}function qn(e,n){var t=N(225);return t.expression=e,t.literal=n,t.transformFlags|=u(t.expression)|u(t.literal)|256,t}function zn(e,n){var t=N(227);return t.statements=I(e),t.multiLine=n,t.transformFlags|=d(t.statements),t}function Jn(n,t){var r=R(229,void 0,n);return r.declarationList=e.isArray(t)?mt(t):t,r.transformFlags|=u(r.declarationList),2&e.modifiersToFlags(r.modifiers)&&(r.transformFlags=1),r}function Xn(e,n,t){return e.modifiers!==n||e.declarationList!==t?m(Jn(n,t),e):e}function Yn(){return N(228)}function Qn(e){var n=N(230);return n.expression=_().parenthesizeExpressionOfExpressionStatement(e),n.transformFlags|=u(n.expression),n}function Zn(e,n,t){var r=N(231);return r.expression=e,r.thenStatement=Qr(n),r.elseStatement=Qr(t),r.transformFlags|=u(r.expression)|u(r.thenStatement)|u(r.elseStatement),r}function $n(e,n){var t=N(232);return t.statement=Qr(e),t.expression=n,t.transformFlags|=u(t.statement)|u(t.expression),t}function et(e,n){var t=N(233);return t.expression=e,t.statement=Qr(n),t.transformFlags|=u(t.expression)|u(t.statement),t}function nt(e,n,t,r){var a=N(234);return a.initializer=e,a.condition=n,a.incrementor=t,a.statement=Qr(r),a.transformFlags|=u(a.initializer)|u(a.condition)|u(a.incrementor)|u(a.statement),a}function tt(e,n,t){var r=N(235);return r.initializer=e,r.expression=n,r.statement=Qr(t),r.transformFlags|=u(r.initializer)|u(r.expression)|u(r.statement),r}function rt(e,n,t,r){var a=N(236);return a.awaitModifier=e,a.initializer=n,a.expression=_().parenthesizeExpressionForDisallowedComma(t),a.statement=Qr(r),a.transformFlags|=u(a.awaitModifier)|u(a.initializer)|u(a.expression)|u(a.statement)|256,e&&(a.transformFlags|=32),a}function at(e){var n=N(237);return n.label=Xr(e),n.transformFlags|=1048576|u(n.label),n}function it(e){var n=N(238);return n.label=Xr(e),n.transformFlags|=1048576|u(n.label),n}function ot(e){var n=N(239);return n.expression=e,n.transformFlags|=1048608|u(n.expression),n}function st(e,n){var t=N(240);return t.expression=e,t.statement=Qr(n),t.transformFlags|=u(t.expression)|u(t.statement),t}function ct(e,n){var t=N(241);return t.expression=_().parenthesizeExpressionForDisallowedComma(e),t.caseBlock=n,t.transformFlags|=u(t.expression)|u(t.caseBlock),t}function lt(e,n){var t=N(242);return t.label=Xr(e),t.statement=Qr(n),t.transformFlags|=u(t.label)|u(t.statement),t}function ut(e,n,t){return e.label!==n||e.statement!==t?m(lt(n,t),e):e}function dt(e){var n=N(243);return n.expression=e,n.transformFlags|=u(n.expression),n}function pt(e,n,t){var r=N(244);return r.tryBlock=e,r.catchClause=n,r.finallyBlock=t,r.transformFlags|=u(r.tryBlock)|u(r.catchClause)|u(r.finallyBlock),r}function ft(e,n,t,r){var a=V(246,void 0,void 0,e,t,r&&_().parenthesizeExpressionForDisallowedComma(r));return a.exclamationToken=n,a.transformFlags|=u(a.exclamationToken),n&&(a.transformFlags|=1),a}function mt(e,n){void 0===n&&(n=0);var t=N(247);return t.flags|=3&n,t.declarations=I(e),t.transformFlags|=1048576|d(t.declarations),3&n&&(t.transformFlags|=65792),t}function _t(n,t,r,a,i,o,s,c){var l=M(248,n,t,a,i,o,s,c);return l.asteriskToken=r,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=1048576|u(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=32:l.transformFlags|=64:l.asteriskToken&&(l.transformFlags|=512)),l}function gt(e,n,t,r,a,i,o,s,c){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?F(_t(n,t,r,a,i,o,s,c),e):e}function yt(n,t,r,a,i,o){var s=B(249,n,t,r,a,i,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=256,2048&s.transformFlags&&(s.transformFlags|=1)),s}function ht(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?m(yt(n,t,r,a,i,o),e):e}function vt(e,n,t,r,a,i){var o=G(250,e,n,t,r,a);return o.members=I(i),o.transformFlags=1,o}function bt(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?m(vt(n,t,r,a,i,o),e):e}function Et(e,n,t,r,a){var i=O(251,e,n,t,r);return i.type=a,i.transformFlags=1,i}function Tt(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.type!==i?m(Et(n,t,r,a,i),e):e}function St(e,n,t,r){var a=k(252,e,n,t);return a.members=I(r),a.transformFlags|=1|d(a.members),a.transformFlags&=-8388609,a}function xt(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.members!==a?m(St(n,t,r,a),e):e}function Lt(n,t,r,a,i){void 0===i&&(i=0);var o=R(253,n,t);return o.flags|=1044&i,o.name=r,o.body=a,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=u(o.name)|u(o.body)|1,o.transformFlags&=-8388609,o}function At(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.body!==a?m(Lt(n,t,r,a,e.flags),e):e}function Dt(e){var n=N(254);return n.statements=I(e),n.transformFlags|=d(n.statements),n}function Ct(e){var n=N(255);return n.clauses=I(e),n.transformFlags|=d(n.clauses),n}function It(e){var n=k(256,void 0,void 0,e);return n.transformFlags=1,n}function Nt(n,t,r,a){var i=k(257,n,t,r);return i.moduleReference=a,i.transformFlags|=u(i.moduleReference),e.isExternalModuleReference(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-8388609,i}function Rt(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.moduleReference!==a?m(Nt(n,t,r,a),e):e}function kt(e,n,t,r){var a=R(258,e,n);return a.importClause=t,a.moduleSpecifier=r,a.transformFlags|=u(a.importClause)|u(a.moduleSpecifier),a.transformFlags&=-8388609,a}function Ot(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==a?m(kt(n,t,r,a),e):e}function wt(e,n,t){var r=N(259);return r.isTypeOnly=e,r.name=n,r.namedBindings=t,r.transformFlags|=u(r.name)|u(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-8388609,r}function Pt(e){var n=N(260);return n.name=e,n.transformFlags|=u(n.name),n.transformFlags&=-8388609,n}function Mt(e){var n=N(266);return n.name=e,n.transformFlags|=4|u(n.name),n.transformFlags&=-8388609,n}function Ft(e){var n=N(261);return n.elements=I(e),n.transformFlags|=d(n.elements),n.transformFlags&=-8388609,n}function Gt(e,n){var t=N(262);return t.propertyName=e,t.name=n,t.transformFlags|=u(t.propertyName)|u(t.name),t.transformFlags&=-8388609,t}function Bt(e,n,t,r){var a=R(263,e,n);return a.isExportEquals=t,a.expression=t?_().parenthesizeRightSideOfBinary(62,void 0,r):_().parenthesizeExpressionOfExportDefault(r),a.transformFlags|=u(a.expression),a.transformFlags&=-8388609,a}function Ut(e,n,t,r){return e.decorators!==n||e.modifiers!==t||e.expression!==r?m(Bt(n,t,e.isExportEquals,r),e):e}function Vt(e,n,t,r,a){var i=R(264,e,n);return i.isTypeOnly=t,i.exportClause=r,i.moduleSpecifier=a,i.transformFlags|=u(i.exportClause)|u(i.moduleSpecifier),i.transformFlags&=-8388609,i}function jt(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==a||e.moduleSpecifier!==i?m(Vt(n,t,r,a,i),e):e}function Ht(e){var n=N(265);return n.elements=I(e),n.transformFlags|=d(n.elements),n.transformFlags&=-8388609,n}function Kt(e,n){var t=N(267);return t.propertyName=Xr(e),t.name=Xr(n),t.transformFlags|=u(t.propertyName)|u(t.name),t.transformFlags&=-8388609,t}function Wt(e){var n=N(269);return n.expression=e,n.transformFlags|=u(n.expression),n.transformFlags&=-8388609,n}function qt(e,n){var t=N(e);return t.type=n,t}function zt(e,n){return w(304,void 0,void 0,void 0,void 0,e,n)}function Jt(e,n){void 0===n&&(n=!1);var t=N(308);return t.jsDocPropertyTags=Jr(e),t.isArrayType=n,t}function Xt(e){var n=N(298);return n.type=e,n}function Yt(e,n,t){var r=N(309);return r.typeParameters=Jr(e),r.parameters=I(n),r.type=t,r}function Qt(n){var t=s(n.kind);return n.tagName.escapedText===e.escapeLeadingUnderscores(t)?n.tagName:Y(t)}function Zt(e,n,t){var r=N(e);return r.tagName=n,r.comment=t,r}function $t(e,n,t,r){var a=Zt(326,null!=e?e:Y("template"),r);return a.constraint=n,a.typeParameters=I(t),a}function er(n,t,r,a){var i=Zt(327,null!=n?n:Y("typedef"),a);return i.typeExpression=t,i.fullName=r,i.name=e.getJSDocTypeAliasName(r),i}function nr(e,n,t,r,a,i){var o=Zt(322,null!=e?e:Y("param"),i);return o.typeExpression=r,o.name=n,o.isNameFirst=!!a,o.isBracketed=t,o}function tr(e,n,t,r,a,i){var o=Zt(328,null!=e?e:Y("prop"),i);return o.typeExpression=r,o.name=n,o.isNameFirst=!!a,o.isBracketed=t,o}function rr(n,t,r,a){var i=Zt(320,null!=n?n:Y("callback"),a);return i.typeExpression=t,i.fullName=r,i.name=e.getJSDocTypeAliasName(r),i}function ar(e,n,t){var r=Zt(311,null!=e?e:Y("augments"),t);return r.class=n,r}function ir(e,n,t){var r=Zt(312,null!=e?e:Y("implements"),t);return r.class=n,r}function or(e,n,t){return Zt(e,null!=n?n:Y(s(e)),t)}function sr(e,n,t,r){var a=Zt(e,null!=n?n:Y(s(e)),r);return a.typeExpression=t,a}function cr(e,n){return Zt(310,e,n)}function lr(e,n){var t=N(307);return t.comment=e,t.tags=Jr(n),t}function ur(e,n,t){var r=N(270);return r.openingElement=e,r.children=I(n),r.closingElement=t,r.transformFlags|=u(r.openingElement)|d(r.children)|u(r.closingElement)|2,r}function dr(e,n,t){var r=N(271);return r.tagName=e,r.typeArguments=Jr(n),r.attributes=t,r.transformFlags|=u(r.tagName)|d(r.typeArguments)|u(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function pr(e,n,t){var r=N(272);return r.tagName=e,r.typeArguments=Jr(n),r.attributes=t,r.transformFlags|=u(r.tagName)|d(r.typeArguments)|u(r.attributes)|2,n&&(r.transformFlags|=1),r}function fr(e){var n=N(273);return n.tagName=e,n.transformFlags|=2|u(n.tagName),n}function mr(e,n,t){var r=N(274);return r.openingFragment=e,r.children=I(n),r.closingFragment=t,r.transformFlags|=u(r.openingFragment)|d(r.children)|u(r.closingFragment)|2,r}function _r(e,n){var t=N(11);return t.text=e,t.containsOnlyTriviaWhiteSpaces=!!n,t.transformFlags|=2,t}function gr(e,n){var t=N(277);return t.name=e,t.initializer=n,t.transformFlags|=u(t.name)|u(t.initializer)|2,t}function yr(e){var n=N(278);return n.properties=I(e),n.transformFlags|=2|d(n.properties),n}function hr(e){var n=N(279);return n.expression=e,n.transformFlags|=2|u(n.expression),n}function vr(e,n){var t=N(280);return t.dotDotDotToken=e,t.expression=n,t.transformFlags|=u(t.dotDotDotToken)|u(t.expression)|2,t}function br(e,n){var t=N(281);return t.expression=_().parenthesizeExpressionForDisallowedComma(e),t.statements=I(n),t.transformFlags|=u(t.expression)|d(t.statements),t}function Er(e){var n=N(282);return n.statements=I(e),n.transformFlags=d(n.statements),n}function Tr(n,t){var r=N(283);switch(r.token=n,r.types=I(t),r.transformFlags|=d(r.types),n){case 93:r.transformFlags|=256;break;case 116:r.transformFlags|=1;break;default:return e.Debug.assertNever(n)}return r}function Sr(n,t){var r=N(284);return n=e.isString(n)?ft(n,void 0,void 0,void 0):n,r.variableDeclaration=n,r.block=t,r.transformFlags|=u(r.variableDeclaration)|u(r.block),n||(r.transformFlags|=16),r}function xr(e,n){var t=k(285,void 0,void 0,e);return t.initializer=_().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=u(t.name)|u(t.initializer),t}function Lr(e,n){var t=k(286,void 0,void 0,e);return t.objectAssignmentInitializer=n&&_().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=256|u(t.objectAssignmentInitializer),t}function Ar(e){var n=N(287);return n.expression=_().parenthesizeExpressionForDisallowedComma(e),n.transformFlags|=16416|u(n.expression),n}function Dr(e,n){var t=N(288);return t.name=Xr(e),t.initializer=n&&_().parenthesizeExpressionForDisallowedComma(n),t.transformFlags|=u(t.name)|u(t.initializer)|1,t}function Cr(n,t){void 0===t&&(t=e.emptyArray);var r=N(295);return r.prepends=t,r.sourceFiles=n,r}function Ir(e,n){var t=N(e);return t.data=n,t}function Nr(n,t){var r=N(331);return r.expression=n,r.original=t,r.transformFlags|=1|u(r.expression),e.setTextRange(r,t),r}function Rr(e,n){return e.expression!==n?m(Nr(n,e.original),e):e}function kr(n){if(e.nodeIsSynthesized(n)&&!e.isParseTreeNode(n)&&!n.original&&!n.emitNode&&!n.id){if(e.isCommaListExpression(n))return n.elements;if(e.isBinaryExpression(n)&&e.isCommaToken(n.operatorToken))return[n.left,n.right]}return n}function Or(n){var t=N(332);return t.elements=I(e.sameFlatMap(n,kr)),t.transformFlags|=d(t.elements),t}function wr(e,n){var t=N(335);return t.expression=e,t.thisArg=n,t.transformFlags|=u(t.expression)|u(t.thisArg),t}function Pr(n){if(void 0===n)return n;var t=e.isSourceFile(n)?f.createBaseSourceFileNode(294):e.isIdentifier(n)?f.createBaseIdentifierNode(78):e.isPrivateIdentifier(n)?f.createBasePrivateIdentifierNode(79):e.isNodeKind(n.kind)?f.createBaseNode(n.kind):f.createBaseTokenNode(n.kind);for(var r in t.flags|=-9&n.flags,t.transformFlags=n.transformFlags,h(t,n),n)!t.hasOwnProperty(r)&&n.hasOwnProperty(r)&&(t[r]=n[r]);return t}function Mr(){return Ln(H("0"))}function Fr(e,n,t){return un(rn(e,n),void 0,t)}function Gr(e,n,t){return Fr(Y(e),n,t)}function Br(e,n,t){return!!t&&(e.push(xr(n,t)),!0)}function Ur(n,t){var r=e.skipParentheses(n);switch(r.kind){case 78:return t;case 107:case 8:case 9:case 10:return!1;case 196:return 0!==r.elements.length;case 197:return r.properties.length>0;default:return!0}}function Vr(n,t,r,a){void 0===a&&(a=0);var i=e.getNameOfDeclaration(n);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.setParent(e.setTextRange(Pr(i),i),i.parent);return a|=e.getEmitFlags(i),r||(a|=48),t||(a|=1536),a&&e.setEmitFlags(o,a),o}return Z(n)}function jr(e,n,t){return Vr(e,n,t,8192)}function Hr(n,t,r,a){var i=rn(n,e.nodeIsSynthesized(t)?t:Pr(t));e.setTextRange(i,t);var o=0;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function Kr(){return e.startOnNewLine(Qn(q("use strict")))}function Wr(n,t,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a,i=!1,o=0,s=n.length;o=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=f;var m=e.createBaseNodeFactory();function _(e){return e.flags|=8,e}var g,y={createBaseSourceFileNode:function(e){return _(m.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return _(m.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return _(m.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return _(m.createBaseTokenNode(e))},createBaseNode:function(e){return _(m.createBaseNode(e))}};function h(n,t){if(n.original=t,t){var r=t.emitNode;r&&(n.emitNode=function(n,t){var r=n.flags,a=n.leadingComments,i=n.trailingComments,o=n.commentRange,s=n.sourceMapRange,c=n.tokenSourceMapRanges,l=n.constantValue,u=n.helpers,d=n.startsOnNewLine;t||(t={});a&&(t.leadingComments=e.addRange(a.slice(),t.leadingComments));i&&(t.trailingComments=e.addRange(i.slice(),t.trailingComments));r&&(t.flags=r);o&&(t.commentRange=o);s&&(t.sourceMapRange=s);c&&(t.tokenSourceMapRanges=function(e,n){n||(n=[]);for(var t in e)n[t]=e[t];return n}(c,t.tokenSourceMapRanges));void 0!==l&&(t.constantValue=l);if(u)for(var p=0,f=u;p0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return n(e).flags|=134217728,e}}(d||(d={})),function(e){function n(e){for(var n=[],t=1;t=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,a);return n.requestEmitHelper(e.assignHelper),t.createCallExpression(r("__assign"),void 0,a)},createAwaitHelper:function(a){return n.requestEmitHelper(e.awaitHelper),t.createCallExpression(r("__await"),void 0,[a])},createAsyncGeneratorHelper:function(a,i){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncGeneratorHelper),(a.emitNode||(a.emitNode={})).flags|=786432,t.createCallExpression(r("__asyncGenerator"),void 0,[i?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),a])},createAsyncDelegatorHelper:function(a){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),t.createCallExpression(r("__asyncDelegator"),void 0,[a])},createAsyncValuesHelper:function(a){return n.requestEmitHelper(e.asyncValues),t.createCallExpression(r("__asyncValues"),void 0,[a])},createRestHelper:function(a,i,o,s){n.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 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 t||(t=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:n(s(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:n(s(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(d||(d={})),function(e){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}}(d||(d={})),function(e){function n(n,t,r,a){if(e.isComputedPropertyName(r))return e.setTextRange(n.createElementAccessExpression(t,r.expression),a);var i=e.setTextRange(e.isIdentifierOrPrivateIdentifier(r)?n.createPropertyAccessExpression(t,r):n.createElementAccessExpression(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function t(n,t){var r=e.parseNodeFactory.createIdentifier(n||"React");return e.setParent(r,e.getParseTreeNode(t)),r}function r(n,a,i){if(e.isQualifiedName(a)){var o=r(n,a.left,i),s=n.createIdentifier(e.idText(a.right));return s.escapedText=a.right.escapedText,n.createPropertyAccessExpression(o,s)}return t(e.idText(a),i)}function a(e,n,a,i){return n?r(e,n,i):e.createPropertyAccessExpression(t(a,i),"createElement")}function o(n,t){return e.isIdentifier(t)?n.createStringLiteralFromNode(t):e.isComputedPropertyName(t)?e.setParent(e.setTextRange(n.cloneNode(t.expression),t.expression),t.expression.parent):e.setParent(e.setTextRange(n.cloneNode(t),t),t.parent)}function s(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function c(e,n){switch(void 0===n&&(n=15),e.kind){case 204:return 0!=(1&n);case 203:case 221:return 0!=(2&n);case 222:return 0!=(4&n);case 331:return 0!=(8&n)}return!1}function l(e,n){for(void 0===n&&(n=15);c(e,n);)e=e.expression;return e}function u(n){return e.setStartsOnNewLine(n,!0)}function d(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function p(n,t,r,a,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var o=d(t);if(o)return o;var s=e.getEmitModuleKind(r),c=(a||r.esModuleInterop&&i)&&s!==e.ModuleKind.System&&s0)if(o||d.push(n.createNull()),s.length>1)for(var p=0,f=s;p0)if(c.length>1)for(var f=0,m=c;f=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(r);if(u){for(var d=[],f=0,m=u;fn.checkJsDirective.pos)&&(n.checkJsDirective={enabled:"ts-check"===a,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"}(n||(n={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(t||(t={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(n){return new(s||(s=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(i||(i=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(a||(a=e.objectAllocator.getTokenConstructor()))(n,-1,-1)},createBaseNode:function(n){return new(r||(r=e.objectAllocator.getNodeConstructor()))(n,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.forEachChild=f,e.forEachChildRecursively=function(n,t,r){for(var a=[n];a.length;){var i=a.pop(),o=c(i,s(i));if(o)return o}return;function s(e){var n=[];return f(e,t,t),n;function t(e){n.unshift(e)}}function c(n,i){for(var o=0,s=i;o=0;l--){var u=c[l];if(d=t(u,n)){if("skip"===d)continue;return d}a.push(u)}}else{var d;if(a.push(c),d=t(c,n)){if("skip"===d)continue;return d}}}}},e.createSourceFile=function(n,t,r,a,i){var o;return void 0===a&&(a=!1),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(n),o=100===r?c.parseSourceFile(n,t,r,void 0,a,6):c.parseSourceFile(n,t,r,void 0,a,i),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),o},e.parseIsolatedEntityName=function(e,n){return c.parseIsolatedEntityName(e,n)},e.parseJsonText=function(e,n){return c.parseJsonText(e,n)},e.isExternalModule=m,e.updateSourceFile=function(e,n,t,r){void 0===r&&(r=!1);var a=l.updateSourceFile(e,n,t,r);return a.flags|=3145728&e.flags,a},e.parseIsolatedJSDocComment=function(e,n,t){var r=c.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&c.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,n,t){return c.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(n){var t,r,a,i,o,s=e.createScanner(99,!0);function c(e){return D++,e}var u,d,h,v,b,E,T,S,L,A,D,C,I,N,R,k,O,w={createBaseSourceFileNode:function(e){return c(new o(e,0,0))},createBaseIdentifierNode:function(e){return c(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return c(new i(e,0,0))},createBaseTokenNode:function(e){return c(new r(e,0,0))},createBaseNode:function(e){return c(new t(e,0,0))}},P=e.createNodeFactory(11,w),M=!0,F=!1;function G(n,t,r,a,i){void 0===r&&(r=2),void 0===i&&(i=!1),B(n,t,r,a,6),d=O,be();var o,s,c=_e();if(1===ye())o=Ue([],c,c),s=Fe();else{var l=void 0;switch(ye()){case 22:l=yr();break;case 109:case 94:case 103:l=Fe();break;case 40:l=Ce((function(){return 8===be()&&58!==be()}))?qt():vr();break;case 8:case 10:if(Ce((function(){return 58!==be()}))){l=Nn();break}default:l=vr()}var u=P.createExpressionStatement(l);Ve(u,c),o=Ue([u],c),s=Me(1,e.Diagnostics.Unexpected_token)}var p=X(n,2,6,!1,o,s,d);i&&J(p),p.nodeCount=D,p.identifierCount=N,p.identifiers=C,p.parseDiagnostics=e.attachFileToDiagnostics(T,p),S&&(p.jsDocDiagnostics=e.attachFileToDiagnostics(S,p));var f=p;return U(),f}function B(n,c,l,p,f){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),i=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),u=e.normalizePath(n),h=c,v=l,L=p,b=f,E=e.getLanguageVariant(f),T=[],R=0,C=new e.Map,I=new e.Map,N=0,D=0,d=0,M=!0,b){case 1:case 2:O=131072;break;case 6:O=33685504;break;default:O=0}F=!1,s.setText(h),s.setOnError(me),s.setScriptTarget(v),s.setLanguageVariant(E)}function U(){s.clearCommentDirectives(),s.setText(""),s.setOnError(void 0),h=void 0,v=void 0,L=void 0,b=void 0,E=void 0,d=0,T=void 0,S=void 0,R=0,C=void 0,k=void 0,M=!0}function V(n,t,r){var a=_(u);a&&(O|=8388608),d=O,be();var i=_n(0,Fr);e.Debug.assert(1===ye());var o=z(Fe()),c=X(u,n,r,a,i,o,d);return g(c,h),y(c,(function(n,t,r){T.push(e.createDetachedDiagnostic(u,n,t,r))})),c.commentDirectives=s.getCommentDirectives(),c.nodeCount=D,c.identifierCount=N,c.identifiers=C,c.parseDiagnostics=e.attachFileToDiagnostics(T,c),S&&(c.jsDocDiagnostics=e.attachFileToDiagnostics(S,c)),t&&J(c),c}function j(e,n){return n?z(e):e}n.parseSourceFile=function(n,t,r,a,i,o){if(void 0===i&&(i=!1),6===(o=e.ensureScriptKind(n,o))){var s=G(n,t,r,a,i);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}B(n,t,r,a,o);var c=V(r,i,o);return U(),c},n.parseIsolatedEntityName=function(e,n){B("",e,n,void 0,1),be();var t=xn(!0),r=1===ye()&&!T.length;return U(),r?t:void 0},n.parseJsonText=G;var H,K,W,q=!1;function z(n){e.Debug.assert(!n.jsDoc);var t=e.mapDefined(e.getJSDocCommentRanges(n,h),(function(e){return W.parseJSDocComment(n,e.pos,e.end-e.pos)}));return t.length&&(n.jsDoc=t),q&&(q=!1,n.flags|=134217728),n}function J(n){e.setParentRecursive(n,!0)}function X(n,t,r,a,i,o,c){var u=P.createSourceFile(i,o,c);return e.setTextRangePosWidth(u,0,h.length),function(n){n.externalModuleIndicator=e.forEach(n.statements,Ia)||function(e){return 2097152&e.flags?Na(e):void 0}(n)}(u),!a&&m(u)&&8388608&u.transformFlags&&(u=function(n){var t=L,r=l.createSyntaxCursor(n);L={currentNode:function(e){var n=r.currentNode(e);M&&n&&f(n)&&(n.intersectsChange=!0);return n}};var a=[],i=T;T=[];for(var o=0,c=m(n.statements,0),u=function(){var t=n.statements[o],r=n.statements[c];e.addRange(a,n.statements,o,c),o=_(n.statements,c);var l=e.findIndex(i,(function(e){return e.start>=t.pos})),u=l>=0?e.findIndex(i,(function(e){return e.start>=r.pos}),l):-1;l>=0&&e.addRange(T,i,l,u>=0?u:void 0),De((function(){var e=O;for(O|=32768,s.setTextPos(r.pos),be();1!==ye();){var t=s.getStartPos(),i=gn(0,Fr);if(a.push(i),t===s.getStartPos()&&be(),o>=0){var c=n.statements[o];if(i.end===c.pos)break;i.end>c.pos&&(o=_(n.statements,o+1))}}O=e}),2),c=o>=0?m(n.statements,o):-1};-1!==c;)u();if(o>=0){var d=n.statements[o];e.addRange(a,n.statements,o);var p=e.findIndex(i,(function(e){return e.start>=d.pos}));p>=0&&e.addRange(T,i,p)}return L=t,P.updateSourceFile(n,e.setTextRange(P.createNodeArray(a),n.statements));function f(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function m(e,n){for(var t=n;t115}function Re(){return 78===ye()||(124!==ye()||!oe())&&((130!==ye()||!le())&&ye()>115)}function ke(n,t,r){return void 0===r&&(r=!0),ye()===n?(r&&be(),!0):(t?ue(t):ue(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function Oe(e){return ye()===e&&(be(),!0)}function we(e){if(ye()===e)return Fe()}function Pe(e){if(ye()===e)return n=_e(),t=ye(),Ee(),Ve(P.createToken(t),n);var n,t}function Me(n,t,r){return we(n)||je(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function Fe(){var e=_e(),n=ye();return be(),Ve(P.createToken(n),e)}function Ge(){return 26===ye()||(19===ye()||1===ye()||s.hasPrecedingLineBreak())}function Be(){return Ge()?(26===ye()&&be(),!0):ke(26)}function Ue(n,t,r,a){var i=P.createNodeArray(n,a);return e.setTextRangePosEnd(i,t,null!=r?r:s.getStartPos()),i}function Ve(n,t,r){return e.setTextRangePosEnd(n,t,null!=r?r:s.getStartPos()),O&&(n.flags|=O),F&&(F=!1,n.flags|=65536),n}function je(n,t,r,a){t?de(s.getStartPos(),0,r,a):r&&ue(r,a);var i=_e();return Ve(78===n?P.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(n)?P.createTemplateLiteralLikeNode(n,"","",void 0):8===n?P.createNumericLiteral("",void 0):10===n?P.createStringLiteral("",void 0):268===n?P.createMissingDeclaration():P.createToken(n),i)}function He(e){var n=C.get(e);return void 0===n&&C.set(e,n=e),n}function Ke(n,t,r){if(N++,n){var a=_e(),i=ye(),o=He(s.getTokenValue());return he(),Ve(P.createIdentifier(o,void 0,i),a)}if(79===ye())return ue(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ke(!0);var c=1===ye(),l=s.isReservedWord(),u=s.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return je(78,c,t||d,u)}function We(e){return Ke(Ne(),void 0,e)}function qe(e,n){return Ke(Re(),e,n)}function ze(n){return Ke(e.tokenIsIdentifierOrKeyword(ye()),n)}function Je(){return e.tokenIsIdentifierOrKeyword(ye())||10===ye()||8===ye()}function Xe(e){if(10===ye()||8===ye()){var n=Nn();return n.text=He(n.text),n}return e&&22===ye()?function(){var e=_e();ke(22);var n=re(Ot);return ke(23),Ve(P.createComputedPropertyName(n),e)}():79===ye()?Qe():ze()}function Ye(){return Xe(!0)}function Qe(){var e,n,t=_e(),r=P.createPrivateIdentifier((e=s.getTokenText(),void 0===(n=I.get(e))&&I.set(e,n=e),n));return be(),Ve(r,t)}function Ze(e){return ye()===e&&Ie(en)}function $e(){return be(),!s.hasPrecedingLineBreak()&&rn()}function en(){switch(ye()){case 84:return 91===be();case 92:return be(),87===ye()?Ce(an):148===ye()?Ce(tn):nn();case 87:return an();case 123:case 134:case 145:return be(),rn();default:return $e()}}function nn(){return 41!==ye()&&126!==ye()&&18!==ye()&&rn()}function tn(){return be(),nn()}function rn(){return 22===ye()||18===ye()||41===ye()||25===ye()||Je()}function an(){return be(),83===ye()||97===ye()||117===ye()||125===ye()&&Ce(Nr)||129===ye()&&Ce(Rr)}function on(n,t){if(yn(n))return!0;switch(n){case 0:case 1:case 3:return!(26===ye()&&t)&&Pr();case 2:return 81===ye()||87===ye();case 4:return Ce(Zn);case 5:return Ce(aa)||26===ye()&&!t;case 6:return 22===ye()||Je();case 12:switch(ye()){case 22:case 41:case 25:case 24:return!0;default:return Je()}case 18:return Je();case 9:return 22===ye()||25===ye()||Je();case 7:return 18===ye()?Ce(sn):t?Re()&&!dn():Rt()&&!dn();case 8:return Wr();case 10:return 27===ye()||25===ye()||Wr();case 19:return Re();case 15:switch(ye()){case 27:case 24:return!0}case 11:return 25===ye()||kt();case 16:return Un(!1);case 17:return Un(!0);case 20:case 21:return 27===ye()||yt();case 22:return ha();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 sn(){if(e.Debug.assert(18===ye()),19===be()){var n=be();return 27===n||18===n||93===n||116===n}return!0}function cn(){return be(),Re()}function ln(){return be(),e.tokenIsIdentifierOrKeyword(ye())}function un(){return be(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ye())}function dn(){return(116===ye()||93===ye())&&Ce(pn)}function pn(){return be(),kt()}function fn(){return be(),yt()}function mn(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(Ge())return!0;if(Ht(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()&&Ce(Sa);default:return!1}}function _n(e,n){var t=R;R|=1<=0)}function En(n){return 6===n?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tn(){var e=Ue([],_e());return e.isMissingList=!0,e}function Sn(e,n,t,r){if(ke(t)){var a=bn(e,n);return ke(r),a}return Tn()}function xn(e,n){for(var t=_e(),r=e?ze(n):qe(n),a=_e();Oe(24);){if(29===ye()){r.jsdocDotPos=a;break}a=_e(),r=Ve(P.createQualifiedName(r,An(e,!1)),t)}return r}function Ln(e,n){return Ve(P.createQualifiedName(e,n),e.pos)}function An(n,t){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ye())&&Ce(Ir))return je(78,!0,e.Diagnostics.Identifier_expected);if(79===ye()){var r=Qe();return t?r:je(78,!0,e.Diagnostics.Identifier_expected)}return n?ze():qe()}function Dn(n){var t=_e();return Ve(P.createTemplateExpression(function(n){n&&Se();var t=Rn(ye());return e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t}(n),function(e){var n,t=_e(),r=[];do{n=In(e),r.push(n)}while(16===n.literal.kind);return Ue(r,t)}(n)),t)}function Cn(n){return 19===ye()?(function(e){A=s.reScanTemplateToken(e)}(n),t=Rn(ye()),e.Debug.assert(16===t.kind||17===t.kind,"Template fragment has wrong token kind"),t):Me(17,e.Diagnostics._0_expected,e.tokenToString(19));var t}function In(e){var n=_e();return Ve(P.createTemplateSpan(re(Ot),Cn(e)),n)}function Nn(){return Rn(ye())}function Rn(n){var t=_e(),r=e.isTemplateLiteralKind(n)?P.createTemplateLiteralLikeNode(n,s.getTokenValue(),function(e){var n=14===e||17===e,t=s.getTokenText();return t.substring(1,t.length-(s.isUnterminated()?0:n?1:2))}(n),2048&s.getTokenFlags()):8===n?P.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===n?P.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(n)?P.createLiteralLikeNode(n,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(r.isUnterminated=!0),be(),Ve(r,t)}function kn(){return xn(!0,e.Diagnostics.Type_expected)}function On(){if(!s.hasPrecedingLineBreak()&&29===xe())return Sn(20,Ct,29,31)}function wn(){var e=_e();return Ve(P.createTypeReferenceNode(kn(),On()),e)}function Pn(){var e=_e();return be(),Ve(P.createThisTypeNode(),e)}function Mn(){var e,n=_e();return 107!==ye()&&102!==ye()||(e=ze(),ke(58)),Ve(P.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Fn(),void 0),n)}function Fn(){s.setInJSDocType(!0);var e=_e();if(Oe(138)){var n=P.createJSDocNamepathType(void 0);e:for(;;)switch(ye()){case 19:case 1:case 27:case 5:break e;default:Ee()}return s.setInJSDocType(!1),Ve(n,e)}var t=Oe(25),r=At();return s.setInJSDocType(!1),t&&(r=Ve(P.createJSDocVariadicType(r),e)),62===ye()?(be(),Ve(P.createJSDocOptionalType(r),e)):r}function Gn(){var e,n,t=_e(),r=qe();Oe(93)&&(yt()||!kt()?e=Ct():n=zt());var a=Oe(62)?Ct():void 0,i=P.createTypeParameterDeclaration(r,e,a);return i.expression=n,Ve(i,t)}function Bn(){if(29===ye())return Sn(19,Gn,29,31)}function Un(n){return 25===ye()||Wr()||e.isModifierKind(ye())||59===ye()||yt(!n)}function Vn(){return Hn(!0)}function jn(){return Hn(!1)}function Hn(n){var t=_e(),r=ge();if(107===ye())return j(Ve(P.createParameterDeclaration(void 0,void 0,void 0,Ke(!0),void 0,Nt(),void 0),t),r);var a=n?ae(sa):sa(),i=M;M=!1;var o=la(),s=j(Ve(P.createParameterDeclaration(a,o,we(25),function(n){var t=qr(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(t)&&!e.some(n)&&e.isModifierKind(ye())&&be(),t}(o),we(57),Nt(),wt()),t),r);return M=i,s}function Kn(n,t){if(function(n,t){if(38===n)return ke(n),!0;if(Oe(58))return!0;if(t&&38===ye())return ue(e.Diagnostics._0_expected,e.tokenToString(58)),be(),!0;return!1}(n,t))return At()}function Wn(e){var n=oe(),t=le();Z(!!(1&e)),ee(!!(2&e));var r=32&e?bn(17,Mn):bn(16,t?Vn:jn);return Z(n),ee(t),r}function qn(e){if(!ke(20))return Tn();var n=Wn(e);return ke(21),n}function zn(){Oe(27)||Be()}function Jn(e){var n=_e(),t=ge();169===e&&ke(102);var r=Bn(),a=qn(4),i=Kn(58,!0);return zn(),j(Ve(168===e?P.createCallSignature(r,a,i):P.createConstructSignature(r,a,i),n),t)}function Xn(){return 22===ye()&&Ce(Yn)}function Yn(){if(be(),25===ye()||23===ye())return!0;if(e.isModifierKind(ye())){if(be(),Re())return!0}else{if(!Re())return!1;be()}return 58===ye()||27===ye()||57===ye()&&(be(),58===ye()||27===ye()||23===ye())}function Qn(e,n,t,r){var a=Sn(16,jn,22,23),i=Nt();return zn(),j(Ve(P.createIndexSignature(t,r,a,i),e),n)}function Zn(){if(20===ye()||29===ye())return!0;for(var n=!1;e.isModifierKind(ye());)n=!0,be();return 22===ye()||(Je()&&(n=!0,be()),!!n&&(20===ye()||29===ye()||57===ye()||58===ye()||27===ye()||Ge()))}function $n(){if(20===ye()||29===ye())return Jn(168);if(102===ye()&&Ce(et))return Jn(169);var e=_e(),n=ge(),t=la();return Xn()?Qn(e,n,void 0,t):function(e,n,t){var r,a=Ye(),i=we(57);if(20===ye()||29===ye()){var o=Bn(),s=qn(4),c=Kn(58,!0);r=P.createMethodSignature(t,a,i,o,s,c)}else{c=Nt();r=P.createPropertySignature(t,a,i,c),62===ye()&&(r.initializer=wt())}return zn(),j(Ve(r,e),n)}(e,n,t)}function et(){return be(),20===ye()||29===ye()}function nt(){return 24===be()}function tt(){switch(be()){case 20:case 29:case 24:return!0}return!1}function rt(){var e;return ke(18)?(e=_n(4,$n),ke(19)):e=Tn(),e}function at(){return be(),39===ye()||40===ye()?141===be():(141===ye()&&be(),22===ye()&&cn()&&100===be())}function it(){var e,n=_e();ke(18),141!==ye()&&39!==ye()&&40!==ye()||141!==(e=Fe()).kind&&ke(141),ke(22);var t,r=function(){var e=_e(),n=ze();ke(100);var t=Ct();return Ve(P.createTypeParameterDeclaration(n,t,void 0),e)}();ke(23),57!==ye()&&39!==ye()&&40!==ye()||57!==(t=Fe()).kind&&ke(57);var a=Nt();return Be(),ke(19),Ve(P.createMappedTypeNode(e,r,t,a),n)}function ot(){var n=_e();if(Oe(25))return Ve(P.createRestTypeNode(Ct()),n);var t=Ct();if(e.isJSDocNullableType(t)&&t.pos===t.type.pos){var r=P.createOptionalTypeNode(t.type);return e.setTextRange(r,t),r.flags=t.flags,r}return t}function st(){return 58===be()||57===ye()&&58===be()}function ct(){return 25===ye()?e.tokenIsIdentifierOrKeyword(be())&&st():e.tokenIsIdentifierOrKeyword(ye())&&st()}function lt(){if(Ce(ct)){var e=_e(),n=ge(),t=we(25),r=ze(),a=we(57);ke(58);var i=ot();return j(Ve(P.createNamedTupleMember(t,r,a,i),e),n)}return ot()}function ut(){var e=_e(),n=ge(),t=Oe(102),r=Bn(),a=qn(4),i=Kn(38,!1);return j(Ve(t?P.createConstructorTypeNode(r,a,i):P.createFunctionTypeNode(r,a,i),e),n)}function dt(){var e=Fe();return 24===ye()?void 0:e}function pt(e){var n=_e();e&&be();var t=109===ye()||94===ye()||103===ye()?Fe():Rn(ye());return e&&(t=Ve(P.createPrefixUnaryExpression(40,t),n)),Ve(P.createLiteralTypeNode(t),n)}function ft(){return be(),99===ye()}function mt(){d|=1048576;var e=_e(),n=Oe(111);ke(99),ke(20);var t=Ct();ke(21);var r=Oe(24)?kn():void 0,a=On();return Ve(P.createImportTypeNode(t,r,a,n),e)}function _t(){return be(),8===ye()||9===ye()}function gt(){switch(ye()){case 128:case 151:case 146:case 143:case 154:case 147:case 131:case 149:case 140:case 144:return Ie(dt)||wn();case 65:s.reScanAsteriskEqualsToken();case 41:return t=_e(),be(),Ve(P.createJSDocAllType(),t);case 60:s.reScanQuestionToken();case 57:return function(){var e=_e();return be(),27===ye()||19===ye()||21===ye()||31===ye()||62===ye()||51===ye()?Ve(P.createJSDocUnknownType(),e):Ve(P.createJSDocNullableType(Ct()),e)}();case 97:return function(){var e=_e(),n=ge();if(Ce(Ta)){be();var t=qn(36),r=Kn(58,!1);return j(Ve(P.createJSDocFunctionType(t,r),e),n)}return Ve(P.createTypeReferenceNode(ze(),void 0),e)}();case 53:return function(){var e=_e();return be(),Ve(P.createJSDocNonNullableType(gt()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return pt();case 40:return Ce(_t)?pt(!0):wn();case 113:return Fe();case 107:var e=Pn();return 136!==ye()||s.hasPrecedingLineBreak()?e:(n=e,be(),Ve(P.createTypePredicateNode(void 0,n,Ct()),n.pos));case 111:return Ce(ft)?mt():function(){var e=_e();return ke(111),Ve(P.createTypeQueryNode(xn(!0)),e)}();case 18:return Ce(at)?it():function(){var e=_e();return Ve(P.createTypeLiteralNode(rt()),e)}();case 22:return function(){var e=_e();return Ve(P.createTupleTypeNode(Sn(21,lt,22,23)),e)}();case 20:return function(){var e=_e();ke(20);var n=Ct();return ke(21),Ve(P.createParenthesizedType(n),e)}();case 99:return mt();case 127:return Ce(Ir)?function(){var e=_e(),n=Me(127),t=107===ye()?Pn():qe(),r=Oe(136)?Ct():void 0;return Ve(P.createTypePredicateNode(n,t,r),e)}():wn();default:return wn()}var n,t}function yt(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&&Ce(_t);case 20:return!e&&Ce(ht);default:return Re()}}function ht(){return be(),21===ye()||Un(!1)||yt()}function vt(){var e=_e();return ke(135),Ve(P.createInferTypeNode(function(){var e=_e();return Ve(P.createTypeParameterDeclaration(qe(),void 0,void 0),e)}()),e)}function bt(){var e=ye();switch(e){case 137:case 150:case 141:return function(e){var n=_e();return ke(e),Ve(P.createTypeOperatorNode(e,bt()),n)}(e);case 135:return vt()}return function(){for(var e=_e(),n=gt();!s.hasPrecedingLineBreak();)switch(ye()){case 53:be(),n=Ve(P.createJSDocNonNullableType(n),e);break;case 57:if(Ce(fn))return n;be(),n=Ve(P.createJSDocNullableType(n),e);break;case 22:if(ke(22),yt()){var t=Ct();ke(23),n=Ve(P.createIndexedAccessTypeNode(n,t),e)}else ke(23),n=Ve(P.createArrayTypeNode(n),e);break;default:return n}return n}()}function Et(n){if(xt()){var t=ut();return fe(t,e.isFunctionTypeNode(t)?n?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:n?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),t}}function Tt(e,n,t){var r=_e(),a=51===e,i=Oe(e),o=i&&Et(a)||n();if(ye()===e||i){for(var s=[o];Oe(e);)s.push(Et(a)||n());o=Ve(t(Ue(s,r)),r)}return o}function St(){return Tt(50,bt,P.createIntersectionTypeNode)}function xt(){return 29===ye()||(!(20!==ye()||!Ce(Lt))||102===ye())}function Lt(){if(be(),21===ye()||25===ye())return!0;if(function(){if(e.isModifierKind(ye())&&la(),Re()||107===ye())return be(),!0;if(22===ye()||18===ye()){var n=T.length;return qr(),n===T.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 At(){var e=_e(),n=Re()&&Ie(Dt),t=Ct();return n?Ve(P.createTypePredicateNode(void 0,n,t),e):t}function Dt(){var e=qe();if(136===ye()&&!s.hasPrecedingLineBreak())return be(),e}function Ct(){return ne(40960,It)}function It(e){if(xt())return ut();var n=_e(),t=Tt(51,St,P.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Oe(93)){var r=It(!0);ke(57);var a=It();ke(58);var i=It();return Ve(P.createConditionalTypeNode(t,r,a,i),n)}return t}function Nt(){return Oe(58)?Ct():void 0}function Rt(){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 Ce(tt);default:return Re()}}function kt(){if(Rt())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}()||Re()}}function Ot(){var e=ce();e&&$(!1);for(var n,t=_e(),r=Pt();n=we(27);)r=Wt(r,n,Pt(),t);return e&&$(!0),r}function wt(){return Oe(62)?Pt():void 0}function Pt(){if(function(){if(124===ye())return!!oe()||Ce(kr);return!1}())return function(){var e=_e();return be(),s.hasPrecedingLineBreak()||41!==ye()&&!kt()?Ve(P.createYieldExpression(void 0,void 0),e):Ve(P.createYieldExpression(we(41),Pt()),e)}();var n=function(){var e=function(){if(20===ye()||29===ye()||129===ye())return Ce(Ft);if(38===ye())return 1;return 0}();if(0===e)return;return 1===e?Ut(!0):Ie(Gt)}()||function(){if(129===ye()&&1===Ce(Bt)){var e=_e(),n=ua(),t=jt(0);return Mt(e,t,n)}return}();if(n)return n;var t=_e(),r=jt(0);return 78===r.kind&&38===ye()?Mt(t,r,void 0):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(Te())?Wt(r,Fe(),Pt(),t):function(n,t){var r,a=we(57);if(!a)return n;return Ve(P.createConditionalExpression(n,a,ne(20480,Pt),r=Me(58),e.nodeIsPresent(r)?Pt():je(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),t)}(r,t)}function Mt(n,t,r){e.Debug.assert(38===ye(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=P.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);Ve(a,t.pos);var i=Ue([a],a.pos,a.end),o=Me(38),s=Vt(!!r);return z(Ve(P.createArrowFunction(r,void 0,i,void 0,o,s),n))}function Ft(){if(129===ye()){if(be(),s.hasPrecedingLineBreak())return 0;if(20!==ye()&&29!==ye())return 0}var n=ye(),t=be();if(20===n){if(21===t)switch(be()){case 38:case 58:case 18:return 1;default:return 0}if(22===t||18===t)return 2;if(25===t)return 1;if(e.isModifierKind(t)&&129!==t&&Ce(cn))return 1;if(!Re()&&107!==t)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===n),Re()?1===E?Ce((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 Gt(){var n=s.getTokenPos();if(!(null==k?void 0:k.has(n))){var t=Ut(!1);return t||(k||(k=new e.Set)).add(n),t}}function Bt(){if(129===ye()){if(be(),s.hasPrecedingLineBreak()||38===ye())return 0;var e=jt(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===ye())return 1}return 0}function Ut(n){var t,r=_e(),a=ge(),i=ua(),o=e.some(i,e.isAsyncModifier)?2:0,s=Bn();if(ke(20)){if(t=Wn(o),!ke(21)&&!n)return}else{if(!n)return;t=Tn()}var c=Kn(58,!1);if(!c||n||!function n(t){switch(t.kind){case 172:return e.nodeIsMissing(t.typeName);case 173:case 174:var r=t,a=r.parameters,i=r.type;return!!a.isMissingList||n(i);case 185:return n(t.type);default:return!1}}(c)){var l=c&&e.isJSDocFunctionType(c);if(n||38===ye()||!l&&18===ye()){var u=ye(),d=Me(38),p=38===u||18===u?Vt(e.some(i,e.isAsyncModifier)):qe();return j(Ve(P.createArrowFunction(i,s,t,c,d,p),r),a)}}}function Vt(e){if(18===ye())return Sr(e?2:0);if(26!==ye()&&97!==ye()&&83!==ye()&&Pr()&&(18===ye()||97===ye()||83===ye()||59===ye()||!kt()))return Sr(16|(e?2:0));var n=M;M=!1;var t=e?ae(Pt):ne(32768,Pt);return M=n,t}function jt(e){var n=_e();return Kt(e,zt(),n)}function Ht(e){return 100===e||155===e}function Kt(n,t,r){for(;;){Te();var a=e.getBinaryOperatorPrecedence(ye());if(!(42===ye()?a>=n:a>n))break;if(100===ye()&&se())break;if(126===ye()){if(s.hasPrecedingLineBreak())break;be(),i=t,o=Ct(),t=Ve(P.createAsExpression(i,o),i.pos)}else t=Wt(t,Fe(),jt(a),r)}var i,o;return t}function Wt(e,n,t,r){return Ve(P.createBinaryExpression(e,n,t),r)}function qt(){var e=_e();return Ve(P.createPrefixUnaryExpression(ye(),ve(Jt)),e)}function zt(){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!==E)return!1;default:return!0}}()){var n=_e(),t=Xt();return 42===ye()?Kt(e.getBinaryOperatorPrecedence(ye()),t,n):t}var r=ye(),a=Jt();if(42===ye()){n=e.skipTrivia(h,a.pos);var i=a.end;203===a.kind?pe(n,i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):pe(n,i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return a}function Jt(){switch(ye()){case 39:case 40:case 54:case 53:return qt();case 88:return e=_e(),Ve(P.createDeleteExpression(ve(Jt)),e);case 111:return function(){var e=_e();return Ve(P.createTypeOfExpression(ve(Jt)),e)}();case 113:return function(){var e=_e();return Ve(P.createVoidExpression(ve(Jt)),e)}();case 29:return function(){var e=_e();ke(29);var n=Ct();ke(31);var t=Jt();return Ve(P.createTypeAssertion(n,t),e)}();case 130:if(130===ye()&&(le()||Ce(kr)))return function(){var e=_e();return Ve(P.createAwaitExpression(ve(Jt)),e)}();default:return Xt()}var e}function Xt(){if(45===ye()||46===ye()){var n=_e();return Ve(P.createPrefixUnaryExpression(ye(),ve(Yt)),n)}if(1===E&&29===ye()&&Ce(un))return Zt(!0);var t=Yt();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(45===ye()||46===ye())&&!s.hasPrecedingLineBreak()){var r=ye();return be(),Ve(P.createPostfixUnaryExpression(t,r),t.pos)}return t}function Yt(){var n,t=_e();return 99===ye()?Ce(et)?(d|=1048576,n=Fe()):Ce(nt)?(be(),be(),n=Ve(P.createMetaProperty(99,ze()),t),d|=2097152):n=Qt():n=105===ye()?function(){var n=_e(),t=Fe();if(29===ye()){var r=_e();void 0!==Ie(fr)&&pe(r,_e(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ye()||24===ye()||22===ye())return t;return Me(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ve(P.createPropertyAccessExpression(t,An(!0,!0)),n)}():Qt(),dr(t,n)}function Qt(){return cr(_e(),mr(),!0)}function Zt(n,t){var r,a=_e(),i=function(e){var n=_e();if(ke(29),31===ye())return Ae(),Ve(P.createJsxOpeningFragment(),n);var t,r=nr(),a=ya(),i=function(){var e=_e();return Ve(P.createJsxAttributes(_n(13,rr)),e)}();31===ye()?(Ae(),t=P.createJsxOpeningElement(r,a,i)):(ke(43),e?ke(31):(ke(31,void 0,!1),Ae()),t=P.createJsxSelfClosingElement(r,a,i));return Ve(t,n)}(n);if(272===i.kind){var o=er(i),s=function(e){var n=_e();ke(30);var t=nr();e?ke(31):(ke(31,void 0,!1),Ae());return Ve(P.createJsxClosingElement(t),n)}(n);x(i.tagName,s.tagName)||fe(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(h,i.tagName)),r=Ve(P.createJsxElement(i,o,s),a)}else 275===i.kind?r=Ve(P.createJsxFragment(i,er(i),function(n){var t=_e();ke(30),e.tokenIsIdentifierOrKeyword(ye())&&fe(nr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);n?ke(31):(ke(31,void 0,!1),Ae());return Ve(P.createJsxJsxClosingFragment(),t)}(n)),a):(e.Debug.assert(271===i.kind),r=i);if(n&&29===ye()){var c=void 0===t?r.pos:t,l=Ie((function(){return Zt(!0,c)}));if(l){var u=je(27,!1);return e.setTextRangePosWidth(u,l.pos,0),pe(e.skipTrivia(h,c),l.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ve(P.createBinaryExpression(r,u,l),a)}}return r}function $t(n,t){switch(t){case 1:if(e.isJsxOpeningFragment(n))fe(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=n.tagName;pe(e.skipTrivia(h,r.pos),r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(h,n.tagName))}return;case 30:case 7:return;case 11:case 12:return a=_e(),i=P.createJsxText(s.getTokenValue(),12===A),A=s.scanJsxToken(),Ve(i,a);case 18:return tr(!1);case 29:return Zt(!1);default:return e.Debug.assertNever(t)}var a,i}function er(e){var n=[],t=_e(),r=R;for(R|=16384;;){var a=$t(e,A=s.reScanJsxToken());if(!a)break;n.push(a)}return R=r,Ue(n,t)}function nr(){var e=_e();Le();for(var n=107===ye()?Fe():ze();Oe(24);)n=Ve(P.createPropertyAccessExpression(n,An(!0,!1)),e);return n}function tr(e){var n,t,r=_e();if(ke(18))return 19!==ye()&&(n=we(25),t=Ot()),e?ke(19):ke(19,void 0,!1)&&Ae(),Ve(P.createJsxExpression(n,t),r)}function rr(){if(18===ye())return function(){var e=_e();ke(18),ke(25);var n=Ot();return ke(19),Ve(P.createJsxSpreadAttribute(n),e)}();Le();var e=_e();return Ve(P.createJsxAttribute(ze(),62!==ye()?void 0:10===(A=s.scanJsxAttributeValue())?Nn():tr(!0)),e)}function ar(){return be(),e.tokenIsIdentifierOrKeyword(ye())||22===ye()||lr()}function ir(n){if(32&n.flags)return!0;if(e.isNonNullExpression(n)){for(var t=n.expression;e.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;e.isNonNullExpression(n);)n.flags|=32,n=n.expression;return!0}}return!1}function or(n,t,r){var a=An(!0,!0),i=r||ir(t),o=i?P.createPropertyAccessChain(t,r,a):P.createPropertyAccessExpression(t,a);return i&&e.isPrivateIdentifier(o.name)&&fe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ve(o,n)}function sr(n,t,r){var a;if(23===ye())a=je(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=re(Ot);e.isStringOrNumericLiteralLike(i)&&(i.text=He(i.text)),a=i}return ke(23),Ve(r||ir(t)?P.createElementAccessChain(t,r,a):P.createElementAccessExpression(t,a),n)}function cr(n,t,r){for(;;){var a=void 0,i=!1;if(r&&28===ye()&&Ce(ar)?(a=Me(28),i=e.tokenIsIdentifierOrKeyword(ye())):i=Oe(24),i)t=or(n,t,a);else if(a||53!==ye()||s.hasPrecedingLineBreak())if(!a&&ce()||!Oe(22)){if(!lr())return t;t=ur(n,t,a,void 0)}else t=sr(n,t,a);else be(),t=Ve(P.createNonNullExpression(t),n)}}function lr(){return 14===ye()||15===ye()}function ur(e,n,t,r){var a=P.createTaggedTemplateExpression(n,r,14===ye()?(Se(),Nn()):Dn(!0));return(t||32&n.flags)&&(a.flags|=32),a.questionDotToken=t,Ve(a,e)}function dr(n,t){for(;;){t=cr(n,t,!0);var r=we(28);if(29===ye()||47===ye()){var a=Ie(fr);if(a){if(lr()){t=ur(n,t,r,a);continue}var i=pr();t=Ve(r||ir(t)?P.createCallChain(t,r,a,i):P.createCallExpression(t,a,i),n);continue}}else if(20===ye()){i=pr();t=Ve(r||ir(t)?P.createCallChain(t,r,void 0,i):P.createCallExpression(t,void 0,i),n);continue}if(r){var o=je(78,!1,e.Diagnostics.Identifier_expected);t=Ve(P.createPropertyAccessChain(t,r,o),n)}break}return t}function pr(){ke(20);var e=bn(11,gr);return ke(21),e}function fr(){if(29===xe()){be();var e=bn(20,Ct);if(ke(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 mr(){switch(ye()){case 8:case 9:case 10:case 14:return Nn();case 107:case 105:case 103:case 109:case 94:return Fe();case 20:return function(){var e=_e(),n=ge();ke(20);var t=re(Ot);return ke(21),j(Ve(P.createParenthesizedExpression(t),e),n)}();case 22:return yr();case 18:return vr();case 129:if(!Ce(Rr))break;return br();case 83:return fa(_e(),ge(),void 0,void 0,218);case 97:return br();case 102:return function(){var n=_e();if(ke(102),Oe(24)){var t=ze();return Ve(P.createMetaProperty(102,t),n)}var r,a,i=_e(),o=mr();for(;;){o=cr(i,o,!1),r=Ie(fr),lr()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=ur(i,o,void 0,r),r=void 0);break}20===ye()?a=pr():r&&pe(n,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ve(P.createNewExpression(o,r,a),n)}();case 43:case 67:if(13===(A=s.reScanSlashToken()))return Nn();break;case 15:return Dn(!1)}return qe(e.Diagnostics.Expression_expected)}function _r(){return 25===ye()?function(){var e=_e();ke(25);var n=Pt();return Ve(P.createSpreadElement(n),e)}():27===ye()?Ve(P.createOmittedExpression(),_e()):Pt()}function gr(){return ne(20480,_r)}function yr(){var e=_e();ke(22);var n=s.hasPrecedingLineBreak(),t=bn(15,_r);return ke(23),Ve(P.createArrayLiteralExpression(t,n),e)}function hr(){var e=_e(),n=ge();if(we(25)){var t=Pt();return j(Ve(P.createSpreadAssignment(t),e),n)}var r=sa(),a=la();if(Ze(134))return ra(e,n,r,a,166);if(Ze(145))return ra(e,n,r,a,167);var i,o=we(41),s=Re(),c=Ye(),l=we(57),u=we(53);if(o||20===ye()||29===ye())return ea(e,n,r,a,o,c,l,u);if(s&&58!==ye()){var d=we(62),p=d?re(Pt):void 0;(i=P.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{ke(58);var f=re(Pt);i=P.createPropertyAssignment(c,f)}return i.decorators=r,i.modifiers=a,i.questionToken=l,i.exclamationToken=u,j(Ve(i,e),n)}function vr(){var n=_e(),t=s.getTokenPos();ke(18);var r=s.hasPrecedingLineBreak(),a=bn(12,hr,!0);if(!ke(19)){var i=e.lastOrUndefined(T);i&&i.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(i,e.createDetachedDiagnostic(u,t,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ve(P.createObjectLiteralExpression(a,r),n)}function br(){var n=ce();n&&$(!1);var t=_e(),r=ge(),a=la();ke(97);var i=we(41),o=i?1:0,s=e.some(a,e.isAsyncModifier)?2:0,c=o&&s?te(40960,Er):o?function(e){return te(8192,e)}(Er):s?ae(Er):Er(),l=Bn(),u=qn(o|s),d=Kn(58,!1),p=Sr(o|s);return n&&$(!0),j(Ve(P.createFunctionExpression(a,i,c,l,u,d,p),t),r)}function Er(){return Ne()?We():void 0}function Tr(n,t){var r=_e(),a=s.getTokenPos();if(ke(18,t)||n){var i=s.hasPrecedingLineBreak(),o=_n(1,Fr);if(!ke(19)){var c=e.lastOrUndefined(T);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(u,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ve(P.createBlock(o,i),r)}o=Tn();return Ve(P.createBlock(o,void 0),r)}function Sr(e,n){var t=oe();Z(!!(1&e));var r=le();ee(!!(2&e));var a=M;M=!1;var i=ce();i&&$(!1);var o=Tr(!!(16&e),n);return i&&$(!0),M=a,Z(t),ee(r),o}function xr(){var e=_e();ke(96);var n,t,r=we(130);if(ke(20),26!==ye()&&(n=112===ye()||118===ye()||84===ye()?Xr(!0):te(4096,Ot)),r?ke(155):Oe(155)){var a=re(Pt);ke(21),t=P.createForOfStatement(r,n,a,Fr())}else if(Oe(100)){a=re(Ot);ke(21),t=P.createForInStatement(n,a,Fr())}else{ke(26);var i=26!==ye()&&21!==ye()?re(Ot):void 0;ke(26);var o=21!==ye()?re(Ot):void 0;ke(21),t=P.createForStatement(n,i,o,Fr())}return Ve(t,e)}function Lr(e){var n=_e();ke(238===e?80:85);var t=Ge()?void 0:qe();return Be(),Ve(238===e?P.createBreakStatement(t):P.createContinueStatement(t),n)}function Ar(){return 81===ye()?function(){var e=_e();ke(81);var n=re(Ot);ke(58);var t=_n(3,Fr);return Ve(P.createCaseClause(n,t),e)}():function(){var e=_e();ke(87),ke(58);var n=_n(3,Fr);return Ve(P.createDefaultClause(n),e)}()}function Dr(){var e=_e();ke(106),ke(20);var n=re(Ot);ke(21);var t=function(){var e=_e();ke(18);var n=_n(2,Ar);return ke(19),Ve(P.createCaseBlock(n),e)}();return Ve(P.createSwitchStatement(n,t),e)}function Cr(){var e=_e();ke(110);var n,t=Tr(!1),r=82===ye()?function(){var e,n=_e();ke(82),Oe(20)?(e=Jr(),ke(21)):e=void 0;var t=Tr(!1);return Ve(P.createCatchClause(e,t),n)}():void 0;return r&&95!==ye()||(ke(95),n=Tr(!1)),Ve(P.createTryStatement(t,r,n),e)}function Ir(){return be(),e.tokenIsIdentifierOrKeyword(ye())&&!s.hasPrecedingLineBreak()}function Nr(){return be(),83===ye()&&!s.hasPrecedingLineBreak()}function Rr(){return be(),97===ye()&&!s.hasPrecedingLineBreak()}function kr(){return be(),(e.tokenIsIdentifierOrKeyword(ye())||8===ye()||9===ye()||10===ye())&&!s.hasPrecedingLineBreak()}function Or(){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()&&Re();case 138:case 139:return Vr();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 n=be();if(148===n&&(n=Ce(be)),62===n||41===n||18===n||87===n||126===n)return!0;continue;case 123:be();continue;default:return!1}}function wr(){return Ce(Or)}function Pr(){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 wr()||Ce(tt);case 84:case 92:return wr();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 wr()||!Ce(Ir);default:return kt()}}function Mr(){return be(),Re()||18===ye()||22===ye()}function Fr(){switch(ye()){case 26:return n=_e(),ke(26),Ve(P.createEmptyStatement(),n);case 18:return Tr(!1);case 112:return Qr(_e(),ge(),void 0,void 0);case 118:if(Ce(Mr))return Qr(_e(),ge(),void 0,void 0);break;case 97:return Zr(_e(),ge(),void 0,void 0);case 83:return pa(_e(),ge(),void 0,void 0);case 98:return function(){var e=_e();ke(98),ke(20);var n=re(Ot);ke(21);var t=Fr(),r=Oe(90)?Fr():void 0;return Ve(P.createIfStatement(n,t,r),e)}();case 89:return function(){var e=_e();ke(89);var n=Fr();ke(114),ke(20);var t=re(Ot);return ke(21),Oe(26),Ve(P.createDoStatement(n,t),e)}();case 114:return function(){var e=_e();ke(114),ke(20);var n=re(Ot);ke(21);var t=Fr();return Ve(P.createWhileStatement(n,t),e)}();case 96:return xr();case 85:return Lr(237);case 80:return Lr(238);case 104:return function(){var e=_e();ke(104);var n=Ge()?void 0:re(Ot);return Be(),Ve(P.createReturnStatement(n),e)}();case 115:return function(){var e=_e();ke(115),ke(20);var n=re(Ot);ke(21);var t=te(16777216,Fr);return Ve(P.createWithStatement(n,t),e)}();case 106:return Dr();case 108:return function(){var e=_e();ke(108);var n=s.hasPrecedingLineBreak()?void 0:re(Ot);return void 0===n&&(N++,n=Ve(P.createIdentifier(""),_e())),Be(),Ve(P.createThrowStatement(n),e)}();case 110:case 82:case 95:return Cr();case 86:return function(){var e=_e();return ke(86),Be(),Ve(P.createDebuggerStatement(),e)}();case 59:return Br();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(wr())return Br()}var n;return function(){var n,t=_e(),r=ge(),a=20===ye(),i=re(Ot);return e.isIdentifier(i)&&Oe(58)?n=P.createLabeledStatement(i,Fr()):(Be(),n=P.createExpressionStatement(i),a&&(r=!1)),j(Ve(n,t),r)}()}function Gr(e){return 133===e.kind}function Br(){var n=e.some(Ce((function(){return sa(),la()})),Gr);if(n){var t=te(8388608,(function(){var e=yn(R);if(e)return hn(e)}));if(t)return t}var r=_e(),a=ge(),i=sa(),o=la();if(n){for(var s=0,c=o;s=0),e.Debug.assert(n<=i),e.Debug.assert(i<=a.length),p(a,n)){var o,c,l,d=[];return s.scanRange(n+3,r-5,(function(){var e,t,r,u=1,p=n-Math.max(a.lastIndexOf("\n",n),0)+4;function _(n){e||(e=p),d.push(n),p+=n.length}for(Ee();G(5););G(4)&&(u=0,p=0);e:for(;;){switch(ye()){case 59:0===u||1===u?(m(d),S(v(p)),u=0,e=void 0):_(s.getTokenText());break;case 4:d.push(s.getTokenText()),u=0,p=0;break;case 41:var g=s.getTokenText();1===u||2===u?(u=2,_(g)):(u=1,p+=g.length);break;case 5:var y=s.getTokenText();2===u?d.push(y):void 0!==e&&p+y.length>e&&d.push(y.slice(e-p-1)),p+=y.length;break;case 1:break e;default:u=2,_(s.getTokenText())}Ee()}return f(d),m(d),t=d.length?d.join(""):void 0,r=o&&Ue(o,c,l),Ve(P.createJSDocComment(t,r),n,i)}))}function f(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function m(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function _(){for(;;){if(Ee(),1===ye())return!0;if(5!==ye()&&4!==ye())return!1}}function g(){if(5!==ye()&&4!==ye()||!Ce(_))for(;5===ye()||4===ye();)Ee()}function y(){if((5===ye()||4===ye())&&Ce(_))return"";for(var e=s.hasPrecedingLineBreak(),n=!1,t="";e&&41===ye()||5===ye()||4===ye();)t+=s.getTokenText(),4===ye()?(e=!0,n=!0,t=""):41===ye()&&(e=!1),Ee();return n?t:""}function v(n){e.Debug.assert(59===ye());var r=s.getTokenPos();Ee();var a,i=B(void 0),c=y();switch(i.escapedText){case"author":a=function(e,n,t,r){var a=Ie((function(){return function(){var e=[],n=!1,t=!1,r=s.getToken();e:for(;;){switch(r){case 78:case 5:case 24:case 59:e.push(s.getTokenText());break;case 29:if(n||t)return;n=!0,e.push(s.getTokenText());break;case 31:if(!n||t)return;t=!0,e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break e;case 4:case 1:break e}r=Ee()}if(n&&t)return 0===e.length?void 0:e.join("")}()}));if(!a){var i=_e();return Ve(P.createJSDocAuthorTag(n,b(e,i,t,r)),e,i)}var o=a;if(Ce((function(){return 4!==be()}))){var c=E(t);c&&(o+=c)}return Ve(P.createJSDocAuthorTag(n,o),e)}(r,i,n,c);break;case"implements":a=function(e,n,t,r){var a=I(),i=_e();return Ve(P.createJSDocImplementsTag(n,a,b(e,i,t,r)),e,i)}(r,i,n,c);break;case"augments":case"extends":a=function(e,n,t,r){var a=I(),i=_e();return Ve(P.createJSDocAugmentsTag(n,a,b(e,i,t,r)),e,i)}(r,i,n,c);break;case"class":case"constructor":a=R(r,P.createJSDocClassTag,i,n,c);break;case"public":a=R(r,P.createJSDocPublicTag,i,n,c);break;case"private":a=R(r,P.createJSDocPrivateTag,i,n,c);break;case"protected":a=R(r,P.createJSDocProtectedTag,i,n,c);break;case"readonly":a=R(r,P.createJSDocReadonlyTag,i,n,c);break;case"deprecated":q=!0,a=R(r,P.createJSDocDeprecatedTag,i,n,c);break;case"this":a=function(e,n,r,a){var i=t(!0);g();var o=_e();return Ve(P.createJSDocThisTag(n,i,b(e,o,r,a)),e,o)}(r,i,n,c);break;case"enum":a=function(e,n,r,a){var i=t(!0);g();var o=_e();return Ve(P.createJSDocEnumTag(n,i,b(e,o,r,a)),e,o)}(r,i,n,c);break;case"arg":case"argument":case"param":return D(r,i,2,n);case"return":case"returns":a=function(n,t,r,a){e.some(o,e.isJSDocReturnTag)&&pe(t.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var i=x(),c=_e();return Ve(P.createJSDocReturnTag(t,i,b(n,c,r,a)),n,c)}(r,i,n,c);break;case"template":a=function(n,r,a,i){var o=18===ye()?t():void 0,s=function(){var n=_e(),t=[];do{g(),t.push((r=void 0,a=void 0,r=_e(),a=B(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Ve(P.createTypeParameterDeclaration(a,void 0,void 0),r))),y()}while(G(27));var r,a;return Ue(t,n)}(),c=_e();return Ve(P.createJSDocTemplateTag(r,o,s,b(n,c,a,i)),n,c)}(r,i,n,c);break;case"type":a=C(r,i,n,c);break;case"typedef":a=function(n,t,r,a){var i,o=x();y();var s=k();g();var c,l=E(r);if(!o||A(o.type)){for(var d=void 0,p=void 0,f=void 0,m=!1;d=Ie((function(){return w(r)}));)if(m=!0,325===d.kind){if(p){ue(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var _=e.lastOrUndefined(T);_&&e.addRelatedInfo(_,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=d}else f=e.append(f,d);if(m){var h=o&&177===o.type.kind,v=P.createJSDocTypeLiteral(f,h);o=p&&p.typeExpression&&!A(p.typeExpression.type)?p.typeExpression:Ve(v,n),c=o.end}}c=c||void 0!==l?_e():(null!==(i=null!=s?s:o)&&void 0!==i?i:t).end,l||(l=b(n,c,r,a));return Ve(P.createJSDocTypedefTag(t,o,s,l),n,c)}(r,i,n,c);break;case"callback":a=function(n,t,r,a){var i=k();g();var o=E(r),s=function(n){var t,r,a=_e();for(;t=Ie((function(){return M(4,n)}));)r=e.append(r,t);return Ue(r||[],a)}(r),c=Ie((function(){if(G(59)){var e=v(r);if(e&&323===e.kind)return e}})),l=Ve(P.createJSDocSignature(void 0,s,c),n),u=_e();o||(o=b(n,u,r,a));return Ve(P.createJSDocCallbackTag(t,l,i,o),n,u)}(r,i,n,c);break;default:a=function(e,n,t,r){var a=_e();return Ve(P.createJSDocUnknownTag(n,b(e,a,t,r)),e,a)}(r,i,n,c)}return a}function b(e,n,t,r){return r||(t+=n-e),E(t,r.slice(t))}function E(n,t){var r,a=[],i=0;function o(e){r||(r=n),a.push(e),n+=e.length}void 0!==t&&(""!==t&&o(t),i=1);var c=ye();e:for(;;){switch(c){case 4:i=0,a.push(s.getTokenText()),n=0;break;case 59:if(3===i){a.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===i||3===i)o(s.getTokenText());else{var l=s.getTokenText();void 0!==r&&n+l.length>r&&a.push(l.slice(r-n)),n+=l.length}break;case 18:i=2,Ce((function(){return 59===Ee()&&e.tokenIsIdentifierOrKeyword(Ee())&&"link"===s.getTokenText()}))&&(o(s.getTokenText()),Ee(),o(s.getTokenText()),Ee()),o(s.getTokenText());break;case 61:i=3===i?2:3,o(s.getTokenText());break;case 41:if(0===i){i=1,n+=1;break}default:3!==i&&(i=2),o(s.getTokenText())}c=Ee()}return f(a),m(a),0===a.length?void 0:a.join("")}function S(e){e&&(o?o.push(e):(o=[e],c=e.pos),l=e.end)}function x(){return y(),18===ye()?t():void 0}function L(){var n=G(22);n&&g();var t,r=G(61),a=function(){var e=B();Oe(22)&&ke(23);for(;Oe(24);){var n=B();Oe(22)&&ke(23),e=Ln(e,n)}return e}();return r&&(Pe(t=61)||je(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))),n&&(g(),we(62)&&Ot(),ke(23)),{name:a,isBracketed:n}}function A(n){switch(n.kind){case 144:return!0;case 177:return A(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&!n.typeArguments}}function D(n,t,r,a){var i=x(),o=!i;y();var c=L(),l=c.name,u=c.isBracketed;g(),o&&(i=x());var d=E(a+s.getStartPos()-n),p=4!==r&&function(n,t,r,a){if(n&&A(n.type)){for(var i=_e(),o=void 0,s=void 0;o=Ie((function(){return M(r,a,t)}));)322!==o.kind&&328!==o.kind||(s=e.append(s,o));if(s){var c=Ve(P.createJSDocTypeLiteral(s,177===n.type.kind),i);return Ve(P.createJSDocTypeExpression(c),i)}}}(i,l,r,a);return p&&(i=p,o=!0),Ve(1===r?P.createJSDocPropertyTag(t,l,u,i,o,d):P.createJSDocParameterTag(t,l,u,i,o,d),n)}function C(n,r,a,i){e.some(o,e.isJSDocTypeTag)&&pe(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var c=t(!0),l=_e(),u=void 0!==a&&void 0!==i?b(n,l,a,i):void 0;return Ve(P.createJSDocTypeTag(r,c,u),n,l)}function I(){var e=Oe(18),n=_e(),t=function(){var e=_e(),n=B();for(;Oe(24);){var t=B();n=Ve(P.createPropertyAccessExpression(n,t),e)}return n}(),r=ya(),a=Ve(P.createExpressionWithTypeArguments(t,r),n);return e&&ke(19),a}function R(e,n,t,r,a){var i=_e();return Ve(n(t,b(e,i,r,a)),e,i)}function k(n){var t=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ye())){var r=B();if(Oe(24)){var a=k(!0);return Ve(P.createModuleDeclaration(void 0,void 0,r,a,n?4:void 0),t)}return n&&(r.isInJSDocNamespace=!0),r}}function O(n,t){for(;!e.isIdentifier(n)||!e.isIdentifier(t);){if(e.isIdentifier(n)||e.isIdentifier(t)||n.right.escapedText!==t.right.escapedText)return!1;n=n.left,t=t.left}return n.escapedText===t.escapedText}function w(e){return M(1,e)}function M(n,t,r){for(var a=!0,i=!1;;)switch(Ee()){case 59:if(a){var o=F(n,t);return!(o&&(322===o.kind||328===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!O(r,o.name.left)))&&o}i=!1;break;case 4:a=!0,i=!1;break;case 41:i&&(a=!1),i=!0;break;case 78:a=!1;break;case 1:return!1}}function F(n,t){e.Debug.assert(59===ye());var r=s.getStartPos();Ee();var a,i=B();switch(g(),i.escapedText){case"type":return 1===n&&C(r,i);case"prop":case"property":a=1;break;case"arg":case"argument":case"param":a=6;break;default:return!1}return!!(n&a)&&D(r,i,n,t)}function G(e){return ye()===e&&(Ee(),!0)}function B(n){if(!e.tokenIsIdentifierOrKeyword(ye()))return je(78,!n,n||e.Diagnostics.Identifier_expected);N++;var t=s.getTokenPos(),r=s.getTextPos(),a=ye(),i=He(s.getTokenValue()),o=Ve(P.createIdentifier(i,void 0,a),t,r);return Ee(),o}}n.parseJSDocTypeExpressionForTests=function(n,r,a){B("file.js",n,99,void 0,1),s.setText(n,r,a),A=s.scan();var i=t(),o=X("file.js",99,1,!1,[],P.createToken(1),0),c=e.attachFileToDiagnostics(T,o);return S&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(S,o)),U(),i?{jsDocTypeExpression:i,diagnostics:c}:void 0},n.parseJSDocTypeExpression=t,n.parseIsolatedJSDocComment=function(n,t,r){B("",n,99,void 0,1);var a=te(4194304,(function(){return i(t,r)})),o={languageVariant:0,text:n},s=e.attachFileToDiagnostics(T,o);return U(),a?{jsDoc:a,diagnostics:s}:void 0},n.parseJSDocComment=function(n,t,r){var a=A,o=T.length,s=F,c=te(4194304,(function(){return i(t,r)}));return e.setParent(c,n),131072&O&&(S||(S=[]),S.push.apply(S,T)),A=a,T.length=o,F=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(r||(r={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(W=n.JSDocParser||(n.JSDocParser={}))}(c||(c={})),function(n){function t(n,t,a,o,s,c){return void(t?u(n):l(n));function l(n){var t="";if(c&&r(n)&&(t=o.substring(n.pos,n.end)),n._children&&(n._children=void 0),e.setTextRangePosEnd(n,n.pos+a,n.end+a),c&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),f(n,l,u),e.hasJSDocNodes(n))for(var d=0,p=n.jsDoc;d=t,"Adjusting an element that was entirely before the change range"),e.Debug.assert(n.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(n.pos<=n.end);var o=Math.min(n.pos,a),s=n.end>=r?n.end+i:Math.min(n.end,a);e.Debug.assert(o<=s),n.parent&&(e.Debug.assertGreaterThanOrEqual(o,n.parent.pos),e.Debug.assertLessThanOrEqual(s,n.parent.end)),e.setTextRangePosEnd(n,o,s)}function i(n,t){if(t){var r=n.pos,a=function(n){e.Debug.assert(n.pos>=r),r=n.end};if(e.hasJSDocNodes(n))for(var i=0,o=n.jsDoc;it),!0;if(i.pos>=a.pos&&(a=i),ta.pos&&(a=i)}return a}function s(n,t,r,a){var i=n.text;if(r&&(e.Debug.assert(i.length-r.span.length+r.newLength===t.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,r.span.start),s=t.substr(0,r.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(r.span),i.length),l=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(c===l)}}function l(n){var t=n.statements,r=0;e.Debug.assert(r=n.pos&&e=n.pos&&e0&&a<=1;a++){var i=o(n,r);e.Debug.assert(i.pos<=r);var s=i.pos;r=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(r,e.textSpanEnd(t.span)),l=t.newLength+(t.span.start-r);return e.createTextChangeRange(c,l)}(n,u);s(n,r,g,d),e.Debug.assert(g.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var y=e.textChangeRangeNewSpan(g).length-g.span.length;!function(n,r,o,s,c,l,u,d){return void p(n);function p(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!1,c,l,u,d);else{var _=n.end;if(_>=r){if(n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,c),f(n,p,m),e.hasJSDocNodes(n))for(var g=0,y=n.jsDoc;go)t(n,!0,c,l,u,d);else{var i=n.end;if(i>=r){n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,c);for(var f=0,m=n;fa){y();var g={range:{pos:m.pos+i,end:m.end+i},type:_};l=e.append(l,g),c&&e.Debug.assert(o.substring(m.pos,m.end)===s.substring(g.range.pos,g.range.end))}}return y(),l;function y(){u||(u=!0,l?t&&l.push.apply(l,t):l=t)}}(n.commentDirectives,h.commentDirectives,g.span.start,e.textSpanEnd(g.span),y,m,r,d),h},n.createSyntaxCursor=l,function(e){e[e.Value=-1]="Value"}(u||(u={}))}(l||(l={})),e.isDeclarationFileName=_,e.processCommentPragmas=g,e.processPragmasIntoFields=y;var h=new e.Map;function v(e){if(h.has(e))return h.get(e);var n=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return h.set(e,n),n}var b=/^\/\/\/\s*<(\S+)\s.*?\/>/im,E=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function T(n,t,r){var a=2===t.kind&&b.exec(r);if(a){var i=a[1].toLowerCase(),o=e.commentPragmas[i];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c=t.length)break;var o=i;if(34===t.charCodeAt(o)){for(i++;i32;)i++;a.push(t.substring(o,i))}}c(a)}else s.push(t)}}function g(n,t,r,a,i,o){if(a.isTSConfigOnly)"null"===(s=n[t])?(i[a.name]=void 0,t++):"boolean"===a.type?"false"===s?(i[a.name]=!1,t++):("true"===s&&t++,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,a.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,a.name)),s&&!e.startsWith(s,"-")&&t++);else if(n[t]||"boolean"===a.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,a.name,F(a))),"null"!==n[t])switch(a.type){case"number":i[a.name]=parseInt(n[t]),t++;break;case"boolean":var s=n[t];i[a.name]="false"!==s,"false"!==s&&"true"!==s||t++;break;case"string":i[a.name]=n[t]||"",t++;break;case"list":var c=p(a,n[t],o);i[a.name]=c||[],c&&t++;break;default:i[a.name]=d(a,n[t],o),t++}else i[a.name]=void 0,t++;return t}function y(e,n){return h(s,e,n)}function h(e,n,t){void 0===t&&(t=!1),n=n.toLowerCase();var r=e(),a=r.optionsNameMap,i=r.shortOptionNames;if(t){var o=i.get(n);void 0!==o&&(n=o)}return a.get(n)}e.libs=r.map((function(e){return e[0]})),e.libMap=new e.Map(r),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=i(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(n){return e.hasProperty(n,"transpileOptionValue")})),e.buildOpts=i(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=a,e.getOptionsNameMap=s,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=c,e.createCompilerDiagnosticForInvalidCustomType=l,e.parseCustomTypeOption=d,e.parseListTypeOption=p,e.parseCommandLineWorker=_,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(n,t){return _(e.compilerOptionsDidYouMeanDiagnostics,n,t)},e.getOptionFromName=y;var v={getOptionsNameMap:function(){return t||(t=a(e.buildOpts))},optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function b(n,t){var r=e.parseJsonText(n,t);return{config:P(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function E(n,t){var r=T(n,t);return e.isString(r)?e.parseJsonText(n,r):{parseDiagnostics:[r]}}function T(n,t){var r;try{r=t(n)}catch(t){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,n):r}function S(n){return e.arrayToMap(n,f)}e.parseBuildCommand=function(n){var t=_(v,n),r=t.options,a=t.watchOptions,i=t.fileNames,o=t.errors,s=r;return 0===i.length&&i.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:a,projects:i,errors:o}},e.getDiagnosticText=function(n){for(var t=[],r=1;r=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(s,[u]).join(" -> "))),{raw:n||P(t,c)};var d=n?function(n,t,r,a,i){e.hasProperty(n,"excludes")&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=re(n.compilerOptions,r,i,a),c=ie(n.typeAcquisition||n.typingOptions,r,i,a),l=function(e,n,t){return oe(O(),e,n,void 0,R,t)}(n.watchOptions,r,i);if(n.compileOnSave=function(n,t,r){if(!e.hasProperty(n,e.compileOnSaveCommandLineOption.name))return!1;var a=se(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return"boolean"==typeof a&&a}(n,r,i),n.extends)if(e.isString(n.extends)){var u=a?J(a,r):r;o=ne(n.extends,t,u,i,e.createCompilerDiagnostic)}else i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:n,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(n,r,a,o,c):function(n,t,r,a,i){var o,s,c,l,u=te(a),d={onSetValidOptionKeyValueInParent:function(n,t,i){var l;switch(n){case"compilerOptions":l=u;break;case"watchOptions":l=c||(c={});break;case"typeAcquisition":l=o||(o=ae(a));break;case"typingOptions":l=s||(s=ae(a));break;default:e.Debug.fail("Unknown option")}l[t.name]=function n(t,r,a){if(z(a))return;if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(a,(function(e){return n(i.element,r,e)})),(function(e){return!!e})):a}if(!e.isString(t.type))return t.type.get(e.isString(a)?a.toLowerCase():a);return ce(t,r,a)}(t,r,i)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){switch(o){case"extends":var d=a?J(a,r):r;return void(l=ne(c,t,d,i,(function(t,r){return e.createDiagnosticForNodeInSourceFile(n,u,t,r)})))}},onSetUnknownOptionKeyValueInRoot:function(t,r,a,o){"excludes"===t&&i.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},p=M(n,i,!0,(void 0===N&&(N={name:void 0,type:"object",elementOptions:S([{name:"compilerOptions",type:"object",elementOptions:k(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:R},{name:"typingOptions",type:"object",elementOptions:w(),extraKeyDiagnostics:L},{name:"typeAcquisition",type:"object",elementOptions:w(),extraKeyDiagnostics:L},{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])}),N),d);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ae(a));return{raw:p,options:u,watchOptions:c,typeAcquisition:o,extendedConfigPath:l}}(t,r,a,o,c);if(d.extendedConfigPath){s=s.concat([u]);var p=function(n,t,r,a,i,o,s){var c,l,u,d,p=r.useCaseSensitiveFileNames?t:e.toFileNameLowerCase(t);if(s&&(l=s.get(p)))u=l.extendedResult,d=l.extendedConfig;else{if(!(u=E(t,(function(e){return r.readFile(e)}))).parseDiagnostics.length){var f=e.getDirectoryPath(t);if($(d=ee(void 0,u,r,f,e.getBaseFileName(t),i,o,s))){var m=e.convertToRelativePath(f,a,e.identity),_=function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(m,n)},g=function(n){y[n]&&(y[n]=e.map(y[n],_))},y=d.raw;g("include"),g("exclude"),g("files")}}s&&s.set(p,{extendedResult:u,extendedConfig:d})}n&&(n.extendedSourceFiles=[u.fileName],u.extendedSourceFiles&&(c=n.extendedSourceFiles).push.apply(c,u.extendedSourceFiles));if(u.parseDiagnostics.length)return void o.push.apply(o,u.parseDiagnostics);return d}(t,d.extendedConfigPath,r,a,s,c,l);if(p&&$(p)){var f=p.raw,m=d.raw,_=function(e){var n=m[e]||f[e];n&&(m[e]=n)};_("include"),_("exclude"),_("files"),void 0===m.compileOnSave&&(m.compileOnSave=f.compileOnSave),d.options=e.assign({},p.options,d.options),d.watchOptions=d.watchOptions&&p.watchOptions?e.assign({},p.watchOptions,d.watchOptions):d.watchOptions||p.watchOptions}}return d}function ne(n,t,r,a,i){if(n=e.normalizeSlashes(n),e.isRootedDiskPath(n)||e.startsWith(n,"./")||e.startsWith(n,"../")){var o=e.getNormalizedAbsolutePath(n,r);return t.fileExists(o)||e.endsWith(o,".json")||(o+=".json",t.fileExists(o))?o:void a.push(i(e.Diagnostics.File_0_not_found,n))}var s=e.nodeModuleNameResolver(n,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;a.push(i(e.Diagnostics.File_0_not_found,n))}function te(n){return n&&"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function re(n,t,r,a){var i=te(a);return oe(k(),n,t,i,e.compilerOptionsDidYouMeanDiagnostics,r),a&&(i.configFilePath=e.normalizeSlashes(a)),i}function ae(n){return{enable:!!n&&"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function ie(e,n,t,r){var a=ae(r),i=c(e);return oe(w(),i,n,a,L,t),a}function oe(n,t,r,a,i,o){if(t){for(var s in t){var c=n.get(s);c?(a||(a={}))[c.name]=se(c,t[s],r,o):o.push(m(s,i,e.createCompilerDiagnostic))}return a}}function se(n,t,r,a){if(G(n,t)){var i=n.type;return"list"===i&&e.isArray(t)?function(n,t,r,a){return e.filter(e.map(t,(function(e){return se(n.element,e,r,a)})),(function(e){return!!e}))}(n,t,r,a):e.isString(i)?ce(n,r,t):le(n,t,a)}a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,F(n)))}function ce(n,t,r){return n.isFilePath&&""===(r=e.getNormalizedAbsolutePath(r,t))&&(r="."),r}function le(e,n,t){if(!z(n)){var r=n.toLowerCase(),a=e.type.get(r);if(void 0!==a)return a;t.push(l(e))}}function ue(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=P,e.convertToObjectWorker=M,e.convertToTSConfig=function(n,t,r){var a=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),i=e.map(e.filter(n.fileNames,n.configFileSpecs&&n.configFileSpecs.validatedIncludeSpecs?function(n,t,r,a){if(!t)return function(e){return!0};var i=e.getFileMatcherPatterns(n,r,t,a.useCaseSensitiveFileNames,a.getCurrentDirectory()),o=i.excludePattern&&e.getRegexFromPattern(i.excludePattern,a.useCaseSensitiveFileNames),s=i.includeFilePattern&&e.getRegexFromPattern(i.includeFilePattern,a.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}}(t,n.configFileSpecs.validatedIncludeSpecs,n.configFileSpecs.validatedExcludeSpecs,r):function(e){return!0}),(function(n){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),a)})),s=j(n.options,{configFilePath:e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),c=n.watchOptions&&H(n.watchOptions,A());return o(o({compilerOptions:o(o({},B(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&&B(c),references:e.map(n.projectReferences,(function(e){return o(o({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(i)?i:void 0},n.configFileSpecs?{include:U(n.configFileSpecs.validatedIncludeSpecs),exclude:n.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!n.compileOnSave||void 0})},e.generateTSConfig=function(n,t,r){var a=j(e.extend(n,e.defaultInitCompilerOptions));return function(){for(var n=e.createMultiMap(),c=0,l=e.optionDeclarations;c0)for(var E=function(n){if(e.fileExtensionIs(n,".json")){if(!o){var r=p.filter((function(n){return e.endsWith(n,".json")})),i=e.map(e.getRegularExpressionsForWildcards(r,t,"files"),(function(e){return"^"+e+"$"}));o=i?i.map((function(n){return e.getRegexFromPattern(n,a.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(n)}))){var d=s(n);c.has(d)||u.has(d)||u.set(d,n)}return"continue"}if(function(n,t,r,a,i){for(var o=e.getExtensionPriority(n,a),s=e.adjustExtensionPriority(o,a),c=0;cs&&(s=u),1===s)return s}return s}break;case 254:var d=0;return e.forEachChild(n,(function(n){var t=r(n,i);switch(t){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(t)}})),d;case 253:return t(n,i);case 78:if(n.isInJSDocNamespace)return 0}return 1}(n,i);return i.set(o,s),s}function a(n,t){for(var a=n.propertyName||n.name,i=n.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var o=void 0,s=0,c=i.statements;so)&&(o=u),1===o)return o}}if(void 0!==o)return o}i=i.parent}return 1}function s(n){return e.Debug.attachFlowNodeDebugInfo(n),n}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(n||(n={}));var c=function(){var n,r,a,c,p,f,m,_,g,y,h,v,b,E,T,S,x,L,A,D,C,I,N,R,k=0,O={flags:1},w={flags:1};function P(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,a,i,o)}return function(t,i){n=t,r=i,a=e.getEmitScriptTarget(r),I=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,i),R=new e.Set,k=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(w),n.locals||(we(n),n.symbolCount=k,n.classifiableNames=R,function(){if(!g)return;for(var t=p,r=_,a=m,i=c,o=h,l=0,d=g;l=229&&n.kind<=245&&!r.allowUnreachableCode&&(n.flowNode=h),n.kind){case 233:!function(e){var n=fe(e,Z()),t=Q(),r=Q();ne(n,h),h=n,de(e.expression,t,r),h=oe(t),pe(e.statement,r,n),ne(n,h),h=oe(r)}(n);break;case 232:!function(e){var n=Z(),t=fe(e,Q()),r=Q();ne(n,h),h=n,pe(e.statement,r,t),ne(t,h),h=oe(t),de(e.expression,n,r),h=oe(r)}(n);break;case 234:!function(e){var n=fe(e,Z()),t=Q(),r=Q();we(e.initializer),ne(n,h),h=n,de(e.condition,t,r),h=oe(t),pe(e.statement,r,n),we(e.incrementor),ne(n,h),h=oe(r)}(n);break;case 235:case 236:!function(e){var n=fe(e,Z()),t=Q();we(e.expression),ne(n,h),h=n,236===e.kind&&we(e.awaitModifier);ne(t,h),we(e.initializer),247!==e.initializer.kind&&ge(e.initializer);pe(e.statement,t,n),ne(n,h),h=oe(t)}(n);break;case 231:!function(e){var n=Q(),t=Q(),r=Q();de(e.expression,n,t),h=oe(n),we(e.thenStatement),ne(r,h),h=oe(t),we(e.elseStatement),ne(r,h),h=oe(r)}(n);break;case 239:case 243:!function(e){we(e.expression),239===e.kind&&(D=!0,E&&ne(E,h));h=O}(n);break;case 238:case 237:!function(e){if(we(e.label),e.label){var n=function(e){for(var n=A;n;n=n.next)if(n.name===e)return n;return}(e.label.escapedText);n&&(n.referenced=!0,me(e,n.breakTarget,n.continueTarget))}else me(e,v,b)}(n);break;case 244:!function(n){var t=E,r=x,a=Q(),i=Q(),o=Q();n.finallyBlock&&(E=i);ne(o,h),x=o,we(n.tryBlock),ne(a,h),n.catchClause&&(h=oe(o),ne(o=Q(),h),x=o,we(n.catchClause),ne(a,h));if(E=t,x=r,n.finallyBlock){var s=Q();s.antecedents=e.concatenate(e.concatenate(a.antecedents,o.antecedents),i.antecedents),h=s,we(n.finallyBlock),1&h.flags?h=O:(E&&i.antecedents&&ne(E,$(s,i.antecedents,h)),x&&o.antecedents&&ne(x,$(s,o.antecedents,h)),h=a.antecedents?$(s,a.antecedents,h):O)}else h=oe(a)}(n);break;case 241:!function(n){var t=Q();we(n.expression);var r=v,a=L;v=t,L=h,we(n.caseBlock),ne(t,h);var i=e.forEach(n.caseBlock.clauses,(function(e){return 282===e.kind}));n.possiblyExhaustive=!i&&!t.antecedents,i||ne(t,re(L,n,0,0));v=r,L=a,h=oe(t)}(n);break;case 255:!function(e){for(var n=e.clauses,t=q(e.parent.expression),a=O,i=0;i=0;)switch(n=t.expr[r],t.state[r]){case 0:e.setParent(n,c);var a=I;Fe(n);var i=c;c=n,l(1,a,i);break;case 1:if(55===(s=n.operatorToken.kind)||56===s||60===s||e.isLogicalOrCoalescingAssignmentOperator(s)){if(le(n)){var o=Q();ye(n,o,o),h=oe(o)}else ye(n,T,S);u()}else l(2),d(n.left);break;case 2:l(3),d(n.operatorToken);break;case 3:l(4),d(n.right);break;case 4:var s=n.operatorToken.kind;if(e.isAssignmentOperator(s)&&!e.isAssignmentTarget(n))if(ge(n.left),62===s&&199===n.left.kind)Y(n.left.expression)&&(h=ae(256,h,n));u();break;default:return e.Debug.fail("Invalid state "+t.state[r]+" for bindBinaryExpressionFlow")}function l(e,n,a){t.state[r]=e,void 0!==n&&(t.inStrictMode[r]=n),void 0!==a&&(t.parent[r]=a)}function u(){void 0!==t.inStrictMode[r]&&(I=t.inStrictMode[r],c=t.parent[r]),r--}function d(n){n&&e.isBinaryExpression(n)?(r++,t.expr[r]=n,t.state[r]=0,t.inStrictMode[r]=void 0,t.parent[r]=void 0):we(n)}}(n);break;case 207:!function(e){K(e),198===e.expression.kind&&ge(e.expression)}(n);break;case 214:!function(e){var n=Q(),t=Q(),r=Q();de(e.condition,n,t),h=oe(n),we(e.questionToken),we(e.whenTrue),ne(r,h),h=oe(t),we(e.colonToken),we(e.whenFalse),ne(r,h),h=oe(r)}(n);break;case 246:!function(n){K(n),(n.initializer||e.isForInOrOfStatement(n.parent.parent))&&function n(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var a=0,i=r.elements;a=116&&t.originalKeywordKind<=124?n.bindDiagnostics.push(P(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),e.declarationNameToString(t))):130===t.originalKeywordKind?e.isExternalModule(n)&&e.isInTopLevelContext(t)?n.bindDiagnostics.push(P(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(t))):32768&t.flags&&n.bindDiagnostics.push(P(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))):124===t.originalKeywordKind&&8192&t.flags&&n.bindDiagnostics.push(P(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))))}function Ie(t,r){if(r&&78===r.kind){var a=r;if(o=a,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var i=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,i.start,i.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(a)))}}var o}function Ne(e){I&&Ie(e,e.name)}function Re(t){if(a<2&&294!==m.kind&&253!==m.kind&&!e.isFunctionLike(m)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function ke(t,r,a,i,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,a,i,o))}function Oe(t,r,a,i){!function(t,r,a){var i=e.createFileDiagnostic(n,r.pos,r.end-r.pos,a);t?n.bindDiagnostics.push(i):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,o(o({},i),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(r,n),end:a.end},i)}function we(n){if(n){e.setParent(n,c);var t=I;if(Fe(n),n.kind>155){var r=c;c=n;var a=Ee(n);0===a?W(n):function(n,t){var r=p,a=f,i=m;if(1&t?(206!==n.kind&&(f=p),p=m=n,32&t&&(p.locals=e.createSymbolTable()),Te(p)):2&t&&((m=n).locals=void 0),4&t){var o=h,c=v,l=b,u=E,d=x,_=A,g=D,T=16&t&&!e.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);T||(h=s({flags:2}),144&t&&(h.node=n)),E=T||165===n.kind||e.isInJSFile&&(248===n.kind||205===n.kind)?Q():void 0,x=void 0,v=void 0,b=void 0,A=void 0,D=!1,W(n),n.flags&=-2817,!(1&h.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=256,D&&(n.flags|=512),n.endFlowNode=h),294===n.kind&&(n.flags|=C),E&&(ne(E,h),h=oe(E),(165===n.kind||e.isInJSFile&&(248===n.kind||205===n.kind))&&(n.returnFlowNode=h)),T||(h=o),v=c,b=l,E=u,x=d,A=_,D=g}else 64&t?(y=!1,W(n),n.flags=y?128|n.flags:-129&n.flags):W(n);p=r,f=a,m=i}(n,a),c=r}else{r=c;1===n.kind&&(c=n),Pe(n),c=r}I=t}}function Pe(n){if(e.hasJSDocNodes(n))if(e.isInJSFile(n))for(var t=0,r=n.jsDoc;t=2&&(e.isDeclarationStatement(n.statement)||e.isVariableStatement(n.statement))&&ke(n.label,e.Diagnostics.A_label_is_not_allowed_here)}(t);case 186:return void(y=!0);case 171:break;case 158:return function(n){if(e.isJSDocTemplateTag(n.parent)){var t=e.find(n.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(n.parent);t?(t.locals||(t.locals=e.createSymbolTable()),U(t.locals,void 0,n,262144,526824)):Se(n,262144,526824)}else if(184===n.parent.kind){var r=function(n){var t=e.findAncestor(n,(function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&n.parent.extendsType===n}));return t&&t.parent}(n.parent);r?(r.locals||(r.locals=e.createSymbolTable()),U(r.locals,void 0,n,262144,526824)):Ae(n,262144,G(n))}else Se(n,262144,526824)}(t);case 159:return $e(t);case 246:return Ze(t);case 195:return t.flowNode=h,Ze(t);case 162:case 161:return function(e){return en(e,4|(e.questionToken?16777216:0),0)}(t);case 285:case 286:return en(t,4,0);case 288:return en(t,8,900095);case 168:case 169:case 170:return Se(t,131072,0);case 164:case 163:return en(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:103359);case 248:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(C|=2048);Ne(t),I?(Re(t),De(t,16,110991)):Se(t,16,110991)}(t);case 165:return Se(t,16384,0);case 166:return en(t,32768,46015);case 167:return en(t,65536,78783);case 173:case 304:case 309:case 174:return function(n){var t=M(131072,G(n));F(t,n,131072);var r=M(2048,"__type");F(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(t);case 176:case 308:case 189:return function(e){return Ae(e,2048,"__type")}(t);case 315:return function(n){K(n);var t=e.getHostSignatureFromJSDoc(n);t&&164!==t.kind&&F(t.symbol,t,32)}(t);case 197:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),I&&!e.isAssignmentTarget(t))for(var a=new e.Map,i=0,o=t.properties;i1&&2097152&h.flags&&(n=e.createSymbolTable()).set("export=",h);return C(n),S(u);function b(e){return!!e&&78===e.kind}function E(n){var t=e.find(n,e.isExportAssignment),r=e.findIndex(n,e.isModuleDeclaration),a=-1!==r?n[r]:void 0;if(a&&t&&t.isExportEquals&&e.isIdentifier(t.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(t.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(n,(function(n){return!!(1&e.getEffectiveModifierFlags(n))})),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(i(a.body.statements,[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(n){return t=n,e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),b):e.filter([e.getNameOfDeclaration(t)],b);var t})),(function(n){return e.factory.createExportSpecifier(void 0,n)}))),void 0)])))),n=i(n.slice(0,r),[a],n.slice(r+1))),!e.find(n,(function(n){return n!==a&&e.nodeHasName(n,s)}))){u=[];var l=!e.some(c.statements,(function(n){return e.hasSyntacticModifier(n,1)||e.isExportAssignment(n)||e.isExportDeclaration(n)}));e.forEach(c.statements,(function(e){O(e,l?1:0)})),n=i(e.filter(n,(function(e){return e!==a&&e!==t})),u)}}return n}function S(n){return n=function(n){var t=e.findIndex(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(t>=0){var r=n[t],a=e.mapDefined(r.exportClause.elements,(function(t){if(!t.propertyName){var r=e.indicesOf(n),a=e.filter(r,(function(r){return e.nodeHasName(n[r],t.name)}));if(e.length(a)&&e.every(a,(function(e){return x(n[e])}))){for(var i=0,o=a;i1){var r=e.filter(n,(function(n){return!e.isExportDeclaration(n)||!!n.moduleSpecifier||!n.exportClause}));n=i(r,[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),void 0)])}var a=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(n){return e.isStringLiteral(n.moduleSpecifier)?">"+n.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(t){t.length>1&&(n=i(e.filter(n,(function(e){return-1===t.indexOf(e)})),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),t[0].moduleSpecifier)]))},c=0,l=o;c0&&e.isSingleOrDoubleQuote(i.charCodeAt(0))?e.stripQuotes(i):i}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,H)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function $(e,n){var r=k(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Z(e,n),t.remappedSymbolNames.set(r,n),n)}}(n,t,l)}))}};function t(t,r,a,i){e.Debug.assert(void 0===t||0==(8&t.flags));var o={enclosingDeclaration:t,flags:r||0,tracker:a&&a.trackSymbol?a:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},getCurrentDirectory:function(){return n.getCurrentDirectory()},getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return n.fileExists(e)}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=i(o);return o.encounteredError?void 0:s}function a(n){return n.truncating?n.truncating:n.truncating=n.approximateLength>(1&n.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function c(n,t){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&t.flags;if(t.flags&=-8388609,!n)return 262144&t.flags?(t.approximateLength+=3,e.factory.createKeywordTypeNode(128)):void(t.encounteredError=!0);if(536870912&t.flags||(n=zs(n)),1&n.flags)return t.approximateLength+=3,e.factory.createKeywordTypeNode(128);if(2&n.flags)return e.factory.createKeywordTypeNode(151);if(4&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(8&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(143);if(64&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(154);if(16&n.flags)return t.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&n.flags&&!(1048576&n.flags)){var o=ba(n.symbol),s=S(o,t,788968);return Io(o)===n?s:G(s,e.factory.createTypeReferenceNode(e.symbolName(n.symbol),void 0))}if(1056&n.flags)return S(n.symbol,t,788968);if(128&n.flags)return t.approximateLength+=n.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(n.value,!!(268435456&t.flags)),16777216));if(256&n.flags){var _=n.value;return t.approximateLength+=(""+_).length,e.factory.createLiteralTypeNode(_<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-_)):e.factory.createNumericLiteral(_))}if(2048&n.flags)return t.approximateLength+=e.pseudoBigIntToString(n.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(n.value));if(512&n.flags)return t.approximateLength+=n.intrinsicName.length,e.factory.createLiteralTypeNode("true"===n.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&n.flags){if(!(1048576&t.flags)){if(ja(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,S(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.factory.createTypeOperatorNode(150,e.factory.createKeywordTypeNode(147))}if(16384&n.flags)return t.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&n.flags)return t.approximateLength+=9,e.factory.createKeywordTypeNode(149);if(65536&n.flags)return t.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&n.flags)return t.approximateLength+=5,e.factory.createKeywordTypeNode(140);if(4096&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(67108864&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(au(n))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),t.tracker.reportInaccessibleThisError&&t.tracker.reportInaccessibleThisError()),t.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&n.aliasSymbol&&(16384&t.flags||Va(n.aliasSymbol,t.enclosingDeclaration))){var g=d(n.aliasTypeArguments,t);return!Oa(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?S(n.aliasSymbol,t,788968,g):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),g)}var y=e.getObjectFlags(n);if(4&y)return e.Debug.assert(!!(524288&n.flags)),n.node?P(n,F):F(n);if(262144&n.flags||3&y){if(262144&n.flags&&e.contains(t.inferTypeParameters,n))return t.approximateLength+=e.symbolName(n.symbol).length+6,e.factory.createInferTypeNode(m(n,t,void 0));if(4&t.flags&&262144&n.flags&&!Va(n.symbol,t.enclosingDeclaration)){var h=L(n,t);return t.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return n.symbol?S(n.symbol,t,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(3145728&n.flags){var v=1048576&n.flags?function(e){for(var n=[],t=0,r=0;r0?1048576&n.flags?e.factory.createUnionTypeNode(b):e.factory.createIntersectionTypeNode(b):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&y)return e.Debug.assert(!!(524288&n.flags)),w(n);if(4194304&n.flags){var E=n.type;t.approximateLength+=6;var T=c(E,t);return e.factory.createTypeOperatorNode(137,T)}if(8388608&n.flags){var x=c(n.objectType,t);T=c(n.indexType,t);return t.approximateLength+=2,e.factory.createIndexedAccessTypeNode(x,T)}if(16777216&n.flags){var A=c(n.checkType,t),D=t.inferTypeParameters;t.inferTypeParameters=n.root.inferTypeParameters;var C=c(n.extendsType,t);t.inferTypeParameters=D;var I=O(gu(n)),N=O(yu(n));return t.approximateLength+=15,e.factory.createConditionalTypeNode(A,C,I,N)}return 33554432&n.flags?c(n.baseType,t):e.Debug.fail("Should be unreachable.");function O(e){var n,r,a;return 1048576&e.flags?(null===(n=t.visitedTypes)||void 0===n?void 0:n.has(Nl(e)))?(131072&t.flags||(t.encounteredError=!0,null===(a=null===(r=t.tracker)||void 0===r?void 0:r.reportCyclicStructureError)||void 0===a||a.call(r)),l(t)):P(e,(function(e){return c(e,t)})):c(e,t)}function w(n){var r,a=n.id,i=n.symbol;if(i){if(Oy(i.valueDeclaration)){var o=n===Eo(i)?788968:111551;return S(i,t,o)}if(32&i.flags&&!Zi(i)&&!(218===i.valueDeclaration.kind&&2048&t.flags)||896&i.flags||function(){var n,r=!!(8192&i.flags)&&e.some(i.declarations,(function(n){return e.hasSyntacticModifier(n,32)})),o=!!(16&i.flags)&&(i.parent||e.forEach(i.declarations,(function(e){return 294===e.parent.kind||254===e.parent.kind})));if(r||o)return(!!(4096&t.flags)||(null===(n=t.visitedTypes)||void 0===n?void 0:n.has(a)))&&(!(8&t.flags)||ja(i,t.enclosingDeclaration))}())return S(i,t,111551);if(null===(r=t.visitedTypes)||void 0===r?void 0:r.has(a)){var s=function(n){if(n.symbol&&2048&n.symbol.flags){var t=e.walkUpParenthesizedTypes(n.symbol.declarations[0].parent);if(251===t.kind)return va(t)}return}(n);return s?S(s,t,788968):l(t)}return P(n,M)}return M(n)}function P(n,r){var a,i=n.id,o=16&e.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags,s=4&e.getObjectFlags(n)&&n.node?"N"+R(n.node):n.symbol?(o?"+":"")+k(n.symbol):void 0;if(t.visitedTypes||(t.visitedTypes=new e.Set),s&&!t.symbolDepth&&(t.symbolDepth=new e.Map),s){if((a=t.symbolDepth.get(s)||0)>10)return l(t);t.symbolDepth.set(s,a+1)}t.visitedTypes.add(i);var c=r(n);return t.visitedTypes.delete(i),s&&t.symbolDepth.set(s,a),c}function M(n){if(Ss(n)||n.containsError)return function(n){e.Debug.assert(!!(524288&n.flags));var r,a=n.declaration.readonlyToken?e.factory.createToken(n.declaration.readonlyToken.kind):void 0,i=n.declaration.questionToken?e.factory.createToken(n.declaration.questionToken.kind):void 0;r=hs(n)?e.factory.createTypeOperatorNode(137,c(vs(n),t)):c(_s(n),t);var o=m(ms(n),t,r),s=c(gs(n),t),l=e.factory.createMappedTypeNode(a,o,i,s);return t.approximateLength+=10,e.setEmitFlags(l,1)}(n);var r=xs(n);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return t.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return f(r.callSignatures[0],173,t);if(1===r.constructSignatures.length&&!r.callSignatures.length)return f(r.constructSignatures[0],174,t)}var i=t.flags;t.flags|=4194304;var o=function(n){if(a(t))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,o=n.callSignatures;i0){var h=(n.target.typeParameters||e.emptyArray).length;y=d(r.slice(T,h),t)}x=t.flags;t.flags|=16;var v=S(n.symbol,t,788968,y);return t.flags=x,l?G(l,v):v}if(r.length>0){var b=Wc(n),E=d(r.slice(0,b),t);if(E){if(n.target.labeledElementDeclarations)for(var T=0;T2)return[c(n[0],t),e.factory.createTypeReferenceNode("... "+(n.length-2)+" more ...",void 0),c(n[n.length-1],t)]}for(var i=!(64&t.flags)?e.createUnderscoreEscapedMultiMap():void 0,o=[],s=0,l=0,u=n;l0)),i}function b(n,t){var r;return 524384&tE(n).flags&&(r=e.factory.createNodeArray(e.map(lo(n),(function(e){return _(e,t)})))),r}function E(n,t,r){var a;e.Debug.assert(n&&0<=t&&t1?g(i,i.length-1,1):void 0,c=a||E(i,0,t),l=T(i[0],t);!(67108864&t.flags)&&e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.NodeJs&&l.indexOf("/node_modules/")>=0&&(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(i[0]),t.approximateLength+=l.length+10,!s||e.isEntityName(s)){if(s)(m=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(u,s,c,o)}var d=function n(t){return e.isIndexedAccessTypeNode(t.objectType)?n(t.objectType):t}(s),p=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,p,c,o),d.indexType)}var f=g(i,i.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.factory.createTypeQueryNode(f);var m,_=(m=e.isIdentifier(f)?f:f.right).typeArguments;return m.typeArguments=void 0,e.factory.createTypeReferenceNode(f,_);function g(n,r,i){var o,s=r===n.length-1?a:E(n,r,t),c=n[r],l=n[r-1];if(0===r)t.flags|=16777216,o=li(c,t),t.approximateLength+=(o?o.length:0)+1,t.flags^=16777216;else if(l&&ma(l)){var u=ma(l);e.forEachEntry(u,(function(n,t){if(xa(n,c)&&!Vo(t)&&"export="!==t)return o=e.unescapeLeadingUnderscores(t),!0}))}if(o||(o=li(c,t)),t.approximateLength+=o.length+1,!(16&t.flags)&&l&&zo(l)&&zo(l).get(c.escapedName)&&xa(zo(l).get(c.escapedName),c)){var d=g(n,r-1,i);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 p=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(p.symbol=c,r>i){d=g(n,r-1,i);return e.isEntityName(d)?e.factory.createQualifiedName(d,p):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return p}}function x(e,n,t){var r=Lr(n.enclosingDeclaration,e,788968,void 0,e,!1);return!!r&&!(262144&r.flags&&r===t.symbol)}function L(n,t){var r;if(4&t.flags&&t.typeParameterNames){var a=t.typeParameterNames.get(Nl(n));if(a)return a}var i=A(n.symbol,t,788968,!0);if(!(78&i.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var o=i.escapedText,s=0,c=o;(null===(r=t.typeParameterNamesByText)||void 0===r?void 0:r.has(c))||x(c,t,n);)c=o+"_"+ ++s;c!==o&&(i=e.factory.createIdentifier(c,i.typeArguments)),(t.typeParameterNames||(t.typeParameterNames=new e.Map)).set(Nl(n),i),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new e.Set)).add(i.escapedText)}return i}function A(n,t,r,a){var i=h(n,t,r);return!a||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function n(r,a){var i=E(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=li(o,t);0===a&&(t.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return c.symbol=o,a>0?e.factory.createQualifiedName(n(r,a-1),c):c}(i,i.length-1)}function D(n,t,r){var a=h(n,t,r);return function n(r,a){var i=E(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=li(o,t);0===a&&(t.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Ja))return e.factory.createStringLiteral(T(o,t));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),H):e.isIdentifierStart(c,H);if(0===a||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return u.symbol=o,a>0?e.factory.createPropertyAccessExpression(n(r,a-1),u):u}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,i),16777216)).symbol=o),e.factory.createElementAccessExpression(n(r,a-1),d)}(a,a.length-1)}function C(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isStringLiteral(t)}function I(n){var t=e.getNameOfDeclaration(n);return!!(t&&e.isStringLiteral(t)&&(t.singleQuote||!e.nodeIsSynthesized(t)&&e.startsWith(e.getTextOfNode(t,!1),"'")))}function N(n,t){var r=!!e.length(n.declarations)&&e.every(n.declarations,I),a=function(n,t,r){var a=vr(n).nameType;if(a){if(384&a.flags){var i=""+a.value;return e.isIdentifierText(i,j.target)||U_(i)?U_(i)&&e.startsWith(i,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+i)):O(i):e.factory.createStringLiteral(i,!!r)}if(8192&a.flags)return e.factory.createComputedPropertyName(D(a.symbol,t,111551))}}(n,t,r);return a||(e.isKnownSymbol(n)?e.factory.createComputedPropertyName(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Symbol"),n.escapedName.substr(3))):O(e.unescapeLeadingUnderscores(n.escapedName),!!e.length(n.declarations)&&e.every(n.declarations,C),r))}function O(n,t,r){return e.isIdentifierText(n,j.target)?e.factory.createIdentifier(n):!t&&U_(n)&&+n>=0?e.factory.createNumericLiteral(+n):e.factory.createStringLiteral(n,!!r)}function w(n,t){return n.declarations&&e.find(n.declarations,(function(n){return!(!e.getEffectiveTypeAnnotationNode(n)||t&&!e.findAncestor(n,(function(e){return e===t})))}))}function P(n,t){return!(4&e.getObjectFlags(t))||!e.isTypeReferenceNode(n)||e.length(n.typeArguments)>=fc(t.target.typeParameters)}function M(n,t,r,a,i,o){if(t!==Se&&a){var s=w(r,a);if(s&&!e.isFunctionLikeDeclaration(s)){var l=e.getEffectiveTypeAnnotationNode(s);if(Vu(l)===t&&P(l,t)){var u=F(n,l,i,o);if(u)return u}}}var d=n.flags;8192&t.flags&&t.symbol===r&&(n.flags|=1048576);var p=c(t,n);return n.flags=d,p}function F(t,a,i,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,l=e.getSourceFileOfNode(a),u=e.visitNode(a,(function r(a){var u,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,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,r),e.factory.createKeywordTypeNode(149)]);if(e.isJSDocNonNullableType(a))return e.visitNode(a.type,r);if(e.isJSDocVariadicType(a))return e.factory.createArrayTypeNode(e.visitNode(a.type,r));if(e.isJSDocTypeLiteral(a))return e.factory.createTypeLiteralNode(e.map(a.jsDocPropertyTags,(function(n){var i=e.isIdentifier(n.name)?n.name:n.name.right,o=yi(Vu(a),i.escapedText),s=o&&n.typeExpression&&Vu(n.typeExpression.type)!==o?c(o,t):void 0;return e.factory.createPropertySignature(void 0,i,n.typeExpression&&e.isJSDocOptionalType(n.typeExpression.type)?e.factory.createToken(57):void 0,s||n.typeExpression&&e.visitNode(n.typeExpression.type,r)||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],r))],e.visitNode(a.typeArguments[1],r))]);if(e.isJSDocFunctionType(a)){var p;return e.isJSDocConstructSignature(a)?e.factory.createConstructorTypeNode(e.visitNodes(a.typeParameters,r),e.mapDefined(a.parameters,(function(n,t){return n.name&&e.isIdentifier(n.name)&&"new"===n.name.escapedText?void(p=n.type):e.factory.createParameterDeclaration(void 0,void 0,g(n),y(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(p||a.type,r)||e.factory.createKeywordTypeNode(128)):e.factory.createFunctionTypeNode(e.visitNodes(a.typeParameters,r),e.map(a.parameters,(function(n,t){return e.factory.createParameterDeclaration(void 0,void 0,g(n),y(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(a.type,r)||e.factory.createKeywordTypeNode(128))}if(e.isTypeReferenceNode(a)&&e.isInJSDoc(a)&&(!P(a,Vu(a))||rl(a)||he===Xc(Jc(a),788968,!0)))return e.setOriginalNode(c(Vu(a),t),a);if(e.isLiteralImportTypeNode(a))return e.factory.updateImportTypeNode(a,e.factory.updateLiteralTypeNode(a.argument,function(r,a){if(o){if(t.tracker&&t.tracker.moduleResolverHost){var i=TT(r);if(i){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,i);return e.factory.createStringLiteral(c)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=oa(a,a,void 0);l&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return a}(a,a.argument.literal)),a.qualifier,e.visitNodes(a.typeArguments,r,e.isTypeNode),a.isTypeOf);if(e.isEntityName(a)||e.isEntityNameExpression(a)){var f=e.getFirstIdentifier(a);if(e.isInJSFile(a)&&(e.isExportsIdentifier(f)||e.isModuleExportsAccessExpression(f.parent)||e.isQualifiedName(f.parent)&&e.isModuleIdentifier(f.parent.left)&&e.isExportsIdentifier(f.parent.right)))return s=!0,a;var m=ra(f,67108863,!0,!0);if(m&&(0!==Ka(m,t.enclosingDeclaration,67108863,!1).accessibility?s=!0:(null===(d=null===(u=t.tracker)||void 0===u?void 0:u.trackSymbol)||void 0===d||d.call(u,m,t.enclosingDeclaration,67108863),null==i||i(m)),e.isIdentifier(a))){var _=262144&m.flags?L(Io(m),t):e.factory.cloneNode(a);return _.symbol=m,e.setEmitFlags(e.setOriginalNode(_,a),16777216)}}l&&e.isTupleTypeNode(a)&&e.getLineAndCharacterOfPosition(l,a.pos).line===e.getLineAndCharacterOfPosition(l,a.end).line&&e.setEmitFlags(a,1);return e.visitEachChild(a,r,e.nullTransformationContext);function g(n){return n.dotDotDotToken||(n.type&&e.isJSDocVariadicType(n.type)?e.factory.createToken(25):void 0)}function y(n,t){return n.name&&e.isIdentifier(n.name)&&"this"===n.name.escapedText?"this":g(n)?"args":"arg"+t}}));if(!s)return u===a?e.setTextRange(e.factory.cloneNode(a),a):u}}(),te=e.createSymbolTable(),re=ur(4,"undefined");re.declarations=[];var ae=ur(1536,"globalThis",8);ae.exports=te,ae.declarations=[],te.set(ae.escapedName,ae);var ie,oe=ur(4,"arguments"),se=ur(4,"require"),ce={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getInstantiationCount:function(){return E},getRelationCacheSizes:function(){return{assignable:$t.size,identity:nr.size,subtype:Qt.size,strictSubtype:Zt.size}},isUndefinedSymbol:function(e){return e===re},isArgumentsSymbol:function(e){return e===oe},isUnknownSymbol:function(e){return e===he},getMergedSymbol:ha,getDiagnostics:DE,getGlobalDiagnostics:function(){return CE(),zt.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(n,t){var r=e.getParseTreeNode(t);return r?function(n,t){if(n=n.exportSymbol||n,78===t.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=tv(t);if(La(br(t).resolvedSymbol)===n)return r}return to(n)}(n,r):Se},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(n,t){var r=n.parent,a=n.parent.parent,i=Tr(r.locals,t,111551),o=Tr(zo(a.symbol),t,111551);if(i&&o)return[i,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Io,getPropertiesOfType:Cs,getPropertyOfType:function(n,t){return Zs(n,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(n,t,r){var a=e.getParseTreeNode(r);if(a){var i=Dg(e.escapeLeadingUnderscores(t),a);return i?Cg(n,i):void 0}},getTypeOfPropertyOfType:function(n,t){return yi(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:rc,getSignaturesOfType:ec,getIndexTypeOfType:ac,getBaseTypes:ho,getBaseTypeOfLiteralType:Op,getWidenedType:df,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?Vu(t):Se},getParameterType:Qy,getPromisedTypeOfPromise:Dv,getAwaitedType:function(e){return Iv(e)},getReturnTypeOfSignature:Ec,isNullableType:yg,getNullableType:Xp,getNonNullableType:Qp,getNonOptionalType:ef,getTypeArguments:Kc,typeToTypeNode:ne.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ne.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ne.signatureToSignatureDeclaration,symbolToEntityName:ne.symbolToEntityName,symbolToExpression:ne.symbolToExpression,symbolToTypeParameterDeclarations:ne.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ne.symbolToParameterDeclaration,typeParameterToDeclaration:ne.typeParameterToDeclaration,getSymbolsInScope:function(n,t){var r=e.getParseTreeNode(n);return r?function(n,t){if(16777216&n.flags)return[];var r=e.createSymbolTable(),a=!1;return i(),r.delete("this"),sc(r);function i(){for(;n;){switch(n.locals&&!Er(n)&&s(n.locals,t),n.kind){case 294:if(!e.isExternalOrCommonJsModule(n))break;case 253:s(va(n).exports,2623475&t);break;case 252:s(va(n).exports,8&t);break;case 218:n.name&&o(n.symbol,t);case 249:case 250:a||s(zo(va(n)),788968&t);break;case 205:n.name&&o(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&o(oe,t),a=e.hasSyntacticModifier(n,32),n=n.parent}s(te,t)}function o(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var a=n.escapedName;r.has(a)||r.set(a,n)}}function s(e,n){n&&e.forEach((function(e){o(e,n)}))}}(r,t):[]},getSymbolAtLocation:function(n){var t=e.getParseTreeNode(n);return t?PE(t,!0):void 0},getShorthandAssignmentValueSymbol:function(n){var t=e.getParseTreeNode(n);return t?function(e){if(e&&286===e.kind)return ra(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?function(e){return e.parent.parent.moduleSpecifier?Hr(e.parent.parent,e):ra(e.propertyName||e.name,2998271)}(t):void 0},getExportSymbolOfSymbol:function(e){return ha(e.exportSymbol||e)},getTypeAtLocation:function(n){var t=e.getParseTreeNode(n);return t?ME(t):Se},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&FE(t)||Se},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?function(n){var t=FE(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Zs(t,n.escapedText)}(t):void 0},signatureToString:function(n,t,r,a){return Za(n,e.getParseTreeNode(t),r,a)},typeToString:function(n,t,r){return $a(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,a){return Qa(n,e.getParseTreeNode(t),r,a)},typePredicateToString:function(n,t,r){return ai(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,a,i){return Za(n,e.getParseTreeNode(t),r,a,i)},writeType:function(n,t,r,a){return $a(n,e.getParseTreeNode(t),r,a)},writeSymbol:function(n,t,r,a,i){return Qa(n,e.getParseTreeNode(t),r,a,i)},writeTypePredicate:function(n,t,r,a){return ai(n,e.getParseTreeNode(t),r,a)},getAugmentedPropertiesOfType:VE,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(vr(n).containingType.types,(function(e){return Zs(e,n.escapedName)}));if(33554432&n.flags){var t=n,r=t.leftSpread,a=t.rightSpread,i=t.syntheticOrigin;return r?[r,a]:i?[i]:e.singleElementArray(function(e){var n,t=e;for(;t=vr(t).target;)n=t;return n}(n))}return}(t);return r?e.flatMap(r,n):[t]},getContextualType:function(n,t){var r=e.getParseTreeNode(n,e.isExpression);if(r){var a=e.findAncestor(r,e.isCallLikeExpression),i=a&&br(a).resolvedSignature;if(4&t&&a){var o=r;do{br(o).skipDirectInference=!0,o=o.parent}while(o&&o!==a);br(a).resolvedSignature=void 0}var s=D_(r,t);if(4&t&&a){o=r;do{br(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==a);br(a).resolvedSignature=i}return s}},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?v_(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&__(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&T_(t)},isContextSensitive:yd,getFullyQualifiedName:ta,getResolvedSignature:function(e,n,t){return le(e,n,t,0)},getResolvedSignatureForSignatureHelp:function(e,n,t){return le(e,n,t,16)},getExpandedParameters:ns,hasEffectiveRestParameter:th,getConstantValue:function(n){var t=e.getParseTreeNode(n,cT);return t?lT(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,n){switch(e.kind){case 198:return Vg(e,105===e.expression.kind,n,df(iv(e.expression)));case 156:return Vg(e,!1,n,df(iv(e.left)));case 192:return Vg(e,!1,n,Vu(e))}}(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var a=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!a&&function(e,n,t){return Vg(e,198===e.kind&&105===e.expression.kind,t.escapedName,n)}(a,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?_c(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?nT(t):void 0},getImmediateAliasedSymbol:H_,getAliasedSymbol:Xr,getEmitResolver:function(e,n){return DE(e,n),ee},getExportsOfModule:pa,getExportsAndPropertiesOfModule:function(n){var t=pa(n),r=la(n);r!==n&&e.addRange(t,Cs(to(r)));return t},getSymbolWalker:e.createGetSymbolWalker((function(e){return xc(e)||be}),bc,Ec,ho,xs,to,Wf,tc,Ns,e.getFirstIdentifier,Kc),getAmbientModules:function(){dn||(dn=[],te.forEach((function(e,n){s.test(n)&&dn.push(e)})));return dn},getJsxIntrinsicTagNamesAt:function(n){var t=Z_(D.IntrinsicElements,n);return t?Cs(t):e.emptyArray},isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return!!t&&uc(t)},tryGetMemberInModuleExports:function(n,t){return fa(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(n,t){var r=fa(n,t);if(r)return r;var a=la(t);if(a===t)return;var i=to(a);return 131068&i.flags||1&e.getObjectFlags(i)||Ip(i)?void 0:Zs(i,n)}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return lc(e,!1)},getApparentType:js,getUnionType:Ml,isTypeAssignableTo:Dd,createAnonymousType:Ma,createSignature:Qo,createSymbol:ur,createIndexInfo:wc,getAnyType:function(){return be},getStringType:function(){return Re},getNumberType:function(){return ke},createPromiseType:lh,createArrayType:vl,getElementTypeOfArrayType:Lp,getBooleanType:function(){return Ge},getFalseType:function(e){return e?we:Pe},getTrueType:function(e){return e?Me:Fe},getVoidType:function(){return Ue},getUndefinedType:function(){return Ae},getNullType:function(){return Ie},getESSymbolType:function(){return Be},getNeverType:function(){return Ve},getOptionalType:function(){return Ce},isSymbolAccessible:Ka,isArrayType:Tp,isTupleType:Gp,isArrayLikeType:Ap,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some((function(n){var t=n.name&&Wl(n.name),r=t&&Bo(t)?Ko(t):void 0,a=void 0===r?void 0:yi(e,r);return!!a&&kp(a)&&!Dd(ME(n),a)}))},getAllPossiblePropertiesOfTypes:function(n){var t=Ml(n);if(!(1048576&t.flags))return VE(t);for(var r=e.createSymbolTable(),a=0,i=n;a>",0,be),it=Qo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ot=Qo(void 0,void 0,void 0,e.emptyArray,Se,void 0,0,0),st=Qo(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ct=Qo(void 0,void 0,void 0,e.emptyArray,je,void 0,0,0),lt=wc(Re,!0),ut=new e.Map,dt={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},pt=Sb(be,be,be),ft=Sb(be,be,Le),mt=Sb(Ve,be,Ae),_t={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Hn||(Hn=ul("AsyncIterator",3,e))||tn},getGlobalIterableType:function(e){return jn||(jn=ul("AsyncIterable",1,e))||tn},getGlobalIterableIteratorType:function(e){return Kn||(Kn=ul("AsyncIterableIterator",1,e))||tn},getGlobalGeneratorType:function(e){return Wn||(Wn=ul("AsyncGenerator",3,e))||tn},resolveIterationType:Iv,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},gt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Fn||(Fn=ul("Iterator",3,e))||tn},getGlobalIterableType:_l,getGlobalIterableIteratorType:function(e){return Gn||(Gn=ul("IterableIterator",1,e))||tn},getGlobalGeneratorType:function(e){return Bn||(Bn=ul("Generator",3,e))||tn},resolveIterationType:function(e,n){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},yt=new e.Map,ht=!1,vt=new e.Map,bt=0,Et=0,Tt=0,St=!1,xt=0,Lt=Mu(""),At=Mu(0),Dt=Mu({negative:!1,base10Value:"0"}),Ct=[],It=[],Nt=[],Rt=0,kt=[],Ot=[],wt=[],Pt=[],Mt=[],Ft=[],Gt=[],Bt=[],Ut=[],Vt=[],jt=[],Ht=[],Kt=[],Wt=[],qt=[],zt=e.createDiagnosticCollection(),Jt=e.createDiagnosticCollection(),Xt=new e.Map(e.getEntries({string:Re,number:ke,bigint:Oe,boolean:Ge,symbol:Be,undefined:Ae})),Yt=Ml(e.arrayFrom(S.keys(),Mu)),Qt=new e.Map,Zt=new e.Map,$t=new e.Map,er=new e.Map,nr=new e.Map,tr=new e.Map,rr=e.createSymbolTable();return rr.set(re.escapedName,re),function(){for(var t=0,r=n.getSourceFiles();t=5||e.some(o.relatedInformation,(function(n){return 0===e.compareDiagnostics(n,s)||0===e.compareDiagnostics(n,a)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:a)},c=0,l=a||e.emptyArray;c1)}function vr(e){if(33554432&e.flags)return e;var n=k(e);return Ot[n]||(Ot[n]=new I)}function br(e){var n=R(e);return wt[n]||(wt[n]=new N)}function Er(n){return 294===n.kind&&!e.isExternalOrCommonJsModule(n)}function Tr(n,t,r){if(r){var a=ha(n.get(t));if(a){if(e.Debug.assert(0==(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&r)return a;if(2097152&a.flags){var i=Xr(a);if(i===he||i.flags&r)return a}}}}function Sr(t,r){var a=e.getSourceFileOfNode(t),i=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(t);if(a!==i){if(K&&(a.externalModuleIndicator||i.externalModuleIndicator)||!e.outFile(j)||qf(r)||8388608&t.flags)return!0;if(l(r,t))return!0;var s=n.getSourceFiles();return s.indexOf(a)<=s.indexOf(i)}if(t.pos<=r.pos&&(!e.isPropertyDeclaration(t)||!e.isThisProperty(r.parent)||t.initializer||t.exclamationToken)){if(195===t.kind){var c=e.getAncestor(r,195);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.posn.end)&&void 0===e.findAncestor(t,(function(t){if(t===n)return"quit";switch(t.kind){case 206:return!0;case 162:return!r||!(e.isPropertyDeclaration(n)&&t.parent===n.parent||e.isParameterPropertyDeclaration(n,n.parent)&&t.parent===n.parent.parent)||"quit";case 227:switch(t.parent.kind){case 166:case 164:case 167:return!0;default:return!1}default:return!1}}))}}function xr(n,t,r){var a=e.getEmitScriptTarget(j),i=t;if(e.isParameter(r)&&i.body&&n.valueDeclaration.pos>=i.body.pos&&n.valueDeclaration.end<=i.body.end&&a>=2){var o=br(i);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(i.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(n){switch(n.kind){case 206:case 205:case 248:case 165:return!1;case 164:case 166:case 167:case 285:return s(n.name);case 162:return e.hasStaticModifier(n)?a<99||!j.useDefineForClassFields:s(n.name);default:return e.isNullishCoalesce(n)||e.isOptionalChain(n)?a<7:e.isBindingElement(n)&&n.dotDotDotToken&&e.isObjectBindingPattern(n.parent)?a<4:!e.isTypeNode(n)&&(e.forEachChild(n,s)||!1)}}}function Lr(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),Ar(e,n,t,r,a,i,o,Tr,s)}function Ar(n,t,r,a,i,o,s,c,l){var u,d,p,f,m,_,g=n,y=!1,h=n,v=!1;e:for(;n;){if(n.locals&&!Er(n)&&(u=c(n.locals,t,r))){var b=!0;if(e.isFunctionLike(n)&&d&&d!==n.body?(r&u.flags&788968&&307!==d.kind&&(b=!!(262144&u.flags)&&(d===n.type||159===d.kind||158===d.kind)),r&u.flags&3&&(xr(u,n,d)?b=!1:1&u.flags&&(b=159===d.kind||d===n.type&&!!e.findAncestor(u.valueDeclaration,e.isParameter)))):183===n.kind&&(b=d===n.trueType),b)break e;u=void 0}switch(y=y||Dr(n,d),n.kind){case 294:if(!e.isExternalOrCommonJsModule(n))break;v=!0;case 253:var E=va(n).exports||U;if(294===n.kind||e.isModuleDeclaration(n)&&8388608&n.flags&&!e.isGlobalScopeAugmentation(n)){if(u=E.get("default")){var T=e.getLocalSymbolForExportDefault(u);if(T&&u.flags&r&&T.escapedName===t)break e;u=void 0}var S=E.get(t);if(S&&2097152===S.flags&&(e.getDeclarationOfKind(S,267)||e.getDeclarationOfKind(S,266)))break}if("default"!==t&&(u=c(E,t,2623475&r))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||u.declarations.some(e.isJSDocTypeAlias))break e;u=void 0}break;case 252:if(u=c(va(n).exports,t,8&r))break e;break;case 162:if(!e.hasSyntacticModifier(n,32)){var x=Da(n.parent);x&&x.locals&&c(x.locals,t,111551&r)&&(f=n)}break;case 249:case 218:case 250:if(u=c(va(n).members||U,t,788968&r)){if(!Nr(u,n)){u=void 0;break}if(d&&e.hasSyntacticModifier(d,32))return void or(h,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(218===n.kind&&32&r){var L=n.name;if(L&&t===L.escapedText){u=n.symbol;break e}}break;case 220:if(d===n.expression&&93===n.parent.token){var A=n.parent.parent;if(e.isClassLike(A)&&(u=c(va(A).members,t,788968&r)))return void(a&&or(h,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 157:if(_=n.parent.parent,(e.isClassLike(_)||250===_.kind)&&(u=c(va(_).members,t,788968&r)))return void or(h,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 206:if(j.target>=2)break;case 164:case 165:case 166:case 167:case 248:if(3&r&&"arguments"===t){u=oe;break e}break;case 205:if(3&r&&"arguments"===t){u=oe;break e}if(16&r){var D=n.name;if(D&&t===D.escapedText){u=n.symbol;break e}}break;case 160:n.parent&&159===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||249===n.parent.kind)&&(n=n.parent);break;case 327:case 320:case 321:n=e.getJSDocHost(n);break;case 159:d&&(d===n.initializer||d===n.name&&e.isBindingPattern(d))&&(m||(m=n));break;case 195:if(d&&(d===n.initializer||d===n.name&&e.isBindingPattern(d)))159===(k=e.getRootDeclaration(n)).kind&&(m||(m=n))}Cr(n)&&(p=n),d=n,n=n.parent}if(!o||!u||p&&u===p.symbol||(u.isReferenced|=r),!u){if(d&&(e.Debug.assert(294===d.kind),d.commonJsModuleIndicator&&"exports"===t&&r&d.symbol.flags))return d.symbol;s||(u=c(te,t,r))}if(!u&&g&&e.isInJSFile(g)&&g.parent&&e.isRequireCall(g.parent,!1))return se;if(u){if(a){if(f&&(99!==j.target||!j.useDefineForClassFields)){var C=f.name;return void or(h,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(C),Ir(i))}if(h&&(2&r||(32&r||384&r)&&111551==(111551&r))){var I=La(u);(2&I.flags||32&I.flags||384&I.flags)&&function(n,t){if(e.Debug.assert(!!(2&n.flags||32&n.flags||384&n.flags)),67108881&n.flags&&32&n.flags)return;var r=e.find(n.declarations,(function(n){return e.isBlockOrCatchScoped(n)||e.isClassLike(n)||252===n.kind}));if(void 0===r)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&r.flags||Sr(r,t))){var a=void 0,i=e.declarationNameToString(e.getNameOfDeclaration(r));2&n.flags?a=or(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,i):32&n.flags?a=or(t,e.Diagnostics.Class_0_used_before_its_declaration,i):256&n.flags?a=or(t,e.Diagnostics.Enum_0_used_before_its_declaration,i):(e.Debug.assert(!!(128&n.flags)),j.preserveConstEnums&&(a=or(t,e.Diagnostics.Enum_0_used_before_its_declaration,i))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,i))}}(I,h)}if(u&&v&&111551==(111551&r)&&!(4194304&g.flags)){var N=ha(u);e.length(N.declarations)&&e.every(N.declarations,(function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports}))&&cr(!j.allowUmdGlobalAccess,h,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(u&&m&&!y&&111551==(111551&r)){var R=ha(Jo(u)),k=e.getRootDeclaration(m);R===va(m)?or(h,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(m.name)):R.valueDeclaration&&R.valueDeclaration.pos>m.pos&&k.parent.locals&&c(k.parent.locals,R.escapedName,r)===R&&or(h,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(m.name),e.declarationNameToString(h))}u&&h&&111551&r&&2097152&u.flags&&function(n,t,r){if(!e.isValidTypeOnlyAliasUseSite(r)){var a=Zr(n);if(a){var i=e.typeOnlyDeclarationIsExport(a),o=i?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=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(t);e.addRelatedInfo(or(r,o,c),e.createDiagnosticForNode(a,s,c))}}}(u,t,h)}return u}if(a&&!(h&&(function(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||NE(n)||qf(n))return!1;var a=e.getThisContainer(n,!1),i=a;for(;i;){if(e.isClassLike(i.parent)){var o=va(i.parent);if(!o)break;if(Zs(to(o),t))return or(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ir(r),Qa(o)),!0;if(i===a&&!e.hasSyntacticModifier(i,32))if(Zs(Io(o).thisType,t))return or(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ir(r)),!0}i=i.parent}return!1}(h,t,i)||Rr(h)||function(n,t,r){var a=1920|(e.isInJSFile(n)?111551:0);if(r===a){var i=Jr(Lr(n,t,788968&~a,void 0,void 0,!1)),o=n.parent;if(i){if(e.isQualifiedName(o)){e.Debug.assert(o.left===n,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Zs(Io(i),s))return or(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(t),e.unescapeLeadingUnderscores(s)),!0}return or(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}(h,t,r)||function(n,t){if(kr(t)&&267===n.parent.kind)return or(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(h,t)||function(n,t,r){if(111551&r){if(kr(t))return or(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var a=Jr(Lr(n,t,788544,void 0,void 0,!1));if(a&&!(1024&a.flags)){var i=function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return or(n,i,e.unescapeLeadingUnderscores(t)),!0}}return!1}(h,t,r)||function(n,t,r){if(111127&r){if(Jr(Lr(n,t,1024,void 0,void 0,!1)))return or(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(788544&r){if(Jr(Lr(n,t,1536,void 0,void 0,!1)))return or(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}(h,t,r)||function(n,t,r){if(788584&r){var a=Jr(Lr(n,t,111127,void 0,void 0,!1));if(a&&!(1920&a.flags))return or(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}(h,t,r)))){var O=void 0;if(l&&Rt<10&&(O=Fg(g,t,r))){var w=Qa(O),P=or(h,l,Ir(i),w);O.valueDeclaration&&e.addRelatedInfo(P,e.createDiagnosticForNode(O.valueDeclaration,e.Diagnostics._0_is_declared_here,w))}O||or(h,a,Ir(i)),Rt++}}function Dr(n,t){return 206!==n.kind&&205!==n.kind?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||162===n.kind&&!e.hasSyntacticModifier(n,32))&&(!t||t!==n.name):(!t||t!==n.name)&&(!(!n.asteriskToken&&!e.hasSyntacticModifier(n,256))||!e.getImmediatelyInvokedFunctionExpression(n))}function Cr(e){switch(e.kind){case 248:case 249:case 250:case 252:case 251:case 253:return!0;default:return!1}}function Ir(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function Nr(n,t){for(var r=0,a=n.declarations;r=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=r.exports.get("export=").valueDeclaration,l=or(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Qa(r),s);e.addRelatedInfo(l,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(n,t){var r,a;if(null===(r=n.exports)||void 0===r?void 0:r.has(t.symbol.escapedName))or(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Qa(n),Qa(t.symbol));else{var i=or(t.name,e.Diagnostics.Module_0_has_no_default_export,Qa(n)),o=null===(a=n.exports)||void 0===a?void 0:a.get("__export");if(o){var s=e.find(o.declarations,(function(n){var t,r;return!!(e.isExportDeclaration(n)&&n.moduleSpecifier&&(null===(r=null===(t=ia(n,n.moduleSpecifier))||void 0===t?void 0:t.exports)||void 0===r?void 0:r.has("default")))}));s&&e.addRelatedInfo(i,e.createDiagnosticForNode(s,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(r,n);return Yr(n,a,void 0,!1),a}}function Hr(n,t,r){var a;void 0===r&&(r=!1);var o=ia(n,n.moduleSpecifier),s=t.propertyName||t.name,c="default"===s.escapedText&&!(!j.allowSyntheticDefaultImports&&!j.esModuleInterop),l=ua(o,n.moduleSpecifier,r,c);if(l&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var u=void 0;u=o&&o.exports&&o.exports.get("export=")?Zs(to(l),s.escapedText):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return Jr(Zs(Vu(t),n))}}(l,s.escapedText),u=Jr(u,r);var d=function(e,n,t){var r;if(1536&e.flags){var a=(null!==(r=n.propertyName)&&void 0!==r?r:n.name).escapedText,i=ma(e).get(a),o=Jr(i,t);return Yr(n,i,o,!1),o}}(l,t,r);if(void 0===d&&"default"===s.escapedText)Vr(e.find(o.declarations,e.isSourceFile),o,r)&&(d=la(o,r)||Jr(o,r));var p=d&&u&&d!==u?function(n,t){if(n===he&&t===he)return he;if(790504&n.flags)return n;var r=ur(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),n.exports&&(r.exports=new e.Map(n.exports)),r}(u,d):d||u;if(!p){var f=ta(o,n),m=e.declarationNameToString(s),_=Gg(s,l);if(void 0!==_){var g=Qa(_),y=or(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,f,m,g);_.valueDeclaration&&e.addRelatedInfo(y,e.createDiagnosticForNode(_.valueDeclaration,e.Diagnostics._0_is_declared_here,g))}else(null===(a=o.exports)||void 0===a?void 0:a.has("default"))?or(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,f,m):function(n,t,r,a,o){var s,c=null===(s=a.valueDeclaration.locals)||void 0===s?void 0:s.get(t.escapedText),l=a.exports;if(c){var u=null==l?void 0:l.get("export=");if(u)xa(u,c)?function(n,t,r,a){if(K>=e.ModuleKind.ES2015){var i=j.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;or(t,i,r)}else if(e.isInJSFile(n)){i=j.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;or(t,i,r)}else{i=j.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;or(t,i,r,r,a)}}(n,t,r,o):or(t,e.Diagnostics.Module_0_has_no_exported_member_1,o,r);else{var d=l?e.find(sc(l),(function(e){return!!xa(e,c)})):void 0,p=d?or(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,r,Qa(d)):or(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,r);e.addRelatedInfo.apply(void 0,i([p],e.map(c.declarations,(function(n,t){return e.createDiagnosticForNode(n,0===t?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,r)}))))}}else or(t,e.Diagnostics.Module_0_has_no_exported_member_1,o,r)}(n,s,m,o,f)}return p}}function Kr(e,n,t){var r=e.parent.parent.moduleSpecifier?Hr(e.parent.parent,e,t):ra(e.propertyName||e.name,n,!1,t);return Yr(e,void 0,r,!1),r}function Wr(n,t){if(e.isClassExpression(n))return Vh(n).symbol;if(e.isEntityName(n)||e.isEntityNameExpression(n)){var r=ra(n,901119,!0,t);return r||(Vh(n),br(n).resolvedSymbol)}}function qr(n,t){switch(void 0===t&&(t=!1),n.kind){case 257:return Gr(n,t);case 259:return jr(n,t);case 260:return function(e,n){var t=e.parent.parent.moduleSpecifier,r=ia(e,t),a=ua(r,t,n,!1);return Yr(e,r,a,!1),a}(n,t);case 266:return function(e,n){var t=e.parent.moduleSpecifier,r=t&&ia(e,t),a=t&&ua(r,t,n,!1);return Yr(e,r,a,!1),a}(n,t);case 262:return function(e,n){var t=Hr(e.parent.parent.parent,e,n);return Yr(e,void 0,t,!1),t}(n,t);case 267:return Kr(n,901119,t);case 263:case 213:return function(n,t){var r=Wr(e.isExportAssignment(n)?n.expression:n.right,t);return Yr(n,void 0,r,!1),r}(n,t);case 256:return function(e,n){var t=la(e.parent.symbol,n);return Yr(e,void 0,t,!1),t}(n,t);case 286:return ra(n.name,901119,!0,t);case 285:return function(e,n){return Wr(e.initializer,n)}(n,t);case 198:return function(n,t){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&62===n.parent.operatorToken.kind)return Wr(n.parent.right,t)}(n,t);default:return e.Debug.fail()}}function zr(e,n){return void 0===n&&(n=901119),!!e&&(2097152==(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function Jr(e,n){return!n&&zr(e)?Xr(e):e}function Xr(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=vr(n);if(t.target)t.target===ve&&(t.target=he);else{t.target=ve;var r=Pr(n);if(!r)return e.Debug.fail();var a=qr(r);t.target===ve?t.target=a||he:or(r,e.Diagnostics.Circular_definition_of_import_alias_0,Qa(n))}return t.target}function Yr(n,t,r,a){if(!n)return!1;var i=va(n);if(e.isTypeOnlyImportOrExportDeclaration(n))return vr(i).typeOnlyDeclaration=n,!0;var o=vr(i);return Qr(o,t,a)||Qr(o,r,a)}function Qr(n,t,r){var a,i,o;if(t&&(void 0===n.typeOnlyDeclaration||r&&!1===n.typeOnlyDeclaration)){var s=null!==(i=null===(a=t.exports)||void 0===a?void 0:a.get("export="))&&void 0!==i?i:t,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=null!==(o=null!=c?c:vr(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!n.typeOnlyDeclaration}function Zr(e){if(2097152&e.flags)return vr(e).typeOnlyDeclaration||void 0}function $r(e){var n=va(e),t=Xr(n);t&&((t===he||111551&t.flags&&!$E(t)&&!Zr(n))&&ea(n))}function ea(n){var t=vr(n);if(!t.referenced){t.referenced=!0;var r=Pr(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var a=Jr(n);(a===he||111551&a.flags)&&Vh(r.moduleReference)}}}function na(n,t){return 78===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),78===n.kind||156===n.parent.kind?ra(n,1920,!1,t):(e.Debug.assert(257===n.parent.kind),ra(n,901119,!1,t))}function ta(e,n){return e.parent?ta(e.parent,n)+"."+Qa(e):Qa(e,n,void 0,20)}function ra(n,t,r,a,i){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(78===n.kind){var c=t===s||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:Kf(e.getFirstIdentifier(n)),l=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?function(n,t){if(nl(n.parent)){var r=function(n){if(e.findAncestor(n,(function(n){return e.isJSDocNode(n)||4194304&n.flags?e.isJSDocTypeAlias(n):"quit"})))return;var t=e.getJSDocHost(n);if(e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&3===e.getAssignmentDeclarationKind(t.expression)){if(a=va(t.expression.left))return aa(a)}if((e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)){if(a=va(t.parent.parent.left))return aa(a)}var r=e.getEffectiveJSDocHost(n);if(r&&e.isFunctionLike(r)){var a;return(a=va(r))&&a.valueDeclaration}}(n.parent);if(r)return Lr(r,n.escapedText,t,void 0,n,!0)}}(n,t):void 0;if(!(o=ha(Lr(i||n,n.escapedText,t,r||l?void 0:c,n,!0))))return ha(l)}else{if(156!==n.kind&&198!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var u=156===n.kind?n.left:n.expression,d=156===n.kind?n.right:n.name,p=ra(u,s,r,!1,i);if(!p||e.nodeIsMissing(d))return;if(p===he)return p;if(e.isInJSFile(n)&&p.valueDeclaration&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&Vy(p.valueDeclaration.initializer)){var f=p.valueDeclaration.initializer.arguments[0],m=ia(f,f);if(m){var _=la(m);_&&(p=_)}}if(!(o=ha(Tr(ma(p),d.escapedText,t))))return void(r||or(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,ta(p),e.declarationNameToString(d)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(n)&&e.isEntityName(n)&&(2097152&o.flags||263===n.parent.kind)&&Yr(e.getAliasDeclarationFromName(n),o,void 0,!0),o.flags&t||a?o:Xr(o)}}function aa(n){var t=n.parent.valueDeclaration;if(t)return(e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0)||t}function ia(n,t,r){var a=e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return oa(n,t,r?void 0:a)}function oa(n,t,r,a){return void 0===a&&(a=!1),e.isStringLiteralLike(t)?sa(n,t.text,r,t,a):void 0}function sa(t,r,a,i,o){(void 0===o&&(o=!1),e.startsWith(r,"@types/"))&&or(i,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=lc(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),l=e.getResolvedModule(c,r),u=l&&e.getResolutionDiagnostic(j,l),d=l&&!u&&n.getSourceFile(l.resolvedFileName);if(d)return d.symbol?(l.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(l.extension)&&ca(!1,i,l,r),ha(d.symbol)):void(a&&or(i,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(pn){var p=e.findBestPatternMatch(pn,(function(e){return e.pattern}),r);if(p){var f=fn&&fn.get(r);return ha(f?f:p.symbol)}}if(l&&!e.resolutionExtensionIsTSOrJson(l.extension)&&void 0===u||u===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?or(i,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,l.resolvedFileName):ca(Y&&!!a,i,l,r);else if(a){if(l){var m=n.getProjectReferenceRedirect(l.resolvedFileName);if(m)return void or(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,m,l.resolvedFileName)}if(u)or(i,u,r,l.resolvedFileName);else{var _=e.tryExtractTSExtension(r);if(_)or(i,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,_,e.removeExtension(r,_));else!j.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(j)?or(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):or(i,a,r)}}}function ca(n,t,r,a){var i,o=r.packageId,s=r.resolvedFileName,c=!e.isExternalModuleNameRelative(a)&&o?(i=o.name,m().has(e.getTypesPackageName(i))?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,a,e.mangleScopedPackageName(o.name))):void 0;cr(n,t,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,s))}function la(n,t){if(null==n?void 0:n.exports){var r=function(n,t){if(!n||n===he||n===t||1===t.exports.size||2097152&n.flags)return n;var r=vr(n);if(r.cjsExportMerged)return r.cjsExportMerged;var a=33554432&n.flags?n:fr(n);a.flags=512|a.flags,void 0===a.exports&&(a.exports=e.createSymbolTable());return t.exports.forEach((function(e,n){"export="!==n&&a.exports.set(n,a.exports.has(n)?mr(a.exports.get(n),e):e)})),vr(a).cjsExportMerged=a,r.cjsExportMerged=a}(ha(Jr(n.exports.get("export="),t)),ha(n));return ha(r)||n}}function ua(n,t,r,a){var i=la(n,r);if(!r&&i){if(!(a||1539&i.flags||e.getDeclarationOfKind(i,294))){var o=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return or(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),i}if(j.esModuleInterop){var s=t.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=to(i),l=$s(c,0);if(l&&l.length||(l=$s(c,1)),l&&l.length){var u=Uy(c,i,n),d=ur(i.flags,i.escapedName);d.declarations=i.declarations?i.declarations.slice():[],d.parent=i.parent,d.target=i,d.originatingImport=s,i.valueDeclaration&&(d.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),i.members&&(d.members=new e.Map(i.members)),i.exports&&(d.exports=new e.Map(i.exports));var p=xs(u);return d.type=Ma(d,p.members,e.emptyArray,e.emptyArray,p.stringIndexInfo,p.numberIndexInfo),d}}}}return i}function da(e){return void 0!==e.exports.get("export=")}function pa(e){return sc(_a(e))}function fa(e,n){var t=_a(n);if(t)return t.get(e)}function ma(e){return 6256&e.flags?qo(e,"resolvedExports"):1536&e.flags?_a(e):e.exports||U}function _a(e){var n=vr(e);return n.resolvedExports||(n.resolvedExports=ya(e))}function ga(n,t,r,a){t&&t.forEach((function(t,i){if("default"!==i){var o=n.get(i);if(o){if(r&&a&&o&&Jr(o)!==Jr(t)){var s=r.get(i);s.exportsWithDuplicate?s.exportsWithDuplicate.push(a):s.exportsWithDuplicate=[a]}}else n.set(i,t),r&&a&&r.set(i,{specifierText:e.getTextOfNode(a.moduleSpecifier)})}}))}function ya(n){var t=[];return function n(r){if(!(r&&r.exports&&e.pushIfUnique(t,r)))return;var a=new e.Map(r.exports),i=r.exports.get("__export");if(i){for(var o=e.createSymbolTable(),s=new e.Map,c=0,l=i.declarations;c=u?l.substr(0,u-"...".length)+"...":l}function ei(e,n){var t=ti(e.symbol)?$a(e,e.symbol.valueDeclaration):$a(e),r=ti(n.symbol)?$a(n,n.symbol.valueDeclaration):$a(n);return t===r&&(t=ni(e),r=ni(n)),[t,r]}function ni(e){return $a(e,void 0,64)}function ti(n){return n&&n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!yd(n.valueDeclaration)}function ri(e){return void 0===e&&(e=0),814775659&e}function ai(n,t,r,a){return void 0===r&&(r=16384),a?i(a).getText():e.usingSingleLineStringWriter(i);function i(a){var i=e.factory.createTypePredicateNode(2===n.kind||3===n.kind?e.factory.createToken(127):void 0,1===n.kind||3===n.kind?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&ne.typeToTypeNode(n.type,t,70222336|ri(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,i,s,a),a}}function ii(e){return 8===e?"private":16===e?"protected":"public"}function oi(n){return n&&n.parent&&254===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function si(n){return 294===n.kind||e.isAmbientModule(n)}function ci(n,t){var r=vr(n).nameType;if(r){if(384&r.flags){var a=""+r.value;return e.isIdentifierText(a,j.target)||U_(a)?U_(a)&&e.startsWith(a,"-")?"["+a+"]":a:'"'+e.escapeString(a,34)+'"'}if(8192&r.flags)return"["+li(r.symbol,t)+"]"}}function li(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],si)!==e.findAncestor(t.enclosingDeclaration,si)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,(function(n){return e.getNameOfDeclaration(n)?n:void 0})),a=r&&e.getNameOfDeclaration(r);if(r&&a){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(a)&&!(4096&e.getCheckFlags(n))){var i=vr(n).nameType;if(i&&384&i.flags){var o=ci(n,t);if(void 0!==o)return o}}return e.declarationNameToString(a)}if(r||(r=n.declarations[0]),r.parent&&246===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 218:case 205:case 206:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),218===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ci(n,t);return void 0!==s?s:e.symbolName(n)}function ui(n){if(n){var t=br(n);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(n.kind){case 320:case 327:case 321:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 195:return ui(n.parent.parent);case 246:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 253:case 249:case 250:case 251:case 248:case 252:case 257:if(e.isExternalModuleAugmentation(n))return!0;var t=gi(n);return 1&e.getCombinedModifierFlags(n)||257!==n.kind&&294!==t.kind&&8388608&t.flags?ui(t):Er(t);case 162:case 161:case 166:case 167:case 164:case 163:if(e.hasEffectiveModifier(n,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 ui(n.parent);case 259:case 260:case 262:return!1;case 158:case 294:case 256:return!0;case 263:default:return!1}}()),t.isVisible}return!1}function di(n,t){var r,a,i;return n.parent&&263===n.parent.kind?r=Lr(n,n.escapedText,2998271,void 0,n,!1):267===n.parent.kind&&(r=Kr(n.parent,2998271)),r&&((i=new e.Set).add(k(r)),function n(r){e.forEach(r,(function(r){var o=wr(r)||r;if(t?br(r).isVisible=!0:(a=a||[],e.pushIfUnique(a,o)),e.isInternalModuleImportEqualsDeclaration(r)){var s=r.moduleReference,c=Lr(r,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&i&&e.tryAddToSet(i,k(c))&&n(c.declarations)}}))}(r.declarations)),a}function pi(e,n){var t=fi(e,n);if(t>=0){for(var r=Ct.length,a=t;a=0;t--){if(mi(Ct[t],Nt[t]))return-1;if(Ct[t]===e&&Nt[t]===n)return t}return-1}function mi(n,t){switch(t){case 0:return!!vr(n).type;case 5:return!!br(n).resolvedEnumType;case 2:return!!vr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved}return e.Debug.assertNever(t)}function _i(){return Ct.pop(),Nt.pop(),It.pop()}function gi(n){return e.findAncestor(e.getRootDeclaration(n),(function(e){switch(e.kind){case 246:case 247:case 262:case 261:case 260:case 259:return!1;default:return!0}})).parent}function yi(e,n){var t=Zs(e,n);return t?to(t):void 0}function hi(e){return e&&0!=(1&e.flags)}function vi(e){var n=va(e);return n&&vr(n).type||Ci(e,!1)}function bi(n,t,r){if(131072&(n=Em(n,(function(e){return!(98304&e.flags)}))).flags)return Ze;if(1048576&n.flags)return Sm(n,(function(e){return bi(e,t,r)}));var a=Ml(e.map(t,Wl));if(tu(n)||ru(a)){if(131072&a.flags)return n;var i=Xn||(Xn=ll("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return i?zc(i,[n,a]):Se}for(var o=e.createSymbolTable(),s=0,c=Cs(n);s=2?(a=be,yl(_l(!0),[a])):Ln;var c=e.map(i,(function(n){return e.isOmittedExpression(n)?be:Bi(n,t,r)})),l=e.findLastIndex(i,(function(n){return!(n===s||e.isOmittedExpression(n)||P_(n))}),i.length-1)+1,u=Ll(c,e.map(i,(function(e,n){return e===s?4:n>=l?2:1})));return t&&((u=jc(u)).pattern=n,u.objectFlags|=1048576),u}function Vi(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),193===n.kind?function(n,t,r){var a,i=e.createSymbolTable(),o=1048704;e.forEach(n.elements,(function(e){var n=e.propertyName||e.name;if(e.dotDotDotToken)a=wc(be,!1);else{var s=Wl(n);if(Bo(s)){var c=Ko(s),l=ur(4|(e.initializer?16777216:0),c);l.type=Bi(e,t,r),l.bindingElement=e,i.set(l.escapedName,l)}else o|=512}}));var s=Ma(void 0,i,e.emptyArray,e.emptyArray,a,void 0);return s.objectFlags|=o,t&&(s.pattern=n,s.objectFlags|=1048576),s}(n,t,r):Ui(n,t,r)}function ji(e,n){return Hi(Ci(e,!0),e,n)}function Hi(n,t,r){return n?(r&&mf(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==va(t)&&(n=Be),df(n)):(n=e.isParameter(t)&&t.dotDotDotToken?Ln:be,r&&(Ki(t)||ff(t,n)),n)}function Ki(n){var t=e.getRootDeclaration(n);return Tv(159===t.kind?t.parent:t)}function Wi(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return Vu(t)}function qi(n){var t=vr(n);if(!t.type){var r=function(n){if(4194304&n.flags)return(t=Io(ba(n))).typeParameters?Vc(t,e.map(t.typeParameters,(function(e){return be}))):t;var t;if(n===se)return be;if(134217728&n.flags){var r=va(e.getSourceFileOfNode(n.valueDeclaration)),a=e.createSymbolTable();return a.set("exports",r),Ma(n,a,e.emptyArray,e.emptyArray,void 0,void 0)}var i,o=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o)){var s=o;if(!s.type)return be;var c=ME(s.type);return hi(c)||c===Le?c:Se}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?df(wp(iv(o.statements[0].expression))):Ze;if(!pi(n,0))return 512&n.flags&&!(67108864&n.flags)?$i(n):no(n);if(263===o.kind)i=Hi(Vh(o.expression),o);else if(e.isBinaryExpression(o)||e.isInJSFile(o)&&(e.isCallExpression(o)||(e.isPropertyAccessExpression(o)||e.isBindableStaticElementAccessExpression(o))&&e.isBinaryExpression(o.parent)))i=wi(n);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&n.flags)return $i(n);i=e.isBinaryExpression(o.parent)?wi(n):Wi(o)||be}else if(e.isPropertyAssignment(o))i=Wi(o)||Jh(o);else if(e.isJsxAttribute(o))i=Wi(o)||J_(o);else if(e.isShorthandPropertyAssignment(o))i=Wi(o)||zh(o.name,0);else if(e.isObjectLiteralMethod(o))i=Wi(o)||Xh(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))i=ji(o,!0);else if(e.isEnumDeclaration(o))i=$i(n);else if(e.isEnumMember(o))i=eo(n);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(n));i=Qi(n)}if(!_i())return 512&n.flags&&!(67108864&n.flags)?$i(n):no(n);return i}(n);t.type||(t.type=r)}return t.type}function zi(n){if(n)return 166===n.kind?e.getEffectiveReturnTypeNode(n):e.getEffectiveSetAccessorTypeAnnotationNode(n)}function Ji(e){var n=zi(e);return n&&Vu(n)}function Xi(e){return vc(_c(e))}function Yi(n){var t=vr(n);return t.type||(t.type=function(n){if(!pi(n,0))return Se;var t=Qi(n);if(!_i()){if(t=be,Y)or(e.getDeclarationOfKind(n,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,Qa(n))}return t}(n))}function Qi(n){var t=e.getDeclarationOfKind(n,166),r=e.getDeclarationOfKind(n,167);if(t&&e.isInJSFile(t)){var a=Li(t);if(a)return a}var i=Ji(t);if(i)return i;var o=Ji(r);return o||(t&&t.body?ph(t):(r?Tv(r)||cr(Y,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Qa(n)):(e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),Tv(t)||cr(Y,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Qa(n))),be))}function Zi(n){var t=go(Eo(n));return 8650752&t.flags?t:2097152&t.flags?e.find(t.types,(function(e){return!!(8650752&e.flags)})):void 0}function $i(n){var t=vr(n),r=t;if(!t.type){var a=n.valueDeclaration&&e.getDeclarationOfExpando(n.valueDeclaration);if(a){var i=wy(n,va(a));i&&(n=t=i)}r.type=t.type=function(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return be;if(t&&(213===t.kind||e.isAccessExpression(t)&&213===t.parent.kind))return wi(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=la(n);if(r!==n){if(!pi(n,0))return Se;var a=ha(n.exports.get("export=")),i=wi(a,a===r?void 0:r);return _i()?i:no(n)}}var o=Ra(16,n);if(32&n.flags){var s=Zi(n);return s?Hl([o,s]):o}return q&&16777216&n.flags?Yp(o):o}(n)}return t.type}function eo(e){var n=vr(e);return n.type||(n.type=Do(e))}function no(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(or(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Qa(n)),Se):(Y&&(159!==t.kind||t.initializer)&&or(n.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,Qa(n)),be)}function to(n){var t=e.getCheckFlags(n);return 65536&t?function(n){var t=vr(n);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?Ml(t.deferralConstituents):Hl(t.deferralConstituents)),t.type}(n):1&t?function(e){var n=vr(e);if(!n.type){if(!pi(e,0))return n.type=Se;var t=pd(to(n.target),n.mapper);_i()||(t=no(e)),n.type=t}return n.type}(n):262144&t?function(n){if(!n.type){if(!pi(n,0))return n.mappedType.containsError=!0,Se;var t=pd(gs(n.mappedType.target||n.mappedType),n.mapper),r=q&&16777216&n.flags&&!Ch(t,49152)?Yp(t):524288&n.checkFlags?am(t,524288):t;_i()||(or(d,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Qa(n),$a(n.mappedType)),r=Se),n.type=r,n.mapper=void 0}return n.type}(n):8192&t?function(e){return Cf(e.propertyType,e.mappedType,e.constraintType)}(n):7&n.flags?qi(n):9136&n.flags?$i(n):8&n.flags?eo(n):98304&n.flags?Yi(n):2097152&n.flags?function(e){var n=vr(e);if(!n.type){var t=Xr(e);n.type=111551&t.flags?to(t):Se}return n.type}(n):Se}function ro(n,t){return void 0!==n&&void 0!==t&&0!=(4&e.getObjectFlags(n))&&n.target===t}function ao(n){return 4&e.getObjectFlags(n)?n.target:n}function io(n,t){return function n(r){if(7&e.getObjectFlags(r)){var a=ao(r);return a===t||e.some(ho(a),n)}if(2097152&r.flags)return e.some(r.types,n);return!1}(n)}function oo(n,t){for(var r=0,a=t;r0)return!0;if(8650752&e.flags){var n=Ps(e);return!!n&&uo(n)}return!1}function fo(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function mo(n,t,r){var a=e.length(t),i=e.isInJSFile(r);return e.filter(ec(n,1),(function(n){return(i||a>=fc(n.typeParameters))&&a<=e.length(n.typeParameters)}))}function _o(n,t,r){var a=mo(n,t,r),i=e.map(t,Vu);return e.sameMap(a,(function(n){return e.some(n.typeParameters)?Lc(n,i,e.isInJSFile(r)):n}))}function go(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),a=fo(n);if(!a)return n.resolvedBaseConstructorType=Ae;if(!pi(n,1))return Se;var i=iv(a.expression);if(r&&a!==r&&(e.Debug.assert(!r.typeArguments),iv(r.expression)),2621440&i.flags&&xs(i),!_i())return or(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Qa(n.symbol)),n.resolvedBaseConstructorType=Se;if(!(1&i.flags||i===Ne||po(i))){var o=or(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,$a(i));if(262144&i.flags){var s=Fc(i),c=Le;if(s){var l=ec(s,1);l[0]&&(c=Ec(l[0]))}e.addRelatedInfo(o,e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Qa(i.symbol),$a(c)))}return n.resolvedBaseConstructorType=Se}n.resolvedBaseConstructorType=i}return n.resolvedBaseConstructorType}function yo(n,t){or(n,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,$a(t,void 0,2))}function ho(n){if(!n.baseTypesResolved){if(pi(n,7)&&(8&n.objectFlags?n.resolvedBaseTypes=[vo(n)]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=js(go(n));if(!(2621441&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,a=fo(n),i=t.symbol?Io(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var n=e.outerTypeParameters;if(n){var t=n.length-1,r=Kc(e);return n[t].symbol!==r[t].symbol}return!0}(i))r=qc(a,t.symbol);else if(1&t.flags)r=t;else{var o=_o(t,a.typeArguments,a);if(!o.length)return or(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=Ec(o[0])}if(r===Se)return n.resolvedBaseTypes=e.emptyArray;var s=zs(r);if(!bo(s)){var c=Qs(void 0,r),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,$a(s));return zt.add(e.createDiagnosticForNodeFromMessageChain(a.expression,l)),n.resolvedBaseTypes=e.emptyArray}if(n===s||io(s,n))return or(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,$a(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray;n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0);n.resolvedBaseTypes=[s]}(n),64&n.symbol.flags&&function(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t0)return;for(var a=1;a1&&(r=void 0===r?a:-1);for(var i=0,o=n[a];i1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)u=af(d,Hl(e.mapDefined(c,(function(e){return e.thisParameter&&to(e.thisParameter)}))));(l=$o(s,c)).thisParameter=u}(t||(t=[])).push(l)}}}}if(!e.length(t)&&-1!==r){for(var p=n[void 0!==r?r:0],f=p.slice(),m=function(n){if(n!==p){var t=n[0];if(e.Debug.assert(!!t,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(f=t.typeParameters&&e.some(f,(function(e){return!!e.typeParameters}))?void 0:e.map(f,(function(n){return function(n,t){var r=n.declaration,a=function(e,n){for(var t=eh(e),r=eh(n),a=t>=r?e:n,i=a===e?n:e,o=a===e?t:r,s=th(e)||th(n),c=s&&!th(a),l=new Array(o+(c?1:0)),u=0;u=nh(a)&&u>=nh(i),g=u>=t?void 0:Jy(e,u),y=u>=r?void 0:Jy(n,u),h=ur(1|(_&&!m?16777216:0),(g===y?g:g?y?void 0:g:y)||"arg"+u);h.type=m?vl(f):f,l[u]=h}if(c){var v=ur(1,"args");v.type=vl(Qy(i,o)),l[o]=v}return l}(n,t),i=function(e,n){if(!e||!n)return e||n;var t=Hl([to(e),to(n)]);return af(e,t)}(n.thisParameter,t.thisParameter),o=Math.max(n.minArgumentCount,t.minArgumentCount),s=Qo(r,n.typeParameters||t.typeParameters,i,a,void 0,void 0,o,19&(n.flags|t.flags));return s.unionSignatures=e.concatenate(n.unionSignatures||[n],[t]),s}(n,t)}))))return"break"}},_=0,g=n;_0})),r=e.map(n,uo);if(t>0&&t===e.countWhere(r,(function(e){return e}))){var a=r.indexOf(!0);r[a]=!1}return r}function us(n){for(var t,r,a,i,o=n.types,s=ls(o),c=e.countWhere(s,(function(e){return e})),l=function(l){var u=n.types[l];if(!s[l]){var d=ec(u,1);d.length&&c>0&&(d=e.map(d,(function(e){var n=Zo(e);return n.resolvedReturnType=function(e,n,t,r){for(var a=[],i=0;i=d&&o<=p){var f=p?Dc(u,mc(i,u.typeParameters,d,a)):Zo(u);f.typeParameters=n.localTypeParameters,f.resolvedReturnType=n,s.push(f)}}return s}(u)),n.constructSignatures=a}}}function fs(n){if(131069&n.flags)return n;if(4194304&n.flags){var t=js(n.type);return Bp(t)?Il(t):Xl(t)}if(16777216&n.flags){if(n.root.isDistributive){var r=n.checkType,a=fs(r);if(a!==r)return dd(n,ed(n.root.checkType,a,n.mapper))}return n}return 1048576&n.flags?Ml(e.sameMap(n.types,fs)):2097152&n.flags?Hl(e.sameMap(n.types,fs)):Ve}function ms(e){return e.typeParameter||(e.typeParameter=Co(va(e.declaration.typeParameter)))}function _s(e){return e.constraintType||(e.constraintType=Ns(ms(e))||Se)}function gs(e){return e.templateType||(e.templateType=e.declaration.type?pd(Di(Vu(e.declaration.type),!!(4&bs(e))),e.mapper):Se)}function ys(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function hs(e){var n=ys(e);return 187===n.kind&&137===n.operator}function vs(e){if(!e.modifiersType)if(hs(e))e.modifiersType=pd(Vu(ys(e).type),e.mapper);else{var n=_s(fu(e.declaration)),t=n&&262144&n.flags?Ns(n):n;e.modifiersType=t&&4194304&t.flags?pd(t.type,e.mapper):Le}return e.modifiersType}function bs(e){var n=e.declaration;return(n.readonlyToken?40===n.readonlyToken.kind?2:1:0)|(n.questionToken?40===n.questionToken.kind?8:4:0)}function Es(e){var n=bs(e);return 8&n?-1:4&n?1:0}function Ts(e){var n=Es(e),t=vs(e);return n||(Ss(t)?Es(t):0)}function Ss(n){return!!(32&e.getObjectFlags(n))&&ru(_s(n))}function xs(n){return n.members||(524288&n.flags?4&n.objectFlags?function(n){var t=Go(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),a=Kc(n);Yo(n,t,r,a.length===r.length?a:e.concatenate(a,[n]))}(n):3&n.objectFlags?function(n){Yo(n,Go(n),e.emptyArray,e.emptyArray)}(n):2048&n.objectFlags?function(n){for(var t=rc(n.source,0),r=bs(n.mappedType),a=!(1&r),i=4&r?0:16777216,o=t&&wc(Cf(t.type,n.mappedType,n.constraintType),a&&t.isReadonly),s=e.createSymbolTable(),c=0,l=Cs(n.source);c=50)return or(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),t=!0,n.immediateBaseConstraint=an;A++;var r=function(e){if(262144&e.flags){var n=Fc(e);return e.isThisType||!n?n:a(n)}if(3145728&e.flags){for(var t=e.types,r=[],i=0,o=t;i=7,Yn||(Yn=ul("BigInt",0,t))||Ze):528&r.flags?Tn:12288&r.flags?pl(H>=2):67108864&r.flags?Ze:4194304&r.flags?Je:2&r.flags&&!q?Ze:r}function Hs(e){return zs(js(zs(e)))}function Ks(n,t){for(var r,a,i,o=1048576&n.flags,s=o?0:16777216,c=4,l=0,u=0,d=n.types;u2?(L.checkFlags|=65536,L.deferralParent=n,L.deferralConstituents=v):L.type=o?Ml(v):Hl(v),L}}function Ws(n,t){var r=n.propertyCache||(n.propertyCache=e.createSymbolTable()),a=r.get(t);return a||(a=Ks(n,t))&&r.set(t,a),a}function qs(n,t){var r=Ws(n,t);return!r||16&e.getCheckFlags(r)?void 0:r}function zs(n){return 1048576&n.flags&&268435456&n.objectFlags?n.resolvedReducedType||(n.resolvedReducedType=function(n){var t=e.sameMap(n.types,zs);if(t===n.types)return n;var r=Ml(t);1048576&r.flags&&(r.resolvedReducedType=r);return r}(n)):2097152&n.flags?(268435456&n.objectFlags||(n.objectFlags|=268435456|(e.some(Ds(n),Js)?536870912:0)),536870912&n.objectFlags?Ve:n):n}function Js(e){return Xs(e)||Ys(e)}function Xs(n){return!(16777216&n.flags||192!=(131264&e.getCheckFlags(n))||!(131072&to(n).flags))}function Ys(n){return!n.valueDeclaration&&!!(1024&e.getCheckFlags(n))}function Qs(n,t){if(536870912&e.getObjectFlags(t)){var r=e.find(Ds(t),Xs);if(r)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,$a(t,void 0,536870912),Qa(r));var a=e.find(Ds(t),Ys);if(a)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,$a(t,void 0,536870912),Qa(a))}return n}function Zs(e,n){if(524288&(e=Hs(e)).flags){var t=xs(e),r=t.members.get(n);if(r&&Aa(r))return r;var a=t===rn?_n:t.callSignatures.length?gn:t.constructSignatures.length?yn:void 0;if(a){var i=As(a,n);if(i)return i}return As(mn,n)}if(3145728&e.flags)return qs(e,n)}function $s(n,t){if(3670016&n.flags){var r=xs(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function ec(e,n){return $s(Hs(e),n)}function nc(e,n){if(3670016&e.flags){var t=xs(e);return 0===n?t.stringIndexInfo:t.numberIndexInfo}}function tc(e,n){var t=nc(e,n);return t&&t.type}function rc(e,n){return nc(Hs(e),n)}function ac(e,n){return tc(Hs(e),n)}function ic(n,t){if(rf(n)){for(var r=[],a=0,i=Cs(n);a=0),r>=nh(t,!0)}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!a&&(!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length)}function dc(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&303===r.type.kind}function pc(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function fc(n){var t,r=0;if(n)for(var a=0;a=r&&o<=i){for(var s=n?n.slice():[],c=o;cl.arguments.length&&!m||cc(p)||(o=a.length)}if(!(166!==n.kind&&167!==n.kind||Ho(n)||c&&s)){var _=166===n.kind?167:166,g=e.getDeclarationOfKind(va(n),_);g&&(s=(t=UT(g))&&t.symbol)}var y=165===n.kind?Eo(ha(n.parent.symbol)):void 0,h=y?y.localTypeParameters:oc(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&function(n,t){if(e.isJSDocSignature(n)||!yc(n))return!1;var r=e.lastOrUndefined(n.parameters),a=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),i=e.firstDefined(a,(function(n){return n.typeExpression&&e.isJSDocVariadicType(n.typeExpression.type)?n.typeExpression.type:void 0})),o=ur(3,"args",32768);o.type=i?vl(Vu(i.type)):Ln,i&&t.pop();return t.push(o),!0}(n,a))&&(i|=1),r.resolvedSignature=Qo(n,h,s,a,void 0,void 0,o,i)}return r.resolvedSignature}function gc(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var t=e.getJSDocTypeTag(n),r=t&&t.typeExpression&&ey(Vu(t.typeExpression));return r&&Cc(r)}}function yc(n){var t=br(n);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function n(t){if(!t)return!1;switch(t.kind){case 78:return"arguments"===t.escapedText&&e.isExpressionNode(t);case 162:case 164:case 166:case 167:return 157===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function hc(n){if(!n)return e.emptyArray;for(var t=[],r=0;r0&&a.body){var i=n.declarations[r-1];if(a.parent===i.parent&&a.kind===i.kind&&a.pos===i.end)continue}t.push(_c(a))}}return t}function vc(e){if(e.thisParameter)return to(e.thisParameter)}function bc(n){if(!n.resolvedTypePredicate){if(n.target){var t=bc(n.target);n.resolvedTypePredicate=t?(o=t,s=n.mapper,pc(o.kind,o.parameterName,o.parameterIndex,pd(o.type,s))):at}else if(n.unionSignatures)n.resolvedTypePredicate=function(e){for(var n,t=[],r=0,a=e;r=0}function xc(e){if(G(e)){var n=to(e.parameters[e.parameters.length-1]),t=Gp(n)?Vp(n):n;return t&&ac(t,1)}}function Lc(e,n,t,r){var a=Ac(e,mc(n,e.typeParameters,fc(e.typeParameters),t));if(r){var i=ny(Ec(a));if(i){var o=Zo(i);o.typeParameters=r;var s=Zo(a);return s.resolvedReturnType=Rc(o),s}}return a}function Ac(n,t){var r=n.instantiations||(n.instantiations=new e.Map),a=Bc(t),i=r.get(a);return i||r.set(a,i=Dc(n,t)),i}function Dc(e,n){return rd(e,function(e,n){return qu(e.typeParameters,n)}(e,n),!0)}function Cc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return rd(e,Qu(e.typeParameters),!0)}(e)):e}function Ic(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=function(n){return Lc(n,e.map(n.typeParameters,(function(e){return e.target&&!Ns(e.target)?e.target:e})),e.isInJSFile(n.declaration))}(n)):n}function Nc(n){var t=n.typeParameters;if(t){var r=Qu(t);return rd(n,qu(t,e.map(t,(function(e){return pd(Ps(e),r)||Le}))),!0)}return n}function Rc(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=165===t||169===t||174===t,a=Ra(16);a.members=U,a.properties=e.emptyArray,a.callSignatures=r?e.emptyArray:[n],a.constructSignatures=r?[n]:e.emptyArray,n.isolatedSignatureType=a}return n.isolatedSignatureType}function kc(e){return e.members.get("__index")}function Oc(n,t){var r=1===t?143:146,a=kc(n);if(a)for(var i=0,o=a.declarations;i1&&(n+=":"+i),r+=i}return n}function Uc(n,t){for(var r=0,a=0,i=n;aa.length)){var c=s&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent);if(or(n,o===a.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,$a(r,void 0,2),o,a.length),!s)return Se}return 172===n.kind&&Sl(n,e.length(n.typeArguments)!==a.length)?Hc(r,n,void 0):Vc(r,e.concatenate(r.outerTypeParameters,mc(il(n),a,o,s)))}return tl(n,t)?r:Se}function zc(n,t){var r=Io(n),a=vr(n),i=a.typeParameters,o=Bc(t),s=a.instantiations.get(o);return s||a.instantiations.set(o,s=pd(r,qu(i,mc(t,i,fc(i),e.isInJSFile(n.valueDeclaration))))),s}function Jc(n){switch(n.kind){case 172:return n.typeName;case 220:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function Xc(e,n,t){return e&&ra(e,n,t)||he}function Yc(n,t){if(t===he)return Se;if(96&(t=function(n){var t=n.valueDeclaration;if(t&&e.isInJSFile(t)&&!(524288&n.flags)&&!e.getExpandoInitializer(t,!1)){var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(r){var a=va(r);if(a)return wy(a,n)}}}(t)||t).flags)return qc(n,t);if(524288&t.flags)return function(n,t){var r=Io(t),a=vr(t).typeParameters;if(a){var i=e.length(n.typeArguments),o=fc(a);return ia.length?(or(n,o===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qa(t),o,a.length),Se):zc(t,il(n))}return tl(n,t)?r:Se}(n,t);var r=No(t);if(r)return tl(n,t)?wu(r):Se;if(111551&t.flags&&nl(n)){var a=function(n,t){var r=br(n);if(!r.resolvedJSDocType){var a=to(t),i=a;if(t.valueDeclaration){var o=e.getRootDeclaration(t.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)&&!!a.symbol}var l=192===n.kind&&n.qualifier;a.symbol&&(s||l)&&(i=Yc(n,a.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(n,t);return a||(Xc(Jc(n),788968),to(t))}return Se}function Qc(e,n){if(3&n.flags||n===e)return e;var t=Nl(e)+">"+Nl(n),r=_e.get(t);if(r)return r;var a=Ca(33554432);return a.baseType=e,a.substitute=n,_e.set(t,a),a}function Zc(e){return 178===e.kind&&1===e.elements.length}function $c(e,n,t){return Zc(n)&&Zc(t)?$c(e,n.elements[0],t.elements[0]):mu(Vu(n))===e?Vu(t):void 0}function el(n,t){for(var r;t&&!e.isStatement(t)&&307!==t.kind;){var a=t.parent;if(183===a.kind&&t===a.trueType){var i=$c(n,a.checkType,a.extendsType);i&&(r=e.append(r,i))}t=a}return r?Qc(n,Hl(e.append(r,n))):n}function nl(e){return!!(4194304&e.flags)&&(172===e.kind||192===e.kind)}function tl(n,t){return!n.typeArguments||(or(n,e.Diagnostics.Type_0_is_not_generic,t?Qa(t):n.typeName?e.declarationNameToString(n.typeName):l),!1)}function rl(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return tl(n),Re;case"Number":return tl(n),ke;case"Boolean":return tl(n),Ge;case"Void":return tl(n),Ue;case"Undefined":return tl(n),Ae;case"Null":return tl(n),Ie;case"Function":case"function":return tl(n),_n;case"array":return t&&t.length||Y?void 0:Ln;case"promise":return t&&t.length||Y?void 0:lh(be);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=Vu(t[0]),a=wc(Vu(t[1]),!1);return Ma(void 0,U,e.emptyArray,e.emptyArray,r===Re?a:void 0,r===ke?a:void 0)}return be}return tl(n),Y?void 0:be}}}function al(n){var t=br(n);if(!t.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return t.resolvedSymbol=he,t.resolvedType=Vh(n.parent.expression);var r=void 0,a=void 0;nl(n)&&((a=rl(n))||((r=Xc(Jc(n),788968,!0))===he?r=Xc(Jc(n),900095):Xc(Jc(n),788968),a=Yc(n,r))),a||(a=Yc(n,r=Xc(Jc(n),788968))),t.resolvedSymbol=r,t.resolvedType=a}return t.resolvedType}function il(n){return e.map(n.typeArguments,Vu)}function ol(e){var n=br(e);return n.resolvedType||(n.resolvedType=wu(df(iv(e.exprName)))),n.resolvedType}function sl(n,t){function r(e){for(var n=0,t=e.declarations;n=0)return Sm(r[s],(function(a){return n(t,e.replaceElement(r,s,a))}));if(e.findIndex(r,(function(e,n){return!(!(8&t.elementFlags[n])||58982400&e.flags||Ss(e))}))<0)return Vc(t,r);for(var c,l=[],u=[],d=[],p=-1,f=function(n){var s=r[n],c=t.elementFlags[n];8&c?58982400&s.flags||Ss(s)?g(s,8,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[n]):Gp(s)?e.forEach(Kc(s),(function(e,n){var t;return g(e,s.target.elementFlags[n],null===(t=s.target.labeledElementDeclarations)||void 0===t?void 0:t[n])})):g(Ap(s)&&ac(s,1)||Se,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[n]):g(s,c,null===(o=t.labeledElementDeclarations)||void 0===o?void 0:o[n])},m=0;m=0){for(var r=p;ra.fixedLength?function(e){var n=Vp(e);return n&&vl(n)}(n)||Ll(e.emptyArray):Ll(Kc(n).slice(t,i),a.elementFlags.slice(t,i),!1,a.labeledElementDeclarations&&a.labeledElementDeclarations.slice(t,i))}function Il(n){return Ml(e.append(e.arrayOf(n.target.fixedLength,(function(e){return Mu(""+e)})),Xl(n.target.readonly?vn:hn)))}function Nl(e){return e.id}function Rl(n,t){return e.binarySearch(n,t,Nl,e.compareValues)>=0}function kl(n,t){var r=e.binarySearch(n,t,Nl,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function Ol(n,t,r){var a=r.flags;if(1048576&a)return wl(n,t,r.types);if(!(131072&a))if(t|=71041023&a,66846720&a&&(t|=262144),r===Te&&(t|=8388608),!q&&98304&a)524288&e.getObjectFlags(r)||(t|=4194304);else{var i=n.length,o=i&&r.id>n[i-1].id?~i:e.binarySearch(n,r,Nl,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function wl(e,n,t){for(var r=0,a=t;r0;)for(var o=n[--a],s=0,c=n;s(t?25e6:1e6))return or(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(i++,Qd(o,l,Zt)&&(!(1&e.getObjectFlags(ao(o)))||!(1&e.getObjectFlags(ao(l)))||Cd(o,l))){e.orderedRemoveItemAt(n,a);break}}}return!0}function Ml(n,t,r,a){if(void 0===t&&(t=1),0===n.length)return Ve;if(1===n.length)return n[0];var i=[],o=wl(i,0,n);if(0!==t){if(3&o)return 1&o?8388608&o?Te:be:Le;switch(t){case 1:11136&o&&function(n,t){for(var r=n.length;r>0;){var a=n[--r];(128&a.flags&&4&t||256&a.flags&&8&t||2048&a.flags&&64&t||8192&a.flags&&4096&t||Pu(a)&&Rl(n,a.regularType))&&e.orderedRemoveItemAt(n,r)}}(i,o);break;case 2:if(!Pl(i,!(262144&o)))return Se}if(0===i.length)return 65536&o?4194304&o?Ie:Ne:32768&o?4194304&o?Ae:De:Ve}return Gl(i,(66994211&o?0:262144)|(2097152&o?268435456:0),r,a)}function Fl(e,n){return e.kind===n.kind&&e.parameterIndex===n.parameterIndex}function Gl(e,n,t,r){if(0===e.length)return Ve;if(1===e.length)return e[0];var a=Bc(e),i=de.get(a);return i||(i=Ca(1048576),de.set(a,i),i.objectFlags=n|Uc(e,98304),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=r),i}function Bl(e,n,t){var r=t.flags;return 2097152&r?Ul(e,n,t.types):(zd(t)?16777216&n||(n|=16777216,e.set(t.id.toString(),t)):(3&r?t===Te&&(n|=8388608):!q&&98304&r||e.has(t.id.toString())||(109440&t.flags&&109440&n&&(n|=67108864),e.set(t.id.toString(),t)),n|=71041023&r),n)}function Ul(e,n,t){for(var r=0,a=t;r0;){var a=n[--r];(4&a.flags&&128&t||8&a.flags&&256&t||64&a.flags&&2048&t||4096&a.flags&&8192&t)&&e.orderedRemoveItemAt(n,r)}}(o,i),16777216&i&&524288&i&&e.orderedRemoveItemAt(o,e.findIndex(o,zd)),0===o.length)return Le;if(1===o.length)return o[0];var s=Bc(o),c=pe.get(s);if(!c){if(1048576&i)if(function(n){var t,r=e.findIndex(n,(function(n){return!!(262144&e.getObjectFlags(n))}));if(r<0)return!1;for(var a=r+1;a=1e5)return or(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Se;var l=e.findIndex(o,(function(e){return 0!=(1048576&e.flags)})),u=o[l];c=Ml(e.map(u.types,(function(n){return Hl(e.replaceElement(o,l,n))})),1,t,r)}else c=function(e,n,t){var r=Ca(2097152);return r.objectFlags=Uc(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,t,r);pe.set(s,c)}return c}function Kl(e,n){var t=Ca(4194304);return t.type=e,t.stringsOnly=n,t}function Wl(n){return e.isPrivateIdentifier(n)?Ve:e.isIdentifier(n)?Mu(e.unescapeLeadingUnderscores(n.escapedText)):wu(e.isComputedPropertyName(n)?V_(n):iv(n))}function ql(n,t){if(!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var r=vr(Jo(n)).nameType;if(!r&&!e.isKnownSymbol(n))if("default"===n.escapedName)r=Mu("default");else{var a=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);r=a&&Wl(a)||Mu(e.symbolName(n))}if(r&&r.flags&t)return r}return Ve}function zl(n,t){return Ml(e.map(Cs(n),(function(e){return ql(e,t)})))}function Jl(e){var n=rc(e,1);return n!==lt?n:void 0}function Xl(n,t,r){return void 0===t&&(t=Z),1048576&(n=zs(n)).flags?Hl(e.map(n.types,(function(e){return Xl(e,t,r)}))):2097152&n.flags?Ml(e.map(n.types,(function(e){return Xl(e,t,r)}))):58982400&n.flags||Bp(n)?function(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=Kl(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Kl(e,!1))}(n,t):32&e.getObjectFlags(n)?Em(_s(n),(function(e){return!(r&&5&e.flags)})):n===Te?Te:2&n.flags?Ve:131073&n.flags?Je:t?!r&&rc(n,0)?Re:zl(n,128):!r&&rc(n,0)?Ml([Re,ke,zl(n,8192)]):Jl(n)?Ml([ke,zl(n,8320)]):zl(n,8576)}function Yl(n){if(Z)return n;var t=Jn||(Jn=ll("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return t?zc(t,[n,Re]):Re}function Ql(n){return!Y&&(!!(16384&e.getObjectFlags(n))||(1048576&n.flags?e.every(n.types,Ql):2097152&n.flags?e.some(n.types,Ql):!!(63176704&n.flags)&&Ql(Gs(n))))}function Zl(n,t){var r=t&&199===t.kind?t:void 0;return Bo(n)?Ko(n):r&&Wg(r.argumentExpression,n,!1)?e.getPropertyNameForKnownSymbolName(e.idText(r.argumentExpression.name)):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function $l(n,t){return!(8208&t.flags)||!e.isCallLikeExpression(e.findAncestor(n,(function(n){return!e.isAccessExpression(n)}))||n.parent)&&e.every(t.declarations,(function(n){return!e.isFunctionLike(n)||!!(134217728&e.getCombinedNodeFlags(n))}))}function eu(n,t,r,a,i,o,s,c){var l,u,d=o&&199===o.kind?o:void 0,p=o&&e.isPrivateIdentifier(o)?void 0:Zl(r,o);if(void 0!==p){var f=Zs(t,p);if(f){if(c&&o&&134217728&(null===(l=f.valueDeclaration)||void 0===l?void 0:l.flags)&&$l(o,f))cr(!1,null!==(u=null==d?void 0:d.argumentExpression)&&void 0!==u?u:e.isIndexedAccessTypeNode(o)?o.indexType:o,e.Diagnostics._0_is_deprecated,p);if(d){if(Ug(f,d,107===d.expression.kind),xh(d,f,e.getAssignmentTargetKind(d)))return void or(d.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qa(f));if(4&s&&(br(o).resolvedSymbol=f),Ig(d,f))return Ee}var m=to(f);return d&&1!==e.getAssignmentTargetKind(d)?jm(d,m):m}if(bm(t,Gp)&&U_(p)&&+p>=0){if(o&&bm(t,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var _=nu(o);Gp(t)?or(_,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,$a(t),Wc(t),e.unescapeLeadingUnderscores(p)):or(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(p),$a(t))}return T(rc(t,1)),Sm(t,(function(e){return Vp(e)||Ae}))}}if(!(98304&r.flags)&&Ih(r,12716)){if(131073&t.flags)return t;var g=rc(t,0),y=Ih(r,296)&&rc(t,1)||g;if(y)return 1&s&&y===g?void(d&&or(d,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,$a(r),$a(n))):o&&!Ih(r,12)?(or(_=nu(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,$a(r)),y.type):(T(y),y.type);if(131072&r.flags)return Ve;if(Ql(t))return be;if(d&&!Rh(t)){if(t.symbol===ae&&void 0!==p&&ae.exports.has(p)&&418&ae.exports.get(p).flags)or(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(p),$a(t));else if(Y&&!j.suppressImplicitAnyIndexErrors&&!i)if(void 0!==p&&Og(p,t))or(d,e.Diagnostics.Property_0_is_a_static_member_of_type_1,p,$a(t));else if(ac(t,1))or(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!==p&&(h=Mg(p,t)))void 0!==h&&or(d.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,p,$a(t),h);else{var v=function(n,t,r){var a=e.isAssignmentTarget(t)?"set":"get";if(!function(e){var t=As(n,e);if(t){var a=ey(to(t));return!!a&&nh(a)>=1&&Dd(r,Qy(a,0))}return!1}(a))return;var i=e.tryGetPropertyAccessOrIdentifierToString(t.expression);void 0===i?i=a:i+="."+a;return i}(t,d,r);if(void 0!==v)or(d,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,$a(t),v);else{var b=void 0;if(1024&r.flags)b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+$a(r)+"]",$a(t));else if(8192&r.flags){var E=ta(r.symbol,d);b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+E+"]",$a(t))}else 128&r.flags||256&r.flags?b=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,$a(t)):12&r.flags&&(b=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,$a(r),$a(t)));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,$a(a),$a(t)),zt.add(e.createDiagnosticForNodeFromMessageChain(d,b))}}}return}}if(Ql(t))return be;if(o){_=nu(o);384&r.flags?or(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,$a(t)):12&r.flags?or(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,$a(t),$a(r)):or(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,$a(r))}return hi(r)?r:void 0;function T(n){n&&n.isReadonly&&d&&(e.isAssignmentTarget(d)||e.isDeleteTarget(d))&&or(d,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,$a(t))}}function nu(e){return 199===e.kind?e.argumentExpression:188===e.kind?e.indexType:157===e.kind?e.expression:e}function tu(n){return 3145728&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|(e.some(n.types,tu)?8388608:0)),!!(8388608&n.objectFlags)):!!(58982400&n.flags)||Ss(n)||Bp(n)}function ru(n){return 3145728&n.flags?(16777216&n.objectFlags||(n.objectFlags|=16777216|(e.some(n.types,ru)?33554432:0)),!!(33554432&n.objectFlags)):!!(63176704&n.flags)}function au(e){return!!(262144&e.flags&&e.isThisType)}function iu(n,t){return 8388608&n.flags?function(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===on?n:n[r];n[r]=on;var a=function(e){if(33554432&e.flags)return e.substitute;return e}(iu(n.objectType,t)),i=iu(n.indexType,t),o=function(n,t,r){if(1048576&t.flags){var a=e.map(t.types,(function(e){return iu(lu(n,e),r)}));return r?Hl(a):Ml(a)}}(a,i,t);if(o)return n[r]=o;if(!(63176704&i.flags)){var s=ou(a,i,t);if(s)return n[r]=s}if(Bp(a)&&296&i.flags){var c=Hp(a,8&i.flags?0:a.target.fixedLength,0,t);if(c)return n[r]=c}if(Ss(a))return n[r]=Sm(cu(a,n.indexType),(function(e){return iu(e,t)}));return n[r]=n}(n,t):16777216&n.flags?function(e,n){var t=e.checkType,r=e.extendsType,a=gu(e),i=yu(e);if(131072&i.flags&&mu(a)===mu(t)){if(1&t.flags||Dd(_d(t),_d(r)))return iu(a,n);if(su(t,r))return Ve}else if(131072&a.flags&&mu(i)===mu(t)){if(!(1&t.flags)&&Dd(_d(t),_d(r)))return Ve;if(1&t.flags||su(t,r))return iu(i,n)}return e}(n,t):n}function ou(n,t,r){if(3145728&n.flags){var a=e.map(n.types,(function(e){return iu(lu(e,t),r)}));return 2097152&n.flags||r?Hl(a):Ml(a)}}function su(e,n){return!!(131072&Ml([os(e,n),Ve]).flags)}function cu(e,n){var t=qu([ms(e)],[n]),r=Zu(e.mapper,t);return pd(gs(e),r)}function lu(e,n,t,r,a){return du(e,n,t,0,r,a)||(t?Se:Le)}function uu(e,n){return bm(e,(function(e){if(384&e.flags){var t=Ko(e);if(U_(t)){var r=+t;return r>=0&&r=5e6)return or(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Se;E++,T++,L++;var r=function(n,t){var r=n.flags;if(262144&r)return zu(n,t);if(524288&r){var a=n.objectFlags;if(52&a){if(4&a&&!n.node){var i=n.resolvedTypeArguments,o=Ku(i,t);return o!==i?Dl(n.target,o):n}return function(n,t){var r=64&n.objectFlags?n.target:n,a=4&n.objectFlags?n.node:n.symbol.declarations[0],i=br(a),o=i.outerTypeParameters;if(!o){var s=so(a,!0);if(Oy(a)){var c=oc(a);s=e.addRange(s,c)}o=s||e.emptyArray,o=(4&r.objectFlags||2048&r.symbol.flags)&&!r.aliasTypeArguments?e.filter(o,(function(e){return id(e,a)})):o,i.outerTypeParameters=o,o.length&&(i.instantiations=new e.Map,i.instantiations.set(Bc(o),r))}if(o.length){var l=Zu(n.mapper,t),u=e.map(o,(function(e){return zu(e,l)})),d=Bc(u),p=i.instantiations.get(d);if(!p){var f=qu(o,u);p=4&r.objectFlags?Hc(n.target,n.node,f):32&r.objectFlags?sd(r,f):ud(r,f),i.instantiations.set(d,p)}return p}return n}(n,t)}return n}if(3145728&r){var s=n.types,c=Ku(s,t);return c===s?n:2097152&r?Hl(c,n.aliasSymbol,Ku(n.aliasTypeArguments,t)):Ml(c,1,n.aliasSymbol,Ku(n.aliasTypeArguments,t))}if(4194304&r)return Xl(pd(n.type,t));if(8388608&r)return lu(pd(n.objectType,t),pd(n.indexType,t),void 0,n.aliasSymbol,Ku(n.aliasTypeArguments,t));if(16777216&r)return dd(n,Zu(n.mapper,t));if(33554432&r){var l=pd(n.baseType,t);if(8650752&l.flags)return Qc(l,pd(n.substitute,t));var u=pd(n.substitute,t);return 3&u.flags||Dd(_d(l),_d(u))?l:u}return n}(n,t);return L--,r}function fd(e,n){L--;var t=pd(e,n);return L++,t}function md(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=pd(e,Qe))}function _d(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=pd(e,Ye),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function gd(e,n){return e&&wc(pd(e.type,n),e.isReadonly,e.declaration)}function yd(n){switch(e.Debug.assert(164!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 205:case 206:case 164:case 248:return hd(n);case 197:return e.some(n.properties,yd);case 196:return e.some(n.elements,yd);case 214:return yd(n.whenTrue)||yd(n.whenFalse);case 213:return(56===n.operatorToken.kind||60===n.operatorToken.kind)&&(yd(n.left)||yd(n.right));case 285:return yd(n.initializer);case 204:return yd(n.expression);case 278:return e.some(n.properties,yd)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,yd);case 277:var t=n.initializer;return!!t&&yd(t);case 280:var r=n.expression;return!!r&&yd(r)}return!1}function hd(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!Li(n))&&(vd(n)||function(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&227!==n.body.kind&&yd(n.body)}(n))}function vd(n){if(!n.typeParameters){if(e.some(n.parameters,(function(n){return!e.getEffectiveTypeAnnotationNode(n)})))return!0;if(206!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!e.parameterIsThisKeyword(t))return!0}}return!1}function bd(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||k_(n)||e.isObjectLiteralMethod(n))&&hd(n)}function Ed(n){if(524288&n.flags){var t=xs(n);if(t.constructSignatures.length||t.callSignatures.length){var r=Ra(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(2097152&n.flags)return Hl(e.map(n.types,Ed));return n}function Td(e,n){return Qd(e,n,nr)}function Sd(e,n){return Qd(e,n,nr)?-1:0}function xd(e,n){return Qd(e,n,$t)?-1:0}function Ld(e,n){return Qd(e,n,Qt)?-1:0}function Ad(e,n){return Qd(e,n,Qt)}function Dd(e,n){return Qd(e,n,$t)}function Cd(n,t){return 1048576&n.flags?e.every(n.types,(function(e){return Cd(e,t)})):1048576&t.flags?e.some(t.types,(function(e){return Cd(n,e)})):58982400&n.flags?Cd(Ps(n)||Le,t):t===mn?!!(67633152&n.flags):t===_n?!!(524288&n.flags)&&tm(n):io(n,ao(t))}function Id(e,n){return Qd(e,n,er)}function Nd(e,n){return Id(e,n)||Id(n,e)}function Rd(e,n,t,r,a,i){return ep(e,n,$t,t,r,a,i)}function kd(e,n,t,r,a,i){return Od(e,n,$t,t,r,a,i,void 0)}function Od(e,n,t,r,a,i,o,s){return!!Qd(e,n,t)||(!r||!Pd(a,e,n,t,i,o,s))&&ep(e,n,t,r,i,o,s)}function wd(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,wd))}function Pd(n,t,r,a,i,s,l){if(!n||wd(r))return!1;if(!ep(t,r,a,void 0)&&function(n,t,r,a,i,o,s){for(var c=ec(t,0),l=ec(t,1),u=0,d=[l,c];u1,h=Em(_,Ip),v=Em(_,(function(e){return!Ip(e)}));if(y){if(h!==Ve){var b=Ll(X_(d,0)),E=function(n,t){var r,a,i,o,s;return c(this,(function(c){switch(c.label){case 0:if(!e.length(n.children))return[2];r=0,a=0,c.label=1;case 1:return au:nh(n)>u))return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=ry(n,t=Ic(t),void 0,s));var d=eh(n),p=ah(n),f=ah(t);if((p||f)&&pd(p||f,c),p&&f&&d!==u)return 0;var m=t.declaration?t.declaration.kind:0,_=!(3&r)&&z&&164!==m&&163!==m&&165!==m,g=-1,y=vc(n);if(y&&y!==Ue){var h=vc(t);if(h){if(!(T=!_&&s(y,h,!1)||s(h,y,a)))return a&&i(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=T}}for(var v=p||f?Math.min(d,u):Math.max(d,u),b=p||f?v-1:-1,E=0;E=nh(n)&&E0||jE(c));if(m&&!function(e,n,t){for(var r=0,a=Cs(e);r0&&G(Ec(_[0]),l,!1)||y.length>0&&G(Ec(y[0]),l,!1)?P(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,$a(c),$a(l)):P(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,$a(c),$a(l))}return 0}var h=0,v=k();if(1048576&c.flags?h=r===er?V(c,l,i&&!(131068&c.flags),s):function(e,n,t,r){for(var a=-1,i=e.types,o=0;o0;if(d&&E--,524288&r.flags&&524288&s.flags){var p=u;F(r,s,i),u!==p&&(d=!!u)}if(524288&r.flags&&131068&s.flags)!function(n,t){var r=ti(n.symbol)?$a(n,n.symbol.valueDeclaration):$a(n),a=ti(t.symbol)?$a(t,t.symbol.valueDeclaration):$a(t);(bn===n&&Re===t||En===n&&ke===t||Tn===n&&Ge===t||pl(!1)===n&&Be===t)&&P(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,r)}(r,s);else if(r.symbol&&524288&r.flags&&mn===r)P(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&s.flags){var f=s.types,m=Z_(D.IntrinsicAttributes,a),_=Z_(D.IntrinsicClassAttributes,a);if(m!==Se&&_!==Se&&(e.contains(f,m)||e.contains(f,_)))return c}else u=Qs(u,t);if(!o&&d)return g=[r,s],c;M(o,r,s)}}}function B(e,n){for(var t=-1,r=0,a=e.types;r25)return 0}for(var l=new Array(a.length),u=new e.Set,d=0;d5?P(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,$a(n),$a(t),e.map(g.slice(0,4),(function(e){return Qa(e)})).join(", "),g.length-4):P(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,$a(n),$a(t),e.map(g,(function(e){return Qa(e)})).join(", ")),s&&u&&E++)}function Q(n,t,a,i,o){if(r===nr)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;var r=z(Ls(e),t),a=z(Ls(n),t);if(r.length!==a.length)return 0;for(var i=-1,o=0,s=r;o0||ec(n,r=1).length>0)return e.find(t.types,(function(e){return ec(e,r).length>0}))}(n,t)||function(n,t){for(var r,a=0,i=0,o=t.types;i=a&&(r=s,a=l)}else Rp(c)&&1>=a&&(r=s,a=1)}return r}(n,t)}function rp(n,t,r,a,i){for(var o=n.types.map((function(e){})),s=0,c=t;s0&&e.every(t.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&n.flags)&&e.every(n.types,ap)}function ip(n,t,r){var a=Vc(n,e.map(n.typeParameters,(function(e){return e===t?r:e})));return a.objectFlags|=8192,a}function op(e){var n=vr(e);return sp(n.typeParameters,n,(function(t,r,a){var i=zc(e,Ku(n.typeParameters,Ju(r,a)));return i.aliasTypeArgumentsContainsMarker=!0,i}))}function sp(n,t,r){void 0===n&&(n=e.emptyArray);var a=t.variances;if(!a){t.variances=e.emptyArray,a=[];for(var i=function(e){var n=!1,i=!1,o=tt;tt=function(e){return e?i=!0:n=!0};var s=r(t,e,cn),c=r(t,e,ln),l=(Dd(c,s)?1:0)|(Dd(s,c)?2:0);3===l&&Dd(r(t,e,rt),s)&&(l=4),tt=o,(n||i)&&(n&&(l|=8),i&&(l|=16)),a.push(l)},o=0,s=n;o":r+="-"+o.id}return r}function pp(e,n,t,r){if(r===nr&&e.id>n.id){var a=e;e=n,n=a}var i=t?":"+t:"";if(up(e)&&up(n)){var o=[];return dp(e,o)+","+dp(n,o)+i}return e.id+","+n.id+i}function fp(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,a=n.containingType.types;r=5&&524288&n.flags){if(!Gf(n)){var a=n.symbol;if(a)for(var i=0,o=0;o=5)return!0}}if(e.getObjectFlags(n)&&n.node){var s=n.target;for(i=0,o=0;o=5)return!0}}}if(r>=5&&8388608&n.flags)for(s=yp(n),i=0,o=0;o=5)return!0}return!1}function yp(e){for(var n=e;8388608&n.flags;)n=n.objectType;return n}function hp(e,n){return 0!==vp(e,n,Sd)}function vp(n,t,r){if(n===t)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(n);if(a!==(24&e.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(a){if(tE(n)!==tE(t))return 0}else if((16777216&n.flags)!=(16777216&t.flags))return 0;return Sh(n)!==Sh(t)?0:r(to(n),to(t))}function bp(n,t,r,a,i,o){if(n===t)return-1;if(!function(e,n,t){var r=eh(e),a=eh(n),i=nh(e),o=nh(n),s=th(e),c=th(n);return r===a&&i===o&&s===c||!!(t&&i<=o)}(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var s=qu(n.typeParameters,t.typeParameters),c=0;c-1&&(Lr(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 cr(Y,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}i=n.dotDotDotToken?Y?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:Y?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(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 304:return void or(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);case 248:case 164:case 163:case 166:case 167:case 205:case 206:if(Y&&!n.name)return void or(n,3===r?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,a);i=Y?3===r?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(Y&&or(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=Y?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}cr(Y,n,i,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}}function mf(n,r,a){!(t&&Y&&524288&e.getObjectFlags(r))||a&&O_(n)||function n(t){var r=!1;if(524288&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,qd))r=!0;else for(var a=0,i=t.types;a0)for(var T=0,S=t;Te.target.minLength||!n.target.hasRestElement&&(e.target.hasRestElement||n.target.fixedLength0&&4&n.target.elementFlags[i-1]?Kc(n)[i-1]:void 0,p=12&t.target.combinedFlags?d?jp(t):Math.min(jp(n),jp(t)):0,f=d?0:p;for(l=0;l1){var t=e.filter(n,Gf);if(t.length){var r=Ml(t,2);return e.concatenate(e.filter(n,(function(e){return!Gf(e)})),[r])}}return n}(n.candidates),o=(r=n.typeParameter,!!(a=Ns(r))&&Ch(16777216&a.flags?ks(a):a,4325372)),s=!o&&n.topLevel&&(n.isFixed||!Af(Ec(t),n.typeParameter)),c=o?e.sameMap(i,wu):s?e.sameMap(i,wp):i;return df(208&n.priority?Ml(c,2):function(n){if(!q)return Ep(n);var t=e.filter(n,(function(e){return!(98304&e.flags)}));return t.length?Xp(Ep(t),98304&Wp(n)):Ml(n,2)}(c))}function Vf(n,t){var r=n.inferences[t];if(!r.inferredType){var a=void 0,i=n.signature;if(i){var o=r.candidates?Uf(r,i):void 0;if(r.contraCandidates){var s=Bf(r);a=!o||131072&o.flags||!Ad(o,s)?s:o}else if(o)a=o;else if(1&n.flags)a=je;else{var c=Us(r.typeParameter);c&&(a=pd(c,$u(function(n,t){return Xu((function(r){return e.findIndex(n.inferences,(function(e){return e.typeParameter===r}))>=t?Le:r}))}(n,t),n.nonFixingMapper)))}}else a=Rf(r);r.inferredType=a||jf(!!(2&n.flags));var l=Ns(r.typeParameter);if(l){var u=pd(l,n.nonFixingMapper);a&&n.compareTypes(a,Xo(u,a))||(r.inferredType=a=u)}}return r.inferredType}function jf(e){return e?be:Le}function Hf(e){for(var n=[],t=0;t=0&&r.parameterIndex=r&&c-1){var u=i.filter((function(e){return void 0!==e})),d=c=2||0==(34&t.flags)||e.isSourceFile(t.valueDeclaration)||284===t.valueDeclaration.parent.kind)return;var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),a=function(n,t){return!!e.findAncestor(n,(function(n){return n===t?"quit":e.isFunctionLike(n)}))}(n.parent,r),i=r,o=!1;for(;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}if(o){if(a){var s=!0;if(e.isForStatement(r))if((d=e.getAncestor(t.valueDeclaration,247))&&d.parent===r){var c=function(n,t){return e.findAncestor(n,(function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement}))}(n.parent,r);if(c){var l=br(c);l.flags|=131072;var u=l.capturedBlockScopeBindings||(l.capturedBlockScopeBindings=[]);e.pushIfUnique(u,t),c===r.initializer&&(s=!1)}}s&&(br(i).flags|=65536)}var d;if(e.isForStatement(r))(d=e.getAncestor(t.valueDeclaration,247))&&d.parent===r&&function(n,t){var r=n;for(;204===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(211===r.parent.kind||212===r.parent.kind){var i=r.parent;a=45===i.operator||46===i.operator}if(!a)return!1;return!!e.findAncestor(r,(function(e){return e===t?"quit":e===t.statement}))}(n,r)&&(br(t.valueDeclaration).flags|=4194304);br(t.valueDeclaration).flags|=524288}a&&(br(t.valueDeclaration).flags|=262144)}(n,t);var o=Xm(to(a),n),s=e.getAssignmentTargetKind(n);if(s){if(!(3&a.flags||e.isInJSFile(n)&&512&a.flags))return or(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Qa(t)),Se;if(Sh(a))return 3&a.flags?or(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Qa(t)):or(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Qa(t)),Se}var c=2097152&a.flags;if(3&a.flags){if(1===s)return o}else{if(!c)return o;i=e.find(t.declarations,M)}if(!i)return o;for(var l=159===e.getRootDeclaration(i).kind,u=Hm(i),d=Hm(n),p=d!==u,f=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&lm(n.parent.parent),m=134217728&t.flags;d!==u&&(205===d.kind||206===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&(qm(a)||l&&!Km(a));)d=Hm(d);var _=l||c||p||f||m||e.isBindingElement(i)||o!==Ee&&o!==An&&(!q||0!=(16387&o.flags)||qf(n)||267===n.parent.kind)||222===n.parent.kind||246===i.kind&&i.exclamationToken||8388608&i.flags,g=jm(n,o,_?l?function(e,n){if(pi(n.symbol,2)){var t=q&&159===n.kind&&n.initializer&&32768&qp(e)&&!(32768&qp(iv(n.initializer)));return _i(),t?am(e,524288):e}return no(n.symbol),e}(o,i):o:o===Ee||o===An?Ae:Yp(o),d,!_);if(Pm(n)||o!==Ee&&o!==An){if(!_&&!(32768&qp(o))&&32768&qp(g))return or(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,Qa(t)),o}else if(g===Ee||g===An)return Y&&(or(e.getNameOfDeclaration(i),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Qa(t),$a(g)),or(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Qa(t),$a(g))),sb(g);return s?Op(g):g}function Zm(e,n){(br(e).flags|=2,162===n.kind||165===n.kind)?br(n.parent).flags|=4:br(n).flags|=4}function $m(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,$m)}function e_(e){return go(Io(va(e)))===Ne}function n_(n,t,r){var a=t.parent;e.getClassExtendsHeritageElement(a)&&!e_(a)&&n.flowNode&&!function n(t,r){for(;;){var a=t.flags;if(4096&a){if(!r){var i=em(t),o=jt[i];return void 0!==o?o:jt[i]=n(t,!0)}r=!1}if(496&a)t=t.antecedent;else if(512&a){if(105===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&a)return e.every(t.antecedents,(function(e){return n(e,!1)}));if(!(8&a)){if(1024&a){var s=t.target,c=s.antecedents;s.antecedents=t.antecedents;var l=n(t.antecedent,!1);return s.antecedents=c,l}return!!(1&a)}t=t.antecedents[0]}}}(n.flowNode,!1)&&or(n,r)}function t_(n){var t=e.getThisContainer(n,!0),r=!1;switch(165===t.kind&&n_(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),206===t.kind&&(t=e.getThisContainer(t,!1),r=!0),t.kind){case 253:or(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 252:or(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 165:a_(n,t)&&or(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 162:case 161:!e.hasSyntacticModifier(t,32)||99===j.target&&j.useDefineForClassFields||or(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 157:or(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&H<2&&Zm(n,t);var a=r_(n,!0,t);if(Q){var i=to(ae);if(a===i&&r)or(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var o=or(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var s=r_(t);s&&s!==i&&e.addRelatedInfo(o,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||be}function r_(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=e.getThisContainer(n,!1));var a=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!d_(n)||e.getThisParameter(r))){var i=Xi(r)||a&&function(n){var t=e.getJSDocType(n);if(t&&304===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Vu(r.parameters[0].type)}var a=e.getJSDocThisTag(n);if(a&&a.typeExpression)return Vu(a.typeExpression)}(r);if(!i){var o=function(n){if(205===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent))return n.parent.left.expression.expression;if(164===n.kind&&197===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent))return n.parent.parent.left.expression;if(205===n.kind&&285===n.parent.kind&&197===n.parent.parent.kind&&e.isBinaryExpression(n.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent.parent))return n.parent.parent.parent.left.expression;if(205===n.kind&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&("value"===n.parent.name.escapedText||"get"===n.parent.name.escapedText||"set"===n.parent.name.escapedText)&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent.parent))return n.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&("value"===n.name.escapedText||"get"===n.name.escapedText||"set"===n.name.escapedText)&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent))return n.parent.parent.arguments[0].expression}(r);if(a&&o){var s=iv(o).symbol;s&&s.members&&16&s.flags&&(i=Io(s).thisType)}else Oy(r)&&(i=Io(ha(r.symbol)).thisType);i||(i=c_(r))}if(i)return jm(n,i)}if(e.isClassLike(r.parent)){var c=va(r.parent);return jm(n,e.hasSyntacticModifier(r,32)?to(c):Io(c).thisType)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var l=va(r);return l&&to(l)}if(r.externalModuleIndicator)return Ae;if(t)return to(ae)}}function a_(n,t){return!!e.findAncestor(n,(function(n){return e.isFunctionLikeDeclaration(n)?"quit":159===n.kind&&n.parent===t}))}function i_(n){var t=200===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),a=r,i=!1;if(!t)for(;a&&206===a.kind;)a=e.getSuperContainer(a,!0),i=H<2;var o=0;if(!function(n){if(!n)return!1;if(t)return 165===n.kind;if(e.isClassLike(n.parent)||197===n.parent.kind)return e.hasSyntacticModifier(n,32)?164===n.kind||163===n.kind||166===n.kind||167===n.kind:164===n.kind||163===n.kind||166===n.kind||167===n.kind||162===n.kind||161===n.kind||165===n.kind;return!1}(a)){var s=e.findAncestor(n,(function(e){return e===a?"quit":157===e.kind}));return s&&157===s.kind?or(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?or(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||197===a.parent.kind)?or(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):or(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Se}if(t||165!==r.kind||n_(n,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),o=e.hasSyntacticModifier(a,32)||t?512:256,br(n).flags|=o,164===a.kind&&e.hasSyntacticModifier(a,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?br(a).flags|=4096:br(a).flags|=2048),i&&Zm(n.parent,a),197===a.parent.kind)return H<2?(or(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Se):be;var c=a.parent;if(!e.getClassExtendsHeritageElement(c))return or(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Se;var l=Io(va(c)),u=l&&ho(l)[0];return u?165===a.kind&&a_(n,a)?(or(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Se):512===o?go(l):Xo(u,l.thisType):Se}function o_(n){return 4&e.getObjectFlags(n)&&n.target===xn?Kc(n)[0]:void 0}function s_(n){return Sm(n,(function(n){return 2097152&n.flags?e.forEach(n.types,o_):o_(n)}))}function c_(n){if(206!==n.kind){if(bd(n)){var t=w_(n);if(t){var r=t.thisParameter;if(r)return to(r)}}var a=e.isInJSFile(n);if(Q||a){var i=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}(n);if(i){for(var o=x_(i),s=i,c=o;c;){var l=s_(c);if(l)return pd(l,Sf(C_(i)));if(285!==s.parent.kind)break;c=x_(s=s.parent.parent)}return df(o?Qp(o):Vh(i))}var u=e.walkUpParenthesizedExpressions(n.parent);if(213===u.kind&&62===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(a&&e.isIdentifier(p)){var f=e.getSourceFileOfNode(u);if(f.commonJsModuleIndicator&&Wf(p)===f.symbol)return}return df(Vh(p))}}}}}function l_(n){var t=n.parent;if(bd(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var a=py(r),i=t.parameters.indexOf(n);if(n.dotDotDotToken)return oy(a,i,a.length,be,void 0,0);var o=br(r),s=o.resolvedSignature;o.resolvedSignature=it;var c=i=0?void 0:to(o);if(Gp(n)){var s=Vp(n);if(s&&U_(t)&&+t>=0)return s}return U_(t)&&h_(n,1)||h_(n,0)}var c}),!0)}function h_(e,n){return Sm(e,(function(e){return tc(e,n)}),!0)}function v_(e,n){var t=x_(e.parent,n);if(t){if(!Ho(e)){var r=y_(t,va(e).escapedName);if(r)return r}return G_(e.name)&&h_(t,1)||h_(t,0)}}function b_(e,n){return e&&(y_(e,""+n)||Eb(1,e,Ae,void 0,!1))}function E_(n){var t=n.parent;return e.isJsxAttributeLike(t)?D_(n):e.isJsxElement(t)?function(e,n){var t=x_(e.openingElement.tagName),r=tg(eg(e));if(t&&!hi(t)&&r&&""!==r){var a=Ud(e.children),i=a.indexOf(n),o=y_(t,r);return o&&(1===a.length?o:Sm(o,(function(e){return Ap(e)?lu(e,Mu(i)):e}),!0))}}(t,n):void 0}function T_(n){if(e.isJsxAttribute(n)){var t=x_(n.parent);if(!t||hi(t))return;return y_(t,n.name.escapedText)}return D_(n.parent)}function S_(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 S_(e.expression);case 280:return!e.expression||S_(e.expression)}return!1}function x_(n,t){var r=L_(e.isObjectLiteralMethod(n)?function(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(16777216&n.flags))return v_(n,t)}(n,t):D_(n,t),n,t);if(r&&!(t&&2&t&&8650752&r.flags)){var a=Sm(r,js,!0);if(1048576&a.flags){if(e.isObjectLiteralExpression(n))return function(n,t){return rp(t,e.map(e.filter(n.properties,(function(e){return!!e.symbol&&285===e.kind&&S_(e.initializer)&&Qf(t,e.symbol.escapedName)})),(function(e){return[function(){return iv(e.initializer)},e.symbol.escapedName]})),Dd,t)}(n,a);if(e.isJsxAttributes(n))return function(n,t){return rp(t,e.map(e.filter(n.properties,(function(e){return!!e.symbol&&277===e.kind&&Qf(t,e.symbol.escapedName)&&(!e.initializer||S_(e.initializer))})),(function(e){return[e.initializer?function(){return iv(e.initializer)}:function(){return Me},e.symbol.escapedName]})),Dd,t)}(n,a)}return a}}function L_(n,t,r){if(n&&Ch(n,63176704)){var a=C_(t);if(a&&e.some(a.inferences,Zh)){if(r&&1&r)return A_(n,a.nonFixingMapper);if(a.returnMapper)return A_(n,a.returnMapper)}}return n}function A_(n,t){return 63176704&n.flags?pd(n,t):1048576&n.flags?Ml(e.map(n.types,(function(e){return A_(e,t)})),0):2097152&n.flags?Hl(e.map(n.types,(function(e){return A_(e,t)}))):n}function D_(n,t){if(16777216&n.flags);else{if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 246:case 159:case 162:case 161:case 195:return function(n,t){var r=n.parent;if(e.hasInitializer(r)&&n===r.initializer){var a=u_(r);if(a)return a;if(!(8&t)&&e.isBindingPattern(r.name))return Vi(r.name,!0,!1)}}(n,t);case 206:case 239:return function(n){var t=e.getContainingFunction(n);if(t){var r=f_(t);if(r){var a=e.getFunctionFlags(t);if(1&a){var i=Db(r,2&a?2:1,void 0);if(!i)return;r=i.returnType}if(2&a){var o=Sm(r,Iv);return o&&Ml([o,uh(o)])}return r}}}(n);case 216:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),a=f_(t);if(a)return n.asteriskToken?a:Hb(0,a,0!=(2&r))}}(r);case 210:return function(e,n){var t=D_(e,n);if(t){var r=Iv(t);return r&&Ml([r,uh(r)])}}(r,t);case 200:if(99===r.expression.kind)return Re;case 201:return m_(r,n);case 203:case 221:return e.isConstTypeReference(r.type)?function(n){if(e.isCallLikeExpression(n.parent))return m_(n.parent,n);return}(r):Vu(r.type);case 213:return g_(n,t);case 285:case 286:return v_(r,t);case 287:return x_(r.parent,t);case 196:var a=r;return b_(x_(a,t),e.indexOfNode(a.elements,n));case 214:return function(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?D_(t,n):void 0}(n,t);case 225:return e.Debug.assert(215===r.parent.kind),function(e,n){if(202===e.parent.kind)return m_(e.parent,n)}(r.parent,n);case 204:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?Vu(i.typeExpression.type):D_(r,t);case 280:return E_(r);case 277:case 279:return T_(r);case 272:case 271:return function(n,t){if(e.isJsxOpeningElement(n)&&n.parent.contextualType&&4!==t)return n.parent.contextualType;return __(n,0)}(r,t)}}}function C_(n){var t=e.findAncestor(n,(function(e){return!!e.inferenceContext}));return t&&t.inferenceContext}function I_(n,t){return 0!==cy(t)?function(e,n){var t=oh(e,Le);t=N_(n,eg(n),t);var r=Z_(D.IntrinsicAttributes,n);r!==Se&&(t=os(r,t));return t}(n,t):function(n,t){var r=eg(t),a=(o=r,ng(D.ElementAttributesPropertyNameContainer,o)),i=void 0===a?oh(n,Le):""===a?Ec(n):function(e,n){if(e.unionSignatures){for(var t=[],r=0,a=e.unionSignatures;r=2)return Vc(o,c=mc([s,r],o.typeParameters,2,e.isInJSFile(n)));if(e.length(o.aliasTypeArguments)>=2){var c=mc([s,r],o.aliasTypeArguments,2,e.isInJSFile(n));return zc(o.aliasSymbol,c)}}return r}function R_(n,t){var r=ec(n,0);if(1===r.length){var a=r[0];if(!function(n,t){for(var r=0;r0&&(s=Cu(s,P(),n.symbol,_,u),o=[],i=e.createSymbolTable(),y=!1,h=!1),!W_(C=zs(iv(L.expression))))return or(L,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se;a&&Y_(C,a,L),s=Cu(s,C,n.symbol,_,u),T=o.length;continue}e.Debug.assert(166===L.kind||167===L.kind),TE(L)}!D||8576&D.flags?i.set(A.escapedName,A):Dd(D,ze)&&(Dd(D,ke)?h=!0:y=!0,r&&(g=!0)),o.push(A)}if(l&&287!==n.parent.kind)for(var O=0,w=Cs(c);O0&&(s=Cu(s,P(),n.symbol,_,u),o=[],i=e.createSymbolTable(),y=!1,h=!1),Sm(s,(function(e){return e===Ze?P():e}))):P();function P(){var t=y?j_(n,T,o,0):void 0,a=h?j_(n,T,o,1):void 0,s=Ma(n.symbol,i,e.emptyArray,e.emptyArray,t,a);return s.objectFlags|=1048704|_,m&&(s.objectFlags|=16384),g&&(s.objectFlags|=512),r&&(s.pattern=n),s}}function W_(n){if(63176704&n.flags){var t=Ps(n);if(void 0!==t)return W_(t)}return!!(126615553&n.flags||117632&qp(n)&&W_(zp(n))||3145728&n.flags&&e.every(n.types,W_))}function q_(n){return!e.stringContains(n,"-")}function z_(n){return 78===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function J_(e,n){return e.initializer?zh(e.initializer,n):Me}function X_(e,n){for(var t=[],r=0,a=e.children;r0&&(s=Cu(s,x(),a.symbol,u,!1),o=e.createSymbolTable()),hi(g=zs(Vh(m.expression,t)))&&(c=!0),W_(g)?(s=Cu(s,g,a.symbol,u,!1),i&&Y_(g,i,m)):r=r?Hl([r,g]):g}}c||o.size>0&&(s=Cu(s,x(),a.symbol,u,!1));var h=270===n.parent.kind?n.parent:void 0;if(h&&h.openingElement===n&&h.children.length>0){var v=X_(h,t);if(!c&&d&&""!==d){l&&or(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=x_(n.attributes),E=b&&y_(b,d),T=ur(33554436,d);T.type=1===v.length?v[0]:E&&vm(E,Cp)?Ll(v):vl(Ml(v)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(T.valueDeclaration,a),T.valueDeclaration.symbol=T;var S=e.createSymbolTable();S.set(d,T),s=Cu(s,Ma(a.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,u,!1)}}return c?be:r&&s!==$e?Hl([r,s]):r||(s===$e?x():s);function x(){u|=$;var n=Ma(a.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return n.objectFlags|=1048704|u,n}}(n.parent,t)}function Z_(e,n){var t=eg(n),r=t&&ma(t),a=r&&Tr(r,e,788968);return a?Io(a):Se}function $_(n){var t=br(n);if(!t.resolvedSymbol){var r=Z_(D.IntrinsicElements,n);if(r!==Se){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=Zs(r,n.tagName.escapedText);return a?(t.jsxFlags|=1,t.resolvedSymbol=a):ac(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(or(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+D.IntrinsicElements),t.resolvedSymbol=he)}return Y&&or(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(D.IntrinsicElements)),t.resolvedSymbol=he}return t.resolvedSymbol}function eg(e){var n=e&&br(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=ar(e),r=Lr(e,t,1920,void 0,t,!1);if(r){var a=Jr(Tr(ma(Jr(r)),D.JSX,1920));if(a)return n&&(n.jsxNamespace=a),a;n&&(n.jsxNamespace=!1)}}return ll(D.JSX,1920,void 0)}function ng(n,t){var r=t&&Tr(t.exports,n,788968),a=r&&Io(r),i=a&&Cs(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&or(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function tg(e){return ng(D.ElementChildrenAttributeNameContainer,e)}function rg(n,t){var r=Z_(D.IntrinsicElements,t);if(r!==Se){var a=n.value,i=Zs(r,e.escapeLeadingUnderscores(a));if(i)return to(i);var o=ac(r,0);return o||void 0}return be}function ag(n){e.Debug.assert(z_(n.tagName));var t=br(n);if(!t.resolvedJsxElementAttributesType){var r=$_(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=to(r):2&t.jsxFlags?t.resolvedJsxElementAttributesType=ac(Io(r),0):t.resolvedJsxElementAttributesType=Se}return t.resolvedJsxElementAttributesType}function ig(e){var n=Z_(D.ElementClass,e);if(n!==Se)return n}function og(e){return Z_(D.Element,e)}function sg(e){var n=og(e);if(n)return Ml([n,Ie])}function cg(n){var t,r=e.isJsxOpeningLikeElement(n);r&&function(n){RT(n,n.typeArguments);for(var t=new e.Map,r=0,a=n.attributes.properties;r=0)return d>=nh(r)&&(th(r)||ds)return!1;if(o||i>=c)return!0;for(var p=i;p=a&&t.length<=r}function ey(e){return ty(e,0,!1)}function ny(e){return ty(e,0,!1)||ty(e,1,!1)}function ty(e,n,t){if(524288&e.flags){var r=xs(e);if(t||0===r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(0===n&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===n&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function ry(n,t,r,a){var i=yf(n.typeParameters,n,0,a),o=rh(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return _f(s?rd(t,s):t,n,(function(e,n){wf(i.inferences,e,n)})),r||gf(t,n,(function(e,n){wf(i.inferences,e,n,64)})),Lc(n,Hf(i),e.isInJSFile(t.declaration))}function ay(n,t,r,a,i){if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r){var a=I_(n,e),i=Uh(e.attributes,a,r,t);return wf(r.inferences,i,a),Hf(r)}(n,t,a,i);if(160!==n.kind){var o=D_(n,e.every(t.typeParameters,(function(e){return!!Us(e)}))?8:0);if(o){var s=C_(n),c=pd(o,Sf(function(n,t){return void 0===t&&(t=0),n&&hf(e.map(n.inferences,Tf),n.signature,n.flags|t,n.compareTypes)}(s,1))),l=ey(c),u=l&&l.typeParameters?Rc(Ac(l,l.typeParameters)):c,d=Ec(t);wf(i.inferences,u,d,64);var p=yf(t.typeParameters,t,i.flags),f=pd(o,s&&s.returnMapper);wf(p.inferences,f,d),i.returnMapper=e.some(p.inferences,Zh)?Sf(function(n){var t=e.filter(n.inferences,Zh);return t.length?hf(e.map(t,Tf),n.signature,n.flags,n.compareTypes):void 0}(p)):void 0}}var m=ah(t),_=m?Math.min(eh(t)-1,r.length):r.length;if(m&&262144&m.flags){var g=e.find(i.inferences,(function(e){return e.typeParameter===m}));g&&(g.impliedArity=e.findIndex(r,Xg,_)<0?r.length-_:void 0)}var y=vc(t);if(y){var h=uy(n),v=h?iv(h):Ue;wf(i.inferences,v,y)}for(var b=0;b<_;b++){var E=r[b];if(219!==E.kind){var T=Qy(t,b),S=Uh(E,T,i,a);wf(i.inferences,S,T)}}if(m){var x=oy(r,_,r.length,m,i,a);wf(i.inferences,x,m)}return Hf(i)}function iy(e){return 1048576&e.flags?Sm(e,iy):1&e.flags||xp(Ps(e)||e)?e:Gp(e)?Ll(Kc(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Ll([e],[8])}function oy(n,t,r,a,i,o){if(t>=r-1&&Xg(d=n[r-1]))return iy(224===d.kind?d.type:Uh(d.expression,a,i,o));for(var s=[],c=[],l=[],u=t;ud&&(d=h)}}if(!u)return!0;for(var v=1/0,b=0,E=a;b0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var a=n.arguments||e.emptyArray,i=Yg(a);if(i>=0){for(var o=a.slice(0,i),s=function(n){var t=a[n],r=217===t.kind&&(Et?iv(t.expression):Vh(t.expression));r&&Gp(r)?e.forEach(Kc(r),(function(e,n){var a,i=r.target.elementFlags[n],s=dy(t,4&i?vl(e):e,!!(12&i),null===(a=r.target.labeledElementDeclarations)||void 0===a?void 0:a[n]);o.push(s)})):o.push(t)},c=i;cs&&(s=f),l-1;l<=o&&v&&l--;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(a&&nh(a)>l&&a.declaration){var E=a.declaration.parameters[a.thisParameter?l+1:l];E&&(g=e.createDiagnosticForNode(E,e.isBindingPattern(E.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(E)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,E.name?e.isBindingPattern(E.name)?void 0:e.idText(e.getFirstIdentifier(E.name)):l))}if(il&&S?r.indexOf(S):Math.min(o,r.length-1)))}}else _=e.factory.createNodeArray(r.slice(o));var x=e.first(_).pos,L=e.last(_).end;L===x&&L++,e.setTextRangePosEnd(_,x,L);var A=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),_,b,h,l);return g?e.addRelatedInfo(A,g):A}function yy(n,r,a,i,o,s){var c,l=202===n.kind,u=160===n.kind,d=e.isJsxOpeningLikeElement(n),p=!a&&t;u||(c=n.typeArguments,(l||d||105!==n.expression.kind)&&e.forEach(c,bE));var f=a||[];if(function(n,t,r){var a,i,o,s,c=0,l=-1;e.Debug.assert(!t.length);for(var u=0,d=n;u1&&(y=q(f,Qt,E)),y||(y=q(f,$t,E)),y)return y;if(p)if(m)if(1===m.length||m.length>3){var T,S=m[m.length-1];m.length>3&&(T=e.chainDiagnosticMessages(T,e.Diagnostics.The_last_overload_gave_the_following_error),T=e.chainDiagnosticMessages(T,e.Diagnostics.No_overload_matches_this_call));var x=ly(n,h,S,$t,0,!0,(function(){return T}));if(x)for(var L=0,A=x;L3&&e.addRelatedInfo(D,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),zt.add(D)}else e.Debug.fail("No error for last overload signature")}else{for(var C=[],I=0,N=Number.MAX_VALUE,R=0,k=0,O=function(t){var r=ly(n,h,t,$t,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,k+1,f.length,Za(t))}));r?(r.length<=N&&(N=r.length,R=k),I=Math.max(I,r.length),C.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),k++},w=0,P=m;w1?C[R]:e.flatten(C);e.Debug.assert(M.length>0,"No errors reported for 3 or fewer overload signatures");var F=e.chainDiagnosticMessages(e.map(M,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),U=e.flatMap(M,(function(e){return e.relatedInformation}));if(e.every(M,(function(e){return e.start===M[0].start&&e.length===M[0].length&&e.file===M[0].file}))){var V=M[0],j=V.file,H=V.start,K=V.length;zt.add({file:j,start:H,length:K,code:F.code,category:F.category,messageText:F,relatedInformation:U})}else zt.add(e.createDiagnosticForNodeFromMessageChain(n,F,U))}else if(_)zt.add(gy(n,[_],h));else if(g)sy(g,n.typeArguments,!0,s);else{var W=e.filter(r,(function(e){return $g(e,c)}));0===W.length?zt.add(function(n,t,r){var a=r.length;if(1===t.length){var i=fc((d=t[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,ia?c=Math.min(c,p):o0),TE(n),a||1===t.length||t.some((function(e){return!!e.typeParameters}))?function(n,t,r){var a=function(e,n){for(var t=-1,r=-1,a=0;a=n)return a;o>r&&(r=o,t=a)}return t}(t,void 0===ie?r.length:ie),i=t[a],o=i.typeParameters;if(!o)return i;var s=qg(n)?n.typeArguments:void 0,c=s?Dc(i,function(e,n,t){var r=e.map(ME);for(;r.length>n.length;)r.pop();for(;r.length=0&&or(n.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=gg(n.expression);if(i===je)return ct;if((i=js(i))===Se)return Jg(n);if(hi(i))return n.typeArguments&&or(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),zg(n);var o=ec(i,1);if(o.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,a=e.getSelectedEffectiveModifierFlags(r,24);if(!a||165!==r.kind)return!0;var i=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=Io(r.parent.symbol);if(!kE(n,i)){var s=e.getContainingClass(n);if(s&&16&a){var c=ME(s);if(function n(t,r){var a=ho(r);if(!e.length(a))return!1;var i=a[0];if(2097152&i.flags){for(var o=ls(i.types),s=0,c=0,l=i.types;c0;if(1048576&t.flags){for(var c=!1,l=0,u=t.types;l=r-1)return t===r-1?i:vl(lu(i,ke));for(var o=[],s=[],c=[],l=t;l0)return n.parameters.length-1+i}}return!t&&16&n.flags?0:n.minArgumentCount}function th(e){if(G(e)){var n=to(e.parameters[e.parameters.length-1]);return!Gp(n)||n.target.hasRestElement}return!1}function rh(e){if(G(e)){var n=to(e.parameters[e.parameters.length-1]);if(!Gp(n))return n;if(n.target.hasRestElement)return Cl(n,n.target.fixedLength)}}function ah(e){var n=rh(e);return!n||Tp(n)||hi(n)||0!=(131072&zs(n).flags)?void 0:n}function ih(e){return oh(e,Ve)}function oh(e,n){return e.parameters.length>0?Qy(e,0):n}function sh(n,t){(n.typeParameters=t.typeParameters,t.thisParameter)&&((!(i=n.thisParameter)||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(n.thisParameter=af(t.thisParameter,void 0)),ch(n.thisParameter,to(t.thisParameter))));for(var r=n.parameters.length-(G(n)?1:0),a=0;a0&&(r=Ml(u,2)):l=Ve;var d=function(n,t){var r=[],a=[],i=0!=(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,(function(n){var o,s=n.expression?iv(n.expression,t):De;if(e.pushIfUnique(r,mh(n,s,be,i)),n.asteriskToken){var c=Db(s,i?19:17,n.expression);o=c&&c.nextType}else o=D_(n);o&&e.pushIfUnique(a,o)})),{yieldTypes:r,nextTypes:a}}(n,t),p=d.yieldTypes,f=d.nextTypes;a=e.some(p)?Ml(p,2):void 0,i=e.some(f)?Hl(f):void 0}else{var m=hh(n,t);if(!m)return 2&o?dh(n,Ve):Ve;if(0===m.length)return 2&o?dh(n,Ue):Ue;r=Ml(m,2)}if(r||a||i){if(a&&mf(n,a,3),r&&mf(n,r,1),i&&mf(n,i,2),r&&Rp(r)||a&&Rp(a)||i&&Rp(i)){var _=O_(n),g=_?_===_c(n)?c?void 0:r:L_(Ec(_),n):void 0;c?(a=Fp(a,g,0,s),r=Fp(r,g,1,s),i=Fp(i,g,2,s)):r=function(e,n,t){return e&&Rp(e)&&(e=Mp(e,n?t?Dv(n):n:void 0)),e}(r,g,s)}a&&(a=df(a)),r&&(r=df(r)),i&&(i=df(i))}return c?fh(a||Ve,r||l,i||p_(2,n)||Le,s):s?lh(r||l):r||l}function fh(e,n,t,r){var a=r?_t:gt,i=a.getGlobalGeneratorType(!1);if(e=a.resolveIterationType(e,void 0)||Le,n=a.resolveIterationType(n,void 0)||Le,t=a.resolveIterationType(t,void 0)||Le,i===tn){var o=a.getGlobalIterableIteratorType(!1),s=o!==tn?Rb(o,a):void 0,c=s?s.returnType:be,l=s?s.nextType:Ae;return Dd(n,c)&&Dd(l,t)?o!==tn?yl(o,[e]):(a.getGlobalIterableIteratorType(!0),Ze):(a.getGlobalGeneratorType(!0),Ze)}return yl(i,[e,n,t])}function mh(n,t,r,a){var i=n.expression||n,o=n.asteriskToken?bb(a?19:17,t,r,i):t;return a?Iv(o,i,n.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 _h(e,n,t,r){var a=0;if(r){for(var i=n;i=0;)switch(n=a.expr[i],a.state[i]){case 0:if(e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n)){l(iv(n.right,t));break}if(Gh(n),62===(o=n.operatorToken.kind)&&(197===n.left.kind||196===n.left.kind)){l(Ph(n.left,iv(n.right,t),t,107===n.right.kind));break}u(1),d(n.left);break;case 1:var o,s=r;a.leftType[i]=s,55!==(o=n.operatorToken.kind)&&56!==o&&60!==o||_b(s,n.left),u(2),d(n.right);break;case 2:s=a.leftType[i];var c=r;l(Bh(n.left,n.operatorToken,n.right,s,c,n));break;default:return e.Debug.fail("Invalid state "+a.state[i]+" for checkBinaryExpression")}return r;function l(e){r=e,i--}function u(e){a.state[i]=e}function d(n){e.isBinaryExpression(n)?(i++,a.expr[i]=n,a.state[i]=0,a.leftType[i]=void 0):r=iv(n,t)}}function Gh(n){var t=n.left,r=n.operatorToken,a=n.right;60===r.kind&&(!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind||XT(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),!e.isBinaryExpression(a)||56!==a.operatorToken.kind&&55!==a.operatorToken.kind||XT(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(r.kind)))}function Bh(n,r,a,i,o,s){var c,l,u=r.kind;switch(u){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(i===je||o===je)return je;i=Tg(i,n),o=Tg(o,a);var d=void 0;if(528&i.flags&&528&o.flags&&void 0!==(d=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 or(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d)),ke;var p,f=Eh(n,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),m=Eh(a,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Ih(i,3)&&Ih(o,3)||!Ch(i,2112)&&!Ch(o,2112))p=ke;else if(S(i,o)){switch(u){case 49:case 71:D();break;case 42:case 66:H<3&&or(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=Oe}else D(S),p=Se;return f&&m&&L(p),p;case 39:case 63:if(i===je||o===je)return je;Ih(i,132)||Ih(o,132)||(i=Tg(i,n),o=Tg(o,a));var _=void 0;if(Ih(i,296,!0)&&Ih(o,296,!0)?_=ke:Ih(i,2112,!0)&&Ih(o,2112,!0)?_=Oe:Ih(i,132,!0)||Ih(o,132,!0)?_=Re:(hi(i)||hi(o))&&(_=i===Se||o===Se?Se:be),_&&!x(u))return _;if(!_){return D((function(e,n){return Ih(e,2543)&&Ih(n,2543)})),be}return 63===u&&L(_),_;case 29:case 31:case 32:case 33:return x(u)&&(i=Op(Tg(i,n)),o=Op(Tg(o,a)),A((function(e,n){return Id(e,n)||Id(n,e)||Dd(e,Xe)&&Dd(n,Xe)}))),Ge;case 34:case 35:case 36:case 37:return A((function(e,n){return Mh(e,n)||Mh(n,e)})),Ge;case 101:return function(n,t,r,a){return r===je||a===je?je:(!hi(r)&&Nh(r,131068)&&or(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),hi(a)||jE(a)||Ad(a,_n)||or(t,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),Ge)}(n,a,i,o);case 100:return function(n,t,r,a){return r===je||a===je?je:(r=Tg(r,n),a=Tg(a,t),Nh(r,12716)||Ih(r,4456448)||or(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Nh(a,126091264)||or(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Ge)}(n,a,i,o);case 55:case 75:var g=4194304&rm(i)?Ml([(l=q?i:Op(o),Sm(l,Jp)),o]):i;return 75===u&&L(o),g;case 56:case 74:var y=8388608&rm(i)?Ml([zp(i),o],2):i;return 74===u&&L(o),y;case 60:case 76:var h=262144&rm(i)?Ml([Qp(i),o],2):i;return 76===u&&L(o),h;case 62:var v=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return function(n,t){if(2===n)for(var r=0,a=Ls(t);r1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;for(var r=n.slice(0,t),a=1;;a++){var i=r+a;if(!$h(e,i))return i}}function nv(e){var n=ey(e);if(n&&!n.typeParameters)return Ec(n)}function tv(n){var t=rv(n);if(t)return t;if(67108864&n.flags&&$n){var r=$n[R(n)];if(r)return r}var a=xt,i=iv(n);xt!==a&&(($n||($n=[]))[R(n)]=i,e.setNodeFlags(n,67108864|n.flags));return i}function rv(n){var t=e.skipParentheses(n);if(!e.isCallExpression(t)||105===t.expression.kind||e.isRequireCall(t,!0)||Gy(t)){if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return Vu(t.type);if(8===n.kind||10===n.kind||109===n.kind||94===n.kind)return iv(n)}else{var r=e.isCallChain(t)?function(e){var n=iv(e.expression),t=tf(n,e.expression),r=nv(n);return r&&nf(r,e,t!==n)}(t):nv(gg(t.expression));if(r)return r}}function av(e){var n=br(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=be;try{return n.contextFreeType=iv(e,4)}finally{e.contextualType=t}}function iv(n,a,i){var o=d;d=n,T=0;var s=Yh(n,function(n,a,i){var o=n.kind;if(r)switch(o){case 218:case 205:case 206:r.throwIfCancellationRequested()}switch(o){case 78:return Qm(n);case 107:return t_(n);case 105:return i_(n);case 103:return Ne;case 14:case 10:return Ou(Mu(n.text));case 8:return ZT(n),Ou(Mu(+n.text));case 9:return function(n){if(!(e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent))&&H<7&&XT(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(n),Ou(function(n){return Mu({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}(n));case 109:return Me;case 94:return we;case 215:return function(n){return e.forEach(n.templateSpans,(function(n){Ch(iv(n.expression),12288)&&or(n.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)})),Re}(n);case 13:return Sn;case 196:return M_(n,a,i);case 197:return K_(n,a);case 198:return xg(n);case 156:return Lg(n);case 199:return Hg(n);case 200:if(99===n.expression.kind)return By(n);case 201:return Py(n,a);case 202:return jy(n);case 204:return function(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;if(r)return Hy(r,r.typeExpression.type,n.expression,t);return iv(n.expression,t)}(n,a);case 218:return function(e){return eE(e),TE(e),to(va(e))}(n);case 205:case 206:return bh(n,a);case 208:return function(e){return iv(e.expression),Yt}(n);case 203:case 221:return function(e){return Hy(e,e.type,e.expression)}(n);case 222:return Ky(n);case 223:return Wy(n);case 207:return Ah(n);case 209:return function(e){return iv(e.expression),De}(n);case 210:return function(n){if(t){var r;if(!(32768&n.flags))if(e.isInTopLevelContext(n)){if(!qT(r=e.getSourceFileOfNode(n))){var a=void 0;if(!e.isEffectiveExternalModule(r,j)){a||(a=e.getSpanOfTokenAtPosition(r,n.pos));var i=e.createFileDiagnostic(r,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);zt.add(i)}if(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.System||H<4){a=e.getSpanOfTokenAtPosition(r,n.pos);i=e.createFileDiagnostic(r,a.start,a.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);zt.add(i)}}}else if(!qT(r=e.getSourceFileOfNode(n))){a=e.getSpanOfTokenAtPosition(r,n.pos),i=e.createFileDiagnostic(r,a.start,a.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);var o=e.getContainingFunction(n);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(i,s)}zt.add(i)}d_(n)&&or(n,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=iv(n.expression),l=Cv(c,n,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l!==c||l===Se||3&c.flags||sr(!1,e.createDiagnosticForNode(n,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),l}(n);case 211:return function(n){var t=iv(n.operand);if(t===je)return je;switch(n.operand.kind){case 8:switch(n.operator){case 40:return Ou(Mu(-n.operand.text));case 39:return Ou(Mu(+n.operand.text))}break;case 9:if(40===n.operator)return Ou(Mu({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return Tg(t,n.operand),Ch(t,12288)&&or(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),39===n.operator?(Ch(t,2112)&&or(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),$a(Op(t))),ke):Dh(t);case 53:gb(n.operand);var r=12582912&rm(t);return 4194304===r?we:8388608===r?Me:Ge;case 45:case 46:return Eh(n.operand,Tg(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Lh(n.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),Dh(t)}return Se}(n);case 212:return function(n){var t=iv(n.operand);return t===je?je:(Eh(n.operand,Tg(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Lh(n.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),Dh(t))}(n);case 213:return Fh(n,a);case 214:return function(e,n){var t=gb(e.condition);return mb(e.condition,e.whenTrue,t),Ml([iv(e.whenTrue,n),iv(e.whenFalse,n)],2)}(n,a);case 217:return function(e,n){return H<2&&ST(e,j.downlevelIteration?1536:2048),bb(33,iv(e.expression,n),Ae,e.expression)}(n,a);case 219:return De;case 216:return function(n){t&&(8192&n.flags||zT(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),d_(n)&&or(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(n);if(!r)return be;var a=e.getFunctionFlags(r);if(!(1&a))return be;var i=0!=(2&a);n.asteriskToken&&(i&&H<99&&ST(n,53248),!i&&H<2&&j.downlevelIteration&&ST(n,256));var o=Tc(r),s=o&&Kb(o,i),c=s&&s.yieldType||be,l=s&&s.nextType||be,u=i?Iv(l)||be:l,d=n.expression?iv(n.expression):De,p=mh(n,d,u,i);return o&&p&&kd(p,c,n.expression||n,n.expression),n.asteriskToken?Tb(i?19:17,1,d,n.expression)||be:o?Hb(2,o,i)||be:p_(2,r)||be}(n);case 224:return function(e){return e.isSpread?lu(e.type,ke):e.type}(n);case 280:return dg(n,a);case 270:case 271:return function(e,n){return TE(e),og(e)||be}(n);case 274:return function(n){cg(n.openingFragment);var t=e.getSourceFileOfNode(n);return 2!==j.jsx||!j.jsxFactory&&!t.pragmas.has("jsx")||j.jsxFragmentFactory||t.pragmas.has("jsxfrag")||or(n,j.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),X_(n),og(n)||be}(n);case 278:return Q_(n,a);case 272:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Se}(n,a,i),a);return Rh(s)&&function(n,t){198===n.parent.kind&&n.parent.expression===n||199===n.parent.kind&&n.parent.expression===n||(78===n.kind||156===n.kind)&&OE(n)||175===n.parent.kind&&n.parent.exprName===n||267===n.parent.kind||or(n,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(j.isolatedModules){e.Debug.assert(!!(128&t.symbol.flags)),8388608&t.symbol.valueDeclaration.flags&&or(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(n,s),d=o,s}function ov(n){n.expression&&zT(n.expression,e.Diagnostics.Type_expected),bE(n.constraint),bE(n.default);var r=Co(va(n));Ps(r),function(e){return Bs(e)!==on}(r)||or(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,$a(r));var a=Ns(r),i=Us(r);a&&i&&Rd(i,Xo(pd(a,Ju(r,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),t&&Yb(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function sv(n){LT(n),cb(n);var t=e.getContainingFunction(n);e.hasSyntacticModifier(n,92)&&(165===t.kind&&e.nodeIsPresent(t.body)||or(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),165===t.kind&&e.isIdentifier(n.name)&&"constructor"===n.name.escapedText&&or(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&or(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&("this"===n.name.escapedText||"new"===n.name.escapedText)&&(0!==t.parameters.indexOf(n)&&or(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),165!==t.kind&&169!==t.kind&&174!==t.kind||or(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),206===t.kind&&or(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),166!==t.kind&&167!==t.kind||or(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!n.dotDotDotToken||e.isBindingPattern(n.name)||Dd(zs(to(n.symbol)),Dn)||or(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function cv(n,t,r){for(var a=0,i=n.elements;a=2||!e.hasRestParameter(n)||8388608&n.flags||e.nodeIsMissing(n.body))return;e.forEach(n.parameters,(function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===oe.escapedName&&ir("noEmit",n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(n);var a=e.getEffectiveReturnTypeNode(n);if(Y&&!a)switch(n.kind){case 169:or(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 168:or(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(a){var i=e.getFunctionFlags(n);if(1==(5&i)){var o=Vu(a);if(o===Ue)or(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Hb(0,o,0!=(2&i))||be;Rd(fh(s,Hb(1,o,0!=(2&i))||s,Hb(2,o,0!=(2&i))||Le,!!(2&i)),o,a)}}else 2==(3&i)&&function(n,t){var r=Vu(t);if(H>=2){if(r===Se)return;var a=fl(!0);if(a!==tn&&!ro(r,a))return void or(t,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,$a(Iv(r)||Ue))}else{if(function(n){kv(n&&e.getEntityNameFromTypeNode(n))}(t),r===Se)return;var i=e.getEntityNameFromTypeNode(t);if(void 0===i)return void or(t,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,$a(r));var o=ra(i,111551,!0),s=o?to(o):Se;if(s===Se)return void(78===i.kind&&"Promise"===i.escapedText&&ao(r)===fl(!1)?or(t,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):or(t,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(i)));var c=(d=!0,Pn||(Pn=ul("PromiseConstructorLike",0,d))||Ze);if(c===Ze)return void or(t,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(i));if(!Rd(s,c,t,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 l=i&&e.getFirstIdentifier(i),u=Tr(n.locals,l.escapedText,111551);if(u)return void or(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(i))}var d;Cv(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(n,a)}170!==n.kind&&304!==n.kind&&Uv(n)}}function uv(n){for(var t=new e.Map,r=0,a=n.members;r0&&t.declarations[0]!==n)return}var r=kc(va(n));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o=0)return void(t&&or(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));qt.push(n.id);var s=Iv(o,t,r,a);if(qt.pop(),!s)return;return i.awaitedTypeOfType=s}if(!function(e){var n=yi(e,"then");return!!n&&ec(am(n,2097152),0).length>0}(n))return i.awaitedTypeOfType=n;if(t){if(!r)return e.Debug.fail();or(t,r,a)}}function Rv(n){var t=ky(n);My(t,n);var r=Ec(t);if(!(1&r.flags)){var a,i,o=Dy(n);switch(n.parent.kind){case 249:a=Ml([to(va(n.parent)),Ue]);break;case 159:a=Ue,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 162:a=Ue,i=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:a=Ml([hl(ME(n.parent)),Ue]);break;default:return e.Debug.fail()}Rd(r,a,n,o,(function(){return i}))}}function kv(n){if(n){var t=e.getFirstIdentifier(n),r=2097152|(78===n.kind?788968:1920),a=Lr(t,t.escapedText,r,void 0,void 0,!0);a&&2097152&a.flags&&Aa(a)&&!$E(Xr(a))&&!Zr(a)&&ea(a)}}function Ov(n){var t=wv(n);t&&e.isEntityName(t)&&kv(t)}function wv(e){if(e)switch(e.kind){case 182:case 181:return Pv(e.types);case 183:return Pv([e.trueType,e.falseType]);case 185:case 191:return wv(e.type);case 172:return e.typeName}}function Pv(n){for(var t,r=0,a=n;r=e.ModuleKind.ES2015)&&(nb(n,t,"require")||nb(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=gi(n);294===r.kind&&e.isExternalOrCommonJsModule(r)&&ir("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function ob(n,t){if(!(H>=4)&&nb(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=gi(n);294===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&ir("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}function sb(e){return e===Ee?be:e===An?Ln:e}function cb(n){var t;if(Fv(n),e.isBindingElement(n)||bE(n.type),n.name){if(157===n.name.kind&&(V_(n.name),n.initializer&&Vh(n.initializer)),195===n.kind){193===n.parent.kind&&H<99&&ST(n,4),n.propertyName&&157===n.propertyName.kind&&V_(n.propertyName);var r=n.parent.parent,a=vi(r),i=n.propertyName||n.name;if(a&&!e.isBindingPattern(i)){var o=Wl(i);if(Bo(o)){var s=Zs(a,Ko(o));s&&(Ug(s,void 0,!1),mg(r,!!r.initializer&&105===r.initializer.kind,a,s))}}}if(e.isBindingPattern(n.name)&&(194===n.name.kind&&H<2&&j.downlevelIteration&&ST(n,512),e.forEach(n.name.elements,bE)),n.initializer&&159===e.getRootDeclaration(n).kind&&e.nodeIsMissing(e.getContainingFunction(n).body))or(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){var c=n.initializer&&235!==n.parent.parent.kind,l=0===n.name.elements.length;if(c||l){var u=ji(n);if(c){var d=Vh(n.initializer);q&&l?Sg(d,n):kd(d,ji(n),n,n.initializer)}l&&(e.isArrayBindingPattern(n.name)?bb(65,u,Ae,n):q&&Sg(u,n))}}else{var p=va(n),f=sb(to(p));if(n===p.valueDeclaration){var m=e.getEffectiveInitializer(n);if(m)e.isInJSFile(n)&&e.isObjectLiteralExpression(m)&&(0===m.properties.length||e.isPrototypeAccess(n.name))&&!!(null===(t=p.exports)||void 0===t?void 0:t.size)||235===n.parent.parent.kind||kd(Vh(m),f,n,m,void 0);p.declarations.length>1&&e.some(p.declarations,(function(t){return t!==n&&e.isVariableLike(t)&&!ub(t,n)}))&&or(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var _=sb(ji(n));f===Se||_===Se||Td(f,_)||67108864&p.flags||lb(p.valueDeclaration,f,n,_),n.initializer&&kd(Vh(n.initializer),_,n,n.initializer,void 0),ub(n,p.valueDeclaration)||or(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}162!==n.kind&&161!==n.kind&&(Lv(n),246!==n.kind&&195!==n.kind||function(n){if(0==(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(246!==n.kind||n.initializer)){var t=va(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=Lr(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&pg(r)){var a=e.getAncestor(r.valueDeclaration,247),i=229===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!(i&&(227===i.kind&&e.isFunctionLike(i.parent)||254===i.kind||253===i.kind||294===i.kind))){var o=Qa(r);or(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),ib(n,n.name),ob(n,n.name),H<99&&nb(n,n.name,"WeakMap")&&Wt.push(n))}}}function lb(n,t,r,a){var i=e.getNameOfDeclaration(r),o=162===r.kind||161===r.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(i),c=or(i,o,s,$a(t),$a(a));n&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function ub(n,t){if(159===n.kind&&246===t.kind||246===n.kind&&159===t.kind)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;return e.getSelectedEffectiveModifierFlags(n,504)===e.getSelectedEffectiveModifierFlags(t,504)}function db(n){return function(n){if(235!==n.parent.parent.kind&&236!==n.parent.parent.kind)if(8388608&n.flags)KT(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return XT(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return XT(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(229!==n.parent.parent.kind||!n.type||n.initializer||8388608&n.flags))return XT(n.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var t=e.getEmitModuleKind(j);t=1&&db(n.declarations[0])}function vb(e){return bb(e.awaitModifier?15:13,gg(e.expression),Ae,e.expression)}function bb(e,n,t,r){return hi(n)?n:Eb(e,n,t,r,!0)||be}function Eb(n,t,r,a,i){var o=0!=(2&n);if(t!==Ve){var s=H>=2,c=!s&&j.downlevelIteration;if(s||c||o){var l=Db(t,n,s?a:void 0);if(i&&l){var u=8&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&n?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;u&&Rd(r,l.nextType,a,u)}if(l||s)return l&&l.yieldType}var d=t,p=!1,f=!1;if(4&n){if(1048576&d.flags){var m=t.types,_=e.filter(m,(function(e){return!(132&e.flags)}));_!==m&&(d=Ml(_,2))}else 132&d.flags&&(d=Ve);if((f=d!==t)&&(H<1&&a&&(or(a,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&d.flags))return Re}if(!Ap(d)){if(a&&!p){var g=Tb(n,0,t,void 0),y=4&n&&!f?c?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:g?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:g?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],h=y[0];lr(a,y[1]&&!!Av(d),h,$a(d))}return f?Re:void 0}var v=ac(d,1);return f&&v?132&v.flags?Re:Ml([v,Re],2):v}wb(a,t,o)}function Tb(e,n,t,r){if(!hi(t)){var a=Db(t,e,r);return a&&a[F(n)]}}function Sb(e,n,t){if(void 0===e&&(e=Ve),void 0===n&&(n=Ve),void 0===t&&(t=Le),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=Bc([e,n,t]),a=ut.get(r);return a||(a={yieldType:e,returnType:n,nextType:t},ut.set(r,a)),a}return{yieldType:e,returnType:n,nextType:t}}function xb(n){for(var t,r,a,i=0,o=n;ir)return!1;for(var u=0;u1)return zT(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(116===o.token),r)return zT(o,e.Diagnostics.implements_clause_already_seen);r=!0}OT(o)}})(n)||CT(n.typeParameters,t)}(n),Fv(n),n.name&&(Yb(n.name,e.Diagnostics.Class_name_cannot_be_0),ib(n,n.name),ob(n,n.name),8388608&n.flags||(r=n.name,1===H&&"Object"===r.escapedText&&K>o;case 49:return i>>>o;case 47:return i<1&&O(n,!!j.preserveConstEnums||!!j.isolatedModules)){var s=function(n){for(var t=0,r=n.declarations;t1)for(var o=0,s=r;o=229&&a<=245&&n.flowNode&&!Um(n.flowNode)&&cr(!1===j.allowUnreachableCode,n,e.Diagnostics.Unreachable_code_detected);switch(a){case 158:return ov(n);case 159:return sv(n);case 162:return pv(n);case 161:return function(n){return e.isPrivateIdentifier(n.name)&&or(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),pv(n)}(n);case 173:case 174:case 168:case 169:case 170:return lv(n);case 164:case 163:return function(n){jT(n)||PT(n.name),e.isPrivateIdentifier(n.name)&&or(n,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Bv(n),e.hasSyntacticModifier(n,128)&&164===n.kind&&n.body&&or(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}(n);case 165:return fv(n);case 166:case 167:return mv(n);case 172:return vv(n);case 171:return function(n){var t=function(e){switch(e.parent.kind){case 206:case 168:case 248:case 205:case 173:case 164:case 163:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=_c(t),a=bc(r);if(a){bE(n.type);var i=n.parameterName;if(0===a.kind||2===a.kind)Gu(i);else if(a.parameterIndex>=0){if(G(r)&&a.parameterIndex===r.parameters.length-1)or(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(a.type){Rd(a.type,to(r.parameters[a.parameterIndex]),n.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(i){for(var o=!1,s=0,c=t.parameters;s0),r.length>1&&or(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=Gv(n.class.expression),i=e.getClassExtendsHeritageElement(t);if(i){var o=Gv(i.expression);o&&a.escapedText!==o.escapedText&&or(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(o))}}else or(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 312:return function(n){var t=e.getEffectiveJSDocHost(n);t&&(e.isClassDeclaration(t)||e.isClassExpression(t))||or(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 327:case 320:case 321:return function(n){n.typeExpression||or(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&Yb(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),bE(n.typeExpression)}(n);case 326:return function(e){bE(e.constraint);for(var n=0,t=e.typeParameters;n-1&&r1){var a=e.isEnumConst(n);e.forEach(r.declarations,(function(n){e.isEnumDeclaration(n)&&e.isEnumConst(n)!==a&&or(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(n){if(252!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(i?or(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}}(n);case 253:return lE(n);case 258:return mE(n);case 257:return function(n){if(!gE(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(LT(n),e.isInternalModuleImportEqualsDeclaration(n)||dE(n)))if(fE(n),e.hasSyntacticModifier(n,1)&&$r(n),269!==n.moduleReference.kind){var t=Xr(va(n));if(t!==he){if(111551&t.flags){var r=e.getFirstIdentifier(n.moduleReference);1920&ra(r,112575).flags||or(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}788968&t.flags&&Yb(n.name,e.Diagnostics.Import_name_cannot_be_0)}}else K>=e.ModuleKind.ES2015&&!(8388608&n.flags)&&XT(n,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)}(n);case 264:return _E(n);case 263:return function(n){if(!gE(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var t=294===n.parent.kind?n.parent:n.parent.parent;if(253!==t.kind||e.isAmbientModule(t)){if(!LT(n)&&e.hasEffectiveModifiers(n)&&zT(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),78===n.expression.kind){var r=n.expression,a=ra(r,67108863,!0,!0,n);if(a){Ym(a,r);var i=2097152&a.flags?Xr(a):a;(i===he||111551&i.flags)&&Vh(n.expression)}e.getEmitDeclarations(j)&&di(n.expression,!0)}else Vh(n.expression);vE(t),8388608&n.flags&&!e.isEntityNameExpression(n.expression)&&XT(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!n.isExportEquals||8388608&n.flags||(K>=e.ModuleKind.ES2015?XT(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&XT(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?or(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):or(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 228:case 245:return void QT(n);case 268:(function(e){Fv(e)})(n)}}(n),d=a}}function EE(n){e.isInJSFile(n)||XT(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function TE(n){var t=br(e.getSourceFileOfNode(n));if(!(1&t.flags)){t.deferredNodes=t.deferredNodes||new e.Map;var r=R(n);t.deferredNodes.set(r,n)}}function SE(n){var t=d;switch(d=n,T=0,n.kind){case 200:case 201:case 202:case 160:case 272:zg(n);break;case 205:case 206:case 164:case 163:!function(n){e.Debug.assert(164!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=Tc(n);if(vh(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Ec(_c(n)),227===n.body.kind)bE(n.body);else{var a=iv(n.body),i=r&&qb(r,t);if(i)if(2==(3&t))kd(Cv(a,n.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,n.body,n.body);else kd(a,i,n.body,n.body)}}(n);break;case 166:case 167:mv(n);break;case 218:!function(n){e.forEach(n.members,bE),Uv(n)}(n);break;case 271:!function(e){cg(e),zg(e)}(n);break;case 270:!function(e){cg(e.openingElement),z_(e.closingElement.tagName)?$_(e.closingElement):iv(e.closingElement.tagName),X_(e)}(n)}d=t}function xE(t){e.performance.mark("beforeCheck"),function(t){var r=br(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,j,n))return;!function(n){!!(8388608&n.flags)&&function(n){for(var t=0,r=n.statements;t0?e.concatenate(o,i):i}return e.forEach(n.getSourceFiles(),xE),zt.getDiagnostics()}(t)}finally{r=void 0}}function CE(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function IE(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 NE(e){for(;156===e.parent.kind;)e=e.parent;return 172===e.parent.kind}function RE(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function kE(e,n){return!!RE(e,(function(e){return e===n}))}function OE(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 wE(n){if(e.isDeclarationName(n))return va(n.parent);if(e.isInJSFile(n)&&198===n.parent.kind&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)){var t=function(n){switch(e.getAssignmentDeclarationKind(n.parent.parent)){case 1:case 3:return va(n.parent);case 4:case 2:case 5:return va(n.parent.parent)}}(n);if(t)return t}if(263===n.parent.kind&&e.isEntityNameExpression(n)){var r=ra(n,2998271,!0);if(r&&r!==he)return r}else if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)&&OE(n)){var a=e.getAncestor(n,257);return e.Debug.assert(void 0!==a),na(n,!0)}if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)){var i=function(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;if(t&&192===t.kind&&t.qualifier===n)return t}(n);if(i){Vu(i);var o=br(n).resolvedSymbol;return o===he?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(function(e){for(;198===e.parent.kind;)e=e.parent;return 220===e.parent.kind}(n)){var s=0;220===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(n)?ra(n,s):void 0;if(c)return c}if(322===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(158===n.parent.kind&&326===n.parent.parent.kind){e.Debug.assert(!e.isInJSFile(n));var l=e.getTypeParameterFromJsDoc(n.parent);return l&&l.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;if(78===n.kind){if(e.isJSXTagName(n)&&z_(n)){var u=$_(n.parent);return u===he?void 0:u}return ra(n,111551,!1,!0)}if(198===n.kind||156===n.kind){var d=br(n);return d.resolvedSymbol||(198===n.kind?xg(n):Lg(n)),d.resolvedSymbol}}else if(NE(n)){return ra(n,s=172===n.parent.kind?788968:1920,!1,!0)}return 171===n.parent.kind?ra(n,1):void 0}function PE(n,t){if(294===n.kind)return e.isExternalModule(n)?ha(n.symbol):void 0;var r=n.parent,a=r.parent;if(!(16777216&n.flags)){if(P(n)){var i=va(r);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?H_(i):i}if(e.isLiteralComputedPropertyDeclarationName(n))return va(r.parent);if(78===n.kind){if(OE(n))return wE(n);if(195===r.kind&&193===a.kind&&n===r.propertyName){var o=Zs(ME(a),n.escapedText);if(o)return o}}switch(n.kind){case 78:case 79:case 198:case 156:return wE(n);case 107:var s=e.getThisContainer(n,!1);if(e.isFunctionLike(s)){var c=_c(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(n))return iv(n).symbol;case 186:return Gu(n).symbol;case 105:return iv(n).symbol;case 132:var l=n.parent;return l&&165===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(258===n.parent.kind||264===n.parent.kind)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return ia(n,n,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===n)return va(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===n?tv(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(a)?Vu(a.objectType):void 0;return u&&Zs(u,e.escapeLeadingUnderscores(n.text));case 87:case 97:case 38:case 83:return va(n.parent);case 192:return e.isLiteralImportTypeNode(n)?PE(n.argument.literal,t):void 0;case 92:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;default:return}}}function ME(n){if(16777216&n.flags)return Se;var t,r,a=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),i=a&&Eo(va(a.class));if(e.isPartOfTypeNode(n)){var o=Vu(n);return i?Xo(o,i.thisType):o}if(e.isExpressionNode(n))return GE(n);if(i&&!a.isImplements){var s=e.firstOrUndefined(ho(i));return s?Xo(s,i.thisType):Se}if(IE(n))return Io(r=va(n));if(78===(t=n).kind&&IE(t.parent)&&e.getNameOfDeclaration(t.parent)===t)return(r=PE(n))?Io(r):Se;if(e.isDeclaration(n))return to(r=va(n));if(P(n))return(r=PE(n))?to(r):Se;if(e.isBindingPattern(n))return Ci(n.parent,!0)||Se;if(OE(n)&&(r=PE(n))){var c=Io(r);return c!==Se?c:to(r)}return Se}function FE(n){if(e.Debug.assert(197===n.kind||196===n.kind),236===n.parent.kind)return Ph(n,vb(n.parent)||Se);if(213===n.parent.kind)return Ph(n,tv(n.parent.right)||Se);if(285===n.parent.kind){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression);return Oh(t,FE(t)||Se,e.indexOfNode(t.properties,n.parent))}var r=e.cast(n.parent,e.isArrayLiteralExpression),a=FE(r)||Se,i=bb(65,a,Ae,n.parent)||Se;return wh(r,a,r.elements.indexOf(n),i)}function GE(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),wu(tv(n))}function BE(n){var t=va(n.parent);return e.hasSyntacticModifier(n,32)?to(t):Io(t)}function UE(n){var t=n.name;switch(t.kind){case 78:return Mu(e.idText(t));case 8:case 10:return Mu(t.text);case 157:var r=V_(t);return Ih(r,12288)?r:Re;default:return e.Debug.fail("Unsupported property name.")}}function VE(n){n=js(n);var t=e.createSymbolTable(Cs(n)),r=ec(n,0).length?gn:ec(n,1).length?yn:void 0;return r&&e.forEach(Cs(r),(function(e){t.has(e.escapedName)||t.set(e.escapedName,e)})),wa(t)}function jE(n){return e.typeHasCallOrConstructSignatures(n,ce)}function HE(n){if(e.isGeneratedIdentifier(n))return!1;var t=e.getParseTreeNode(n,e.isIdentifier);if(!t)return!1;var r=t.parent;return!!r&&(!((e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===t)&&gT(t)===oe)}function KE(n){var t=ia(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=da(t),a=vr(t=la(t));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(_a(t),(function(e){return(e=Jr(e))&&!!(111551&e.flags)}))),a.exportsSomeValue}function WE(n,t){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var a=gT(r,function(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}(r));if(a){if(1048576&a.flags){var i=ha(a.exportSymbol);if(!t&&944&i.flags&&!(3&i.flags))return;a=i}var o=ba(a);if(o){if(512&o.flags&&294===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(r)?void 0:s}return e.findAncestor(r.parent,(function(n){return e.isModuleOrEnumDeclaration(n)&&va(n)===o}))}}}}function qE(n){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=gT(t);if(zr(r,111551)&&!Zr(r))return Pr(r)}}function zE(n){if(418&n.flags&&!e.isSourceFile(n.valueDeclaration)){var t=vr(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||function(n){return e.isBindingElement(n.valueDeclaration)&&284===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}(n)){var a=br(n.valueDeclaration);if(Lr(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(262144&a.flags){var i=524288&a.flags,o=e.isIterationStatement(r,!1),s=227===r.kind&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||i&&(o||s))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function JE(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=gT(t);if(r&&zE(r))return r.valueDeclaration}}}function XE(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=va(t);if(r)return zE(r)}return!1}function YE(n){switch(n.kind){case 257:return ZE(va(n)||he);case 259:case 260:case 262:case 267:var t=va(n)||he;return ZE(t)&&!Zr(t);case 264:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,YE));case 263:return!n.expression||78!==n.expression.kind||ZE(va(n)||he)}return!1}function QE(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);return!(void 0===t||294!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(ZE(va(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function ZE(e){var n=Xr(e);return n===he||!!(111551&n.flags)&&(j.preserveConstEnums||!$E(n))}function $E(e){return kh(e)||!!e.constEnumOnlyModule}function eT(n,t){if(Mr(n)){var r=va(n);if(r&&vr(r).referenced)return!0;var a=vr(r).target;if(a&&1&e.getEffectiveModifierFlags(n)&&111551&a.flags&&(j.preserveConstEnums||!$E(a)))return!0}return!!t&&!!e.forEachChild(n,(function(e){return eT(e,t)}))}function nT(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=hc(va(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function tT(n){return!(!q||uc(n)||e.isJSDocParameterTag(n)||!n.initializer||e.hasSyntacticModifier(n,92))}function rT(n){return q&&uc(n)&&!n.initializer&&e.hasSyntacticModifier(n,92)}function aT(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=va(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(ma(r),(function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)}))}function iT(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=va(t);return r&&Cs(to(r))||e.emptyArray}function oT(e){return br(e).flags||0}function sT(e){return oE(e.parent),br(e).enumMemberValue}function cT(e){switch(e.kind){case 288:case 198:case 199:return!0}return!1}function lT(n){if(288===n.kind)return sT(n);var t=br(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return sT(r)}}function uT(e){return!!(524288&e.flags)&&ec(e,0).length>0}function dT(n,t){var r,a=e.getParseTreeNode(n,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var i=ra(a,111551,!0,!0,t),o=(null===(r=null==i?void 0:i.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))||!1,s=i&&2097152&i.flags?Xr(i):i,c=ra(a,788968,!0,!1,t);if(s&&s===c){var l=ml(!1);if(l&&s===l)return e.TypeReferenceSerializationKind.Promise;var u=to(s);if(u&&po(u))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var d=Io(c);return d===Se?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&d.flags?e.TypeReferenceSerializationKind.ObjectType:Ih(d,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Ih(d,528)?e.TypeReferenceSerializationKind.BooleanType:Ih(d,296)?e.TypeReferenceSerializationKind.NumberLikeType:Ih(d,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Ih(d,132)?e.TypeReferenceSerializationKind.StringLikeType:Gp(d)?e.TypeReferenceSerializationKind.ArrayLikeType:Ih(d,12288)?e.TypeReferenceSerializationKind.ESSymbolType:uT(d)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Tp(d)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function pT(n,t,r,a,i){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=va(o),c=!s||133120&s.flags?Se:wp(to(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),i&&(c=Yp(c)),ne.typeToTypeNode(c,t,1024|r,a)}function fT(n,t,r,a){var i=e.getParseTreeNode(n,e.isFunctionLike);if(!i)return e.factory.createToken(128);var o=_c(i);return ne.typeToTypeNode(Ec(o),t,1024|r,a)}function mT(n,t,r,a){var i=e.getParseTreeNode(n,e.isExpression);if(!i)return e.factory.createToken(128);var o=df(GE(i));return ne.typeToTypeNode(o,t,1024|r,a)}function _T(n){return te.has(e.escapeLeadingUnderscores(n))}function gT(n,t){var r=br(n).resolvedSymbol;if(r)return r;var a=n;if(t){var i=n.parent;e.isDeclaration(i)&&n===i.name&&(a=gi(i))}return Lr(a,n.escapedText,3257279,void 0,void 0,!0)}function yT(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=gT(t);if(r)return La(r).valueDeclaration}}}function hT(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&Pu(to(va(n)))}function vT(n,t){return function(n,t,r){var a=1024&n.flags?ne.symbolToExpression(n.symbol,111551,t,void 0,r):n===Me?e.factory.createTrue():n===we&&e.factory.createFalse();if(a)return a;var i=n.value;return"object"==typeof i?e.factory.createBigIntLiteral(i):"number"==typeof i?e.factory.createNumericLiteral(i):e.factory.createStringLiteral(i)}(to(va(n)),n,t)}function bT(n){return n?(ar(n),e.getSourceFileOfNode(n).localJsxFactory||nt):nt}function ET(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var r=t.pragmas.get("jsxfrag"),a=e.isArray(r)?r[0]:r;if(a)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,H),t.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return e.parseIsolatedEntityName(j.jsxFragmentFactory,H)}function TT(n){var t=253===n.kind?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=oa(t,t,void 0);if(r)return e.getDeclarationOfKind(r,294)}function ST(n,t){if((a&t)!==t&&j.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,j)&&!(8388608&n.flags)){var i=function(n,t){u||(u=sa(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||he);return u}(r,n);if(i!==he)for(var o=t&~a,s=1;s<=4194304;s<<=1)if(o&s){var c=xT(s);Tr(i.exports,e.escapeLeadingUnderscores(c),111551)||or(n,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)}a|=t}}}function xT(n){switch(n){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 LT(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 164!==n.kind||e.nodeIsPresent(n.body)?zT(n,e.Diagnostics.Decorators_are_not_valid_here):zT(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(166===n.kind||167===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return zT(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(n)||function(n){var t,r,a,i,o=function(n){return!!n.modifiers&&(function(n){switch(n.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===n.parent.kind||294===n.parent.kind)return!1;switch(n.kind){case 248:return AT(n,129);case 249:return AT(n,125);case 250:case 229:case 251:return!0;case 252:return AT(n,84);default:return e.Debug.fail(),!1}}}(n)?zT(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(n);if(void 0!==o)return o;for(var s=0,c=0,l=n.modifiers;c1||e.modifiers[0].kind!==n}function DT(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&JT(n[0],n.end-",".length,",".length,t)}function CT(n,t){if(n&&0===n.length){var r=n.pos-"<".length;return JT(t,r,e.skipTrivia(t.text,n.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function IT(n){if(H>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=(o=n.parameters,e.filter(o,(function(n){return!!n.initializer||e.isBindingPattern(n.name)||e.isRestParameter(n)})));if(e.length(r)){e.forEach(r,(function(n){e.addRelatedInfo(or(n,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))}));var a=r.map((function(n,t){return 0===t?e.createDiagnosticForNode(n,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(n,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,i([or(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var o;return!1}function NT(n){var t=e.getSourceFileOfNode(n);return LT(n)||CT(n.typeParameters,t)||function(n){for(var t=!1,r=n.length,a=0;a".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(n,t)}function kT(n){return function(n){if(n)for(var t=0,r=n;t1){t=235===n.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 zT(i.declarations[1],t)}var s=o[0];if(s.initializer){var t=235===n.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 XT(s.name,t)}if(s.type)return XT(s,t=235===n.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 UT(n){if(n.parameters.length===(166===n.kind?1:2))return e.getThisParameter(n)}function VT(n,t){if(function(n){return e.isDynamicName(n)&&!Uo(n)}(n))return XT(n,t)}function jT(n){if(NT(n))return!0;if(164===n.kind){if(197===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||129!==e.first(n.modifiers).kind))return zT(n,e.Diagnostics.Modifiers_cannot_appear_here);if(FT(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(GT(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return JT(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(MT(n))return!0}if(e.isClassLike(n.parent)){if(8388608&n.flags)return VT(n.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===n.kind&&!n.body)return VT(n.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===n.parent.kind)return VT(n.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===n.parent.kind)return VT(n.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 HT(n){return e.isStringOrNumericLiteralLike(n)||211===n.kind&&40===n.operator&&8===n.operand.kind}function KT(n){var t,r=n.initializer;if(r){var a=!(HT(r)||function(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&HT(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&Vh(n).flags)}(r)||109===r.kind||94===r.kind||(t=r,9===t.kind||211===t.kind&&40===t.operator&&9===t.operand.kind)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!i||n.type)return XT(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(a)return XT(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!i||a)return XT(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function WT(n){var t=n.declarations;return!!DT(n.declarations)||!n.declarations.length&&JT(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function qT(e){return e.parseDiagnostics.length>0}function zT(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!qT(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return zt.add(e.createFileDiagnostic(o,s.start,s.length,t,r,a,i)),!0}return!1}function JT(n,t,r,a,i,o,s){var c=e.getSourceFileOfNode(n);return!qT(c)&&(zt.add(e.createFileDiagnostic(c,t,r,a,i,o,s)),!0)}function XT(n,t,r,a,i){return!qT(e.getSourceFileOfNode(n))&&(zt.add(e.createDiagnosticForNode(n,t,r,a,i)),!0)}function YT(n){return 250!==n.kind&&251!==n.kind&&258!==n.kind&&257!==n.kind&&264!==n.kind&&263!==n.kind&&256!==n.kind&&!e.hasSyntacticModifier(n,515)&&zT(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function QT(n){if(8388608&n.flags){if(!br(n).hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return br(n).hasReportedStatementInAmbientContext=zT(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(227===n.parent.kind||254===n.parent.kind||294===n.parent.kind){var t=br(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=zT(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function ZT(n){if(32&n.numericLiteralFlags){var t=void 0;if(H>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,190)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,288)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&40===n.parent.operator,a=(r?"-":"")+"0o"+n.text;return XT(r?n.parent:n,t,a)}}return function(n){if(16&n.numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf("."))return;var t=+e.getTextOfNode(n);if(t<=Math.pow(2,53)-1&&t+1>t)return;sr(!1,e.createDiagnosticForNode(n,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(n),!1}function $T(n,t,r,a){if(1048576&t.flags&&2621440&n.flags){var i=Cs(n);if(i){var o=Zf(i,t);if(o)return rp(t,e.map(o,(function(e){return[function(){return to(e)},e.escapedName]})),r,void 0,a)}}}},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"}(D||(D={})),e.signatureHasRestParameter=G,e.signatureHasLiteralTypes=B}(d||(d={})),function(e){var n=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function t(n,t,r,a){if(void 0===n||void 0===t)return n;var i,o=t(n);return o===n?n:void 0!==o?(i=e.isArray(o)?(a||c)(o):o,e.Debug.assertNode(i,r),i):void 0}function r(n,t,r,a,i){if(void 0===n||void 0===t)return n;var o,s,c=n.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>c-a)&&(i=c-a);var l=-1,u=-1;(a>0||i=2&&(s=function(n,t){for(var r,a=0;a0&&f<=155||186===f)return o;var m=l.factory;switch(f){case 78:return m.updateIdentifier(o,u(o.typeArguments,c,n));case 156:return m.updateQualifiedName(o,p(o.left,c,e.isEntityName),p(o.right,c,e.isIdentifier));case 157:return m.updateComputedPropertyName(o,p(o.expression,c,e.isExpression));case 158:return m.updateTypeParameterDeclaration(o,p(o.name,c,e.isIdentifier),p(o.constraint,c,e.isTypeNode),p(o.default,c,e.isTypeNode));case 159:return m.updateParameterDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.dotDotDotToken,d,e.isToken),p(o.name,c,e.isBindingName),p(o.questionToken,d,e.isToken),p(o.type,c,e.isTypeNode),p(o.initializer,c,e.isExpression));case 160:return m.updateDecorator(o,p(o.expression,c,e.isExpression));case 161:return m.updatePropertySignature(o,u(o.modifiers,c,e.isToken),p(o.name,c,e.isPropertyName),p(o.questionToken,d,e.isToken),p(o.type,c,e.isTypeNode));case 162:return m.updatePropertyDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),p(o.questionToken||o.exclamationToken,d,e.isToken),p(o.type,c,e.isTypeNode),p(o.initializer,c,e.isExpression));case 163:return m.updateMethodSignature(o,u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),p(o.questionToken,d,e.isToken),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 164:return m.updateMethodDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.asteriskToken,d,e.isToken),p(o.name,c,e.isPropertyName),p(o.questionToken,d,e.isToken),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 165:return m.updateConstructorDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),i(o.parameters,c,l,u),s(o.body,c,l,p));case 166:return m.updateGetAccessorDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 167:return m.updateSetAccessorDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),i(o.parameters,c,l,u),s(o.body,c,l,p));case 168:return m.updateCallSignature(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 169:return m.updateConstructSignature(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 170:return m.updateIndexSignature(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 171:return m.updateTypePredicateNode(o,p(o.assertsModifier,c),p(o.parameterName,c),p(o.type,c,e.isTypeNode));case 172:return m.updateTypeReferenceNode(o,p(o.typeName,c,e.isEntityName),u(o.typeArguments,c,e.isTypeNode));case 173:return m.updateFunctionTypeNode(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 174:return m.updateConstructorTypeNode(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 175:return m.updateTypeQueryNode(o,p(o.exprName,c,e.isEntityName));case 176:return m.updateTypeLiteralNode(o,u(o.members,c,e.isTypeElement));case 177:return m.updateArrayTypeNode(o,p(o.elementType,c,e.isTypeNode));case 178:return m.updateTupleTypeNode(o,u(o.elements,c,e.isTypeNode));case 179:return m.updateOptionalTypeNode(o,p(o.type,c,e.isTypeNode));case 180:return m.updateRestTypeNode(o,p(o.type,c,e.isTypeNode));case 181:return m.updateUnionTypeNode(o,u(o.types,c,e.isTypeNode));case 182:return m.updateIntersectionTypeNode(o,u(o.types,c,e.isTypeNode));case 183:return m.updateConditionalTypeNode(o,p(o.checkType,c,e.isTypeNode),p(o.extendsType,c,e.isTypeNode),p(o.trueType,c,e.isTypeNode),p(o.falseType,c,e.isTypeNode));case 184:return m.updateInferTypeNode(o,p(o.typeParameter,c,e.isTypeParameterDeclaration));case 192:return m.updateImportTypeNode(o,p(o.argument,c,e.isTypeNode),p(o.qualifier,c,e.isEntityName),r(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 191:return m.updateNamedTupleMember(o,t(o.dotDotDotToken,c,e.isToken),t(o.name,c,e.isIdentifier),t(o.questionToken,c,e.isToken),t(o.type,c,e.isTypeNode));case 185:return m.updateParenthesizedType(o,p(o.type,c,e.isTypeNode));case 187:return m.updateTypeOperatorNode(o,p(o.type,c,e.isTypeNode));case 188:return m.updateIndexedAccessTypeNode(o,p(o.objectType,c,e.isTypeNode),p(o.indexType,c,e.isTypeNode));case 189:return m.updateMappedTypeNode(o,p(o.readonlyToken,d,e.isToken),p(o.typeParameter,c,e.isTypeParameterDeclaration),p(o.questionToken,d,e.isToken),p(o.type,c,e.isTypeNode));case 190:return m.updateLiteralTypeNode(o,p(o.literal,c,e.isExpression));case 193:return m.updateObjectBindingPattern(o,u(o.elements,c,e.isBindingElement));case 194:return m.updateArrayBindingPattern(o,u(o.elements,c,e.isArrayBindingElement));case 195:return m.updateBindingElement(o,p(o.dotDotDotToken,d,e.isToken),p(o.propertyName,c,e.isPropertyName),p(o.name,c,e.isBindingName),p(o.initializer,c,e.isExpression));case 196:return m.updateArrayLiteralExpression(o,u(o.elements,c,e.isExpression));case 197:return m.updateObjectLiteralExpression(o,u(o.properties,c,e.isObjectLiteralElementLike));case 198:return 32&o.flags?m.updatePropertyAccessChain(o,p(o.expression,c,e.isExpression),p(o.questionDotToken,d,e.isToken),p(o.name,c,e.isIdentifier)):m.updatePropertyAccessExpression(o,p(o.expression,c,e.isExpression),p(o.name,c,e.isIdentifierOrPrivateIdentifier));case 199:return 32&o.flags?m.updateElementAccessChain(o,p(o.expression,c,e.isExpression),p(o.questionDotToken,d,e.isToken),p(o.argumentExpression,c,e.isExpression)):m.updateElementAccessExpression(o,p(o.expression,c,e.isExpression),p(o.argumentExpression,c,e.isExpression));case 200:return 32&o.flags?m.updateCallChain(o,p(o.expression,c,e.isExpression),p(o.questionDotToken,d,e.isToken),u(o.typeArguments,c,e.isTypeNode),u(o.arguments,c,e.isExpression)):m.updateCallExpression(o,p(o.expression,c,e.isExpression),u(o.typeArguments,c,e.isTypeNode),u(o.arguments,c,e.isExpression));case 201:return m.updateNewExpression(o,p(o.expression,c,e.isExpression),u(o.typeArguments,c,e.isTypeNode),u(o.arguments,c,e.isExpression));case 202:return m.updateTaggedTemplateExpression(o,p(o.tag,c,e.isExpression),r(o.typeArguments,c,e.isExpression),p(o.template,c,e.isTemplateLiteral));case 203:return m.updateTypeAssertion(o,p(o.type,c,e.isTypeNode),p(o.expression,c,e.isExpression));case 204:return m.updateParenthesizedExpression(o,p(o.expression,c,e.isExpression));case 205:return m.updateFunctionExpression(o,u(o.modifiers,c,e.isModifier),p(o.asteriskToken,d,e.isToken),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 206:return m.updateArrowFunction(o,u(o.modifiers,c,e.isModifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),p(o.equalsGreaterThanToken,d,e.isToken),s(o.body,c,l,p));case 207:return m.updateDeleteExpression(o,p(o.expression,c,e.isExpression));case 208:return m.updateTypeOfExpression(o,p(o.expression,c,e.isExpression));case 209:return m.updateVoidExpression(o,p(o.expression,c,e.isExpression));case 210:return m.updateAwaitExpression(o,p(o.expression,c,e.isExpression));case 211:return m.updatePrefixUnaryExpression(o,p(o.operand,c,e.isExpression));case 212:return m.updatePostfixUnaryExpression(o,p(o.operand,c,e.isExpression));case 213:return m.updateBinaryExpression(o,p(o.left,c,e.isExpression),p(o.operatorToken,d,e.isToken),p(o.right,c,e.isExpression));case 214:return m.updateConditionalExpression(o,p(o.condition,c,e.isExpression),p(o.questionToken,d,e.isToken),p(o.whenTrue,c,e.isExpression),p(o.colonToken,d,e.isToken),p(o.whenFalse,c,e.isExpression));case 215:return m.updateTemplateExpression(o,p(o.head,c,e.isTemplateHead),u(o.templateSpans,c,e.isTemplateSpan));case 216:return m.updateYieldExpression(o,p(o.asteriskToken,d,e.isToken),p(o.expression,c,e.isExpression));case 217:return m.updateSpreadElement(o,p(o.expression,c,e.isExpression));case 218:return m.updateClassExpression(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.heritageClauses,c,e.isHeritageClause),u(o.members,c,e.isClassElement));case 220:return m.updateExpressionWithTypeArguments(o,p(o.expression,c,e.isExpression),u(o.typeArguments,c,e.isTypeNode));case 221:return m.updateAsExpression(o,p(o.expression,c,e.isExpression),p(o.type,c,e.isTypeNode));case 222:return 32&o.flags?m.updateNonNullChain(o,p(o.expression,c,e.isExpression)):m.updateNonNullExpression(o,p(o.expression,c,e.isExpression));case 223:return m.updateMetaProperty(o,p(o.name,c,e.isIdentifier));case 225:return m.updateTemplateSpan(o,p(o.expression,c,e.isExpression),p(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 227:return m.updateBlock(o,u(o.statements,c,e.isStatement));case 229:return m.updateVariableStatement(o,u(o.modifiers,c,e.isModifier),p(o.declarationList,c,e.isVariableDeclarationList));case 230:return m.updateExpressionStatement(o,p(o.expression,c,e.isExpression));case 231:return m.updateIfStatement(o,p(o.expression,c,e.isExpression),p(o.thenStatement,c,e.isStatement,m.liftToBlock),p(o.elseStatement,c,e.isStatement,m.liftToBlock));case 232:return m.updateDoStatement(o,p(o.statement,c,e.isStatement,m.liftToBlock),p(o.expression,c,e.isExpression));case 233:return m.updateWhileStatement(o,p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 234:return m.updateForStatement(o,p(o.initializer,c,e.isForInitializer),p(o.condition,c,e.isExpression),p(o.incrementor,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 235:return m.updateForInStatement(o,p(o.initializer,c,e.isForInitializer),p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 236:return m.updateForOfStatement(o,p(o.awaitModifier,d,e.isToken),p(o.initializer,c,e.isForInitializer),p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 237:return m.updateContinueStatement(o,p(o.label,c,e.isIdentifier));case 238:return m.updateBreakStatement(o,p(o.label,c,e.isIdentifier));case 239:return m.updateReturnStatement(o,p(o.expression,c,e.isExpression));case 240:return m.updateWithStatement(o,p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 241:return m.updateSwitchStatement(o,p(o.expression,c,e.isExpression),p(o.caseBlock,c,e.isCaseBlock));case 242:return m.updateLabeledStatement(o,p(o.label,c,e.isIdentifier),p(o.statement,c,e.isStatement,m.liftToBlock));case 243:return m.updateThrowStatement(o,p(o.expression,c,e.isExpression));case 244:return m.updateTryStatement(o,p(o.tryBlock,c,e.isBlock),p(o.catchClause,c,e.isCatchClause),p(o.finallyBlock,c,e.isBlock));case 246:return m.updateVariableDeclaration(o,p(o.name,c,e.isBindingName),p(o.exclamationToken,d,e.isToken),p(o.type,c,e.isTypeNode),p(o.initializer,c,e.isExpression));case 247:return m.updateVariableDeclarationList(o,u(o.declarations,c,e.isVariableDeclaration));case 248:return m.updateFunctionDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.asteriskToken,d,e.isToken),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 249:return m.updateClassDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.heritageClauses,c,e.isHeritageClause),u(o.members,c,e.isClassElement));case 250:return m.updateInterfaceDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.heritageClauses,c,e.isHeritageClause),u(o.members,c,e.isTypeElement));case 251:return m.updateTypeAliasDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),p(o.type,c,e.isTypeNode));case 252:return m.updateEnumDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.members,c,e.isEnumMember));case 253:return m.updateModuleDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),p(o.body,c,e.isModuleBody));case 254:return m.updateModuleBlock(o,u(o.statements,c,e.isStatement));case 255:return m.updateCaseBlock(o,u(o.clauses,c,e.isCaseOrDefaultClause));case 256:return m.updateNamespaceExportDeclaration(o,p(o.name,c,e.isIdentifier));case 257:return m.updateImportEqualsDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),p(o.moduleReference,c,e.isModuleReference));case 258:return m.updateImportDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.importClause,c,e.isImportClause),p(o.moduleSpecifier,c,e.isExpression));case 259:return m.updateImportClause(o,o.isTypeOnly,p(o.name,c,e.isIdentifier),p(o.namedBindings,c,e.isNamedImportBindings));case 260:return m.updateNamespaceImport(o,p(o.name,c,e.isIdentifier));case 266:return m.updateNamespaceExport(o,p(o.name,c,e.isIdentifier));case 261:return m.updateNamedImports(o,u(o.elements,c,e.isImportSpecifier));case 262:return m.updateImportSpecifier(o,p(o.propertyName,c,e.isIdentifier),p(o.name,c,e.isIdentifier));case 263:return m.updateExportAssignment(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.expression,c,e.isExpression));case 264:return m.updateExportDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),o.isTypeOnly,p(o.exportClause,c,e.isNamedExportBindings),p(o.moduleSpecifier,c,e.isExpression));case 265:return m.updateNamedExports(o,u(o.elements,c,e.isExportSpecifier));case 267:return m.updateExportSpecifier(o,p(o.propertyName,c,e.isIdentifier),p(o.name,c,e.isIdentifier));case 269:return m.updateExternalModuleReference(o,p(o.expression,c,e.isExpression));case 270:return m.updateJsxElement(o,p(o.openingElement,c,e.isJsxOpeningElement),u(o.children,c,e.isJsxChild),p(o.closingElement,c,e.isJsxClosingElement));case 271:return m.updateJsxSelfClosingElement(o,p(o.tagName,c,e.isJsxTagNameExpression),u(o.typeArguments,c,e.isTypeNode),p(o.attributes,c,e.isJsxAttributes));case 272:return m.updateJsxOpeningElement(o,p(o.tagName,c,e.isJsxTagNameExpression),u(o.typeArguments,c,e.isTypeNode),p(o.attributes,c,e.isJsxAttributes));case 273:return m.updateJsxClosingElement(o,p(o.tagName,c,e.isJsxTagNameExpression));case 274:return m.updateJsxFragment(o,p(o.openingFragment,c,e.isJsxOpeningFragment),u(o.children,c,e.isJsxChild),p(o.closingFragment,c,e.isJsxClosingFragment));case 277:return m.updateJsxAttribute(o,p(o.name,c,e.isIdentifier),p(o.initializer,c,e.isStringLiteralOrJsxExpression));case 278:return m.updateJsxAttributes(o,u(o.properties,c,e.isJsxAttributeLike));case 279:return m.updateJsxSpreadAttribute(o,p(o.expression,c,e.isExpression));case 280:return m.updateJsxExpression(o,p(o.expression,c,e.isExpression));case 281:return m.updateCaseClause(o,p(o.expression,c,e.isExpression),u(o.statements,c,e.isStatement));case 282:return m.updateDefaultClause(o,u(o.statements,c,e.isStatement));case 283:return m.updateHeritageClause(o,u(o.types,c,e.isExpressionWithTypeArguments));case 284:return m.updateCatchClause(o,p(o.variableDeclaration,c,e.isVariableDeclaration),p(o.block,c,e.isBlock));case 285:return m.updatePropertyAssignment(o,p(o.name,c,e.isPropertyName),p(o.initializer,c,e.isExpression));case 286:return m.updateShorthandPropertyAssignment(o,p(o.name,c,e.isIdentifier),p(o.objectAssignmentInitializer,c,e.isExpression));case 287:return m.updateSpreadAssignment(o,p(o.expression,c,e.isExpression));case 288:return m.updateEnumMember(o,p(o.name,c,e.isPropertyName),p(o.initializer,c,e.isExpression));case 294:return m.updateSourceFile(o,a(o.statements,c,l));case 331:return m.updatePartiallyEmittedExpression(o,p(o.expression,c,e.isExpression));case 332:return m.updateCommaListExpression(o,u(o.elements,c,e.isExpression));default:return o}}}}(d||(d={})),function(e){e.createSourceMapGenerator=function(n,t,r,a,o){var c,l,u=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,d=u.enter,p=u.exit,f=[],m=[],_=new e.Map,g=[],y="",h=0,v=0,b=0,E=0,T=0,S=0,x=!1,L=0,A=0,D=0,C=0,I=0,N=0,R=!1,k=!1,O=!1;return{getSources:function(){return f},addSource:w,setSourceContent:P,addName:M,addMapping:F,appendSourceMap:function(n,t,r,a,o,s){e.Debug.assert(n>=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),d();for(var c,l=[],u=i(r.mappings),f=u.next();!f.done;f=u.next()){var m=f.value;if(s&&(m.generatedLine>s.line||m.generatedLine===s.line&&m.generatedCharacter>s.character))break;if(!o||!(m.generatedLine=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),d(),(function(e,n){return!R||L!==e||A!==n}(n,t)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&D===e&&(C>n||C===n&&I>t)}(r,a,i))&&(G(),L=n,A=t,k=!1,O=!1,R=!0),void 0!==r&&void 0!==a&&void 0!==i&&(D=r,C=a,I=i,k=!0,void 0!==o&&(N=o,O=!0)),p()}function G(){if(R&&(!x||h!==L||v!==A||b!==D||E!==C||T!==I||S!==N)){if(d(),h=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(n=e.charCodeAt(r))>=65&&n<=90?n-65:n>=97&&n<=122?n-97+26:n>=48&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;t=0!=(32&o),i|=(31&o)<>=1:i=-(i>>=1),i}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(n){n<0?n=1+(-n<<1):n<<=1;var t,r="";do{var a=31&n;(n>>=5)>0&&(a|=32),r+=String.fromCharCode((t=a)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:e.Debug.fail(t+": not a base64 value"))}while(n>0);return r}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function l(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function u(n,t){return e.Debug.assert(n.sourceIndex===t.sourceIndex),e.compareValues(n.sourcePosition,t.sourcePosition)}function d(n,t){return e.compareValues(n.generatedPosition,t.generatedPosition)}function p(e){return e.sourcePosition}function f(e){return e.generatedPosition}e.getLineInfo=function(e,n){return{getLineCount:function(){return n.length},getLineText:function(t){return e.substring(n[t],n[t+1])}}},e.tryGetSourceMappingURL=function(e){for(var r=e.getLineCount()-1;r>=0;r--){var a=e.getLineText(r),i=n.exec(a);if(i)return i[1];if(!a.match(t))break}},e.isRawSourceMap=a,e.tryParseRawSourceMap=function(e){try{var n=JSON.parse(e);if(a(n))return n}catch(e){}},e.decodeMappings=i,e.sameMapping=function(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(n,t,r){var a,s,m,_=e.getDirectoryPath(r),g=t.sourceRoot?e.getNormalizedAbsolutePath(t.sourceRoot,_):_,y=e.getNormalizedAbsolutePath(t.file,_),h=n.getSourceFileLike(y),v=t.sources.map((function(n){return e.getNormalizedAbsolutePath(n,g)})),b=new e.Map(v.map((function(e,t){return[n.getCanonicalFileName(e),t]})));return{getSourcePosition:function(n){var t=x();if(!e.some(t))return n;var r=e.binarySearchKey(t,n.pos,f,e.compareValues);r<0&&(r=~r);var a=t[r];if(void 0===a||!c(a))return n;return{fileName:v[a.sourceIndex],pos:a.sourcePosition}},getGeneratedPosition:function(t){var r=b.get(n.getCanonicalFileName(t.fileName));if(void 0===r)return t;var a=S(r);if(!e.some(a))return t;var i=e.binarySearchKey(a,t.pos,p,e.compareValues);i<0&&(i=~i);var o=a[i];if(void 0===o||o.sourceIndex!==r)return t;return{fileName:y,pos:o.generatedPosition}}};function E(r){var a,i,s=void 0!==h?e.getPositionOfLineAndCharacter(h,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var c=n.getSourceFileLike(v[r.sourceIndex]);a=t.sources[r.sourceIndex],i=void 0!==c?e.getPositionOfLineAndCharacter(c,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:a,sourceIndex:r.sourceIndex,sourcePosition:i,nameIndex:r.nameIndex}}function T(){if(void 0===a){var r=i(t.mappings),o=e.arrayFrom(r,E);void 0!==r.error?(n.log&&n.log("Encountered error while decoding sourcemap: "+r.error),a=e.emptyArray):a=o}return a}function S(n){if(void 0===m){for(var t=[],r=0,a=T();r0&&a!==r.elements.length||!!(r.elements.length-a)&&e.isDefaultImport(n)}function a(n){return!r(n)&&(e.isDefaultImport(n)||!!n.importClause&&e.isNamedImports(n.importClause.namedBindings)&&function(n){return!!n&&(!!e.isNamedImports(n)&&e.some(n.elements,t))}(n.importClause.namedBindings))}function i(n,t,r){if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a=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(n,t,r,a){if(t.body){var i=t.body.statements,o=n.copyPrologue(i,r,!1,a);if(o===i.length)return o;var s=e.findIndex(i,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)r.push(e.visitNode(i[c],a,e.isStatement));return s+1}return o}return 0},e.getProperties=function(n,t,r){return e.filter(n.members,(function(n){return function(n,t,r){return e.isPropertyDeclaration(n)&&(!!n.initializer||!t)&&e.hasStaticModifier(n)===r}(n,t,r)}))},e.isInitializedProperty=function(e){return 162===e.kind&&void 0!==e.initializer}}(d||(d={})),function(e){function n(t,r){var a=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(a)?function(t,r){for(var a=e.getElementsOfBindingOrAssignmentPattern(t),i=0,o=a;i=1)||24576&_.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(_).transformFlags||e.isComputedPropertyName(g)){l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,o),l=void 0);var y=a(n,s,g);e.isComputedPropertyName(g)&&(u=e.append(u,y.argumentExpression)),r(n,_,y,_)}else l=e.append(l,e.visitNode(_,n.visitor))}}l&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,o)}(n,t,u,o,s):e.isArrayBindingOrAssignmentPattern(u)?function(n,t,a,o,s){var c,l,u=e.getElementsOfBindingOrAssignmentPattern(a),d=u.length;if(n.level<1&&n.downlevelIteration)o=i(n,e.setTextRange(n.context.getEmitHelperFactory().createReadHelper(o,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(u[d-1])?void 0:d),s),!1,s);else if(1!==d&&(n.level<1||0===d)||e.every(u,e.isOmittedExpression)){var p=!e.isDeclarationBindingElement(t)||0!==d;o=i(n,o,p,s)}for(var f=0;f=1)if(16384&m.transformFlags){var _=n.context.factory.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(_),l=e.append(l,[_,m]),c=e.append(c,n.createArrayBindingOrAssignmentElement(_))}else c=e.append(c,m);else{if(e.isOmittedExpression(m))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(m)){if(f===d-1){g=n.context.factory.createArraySliceCall(o,f);r(n,m,g,m)}}else{var g=n.context.factory.createElementAccessExpression(o,f);r(n,m,g,m)}}}c&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(c),o,s,a);if(l)for(var y=0,h=l;y0)return!0;var t=e.getFirstConstructorWithBody(n);if(t)return e.forEach(t.parameters,G);return!1})(n)&&(r|=2);e.childIsDecorated(n)&&(r|=4);Ie(n)?r|=8:!function(n){return Ne(n)&&e.hasSyntacticModifier(n,512)}(n)?Re(n)&&(r|=16):r|=32;E<=1&&7&r&&(r|=128);return r}(a,i);128&o&&n.startLexicalEnvironment();var s=a.name||(5&o?p.getGeneratedNameForNode(a):void 0),c=2&o?function(t,r){var a=e.moveRangePastDecorators(t),i=function(t){if(16777216&h.getNodeCheckFlags(t)){0==(1&l)&&(l|=1,n.enableSubstitution(78),u=[]);var r=p.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return u[e.getOriginalNodeId(t)]=r,y(r),r}}(t),o=p.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,D,e.isHeritageClause),c=V(t),d=p.createClassExpression(void 0,void 0,r,void 0,s,c);e.setOriginalNode(d,t),e.setTextRange(d,a);var f=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(o,void 0,void 0,i?p.createAssignment(i,d):d)],1));return e.setOriginalNode(f,t),e.setTextRange(f,a),e.setCommentRange(f,t),f}(a,s):function(n,t,r){var a=128&r?void 0:e.visitNodes(n.modifiers,P,e.isModifier),i=p.createClassDeclaration(void 0,a,t,void 0,e.visitNodes(n.heritageClauses,D,e.isHeritageClause),V(n)),o=e.getEmitFlags(n);1&r&&(o|=32);return e.setTextRange(i,n),e.setOriginalNode(i,n),e.setEmitFlags(i,o),i}(a,s,o),d=[c];if(z(d,a,!1),z(d,a,!0),function(n,t){var r=function(n){var t=function(n){var t=n.decorators,r=K(e.getFirstConstructorWithBody(n));if(!t&&!r)return;return{decorators:t,parameters:r}}(n),r=q(n,n,t);if(!r)return;var a=u&&u[e.getOriginalNodeId(n)],i=p.getLocalName(n,!1,!0),o=f().createDecorateHelper(r,i),s=p.createAssignment(i,a?p.createAssignment(a,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(n)),s}(t);r&&n.push(e.setOriginalNode(p.createExpressionStatement(r),t))}(d,a),128&o){var m=e.createTokenRange(e.skipTrivia(t.text,a.members.end),19),_=p.getInternalName(a),g=p.createPartiallyEmittedExpression(_);e.setTextRangeEnd(g,m.end),e.setEmitFlags(g,1536);var v=p.createReturnStatement(g);e.setTextRangePos(v,m.pos),e.setEmitFlags(v,1920),d.push(v),e.insertStatementsAfterStandardPrologue(d,n.endLexicalEnvironment());var b=p.createImmediatelyInvokedArrowFunction(d);e.setEmitFlags(b,33554432);var T=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(a,!1,!1),void 0,void 0,b)]));e.setOriginalNode(T,a),e.setCommentRange(T,a),e.setSourceMapRange(T,e.moveRangePastDecorators(a)),e.startOnNewLine(T),d=[T]}8&o?Oe(d,a):(128&o||2&o)&&(32&o?d.push(p.createExportDefault(p.getLocalName(a,!1,!0))):16&o&&d.push(p.createExternalModuleExport(p.getLocalName(a,!1,!0))));d.length>1&&(d.push(p.createEndOfDeclarationMarker(a)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(d)}(o);case 218:return function(t){if(!U(t))return e.visitEachChild(t,D,n);var r=p.createClassExpression(void 0,void 0,t.name,void 0,e.visitNodes(t.heritageClauses,D,e.isHeritageClause),V(t));return e.setOriginalNode(r,t),e.setTextRange(r,t),r}(o);case 283:return function(t){if(116===t.token)return;return e.visitEachChild(t,D,n)}(o);case 220:return function(n){return p.updateExpressionWithTypeArguments(n,e.visitNode(n.expression,D,e.isLeftHandSideExpression),void 0)}(o);case 164:return function(t){if(!de(t))return;var r=p.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,P,e.isModifier),t.asteriskToken,ue(t),void 0,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 166:return function(t){if(!_e(t))return;var r=p.updateGetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,P,e.isModifier),ue(t),e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||p.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 167:return function(t){if(!_e(t))return;var r=p.updateSetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,P,e.isModifier),ue(t),e.visitParameterList(t.parameters,D,n),e.visitFunctionBody(t.body,D,n)||p.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 248:return function(t){if(!de(t))return p.createNotEmittedStatement(t);var r=p.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,P,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||p.createBlock([]));if(Ie(t)){var a=[r];return Oe(a,t),a}return r}(o);case 205:return function(t){if(!de(t))return p.createOmittedExpression();return p.updateFunctionExpression(t,e.visitNodes(t.modifiers,P,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||p.createBlock([]))}(o);case 206:return function(t){return p.updateArrowFunction(t,e.visitNodes(t.modifiers,P,e.isModifier),void 0,e.visitParameterList(t.parameters,D,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,D,n))}(o);case 159:return function(n){if(e.parameterIsThisKeyword(n))return;var t=p.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,e.visitNode(n.name,D,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,D,e.isExpression));t!==n&&(e.setCommentRange(t,n),e.setTextRange(t,e.moveRangePastModifiers(n)),e.setSourceMapRange(t,e.moveRangePastModifiers(n)),e.setEmitFlags(t.name,32));return t}(o);case 204:return function(r){var a=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(a)){var i=e.visitNode(r.expression,D,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(i,t))?p.updateParenthesizedExpression(r,i):p.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,D,n)}(o);case 203:case 221:return function(n){var t=e.visitNode(n.expression,D,e.isExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 200:return function(n){return p.updateCallExpression(n,e.visitNode(n.expression,D,e.isExpression),void 0,e.visitNodes(n.arguments,D,e.isExpression))}(o);case 201:return function(n){return p.updateNewExpression(n,e.visitNode(n.expression,D,e.isExpression),void 0,e.visitNodes(n.arguments,D,e.isExpression))}(o);case 202:return function(n){return p.updateTaggedTemplateExpression(n,e.visitNode(n.tag,D,e.isExpression),void 0,e.visitNode(n.template,D,e.isExpression))}(o);case 222:return function(n){var t=e.visitNode(n.expression,D,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 252:return function(n){if(!function(n){return!e.isEnumConst(n)||v.preserveConstEnums||v.isolatedModules}(n))return p.createNotEmittedStatement(n);var r=[],o=2,s=Ee(r,n);s&&(T===e.ModuleKind.System&&i===t||(o|=512));var c=Me(n),l=Fe(n),u=e.hasSyntacticModifier(n,1)?p.getExternalModuleOrNamespaceExportName(a,n,!1,!0):p.getLocalName(n,!1,!0),d=p.createLogicalOr(u,p.createAssignment(u,p.createObjectLiteralExpression()));if(he(n)){var f=p.getLocalName(n,!1,!0);d=p.createAssignment(f,d)}var _=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(n,t){var r=a;a=t;var i=[];m();var o=e.map(n.members,ye);return e.insertStatementsAfterStandardPrologue(i,g()),e.addRange(i,o),a=r,p.createBlock(e.setTextRange(p.createNodeArray(i),n.members),!0)}(n,l)),void 0,[d]));e.setOriginalNode(_,n),s&&(e.setSyntheticLeadingComments(_,void 0),e.setSyntheticTrailingComments(_,void 0));return e.setTextRange(_,n),e.addEmitFlags(_,o),r.push(_),r.push(p.createEndOfDeclarationMarker(n)),r}(o);case 229:return function(t){if(Ie(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(r,ge))),t)}return e.visitEachChild(t,D,n)}(o);case 246:return function(n){return p.updateVariableDeclaration(n,e.visitNode(n.name,D,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,D,e.isExpression))}(o);case 253:return Te(o);case 257:return Ce(o);case 271:return function(n){return p.updateJsxSelfClosingElement(n,e.visitNode(n.tagName,D,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,D,e.isJsxAttributes))}(o);case 272:return function(n){return p.updateJsxOpeningElement(n,e.visitNode(n.tagName,D,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,D,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,D,n)}}function F(t){var r=e.getStrictOptionValue(v,"alwaysStrict")&&!(e.isExternalModule(t)&&T>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return p.updateSourceFile(t,e.visitLexicalEnvironment(t.statements,I,n,0,r))}function G(e){return void 0!==e.decorators&&e.decorators.length>0}function B(e){return!!(2048&e.transformFlags)}function U(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,B)||e.some(n.members,B)}function V(n){var t=[],r=e.getFirstConstructorWithBody(n),a=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(a)for(var i=0,o=a;i0&&e.parameterIsThisKeyword(r[0]),i=a?1:0,o=a?r.length-1:r.length,s=0;s0?162===t.kind?p.createVoidZero():p.createNull():void 0,s=f().createDecorateHelper(r,a,i,o);return e.setTextRange(s,e.moveRangePastDecorators(t)),e.setEmitFlags(s,1536),s}}function X(n){return e.visitNode(n.expression,D,e.isExpression)}function Y(n,t){var r;if(n){r=[];for(var a=0,i=n;ac&&(i||e.addRange(d,e.visitNodes(r.body.statements,h,e.isStatement,c,p-c)),c=p)}N(d,o,s.createThis()),r&&e.addRange(d,e.visitNodes(r.body.statements,h,e.isStatement,c));return d=s.mergeLexicalEnvironment(d,l()),e.setTextRange(s.createBlock(e.setTextRange(s.createNodeArray(d),r?r.body.statements:t.members),!0),r?r.body:void 0)}(t,a,r);if(!c)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(s.createConstructorDeclaration(void 0,void 0,null!=o?o:[],c),a||t),a))}(t,r);return d&&c.push(d),e.addRange(c,e.visitNodes(t.members,b,e.isClassElement)),e.setTextRange(s.createNodeArray(c),t.members)}function I(t){return!(!e.isPropertyDeclaration(t)||e.hasStaticModifier(t))&&(n.getCompilerOptions().useDefineForClassFields?f<99:e.isInitializedProperty(t)||m&&e.isPrivateIdentifierPropertyDeclaration(t))}function N(n,t,r){for(var a=0,i=t;a=0;--n){var t,r=y[n];if(r)if(t=r.get(e.escapedText))return t}}function P(t){var r=s.getGeneratedNameForNode(t),a=w(t.name);if(!a)return e.visitEachChild(t,h,n);var i=t.expression;return(e.isThisProperty(t)||e.isSuperProperty(t)||!e.isSimpleCopiableExpression(t.expression))&&(i=s.createTempVariable(c,!0),k().push(s.createBinaryExpression(i,62,t.expression))),s.createPropertyAccessExpression(s.createParenthesizedExpression(s.createObjectLiteralExpression([s.createSetAccessorDeclaration(void 0,void 0,"value",[s.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0)],s.createBlock([s.createExpressionStatement(A(a,i,r,62))]))])),"value")}function M(n){var t=e.getTargetOfBindingOrAssignmentElement(n);if(t&&e.isPrivateIdentifierPropertyAccessExpression(t)){var r=P(t);return e.isAssignmentExpression(n)?s.updateBinaryExpression(n,r,n.operatorToken,e.visitNode(n.right,h,e.isExpression)):e.isSpreadElement(n)?s.updateSpreadElement(n,r):r}return e.visitNode(n,v)}function F(n){if(e.isPropertyAssignment(n)){var t=e.getTargetOfBindingOrAssignmentElement(n);if(t&&e.isPrivateIdentifierPropertyAccessExpression(t)){var r=e.getInitializerOfBindingOrAssignmentElement(n),a=P(t);return s.updatePropertyAssignment(n,e.visitNode(n.name,h),r?s.createAssignment(a,e.visitNode(r,h)):a)}return s.updatePropertyAssignment(n,e.visitNode(n.name,h),e.visitNode(n.initializer,v))}return e.visitNode(n,h)}}}(d||(d={})),function(e){var n,t;function r(n,t,r,a){var i=0!=(4096&t.getNodeCheckFlags(r)),o=[];return a.forEach((function(t,r){var a=e.unescapeLeadingUnderscores(r),s=[];s.push(n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),a),4)))),i&&s.push(n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,n.createAssignment(e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),a),4),n.createIdentifier("v"))))),o.push(n.createPropertyAssignment(a,n.createObjectLiteralExpression(s)))})),n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super",48),void 0,void 0,n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[n.createNull(),n.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(t||(t={})),e.transformES2017=function(n){var t,a,o,s,c=n.factory,l=n.getEmitHelperFactory,u=n.resumeLexicalEnvironment,d=n.endLexicalEnvironment,p=n.hoistVariableDeclaration,f=n.getEmitResolver(),m=n.getCompilerOptions(),_=e.getEmitScriptTarget(m),g=0,y=[],h=0,v=n.onEmitNode,b=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){if(1&t&&function(e){var n=e.kind;return 249===n||165===n||164===n||166===n||167===n}(r)){var i=6144&f.getNodeCheckFlags(r);if(i!==g){var o=g;return g=i,v(n,r,a),void(g=o)}}else if(t&&y[e.getNodeId(r)]){o=g;return g=0,v(n,r,a),void(g=o)}v(n,r,a)},n.onSubstituteNode=function(n,t){if(t=b(n,t),1===n&&g)return function(n){switch(n.kind){case 198:return U(n);case 199:return V(n);case 200:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?U(t):V(t);return c.createCallExpression(c.createPropertyAccessExpression(r,"call"),void 0,i([c.createThis()],n.arguments))}return n}(n)}return n}(t);return t},e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;E(1,!1),E(2,!e.isEffectiveStrictModeSourceFile(t,m));var r=e.visitEachChild(t,A,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function E(e,n){h=n?h|e:h&~e}function T(e){return 0!=(h&e)}function S(){return T(2)}function x(e,n,t){var r=e&~h;if(r){E(r,!0);var a=n(t);return E(r,!1),a}return n(t)}function L(t){return e.visitEachChild(t,A,n)}function A(t){if(0==(64&t.transformFlags))return t;switch(t.kind){case 129:return;case 210:return function(t){if(!T(1))return e.visitEachChild(t,A,n);return e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(t.expression,A,e.isExpression)),t),t)}(t);case 164:return x(3,C,t);case 248:return x(3,I,t);case 205:return x(3,N,t);case 206:return x(1,R,t);case 198:return o&&e.isPropertyAccessExpression(t)&&105===t.expression.kind&&o.add(t.name.escapedText),e.visitEachChild(t,A,n);case 199:return o&&105===t.expression.kind&&(s=!0),e.visitEachChild(t,A,n);case 166:case 167:case 165:case 249:case 218:return x(3,L,t);default:return e.visitEachChild(t,A,n)}}function D(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 229:return function(t){if(O(t.declarationList)){var r=w(t.declarationList,!1);return r?c.createExpressionStatement(r):void 0}return e.visitEachChild(t,A,n)}(t);case 234:return function(n){var t=n.initializer;return c.updateForStatement(n,O(t)?w(t,!1):e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.condition,A,e.isExpression),e.visitNode(n.incrementor,A,e.isExpression),e.visitNode(n.statement,D,e.isStatement,c.liftToBlock))}(t);case 235:return function(n){return c.updateForInStatement(n,O(n.initializer)?w(n.initializer,!0):e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.expression,A,e.isExpression),e.visitNode(n.statement,D,e.isStatement,c.liftToBlock))}(t);case 236:return function(n){return c.updateForOfStatement(n,e.visitNode(n.awaitModifier,A,e.isToken),O(n.initializer)?w(n.initializer,!0):e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.expression,A,e.isExpression),e.visitNode(n.statement,D,e.isStatement,c.liftToBlock))}(t);case 284:return function(t){var r,i=new e.Set;if(k(t.variableDeclaration,i),i.forEach((function(n,t){a.has(t)&&(r||(r=new e.Set(a)),r.delete(t))})),r){var o=a;a=r;var s=e.visitEachChild(t,D,n);return a=o,s}return e.visitEachChild(t,D,n)}(t);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(t,D,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return A(t)}function C(t){return c.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,A,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,A,n),void 0,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,A,n))}function I(t){return c.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,A,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,A,n),void 0,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,A,n))}function N(t){return c.updateFunctionExpression(t,e.visitNodes(t.modifiers,A,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,A,n),void 0,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,A,n))}function R(t){return c.updateArrowFunction(t,e.visitNodes(t.modifiers,A,e.isModifier),void 0,e.visitParameterList(t.parameters,A,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?G(t):e.visitFunctionBody(t.body,A,n))}function k(n,t){var r=n.name;if(e.isIdentifier(r))t.add(r.escapedText);else for(var a=0,i=r.elements;a=2&&6144&f.getNodeCheckFlags(i);if(R&&(0==(1&t)&&(t|=1,n.enableSubstitution(200),n.enableSubstitution(198),n.enableSubstitution(199),n.enableEmitNotification(249),n.enableEmitNotification(164),n.enableEmitNotification(166),n.enableEmitNotification(167),n.enableEmitNotification(165),n.enableEmitNotification(229)),o.size)){var O=r(c,f,i,o);y[e.getNodeId(O)]=!0,e.insertStatementsAfterStandardPrologue(I,[O])}var w=c.createBlock(I,!0);e.setTextRange(w,i.body),R&&s&&(4096&f.getNodeCheckFlags(i)?e.addEmitHelper(w,e.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(i)&&e.addEmitHelper(w,e.asyncSuperHelper)),T=w}return a=v,g||(o=x,s=L),T}function B(n,t){return e.isBlock(n)?c.updateBlock(n,e.visitNodes(n.statements,D,e.isStatement,t)):c.converters.convertToFunctionBlock(e.visitNode(n,D,e.isConciseBody))}function U(n){return 105===n.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),n.name),n):n}function V(n){return 105===n.expression.kind?(t=n.argumentExpression,r=n,4096&g?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),"value"),r):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[t]),r)):n;var t,r}},e.createSuperAccessVariableStatement=r}(d||(d={})),function(e){var n,t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),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"}(t||(t={})),e.transformES2018=function(n){var t=n.factory,r=n.getEmitHelperFactory,a=n.resumeLexicalEnvironment,o=n.endLexicalEnvironment,s=n.hoistVariableDeclaration,c=n.getEmitResolver(),l=n.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=n.onEmitNode;n.onEmitNode=function(n,t,r){if(1&f&&function(e){var n=e.kind;return 249===n||165===n||164===n||166===n||167===n}(t)){var a=6144&c.getNodeCheckFlags(t);if(a!==b){var i=b;return b=a,d(n,t,r),void(b=i)}}else if(f&&T[e.getNodeId(t)]){i=b;return b=0,d(n,t,r),void(b=i)}d(n,t,r)};var p=n.onSubstituteNode;n.onSubstituteNode=function(n,r){if(r=p(n,r),1===n&&b)return function(n){switch(n.kind){case 198:return q(n);case 199:return z(n);case 200:return function(n){var r=n.expression;if(e.isSuperProperty(r)){var a=e.isPropertyAccessExpression(r)?q(r):z(r);return t.createCallExpression(t.createPropertyAccessExpression(a,"call"),void 0,i([t.createThis()],n.arguments))}return n}(n)}return n}(r);return r};var f,m,_,g,y,h,v=!1,b=0,E=0,T=[];return e.chainBundle(n,(function(r){if(r.isDeclarationFile)return r;_=r;var a=function(r){var a=S(2,e.isEffectiveStrictModeSourceFile(r,l)?0:1);v=!1;var i=e.visitEachChild(r,A,n),o=e.concatenate(i.statements,g&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(g))]),s=t.updateSourceFile(i,e.setTextRange(t.createNodeArray(o),r.statements));return x(a),s}(r);return e.addEmitHelpers(a,n.readEmitHelpers()),_=void 0,g=void 0,a}));function S(e,n){var t=E;return E=3&(E&~e|n),t}function x(e){E=e}function L(n){g=e.append(g,t.createVariableDeclaration(n))}function A(e){return R(e,!1)}function D(e){return R(e,!0)}function C(e){if(129!==e.kind)return e}function I(e,n,t,r){if(function(e,n){return E!==(E&~e|n)}(t,r)){var a=S(t,r),i=e(n);return x(a),i}return e(n)}function N(t){return e.visitEachChild(t,A,n)}function R(a,o){if(0==(32&a.transformFlags))return a;switch(a.kind){case 210:return function(a){if(2&m&&1&m)return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(e.visitNode(a.expression,A,e.isExpression))),a),a);return e.visitEachChild(a,A,n)}(a);case 216:return function(a){if(2&m&&1&m){if(a.asteriskToken){var i=e.visitNode(e.Debug.assertDefined(a.expression),A,e.isExpression);return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(a,a.asteriskToken,e.setTextRange(r().createAsyncDelegatorHelper(e.setTextRange(r().createAsyncValuesHelper(i),i)),i)))),a),a)}return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,P(a.expression?e.visitNode(a.expression,A,e.isExpression):t.createVoidZero())),a),a)}return e.visitEachChild(a,A,n)}(a);case 239:return function(r){if(2&m&&1&m)return t.updateReturnStatement(r,P(r.expression?e.visitNode(r.expression,A,e.isExpression):t.createVoidZero()));return e.visitEachChild(r,A,n)}(a);case 242:return function(r){if(2&m){var a=e.unwrapInnermostStatementOfLabel(r);return 236===a.kind&&a.awaitModifier?w(a,r):t.restoreEnclosingLabel(e.visitNode(a,A,e.isStatement,t.liftToBlock),r)}return e.visitEachChild(r,A,n)}(a);case 197:return function(a){if(16384&a.transformFlags){var i=function(n){for(var r,a=[],i=0,o=n;i1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(i);if(_){0==(1&f)&&(f|=1,n.enableSubstitution(200),n.enableSubstitution(198),n.enableSubstitution(199),n.enableEmitNotification(249),n.enableEmitNotification(164),n.enableEmitNotification(166),n.enableEmitNotification(167),n.enableEmitNotification(165),n.enableEmitNotification(229));var g=e.createSuperAccessVariableStatement(t,c,i,y);T[e.getNodeId(g)]=!0,e.insertStatementsAfterStandardPrologue(s,[g])}s.push(m),e.insertStatementsAfterStandardPrologue(s,o());var v=t.updateBlock(i.body,s);return _&&h&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(v,e.asyncSuperHelper)),y=d,h=p,v}function K(n){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(n.body,A,e.isConciseBody))&&void 0!==r?r:t.createBlock([]);e.isBlock(c)&&(i=t.copyPrologue(c.statements,s,!1,A)),e.addRange(s,W(void 0,n));var l=o();if(i>0||e.some(s)||e.some(l)){var u=t.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),t.updateBlock(u,e.setTextRange(t.createNodeArray(s),u.statements))}return c}function W(r,a){for(var i=0,o=a.parameters;i=n.end)return!1;var a=e.getEnclosingBlockScopeContainer(n);for(;r;){if(r===a||r===n)return!1;if(e.isClassElement(r)&&r.parent===n)return!0;r=r.parent}return!1}(t,n)))return e.setTextRange(l.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 107:return function(n){if(1&c&&16&a)return e.setTextRange(l.createUniqueName("_this",48),n);return n}(n)}return n}(t);if(e.isIdentifier(t))return function(n){if(2&c&&!e.isInternalName(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 195:case 249:case 252:case 246:return e.parent.name===e&&g.isDeclarationWithCollidingName(e.parent)}return!1}(t))return e.setTextRange(l.getGeneratedNameForNode(t),n)}return n}(t);return t},e.chainBundle(n,(function(i){if(i.isDeclarationFile)return i;t=i,r=i.text;var s=function(n){var t=b(8064,64),r=[],a=[];d();var i=l.copyPrologue(n.statements,r,!1,x);e.addRange(a,e.visitNodes(n.statements,x,e.isStatement,i)),o&&a.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(o)));return l.mergeLexicalEnvironment(r,f()),M(r,n),E(t,0,0),l.updateSourceFile(n,e.setTextRange(l.createNodeArray(e.concatenate(r,a)),n.statements))}(i);return e.addEmitHelpers(s,n.readEmitHelpers()),t=void 0,r=void 0,o=void 0,a=0,s}));function b(e,n){var t=a;return a=16383&(a&~e|n),t}function E(e,n,t){a=-16384&(a&~n|t)|e}function T(e){return 0!=(8192&a)&&239===e.kind&&!e.expression}function S(n){return 0!=(256&n.transformFlags)||void 0!==s||8192&a&&function(n){return 1048576&n.transformFlags&&(e.isReturnStatement(n)||e.isIfStatement(n)||e.isWithStatement(n)||e.isSwitchStatement(n)||e.isCaseBlock(n)||e.isCaseClause(n)||e.isDefaultClause(n)||e.isTryStatement(n)||e.isCatchClause(n)||e.isLabeledStatement(n)||e.isIterationStatement(n,!1)||e.isBlock(n))}(n)||e.isIterationStatement(n,!1)&&le(n)||0!=(33554432&e.getEmitFlags(n))}function x(r){return S(r)?function(r){switch(r.kind){case 123:return;case 249:return function(n){var t=l.createVariableDeclaration(l.getLocalName(n,!0),void 0,void 0,C(n));e.setOriginalNode(t,n);var r=[],a=l.createVariableStatement(void 0,l.createVariableDeclarationList([t]));if(e.setOriginalNode(a,n),e.setTextRange(a,n),e.startOnNewLine(a),r.push(a),e.hasSyntacticModifier(n,1)){var i=e.hasSyntacticModifier(n,512)?l.createExportDefault(l.getLocalName(n)):l.createExternalModuleExport(l.getLocalName(n));e.setOriginalNode(i,a),r.push(i)}var o=e.getEmitFlags(n);0==(4194304&o)&&(r.push(l.createEndOfDeclarationMarker(n)),e.setEmitFlags(a,4194304|o));return e.singleOrMany(r)}(r);case 218:return function(e){return C(e)}(r);case 159:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,l.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 248:return function(t){var r=s;s=void 0;var i=b(16286,65),o=e.visitParameterList(t.parameters,x,n),c=K(t),u=16384&a?l.getLocalName(t):t.name;return E(i,49152,0),s=r,l.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,x,e.isModifier),t.asteriskToken,u,void 0,o,void 0,c)}(r);case 206:return function(t){4096&t.transformFlags&&(a|=32768);var r=s;s=void 0;var i=b(15232,66),o=l.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,x,n),void 0,K(t));e.setTextRange(o,t),e.setOriginalNode(o,t),e.setEmitFlags(o,8),32768&a&&ke();return E(i,0,0),s=r,o}(r);case 205:return function(t){var r=262144&e.getEmitFlags(t)?b(16278,69):b(16286,65),i=s;s=void 0;var o=e.visitParameterList(t.parameters,x,n),c=K(t),u=16384&a?l.getLocalName(t):t.name;return E(r,49152,0),s=i,l.updateFunctionExpression(t,void 0,t.asteriskToken,u,void 0,o,void 0,c)}(r);case 246:return J(r);case 78:return D(r);case 247:return function(t){if(3&t.flags||131072&t.transformFlags){3&t.flags&&Re();var r=e.flatMap(t.declarations,1&t.flags?z:J),a=l.createVariableDeclarationList(r);return e.setOriginalNode(a,t),e.setTextRange(a,t),e.setCommentRange(a,t),131072&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.declarations).name))&&e.setSourceMapRange(a,function(n){for(var t=-1,r=-1,a=0,i=n;a0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(r,x,n,0,l.getGeneratedNameForNode(r)))),1048576)),!0):!!i&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(l.createExpressionStatement(l.createAssignment(l.getGeneratedNameForNode(r),e.visitNode(i,x,e.isExpression))),1048576)),!0)}function w(n,t,r,a){a=e.visitNode(a,x,e.isExpression);var i=l.createIfStatement(l.createTypeCheck(l.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(l.createBlock([l.createExpressionStatement(e.setEmitFlags(e.setTextRange(l.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(l.cloneNode(r),r),r.parent),48),e.setEmitFlags(a,1584|e.getEmitFlags(a))),t),1536))]),t),1953));e.startOnNewLine(i),e.setTextRange(i,t),e.setEmitFlags(i,1050528),e.insertStatementAfterCustomPrologue(n,i)}function P(t,r,a){var i=[],o=e.lastOrUndefined(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(o,a))return!1;var s=78===o.name.kind?e.setParent(e.setTextRange(l.cloneNode(o.name),o.name),o.name.parent):l.createTempVariable(void 0);e.setEmitFlags(s,48);var c=78===o.name.kind?l.cloneNode(o.name):s,u=r.parameters.length-1,d=l.createLoopVariable();i.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(s,void 0,void 0,l.createArrayLiteralExpression([]))])),o),1048576));var p=l.createForStatement(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(d,void 0,void 0,l.createNumericLiteral(u))]),o),e.setTextRange(l.createLessThan(d,l.createPropertyAccessExpression(l.createIdentifier("arguments"),"length")),o),e.setTextRange(l.createPostfixIncrement(d),o),l.createBlock([e.startOnNewLine(e.setTextRange(l.createExpressionStatement(l.createAssignment(l.createElementAccessExpression(c,0===u?d:l.createSubtract(d,l.createNumericLiteral(u))),l.createElementAccessExpression(l.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),i.push(p),78!==o.name.kind&&i.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(o,x,n,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,i),!0}function M(e,n){return!!(32768&a&&206!==n.kind)&&(F(e,n,l.createThis()),!0)}function F(n,t,r){ke();var a=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_this",48),void 0,void 0,r)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,t),e.insertStatementAfterCustomPrologue(n,a)}function G(n,t,r){if(16384&a){var i=void 0;switch(t.kind){case 206:return n;case 164:case 166:case 167:i=l.createVoidZero();break;case 165:i=l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor");break;case 248:case 205:i=l.createConditionalExpression(l.createLogicalAnd(e.setEmitFlags(l.createThis(),4),l.createBinaryExpression(e.setEmitFlags(l.createThis(),4),101,l.getLocalName(t))),void 0,l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor"),void 0,l.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function B(n){return e.setTextRange(l.createEmptyStatement(),n)}function U(t,r,a){var i,o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=H(r,r,void 0,a),u=e.visitNode(r.name,x,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&n.getCompilerOptions().useDefineForClassFields){var d=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?l.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;i=l.createObjectDefinePropertyCall(t,d,l.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(l,t,u,r.name);i=l.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var f=e.setTextRange(l.createExpressionStatement(i),r);return e.setOriginalNode(f,r),e.setCommentRange(f,o),e.setEmitFlags(f,48),f}function V(n,t,r){var a=l.createExpressionStatement(j(n,t,r,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(t.firstAccessor)),a}function j(n,t,r,a){var i=t.firstAccessor,o=t.getAccessor,s=t.setAccessor,c=e.setParent(e.setTextRange(l.cloneNode(n),n),n.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,i.name);var u=e.visitNode(i.name,x,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(l,u);e.setEmitFlags(d,1552),e.setSourceMapRange(d,i.name);var p=[];if(o){var f=H(o,void 0,void 0,r);e.setSourceMapRange(f,e.getSourceMapRange(o)),e.setEmitFlags(f,512);var m=l.createPropertyAssignment("get",f);e.setCommentRange(m,e.getCommentRange(o)),p.push(m)}if(s){var _=H(s,void 0,void 0,r);e.setSourceMapRange(_,e.getSourceMapRange(s)),e.setEmitFlags(_,512);var g=l.createPropertyAssignment("set",_);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(l.createPropertyAssignment("enumerable",o||s?l.createFalse():l.createTrue()),l.createPropertyAssignment("configurable",l.createTrue()));var y=l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"defineProperty"),void 0,[c,d,l.createObjectLiteralExpression(p,!0)]);return a&&e.startOnNewLine(y),y}function H(t,r,i,o){var c=s;s=void 0;var u=o&&e.isClassLike(o)&&!e.hasSyntacticModifier(t,32)?b(16286,73):b(16286,65),d=e.visitParameterList(t.parameters,x,n),p=K(t);return 16384&a&&!i&&(248===t.kind||205===t.kind)&&(i=l.getGeneratedNameForNode(t)),E(u,49152,0),s=c,e.setOriginalNode(e.setTextRange(l.createFunctionExpression(void 0,t.asteriskToken,i,void 0,d,void 0,p),r),t)}function K(n){var r,a,i,o=!1,s=!1,c=[],u=[],d=n.body;if(p(),e.isBlock(d)&&(i=l.copyStandardPrologue(d.statements,c,!1),i=l.copyCustomPrologue(d.statements,u,i,x,e.isHoistedFunction),i=l.copyCustomPrologue(d.statements,u,i,x,e.isHoistedVariableStatement)),o=k(u,n)||o,o=P(u,n,!1)||o,e.isBlock(d))i=l.copyCustomPrologue(d.statements,u,i,x),r=d.statements,e.addRange(u,e.visitNodes(d.statements,x,e.isStatement,i)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(206===n.kind),r=e.moveRangeEnd(d,-1);var m=n.equalsGreaterThanToken;e.nodeIsSynthesized(m)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(m,d,t)?s=!0:o=!0);var _=e.visitNode(d,x,e.isExpression),g=l.createReturnStatement(_);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),u.push(g),a=d}if(l.mergeLexicalEnvironment(c,f()),G(c,n,!1),M(c,n),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(d)&&e.arrayIsEqualTo(u,d.statements))return d;var y=l.createBlock(e.setTextRange(l.createNodeArray(u),r),o);return e.setTextRange(y,n.body),!o&&s&&e.setEmitFlags(y,1),a&&e.setTokenSourceMapRange(y,19,a),e.setOriginalNode(y,n.body),y}function W(t,r){if(!r)switch(t.expression.kind){case 204:return l.updateParenthesizedExpression(t,W(t.expression,!1));case 213:return l.updateParenthesizedExpression(t,q(t.expression,!1))}return e.visitEachChild(t,x,n)}function q(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,x,n,0,r):e.visitEachChild(t,x,n)}function z(t){var r=t.name;return e.isBindingPattern(r)?J(t):!t.initializer&&function(e){var n=g.getNodeCheckFlags(e),t=262144&n,r=524288&n;return!(0!=(64&a)||t&&r&&0!=(512&a))&&0==(4096&a)&&(!g.isDeclarationWithCollidingName(e)||r&&!t&&0==(6144&a))}(t)?l.updateVariableDeclaration(t,t.name,void 0,void 0,l.createVoidZero()):e.visitEachChild(t,x,n)}function J(t){var r,a=b(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,x,n,0,void 0,0!=(32&a)):e.visitEachChild(t,x,n),E(a,0,0),r}function X(n){s.labels.set(e.idText(n.label),!0)}function Y(n){s.labels.set(e.idText(n.label),!1)}function Q(t,r,i,o,c){var u=b(t,r),p=function(t,r,i,o){if(!le(t)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var u=o?o(t,r,void 0,i):l.restoreEnclosingLabel(e.visitEachChild(t,x,n),r,s&&Y);return s&&(s.allowedNonLabeledJumps=c),u}var p=function(n){var t;switch(n.kind){case 234:case 235:case 236:var r=n.initializer;r&&247===r.kind&&(t=r)}var a=[],i=[];if(t&&3&e.getCombinedNodeFlags(t))for(var o=se(n),c=0,l=t.declarations;c=80&&t<=115)return e.setTextRange(a.createStringLiteralFromNode(n),n)}}}(d||(d={})),function(e){var n,t,r,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"}(n||(n={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(t||(t={})),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"}(r||(r={})),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(n){var t,r,a,o,s,c,l,u,d,p,f=n.factory,m=n.getEmitHelperFactory,_=n.resumeLexicalEnvironment,g=n.endLexicalEnvironment,y=n.hoistFunctionDeclaration,h=n.hoistVariableDeclaration,v=n.getCompilerOptions(),b=e.getEmitScriptTarget(v),E=n.getEmitResolver(),T=n.onSubstituteNode;n.onSubstituteNode=function(n,a){if(a=T(n,a),1===n)return function(n){if(e.isIdentifier(n))return function(n){if(!e.isGeneratedIdentifier(n)&&t&&t.has(e.idText(n))){var a=e.getOriginalNode(n);if(e.isIdentifier(a)&&a.parent){var i=E.getReferencedValueDeclaration(a);if(i){var o=r[e.getOriginalNodeId(i)];if(o){var s=e.setParent(e.setTextRange(f.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n);return n}(a);return a};var S,x,L,A,D,C,I,N,R,k,O,w,P=1,M=0,F=0;return e.chainBundle(n,(function(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;var r=e.visitEachChild(t,G,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function G(t){var r=t.transformFlags;return o?function(t){switch(t.kind){case 232:case 233:return function(t){return o?(ie(),t=e.visitEachChild(t,G,n),se(),t):e.visitEachChild(t,G,n)}(t);case 241:return function(t){o&&ne({kind:2,isScript:!0,breakLabel:-1});t=e.visitEachChild(t,G,n),o&&ce();return t}(t);case 242:return function(t){o&&ne({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1});t=e.visitEachChild(t,G,n),o&&le();return t}(t);default:return B(t)}}(t):a?B(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(n){switch(n.kind){case 248:return U(n);case 205:return V(n);default:return e.Debug.failBadSyntaxKind(n)}}(t):512&r?e.visitEachChild(t,G,n):t}function B(t){switch(t.kind){case 248:return U(t);case 205:return V(t);case 166:case 167:return function(t){var r=a,i=o;return a=!1,o=!1,t=e.visitEachChild(t,G,n),a=r,o=i,t}(t);case 229:return function(n){if(262144&n.transformFlags)return void z(n.declarationList);if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t0?f.inlineExpressions(e.map(c,J)):void 0,e.visitNode(t.condition,G,e.isExpression),e.visitNode(t.incrementor,G,e.isExpression),e.visitNode(t.statement,G,e.isStatement,f.liftToBlock))}else t=e.visitEachChild(t,G,n);o&&se();return t}(t);case 235:return function(t){o&&ie();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var a=0,i=r.declarations;a0)return he(r,t)}return e.visitEachChild(t,G,n)}(t);case 237:return function(t){if(o){var r=_e(t.label&&e.idText(t.label));if(r>0)return he(r,t)}return e.visitEachChild(t,G,n)}(t);case 239:return function(n){return t=e.visitNode(n.expression,G,e.isExpression),r=n,e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r);var t,r}(t);default:return 262144&t.transformFlags?function(t){switch(t.kind){case 213:return function(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return function(t){if(X(t.right))return e.isLogicalOperator(t.operatorToken.kind)?function(n){var t=$(),r=Z();Ee(r,e.visitNode(n.left,G,e.isExpression),n.left),55===n.operatorToken.kind?xe(t,r,n.left):Se(t,r,n.left);return Ee(r,e.visitNode(n.right,G,e.isExpression),n.right),ee(t),r}(t):27===t.operatorToken.kind?function(n){var t=[];return r(n.left),r(n.right),f.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&27===n.operatorToken.kind?(r(n.left),r(n.right)):(X(n)&&t.length>0&&(Le(1,[f.createExpressionStatement(f.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,G,e.isExpression)))}}(t):f.updateBinaryExpression(t,Q(e.visitNode(t.left,G,e.isExpression)),t.operatorToken,e.visitNode(t.right,G,e.isExpression));return e.visitEachChild(t,G,n)}(t);case 1:return function(t){var r=t.left,a=t.right;if(X(a)){var i=void 0;switch(r.kind){case 198:i=f.updatePropertyAccessExpression(r,Q(e.visitNode(r.expression,G,e.isLeftHandSideExpression)),r.name);break;case 199:i=f.updateElementAccessExpression(r,Q(e.visitNode(r.expression,G,e.isLeftHandSideExpression)),Q(e.visitNode(r.argumentExpression,G,e.isExpression)));break;default:i=e.visitNode(r,G,e.isExpression)}var o=t.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(f.createAssignment(i,e.setTextRange(f.createBinaryExpression(Q(i),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(a,G,e.isExpression)),t)),t):f.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(a,G,e.isExpression))}return e.visitEachChild(t,G,n)}(t);default:return e.Debug.assertNever(r)}}(t);case 214:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){var r=$(),a=$(),i=Z();return xe(r,e.visitNode(t.condition,G,e.isExpression),t.condition),Ee(i,e.visitNode(t.whenTrue,G,e.isExpression),t.whenTrue),Te(a),ee(r),Ee(i,e.visitNode(t.whenFalse,G,e.isExpression),t.whenFalse),ee(a),i}return e.visitEachChild(t,G,n)}(t);case 216:return function(n){var t=$(),r=e.visitNode(n.expression,G,e.isExpression);if(n.asteriskToken){!function(e,n){Le(7,[e],n)}(0==(8388608&e.getEmitFlags(n.expression))?e.setTextRange(m().createValuesHelper(r),n):r,n)}else!function(e,n){Le(6,[e],n)}(r,n);return ee(t),function(n){return e.setTextRange(f.createCallExpression(f.createPropertyAccessExpression(A,"sent"),void 0,[]),n)}(n)}(t);case 196:return function(e){return H(e.elements,void 0,void 0,e.multiLine)}(t);case 197:return function(n){var t=n.properties,r=n.multiLine,a=Y(t),i=Z();Ee(i,f.createObjectLiteralExpression(e.visitNodes(t,G,e.isObjectLiteralElementLike,0,a),r));var o=e.reduceLeft(t,(function(t,a){X(a)&&t.length>0&&(be(f.createExpressionStatement(f.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(f,n,a,i),s=e.visitNode(o,G,e.isExpression);s&&(r&&e.startOnNewLine(s),t.push(s));return t}),[],a);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(f.cloneNode(i),i),i.parent)):i),f.inlineExpressions(o)}(t);case 199:return function(t){if(X(t.argumentExpression))return f.updateElementAccessExpression(t,Q(e.visitNode(t.expression,G,e.isLeftHandSideExpression)),e.visitNode(t.argumentExpression,G,e.isExpression));return e.visitEachChild(t,G,n)}(t);case 200:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,X)){var r=f.createCallBinding(t.expression,h,b,!0),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(f.createFunctionApplyCall(Q(e.visitNode(a,G,e.isLeftHandSideExpression)),i,H(t.arguments)),t),t)}return e.visitEachChild(t,G,n)}(t);case 201:return function(t){if(e.forEach(t.arguments,X)){var r=f.createCallBinding(f.createPropertyAccessExpression(t.expression,"bind"),h),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(f.createNewExpression(f.createFunctionApplyCall(Q(e.visitNode(a,G,e.isExpression)),i,H(t.arguments,f.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,G,n)}(t);default:return e.visitEachChild(t,G,n)}}(t):1049088&t.transformFlags?e.visitEachChild(t,G,n):t}}function U(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(f.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,G,n),void 0,j(t.body)),t),t);else{var r=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,G,n),a=r,o=i}return a?void y(t):t}function V(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(f.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,G,n),void 0,j(t.body)),t),t);else{var r=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,G,n),a=r,o=i}return t}function j(n){var t=[],r=a,i=o,m=s,y=c,h=l,v=u,b=d,E=p,T=P,D=S,C=x,I=L,N=A;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,P=1,S=void 0,x=void 0,L=void 0,A=f.createTempVariable(void 0),_();var R=f.copyPrologue(n.statements,t,!1,G);K(n.statements,R);var k=Ae();return e.insertStatementsAfterStandardPrologue(t,g()),t.push(f.createReturnStatement(k)),a=r,o=i,s=m,c=y,l=h,u=v,d=b,p=E,P=T,S=D,x=C,L=I,A=N,e.setTextRange(f.createBlock(t,n.multiLine),n)}function H(n,t,r,a){var o,s=Y(n);if(s>0){o=Z();var c=e.visitNodes(n,G,e.isExpression,0,s);Ee(o,f.createArrayLiteralExpression(t?i([t],c):c)),t=void 0}var l=e.reduceLeft(n,(function(n,r){if(X(r)&&n.length>0){var s=void 0!==o;o||(o=Z()),Ee(o,s?f.createArrayConcatCall(o,[f.createArrayLiteralExpression(n,a)]):f.createArrayLiteralExpression(t?i([t],n):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,G,e.isExpression)),n}),[],s);return o?f.createArrayConcatCall(o,[f.createArrayLiteralExpression(l,a)]):e.setTextRange(f.createArrayLiteralExpression(t?i([t],l):l,a),r)}function K(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r0?Te(t,n):be(n)}(a);case 238:return function(n){var t=me(n.label?e.idText(n.label):void 0);t>0?Te(t,n):be(n)}(a);case 239:return function(n){t=e.visitNode(n.expression,G,e.isExpression),r=n,Le(8,[t],r);var t,r}(a);case 240:return function(n){X(n)?(t=Q(e.visitNode(n.expression,G,e.isExpression)),r=$(),a=$(),ee(r),ne({kind:1,expression:t,startLabel:r,endLabel:a}),W(n.statement),e.Debug.assert(1===ae()),ee(te().endLabel)):be(e.visitNode(n,G,e.isStatement));var t,r,a}(a);case 241:return function(n){if(X(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,a=(ne({kind:2,isScript:!1,breakLabel:m=$()}),m),i=Q(e.visitNode(n.expression,G,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(f.createCaseClause(e.visitNode(l.expression,G,e.isExpression),[he(o[c],l.expression)]))}else p++}d.length&&(be(f.createSwitchStatement(i,f.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}Te(s>=0?o[s]:a);for(c=0;c0)break;l.push(J(a))}l.length&&(be(f.createExpressionStatement(f.inlineExpressions(l))),c+=l.length,l=[])}}function J(n){return e.setSourceMapRange(f.createAssignment(e.setSourceMapRange(f.cloneNode(n.name),n.name),e.visitNode(n.initializer,G,e.isExpression)),n)}function X(e){return!!e&&0!=(262144&e.transformFlags)}function Y(e){for(var n=e.length,t=0;t=0;t--){var r=u[t];if(!de(r))break;if(r.labelText===e)return!0}return!1}function me(e){if(u)if(e)for(var n=u.length-1;n>=0;n--){if(de(t=u[n])&&t.labelText===e)return t.breakLabel;if(ue(t)&&fe(e,n-1))return t.breakLabel}else for(n=u.length-1;n>=0;n--){var t;if(ue(t=u[n]))return t.breakLabel}return 0}function _e(e){if(u)if(e)for(var n=u.length-1;n>=0;n--){if(pe(t=u[n])&&fe(e,n-1))return t.continueLabel}else for(n=u.length-1;n>=0;n--){var t;if(pe(t=u[n]))return t.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===p&&(p=[]);var n=f.createNumericLiteral(-1);return void 0===p[e]?p[e]=[n]:p[e].push(n),n}return f.createOmittedExpression()}function ye(n){var t=f.createNumericLiteral(n);return e.addSyntheticTrailingComment(t,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}}(n)),t}function he(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(f.createReturnStatement(f.createArrayLiteralExpression([ye(3),ge(n)])),t)}function ve(){Le(0)}function be(e){e?Le(1,[e]):ve()}function Ee(e,n,t){Le(2,[e,n],t)}function Te(e,n){Le(3,[e],n)}function Se(e,n,t){Le(4,[e,n],t)}function xe(e,n,t){Le(5,[e,n],t)}function Le(e,n,t){void 0===S&&(S=[],x=[],L=[]),void 0===d&&ee($());var r=S.length;S[r]=e,x[r]=n,L[r]=t}function Ae(){M=0,F=0,D=void 0,C=!1,I=!1,N=void 0,R=void 0,k=void 0,O=void 0,w=void 0;var n=function(){if(S){for(var n=0;n0)),524288))}function De(e){(function(e){if(!I)return!0;if(!d||!p)return!1;for(var n=0;n=0;n--){var t=w[n];R=[f.createWithStatement(t.expression,f.createBlock(R))]}if(O){var r=O.startLabel,a=O.catchLabel,i=O.finallyLabel,o=O.endLabel;R.unshift(f.createExpressionStatement(f.createCallExpression(f.createPropertyAccessExpression(f.createPropertyAccessExpression(A,"trys"),"push"),void 0,[f.createArrayLiteralExpression([ge(r),ge(a),ge(i),ge(o)])]))),O=void 0}e&&R.push(f.createExpressionStatement(f.createAssignment(f.createPropertyAccessExpression(A,"label"),f.createNumericLiteral(F+1))))}N.push(f.createCaseClause(f.createNumericLiteral(F),R||[])),R=void 0}function Ie(e){if(d)for(var n=0;n=2?2:0)),n),n))}else a&&e.isDefaultImport(n)&&(t=e.append(t,r.createVariableStatement(void 0,r.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(r.createVariableDeclaration(r.cloneNode(a.name),void 0,void 0,r.getGeneratedNameForNode(n)),n),n)],p>=2?2:0))));if(G(n)){var o=e.getOriginalNodeId(n);E[o]=B(E[o],n)}else t=B(t,n);return e.singleOrMany(t)}(n);case 257:return function(n){var t;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),f!==e.ModuleKind.AMD?t=e.hasSyntacticModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(z(n.name,P(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(n.name),void 0,void 0,P(n))],p>=2?2:0)),n),n)):e.hasSyntacticModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(z(r.getExportName(n),r.getLocalName(n))),n),n)));if(G(n)){var a=e.getOriginalNodeId(n);E[a]=U(E[a],n)}else t=U(t,n);return e.singleOrMany(t)}(n);case 264:return function(n){if(!n.moduleSpecifier)return;var t=r.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var i=[];f!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(t,void 0,void 0,P(n))])),n),n));for(var o=0,s=n.exportClause.elements;o(e.isExportName(t)?1:0);return!1}(n.left))return e.flattenDestructuringAssignment(n,R,t,0,!1,M);return e.visitEachChild(n,R,t)}(n):e.visitEachChild(n,R,t):n}function k(n,t){var i,o=r.createUniqueName("resolve"),s=r.createUniqueName("reject"),c=[r.createParameterDeclaration(void 0,void 0,void 0,o),r.createParameterDeclaration(void 0,void 0,void 0,s)],u=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([n||r.createOmittedExpression()]),o,s]))]);p>=2?i=r.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),t&&e.setEmitFlags(i,8));var d=r.createNewExpression(r.createIdentifier("Promise"),void 0,[i]);return l.esModuleInterop?r.createCallExpression(r.createPropertyAccessExpression(d,r.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function O(n,t){var i,o=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,[]),s=r.createCallExpression(r.createIdentifier("require"),void 0,n?[n]:[]);return l.esModuleInterop&&(s=a().createImportStarHelper(s)),p>=2?i=r.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(s)])),t&&e.setEmitFlags(i,8)),r.createCallExpression(r.createPropertyAccessExpression(o,"then"),void 0,[i])}function w(n,t){return!l.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?a().createImportStarHelper(t):e.getImportNeedsImportDefaultHelper(n)?a().createImportDefaultHelper(t):t}function P(n){var t=e.getExternalModuleNameLiteral(r,n,g,d,u,l),a=[];return t&&a.push(t),r.createCallExpression(r.createIdentifier("require"),void 0,a)}function M(n,t,a){var i=Y(n);if(i){for(var o=e.isExportName(n)?t:r.createAssignment(n,t),s=0,c=i;se.ModuleKind.ES2015)return n;if(!n.exportClause||!e.isNamespaceExport(n.exportClause)||!n.moduleSpecifier)return n;var t=n.exportClause.name,a=r.getGeneratedNameForNode(t),i=r.createImportDeclaration(void 0,void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(a)),n.moduleSpecifier);e.setOriginalNode(i,n.exportClause);var s=r.createExportDeclaration(void 0,void 0,!1,r.createNamedExports([r.createExportSpecifier(a,t)]));return e.setOriginalNode(s,n),[i,s]}(n)}return n}}}(d||(d={})),function(e){function n(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isPropertyAccessExpression(n)||e.isBindingElement(n)||e.isConstructorDeclaration(n)?t:e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){var r;r=167===n.kind?e.hasSyntacticModifier(n,32)?t.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:t.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(n,32)?t.errorModuleName?2===t.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:t.errorModuleName?2===t.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:r,errorNode:n.name,typeName:n.name}}:e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isIndexSignatureDeclaration(n)?function(t){var r;switch(n.kind){case 169:r=t.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:r=t.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:r=t.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:r=e.hasSyntacticModifier(n,32)?t.errorModuleName?2===t.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===n.parent.kind?t.errorModuleName?2===t.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:t.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:r=t.errorModuleName?2===t.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: "+n.kind)}return{diagnosticMessage:r,errorNode:n.name||n}}:e.isParameter(n)?e.isParameterPropertyDeclaration(n,n.parent)&&e.hasSyntacticModifier(n.parent,8)?t:function(t){var r=function(t){switch(n.parent.kind){case 165:return t.errorModuleName?2===t.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 t.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 t.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 t.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(n.parent,32)?t.errorModuleName?2===t.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===n.parent.parent.kind?t.errorModuleName?2===t.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:t.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 t.errorModuleName?2===t.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 t.errorModuleName?2===t.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[n.parent.kind])}}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isTypeParameterDeclaration(n)?function(){var t;switch(n.parent.kind){case 249:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 250:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 189:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 174:case 169:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 164:case 163:t=e.hasSyntacticModifier(n.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:249===n.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:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 251:t=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: "+n.parent.kind)}return{diagnosticMessage:t,errorNode:n,typeName:n.name}}:e.isExpressionWithTypeArguments(n)?function(){var t;t=e.isClassDeclaration(n.parent.parent)?e.isHeritageClause(n.parent)&&116===n.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n.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:t,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}:e.isImportEqualsDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}:e.isTypeAliasDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:n.type,typeName:n.name}}:e.Debug.assertNever(n,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[n.kind]);function t(t){var r=function(t){return 246===n.kind||195===n.kind?t.errorModuleName?2===t.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===n.kind||198===n.kind||161===n.kind||159===n.kind&&e.hasSyntacticModifier(n.parent,8)?e.hasSyntacticModifier(n,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===n.parent.kind||159===n.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:void 0}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}}e.canProduceDiagnostics=function(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isBindingElement(n)||e.isSetAccessor(n)||e.isGetAccessor(n)||e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isParameter(n)||e.isTypeParameterDeclaration(n)||e.isExpressionWithTypeArguments(n)||e.isImportEqualsDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isConstructorDeclaration(n)||e.isIndexSignatureDeclaration(n)||e.isPropertyAccessExpression(n)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){var r=function(n){return e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.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?n.errorModuleName?2===n.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:n.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}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isMethodSignature(t)||e.isMethodDeclaration(t)?function(n){var r=function(n){return e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.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===t.parent.kind?n.errorModuleName?2===n.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:n.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}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:n(t)},e.createGetSymbolAccessibilityDiagnosticForNode=n}(d||(d={})),function(e){function n(n,t){var r=t.text.substring(n.pos,n.end);return e.stringContains(r,"@internal")}function t(t,r){var a=e.getParseTreeNode(t);if(a&&159===a.kind){var i=a.parent.parameters.indexOf(a),o=i>0?a.parent.parameters[i-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return c&&c.length&&n(e.last(c),r)}var l=a&&e.getLeadingCommentRangesOfNode(a,r);return!!e.forEach(l,(function(e){return n(e,r)}))}e.getDeclarationDiagnostics=function(n,t,a){var i=n.getCompilerOptions();return e.transformNodes(t,n,e.factory,i,a?[a]:e.filter(n.getSourceFiles(),e.isSourceFileNotJson),[r],!1).diagnostics},e.isInternalDeclaration=t;function r(n){var r,c,l,u,d,p,f,m,_,g,y,h=function(){return e.Debug.fail("Diagnostic emitted without context")},v=h,b=!0,E=!1,T=!1,S=!1,x=!1,L=n.factory,A=n.getEmitHost(),D={trackSymbol:function(e,n,t){if(262144&e.flags)return;O(C.isSymbolAccessible(e,n,t,!0)),k(C.getTypeReferenceDirectivesForSymbol(e,t))},reportInaccessibleThisError:function(){f&&n.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"this"))},reportInaccessibleUniqueSymbolError:function(){f&&n.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(f),"unique symbol"))},reportCyclicStructureError:function(){f&&n.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,e.declarationNameToString(f)))},reportPrivateInBaseOfClassExpression:function(t){f&&n.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){f&&n.addDiagnostic(e.createDiagnosticForNode(f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(f),t))},moduleResolverHost:A,trackReferencedAmbientModule:function(n,t){var r=C.getTypeReferenceDirectivesForSymbol(t,67108863);if(e.length(r))return k(r);var a=e.getSourceFileOfNode(n);_.set(e.getOriginalNodeId(a),a)},trackExternalModuleSymbolOfImportTypeNode:function(e){E||(p||(p=[])).push(e)},reportNonlocalAugmentation:function(t,r,a){for(var i=e.find(r.declarations,(function(n){return e.getSourceFileOfNode(n)===t})),o=e.filter(a.declarations,(function(n){return e.getSourceFileOfNode(n)!==t})),s=0,c=o;s0?e.parameters[0].type:void 0}e.transformDeclarations=r}(d||(d={})),function(e){var n,t;function r(n,t,r){if(r)return e.emptyArray;var a=n.jsx,i=e.getEmitScriptTarget(n),o=e.getEmitModuleKind(n),c=[];return e.addRange(c,t&&e.map(t.before,s)),c.push(e.transformTypeScript),c.push(e.transformClassFields),2===a&&c.push(e.transformJsx),i<99&&c.push(e.transformESNext),i<7&&c.push(e.transformES2020),i<6&&c.push(e.transformES2019),i<5&&c.push(e.transformES2018),i<4&&c.push(e.transformES2017),i<3&&c.push(e.transformES2016),i<2&&(c.push(e.transformES2015),c.push(e.transformGenerators)),c.push(function(n){switch(n){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)),i<1&&c.push(e.transformES5),e.addRange(c,t&&e.map(t.after,s)),c}function a(n){var t=[];return t.push(e.transformDeclarations),e.addRange(t,n&&e.map(n.afterDeclarations,c)),t}function o(n,t){return function(r){var a=n(r);return"function"==typeof a?t(r,a):function(n){return function(t){return e.isBundle(t)?n.transformBundle(t):n.transformSourceFile(t)}}(a)}}function s(n){return o(n,e.chainBundle)}function c(e){return o(e,(function(e,n){return n}))}function l(e,n){return n}function u(e,n,t){t(e,n)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(n||(n={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(t||(t={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,n,t){return{scriptTransformers:r(e,n,t),declarationTransformers:a(n)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(n,t,r,a,o,s,c){for(var d,p,f,m,_=new Array(336),g=0,y=[],h=[],v=[],b=[],E=0,T=!1,S=l,x=u,L=0,A=[],D={factory:r,getCompilerOptions:function(){return a},getEmitResolver:function(){return n},getEmitHost:function(){return t},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(D)})),startLexicalEnvironment:function(){e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!T,"Lexical environment is suspended."),y[E]=d,h[E]=p,v[E]=f,b[E]=g,E++,d=void 0,p=void 0,f=void 0,g=0},suspendLexicalEnvironment:function(){e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!T,"Lexical environment is already suspended."),T=!0},resumeLexicalEnvironment:function(){e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(T,"Lexical environment is not suspended."),T=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!T,"Lexical environment is suspended."),d||p||f){if(p&&(n=i(p)),d){var t=r.createVariableStatement(void 0,r.createVariableDeclarationList(d));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}f&&(n=n?i(n,f):i(f))}E--,d=y[E],p=h[E],f=v[E],g=b[E],0===E&&(y=[],h=[],v=[],b=[]);return n},setLexicalEnvironmentFlags:function(e,n){g=n?g|e:g&~e},getLexicalEnvironmentFlags:function(){return g},hoistVariableDeclaration:function(n){e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(r.createVariableDeclaration(n),64);d?d.push(t):d=[t];1&g&&(g|=2)},hoistFunctionDeclaration:function(n){e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),p?p.push(n):p=[n]},addInitializationStatement:function(n){e.Debug.assert(L>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(L<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),f?f.push(n):f=[n]},requestEmitHelper:function n(t){if(e.Debug.assert(L>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(L<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(var r=0,a=t.dependencies;r0,"Cannot modify the transformation context during initialization."),e.Debug.assert(L<2,"Cannot modify the transformation context after transformation has completed.");var n=m;return m=void 0,n},enableSubstitution:function(n){e.Debug.assert(L<2,"Cannot modify the transformation context after transformation has completed."),_[n]|=1},enableEmitNotification:function(n){e.Debug.assert(L<2,"Cannot modify the transformation context after transformation has completed."),_[n]|=2},isSubstitutionEnabled:w,isEmitNotificationEnabled:P,get onSubstituteNode(){return S},set onSubstituteNode(n){e.Debug.assert(L<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),S=n},get onEmitNode(){return x},set onEmitNode(n){e.Debug.assert(L<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),x=n},addDiagnostic:function(e){A.push(e)}},C=0,I=o;C"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function o(n,t,r,a,i,o){void 0===a&&(a=!1);var c=e.isArray(r)?r:e.getSourceFilesToEmit(n,r,a),u=n.getCompilerOptions();if(e.outFile(u)){var d=n.getPrependNodes();if(c.length||d.length){var p=e.factory.createBundle(c,d);if(_=t(l(p,n,a),p))return _}}else{if(!i)for(var f=0,m=c;f"),kn(),he(e.type),rt(e)}(t);case 304:return function(e){Cn("function"),vn(e,e.parameters),An(":"),he(e.type)}(t);case 174:return function(e){tt(e),Cn("new"),kn(),hn(e,e.typeParameters),vn(e,e.parameters),kn(),An("=>"),kn(),he(e.type),rt(e)}(t);case 175:return function(e){Cn("typeof"),kn(),he(e.exprName)}(t);case 176:return function(n){An("{");var t=1&e.getEmitFlags(n)?768:32897;En(n,n.members,524288|t),An("}")}(t);case 177:return function(e){he(e.elementType),An("["),An("]")}(t);case 178:return function(n){Ge(22,n.pos,An,n);var t=1&e.getEmitFlags(n)?528:657;En(n,n.elements,524288|t),Ge(23,n.elements.end,An,n)}(t);case 179:return function(e){he(e.type),An("?")}(t);case 181:return function(e){En(e,e.types,516)}(t);case 182:return function(e){En(e,e.types,520)}(t);case 183:return function(e){he(e.checkType),kn(),Cn("extends"),kn(),he(e.extendsType),kn(),An("?"),kn(),he(e.trueType),kn(),An(":"),kn(),he(e.falseType)}(t);case 184:return function(e){Cn("infer"),kn(),he(e.typeParameter)}(t);case 185:return function(e){An("("),he(e.type),An(")")}(t);case 220:return function(e){be(e.expression),yn(e,e.typeArguments)}(t);case 186:return void Cn("this");case 187:return function(e){Bn(e.operator,Cn),kn(),he(e.type)}(t);case 188:return function(e){he(e.objectType),An("["),he(e.indexType),An("]")}(t);case 189:return function(n){var t=e.getEmitFlags(n);An("{"),1&t?kn():(wn(),Pn());n.readonlyToken&&(he(n.readonlyToken),141!==n.readonlyToken.kind&&Cn("readonly"),kn());An("["),Te(3,n.typeParameter),An("]"),n.questionToken&&(he(n.questionToken),57!==n.questionToken.kind&&An("?"));An(":"),kn(),he(n.type),Dn(),1&t?kn():(wn(),Mn());An("}")}(t);case 190:return function(e){be(e.literal)}(t);case 192:return function(e){e.isTypeOf&&(Cn("typeof"),kn());Cn("import"),An("("),he(e.argument),An(")"),e.qualifier&&(An("."),he(e.qualifier));yn(e,e.typeArguments)}(t);case 299:return void An("*");case 300:return void An("?");case 301:return function(e){An("?"),he(e.type)}(t);case 302:return function(e){An("!"),he(e.type)}(t);case 303:return function(e){he(e.type),An("=")}(t);case 180:case 305:return function(e){An("..."),he(e.type)}(t);case 191:return function(e){he(e.dotDotDotToken),he(e.name),he(e.questionToken),Ge(58,e.name.end,An,e),kn(),he(e.type)}(t);case 193:return function(e){An("{"),En(e,e.elements,525136),An("}")}(t);case 194:return function(e){An("["),En(e,e.elements,524880),An("]")}(t);case 195:return function(e){he(e.dotDotDotToken),e.propertyName&&(he(e.propertyName),An(":"),kn());he(e.name),pn(e.initializer,e.name.end,e)}(t);case 225:return function(e){be(e.expression),he(e.literal)}(t);case 226:return void Dn();case 227:return function(e){we(e,!e.multiLine&&Zn(e))}(t);case 229:return function(e){un(e,e.modifiers),he(e.declarationList),Dn()}(t);case 228:return Pe(!1);case 230:return function(n){be(n.expression),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(n.expression))&&Dn()}(t);case 231:return function(e){var n=Ge(98,e.pos,Cn,e);kn(),Ge(20,n,An,e),be(e.expression),Ge(21,e.expression.end,An,e),_n(e,e.thenStatement),e.elseStatement&&(Un(e,e.thenStatement,e.elseStatement),Ge(90,e.thenStatement.end,Cn,e),231===e.elseStatement.kind?(kn(),he(e.elseStatement)):_n(e,e.elseStatement))}(t);case 232:return function(n){Ge(89,n.pos,Cn,n),_n(n,n.statement),e.isBlock(n.statement)&&!F?kn():Un(n,n.statement,n.expression);Me(n,n.statement.end),Dn()}(t);case 233:return function(e){Me(e,e.pos),_n(e,e.statement)}(t);case 234:return function(e){var n=Ge(96,e.pos,Cn,e);kn();var t=Ge(20,n,An,e);Fe(e.initializer),t=Ge(26,e.initializer?e.initializer.end:t,An,e),mn(e.condition),t=Ge(26,e.condition?e.condition.end:t,An,e),mn(e.incrementor),Ge(21,e.incrementor?e.incrementor.end:t,An,e),_n(e,e.statement)}(t);case 235:return function(e){var n=Ge(96,e.pos,Cn,e);kn(),Ge(20,n,An,e),Fe(e.initializer),kn(),Ge(100,e.initializer.end,Cn,e),kn(),be(e.expression),Ge(21,e.expression.end,An,e),_n(e,e.statement)}(t);case 236:return function(e){var n=Ge(96,e.pos,Cn,e);kn(),function(e){e&&(he(e),kn())}(e.awaitModifier),Ge(20,n,An,e),Fe(e.initializer),kn(),Ge(155,e.initializer.end,Cn,e),kn(),be(e.expression),Ge(21,e.expression.end,An,e),_n(e,e.statement)}(t);case 237:return function(e){Ge(85,e.pos,Cn,e),fn(e.label),Dn()}(t);case 238:return function(e){Ge(80,e.pos,Cn,e),fn(e.label),Dn()}(t);case 239:return function(e){Ge(104,e.pos,Cn,e),mn(e.expression),Dn()}(t);case 240:return function(e){var n=Ge(115,e.pos,Cn,e);kn(),Ge(20,n,An,e),be(e.expression),Ge(21,e.expression.end,An,e),_n(e,e.statement)}(t);case 241:return function(e){var n=Ge(106,e.pos,Cn,e);kn(),Ge(20,n,An,e),be(e.expression),Ge(21,e.expression.end,An,e),kn(),he(e.caseBlock)}(t);case 242:return function(e){he(e.label),Ge(58,e.label.end,An,e),kn(),he(e.statement)}(t);case 243:return function(e){Ge(108,e.pos,Cn,e),mn(e.expression),Dn()}(t);case 244:return function(e){Ge(110,e.pos,Cn,e),kn(),he(e.tryBlock),e.catchClause&&(Un(e,e.tryBlock,e.catchClause),he(e.catchClause));e.finallyBlock&&(Un(e,e.catchClause||e.tryBlock,e.finallyBlock),Ge(95,(e.catchClause||e.tryBlock).end,Cn,e),kn(),he(e.finallyBlock))}(t);case 245:return function(e){Fn(86,e.pos,Cn),Dn()}(t);case 246:return function(e){he(e.name),he(e.exclamationToken),dn(e.type),pn(e.initializer,e.type?e.type.end:e.name.end,e)}(t);case 247:return function(n){Cn(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),kn(),En(n,n.declarations,528)}(t);case 248:return function(e){Be(e)}(t);case 249:return function(e){qe(e)}(t);case 250:return function(e){gn(e,e.decorators),un(e,e.modifiers),Cn("interface"),kn(),he(e.name),hn(e,e.typeParameters),En(e,e.heritageClauses,512),kn(),An("{"),En(e,e.members,129),An("}")}(t);case 251:return function(e){gn(e,e.decorators),un(e,e.modifiers),Cn("type"),kn(),he(e.name),hn(e,e.typeParameters),kn(),An("="),kn(),he(e.type),Dn()}(t);case 252:return function(e){un(e,e.modifiers),Cn("enum"),kn(),he(e.name),kn(),An("{"),En(e,e.members,145),An("}")}(t);case 253:return function(e){un(e,e.modifiers),1024&~e.flags&&(Cn(16&e.flags?"namespace":"module"),kn());he(e.name);var n=e.body;if(!n)return Dn();for(;253===n.kind;)An("."),he(n.name),n=n.body;kn(),he(n)}(t);case 254:return function(n){tt(n),e.forEach(n.statements,it),we(n,Zn(n)),rt(n)}(t);case 255:return function(e){Ge(18,e.pos,An,e),En(e,e.clauses,129),Ge(19,e.clauses.end,An,e,!0)}(t);case 256:return function(e){var n=Ge(92,e.pos,Cn,e);kn(),n=Ge(126,n,Cn,e),kn(),n=Ge(139,n,Cn,e),kn(),he(e.name),Dn()}(t);case 257:return function(e){un(e,e.modifiers),Ge(99,e.modifiers?e.modifiers.end:e.pos,Cn,e),kn(),he(e.name),kn(),Ge(62,e.name.end,An,e),kn(),function(e){78===e.kind?be(e):he(e)}(e.moduleReference),Dn()}(t);case 258:return function(e){un(e,e.modifiers),Ge(99,e.modifiers?e.modifiers.end:e.pos,Cn,e),kn(),e.importClause&&(he(e.importClause),kn(),Ge(152,e.importClause.end,Cn,e),kn());be(e.moduleSpecifier),Dn()}(t);case 259:return function(e){e.isTypeOnly&&(Ge(148,e.pos,Cn,e),kn());he(e.name),e.name&&e.namedBindings&&(Ge(27,e.name.end,An,e),kn());he(e.namedBindings)}(t);case 260:return function(e){var n=Ge(41,e.pos,An,e);kn(),Ge(126,n,Cn,e),kn(),he(e.name)}(t);case 266:return function(e){var n=Ge(41,e.pos,An,e);kn(),Ge(126,n,Cn,e),kn(),he(e.name)}(t);case 261:return function(e){ze(e)}(t);case 262:return function(e){Je(e)}(t);case 263:return function(e){var n=Ge(92,e.pos,Cn,e);kn(),e.isExportEquals?Ge(62,n,In,e):Ge(87,n,Cn,e);kn(),be(e.expression),Dn()}(t);case 264:return function(e){var n=Ge(92,e.pos,Cn,e);kn(),e.isTypeOnly&&(n=Ge(148,n,Cn,e),kn());e.exportClause?he(e.exportClause):n=Ge(41,n,An,e);if(e.moduleSpecifier){kn(),Ge(152,e.exportClause?e.exportClause.end:n,Cn,e),kn(),be(e.moduleSpecifier)}Dn()}(t);case 265:return function(e){ze(e)}(t);case 267:return function(e){Je(e)}(t);case 268:return;case 269:return function(e){Cn("require"),An("("),be(e.expression),An(")")}(t);case 11:return function(e){m.writeLiteral(e.text)}(t);case 272:case 275:return function(n){if(An("<"),e.isJsxOpeningElement(n)){var t=Jn(n.tagName,n);Xe(n.tagName),yn(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&kn(),he(n.attributes),Xn(n.attributes,n),Hn(t)}An(">")}(t);case 273:case 276:return function(n){An("")}(t);case 277:return function(e){he(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",An,e.initializer,Ee)}(t);case 278:return function(e){En(e,e.properties,262656)}(t);case 279:return function(e){An("{..."),be(e.expression),An("}")}(t);case 280:return function(e){e.expression&&(An("{"),he(e.dotDotDotToken),be(e.expression),An("}"))}(t);case 281:return function(e){Ge(81,e.pos,Cn,e),kn(),be(e.expression),Ye(e,e.statements,e.expression.end)}(t);case 282:return function(e){var n=Ge(87,e.pos,Cn,e);Ye(e,e.statements,n)}(t);case 283:return function(e){kn(),Bn(e.token,Cn),kn(),En(e,e.types,528)}(t);case 284:return function(e){var n=Ge(82,e.pos,Cn,e);kn(),e.variableDeclaration&&(Ge(20,n,An,e),he(e.variableDeclaration),Ge(21,e.variableDeclaration.end,An,e),kn());he(e.block)}(t);case 285:return function(n){he(n.name),An(":"),kn();var t=n.initializer;if(At&&0==(512&e.getEmitFlags(t))){At(e.getCommentRange(t).pos)}be(t)}(t);case 286:return function(e){he(e.name),e.objectAssignmentInitializer&&(kn(),An("="),kn(),be(e.objectAssignmentInitializer))}(t);case 287:return function(e){e.expression&&(Ge(25,e.pos,An,e),be(e.expression))}(t);case 288:return function(e){he(e.name),pn(e.initializer,e.name.end,e)}(t);case 322:case 328:return function(e){$e(e.tagName),nn(e.typeExpression),kn(),e.isBracketed&&An("[");he(e.name),e.isBracketed&&An("]");en(e.comment)}(t);case 323:case 325:case 324:case 321:return $e((r=t).tagName),nn(r.typeExpression),void en(r.comment);case 312:case 311:return function(e){$e(e.tagName),kn(),An("{"),he(e.class),An("}"),en(e.comment)}(t);case 326:return function(e){$e(e.tagName),nn(e.constraint),kn(),En(e,e.typeParameters,528),en(e.comment)}(t);case 327:return function(e){$e(e.tagName),e.typeExpression&&(298===e.typeExpression.kind?nn(e.typeExpression):(kn(),An("{"),G("Object"),e.typeExpression.isArrayType&&(An("["),An("]")),An("}")));e.fullName&&(kn(),he(e.fullName));en(e.comment),e.typeExpression&&308===e.typeExpression.kind&&Qe(e.typeExpression)}(t);case 320:return function(e){$e(e.tagName),e.name&&(kn(),he(e.name));en(e.comment),Ze(e.typeExpression)}(t);case 309:return Ze(t);case 308:return Qe(t);case 315:case 310:return function(e){$e(e.tagName),en(e.comment)}(t);case 307:return function(e){if(G("/**"),e.comment)for(var n=e.comment.split(/\r\n?|\n/g),t=0,r=n;t=1&&!e.isJsonSourceFile(i)?64:0;En(n,n.properties,526226|a|r),t&&Mn()}(t);case 198:return function(n){var t=e.cast(be(n.expression),e.isExpression),r=n.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),n.expression.end,n.name.pos),a=Qn(n,n.expression,r),i=Qn(n,r,n.name);jn(a,!1),28===r.kind||!function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var t=nt(n,!0,!1);return!n.numericLiteralFlags&&!e.stringContains(t,e.tokenToString(24))}if(e.isAccessExpression(n)){var r=e.getConstantValue(n);return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r}}(t)||m.hasTrailingComment()||m.hasTrailingWhitespace()||An(".");n.questionDotToken?he(r):Ge(r.kind,n.expression.end,An,n);jn(i,!1),he(n.name),Hn(a,i)}(t);case 199:return function(e){be(e.expression),he(e.questionDotToken),Ge(22,e.expression.end,An,e),be(e.argumentExpression),Ge(23,e.argumentExpression.end,An,e)}(t);case 200:return function(e){be(e.expression),he(e.questionDotToken),yn(e,e.typeArguments),Tn(e,e.arguments,2576)}(t);case 201:return function(e){Ge(102,e.pos,Cn,e),kn(),be(e.expression),yn(e,e.typeArguments),Tn(e,e.arguments,18960)}(t);case 202:return function(e){be(e.tag),yn(e,e.typeArguments),kn(),be(e.template)}(t);case 203:return function(e){An("<"),he(e.type),An(">"),be(e.expression)}(t);case 204:return function(e){var n=Ge(20,e.pos,An,e),t=Jn(e.expression,e);be(e.expression),Xn(e.expression,e),Hn(t),Ge(21,e.expression?e.expression.end:n,An,e)}(t);case 205:return function(e){st(e.name),Be(e)}(t);case 206:return function(e){gn(e,e.decorators),un(e,e.modifiers),Ve(e,Oe)}(t);case 207:return function(e){Ge(88,e.pos,Cn,e),kn(),be(e.expression)}(t);case 208:return function(e){Ge(111,e.pos,Cn,e),kn(),be(e.expression)}(t);case 209:return function(e){Ge(113,e.pos,Cn,e),kn(),be(e.expression)}(t);case 210:return function(e){Ge(130,e.pos,Cn,e),kn(),be(e.expression)}(t);case 211:return function(e){Bn(e.operator,In),function(e){var n=e.operand;return 211===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}(e)&&kn();be(e.operand)}(t);case 212:return function(e){be(e.operand),Bn(e.operator,In)}(t);case 213:return function(n){var t=[n],r=[0],a=0;for(;a>=0;)switch(n=t[a],r[a]){case 0:c(n.left);break;case 1:var i=27!==n.operatorToken.kind,o=Qn(n,n.left,n.operatorToken),s=Qn(n,n.operatorToken,n.right);jn(o,i),xt(n.operatorToken.pos),Gn(n.operatorToken,100===n.operatorToken.kind?Cn:In),At(n.operatorToken.end,!0),jn(s,!0),c(n.right);break;case 2:o=Qn(n,n.left,n.operatorToken),s=Qn(n,n.operatorToken,n.right);Hn(o,s),a--;break;default:return e.Debug.fail("Invalid state "+r[a]+" for emitBinaryExpressionWorker")}function c(n){r[a]++;var i=E,o=T;E=n,T=void 0;var s=Se(0,1,n);s===Ae&&e.isBinaryExpression(n)?(a++,r[a]=0,t[a]=n):s(1,n),e.Debug.assert(E===n),E=i,T=o}}(t);case 214:return function(e){var n=Qn(e,e.condition,e.questionToken),t=Qn(e,e.questionToken,e.whenTrue),r=Qn(e,e.whenTrue,e.colonToken),a=Qn(e,e.colonToken,e.whenFalse);be(e.condition),jn(n,!0),he(e.questionToken),jn(t,!0),be(e.whenTrue),Hn(n,t),jn(r,!0),he(e.colonToken),jn(a,!0),be(e.whenFalse),Hn(r,a)}(t);case 215:return function(e){he(e.head),En(e,e.templateSpans,262144)}(t);case 216:return function(e){Ge(124,e.pos,Cn,e),he(e.asteriskToken),mn(e.expression)}(t);case 217:return function(e){Ge(25,e.pos,An,e),be(e.expression)}(t);case 218:return function(e){st(e.name),qe(e)}(t);case 219:return;case 221:return function(e){be(e.expression),e.type&&(kn(),Cn("as"),kn(),he(e.type))}(t);case 222:return function(e){be(e.expression),In("!")}(t);case 223:return function(e){Fn(e.keywordToken,e.pos,An),An("."),he(e.name)}(t);case 270:return function(e){he(e.openingElement),En(e,e.children,262144),he(e.closingElement)}(t);case 271:return function(e){An("<"),Xe(e.tagName),yn(e,e.typeArguments),kn(),he(e.attributes),An("/>")}(t);case 274:return function(e){he(e.openingFragment),En(e,e.children,262144),he(e.closingFragment)}(t);case 331:return function(e){be(e.expression)}(t);case 332:return function(e){Tn(e,e.elements,528)}(t)}}function De(n,t){e.Debug.assert(E===t||T===t),xe(1,n,t)(n,T),e.Debug.assert(E===t||T===t)}function Ce(t){var r=!1,a=295===t.kind?t:void 0;if(!a||P!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;t=o}return!0}(n)?Ke:We;vt?vt(n,n.statements,t):t(n),Mn(),Fn(19,n.statements.end,An,n)}function Ke(e){We(e,!0)}function We(e,n){var t=an(e.statements),r=m.getTextPos();Ce(e),0===t&&r===m.getTextPos()&&n?(Mn(),En(e,e.statements,768),Pn()):En(e,e.statements,1,t)}function qe(n){e.forEach(n.members,ot),gn(n,n.decorators),un(n,n.modifiers),Cn("class"),n.name&&(kn(),ve(n.name));var t=65536&e.getEmitFlags(n);t&&Pn(),hn(n,n.typeParameters),En(n,n.heritageClauses,0),kn(),An("{"),En(n,n.members,129),An("}"),t&&Mn()}function ze(e){An("{"),En(e,e.elements,525136),An("}")}function Je(e){e.propertyName&&(he(e.propertyName),kn(),Ge(126,e.propertyName.end,Cn,e),kn()),he(e.name)}function Xe(e){78===e.kind?be(e):he(e)}function Ye(n,t,r){var a=163969;1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],i))?(Fn(58,r,An,n),kn(),a&=-130):Ge(58,r,An,n),En(n,t,a)}function Qe(n){En(n,e.factory.createNodeArray(n.jsDocPropertyTags),33)}function Ze(n){n.typeParameters&&En(n,e.factory.createNodeArray(n.typeParameters),33),n.parameters&&En(n,e.factory.createNodeArray(n.parameters),33),n.type&&(wn(),kn(),An("*"),kn(),he(n.type))}function $e(e){An("@"),he(e)}function en(e){e&&(kn(),G(e))}function nn(e){e&&(kn(),An("{"),he(e.type),An("}"))}function tn(e,n,t,r){if(e){var a=m.getTextPos();Rn('/// '),B&&B.sections.push({pos:a,end:m.getTextPos(),kind:"no-default-lib"}),wn()}if(i&&i.moduleName&&(Rn('/// '),wn()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o'):Rn('/// '),wn()}for(var l=0,u=n;l'),B&&B.sections.push({pos:a,end:m.getTextPos(),kind:"reference",data:d.fileName}),wn()}for(var p=0,f=t;p'),B&&B.sections.push({pos:a,end:m.getTextPos(),kind:"type",data:d.fileName}),wn()}for(var _=0,g=r;_'),B&&B.sections.push({pos:a,end:m.getTextPos(),kind:"lib",data:d.fileName}),wn()}}function rn(n){var t=n.statements;tt(n),e.forEach(n.statements,it),Ce(n);var r=e.findIndex(t,(function(n){return!e.isPrologueDirective(n)}));!function(e){e.isDeclarationFile&&tn(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(n),En(n,t,1,-1===r?t.length:r),rt(n)}function an(n,t,r,a){for(var i=!!t,o=0;o=a.length||0===c;if(u&&32768&o)return I&&I(a),void(N&&N(a));if(15360&o&&(An(function(e){return r[15360&e][0]}(o)),u&&!l&&At(a.pos,!0)),I&&I(a),u)!(1&o)||F&&e.rangeIsOnSingleLine(t,i)?256&o&&!(524288&o)&&kn():wn();else{var d=0==(262144&o),p=d,m=Kn(t,a,o);m?(wn(m),p=!1):256&o&&kn(),128&o&&Pn();for(var _=void 0,g=void 0,y=!1,h=0;h0?(0==(131&o)&&(Pn(),y=!0),wn(b),p=!1):_&&512&o&&kn()}if(g=oe(v),p){if(At)At(e.getCommentRange(v).pos)}else p=d;f=v.pos,n(v),y&&(Mn(),y=!1),_=v}var E=64&o&&a.hasTrailingComma;16&o&&E&&An(","),_&&60&o&&_.end!==t.end&&!(1024&e.getEmitFlags(_))&&xt(_.end),128&o&&Mn(),se(g);var T=qn(t,a,o);T?wn(T):2097408&o&&kn()}N&&N(a),15360&o&&(u&&!l&&xt(a.end),An(function(e){return r[15360&e][1]}(o)))}}function Ln(e,n){m.writeSymbol(e,n)}function An(e){m.writePunctuation(e)}function Dn(){m.writeTrailingSemicolon(";")}function Cn(e){m.writeKeyword(e)}function In(e){m.writeOperator(e)}function Nn(e){m.writeParameter(e)}function Rn(e){m.writeComment(e)}function kn(){m.writeSpace(" ")}function On(e){m.writeProperty(e)}function wn(e){void 0===e&&(e=1);for(var n=0;n0)}function Pn(){m.increaseIndent()}function Mn(){m.decreaseIndent()}function Fn(n,t,r,a){return K?Bn(n,r,t):function(n,t,r,a,i){if(K||n&&e.isInJsonFile(n))return i(t,r,a);var o=n&&n.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],l=c&&c.source||h;a=kt(l,c?c.pos:a),0==(128&s)&&a>=0&&wt(l,a);a=i(t,r,a),c&&(a=c.end);0==(256&s)&&a>=0&&wt(l,a);return a}(a,n,r,t,Bn)}function Gn(n,t){R&&R(n),t(e.tokenToString(n.kind)),k&&k(n)}function Bn(n,t,r){var a=e.tokenToString(n);return t(a),r<0?r:r+a.length}function Un(n,t,r){if(1&e.getEmitFlags(n))kn();else if(F){var a=Qn(n,t,r);a?wn(a):kn()}else wn()}function Vn(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),a=0,i=t;a0||o>0)&&i!==o&&(c||bt(i,s),(!c||i>=0&&0!=(512&r))&&(q=i),(!l||o>=0&&0!=(1024&r))&&(z=o,247===t.kind&&(J=o))),e.forEach(e.getSyntheticLeadingComments(t),gt),$();var f=xe(2,n,t);2048&r?(Y=!0,f(n,t),Y=!1):f(n,t),Z(),e.forEach(e.getSyntheticTrailingComments(t),yt),(i>0||o>0)&&i!==o&&(q=u,z=d,J=p,!l&&s&&function(e){It(e,Lt)}(o)),$(),e.Debug.assert(E===t||T===t)}function gt(e){(e.hasLeadingNewline||2===e.kind)&&m.writeLine(),ht(e),e.hasTrailingNewLine||2===e.kind?m.writeLine():m.writeSpace(" ")}function yt(e){m.isAtStartOfLine()||m.writeSpace(" "),ht(e),e.hasTrailingNewLine&&m.writeLine()}function ht(n){var t=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(n),r=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,r,m,0,t.length,w)}function vt(n,t,r){Z();var a,o,s=t.pos,c=t.end,l=e.getEmitFlags(n),u=Y||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=t,(o=e.emitDetachedComments(i.text,ye(),m,Nt,a,w,Y))&&(b?b.push(o):b=[o])),$(),2048&l&&!Y?(Y=!0,r(n),Y=!1):r(n),Z(),u||(bt(t.end,!0),X&&!m.isAtStartOfLine()&&m.writeLine()),$()}function bt(e,n){X=!1,n?Ct(e,St):0===e&&Ct(e,Et)}function Et(n,t,r,a,o){(function(n,t){return e.isRecognizedTripleSlashComment(i.text,n,t)})(n,t)&&St(n,t,r,a,o)}function Tt(t,r){return!n.onlyPrintJsDocStyle||(e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r))}function St(n,t,r,a,o){Tt(i.text,n)&&(X||(e.emitNewLineBeforeLeadingCommentOfPosition(ye(),m,o,n),X=!0),Ot(n),e.writeCommentRange(i.text,ye(),m,n,t,w),Ot(t),a?m.writeLine():3===r&&m.writeSpace(" "))}function xt(e){Y||-1===e||bt(e,!0)}function Lt(n,t,r,a){Tt(i.text,n)&&(m.isAtStartOfLine()||m.writeSpace(" "),Ot(n),e.writeCommentRange(i.text,ye(),m,n,t,w),Ot(t),a&&m.writeLine())}function At(e,n){Y||(Z(),It(e,n?Lt:Dt),$())}function Dt(n,t,r,a){Ot(n),e.writeCommentRange(i.text,ye(),m,n,t,w),Ot(t),a?m.writeLine():m.writeSpace(" ")}function Ct(n,t){!i||-1!==q&&n===q||(function(n){return void 0!==b&&e.last(b).nodePos===n}(n)?function(n){var t=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0;e.forEachLeadingCommentRange(i.text,t,n,t)}(t):e.forEachLeadingCommentRange(i.text,n,t,n))}function It(n,t){i&&(-1===z||n!==z&&n!==J)&&e.forEachTrailingCommentRange(i.text,n,t)}function Nt(n,t,r,a,o,s){Tt(i.text,a)&&(Ot(a),e.writeCommentRange(n,t,r,a,o,s),Ot(o))}function Rt(n,t){e.Debug.assert(E===t||T===t);var r=xe(3,n,t);if(e.isUnparsedSource(t)||e.isUnparsedPrepend(t))r(n,t);else if(e.isUnparsedNode(t)){var a=function(n){return void 0===n.parsedSourceMap&&void 0!==n.sourceMapText&&(n.parsedSourceMap=e.tryParseRawSourceMap(n.sourceMapText)||!1),n.parsedSourceMap||void 0}(t.parent);a&&y&&y.appendSourceMap(m.getLine(),m.getColumn(),a,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end)),r(n,t)}else{var i=e.getSourceMapRange(t),o=i.pos,s=i.end,c=i.source,l=void 0===c?h:c,u=e.getEmitFlags(t);330!==t.kind&&0==(16&u)&&o>=0&&wt(l,kt(l,o)),64&u?(K=!0,r(n,t),K=!1):r(n,t),330!==t.kind&&0==(32&u)&&s>=0&&wt(l,s)}e.Debug.assert(E===t||T===t)}function kt(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function Ot(n){if(!(K||e.positionIsSynthesized(n)||Mt(h))){var t=e.getLineAndCharacterOfPosition(h,n),r=t.line,a=t.character;y.addMapping(m.getLine(),m.getColumn(),W,r,a,void 0)}}function wt(e,n){if(e!==h){var t=h;Pt(e),Ot(n),Pt(t)}else Ot(n)}function Pt(e){K||(h=e,Mt(e)||(W=y.addSource(e.fileName),n.inlineSources&&y.setSourceContent(W,e.text)))}function Mt(n){return e.fileExtensionIs(n.fileName,".json")}}e.isBuildInfoFile=function(n){return e.fileExtensionIs(n,".tsbuildinfo")},e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=l,e.getOutputExtension=d,e.getOutputDeclarationFileName=f,e.getAllProjectOutputs=function(n,t){var r=_(),a=r.addOutput,i=r.getOutputs;if(e.outFile(n.options))g(n,a);else{for(var o=0,c=n.fileNames;o=4,g=(p+1+"").length;_&&(g=Math.max("...".length,g));for(var y="",h=c;h<=p;h++){y+=o.getNewLine(),_&&c+11}))&&Yn(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&0===d&&Yn(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");R.checkJs&&!R.allowJs&&$.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));R.emitDeclarationOnly&&(e.getEmitDeclarations(R)||Yn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&Yn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));R.emitDecoratorMetadata&&!R.experimentalDecorators&&Yn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");R.jsxFactory?(R.reactNamespace&&Yn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(R.jsxFactory,d)||Qn("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!e.isIdentifierText(R.reactNamespace,d)&&Qn("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace);R.jsxFragmentFactory&&(R.jsxFactory||Yn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),e.parseIsolatedEntityName(R.jsxFragmentFactory,d)||Qn("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFragmentFactory));if(!R.noEmit&&!R.suppressOutputPathCheck){var g=Xe(),y=new e.Set;e.forEachEmittedFile(g,(function(e){R.emitDeclarationOnly||h(e.jsFilePath,y),h(e.declarationFilePath,y)}))}function h(n,t){if(n){var r=qe(n);if(ge.has(r)){var a=void 0;R.configFilePath||(a=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)),a=e.chainDiagnosticMessages(a,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,n),tt(n,e.createCompilerDiagnosticFromMessageChain(a))}var i=J.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);t.has(i)?tt(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.add(i)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),je;function He(n,t,r,a){e.performance.mark("beforeResolveModule");var i=q(n,t,r,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),i}function Ke(n,t,r){e.performance.mark("beforeResolveTypeReference");var a=z(n,t,r);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),a}function We(n){if(e.containsPath(Z,n.fileName,!1)){var t=e.getBaseFileName(n.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;var r=e.removeSuffix(e.removePrefix(t,"lib."),".d.ts"),a=e.libs.indexOf(r);if(-1!==a)return a+1}return e.libs.length+2}function qe(n){return e.toPath(n,ee,Vn)}function ze(){if(void 0===x){var n=e.filter(T,(function(n){return e.sourceFileMayBeEmitted(n,je)}));R.rootDir&&Hn(n,R.rootDir)?x=e.getNormalizedAbsolutePath(R.rootDir,ee):R.composite&&R.configFilePath?Hn(n,x=e.getDirectoryPath(e.normalizeSlashes(R.configFilePath))):(r=n,x=t(e.mapDefined(r,(function(e){return e.isDeclarationFile?void 0:e.fileName})),ee,Vn)),x&&x[x.length-1]!==e.directorySeparator&&(x+=e.directorySeparator)}var r;return x}function Je(n,t,r){if(0===pe&&!r.ambientModuleNames.length)return He(n,t,void 0,Nn(r.originalFileName));var a,i,o,s=w&&w.getSourceFile(t);if(s!==r&&r.resolvedModules){for(var c=[],l=0,u=n;l=0;){if(t.markUsed(o))return o;var s=r.text.slice(i[o],i[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(n,a)})),directives:a}}function fn(e,n){return _n(e,n,F,mn)}function mn(n,t){return cn((function(){var r=$e().getEmitResolver(n,t);return e.getDeclarationDiagnostics(Xe(e.noop),r,n)||e.emptyArray}))}function _n(n,t,r,a){var i,o=n?null===(i=r.perFile)||void 0===i?void 0:i.get(n.path):r.allDiagnostics;if(o)return o;var s=a(n,t);return n?(r.perFile||(r.perFile=new e.Map)).set(n.path,s):r.allDiagnostics=s,s}function gn(e,n){return e.isDeclarationFile?[]:fn(e,n)}function yn(n,t,r){Tn(e.normalizePath(n),t,r,void 0)}function hn(e,n){return e.fileName===n.fileName}function vn(e,n){return 78===e.kind?78===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function bn(n){if(!n.imports){var t,r,a,i=e.isSourceFileJS(n),o=e.isExternalModule(n);if(R.importHelpers&&(R.isolatedModules||o)&&!n.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,n),t=[s]}for(var l=0,u=n.statements;l0),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,n,t,qe(n),d);return _e.add(v.path,n),An(b,t,u),me.set(t,o.name),E.push(b),b}y&&(fe.set(h,y),me.set(t,o.name))}if(An(y,t,u),y){if(H.set(t,V>0),y.fileName=n,y.path=t,y.resolvedPath=qe(n),y.originalFileName=d,Ln(n,y,i),J.useCaseSensitiveFileNames()){var T=e.toFileNameLowerCase(t),S=ye.get(T);S?Sn(n,S,i):ye.set(T,y)}Y=Y||y.hasNoDefaultLib&&!a,R.noResolve||(Mn(y,r),Fn(y)),R.noLib||Bn(y),jn(y),r?p.push(y):E.push(y)}return y}function Ln(n,t,r){r&&t&&(C||(C=e.createMultiMap())).add(t.path,{referencedFileName:n,kind:r.kind,index:r.index,file:r.file.path})}function An(e,n,t){t?(ge.set(t,e),ge.set(n,e||!1)):ge.set(n,e)}function Dn(e){var n=Cn(e);return n&&In(n,e)}function Cn(n){if(ce&&ce.length&&!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json"))return Nn(n)}function In(n,t){var r=e.outFile(n.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!J.useCaseSensitiveFileNames())}function Nn(n){void 0===ue&&(ue=new e.Map,Rn((function(e,n){e&&qe(R.configFilePath)!==n&&e.commandLine.fileNames.forEach((function(e){return ue.set(qe(e),n)}))})));var t=ue.get(qe(n));return t&&Pn(t)}function Rn(e){return wn(O,ce,(function(n,t,r){var a=qe(h((r?r.commandLine.projectReferences:O)[t]));return e(n,a)}))}function kn(n){if(e.isDeclarationFileName(n))return void 0===de&&(de=new e.Map,Rn((function(n){if(n){var t=e.outFile(n.commandLine.options);if(t){var r=e.changeExtension(t,".d.ts");de.set(qe(r),!0)}else e.forEach(n.commandLine.fileNames,(function(t){if(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")){var r=e.getOutputDeclarationFileName(t,n.commandLine,J.useCaseSensitiveFileNames());de.set(qe(r),t)}}))}}))),de.get(qe(n))}function On(e){return he&&!!Nn(e)}function wn(n,t,r,a){var i;return function n(t,r,a,o,s){if(s){var c=s(t,a);if(c)return c}return e.forEach(r,(function(t,r){if(!e.contains(i,t)){var c=o(t,r,a);if(c)return c;if(t)return(i||(i=[])).push(t),n(t.commandLine.projectReferences,t.references,t,o,s)}}))}(n,t,void 0,r,a)}function Pn(e){if(le)return le.get(e)||void 0}function Mn(t,r){e.forEach(t.referencedFiles,(function(a,i){Tn(n(a.fileName,t.fileName),r,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:i,file:t,pos:a.pos,end:a.end})}))}function Fn(n){var t=e.map(n.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)}));if(t)for(var r=Ke(t,n.originalFileName,Nn(n.originalFileName)),a=0;aU,d=l&&!v(R,i)&&!R.noResolve&&at&&($.add(e.createDiagnosticForNodeInSourceFile(R.configFile,f.elements[t],r,a,i,o)),s=!1)}}s&&$.add(e.createCompilerDiagnostic(r,a,i,o))}function Jn(n,t,r,a){for(var i=!0,o=0,s=Xn();ot?$.add(e.createDiagnosticForNodeInSourceFile(n||R.configFile,o.elements[t],r,a,i)):$.add(e.createCompilerDiagnostic(r,a,i))}function $n(n,t,r,a,i,o,s){var c=et();(!c||!nt(c,n,t,r,a,i,o,s))&&$.add(e.createCompilerDiagnostic(a,i,o,s))}function et(){if(void 0===K){K=null;var n=e.getTsConfigObjectLiteralExpression(R.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t0)for(var s=n.getTypeChecker(),c=0,l=t.imports;c0)for(var p=0,f=t.referencedFiles;p1&&T(E)}return o;function T(n){for(var r=0,a=n.declarations;r1?m.outputFiles[1]:void 0:m.outputFiles.length>0?m.outputFiles[0]:void 0;_?(e.Debug.assert(e.fileExtensionIs(_.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(_.name)+" for "+_.name+":: All output files: "+JSON.stringify(m.outputFiles.map((function(e){return e.name})))})),d=c(_.text),l&&d!==p&&function(n,t,a){if(!t)return void a.set(n.resolvedPath,!1);var i;t.forEach((function(n){var t;(t=r(n))&&(i||(i=new e.Set),i.add(t))})),a.set(n.resolvedPath,i||!1)}(i,m.exportedModulesFromDeclarationEmit,l)):d=p}return o.set(i.resolvedPath,d),!p||d!==p}function d(n,t){if(!n.allFileNames){var r=t.getSourceFiles();n.allFileNames=r===e.emptyArray?e.emptyArray:r.map((function(e){return e.fileName}))}return n.allFileNames}function p(n,t){return e.arrayFrom(e.mapDefinedIterator(n.referencedMap.entries(),(function(e){var n=e[0];return e[1].has(t)?n:void 0})))}function f(n){return function(n){return e.some(n.moduleAugmentations,(function(n){return e.isGlobalScopeAugmentation(n.parent)}))}(n)||!e.isExternalModule(n)&&!function(n){for(var t=0,r=n.statements;t0;){var _=d.pop();if(!l.has(_)){var g=t.getSourceFileByPath(_);l.set(_,g),g&&u(n,t,g,a,i,o,s)&&d.push.apply(d,p(n,g.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}t.canReuseOldState=s,t.create=function(n,t,r){var a=new e.Map,i=n.getCompilerOptions().module!==e.ModuleKind.None?new e.Map:void 0,c=i?new e.Map:void 0,l=new e.Set,u=s(i,r);n.getTypeChecker();for(var d=0,p=n.getSourceFiles();d0;){var o=i.pop();if(!a.has(o))if(a.set(o,!0),r(n,o)&&l(n,o)){var s=e.Debug.checkDefined(n.program).getSourceFileByPath(o);i.push.apply(i,e.BuilderState.getReferencedByPaths(n,s.resolvedPath))}}}e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var c=new e.Set;if(e.forEachEntry(n.currentAffectedFilesExportedModulesMap,(function(e,a){return e&&e.has(t.resolvedPath)&&u(n,a,c,r)})))return;e.forEachEntry(n.exportedModulesMap,(function(e,a){return!n.currentAffectedFilesExportedModulesMap.has(a)&&e.has(t.resolvedPath)&&u(n,a,c,r)}))}(n,t,(function(n,t){return function(n,t,r,a){if(c(n,t),!n.changedFilesSet.has(t)){var i=e.Debug.checkDefined(n.program),o=i.getSourceFileByPath(t);o&&(e.BuilderState.updateShapeSignature(n,i,o,e.Debug.checkDefined(n.currentAffectedFilesSignatures),r,a,n.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(n.compilerOptions)&&v(n,t,0))}return!1}(n,t,r,a)}));else if(!n.cleanedDiagnosticsOfLibFiles){n.cleanedDiagnosticsOfLibFiles=!0;var i=e.Debug.checkDefined(n.program),o=i.getCompilerOptions();e.forEach(i.getSourceFiles(),(function(t){return i.isSourceFileDefaultLibrary(t)&&!e.skipTypeChecking(t,o,i)&&c(n,t.resolvedPath)}))}}function c(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function l(n,t){return e.Debug.checkDefined(n.currentAffectedFilesSignatures).get(t)!==e.Debug.checkDefined(n.fileInfos.get(t)).signature}function u(n,t,r,a){return e.forEachEntry(n.referencedMap,(function(i,o){return i.has(t)&&function n(t,r,a,i){if(!e.tryAddToSet(a,r))return!1;if(i(t,r))return!0;if(e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),e.forEachEntry(t.currentAffectedFilesExportedModulesMap,(function(e,o){return e&&e.has(r)&&n(t,o,a,i)})))return!0;if(e.forEachEntry(t.exportedModulesMap,(function(e,o){return!t.currentAffectedFilesExportedModulesMap.has(o)&&e.has(r)&&n(t,o,a,i)})))return!0;return!!e.forEachEntry(t.referencedMap,(function(e,n){return e.has(r)&&!a.has(n)&&i(t,n)}))}(n,o,r,a)}))}function d(n,t,r,a,i){i?n.buildInfoEmitPending=!1:t===n.program?(n.changedFilesSet.clear(),n.programEmitComplete=!0):(n.seenAffectedFiles.add(t.resolvedPath),void 0!==r&&(n.seenEmittedFiles||(n.seenEmittedFiles=new e.Map)).set(t.resolvedPath,r),a?(n.affectedFilesPendingEmitIndex++,n.buildInfoEmitPending=!0):n.affectedFilesIndex++)}function p(e,n,t){return d(e,t),{result:n,affected:t}}function f(e,n,t,r,a,i){return d(e,t,r,a,i),{result:n,affected:t}}function m(n,t,r){return e.concatenate(function(n,t,r){var a=t.resolvedPath;if(n.semanticDiagnosticsPerFile){var i=n.semanticDiagnosticsPerFile.get(a);if(i)return e.filterSemanticDiagnotics(i,n.compilerOptions)}var o=e.Debug.checkDefined(n.program).getBindAndCheckDiagnostics(t,r);n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(a,o);return e.filterSemanticDiagnotics(o,n.compilerOptions)}(n,t,r),e.Debug.checkDefined(n.program).getProgramDiagnostics(t))}function _(n,t){var r={},a=e.getOptionsNameMap().optionsNameMap;for(var i in n)e.hasProperty(n,i)&&(r[i]=g(a.get(i.toLowerCase()),n[i],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function g(e,n,t){if(e)if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function y(n,t){return e.Debug.assert(!!n.length),n.map((function(n){var r=h(n,t);r.reportsUnnecessary=n.reportsUnnecessary,r.reportDeprecated=n.reportsDeprecated,r.source=n.source,r.skippedOn=n.skippedOn;var a=n.relatedInformation;return r.relatedInformation=a?a.length?a.map((function(e){return h(e,t)})):e.emptyArray:void 0,r}))}function h(e,n){var t=e.file;return o(o({},e),{file:t?n(t.resolvedPath):void 0})}function v(n,t,r){n.affectedFilesPendingEmit||(n.affectedFilesPendingEmit=[]),n.affectedFilesPendingEmitKind||(n.affectedFilesPendingEmitKind=new e.Map);var a=n.affectedFilesPendingEmitKind.get(t);n.affectedFilesPendingEmit.push(t),n.affectedFilesPendingEmitKind.set(t,a||r),void 0===n.affectedFilesPendingEmitIndex&&(n.affectedFilesPendingEmitIndex=0)}function b(n,t){if(n){var r=new e.Map;for(var a in n)e.hasProperty(n,a)&&r.set(t(a),new e.Set(n[a].map(t)));return r}}function E(n,t){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:r,getProgramOrUndefined:function(){return n.program},releaseProgram:function(){return n.program=void 0},getCompilerOptions:function(){return n.compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,n){return r().getSyntacticDiagnostics(e,n)},getDeclarationDiagnostics:function(e,n){return r().getDeclarationDiagnostics(e,n)},getSemanticDiagnostics:function(e,n){return r().getSemanticDiagnostics(e,n)},emit:function(e,n,t,a,i){return r().emit(e,n,t,a,i)},emitBuildInfo:function(e,n){return r().emitBuildInfo(e,n)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.checkDefined(n.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"}(n=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(n,t,r,a,i,o){var s,c,l;return void 0===n?(e.Debug.assert(void 0===t),s=r,l=a,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(n)?(l=a,c=e.createProgram({rootNames:n,options:t,host:r,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),s=r):(c=n,s=t,l=r,i=a),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:i||e.emptyArray}},e.createBuilderProgram=function(r,o){var s=o.newProgram,c=o.host,l=o.oldProgram,u=o.configFileParsingDiagnostics,g=l&&l.getState();if(g&&s===g.program&&u===s.getConfigFileParsingDiagnostics())return s=void 0,g=void 0,l;var h,b=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),T=c.createHash||e.generateDjb2Hash,S=t(s,b,g);s.getProgramBuildInfo=function(){return function(n,t){if(!e.outFile(n.compilerOptions)){var r=e.Debug.checkDefined(n.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),r)),i={};n.fileInfos.forEach((function(e,t){var r=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(t);i[A(t)]=void 0===r?e:{version:e.version,signature:r,affectsGlobalScope:e.affectsGlobalScope}}));var o={fileInfos:i,options:_(n.compilerOptions,(function(n){return A(e.getNormalizedAbsolutePath(n,r))}))};if(n.referencedMap){for(var s={},c=0,l=e.arrayFrom(n.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c1||47!==n.charCodeAt(0);if(i&&0!==n.search(/[a-zA-Z]:/)&&0===a.search(/[a-zA-z]\$\//)){if(-1===(r=n.indexOf(e.directorySeparator,r+1)))return!1;a=n.substring(t+a.length,r+1)}if(i&&0!==a.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(0===(o=n.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=n,e.canWatchDirectory=t,e.createResolutionCache=function(r,a,i){var o,s,c,l=e.createMultiMap(),u=[],d=e.createMultiMap(),p=!1,f=[],m=[],_=[],g=e.memoize((function(){return r.getCurrentDirectory()})),y=r.getCachedDirectoryStructureHost(),h=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),E=e.createModuleResolutionCacheWithMaps(v,b,g(),r.getCanonicalFileName),T=new e.Map,S=e.createCacheWithRedirects(),x=[".ts",".tsx",".js",".jsx",".json"],L=new e.Map,A=new e.Map,D=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,g())),C=D&&r.toPath(D),I=void 0!==C?C.split(e.directorySeparator).length:0,N=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:P,finishCachingPerDirectoryResolution:function(){c=void 0,P(),A.forEach((function(e,n){0===e.refCount&&(A.delete(n),e.watcher.close())})),p=!1},resolveModuleNames:function(n,t,r,a){return F({names:n,containingFile:t,redirectedReference:a,cache:h,perDirectoryCacheWithRedirects:v,loader:M,getResolutionWithResolvedFileName:R,shouldRetryResolution:function(n){return!n.resolvedModule||!e.resolutionExtensionIsTSOrJson(n.resolvedModule.extension)},reusedNames:r,logChanges:i})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){var t=h.get(r.toPath(n));return t&&t.get(e)},resolveTypeReferenceDirectives:function(n,t,r){return F({names:n,containingFile:t,redirectedReference:r,cache:T,perDirectoryCacheWithRedirects:S,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:k,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(n){if(!e.fileExtensionIs(n,".json"))return;var t=r.getCurrentProgram();if(!t)return;var a=t.getResolvedProjectReferenceByPath(n);if(!a)return;a.commandLine.fileNames.forEach((function(e){return Y(r.toPath(e))}))},removeResolutionsOfFile:Y,hasChangedAutomaticTypeDirectiveNames:function(){return p},invalidateResolutionOfFile:function(n){Y(n);var t=p;Q(d.get(n),e.returnTrue)&&p&&!t&&r.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:$,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(n){e.Debug.assert(c===n||void 0===c),c=n},createHasInvalidatedResolution:function(n){if($(),n)return s=void 0,e.returnTrue;var t=s;return s=void 0,function(e){return!!t&&t.has(e)||w(e)}},updateTypeRootsWatch:function(){var n=r.getCompilationSettings();if(n.types)return void ne();var t=e.getEffectiveTypeRoots(n,{directoryExists:re,getCurrentDirectory:g});t?e.mutateMap(N,e.arrayToMap(t,(function(e){return r.toPath(e)})),{createNewValue:te,onDeleteValue:e.closeFileWatcher}):ne()},closeTypeRootsWatch:ne,clear:function(){e.clearMap(A,e.closeFileWatcherOf),L.clear(),l.clear(),ne(),h.clear(),T.clear(),d.clear(),u.length=0,f.length=0,m.length=0,_.length=0,P(),p=!1}};function R(e){return e.resolvedModule}function k(e){return e.resolvedTypeReferenceDirective}function O(n,t){return!(void 0===n||t.length<=n.length)&&(e.startsWith(t,n)&&t[n.length]===e.directorySeparator)}function w(e){if(!c)return!1;var n=c.get(e);return!!n&&!!n.length}function P(){v.clear(),b.clear(),S.clear(),l.forEach(K),l.clear()}function M(n,t,a,i,o){var s,c=e.resolveModuleName(n,t,a,i,E,o);if(!r.getGlobalCache)return c;var l=r.getGlobalCache();if(!(void 0===l||e.isExternalModuleNameRelative(n)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(r.globalCacheResolutionModuleName)(n),r.projectName,a,i,l),d=u.resolvedModule,p=u.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,p),c}return c}function F(n){var t,a=n.names,i=n.containingFile,s=n.redirectedReference,c=n.cache,l=n.perDirectoryCacheWithRedirects,u=n.loader,d=n.getResolutionWithResolvedFileName,p=n.shouldRetryResolution,f=n.reusedNames,m=n.logChanges,_=r.toPath(i),g=c.get(_)||c.set(_,new e.Map).get(_),y=e.getDirectoryPath(_),h=l.getOrCreateMapOfCacheRedirects(s),v=h.get(y);v||(v=new e.Map,h.set(y,v));for(var b=[],E=r.getCompilationSettings(),T=m&&w(_),S=r.getCurrentProgram(),x=S&&S.getResolvedProjectReferenceToRedirect(i),L=x?!s||s.sourceFile.path!==x.sourceFile.path:!!s,A=new e.Map,D=0,C=a;DI+1?{dir:a.slice(0,I+1).join(e.directorySeparator),dirPath:r.slice(0,I+1).join(e.directorySeparator)}:{dir:D,dirPath:C,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,g())),e.getDirectoryPath(t))}function U(n,r){for(;e.pathContainsNodeModules(r);)n=e.getDirectoryPath(n),r=e.getDirectoryPath(r);if(e.isNodeModulesDirectory(r))return t(e.getDirectoryPath(r))?{dir:n,dirPath:r}:void 0;var a,i,o=!0;if(void 0!==C)for(;!O(r,C);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,a=r,i=n,r=s,n=e.getDirectoryPath(n)}return t(r)?{dir:i||n,dirPath:a||r,nonRecursive:o}:void 0}function V(n){return e.fileExtensionIsOneOf(n,x)}function j(n,t,a,i){if(t.refCount)t.refCount++,e.Debug.assertDefined(t.files);else{t.refCount=1,e.Debug.assert(0===e.length(t.files)),e.isExternalModuleNameRelative(n)?H(t):l.add(n,t);var o=i(t);o&&o.resolvedFileName&&d.add(r.toPath(o.resolvedFileName),t)}(t.files||(t.files=[])).push(a)}function H(n){e.Debug.assert(!!n.refCount);var t=n.failedLookupLocations;if(t.length){u.push(n);for(var a=!1,i=0,o=t;i1),L.set(p,_-1))),m===C?o=!0:z(m)}}o&&z(C)}}}function z(e){A.get(e).refCount--}function J(e,n,t){return r.watchDirectoryOfFailedLookupLocation(e,(function(e){var t=r.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,t),Z(t,n===t)}),t?0:1)}function X(e,n,t){var r=e.get(n);r&&(r.forEach((function(e){return q(e,n,t)})),e.delete(n))}function Y(e){X(h,e,R),X(T,e,k)}function Q(n,t){if(!n)return!1;for(var r=!1,a=0,i=n;a1&&t.sort(d),l.push.apply(l,t));var a=e.getDirectoryPath(n);if(a===n)return c=n,"break";c=n=a},f=e.getDirectoryPath(e.toPath(n,a,i));0!==o.size;){var m=u(f);if(f=c,"break"===m)break}if(o.size){var _=e.arrayFrom(o.values());_.length>1&&_.sort(d),l.push.apply(l,_)}return l}function m(n,t,r){for(var a in r)for(var i=0,o=r[a];i=u.length+d.length&&e.startsWith(t,u)&&e.endsWith(t,d)||!d&&t===e.removeTrailingDirectorySeparator(u)){var p=t.substr(u.length,t.length-d.length);return a.replace("*",p)}}else if(c===t||c===n)return a}}function _(n,t,r,a,i){var o=t.getCanonicalFileName,s=t.sourceDirectory;if(r.fileExists&&r.readFile){var c=function(n){var t,r,a=0,i=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,l=0;for(;c>=0;)switch(s=c,c=n.indexOf("/",s+1),l){case 0:n.indexOf(e.nodeModulesPathPart,s)===s&&(a=s,i=c,l=1);break;case 1:case 2:1===l&&"@"===n.charAt(s+1)?l=2:(o=c,l=3);break;case 3:l=n.indexOf(e.nodeModulesPathPart,s)===s?1:3}return t=s,l>1?{topLevelNodeModulesIndex:a,topLevelPackageNameIndex:i,packageRootIndex:o,fileNameIndex:t}:void 0}(n);if(c){var l=n;if(!i)for(var u=c.packageRootIndex,d=void 0;;){var p=E(u),f=p.moduleFileToTry,_=p.packageRootPath;if(_){l=_;break}if(d||(d=f),-1===(u=n.indexOf(e.directorySeparator,u+1))){l=T(d);break}}var g=r.getGlobalTypingsCacheLocation&&r.getGlobalTypingsCacheLocation(),h=o(l.substring(0,c.topLevelNodeModulesIndex));if(e.startsWith(s,h)||g&&e.startsWith(o(g),h)){var v=l.substring(c.topLevelPackageNameIndex+1),b=e.getPackageNameFromTypesPackageName(v);return e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.NodeJs&&b===v?void 0:b}}}function E(t){var i=n.substring(0,t),s=e.combinePaths(i,"package.json"),c=n;if(r.fileExists(s)){var l=JSON.parse(r.readFile(s)),u=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var d=n.slice(i.length+1),p=m(e.removeFileExtension(d),y(d,0,a),u.paths);void 0!==p&&(c=e.combinePaths(i,p))}var f=l.typings||l.types||l.main;if(e.isString(f)){var _=e.toPath(f,i,o);if(e.removeFileExtension(_)===e.removeFileExtension(o(c)))return{packageRootPath:i,moduleFileToTry:c}}}return{moduleFileToTry:c}}function T(n){var t=e.removeFileExtension(n);return"/index"!==o(t.substring(c.fileNameIndex))||function(n,t){if(!n.fileExists)return;for(var r=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),a=0,i=r;a0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:p.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function f(n,t){return void 0===n&&(n=e.sys),{onWatchStatusChange:t||o(n),watchFile:e.maybeBind(n,n.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(n,n.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(n,n.setTimeout)||e.noop,clearTimeout:e.maybeBind(n,n.clearTimeout)||e.noop}}function m(n,t){var r=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getNewLine:function(){return n.newLine},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),getDefaultLibLocation:r,getDefaultLibFileName:function(n){return e.combinePaths(r(),e.getDefaultLibFileName(n))},fileExists:function(e){return n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:function(e){return n.directoryExists(e)},getDirectories:function(e){return n.getDirectories(e)},readDirectory:function(e,t,r,a,i){return n.readDirectory(e,t,r,a,i)},realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable),trace:function(e){return n.write(e+n.newLine)},createDirectory:function(e){return n.createDirectory(e)},writeFile:function(e,t,r){return n.writeFile(e,t,r)},createHash:e.maybeBind(n,n.createHash),createProgram:t||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function _(n,t,r,a){void 0===n&&(n=e.sys);var i=function(e){return n.write(e+n.newLine)},o=m(n,t);return e.copyProperties(o,f(n,a)),o.afterProgramCreate=function(t){var a=t.getCompilerOptions(),s=e.getNewLineCharacter(a,(function(){return n.newLine}));d(t,r,i,(function(n){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(n),n),s,a,n)}))},o}function g(n,t,r){t(r),n.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=t,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(n,t,r,a,i){var o=a;o.onUnRecoverableConfigFileDiagnostic=function(e){return g(a,i,e)};var s=e.getParsedCommandLineOfConfigFile(n,t,o,void 0,r);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=l,e.listFiles=u,e.emitFilesAndReportErrors=d,e.emitFilesAndReportErrorsAndGetExitStatus=p,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=f,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(n,t){var r=n.trace?t.extendedDiagnostics?e.WatchLogLevel.Verbose:t.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,a=r!==e.WatchLogLevel.None?function(e){return n.trace(e)}:e.noop,i=e.getWatchFactory(r,a);return i.writeLog=a,i},e.createCompilerHostFromProgramHost=function(n,t,r){void 0===r&&(r=n);var a=n.useCaseSensitiveFileNames(),i=e.memoize((function(){return n.getNewLine()}));return{getSourceFile:function(r,a,i){var o;try{e.performance.mark("beforeIORead"),o=n.readFile(r,t().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,a):void 0},getDefaultLibLocation:e.maybeBind(n,n.getDefaultLibLocation),getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,a,i){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,r,a,(function(e,t,r){return n.writeFile(e,t,r)}),(function(e){return n.createDirectory(e)}),(function(e){return n.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){i&&i(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return a},getCanonicalFileName:e.createGetCanonicalFileName(a),getNewLine:function(){return e.getNewLineCharacter(t(),i)},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:e.maybeBind(n,n.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(n,n.createHash),readDirectory:e.maybeBind(n,n.readDirectory)}},e.setGetSourceFileAsHashVersioned=function(n,t){var r=n.getSourceFile,a=t.createHash||e.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],o=0;oe?n:e}function l(n){return e.fileExtensionIs(n,".d.ts")}function u(e){return!!e&&!!e.buildOrder}function d(e){return u(e)?e.buildOrder:e}function p(n,t){return function(r){var a=t?"["+e.formatColorAndReset(e.getLocaleTimeString(n),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(n)+" - ";a+=""+e.flattenDiagnosticMessageText(r.messageText,n.newLine)+(n.newLine+n.newLine),n.write(a)}}function f(n,t,r,a){var i=e.createProgramHost(n,t);return i.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:e.returnUndefined,i.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:e.noop,i.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:e.noop,i.reportDiagnostic=r||e.createDiagnosticReporter(n),i.reportSolutionBuilderStatus=a||p(n),i.now=e.maybeBind(n,n.now),i}function m(n,t,r,a,i){var o,s,c=t,l=t,u=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=a,s={},e.commonOptionsWithBuild.forEach((function(n){e.hasProperty(o,n.name)&&(s[n.name]=o[n.name])})),s),f=e.createCompilerHostFromProgramHost(c,(function(){return S.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(f,c),f.getParsedCommandLine=function(e){return h(S,e,g(S,e))},f.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),f.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var m=f.resolveModuleNames?void 0:e.createModuleResolutionCache(u,d);if(!f.resolveModuleNames){var _=function(n,t,r){return e.resolveModuleName(n,t,S.projectCompilerOptions,f,m,r).resolvedModule};f.resolveModuleNames=function(n,t,r,a){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,a,_)}}var y=e.createWatchFactory(l,a),v=y.watchFile,b=y.watchFilePath,E=y.watchDirectory,T=y.writeLog,S={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),writeFileName:c.trace?function(e){return c.trace(e)}:void 0,options:a,baseCompilerOptions:p,rootNames:r,baseWatchOptions:i,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:f,moduleResolutionCache:m,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:n,currentInvalidatedProject:void 0,watch:n,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:v,watchFilePath:b,watchDirectory:E,writeLog:T};return S}function _(n,t){return e.toPath(t,n.currentDirectory,n.getCanonicalFileName)}function g(e,n){var t=e.resolvedConfigFilePaths,r=t.get(n);if(void 0!==r)return r;var a=_(e,n);return t.set(n,a),a}function y(e){return!!e.options}function h(n,t,r){var a,i=n.configFileCache,o=i.get(r);if(o)return y(o)?o:void 0;var s,c=n.parseConfigFileHost,l=n.baseCompilerOptions,u=n.baseWatchOptions,d=n.extendedConfigCache,p=n.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(t))||(a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return a=e},s=e.getParsedCommandLineOfConfigFile(t,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),i.set(r,s||a),s}function v(n,t){return e.resolveConfigFileProjectName(e.resolvePath(n.currentDirectory,t))}function b(n,t){for(var r,a,i=new e.Map,o=new e.Map,s=[],c=0,l=t;c0);var o={sourceFile:r.options.configFile,commandLine:r};a.directoryToModuleNameMap.setOwnMap(a.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),a.moduleNameToDirectoryMap.setOwnMap(a.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}a.directoryToModuleNameMap.setOwnOptions(r.options),a.moduleNameToDirectoryMap.setOwnOptions(r.options)}(u,d,m),b=t.createProgram(m.fileNames,m.options,a,function(n,t,r){var a=n.options,i=n.builderPrograms,o=n.compilerHost;if(a.force)return;var s=i.get(t);return s||e.readBuilderProgram(r.options,o)}(u,p,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),u.watch&&u.builderPrograms.set(p,b),S++}function I(e,n,t){var r;e.length?(r=P(u,p,b,m,e,n,t),E=r.buildResult,S=r.step):S++}function R(t){e.Debug.assertIsDefined(b),I(i(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(t),b.getGlobalDiagnostics(t),b.getSyntacticDiagnostics(void 0,t)),n.SyntaxErrors,"Syntactic")}function k(t){I(e.Debug.checkDefined(b).getSemanticDiagnostics(void 0,t),n.TypeErrors,"Semantic")}function M(t,i,o){var s,d;e.Debug.assertIsDefined(b),e.Debug.assert(S===r.Emit),b.backupState();var f=[],g=e.emitFilesAndReportErrors(b,(function(e){return(d||(d=[])).push(e)}),void 0,void 0,(function(e,n,t){return f.push({name:e,text:n,writeByteOrderMark:t})}),i,!1,o).emitResult;if(d)return b.restoreState(),s=P(u,p,b,m,d,n.DeclarationEmitErrors,"Declaration file"),E=s.buildResult,S=s.step,{emitSkipped:!0,diagnostics:g.diagnostics};var y=u.host,h=u.compilerHost,v=n.DeclarationOutputUnchanged,T=a,x=!1,L=e.createDiagnosticCollection(),A=new e.Map;return f.forEach((function(r){var a,i=r.name,o=r.text,s=r.writeByteOrderMark;!x&&l(i)&&(y.fileExists(i)&&u.readFileWithCache(i)===o?a=y.getModifiedTime(i):(v&=~n.DeclarationOutputUnchanged,x=!0)),A.set(_(u,i),i),e.writeFile(t?{writeFile:t}:h,L,i,o,s),void 0!==a&&(T=c(a,T))})),B(L,A,T,x,f.length?f[0].name:e.getFirstProjectOutput(m,!y.useCaseSensitiveFileNames()),v),g}function F(t,a){e.Debug.assertIsDefined(b),e.Debug.assert(S===r.EmitBuildInfo);var o=b.emitBuildInfo(t,a);return o.diagnostics.length&&(ee(u,o.diagnostics),u.diagnostics.set(p,i(u.diagnostics.get(p),o.diagnostics)),E=n.EmitErrors&E),o.emittedFiles&&u.writeFileName&&o.emittedFiles.forEach((function(e){return O(u,m,e)})),w(u,b,m),S=r.QueueReferencingProjects,o}function B(t,a,i,s,c,l){var d,f=t.getDiagnostics();if(f.length)return d=P(u,p,b,m,f,n.EmitErrors,"Emit"),E=d.buildResult,S=d.step,f;u.writeFileName&&a.forEach((function(e){return O(u,m,e)}));var _=G(u,m,i,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,a);return u.diagnostics.delete(p),u.projectStatus.set(p,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:_,oldestOutputFileName:c}),w(u,b,m),S=r.QueueReferencingProjects,E=l,f}function V(i,o){if(e.Debug.assert(s===t.UpdateBundle),u.options.dry)return Z(u,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,d),E=n.Success,void(S=r.QueueReferencingProjects);u.options.verbose&&Z(u,e.Diagnostics.Updating_output_of_project_0,d);var c=u.compilerHost;u.projectCompilerOptions=m.options;var l=e.emitUsingBuildInfo(m,c,(function(e){var n=v(u,e.path);return h(u,n,g(u,n))}),o);if(e.isString(l))return Z(u,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,d,Q(u,l)),S=r.BuildInvalidatedProjectOfBundle,T=N(t.Build,u,d,p,f,m,y);e.Debug.assert(!!l.length);var b=e.createDiagnosticCollection(),x=new e.Map;return l.forEach((function(n){var t=n.name,r=n.text,a=n.writeByteOrderMark;x.set(_(u,t),t),e.writeFile(i?{writeFile:i}:c,b,t,r,a)})),{emitSkipped:!1,diagnostics:B(b,x,a,!1,l[0].name,n.DeclarationOutputUnchanged)}}function j(n,t,a,i){for(;S<=n&&So)}}}function R(n,t,r){var a=n.options;return!(t.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!a.force)||(0===r.fileNames.length||!!e.getConfigFileParsingDiagnostics(r).length||!e.isIncrementalCompilation(r.options))}function k(n,r,a){if(n.projectPendingBuild.size&&!u(r)){if(n.currentInvalidatedProject)return e.arrayIsEqualTo(n.currentInvalidatedProject.buildOrder,r)?n.currentInvalidatedProject:void 0;for(var i=n.options,o=n.projectPendingBuild,s=0;ss&&(i=f,s=m)}if(!t.fileNames.length&&!e.canJsonReportNoInputFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var _,y=e.getAllProjectOutputs(t,!u.useCaseSensitiveFileNames()),v="(none)",b=o,E="(none)",T=a,S=a,x=!1,L=0,A=y;LT&&(T=C,E=D),l(D))S=c(S,u.getModifiedTime(D)||e.missingFileModifiedTime)}var I,N=!1,R=!1;if(t.projectReferences){n.projectStatus.set(r,{type:e.UpToDateStatusType.ComputingUpstream});for(var k=0,O=t.projectReferences;k=0},n.findArgument=function(n){var t=e.sys.args.indexOf(n);return t>=0&&t214)return 2;if(46===n.charCodeAt(0))return 3;if(95===n.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(n);if(r){var a=e(r[1],!1);if(0!==a)return{name:r[1],isScopeName:!0,result:a};var i=e(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}if(encodeURIComponent(n)!==n)return 5;return 0}(e,!0)},n.renderPackageNameValidationFailure=function(e,n){return"object"==typeof e?a(n,e.result,e.name,e.isScopeName):a(n,e,n,!1)}}(e.JsTyping||(e.JsTyping={}))}(d||(d={})),function(e){var n,t;function r(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:n.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:t.Ignore,trimTrailingWhitespace:!0}}!function(e){var n=function(){function e(e){this.text=e}return e.prototype.getText=function(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new n(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"}(n=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(t=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=r,e.testFormatSettings=r("\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={}))}(d||(d={})),function(e){function n(n){switch(n.kind){case 246:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?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===n.name?3:2;case 288:case 249:return 3;case 253:return e.isAmbientModule(n)||1===e.getModuleInstanceState(n)?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 t(n){for(;156===n.parent.kind;)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function r(e){return e.expression}function a(e){return e.tag}function i(e){return e.tagName}function s(n,t,r,a,i){var o=a?l(n):c(n);return i&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function c(e){return p(e)?e.parent:e}function l(e){return p(e)||f(e)?e.parent:e}function u(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===n}function d(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isLabeledStatement))||void 0===t?void 0:t.label)===n}function p(n){var t;return(null===(t=e.tryCast(n.parent,e.isPropertyAccessExpression))||void 0===t?void 0:t.name)===n}function f(n){var t;return(null===(t=e.tryCast(n.parent,e.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===n}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=n,e.getMeaningFromLocation=function(r){return 294===(r=N(r)).kind?1:263===r.parent.kind||269===r.parent.kind||262===r.parent.kind||259===r.parent.kind||e.isImportEqualsDeclaration(r.parent)&&r===r.parent.name?7:t(r)?function(n){var t=156===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&257===t.parent.kind?7:4}(r):e.isDeclarationName(r)?n(r.parent):function(n){e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent);switch(n.kind){case 107:return!e.isExpressionNode(n);case 186:return!0}switch(n.parent.kind){case 172:return!0;case 192:return!n.parent.isTypeOf;case 220:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(r)?2:function(e){return function(e){var n=e,t=!0;if(156===n.parent.kind){for(;n.parent&&156===n.parent.kind;)n=n.parent;t=n.right===e}return 172===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(198===n.parent.kind){for(;n.parent&&198===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&220===n.parent.kind&&283===n.parent.parent.kind){var r=n.parent.parent.parent;return 249===r.kind&&116===n.parent.parent.token||250===r.kind&&93===n.parent.parent.token}return!1}(e)}(r)?4:e.isTypeParameterDeclaration(r.parent)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent.parent)),2):e.isLiteralTypeNode(r.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=t,e.isCallExpressionTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),s(n,e.isCallExpression,r,t,a)},e.isNewExpressionTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),s(n,e.isNewExpression,r,t,a)},e.isCallOrNewExpressionTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),s(n,e.isCallOrNewExpression,r,t,a)},e.isTaggedTemplateTag=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isTaggedTemplateExpression,a,t,r)},e.isDecoratorTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),s(n,e.isDecorator,r,t,a)},e.isJsxOpeningLikeElementTagName=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),s(n,e.isJsxOpeningLikeElement,i,t,r)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,n){for(;e;){if(242===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(n,t){return!!e.isPropertyAccessExpression(n.expression)&&n.expression.name.text===t},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||u(e)},e.isTagName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isJSDocTag))||void 0===t?void 0:t.tagName)===n},e.isRightSideOfQualifiedName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isQualifiedName))||void 0===t?void 0:t.right)===n},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=f,e.isNameOfModuleDeclaration=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isModuleDeclaration))||void 0===t?void 0:t.name)===n},e.isNameOfFunctionDeclaration=function(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isFunctionLike))||void 0===t?void 0:t.name)===n},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(n){switch(n.parent.kind){case 162:case 161:case 285:case 288:case 164:case 163:case 166:case 167:case 253:return e.getNameOfDeclaration(n.parent)===n;case 199:return n.parent.argumentExpression===n;case 157:return!0;case 190:return 188===n.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n},e.getContainerNode=function(n){for(e.isJSDocTypeAlias(n)&&(n=n.parent.parent);;){if(!(n=n.parent))return;switch(n.kind){case 294:case 164:case 163:case 248:case 205:case 166:case 167:case 249:case 250:case 252:case 253:return n}}},e.getNodeKind=function n(t){switch(t.kind){case 294:return e.isExternalModule(t)?"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(t);case 195:return c(e.getRootDeclaration(t));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 r=t.initializer;return e.isFunctionLike(r)?"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(t,92)?"property":"parameter";case 257:case 262:case 267:case 260:case 266:return"alias";case 213:var a=e.getAssignmentDeclarationKind(t),i=t.right;switch(a){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=n(i);return""===o?"const":o;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertType(a),""}case 78:return e.isImportClause(t.parent)?"alias":"";case 263:var s=n(t.expression);return""===s?"const":s;default:return""}function c(n){return e.isVarConst(n)?"const":e.isLet(n)?"let":"var"}},e.isThis=function(n){switch(n.kind){case 107:return!0;case 78:return e.identifierIsThisKeyword(n)&&159===n.parent.kind;default:return!1}};var m=/^\/\/\/\s*=t.end}function h(e,n,t,r){return Math.max(e,t)n)break;var l=c.getEnd();if(nn.end||e.pos===n.end)&&W(e,r)?t(e):void 0}))}(t)}function P(n,t,r,a){var i=function i(o){if(M(o)&&1!==o.kind)return o;for(var s=o.getChildren(t),c=0;c=n||!W(l,t)||B(l)){var u=G(s,c,t);return u&&F(u,t)}return i(l)}}e.Debug.assert(void 0!==r||294===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=G(s,s.length,t);return d&&F(d,t)}(r||t);return e.Debug.assert(!(i&&B(i))),i}function M(n){return e.isToken(n)&&!B(n)}function F(e,n){if(M(e))return e;var t=e.getChildren(n),r=G(t,t.length,n);return r&&F(r,n)}function G(n,t,r){for(var a=t-1;a>=0;a--){if(B(n[a]))e.Debug.assert(a>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(W(n[a],r))return n[a]}}function B(n){return e.isJsxText(n)&&n.containsOnlyTriviaWhiteSpaces}function U(e,n,t){for(var r=e.kind,a=0;;){var i=P(e.getFullStart(),t);if(!i)return;if((e=i).kind===n){if(0===a)return e;a--}else e.kind===r&&a++}}function V(e,n,t){return n?e.getNonNullableType():t?e.getNonOptionalType():e}function j(n,t,r){var a=r.getTypeAtLocation(n);return e.isOptionalChain(n.parent)&&(a=V(a,e.isOptionalChainRoot(n.parent),!0)),(e.isNewExpression(n.parent)?a.getConstructSignatures():a.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=t}))}function H(n,t){for(var r=n,a=0,i=0;r;){switch(r.kind){case 29:if((r=P(r.getFullStart(),t))&&28===r.kind&&(r=P(r.getFullStart(),t)),!r||!e.isIdentifier(r))return;if(!a)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};a--;break;case 49:a=3;break;case 48:a=2;break;case 31:a++;break;case 19:if(!(r=U(r,18,t)))return;break;case 21:if(!(r=U(r,20,t)))return;break;case 23:if(!(r=U(r,22,t)))return;break;case 27:i++;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(r))break;return}r=P(r.getFullStart(),t)}}function K(n,t,r){return e.formatting.getRangeOfEnclosingComment(n,t,void 0,r)}function W(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function q(e,n,t){var r=K(e,n,void 0);return!!r&&t===m.test(e.text.substring(r.pos,r.end))}function z(n,t,r){return e.createTextSpanFromBounds(n.getStart(t),(r||n).getEnd())}function J(n){if(!n.isUnterminated)return e.createTextSpanFromBounds(n.getStart()+1,n.getEnd()-1)}function X(e,n){return{span:e,newText:n}}function Y(e){return 148===e.kind}function Q(n,t){return{fileExists:function(e){return n.fileExists(e)},getCurrentDirectory:function(){return t.getCurrentDirectory()},readFile:e.maybeBind(t,t.readFile),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache)||n.getSymlinkCache,getGlobalTypingsCacheLocation:e.maybeBind(t,t.getGlobalTypingsCacheLocation),getSourceFiles:function(){return n.getSourceFiles()},redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)}}}function Z(e,n){return o(o({},Q(e,n)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function $(n,t,r,a,i){return e.factory.createImportDeclaration(void 0,void 0,n||t?e.factory.createImportClause(!!i,n,t&&t.length?e.factory.createNamedImports(t):void 0):void 0,"string"==typeof r?ee(r,a):r)}function ee(n,t){return e.factory.createStringLiteral(n,0===t)}function ne(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function te(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,(function(n){var t=e.getNameOfDeclaration(n);return t&&78===t.kind?t.escapedText:void 0}))}function re(n,t,r,a){var i=new e.Map;return function n(o){if(!(96&o.flags&&e.addToSeen(i,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,(function(i){return e.firstDefined(e.getAllSuperTypeNodes(i),(function(i){var o=r.getTypeAtLocation(i),s=o&&o.symbol&&r.getPropertyOfType(o,t);return o&&s&&(e.firstDefined(r.getRootSymbols(s),a)||n(o.symbol))}))}))}(n)}function ae(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function ie(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function oe(e){return e.declarations&&e.declarations.length>0&&159===e.declarations[0].kind}e.getLineStartPositionForPosition=function(n,t){return e.getLineStarts(t)[t.getLineAndCharacterOfPosition(n).line]},e.rangeContainsRange=_,e.rangeContainsRangeExclusive=function(e,n){return g(e,n.pos)&&g(e,n.end)},e.rangeContainsPosition=function(e,n){return e.pos<=n&&n<=e.end},e.rangeContainsPositionExclusive=g,e.startEndContainsRange=y,e.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},e.rangeOverlapsWithStartEnd=function(e,n,t){return h(e.pos,e.end,n,t)},e.nodeOverlapsWithStartEnd=function(e,n,t,r){return h(e.getStart(n),e.end,t,r)},e.startEndOverlapsWithStartEnd=h,e.positionBelongsToNode=function(n,t,r){return e.Debug.assert(n.pos<=t),tr.getStart(n)&&tr.getStart(n)},e.isInJSXText=function(n,t){var r=k(n,t);return!!e.isJsxText(r)||(!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(29!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent)))},e.isInsideJsxElement=function(e,n){return function(t){for(;t;)if(t.kind>=271&&t.kind<=280||11===t.kind||29===t.kind||31===t.kind||78===t.kind||19===t.kind||18===t.kind||43===t.kind)t=t.parent;else{if(270!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}(k(e,n))},e.findPrecedingMatchingToken=U,e.removeOptionality=V,e.isPossiblyTypeArgumentPosition=function n(t,r,a){var i=H(t,r);return void 0!==i&&(e.isPartOfTypeNode(i.called)||0!==j(i.called,i.nTypeArguments,a).length||n(i.called,r,a))},e.getPossibleGenericSignatures=j,e.getPossibleTypeArgumentsInfo=H,e.isInComment=K,e.hasDocComment=function(n,t){var r=k(n,t);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(n){var t=e.isDeclaration(n)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n):0,r=[];return 8&t&&r.push("private"),16&t&&r.push("protected"),4&t&&r.push("public"),32&t&&r.push("static"),128&t&&r.push("abstract"),1&t&&r.push("export"),8192&t&&r.push("deprecated"),8388608&n.flags&&r.push("declare"),263===n.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 172===n.kind||200===n.kind?n.typeArguments:e.isFunctionLike(n)||249===n.kind||250===n.kind?n.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(n){return!(10!==n&&13!==n&&!e.isTemplateLiteralKind(n))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=Q,e.getModuleSpecifierResolverHost=Z,e.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?$(e,n,t,r):void 0},e.makeImport=$,e.makeStringLiteral=ee,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=ne,e.getQuotePreference=function(n,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;var r=n.imports&&e.find(n.imports,e.isStringLiteral);return r?ne(r,n):1},e.getQuoteFromPreference=function(n){switch(n){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(n)}},e.symbolNameNoDefault=function(n){var t=te(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)},e.symbolEscapedNameNoDefault=te,e.isObjectBindingElementWithoutPropertyName=function(n){return e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)&&e.isIdentifier(n.name)&&!n.propertyName},e.getPropertySymbolFromBindingElement=function(e,n){var t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)},e.getPropertySymbolsFromBaseTypes=re,e.isMemberSymbolInBaseType=function(e,n){return re(e.parent,e.name,n,(function(e){return!0}))||!1},e.getParentNodeInSpan=function(n,t,r){if(n)for(;n.parent;){if(e.isSourceFile(n.parent)||!ae(r,n.parent,t))return n;n=n.parent}},e.findModifier=function(n,t){return n.modifiers&&e.find(n.modifiers,(function(e){return e.kind===t}))},e.insertImports=function(n,t,r,a){var i=229===(e.isArray(r)?r[0]:r).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(t.statements,i),s=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;ci&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(le(" ",e.SymbolDisplayPartKind.space)),n.push(le("...",e.SymbolDisplayPartKind.punctuation))),n},writeKeyword:function(n){return c(n,e.SymbolDisplayPartKind.keyword)},writeOperator:function(n){return c(n,e.SymbolDisplayPartKind.operator)},writePunctuation:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(n){return c(n,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(n){return c(n,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(n){return c(n,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){if(a>i)return;s(),a+=e.length,n.push(ce(e,t))},writeLine:function(){if(a>i)return;a+=1,n.push(pe()),t=!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 r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:l,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(a>i)&&t){var o=e.getIndentString(r);o&&(a+=o.length,n.push(le(o,e.SymbolDisplayPartKind.space))),t=!1}}function c(e,t){a>i||(s(),a+=e.length,n.push(le(e,t)))}function l(){n=[],t=!0,r=0,a=0}}();function ce(n,t){return le(n,function(n){var t=n.flags;if(3&t)return oe(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&t)return e.SymbolDisplayPartKind.propertyName;if(32768&t)return e.SymbolDisplayPartKind.propertyName;if(65536&t)return e.SymbolDisplayPartKind.propertyName;if(8&t)return e.SymbolDisplayPartKind.enumMemberName;if(16&t)return e.SymbolDisplayPartKind.functionName;if(32&t)return e.SymbolDisplayPartKind.className;if(64&t)return e.SymbolDisplayPartKind.interfaceName;if(384&t)return e.SymbolDisplayPartKind.enumName;if(1536&t)return e.SymbolDisplayPartKind.moduleName;if(8192&t)return e.SymbolDisplayPartKind.methodName;if(262144&t)return e.SymbolDisplayPartKind.typeParameterName;if(524288&t)return e.SymbolDisplayPartKind.aliasName;if(2097152&t)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(t))}function le(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function ue(n){return le(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function de(n){return le(n,e.SymbolDisplayPartKind.text)}e.symbolPart=ce,e.displayPart=le,e.spacePart=function(){return le(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=ue,e.punctuationPart=function(n){return le(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return le(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?de(n):ue(t)},e.textPart=de;function pe(){return le("\n",e.SymbolDisplayPartKind.lineBreak)}function fe(e){try{return e(se),se.displayParts()}finally{se.clear()}}function me(e){return 0!=(33554432&e.flags)}function _e(e){return 0!=(2097152&e.flags)}function ge(e,n){void 0===n&&(n=!0);var t=e&&he(e);return t&&!n&&ve(t),t}function ye(n,t,r,a,i){var o;if(void 0===t&&(t=!0),r&&a&&e.isBindingElement(n)&&e.isIdentifier(n.name)&&e.isObjectBindingPattern(n.parent))(c=(s=a.getSymbolAtLocation(n.name))&&r.get(String(e.getSymbolId(s))))&&c.text!==(n.name||n.propertyName).getText()&&(o=e.setOriginalNode(e.factory.createBindingElement(n.dotDotDotToken,n.propertyName||n.name,c,n.initializer),n));else if(r&&a&&e.isIdentifier(n)){var s,c;(c=(s=a.getSymbolAtLocation(n))&&r.get(String(e.getSymbolId(s))))&&(o=e.setOriginalNode(e.factory.createIdentifier(c.text),n))}return o||(o=he(n,r,a,i)),o&&!t&&ve(o),i&&o&&i(n,o),o}function he(n,t,r,a){var i=t||r||a?e.visitEachChild(n,(function(e){return ye(e,!0,t,r,a)}),e.nullTransformationContext):e.visitEachChild(n,ge,e.nullTransformationContext);if(i===n){var o=e.isStringLiteral(n)?e.setOriginalNode(e.factory.createStringLiteralFromNode(n),n):e.isNumericLiteral(n)?e.setOriginalNode(e.factory.createNumericLiteral(n.text,n.numericLiteralFlags),n):e.factory.cloneNode(n);return e.setTextRange(o,n)}return i.parent=void 0,i}function ve(e){be(e),Ee(e)}function be(e){Te(e,512,Se)}function Ee(n){Te(n,1024,e.getLastChild)}function Te(n,t,r){e.addEmitFlags(n,t);var a=r(n);a&&Te(a,t,r)}function Se(e){return e.forEachChild((function(e){return e}))}function xe(n,t,r,a,i){e.forEachLeadingCommentRange(r.text,n.pos,De(t,r,a,i,e.addSyntheticLeadingComment))}function Le(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.end,De(t,r,a,i,e.addSyntheticTrailingComment))}function Ae(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.pos,De(t,r,a,i,e.addSyntheticLeadingComment))}function De(e,n,t,r,a){return function(i,o,s,c){3===s?(i+=2,o-=2):i+=2,a(e,t||s,n.text.slice(i,o),void 0!==r?r:c)}}function Ce(n,t){if(e.startsWith(n,t))return 0;var r=n.indexOf(" "+t);return-1===r&&(r=n.indexOf("."+t)),-1===r&&(r=n.indexOf('"'+t)),-1===r?-1:r+1}function Ie(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ne(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function Re(e){return 168===e||169===e||170===e||161===e||163===e}function ke(e){return 248===e||165===e||164===e||166===e||167===e}function Oe(e){return 253===e}function we(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 Pe(e,n){return Fe(e,e.fileExists,n)}function Me(e){try{return e()}catch(e){return}}function Fe(e,n){for(var t=[],r=2;r-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));)t-=1;return t+1},e.getSynthesizedDeepClone=ge,e.getSynthesizedDeepCloneWithRenames=ye,e.getSynthesizedDeepClones=function(n,t){return void 0===t&&(t=!0),n&&e.factory.createNodeArray(n.map((function(e){return ge(e,t)})),n.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=ve,e.suppressLeadingTrivia=be,e.suppressTrailingTrivia=Ee,e.copyComments=function(e,n){var t=e.getSourceFile();!function(e,n){for(var t=e.getFullStart(),r=e.getStart(),a=t;a=0),o},e.copyLeadingComments=xe,e.copyTrailingComments=Le,e.copyTrailingAsLeadingComments=Ae,e.needsParentheses=function(n){return e.isBinaryExpression(n)&&27===n.operatorToken.kind||e.isObjectLiteralExpression(n)},e.getContextualTypeFromParent=function(e,n){var t=e.parent;switch(t.kind){case 201:return n.getContextualType(t);case 213:var r=t,a=r.left,i=r.operatorToken,o=r.right;return Ie(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 281:return t.expression===e?Ne(t,n):void 0;default:return n.getContextualType(e)}},e.quote=function(n,t){var r=t.quotePreference||"auto",a=JSON.stringify(n);switch(r){case"auto":case"double":return a;case"single":return"'"+e.stripQuotes(a).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(r)}},e.isEqualityOperatorKind=Ie,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=Ne,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,n,t,r){var a=t.getTypeChecker(),i=!0,o=function(){i=!1},s=a.typeToTypeNode(e,n,void 0,{trackSymbol:function(e,n,t){i=i&&0===a.isSymbolAccessible(e,n,t,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(t,r)});return i?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Re,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=ke,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Oe,e.syntaxRequiresTrailingSemicolonOrASI=we,e.syntaxMayBeASICandidate=e.or(Re,ke,Oe,we),e.positionIsASICandidate=function(n,t,r){var a=e.findAncestor(t,(function(t){return t.end!==n?"quit":e.syntaxMayBeASICandidate(t.kind)}));return!!a&&function(n,t){var r=n.getLastToken(t);if(r&&26===r.kind)return!1;if(Re(n.kind)){if(r&&27===r.kind)return!1}else if(Oe(n.kind)){if((a=e.last(n.getChildren(t)))&&e.isModuleBlock(a))return!1}else if(ke(n.kind)){var a;if((a=e.last(n.getChildren(t)))&&e.isFunctionBlock(a))return!1}else if(!we(n.kind))return!1;if(232===n.kind)return!0;var i=w(n,e.findAncestor(n,(function(e){return!e.parent})),t);return!i||19===i.kind||t.getLineAndCharacterOfPosition(n.getEnd()).line!==t.getLineAndCharacterOfPosition(i.getStart(t)).line}(a,r)},e.probablyUsesSemicolons=function(n){var t=0,r=0;return e.forEachChild(n,(function a(i){if(we(i.kind)){var o=i.getLastToken(n);o&&26===o.kind?t++:r++}return t+r>=5||e.forEachChild(i,a)})),0===t&&r<=1||t/r>.2},e.tryGetDirectories=function(e,n){return Fe(e,e.getDirectories,n)||[]},e.tryReadDirectory=function(n,t,r,a,i){return Fe(n,n.readDirectory,t,r,a,i)||e.emptyArray},e.tryFileExists=Pe,e.tryDirectoryExists=function(n,t){return Me((function(){return e.directoryProbablyExists(t,n)}))||!1},e.tryAndIgnoreErrors=Me,e.tryIOAndConsumeErrors=Fe,e.findPackageJsons=function(n,t,r){var a=[];return e.forEachAncestorDirectory(n,(function(n){if(n===r)return!0;var i=e.combinePaths(n,"package.json");Pe(t,i)&&a.push(i)})),a},e.findPackageJson=function(n,t){var r;return e.forEachAncestorDirectory(n,(function(n){return"node_modules"===n||(!!(r=e.findConfigFile(n,(function(e){return Pe(t,e)}),"package.json"))||void 0)})),r},e.getPackageJsonsVisibleToFile=function(n,t){if(!t.fileExists)return[];var r=[];return e.forEachAncestorDirectory(e.getDirectoryPath(n),(function(n){var a=e.combinePaths(n,"package.json");if(t.fileExists(a)){var i=Ge(a,t);i&&r.push(i)}})),r},e.createPackageJsonInfo=Ge,e.consumesNodeCoreModules=function(n){return e.some(n.imports,(function(n){var t=n.text;return e.JsTyping.nodeCoreModules.has(t)}))},e.isInsideNodeModules=function(n){return e.contains(e.getPathComponents(n),"node_modules")},e.isDiagnosticWithLocation=Be,e.findDiagnosticForNode=function(n,t){var r=z(n),a=e.binarySearchKey(t,r,e.identity,e.compareTextSpans);if(a>=0){var i=t[a];return e.Debug.assertEqual(i.file,n.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(i,Be)}},e.getDiagnosticsWithinSpan=function(n,t){var r,a=e.binarySearchKey(t,n.start,(function(e){return e.start}),e.compareValues);for(a<0&&(a=~a);(null===(r=t[a-1])||void 0===r?void 0:r.start)===n.start;)a--;for(var i=[],o=e.textSpanEnd(n);;){var s=e.tryCast(t[a],Be);if(!s||s.start>o)break;e.textSpanContainsTextSpan(n,s)&&i.push(s),a++}return i},e.getRefactorContextSpan=function(n){var t=n.startPosition,r=n.endPosition;return e.createTextSpanFromBounds(t,void 0===r?t:r)},e.mapOneOrMany=function(n,t,r){return void 0===r&&(r=e.identity),n?e.isArray(n)?r(e.map(n,t)):t(n,0):void 0},e.firstOrOnly=function(n){return e.isArray(n)?e.first(n):n},e.getNameForExportedSymbol=function(n,t){return"export="===n.escapedName||"default"===n.escapedName?e.firstDefined(n.declarations,(function(n){return e.isExportAssignment(n)&&e.isIdentifier(n.expression)?n.expression.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(n){var t;return e.Debug.checkDefined(n.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(n.flags)+". Declarations: "+(null===(t=n.declarations)||void 0===t?void 0:t.map((function(n){var t=e.Debug.formatSyntaxKind(n.kind),r=e.isInJSFile(n),a=n.expression;return(r?"[JS]":"")+t+(a?" (expression: "+e.Debug.formatSyntaxKind(a.kind)+")":"")})).join(", "))+".")}(n),t):n.name},e.stringContainsAt=function(e,n,t){var r=n.length;if(r+t>e.length)return!1;for(var a=0;a=a.length){var b=t(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function E(){switch(l){case 43:case 67:n[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:78===u&&h++;break;case 31:h>0&&h--;break;case 128:case 146:case 143:case 131:case 147:h>0&&!c&&(l=78);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var t=e.lastOrUndefined(d);15===t?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(t,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 134:case 145:case 132:case 123:return!0;default:return!1}}(u,l))&&(l=78)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(n,t,r){return function(n,t){for(var r=[],i=n.spans,o=0,s=0;s=0){var d=c-o;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:l,classification:a(u)}),o=c+l}var p=t.length-o;p>0&&r.push({length:p,classification:e.TokenClass.Whitespace});return{entries:r,finalLexState:n.endOfLineState}}(s(n,t,r),n)},getEncodedLexicalClassifications:s}};var n=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],(function(e){return e}),(function(){return!0}));function t(n,t,r){switch(t){case 10:if(!n.isUnterminated())return;for(var a=n.getTokenText(),i=a.length-1,o=0;92===a.charCodeAt(i-o);)o++;if(0==(1&o))return;return 34===a.charCodeAt(0)?3:2;case 3:return n.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(t)){if(!n.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}function r(e,n,t,r,a){if(8!==r){0===e&&t>0&&(e+=t);var i=n-e;i>0&&a.push(e-t,i,r)}}function a(n){switch(n){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 i(n){if(e.isKeyword(n))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}}(n)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(n))return 5;if(n>=18&&n<=77)return 10;switch(n){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(n)?6:2}}function o(e,n){switch(n){case 253:case 249:case 250:case 248:case 218:case 205:case 206:e.throwIfCancellationRequested()}}function s(n,t,r,a,i){var s=[];return r.forEachChild((function c(l){if(l&&e.textSpanIntersectsWith(i,l.pos,l.getFullWidth())){if(o(t,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&a.has(l.escapedText)){var u=n.getSymbolAtLocation(l),d=u&&function n(t,r,a){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(n){return e.some(n.declarations,(function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)}))}(t)?14:void 0:2097152&i?n(a.getAliasedSymbol(t),r,a):2&r?64&i?13:262144&i?15:void 0:void 0}(u,e.getMeaningFromLocation(l),n);d&&function(n,t,r){var a=t-n;e.Debug.assert(a>0,"Classification had non-positive length of "+a),s.push(n),s.push(a),s.push(r)}(l.getStart(r),l.getEnd(),d)}l.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 l(n){e.Debug.assert(n.spans.length%3==0);for(var t=n.spans,r=[],a=0;a])*)(\/>)?)?/im.exec(i);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=n;p(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;var c=o[4],l=s;for(;;){var d=a.exec(c);if(!d)break;var f=s+d.index;f>l&&(p(l,f-l),l=f),u(l,d[1].length,22),l+=d[1].length,d[2].length&&(p(l,d[2].length),l+=d[2].length),u(l,d[3].length,5),l+=d[3].length,d[4].length&&(p(l,d[4].length),l+=d[4].length),u(l,d[5].length,24),l+=d[5].length}(s+=o[4].length)>l&&p(l,s-l);o[5]&&(u(s,o[5].length,10),s+=o[5].length);var m=n+r;s=0),i>0){var o=r||y(n.kind,n);o&&u(a,i,o)}return!0}function y(n,t){if(e.isKeyword(n))return 3;if((29===n||31===n)&&t&&e.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(e.isPunctuation(n)){if(t){var r=t.parent;if(62===n&&(246===r.kind||162===r.kind||159===r.kind||277===r.kind))return 5;if(213===r.kind||211===r.kind||212===r.kind||214===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return t&&277===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(78===n){if(t)switch(t.parent.kind){case 249:return t.parent.name===t?11:void 0;case 158:return t.parent.name===t?15:void 0;case 250:return t.parent.name===t?13:void 0;case 252:return t.parent.name===t?12:void 0;case 253:return t.parent.name===t?14:void 0;case 159:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function h(r){if(r&&e.decodedTextSpanIntersectsWith(a,i,r.pos,r.getFullWidth())){o(n,r.kind);for(var s=0,c=r.getChildren(t);si.parameters.length)){var o=t.getParameterType(i,n.argumentIndex);return r=r||!!(4&o.flags),l(o,a)}})),isNewIdentifier:r}}(y,a):h()}case 258:case 264:case 269:return{kind:0,paths:f(n,t,i,o,a)};default:return h()}function h(){return{kind:2,types:l(e.getContextualTypeFromParent(t,a)),isNewIdentifier:!1}}}function c(n){return n&&{kind:1,symbols:e.filter(n.getApparentProperties(),(function(n){return!(n.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(n.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(n)}}function l(n,t){return void 0===t&&(t=new e.Map),n?(n=e.skipConstraint(n)).isUnion()?e.flatMap(n.types,(function(e){return l(e,t)})):!n.isStringLiteral()||1024&n.flags||!e.addToSeen(t,n.value)?e.emptyArray:[n]:e.emptyArray}function u(e,n,t){return{name:e,kind:n,extension:t}}function d(e){return u(e,"directory",void 0)}function p(n,t,r){var a=function(n,t){var r=Math.max(n.lastIndexOf(e.directorySeparator),n.lastIndexOf("\\")),a=-1!==r?r+1:0,i=n.length-a;return 0===i||e.isIdentifierText(n.substr(a,i),99)?void 0:e.createTextSpan(t+a,i)}(n,t);return r.map((function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:a}}))}function f(n,t,r,a,o){return p(t.text,t.getStart(n)+1,function(n,t,r,a,o){var s=e.normalizeSlashes(t.text),c=n.path,l=e.getDirectoryPath(c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(s)||!r.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?function(n,t,r,a,o){var s=m(r);return r.rootDirs?function(n,t,r,a,o,s,c){var l=o.project||s.getCurrentDirectory(),u=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),d=function(n,t,r,a){n=n.map((function(n){return e.normalizePath(e.isRootedDiskPath(n)?n:e.combinePaths(t,n))}));var o=e.firstDefined(n,(function(n){return e.containsPath(n,r,t,a)?r.substr(n.length):void 0}));return e.deduplicate(i(n.map((function(n){return e.combinePaths(n,o)})),[r]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,l,r,u);return e.flatMap(d,(function(e){return g(t,e,a,s,c)}))}(r.rootDirs,n,t,s,r,a,o):g(n,t,s,a,o)}(s,l,r,a,c):function(n,t,r,a,i){var o=r.baseUrl,s=r.paths,c=[],l=m(r);if(o){var d=r.project||a.getCurrentDirectory(),p=e.normalizePath(e.combinePaths(d,o));g(n,p,l,a,void 0,c),s&&y(c,n,p,l.extensions,s,a)}for(var f=h(n),_=0,v=function(n,t,r){var a=r.getAmbientModules().map((function(n){return e.stripQuotes(n.name)})).filter((function(t){return e.startsWith(t,n)}));if(void 0!==t){var i=e.ensureTrailingDirectorySeparator(t);return a.map((function(n){return e.removePrefix(n,i)}))}return a}(n,f,i);_=e.pos&&t<=e.end}));if(!s)return;var c=n.text.slice(s.pos,t),l=E.exec(c);if(!l)return;var u=l[1],d=l[2],f=l[3],_=e.getDirectoryPath(n.path),y="path"===d?g(f,_,m(r,!0),a,n.path):"types"===d?b(a,r,_,h(f),m(r)):e.Debug.fail();return p(f,s.pos+u.length,y)}(t,a,c,l))&&r(f);if(e.isInString(t,a,i)){if(!i||!e.isStringLiteralLike(i))return;var f;return function(t,a,i,o,s,c){if(void 0===t)return;switch(t.kind){case 0:return r(t.paths);case 1:var l=[];return n.getCompletionEntriesFromSymbols(t.symbols,l,a,i,i,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,entries:l};case 2:l=t.types.map((function(n){return{name:n.value,kindModifiers:"",kind:"string",sortText:"0",replacementSpan:e.getReplacementSpanForContextToken(a)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,entries:l};default:return e.Debug.assertNever(t)}}(f=s(t,i,a,o,c,l),i,t,o,u,d)}},t.getStringLiteralCompletionDetails=function(t,r,i,o,c,l,u,d){if(o&&e.isStringLiteralLike(o)){var p=s(r,o,i,c,l,u);return p&&function(t,r,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===t})))&&n.createCompletionDetails(t,a(l.extension),l.kind,[e.textPart(t)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===t})))&&n.createCompletionDetailsForSymbol(l,s,o,r,c);case 2:return e.find(i.types,(function(e){return e.value===t}))?n.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}(t,o,p,r,c,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={}));var E=/^(\/\/\/\s*=n.pos;case 24:return 194===r;case 58:return 195===r;case 22:return 194===r;case 20:return 284===r||se(r);case 18:return 252===r;case 29:return 249===r||218===r||250===r||251===r||e.isFunctionLikeKind(r);case 123:return 162===r&&!e.isClassLike(t.parent);case 25:return 159===r||!!t.parent&&194===t.parent.kind;case 122:case 120:case 121:return 159===r&&!e.isConstructorDeclaration(t.parent);case 126:return 262===r||267===r||260===r;case 134:case 145:return!M(n);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(n.parent)&&!e.isMethodDeclaration(n.parent)}if(R(O(n))&&M(n))return!1;if(oe(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(O(n))||de(n)))return!1;switch(O(n)){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(n.parent)}return e.isDeclarationName(n)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==h||o>h.end))}(n)||function(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(n)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(272===e.parent.kind)return 272!==k.parent.kind;if(273===e.parent.kind||271===e.parent.kind)return!!e.parent.parent&&270===e.parent.parent.kind}return!1}(n);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-t)),i}(v))return void r("Returning an empty list because completion was requested in an invalid position.");var G=v.parent;if(24===v.kind||28===v.kind)switch(S=24===v.kind,L=28===v.kind,G.kind){case 198:if(T=(E=G).expression,(e.isCallExpression(T)||e.isFunctionLike(T))&&T.end===v.pos&&T.getChildCount(a)&&21!==e.last(T.getChildren(a)).kind)return;break;case 156:T=G.left;break;case 253:T=G.name;break;case 192:case 223:T=G;break;default:return}else if(1===a.languageVariant){if(G&&198===G.kind&&(v=G,G=G.parent),p.parent===k)switch(p.kind){case 31:270!==p.parent.kind&&272!==p.parent.kind||(k=p);break;case 43:271===p.parent.kind&&(k=p)}switch(G.kind){case 273:43===v.kind&&(D=!0,k=v);break;case 213:if(!F(G))break;case 271:case 270:case 272:I=!0,29===v.kind&&(A=!0,k=v);break;case 277:switch(h.kind){case 62:C=!0;break;case 78:I=!0,G!==h.parent&&!G.initializer&&e.findChildOfKind(G,62,a)&&(C=h)}}}}var B=e.timestamp(),U=5,V=!1,j=0,H=[],K=[],W=[],q=l.getImportSuggestionsCache&&l.getImportSuggestionsCache(),z=re();if(S||L)!function(){U=2;var n=e.isLiteralImportTypeNode(T),t=m||n&&!T.isTypeOf||e.isPartOfTypeNode(T.parent)||e.isPossiblyTypeArgumentPosition(v,a,u),r=e.isInRightSideOfInternalImportEqualsDeclaration(T);if(e.isEntityName(T)||n){var i=e.isModuleDeclaration(T.parent);i&&(V=!0);var o=u.getSymbolAtLocation(T);if(o&&1920&(o=e.skipAlias(o,u)).flags){var c=u.getExportsOfModule(o);e.Debug.assertEachIsDefined(c,"getExportsOfModule() should all be defined");for(var l=function(e){return u.isValidPropertyAccess(n?T:T.parent,e.name)},d=function(e){return ae(e)},p=i?function(e){return!!(1920&e.flags)&&!e.declarations.every((function(e){return e.parent===T.parent}))}:r?function(e){return d(e)||l(e)}:t?d:l,f=0,_=c;f<_.length;f++){var g=_[f];p(g)&&H.push(g)}if(!t&&o.declarations&&o.declarations.some((function(e){return 294!==e.kind&&253!==e.kind&&252!==e.kind}))){var y=u.getTypeOfSymbolAtLocation(o,T).getNonOptionalType(),h=!1;if(y.isNullableType())((E=S&&!L&&!1!==s.includeAutomaticOptionalChainCompletions)||L)&&(y=y.getNonNullableType(),E&&(h=!0));ee(y,!!(32768&T.flags),h)}return}}if(e.isMetaProperty(T)&&(102===T.keywordToken||99===T.keywordToken)&&v===T.getChildAt(1)){var b=102===T.keywordToken?"target":"meta";return void H.push(u.createSymbol(4,e.escapeLeadingUnderscores(b)))}if(!t){var E;y=u.getTypeAtLocation(T).getNonOptionalType(),h=!1;if(y.isNullableType())((E=S&&!L&&!1!==s.includeAutomaticOptionalChainCompletions)||L)&&(y=y.getNonNullableType(),E&&(h=!0));ee(y,!!(32768&T.flags),h)}}();else if(A){var J=u.getJsxIntrinsicTagNamesAt(k);e.Debug.assertEachIsDefined(J,"getJsxIntrinsicTagNames() should all be defined"),te(),H=J.concat(H),U=3,j=0}else if(D){var X=v.parent.parent.openingElement.tagName,Y=u.getSymbolAtLocation(X);Y&&(H=[Y]),U=3,j=0}else if(!te())return;r("getCompletionData: Semantic work: "+(e.timestamp()-B));var Q=h&&function(n,t,r,a){var i=n.parent;switch(n.kind){case 78:return e.getContextualTypeFromParent(n,a);case 62:switch(i.kind){case 246:return a.getContextualType(i.initializer);case 213:return a.getTypeAtLocation(i.left);case 277:return a.getContextualTypeForJsxAttribute(i);default:return}case 102:return a.getContextualType(i);case 81:return e.getSwitchedType(e.cast(i,e.isCaseClause),a);case 18:return e.isJsxExpression(i)&&270!==i.parent.kind?a.getContextualTypeForJsxAttribute(i.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(n,t,r);return o?a.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===n.kind?1:0)):e.isEqualityOperatorKind(n.kind)&&e.isBinaryExpression(i)&&e.isEqualityOperatorKind(i.operatorToken.kind)?a.getTypeAtLocation(i.left):a.getContextualType(n)}}(h,o,a,u),Z=e.mapDefined(Q&&(Q.isUnion()?Q.types:[Q]),(function(e){return e.isLiteral()?e.value:void 0})),$=h&&Q&&function(n,t,r){return e.firstDefined(t&&(t.isUnion()?t.types:[t]),(function(t){var a=t&&t.symbol;return a&&424&a.flags&&!e.isAbstractConstructorSymbol(a)?x(a,n,r):void 0}))}(h,Q,u);return{kind:0,symbols:H,completionKind:U,isInSnippetScope:_,propertyAccessToConvert:E,isNewIdentifierLocation:V,location:k,keywordFilters:j,literals:Z,symbolToOriginInfoMap:K,recommendedCompletion:$,previousToken:h,isJsxInitializer:C,insideJsDocTagTypeExpression:m,symbolToSortTextMap:W,isTypeOnlyLocation:z,isJsxIdentifierExpected:I};function ee(n,t,r){V=!!n.getStringIndexType(),L&&e.some(n.getCallSignatures())&&(V=!0);var a=192===T.kind?T:T.parent;if(i)H.push.apply(H,e.filter(P(n,u),(function(e){return u.isValidPropertyAccessForCompletions(a,n,e)})));else for(var o=0,c=n.getApparentProperties();o0&&(H=function(n,t){if(0===t.length)return n;for(var r=new e.Set,a=new e.Set,i=0,o=t;i"),kind:"class",kindModifiers:void 0,sortText:t.LocationPriority}]}}var C=[];if(d(n,a)){var N=v(c,C,void 0,_,n,r,a.target,i,l,s,g,o.isJsxIdentifierExpected,T,E,b,x);!function(n,r,a,i,o){e.getNameTable(n).forEach((function(n,s){if(n!==r){var c=e.unescapeLeadingUnderscores(s);!a.has(c)&&e.isIdentifierText(c,i)&&(a.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(n,_.pos,N,a.target,C)}else{if(!(f||c&&0!==c.length||0!==y))return;v(c,C,void 0,_,n,r,a.target,i,l,s,g,o.isJsxIdentifierExpected,T,E,b,x)}if(0!==y)for(var R=new e.Set(C.map((function(e){return e.name}))),k=0,O=function(n,t){if(!t)return I(n);var r=n+7+1;return D[r]||(D[r]=I(n).filter((function(n){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(n.name))})))}(y,!S&&e.isSourceFileJS(n));k=0&&!l(t,r[i],114);i--);return e.forEach(a(n.statement),(function(e){s(n,e)&&l(t,e.getFirstToken(),80,85)})),t}function d(e){var n=c(e);if(n)switch(n.kind){case 234:case 235:case 236:case 232:case 233:return u(n);case 241:return p(n)}}function p(n){var t=[];return l(t,n.getFirstToken(),106),e.forEach(n.caseBlock.clauses,(function(r){l(t,r.getFirstToken(),81,87),e.forEach(a(r),(function(e){s(n,e)&&l(t,e.getFirstToken(),80)}))})),t}function f(n,t){var r=[];(l(r,n.getFirstToken(),110),n.catchClause&&l(r,n.catchClause.getFirstToken(),82),n.finallyBlock)&&l(r,e.findChildOfKind(n,95,t),95);return r}function m(n,t){var a=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||294===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(n);if(a){var i=[];return e.forEach(r(a),(function(n){i.push(e.findChildOfKind(n,108,t))})),e.isFunctionBlock(a)&&e.forEachReturnStatement(a,(function(n){i.push(e.findChildOfKind(n,104,t))})),i}}function _(n,t){var a=e.getContainingFunction(n);if(a){var i=[];return e.forEachReturnStatement(e.cast(a.body,e.isBlock),(function(n){i.push(e.findChildOfKind(n,104,t))})),e.forEach(r(a.body),(function(n){i.push(e.findChildOfKind(n,108,t))})),i}}function g(n){var t=e.getContainingFunction(n);if(t){var r=[];return t.modifiers&&t.modifiers.forEach((function(e){l(r,e,129)})),e.forEachChild(t,(function(n){y(n,(function(n){e.isAwaitExpression(n)&&l(r,n.getFirstToken(),130)}))})),r}}function y(n,t){t(n),e.isFunctionLike(n)||e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isModuleDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isTypeNode(n)||e.forEachChild(n,(function(e){return y(e,t)}))}n.getDocumentHighlights=function(n,r,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 t(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(n,t,r,a,i){var o=new e.Set(i.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(n,t,r,i,a,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(n){var t=n[0],a=n[1];if(!o.has(t)){e.Debug.assert(r.redirectTargetsMap.has(t));var s=r.getSourceFile(t);t=e.find(i,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(t))}return{fileName:t,highlightSpans:a}}))}(o,c,n,r,s)||function(n,r){var a=function(n,r){switch(n.kind){case 98:case 90:return e.isIfStatement(n.parent)?function(n,r){for(var a=function(n,t){var r=[];for(;e.isIfStatement(n.parent)&&n.parent.elseStatement===n;)n=n.parent;for(;;){var a=n.getChildren(t);l(r,a[0],98);for(var i=a.length-1;i>=0&&!l(r,a[i],90);i--);if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}(n,r),i=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){u=!1;break}if(u){i.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}i.push(t(a[o],r))}return i}(n.parent,r):void 0;case 104:return c(n.parent,e.isReturnStatement,_);case 108:return c(n.parent,e.isThrowStatement,m);case 110:case 82:case 95:return c(82===n.kind?n.parent.parent:n.parent,e.isTryStatement,f);case 106:return c(n.parent,e.isSwitchStatement,p);case 81:case 87:return e.isDefaultClause(n.parent)||e.isCaseClause(n.parent)?c(n.parent.parent.parent,e.isSwitchStatement,p):void 0;case 80:case 85:return c(n.parent,e.isBreakOrContinueStatement,d);case 96:case 114:case 89:return c(n.parent,(function(n){return e.isIterationStatement(n,!0)}),u);case 132:return s(e.isConstructorDeclaration,[132]);case 134:case 145:return s(e.isAccessor,[134,145]);case 130:return c(n.parent,e.isAwaitExpression,g);case 129:return h(g(n));case 124:return h(function(n){var t=e.getContainingFunction(n);if(!t)return;var r=[];return e.forEachChild(t,(function(n){y(n,(function(n){e.isYieldExpression(n)&&l(r,n.getFirstToken(),124)}))})),r}(n));default:return e.isModifierKind(n.kind)&&(e.isDeclaration(n.parent)||e.isVariableStatement(n.parent))?h((a=n.kind,o=n.parent,e.mapDefined(function(n,t){var r=n.parent;switch(r.kind){case 254:case 294:case 227:case 281:case 282:return 128&t&&e.isClassDeclaration(n)?i(n.members,[n]):r.statements;case 165:case 164:case 248:return i(r.parameters,e.isClassLike(r.parent)?r.parent.members:[]);case 249:case 218:case 250:case 176:var a=r.members;if(92&t){var o=e.find(r.members,e.isConstructorDeclaration);if(o)return i(a,o.parameters)}else if(128&t)return i(a,[r]);return a;default:e.Debug.assertNever(r,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(n){return e.findModifier(n,a)})))):void 0}var a,o;function s(t,a){return c(n.parent,t,(function(n){return e.mapDefined(n.symbol.declarations,(function(n){return t(n)?e.find(n.getChildren(r),(function(n){return e.contains(a,n.kind)})):void 0}))}))}function c(e,n,t){return n(e)?h(t(e,r)):void 0}function h(e){return e&&e.map((function(e){return t(e,r)}))}}(n,r);return a&&[{fileName:r.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(d||(d={})),function(e){function n(n,r,a){void 0===r&&(r="");var i=new e.Map,o=e.createGetCanonicalFileName(!!n);function s(e,n,t,r,a,i,o){return l(e,n,t,r,a,i,!0,o)}function c(e,n,t,r,a,i,o){return l(e,n,t,r,a,i,!1,o)}function l(n,t,r,o,s,c,l,u){var d=e.getOrUpdate(i,o,(function(){return new e.Map})),p=d.get(t),f=6===u?100:r.target||1;!p&&a&&((m=a.getDocument(o,t))&&(e.Debug.assert(l),p={sourceFile:m,languageServiceRefCount:0},d.set(t,p)));if(p)p.sourceFile.version!==c&&(p.sourceFile=e.updateLanguageServiceSourceFile(p.sourceFile,s,c,s.getChangeRange(p.sourceFile.scriptSnapshot)),a&&a.setDocument(o,t,p.sourceFile)),l&&p.languageServiceRefCount++;else{var m=e.createLanguageServiceSourceFile(n,s,f,c,!1,u);a&&a.setDocument(o,t,m),p={sourceFile:m,languageServiceRefCount:1},d.set(t,p)}return e.Debug.assert(0!==p.languageServiceRefCount),p.sourceFile}function u(n,t){var r=e.Debug.checkDefined(i.get(t)),a=r.get(n);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(n)}return{acquireDocument:function(n,a,i,c,l){return s(n,e.toPath(n,r,o),a,t(a),i,c,l)},acquireDocumentWithKey:s,updateDocument:function(n,a,i,s,l){return c(n,e.toPath(n,r,o),a,t(a),i,s,l)},updateDocumentWithKey:c,releaseDocument:function(n,a){return u(e.toPath(n,r,o),t(a))},releaseDocumentWithKey:u,getLanguageServiceRefCounts:function(n){return e.arrayFrom(i.entries(),(function(e){var t=e[0],r=e[1].get(n);return[t,r&&r.languageServiceRefCount]}))},reportStats:function(){var n=e.arrayFrom(i.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var n=i.get(e),t=[];return n.forEach((function(e,n){t.push({name:n,refCount:e.languageServiceRefCount})})),t.sort((function(e,n){return n.refCount-e.refCount})),{bucket:e,sourceFiles:t}}));return JSON.stringify(n,void 0,2)},getKeyForCompilationSettings:t}}function t(n){return e.sourceFileAffectingCompilerOptions.map((function(t){return e.getCompilerOptionValue(n,t)})).join("|")}e.createDocumentRegistry=function(e,t){return n(e,t)},e.createDocumentRegistryInternal=n}(d||(d={})),function(e){!function(n){function t(n,t){return e.forEach(294===n.kind?n.statements:n.body.statements,(function(n){return t(n)||c(n)&&e.forEach(n.body&&n.body.statements,t)}))}function r(n,r){if(n.externalModuleIndicator||void 0!==n.imports)for(var a=0,i=n.imports;a=0&&!(c>r.end);){var l=c+s;0!==c&&e.isIdentifierPart(i.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(i.charCodeAt(l),99)||a.push(c),c=i.indexOf(t,c+s+1)}return a}function T(n,t){var a=n.getSourceFile(),i=t.text,o=e.mapDefined(b(a,i,n),(function(n){return n===t||e.isJumpStatementTarget(n)&&e.getTargetLabel(n,i)===t?r(n):void 0}));return[{definition:{type:1,node:t},references:o}]}function S(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),x(e,e,n,t,r)}function x(e,n,t,r,a){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var i=0,o=E(n,t.text,e);i0;o--){E(n,a=r[o])}return[r.length-1,r[0]]}function E(e,n){var t=y(e,n);m(i,t),c.push(i),l.push(o),o=void 0,i=t}function T(){i.children&&(L(i.children,i),I(i.children)),i=c.pop(),o=l.pop()}function S(e,n,t){E(e,t),x(n),T()}function x(n){var t;if(r.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 165:var a=n;S(a,a.body);for(var i=0,s=a.parameters;i0&&(E(j,G),e.forEachChild(j.right,x),T()):e.isFunctionExpression(j.right)||e.isArrowFunction(j.right)?S(n,j.right,G):(E(j,G),S(n,j.right,w.name),T()),void v(M);case 7:case 9:var B=n,U=(G=7===O?B.arguments[0]:B.arguments[0].expression,B.arguments[1]),V=b(n,G);M=V[0];return E(n,V[1]),E(n,e.setTextRange(e.factory.createIdentifier(U.text),U)),x(n.arguments[2]),T(),T(),void v(M);case 5:var j,H=(w=(j=n).left).expression;if(e.isIdentifier(H)&&"prototype"!==e.getElementOrPropertyAccessName(w)&&o&&o.has(H.text))return void(e.isFunctionExpression(j.right)||e.isArrowFunction(j.right)?S(n,j.right,H):e.isBindableStaticAccessExpression(w)&&(E(j,H),S(j.left,j.right,e.getNameOrArgument(w)),T()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(O)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,(function(n){e.forEach(n.tags,(function(n){e.isJSDocTypeAlias(n)&&g(n)}))})),e.forEachChild(n,x)}}function L(n,t){var r=new e.Map;e.filterMutate(n,(function(n,a){var i=n.name||e.getNameOfDeclaration(n.node),o=i&&p(i);if(!o)return!0;var s=r.get(o);if(!s)return r.set(o,n),!0;if(s instanceof Array){for(var c=0,l=s;c0)return V(r)}switch(n.kind){case 294:var a=n;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 263:return e.isExportAssignment(n)&&n.isExportEquals?"export=":"default";case 206:case 248:case 205:case 249:case 218:return 512&e.getSyntacticModifierFlags(n)?"default":U(n);case 165:return"constructor";case 169:return"new()";case 168:return"()";case 170:return"[]";default:return""}}function O(n){return{text:k(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:B(n.node),spans:P(n),nameSpan:n.name&&G(n.name),childItems:e.map(n.children,O)}}function w(n){return{text:k(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:B(n.node),spans:P(n),childItems:e.map(n.children,(function(n){return{text:k(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:e.getNodeModifiers(n.node),spans:P(n),childItems:u,indent:0,bolded:!1,grayed:!1}}))||u,indent:n.indent,bolded:!1,grayed:!1}}function P(e){var n=[G(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t0)return V(e.declarationNameToString(n.name));if(e.isVariableDeclaration(t))return V(e.declarationNameToString(t.name));if(e.isBinaryExpression(t)&&62===t.operatorToken.kind)return p(t.left).replace(s,"");if(e.isPropertyAssignment(t))return p(t.name);if(512&e.getSyntacticModifierFlags(n))return"default";if(e.isClassLike(n))return"";if(e.isCallExpression(t)){var r=function n(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=n(t.expression),a=t.name.text;return void 0===r?a:r+"."+a}return}(t.expression);if(void 0!==r)return(r=V(r)).length>150?r+" callback":r+"("+V(e.mapDefined(t.arguments,(function(n){return e.isStringLiteralLike(n)?n.getText(a):void 0})).join(", "))+") callback"}return""}function V(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(d||(d={})),function(e){!function(n){function t(n,t){var r=e.isStringLiteral(t)&&t.text;return e.isString(r)&&e.some(n.moduleAugmentations,(function(n){return e.isStringLiteral(n)&&n.text===r}))}function r(n){return void 0!==n&&e.isStringLiteralLike(n)?n.text:void 0}function a(n){var t;if(0===n.length)return n;var r=function(n){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},a={defaultImports:[],namespaceImports:[],namedImports:[]},i=0,o=n;i0?_[0]:y[0],D=0===L.length?E?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(L):e.factory.updateNamedImports(y[0].importClause.namedBindings,L);m&&E&&D?(l.push(o(A,E,void 0)),l.push(o(null!==(t=y[0])&&void 0!==t?t:A,void 0,D))):l.push(o(A,E,D))}}else{var C=_[0];l.push(o(C,C.importClause.name,g[0].importClause.namedBindings))}}return l}function i(n){if(0===n.length)return n;var t=function(e){for(var n,t=[],r=[],a=0,i=e;a...")}(n);case 274:return function(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd());return c(r,"code",r,!1,"<>...")}(n);case 271:case 272:return function(e){if(0===e.properties.length)return;return o(e.getStart(t),e.getEnd(),"code")}(n.attributes);case 215:case 14:return function(e){if(14===e.kind&&0===e.text.length)return;return o(e.getStart(t),e.getEnd(),"code")}(n);case 194:return u(n,!1,!e.isBindingElement(n.parent),22);case 206:return function(n){if(e.isBlock(n.body)||e.positionsAreOnSameLine(n.body.getFullStart(),n.body.getEnd(),t))return;return c(e.createTextSpanFromBounds(n.body.getFullStart(),n.body.getEnd()),"code",e.createTextSpanFromNode(n))}(n);case 200:return function(n){if(!n.arguments.length)return;var r=e.findChildOfKind(n,20,t),a=e.findChildOfKind(n,21,t);if(!r||!a||e.positionsAreOnSameLine(r.pos,a.pos,t))return;return s(r,a,n,t,!1,!0)}(n)}var i;function l(n,t){return void 0===t&&(t=18),u(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function u(r,a,i,o,c){void 0===a&&(a=!1),void 0===i&&(i=!0),void 0===o&&(o=18),void 0===c&&(c=18===o?19:23);var l=e.findChildOfKind(n,o,t),u=e.findChildOfKind(n,c,t);return l&&u&&s(l,u,r,t,a,i)}}(i,n);d&&r.push(d),l--,e.isCallExpression(i)?(l++,_(i.expression),l--,i.arguments.forEach(_),null===(u=i.typeArguments)||void 0===u||u.forEach(_)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(_(i.expression),_(i.thenStatement),l++,_(i.elseStatement),l--):i.forEachChild(_),l++}}}(n,t,l),function(n,t){for(var a=[],i=n.getLineStarts(),o=0,s=i;o1&&i.push(o(c,l,"comment"))}}function o(n,t,r){return c(e.createTextSpanFromBounds(n,t),r)}function s(n,t,r,a,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!0),c(e.createTextSpanFromBounds(o?n.getFullStart():n.getStart(a),t.getEnd()),"code",e.createTextSpanFromNode(r,a),i)}function c(e,n,t,r,a){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===a&&(a="..."),{textSpan:e,kind:n,hintSpan:t,bannerText:a,autoCollapse:r}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(d||(d={})),function(e){var n;function t(e,n){return{kind:e,isCaseSensitive:n}}function r(e,n){var t=n.get(e);return t||n.set(e,t=h(e)),t}function a(a,i,o){var s=function(e,n){for(var t=e.length-n.length,r=function(t){if(L(n,(function(n,r){return p(e.charCodeAt(r+t))===n})))return{value:t}},a=0;a<=t;a++){var i=r(a);if("object"==typeof i)return i.value}return-1}(a,i.textLowerCase);if(0===s)return t(i.text.length===a.length?n.exact:n.prefix,e.startsWith(a,i.text));if(i.isLowerCase){if(-1===s)return;for(var d=0,f=r(a,o);d0)return t(n.substring,!0);if(i.characterSpans.length>0){var _=r(a,o),g=!!l(a,_,i,!1)||!l(a,_,i,!0)&&void 0;if(void 0!==g)return t(n.camelCase,g)}}}function i(e,n,t){if(L(n.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var r=a(e,n.totalTextChunk,t);if(r)return r}for(var i,s=0,c=n.subWordTextChunks;s=65&&n<=90)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toUpperCase()}function d(n){if(n>=97&&n<=122)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function f(e){return e>=48&&e<=57}function m(e){return u(e)||d(e)||f(e)||95===e||36===e}function _(e){for(var n=[],t=0,r=0,a=0;a0&&(n.push(g(e.substr(t,r))),r=0)}return r>0&&n.push(g(e.substr(t,r))),n}function g(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:y(e)}}function y(e){return v(e,!1)}function h(e){return v(e,!0)}function v(n,t){for(var r=[],a=0,i=1;in.length)return;for(var c=r.length-2,l=n.length-1;c>=0;c-=1,l-=1)s=o(s,i(n[l],r[c],a));return s}(n,a,r,t)},getMatchForLastSegmentOfPattern:function(n){return i(n,e.last(r),t)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=h}(d||(d={})),function(e){e.preProcessFile=function(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var a,i,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return i=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var n=e.scanner.getTokenValue(),t=e.scanner.getTokenPos();return{fileName:n,pos:t,end:t+n.length}}function f(){c.push(p()),m()}function m(){0===l&&(u=!0)}function _(){var n=e.scanner.getToken();return 133===n&&(138===(n=d())&&10===(n=d())&&(a||(a=[]),a.push({ref:p(),depth:l})),!0)}function g(){if(24===i)return!1;var n=e.scanner.getToken();if(99===n){if(20===(n=d())){if(10===(n=d())||14===n)return f(),!0}else{if(10===n)return f(),!0;148===n&&e.scanner.lookAhead((function(){var n=e.scanner.scan();return 152!==n&&(41===n||18===n||78===n||e.isKeyword(n))}))&&(n=d());if(78===n||e.isKeyword(n))if(152===(n=d())){if(10===(n=d()))return f(),!0}else if(62===n){if(h(!0))return!0}else{if(27!==n)return!0;n=d()}if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&152===(n=d())&&10===(n=d())&&f()}else 41===n&&126===(n=d())&&(78===(n=d())||e.isKeyword(n))&&152===(n=d())&&10===(n=d())&&f()}return!0}return!1}function y(){var n=e.scanner.getToken();if(92===n){if(m(),148===(n=d()))e.scanner.lookAhead((function(){var n=e.scanner.scan();return 41===n||18===n}))&&(n=d());if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&152===(n=d())&&10===(n=d())&&f()}else if(41===n)152===(n=d())&&10===(n=d())&&f();else if(99===n){if(148===(n=d()))e.scanner.lookAhead((function(){var n=e.scanner.scan();return 78===n||e.isKeyword(n)}))&&(n=d());if((78===n||e.isKeyword(n))&&62===(n=d())&&h(!0))return!0}return!0}return!1}function h(n,t){void 0===t&&(t=!1);var r=n?d():e.scanner.getToken();return 142===r&&(20===(r=d())&&(10===(r=d())||t&&14===r)&&f(),!0)}function v(){var n=e.scanner.getToken();if(78===n&&"define"===e.scanner.getTokenValue()){if(20!==(n=d()))return!0;if(10===(n=d())||14===n){if(27!==(n=d()))return!0;n=d()}if(22!==n)return!0;for(n=d();23!==n&&1!==n;)10!==n&&14!==n||f(),n=d();return!0}return!1}if(t&&function(){for(e.scanner.setText(n),d();1!==e.scanner.getToken();)_()||g()||y()||r&&(h(!1,!0)||v())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,n),e.processPragmasIntoFields(s,e.noop),u){if(a)for(var b=0,E=a;bn)break e;if(t(r,n,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||f&&e.isTemplateHead(f)||e.isVariableDeclarationList(m)&&e.isVariableStatement(u)||e.isSyntaxList(m)&&e.isVariableDeclarationList(u)||e.isVariableDeclaration(m)&&e.isSyntaxList(u)&&1===d.length){u=m;break}if(e.isTemplateSpan(u)&&_&&e.isTemplateMiddleOrTemplateTail(_))b(m.getFullStart()-"${".length,_.getStart()+"}".length);var g=e.isSyntaxList(m)&&(s=void 0,18===(s=(i=f)&&i.kind)||22===s||20===s||272===s)&&l(_)&&!e.positionsAreOnSameLine(f.getStart(),_.getStart(),r),y=e.hasJSDocNodes(m)&&m.jsDoc[0].getStart(),h=g?f.getEnd():m.getStart(),v=g?_.getStart():m.getEnd();e.isNumber(y)&&b(y,v),b(h,v),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&b(h+1,v-1),u=m;break}if(p===d.length-1)break e}}return c;function b(t,r){if(t!==r){var a=e.createTextSpanFromBounds(t,r);(!c||!e.textSpansEqual(a,c.textSpan)&&e.textSpanIntersectsWithPosition(a,n))&&(c=o({textSpan:a},c&&{parent:c}))}}};var r=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(n){if(e.isSourceFile(n))return i(n.getChildAt(0).getChildren(),r);if(e.isMappedTypeNode(n)){var t=n.getChildren(),a=t[0],o=t.slice(1),l=e.Debug.checkDefined(o.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(l.kind,19);var u=i(o,(function(e){return e===n.readonlyToken||141===e.kind||e===n.questionToken||57===e.kind}));return[a,c(s(i(u,(function(e){var n=e.kind;return 22===n||158===n||23===n})),(function(e){return 58===e.kind}))),l]}if(e.isPropertySignature(n))return s(o=i(n.getChildren(),(function(t){return t===n.name||e.contains(n.modifiers,t)})),(function(e){return 58===e.kind}));if(e.isParameter(n)){var d=i(n.getChildren(),(function(e){return e===n.dotDotDotToken||e===n.name}));return s(i(d,(function(e){return e===d[0]||e===n.questionToken})),(function(e){return 62===e.kind}))}return e.isBindingElement(n)?s(n.getChildren(),(function(e){return 62===e.kind})):n.getChildren()}function i(e,n){for(var t,r=[],a=0,i=e;a0&&27===e.last(t).kind&&r++;return r}(a);return 0!==i&&e.Debug.assertLessThan(i,o),{list:a,argumentIndex:i,argumentCount:o,argumentsSpan:function(n,t){var r=n.getFullStart(),a=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,a-r)}(a,t)}}}function s(n,t,r){var a=n.parent;if(e.isCallOrNewExpression(a)){var i=a,s=o(n,r);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!a.typeArguments&&a.typeArguments.pos===c.pos,invocation:{kind:0,node:i},argumentsSpan:p,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(n)&&e.isTaggedTemplateExpression(a))return e.isInsideTemplateLiteral(n,t,r)?d(a,0,r):void 0;if(e.isTemplateHead(n)&&202===a.parent.kind){var f=a,m=f.parent;return e.Debug.assert(215===f.kind),d(m,l=e.isInsideTemplateLiteral(n,t,r)?0:1,r)}if(e.isTemplateSpan(a)&&e.isTaggedTemplateExpression(a.parent.parent)){var _=a;m=a.parent.parent;if(e.isTemplateTail(n)&&!e.isInsideTemplateLiteral(n,t,r))return;return d(m,l=function(n,t,r,a){if(e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(t))return e.isInsideTemplateLiteral(t,r,a)?0:n+2;return n+1}(_.parent.templateSpans.indexOf(_),n,t,r),r)}if(e.isJsxOpeningLikeElement(a)){var g=a.attributes.pos,y=e.skipTrivia(r.text,a.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:a},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var h=e.getPossibleTypeArgumentsInfo(n,r);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:i={kind:1,called:v},argumentsSpan:p=e.createTextSpanFromBounds(v.getStart(r),n.end),argumentIndex:b,argumentCount:b+1}}}function c(n){return e.isBinaryExpression(n.left)?c(n.left)+1:2}function l(n){return"__type"===n.name&&e.firstDefined(n.declarations,(function(n){return e.isFunctionTypeNode(n)?n.parent.symbol:void 0}))||n}function u(e,n){for(var t=0,r=0,a=e.getChildren();r=0&&a.length>i+1),a[i+1]}function m(n){return 0===n.kind?e.getInvokedExpression(n.node):n.called}function _(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"}(t||(t={})),n.getSignatureHelpItems=function(n,t,r,i,u){var d=n.getTypeChecker(),p=e.findTokenOnLeftOfPosition(t,r);if(p){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(t,r,p)&&!e.isInComment(t,r)){var h=!!i&&"invoked"===i.kind,v=function(n,t,r,a,i){for(var u=function(n){e.Debug.assert(e.rangeContainsRange(n.parent,n),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(n.kind)+", parent: "+e.Debug.formatSyntaxKind(n.parent.kind)}));var i=function(n,t,r,a){return function(n,t,r,a){var i=function(n,t,r){if(20!==n.kind&&27!==n.kind)return;var a=n.parent;switch(a.kind){case 204:case 164:case 205:case 206:var i=o(n,t);if(!i)return;var s=i.argumentIndex,l=i.argumentCount,u=i.argumentsSpan,d=e.isMethodDeclaration(a)?r.getContextualTypeForObjectLiteralElement(a):r.getContextualType(a);return d&&{contextualType:d,argumentIndex:s,argumentCount:l,argumentsSpan:u};case 213:var p=function n(t){return e.isBinaryExpression(t.parent)?n(t.parent):t}(a),f=r.getContextualType(p),m=20===n.kind?0:c(a)-1,_=c(p);return f&&{contextualType:f,argumentIndex:m,argumentCount:_,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}(n,r,a);if(!i)return;var s=i.contextualType,u=i.argumentIndex,d=i.argumentCount,p=i.argumentsSpan,f=s.getNonNullableType(),m=f.getCallSignatures();return 1!==m.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(m),node:n,symbol:l(f.symbol)},argumentsSpan:p,argumentIndex:u,argumentCount:d}}(n,0,r,a)||s(n,t,r)}(n,t,r,a);if(i)return{value:i}},d=n;!e.isSourceFile(d)&&(i||!e.isBlock(d));d=d.parent){var p=u(d);if("object"==typeof p)return p.value}return}(p,r,t,d,h);if(v){u.throwIfCancellationRequested();var b=function(n,t,r,i,o){var s=n.invocation,c=n.argumentCount;switch(s.kind){case 0:if(o&&!function(n,t,r){if(!e.isCallOrNewExpression(t))return!1;var i=t.getChildren(r);switch(n.kind){case 20:return e.contains(i,n);case 27:var o=e.findContainingList(n);return!!o&&e.contains(i,o);case 29:return a(n,r,t.expression);default:return!1}}(i,s.node,r))return;var l=[],u=t.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,r,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,t)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=t.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(v,d,t,p,f);return u.throwIfCancellationRequested(),b?d.runWithCancellationToken(u,(function(e){return 0===b.kind?g(b.candidates,b.resolvedSignature,v,t,e):function(e,n,t,r){var a=n.argumentCount,i=n.argumentsSpan,o=n.invocation,s=n.argumentIndex,c=r.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[y(e,c,r,_(o),t)],applicableSpan:i,selectedItemIndex:0,argumentIndex:s,argumentCount:a}:void 0}(b.symbol,v,t,e)})):e.isSourceFileJS(t)?function(n,t,r){if(2===n.invocation.kind)return;var a=m(n.invocation),i=e.isPropertyAccessExpression(a)?a.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:e.firstDefined(t.getSourceFiles(),(function(t){return e.firstDefined(t.getNamedDeclarations().get(i),(function(e){var a=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),i=a&&a.getCallSignatures();if(i&&i.length)return o.runWithCancellationToken(r,(function(e){return g(i,i[0],n,t,e,!0)}))}))}))}(v,n,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(r||(r={})),n.getArgumentInfoForCompletions=function(e,n,t){var r=s(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};function g(n,t,r,a,o,s){var c,l=r.isTypeParameterList,u=r.argumentCount,d=r.argumentsSpan,p=r.invocation,f=r.argumentIndex,g=_(p),y=2===p.kind?p.symbol:o.getSymbolAtLocation(m(p))||s&&(null===(c=t.declaration)||void 0===c?void 0:c.symbol),E=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,T=e.map(n,(function(n){return function(n,t,r,a,o,s){var c=(r?v:b)(n,a,o,s);return e.map(c,(function(r){var s=r.isVariadic,c=r.parameters,l=r.prefix,u=r.suffix,d=i(t,l),p=i(u,function(n,t,r){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var a=r.getTypePredicateOfSignature(n);a?r.writeTypePredicate(a,t,void 0,e):r.writeType(r.getReturnTypeOfSignature(n),t,void 0,e)}))}(n,o,a)),f=n.getDocumentationComment(a),m=n.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:h,parameters:c,documentation:f,tags:m}}))}(n,E,l,o,g,a)}));0!==f&&e.Debug.assertLessThan(f,u);for(var S=0,x=0,L=0;L1))for(var D=0,C=0,I=A;C=u){S=x+D;break}D++}x+=A.length}return e.Debug.assert(-1!==S),{items:e.flatMapToMutable(T,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:f,argumentCount:u}}function y(n,t,r,a,o){var s=e.symbolToDisplayParts(r,n),c=e.createPrinter({removeComments:!0}),l=t.map((function(e){return E(e,r,a,o,c)})),u=n.getDocumentationComment(r),d=n.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:i(s,[e.punctuationPart(29)]),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:h,parameters:l,documentation:u,tags:d}}var h=[e.punctuationPart(27),e.spacePart()];function v(n,t,r,a){var o=(n.target||n).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return E(e,t,r,a,s)})),l=n.thisParameter?[t.symbolToParameterDeclaration(n.thisParameter,r,70246400)]:[];return t.getExpandedParameters(n).map((function(n){var o=e.factory.createNodeArray(i(l,e.map(n,(function(e){return t.symbolToParameterDeclaration(e,r,70246400)})))),u=e.mapToDisplayParts((function(e){s.writeList(2576,o,a,e)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],u)}}))}function b(n,t,r,a){var o=t.hasEffectiveRestParameter(n),s=e.createPrinter({removeComments:!0}),c=e.mapToDisplayParts((function(i){if(n.typeParameters&&n.typeParameters.length){var o=e.factory.createNodeArray(n.typeParameters.map((function(e){return t.typeParameterToDeclaration(e,r,70246400)})));s.writeList(53776,o,a,i)}})),l=t.getExpandedParameters(n);return l.map((function(n){return{isVariadic:o&&(1===l.length||!!(32768&n[n.length-1].checkFlags)),parameters:n.map((function(n){return function(n,t,r,a,i){var o=e.mapToDisplayParts((function(e){var o=t.symbolToParameterDeclaration(n,r,70246400);i.writeNode(4,o,a,e)})),s=t.isOptionalParameter(n.valueDeclaration);return{name:n.name,documentation:n.getDocumentationComment(t),displayParts:o,isOptional:s}}(n,t,r,a,s)})),prefix:i(c,[e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}}))}function E(n,t,r,a,i){var o=e.mapToDisplayParts((function(e){var o=t.typeParameterToDeclaration(n,r,70246400);i.writeNode(4,o,a,e)}));return{name:n.symbol.name,documentation:n.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(d||(d={})),function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function t(n,t,r){var a=e.tryParseRawSourceMap(t);if(a&&a.sources&&a.file&&a.mappings&&(!a.sourcesContent||!a.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(n,a,r)}e.getSourceMapper=function(n){var t=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),r=n.getCurrentDirectory(),a=new e.Map,i=new e.Map;return{tryGetSourcePosition:function n(t){if(!e.isDeclarationFileName(t.fileName))return;if(!c(t.fileName))return;var r=s(t.fileName).getSourcePosition(t);return r&&r!==t?n(r)||r:void 0},tryGetGeneratedPosition:function(a){if(e.isDeclarationFileName(a.fileName))return;var i=c(a.fileName);if(!i)return;var o=n.getProgram();if(o.isSourceOfProjectReferenceRedirect(i.fileName))return;var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(a.fileName,o.getCompilerOptions(),r,o.getCommonSourceDirectory(),t);if(void 0===d)return;var p=s(d,a.fileName).getGeneratedPosition(a);return p===a?void 0:p},toLineColumnOffset:function(e,n){return u(e).getLineAndCharacterOfPosition(n)},clearCache:function(){a.clear(),i.clear()}};function o(n){return e.toPath(n,r,t)}function s(r,a){var s,c=o(r),l=i.get(c);if(l)return l;if(n.getDocumentPositionMapper)s=n.getDocumentPositionMapper(r,a);else if(n.readFile){var d=u(r);s=d&&e.getDocumentPositionMapper({getSourceFileLike:u,getCanonicalFileName:t,log:function(e){return n.log(e)}},r,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!n.fileExists||n.fileExists(e)?n.readFile(e):void 0}))}return i.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var t=n.getProgram();if(t){var r=o(e),a=t.getSourceFileByPath(r);return a&&a.resolvedPath===r?a:void 0}}function l(t){var r=o(t),i=a.get(r);if(void 0!==i)return i||void 0;if(n.readFile&&(!n.fileExists||n.fileExists(r))){var s=n.readFile(r),c=!!s&&function(n,t){return{text:n,lineMap:t,getLineAndCharacterOfPosition:function(n){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),n)}}}(s);return a.set(r,c),c||void 0}a.set(r,!1)}function u(e){return n.getSourceFileLike?n.getSourceFileLike(e):c(e)||l(e)}},e.getDocumentPositionMapper=function(r,a,i,o){var s=e.tryGetSourceMappingURL(i);if(s){var c=n.exec(s);if(c){if(c[1]){var l=c[1];return t(r,e.base64decode(e.sys,l),a)}s=void 0}}var u=[];s&&u.push(s),u.push(a+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(a)),p=0,f=u;p2)&&(n.arguments.length<2||e.some(n.arguments,(function(n){return 103===n.kind||e.isIdentifier(n)&&"undefined"===n.text})))}(n)||e.hasPropertyAccessExpressionWithName(n,"catch"))}function o(e){switch(e.kind){case 248:case 205:case 206:n.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(a,i,o){i.getSemanticDiagnostics(a,o);var c,l=[],u=i.getTypeChecker();a.commonJsModuleIndicator&&(e.programContainsEs6Modules(i)||e.compilerOptionsIndicateEs6Modules(i.getCompilerOptions()))&&function(n){return n.statements.some((function(n){switch(n.kind){case 229:return n.declarationList.declarations.some((function(n){return!!n.initializer&&e.isRequireCall(function n(t){return e.isPropertyAccessExpression(t)?n(t.expression):t}(n.initializer),!0)}));case 230:var t=n.expression;if(!e.isBinaryExpression(t))return e.isRequireCall(t,!0);var r=e.getAssignmentDeclarationKind(t);return 1===r||2===r;default:return!1}}))}(a)&&l.push(e.createDiagnosticForNode((c=a.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(a);if(n.clear(),function t(i){if(d)(function(n){var t,r,a,i;if(205===n.kind){if(e.isVariableDeclaration(n.parent)&&(null===(t=n.symbol.members)||void 0===t?void 0:t.size))return!0;var o=e.getDeclarationOfExpando(n),s=null==o?void 0:o.symbol;return!(!s||!(null===(r=s.exports)||void 0===r?void 0:r.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}if(248===n.kind)return!!(null===(i=n.symbol.members)||void 0===i?void 0:i.size);return!1})(i)&&l.push(e.createDiagnosticForNode(e.isVariableDeclaration(i.parent)?i.parent.name:i,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(i)&&i.parent===a&&2&i.declarationList.flags&&1===i.declarationList.declarations.length){var o=i.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&l.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(i)&&l.push(e.createDiagnosticForNode(i.name||i,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(i)&&function(t,a,i){(function(n,t){return!e.isAsyncFunction(n)&&n.body&&e.isBlock(n.body)&&(a=n.body,!!e.forEachReturnStatement(a,r))&&function(e,n){var t=n.getTypeAtLocation(e),r=n.getSignaturesOfType(t,0),a=r.length?n.getReturnTypeOfSignature(r[0]):void 0;return!!a&&!!n.getPromisedTypeOfPromise(a)}(n,t);var a})(t,a)&&!n.has(s(t))&&i.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}(i,u,l);i.forEachChild(t)}(a),e.getAllowSyntheticDefaultImports(i.getCompilerOptions()))for(var p=0,f=a.imports;p0?e.getNodeModifiers(n.declarations[0]):"",r=n&&16777216&n.flags?"optional":"";return t&&r?t+","+r:t||r},n.getSymbolDisplayPartsDocumentationAndSymbolKind=function n(a,i,o,s,c,l,u){void 0===l&&(l=e.getMeaningFromLocation(c));var d,p,f,m,_=[],g=[],y=[],h=e.getCombinedLocalAndExportSymbolFlags(i),v=1&l?r(a,i,c):"",b=!1,E=107===c.kind&&e.isInExpressionContext(c),T=!1;if(107===c.kind&&!E)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=E?a.getTypeAtLocation(c):a.getTypeOfSymbolAtLocation(i.exportSymbol||i,c),c.parent&&198===c.parent.kind){var x=c.parent.name;(x===c||x&&0===x.getFullWidth())&&(c=c.parent)}var L=void 0;if(e.isCallOrNewExpression(c)?L=c:(e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)||c.parent&&(e.isJsxOpeningLikeElement(c.parent)||e.isTaggedTemplateExpression(c.parent))&&e.isFunctionLike(i.valueDeclaration))&&(L=c.parent),L){S=a.getResolvedSignature(L);var A=201===L.kind||e.isCallExpression(L)&&105===L.expression.kind,D=A?d.getConstructSignatures():d.getCallSignatures();if(e.contains(D,S.target)||e.contains(D,S)||(S=D.length?D[0]:void 0),S){switch(A&&32&h?(v="constructor",X(d.symbol,v)):2097152&h?(Y(v="alias"),_.push(e.spacePart()),A&&(_.push(e.keywordPart(102)),_.push(e.spacePart())),J(i)):X(i,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(e.punctuationPart(58)),_.push(e.spacePart()),16&e.getObjectFlags(d)||!d.symbol||(e.addRange(_,e.symbolToDisplayParts(a,d.symbol,s,void 0,5)),_.push(e.lineBreakPart())),A&&(_.push(e.keywordPart(102)),_.push(e.spacePart())),Q(S,D,262144);break;default:Q(S,D)}b=!0,T=D.length>1}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||132===c.kind&&165===c.parent.kind){var C=c.parent;if(i.declarations&&e.find(i.declarations,(function(e){return e===(132===c.kind?C.parent:C)}))){D=165===C.kind?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();S=a.isImplementationOfOverload(C)?D[0]:a.getSignatureFromDeclaration(C),165===C.kind?(v="constructor",X(d.symbol,v)):X(168!==C.kind||2048&d.symbol.flags||4096&d.symbol.flags?i:d.symbol,v),Q(S,D),b=!0,T=D.length>1}}}if(32&h&&!b&&!E&&(q(),e.getDeclarationOfKind(i,218)?Y("local class"):_.push(e.keywordPart(83)),_.push(e.spacePart()),J(i),Z(i,o)),64&h&&2&l&&(W(),_.push(e.keywordPart(117)),_.push(e.spacePart()),J(i),Z(i,o)),524288&h&&2&l&&(W(),_.push(e.keywordPart(148)),_.push(e.spacePart()),J(i),Z(i,o),_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),e.addRange(_,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(i),s,8388608))),384&h&&(W(),e.some(i.declarations,(function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)}))&&(_.push(e.keywordPart(84)),_.push(e.spacePart())),_.push(e.keywordPart(91)),_.push(e.spacePart()),J(i)),1536&h&&!E){W();var I=(j=e.getDeclarationOfKind(i,253))&&j.name&&78===j.name.kind;_.push(e.keywordPart(I?139:138)),_.push(e.spacePart()),J(i)}if(262144&h&&2&l)if(W(),_.push(e.punctuationPart(20)),_.push(e.textPart("type parameter")),_.push(e.punctuationPart(21)),_.push(e.spacePart()),J(i),i.parent)z(),J(i.parent,s),Z(i.parent,s);else{var N=e.getDeclarationOfKind(i,158);if(void 0===N)return e.Debug.fail();if(j=N.parent)if(e.isFunctionLikeKind(j.kind)){z();S=a.getSignatureFromDeclaration(j);169===j.kind?(_.push(e.keywordPart(102)),_.push(e.spacePart())):168!==j.kind&&j.name&&J(j.symbol),e.addRange(_,e.signatureToDisplayParts(a,S,o,32))}else 251===j.kind&&(z(),_.push(e.keywordPart(148)),_.push(e.spacePart()),J(j.symbol),Z(j.symbol,o))}if(8&h&&(v="enum member",X(i,"enum member"),288===(j=i.declarations[0]).kind)){var R=a.getConstantValue(j);void 0!==R&&(_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),_.push(e.displayPart(e.getTextOfConstantValue(R),"number"==typeof R?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&i.flags){if(W(),!b){var k=a.getAliasedSymbol(i);if(k!==i&&k.declarations&&k.declarations.length>0){var O=k.declarations[0],w=e.getNameOfDeclaration(O);if(w){var P=e.isModuleWithStringLiteralName(O)&&e.hasSyntacticModifier(O,2),M="default"!==i.name&&!P,F=n(a,k,e.getSourceFileOfNode(O),O,w,l,M?i:k);_.push.apply(_,F.displayParts),_.push(e.lineBreakPart()),f=F.documentation,m=F.tags}}}switch(i.declarations[0].kind){case 256:_.push(e.keywordPart(92)),_.push(e.spacePart()),_.push(e.keywordPart(139));break;case 263:_.push(e.keywordPart(92)),_.push(e.spacePart()),_.push(e.keywordPart(i.declarations[0].isExportEquals?62:87));break;case 267:_.push(e.keywordPart(92));break;default:_.push(e.keywordPart(99))}_.push(e.spacePart()),J(i),e.forEach(i.declarations,(function(n){if(257===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),_.push(e.keywordPart(142)),_.push(e.punctuationPart(20)),_.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(t)),e.SymbolDisplayPartKind.stringLiteral)),_.push(e.punctuationPart(21));else{var r=a.getSymbolAtLocation(t.moduleReference);r&&(_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),J(r,s))}return!0}}))}if(!b)if(""!==v){if(d)if(E?(W(),_.push(e.keywordPart(107))):X(i,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||E){if(_.push(e.punctuationPart(58)),_.push(e.spacePart()),d.symbol&&262144&d.symbol.flags){var G=e.mapToDisplayParts((function(n){var t=a.typeParameterToDeclaration(d,s,70246400);K().writeNode(4,t,e.getSourceFileOfNode(e.getParseTreeNode(s)),n)}));e.addRange(_,G)}else e.addRange(_,e.typeToDisplayParts(a,d,s));if(i.target&&i.target.tupleLabelDeclaration){var B=i.target.tupleLabelDeclaration;e.Debug.assertNode(B.name,e.isIdentifier),_.push(e.spacePart()),_.push(e.punctuationPart(20)),_.push(e.textPart(e.idText(B.name))),_.push(e.punctuationPart(21))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v){(D=d.getNonNullableType().getCallSignatures()).length&&(Q(D[0],D),T=D.length>1)}}else v=t(a,i,c);if(0!==g.length||T||(g=i.getContextualDocumentationComment(s,a)),0===g.length&&4&h&&i.parent&&e.forEach(i.parent.declarations,(function(e){return 294===e.kind})))for(var U=0,V=i.declarations;U0))break}}return 0!==y.length||T||(y=i.getJsDocTags()),0===g.length&&f&&(g=f),0===y.length&&m&&(y=m),{displayParts:_,documentation:g,symbolKind:v,tags:0===y.length?void 0:y};function K(){return p||(p=e.createPrinter({removeComments:!0})),p}function W(){_.length&&_.push(e.lineBreakPart()),q()}function q(){u&&(Y("alias"),_.push(e.spacePart()))}function z(){_.push(e.spacePart()),_.push(e.keywordPart(100)),_.push(e.spacePart())}function J(n,t){u&&n===i&&(n=u);var r=e.symbolToDisplayParts(a,n,t||o,void 0,7);e.addRange(_,r),16777216&i.flags&&_.push(e.punctuationPart(57))}function X(n,t){W(),t&&(Y(t),n&&!e.some(n.declarations,(function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name}))&&(_.push(e.spacePart()),J(n)))}function Y(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void _.push(e.textOrKeywordPart(n));default:return _.push(e.punctuationPart(20)),_.push(e.textOrKeywordPart(n)),void _.push(e.punctuationPart(21))}}function Q(n,t,r){void 0===r&&(r=0),e.addRange(_,e.signatureToDisplayParts(a,n,s,32|r)),t.length>1&&(_.push(e.spacePart()),_.push(e.punctuationPart(20)),_.push(e.operatorPart(39)),_.push(e.displayPart((t.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),_.push(e.spacePart()),_.push(e.textPart(2===t.length?"overload":"overloads")),_.push(e.punctuationPart(21))),g=n.getDocumentationComment(a),y=n.getJsDocTags(),t.length>1&&0===g.length&&0===y.length&&(g=t[0].getDocumentationComment(a),y=t[0].getJsDocTags())}function Z(n,t){var r=e.mapToDisplayParts((function(r){var i=a.symbolToTypeParameterDeclarations(n,t,70246400);K().writeList(53776,i,e.getSourceFileOfNode(e.getParseTreeNode(t)),r)}));e.addRange(_,r)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(d||(d={})),function(e){function n(n,t){var a=[],i=t.compilerOptions?r(t.compilerOptions,a):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===i[s]&&(i[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c>=5;return t}(p,d),0,r),i[s]=(u=1+((c=p)>>(l=d)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<=t.pos?n.pos:i.end:n.pos}(o,t,r),t.end,(function(s){return p(t,o,n.SmartIndenter.getIndentationForNode(o,t,r,a.options),function(e,t,r){for(var a,i=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&o!==i)break;if(n.SmartIndenter.shouldIndentChildNode(t,e,a,r))return t.indentSize;i=o,a=e,e=e.parent}return 0}(o,a.options,r),s,a,i,function(n,t){if(!n.length)return i;var r=n.filter((function(n){return e.rangeOverlapsWithStartEnd(t,n.start,n.start+n.length)})).sort((function(e,n){return e.start-n.start}));if(!r.length)return i;var a=0;return function(n){for(;;){if(a>=r.length)return!1;var t=r[a];if(n.end<=t.start)return!1;if(e.startEndOverlapsWithStartEnd(n.pos,n.end,t.start,t.start+t.length))return!0;a++}};function i(){return!1}}(r.parseDiagnostics,t),r)}))}function p(t,r,a,i,o,s,c,l,u){var d,p,m,_,g=s.options,y=s.getRules,h=s.host,v=new n.FormattingContext(u,c,g),b=-1,E=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(r.getStart(u)).line,S=T;r.decorators&&(S=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),function r(a,i,s,c,f,y){if(!e.rangeOverlapsWithStartEnd(t,a.getStart(u),a.getEnd()))return;var h=L(a,s,f,y),v=i;e.forEachChild(a,(function(e){S(e,-1,a,h,s,c,!1)}),(function(t){!function(t,r,i,s){e.Debug.assert(e.isNodeArray(t));var c=function(e,n){switch(e.kind){case 165:case 248:case 205:case 164:case 163:case 206:if(e.typeParameters===n)return 29;if(e.parameters===n)return 20;break;case 200:case 201:if(e.typeArguments===n)return 29;if(e.arguments===n)return 20;break;case 172:if(e.typeArguments===n)return 29;break;case 176:return 18}return 0}(r,t),l=s,d=i;if(0!==c)for(;o.isOnToken();){if((v=o.readTokenInfo(r)).token.end>t.pos)break;if(v.token.kind===c){d=u.getLineAndCharacterOfPosition(v.token.pos).line,x(v,r,s,r);var p=void 0;if(-1!==b)p=b;else{var f=e.getLineStartPositionForPosition(v.token.pos,u);p=n.SmartIndenter.findFirstNonWhitespaceColumn(f,v.token.pos,u,g)}l=L(r,i,p,g.indentSize)}else x(v,r,s,r)}for(var m=-1,_=0;_a.end)break;11!==a.kind?x(E,a,h,a):o.advance()}if(!a.parent&&o.isOnEOF()){var T=o.readEOFTokenRange();T.end<=a.end&&d&&I(T,u.getLineAndCharacterOfPosition(T.pos).line,a,d,m,p,i,h)}function S(i,s,c,l,d,p,f,m){var y=i.getStart(u),h=u.getLineAndCharacterOfPosition(y).line,E=h;i.decorators&&(E=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(i,u)).line);var T=-1;if(f&&e.rangeContainsRange(t,c)&&-1!==(T=function(t,r,a,i,o){if(e.rangeOverlapsWithStartEnd(i,t,r)||e.rangeContainsStartEnd(i,t,r)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(t).line,c=e.getLineStartPositionForPosition(t,u),l=n.SmartIndenter.findFirstNonWhitespaceColumn(c,t,u,g);if(s!==a||t===l){var d=n.SmartIndenter.getBaseIndentation(g);return d>l?d:l}}return-1}(y,i.end,d,t,s))&&(s=T),!e.rangeOverlapsWithStartEnd(t,i.pos,i.end))return i.endy){S.token.pos>y&&o.skipToStartOf(i);break}x(S,a,l,a)}if(!o.isOnToken())return s;if(e.isToken(i)){var S=o.readTokenInfo(i);if(11!==i.kind)return e.Debug.assert(S.token.end===i.end,"Token end is child end"),x(S,a,l,i),s}var L=160===i.kind?h:p,A=function(e,t,r,a,i,o){var s=n.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===t?{indentation:t===_?b:i.getIndentation(),delta:Math.min(g.indentSize,i.getDelta(e)+s)}:-1===r?20===e.kind&&t===_?{indentation:b,delta:i.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,t,u)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(a,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:r,delta:s}}(i,h,T,a,l,L);if(r(i,v,h,E,A.indentation,A.delta),11===i.kind){var D={pos:i.getStart(),end:i.getEnd()};if(D.pos!==D.end){var C=c.getChildren(u),I=C[e.findIndex(C,(function(e){return e.pos===i.pos}))-1];if(I&&u.getLineAndCharacterOfPosition(D.end).line!==u.getLineAndCharacterOfPosition(I.end).line){var N=u.getLineAndCharacterOfPosition(D.pos).line===u.getLineAndCharacterOfPosition(I.end).line;R(D,A.indentation,N,!1,!0)}}}return v=a,m&&196===c.kind&&-1===s&&(s=A.indentation),s}function x(n,r,a,i,s){e.Debug.assert(e.rangeContainsRange(r,n.token));var c=o.lastTrailingTriviaWasNewLine(),p=!1;n.leadingTrivia&&D(n.leadingTrivia,r,v,a);var f=0,m=e.rangeContainsRange(t,n.token),g=u.getLineAndCharacterOfPosition(n.token.pos);if(m){var y=l(n.token),h=d;if(f=C(n.token,g,r,v,a),!y)if(0===f){var E=h&&u.getLineAndCharacterOfPosition(h.end).line;p=c&&g.line!==E}else p=1===f}if(n.trailingTrivia&&D(n.trailingTrivia,r,v,a),p){var T=m&&!l(n.token)?a.getIndentationForToken(g.line,n.token.kind,i,!!s):-1,S=!0;if(n.leadingTrivia){var x=a.getIndentationForComment(n.token.kind,T,i);S=A(n.leadingTrivia,x,S,(function(e){return N(e.pos,x,!1)}))}-1!==T&&S&&(N(n.token.pos,T,1===f),_=g.line,b=T)}o.advance(),v=r}}(r,r,T,S,a,i)}if(!o.isOnToken()){var x=o.getCurrentLeadingTrivia();x&&(A(x,a,!1,(function(e){return C(e,u.getLineAndCharacterOfPosition(e.pos),r,r,void 0)})),!1!==g.trimTrailingWhitespace&&function(){var e=d?d.end:t.pos,n=u.getLineAndCharacterOfPosition(e).line,r=u.getLineAndCharacterOfPosition(t.end).line;k(n,r+1,d)}())}return E;function L(t,r,a,i){return{getIndentationForComment:function(e,n,t){switch(e){case 19:case 23:case 21:return a+o(t)}return-1!==n?n:a},getIndentationForToken:function(n,i,s,c){return!c&&function(n,a,i){switch(a){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(i.kind){case 272:case 273:case 271:return!1}break;case 22:case 23:if(189!==i.kind)return!1}return r!==n&&!(t.decorators&&a===function(n){if(n.modifiers&&n.modifiers.length)return n.modifiers[0].kind;switch(n.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(n.asteriskToken)return 41;case 162:case 159:var t=e.getNameOfDeclaration(n);if(t)return t.kind}}(t))}(n,i,s)?a+o(s):a},getIndentation:function(){return a},getDelta:o,recomputeIndentation:function(e,r){n.SmartIndenter.shouldIndentChildNode(g,r,t,u)&&(a+=e?g.indentSize:-g.indentSize,i=n.SmartIndenter.shouldIndentChildNode(g,t)?g.indentSize:0)}};function o(e){return n.SmartIndenter.nodeWillIndentChild(g,t,e,u,!0)?i:0}}function A(n,r,a,i){for(var o=0,s=n;o0){var x=f(S,g);P(E,T.character,x)}else w(E,T.character)}}}else a||N(t.pos,r,!1)}function k(n,t,r){for(var a=n;ao)){var s=O(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),w(s,o+1-s))}}}function O(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function w(n,t){t&&E.push(e.createTextChangeFromStartLength(n,t,""))}function P(n,t,r){(t||r)&&E.push(e.createTextChangeFromStartLength(n,t,r))}}function f(n,t){if((!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},i=o=void 0),t.convertTabsToSpaces){var r=void 0,s=Math.floor(n/t.indentSize),c=n%t.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",t.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var l=Math.floor(n/t.tabSize),u=n-l*t.tabSize,d=void 0;return i||(i=[]),void 0===i[l]?i[l]=d=e.repeatString("\t",l):d=i[l],u?d+e.repeatString(" ",u):d}n.createTextRangeWithKind=function(n,t,r){var a={pos:n,end:t,kind:r};return e.Debug.isDebugging&&Object.defineProperty(a,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(r)}}),a},function(e){e[e.Unknown=-1]="Unknown"}(t||(t={})),n.formatOnEnter=function(n,t,r){var a=t.getLineAndCharacterOfPosition(n).line;if(0===a)return[];for(var i=e.getEndLinePosition(a,t);e.isWhiteSpaceSingleLine(t.text.charCodeAt(i));)i--;return e.isLineBreak(t.text.charCodeAt(i))&&i--,d({pos:e.getStartPositionOfLine(a-1,t),end:i+1},t,r,2)},n.formatOnSemicolon=function(e,n,t){return u(c(s(e,26,n)),n,t,3)},n.formatOnOpeningCurly=function(n,t,r){var a=s(n,18,t);if(!a)return[];var i=c(a.parent);return d({pos:e.getLineStartPositionForPosition(i.getStart(t),t),end:n},t,r,4)},n.formatOnClosingCurly=function(e,n,t){return u(c(s(e,19,n)),n,t,5)},n.formatDocument=function(e,n){return d({pos:0,end:e.text.length},e,n,0)},n.formatSelection=function(n,t,r,a){return d({pos:e.getLineStartPositionForPosition(n,r),end:t},r,a,1)},n.formatNodeGivenIndentation=function(e,t,r,a,i,o){var s={pos:0,end:t.text.length};return n.getFormattingScanner(t.text,r,s.pos,s.end,(function(n){return p(s,e,a,i,n,o,1,(function(e){return!1}),t)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),n.getRangeOfEnclosingComment=function(n,t,r,a){void 0===a&&(a=e.getTokenAtPosition(n,t));var i=e.findAncestor(a,e.isJSDoc);if(i&&(a=i.parent),!(a.getStart(n)<=t&&tt.end}var _=s(u,e,a),y=_.line===n.line||p(u,e,n.line,a);if(f){var h=g(e,a,l,!y);if(-1!==h)return h+r;if(-1!==(h=c(e,u,n,y,a,l)))return h+r}T(l,u,e,a,o)&&!y&&(r+=l.indentSize);var v=d(u,e,n.line,a);u=(e=u).parent,n=v?a.getLineAndCharacterOfPosition(e.getStart(a)):_}return r+i(l)}function s(e,n,t){var r=f(n,t),a=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(a)}function c(n,t,r,a,i,o){return(e.isDeclaration(n)||e.isStatementButNotDeclaration(n))&&(294===t.kind||!a)?h(r,i,o):-1}function l(n,t,r,a){var i=e.findNextToken(n,t,a);return i?18===i.kind?1:19===i.kind&&r===u(i,a).line?2:0:0}function u(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function d(n,t,r,a){if(!e.isCallExpression(n)||!e.contains(n.arguments,t))return!1;var i=n.expression.getEnd();return e.getLineAndCharacterOfPosition(a,i).line===r}function p(n,t,r,a){if(231===n.kind&&n.elseStatement===t){var i=e.findChildOfKind(n,90,a);return e.Debug.assert(void 0!==i),u(i,a).line===r}return!1}function f(e,n){return e.parent&&m(e.getStart(n),e.getEnd(),e.parent,n)}function m(n,t,r,a){switch(r.kind){case 172:return i(r.typeArguments);case 197:return i(r.properties);case 196:return i(r.elements);case 176:return i(r.members);case 248:case 205:case 206:case 164:case 163:case 168:case 165:case 174:case 169:return i(r.typeParameters)||i(r.parameters);case 249:case 218:case 250:case 251:case 326:return i(r.typeParameters);case 201:case 200:return i(r.typeArguments)||i(r.arguments);case 247:return i(r.declarations);case 261:case 265:return i(r.elements);case 193:case 194:return i(r.elements)}function i(i){return i&&e.rangeContainsStartEnd(function(e,n,t){for(var r=e.getChildren(t),a=1;a=0&&t=0;o--)if(27!==n[o].kind){if(r.getLineAndCharacterOfPosition(n[o].end).line!==i.line)return h(i,r,a);i=u(n[o],r)}return-1}function h(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,n,t)}function v(n,t,r,a){for(var i=0,o=0,s=n;sr.text.length)return i(a);if(a.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(t,r,void 0,!0),d=n.getRangeOfEnclosingComment(r,t,c||null);if(d&&3===d.kind)return function(n,t,r,a){var i=e.getLineAndCharacterOfPosition(n,t).line-1,o=e.getLineAndCharacterOfPosition(n,a.pos).line;if(e.Debug.assert(o>=0),i<=o)return b(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(i,n),c=v(s,t,n,r),l=c.column,u=c.character;if(0===l)return l;return 42===n.text.charCodeAt(s+u)?l-1:l}(r,t,a,d);if(!c)return i(a);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=t&&t0;){var i=n.text.charCodeAt(a);if(!e.isWhiteSpaceLike(i))break;a--}return b(e.getLineStartPositionForPosition(a,n),a,n,r)}(r,t,a);if(27===c.kind&&213!==c.parent.kind){var f=function(n,t,r){var a=e.findListItemInfo(n);return a&&a.listItemIndex>0?y(a.list.getChildren(),a.listItemIndex-1,t,r):-1}(c,r,a);if(-1!==f)return f}var h=function(e,n,t){return n&&m(e,e,n,t)}(t,c.parent,r);return h&&!e.rangeContainsRange(h,c)?_(h,r,a)+a.indentSize:function(n,t,r,a,s,c){var d,p=r;for(;p;){if(e.positionBelongsToNode(p,t,n)&&T(c,p,d,n,!0)){var f=u(p,n),m=l(r,p,a,n),_=0!==m?s&&2===m?c.indentSize:0:a!==f.line?c.indentSize:0;return o(p,f,void 0,_,n,!0,c)}var y=g(p,n,c,!0);if(-1!==y)return y;d=p,p=p.parent}return i(c)}(r,t,c,p,s,a)},t.getIndentationForNode=function(e,n,t,r){var a=t.getLineAndCharacterOfPosition(e.getStart(t));return o(e,a,n,0,t,!1,r)},t.getBaseIndentation=i,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(a||(a={})),t.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,t.childStartsOnTheSameLineWithElseInIfStatement=p,t.argumentStartsOnSameLineAsPreviousArgument=function(n,t,r,a){if(e.isCallOrNewExpression(n)){if(!n.arguments)return!1;var i=e.find(n.arguments,(function(e){return e.pos===t.pos}));if(!i)return!1;var o=n.arguments.indexOf(i);if(0===o)return!1;var s=n.arguments[o-1];if(r===e.getLineAndCharacterOfPosition(a,s.getEnd()).line)return!0}return!1},t.getContainingList=f,t.findFirstNonWhitespaceCharacterAndColumn=v,t.findFirstNonWhitespaceColumn=b,t.nodeWillIndentChild=E,t.shouldIndentChildNode=T}(n.SmartIndenter||(n.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(n){function t(n){var t=n.__pos;return e.Debug.assert("number"==typeof t),t}function r(n,t){e.Debug.assert("number"==typeof t),n.__pos=t}function a(n){var t=n.__end;return e.Debug.assert("number"==typeof t),t}function s(n,t){e.Debug.assert("number"==typeof t),n.__end=t}var c,l;function u(n,t){return e.skipTrivia(n,t,!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=n.LeadingTriviaOption||(n.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include"}(l=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));var d,p={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function f(e,n,t,r){return{pos:m(e,n,r),end:_(e,t,r)}}function m(n,t,r){var a=r.leadingTriviaOption;if(a===c.Exclude)return t.getStart(n);if(a===c.StartLine)return e.getLineStartPositionForPosition(t.getStart(n),n);if(a===c.JSDoc){var i=e.getJSDocCommentRanges(t,n.text);if(null==i?void 0:i.length)return e.getLineStartPositionForPosition(i[0].pos,n)}var o=t.getFullStart(),s=t.getStart(n);if(o===s)return s;var l=e.getLineStartPositionForPosition(o,n);if(e.getLineStartPositionForPosition(s,n)===l)return a===c.IncludeAll?o:s;var d=o>0?1:0,p=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,l)+d,n);return p=u(n.text,p),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,p),n)}function _(n,t,r){var a=t.end,i=r.trailingTriviaOption;if(i===l.Exclude||e.isExpression(t)&&i!==l.Include)return a;var o=e.skipTrivia(n.text,a,!0);return o===a||i!==l.Include&&!e.isLineBreak(n.text.charCodeAt(o-1))?a:o}function g(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.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={})),n.isThisTypeAnnotatable=function(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)};var y,h,v=function(){function n(n,t){this.newLineCharacter=n,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(n,t){e.Debug.assertEqual(n.fileName,t.fileName);for(var r=0,a=t.textChanges;r=g+2)break}if(n.statements.length){void 0===u&&(u=n.getLineAndCharacterOfPosition(n.statements[0].getStart()).line);var y=n.getLineAndCharacterOfPosition(m.end).line;if(u",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(n,t,r){return e.isStatement(n)||e.isClassElement(n)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?e.isParameter(t)?{suffix:", "}:{}:e.isStringLiteral(n)&&e.isImportDeclaration(n.parent)||e.isNamedImports(n)?{suffix:", "}:e.isImportSpecifier(n)?{suffix:","+(r?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(n)},n.prototype.insertNodeAtConstructorStart=function(n,t,r){var a=e.firstOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeBefore(n,a,r):this.replaceConstructorBody(n,t,i([r],t.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(n,t,r){var a=e.lastOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,i(t.body.statements,[r]))},n.prototype.replaceConstructorBody=function(n,t,r){this.replaceNode(n,t.body,e.factory.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(n,t,r){var a=m(n,t.getLastToken(),{});this.insertNodeAt(n,a,r,{prefix:e.isLineBreak(n.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtObjectStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtStartWorker=function(e,n,t){var r,a=null!==(r=this.guessIndentationFromExistingMembers(e,n))&&void 0!==r?r:this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,E(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,a))},n.prototype.guessIndentationFromExistingMembers=function(n,t){for(var r,a=t,i=0,o=E(t);i=0;r--){var a=t[r],i=a.span,o=a.newText;n=""+n.substring(0,i.start)+o+n.substring(e.textSpanEnd(i))}return n}function S(n){var r=e.visitEachChild(n,S,e.nullTransformationContext,x,S),i=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(i,t(n),a(n)),i}function x(n,r,i,o,s){var c=e.visitNodes(n,r,i,o,s);if(!c)return c;var l=c===n?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,t(n),a(n)),l}function L(n,t){return!(e.isInComment(n,t)||e.isInString(n,t)||e.isInTemplateString(n,t)||e.isInJSXText(n,t))}function A(e,n,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});var a=m(n,t,r),i=_(n,t,r);e.deleteRange(n,{pos:a,end:i})}function D(n,t,r,a){var i=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(a,r)),o=e.indexOfNode(i,a);e.Debug.assert(-1!==o),1!==i.length?(e.Debug.assert(!t.has(a),"Deleting a node twice"),t.add(a),n.deleteRange(r,{pos:b(r,a),end:o===i.length-1?_(r,a,{}):b(r,i[o+1])})):A(n,r,a)}n.ChangeTracker=v,n.getNewFileText=function(e,n,t,r){return y.newFileChangesWorker(void 0,n,e,t,r)},function(n){function t(n,t,r,i,o){var s=r.map((function(e){return 4===e?"":a(e,n,i).text})).join(i),c=e.createSourceFile("any file name",s,99,!0,t);return T(s,e.formatting.formatDocument(c,o))+i}function a(n,t,a){var i=function(n){var t=0,a=e.createTextWriter(n);function i(n,r){if(r||!function(n){return e.skipTrivia(n,0)===n.length}(n)){t=a.getTextPos();for(var i=0;e.isWhiteSpaceLike(n.charCodeAt(n.length-i-1));)i++;t-=i}}return{onEmitNode:function(e,n,a){n&&r(n,t),a(e,n),n&&s(n,t)},onBeforeEmitNodeArray:function(e){e&&r(e,t)},onAfterEmitNodeArray:function(e){e&&s(e,t)},onBeforeEmitToken:function(e){e&&r(e,t)},onAfterEmitToken:function(e){e&&s(e,t)},write:function(e){a.write(e),i(e,!1)},writeComment:function(e){a.writeComment(e)},writeKeyword:function(e){a.writeKeyword(e),i(e,!1)},writeOperator:function(e){a.writeOperator(e),i(e,!1)},writePunctuation:function(e){a.writePunctuation(e),i(e,!1)},writeTrailingSemicolon:function(e){a.writeTrailingSemicolon(e),i(e,!1)},writeParameter:function(e){a.writeParameter(e),i(e,!1)},writeProperty:function(e){a.writeProperty(e),i(e,!1)},writeSpace:function(e){a.writeSpace(e),i(e,!1)},writeStringLiteral:function(e){a.writeStringLiteral(e),i(e,!1)},writeSymbol:function(e,n){a.writeSymbol(e,n),i(e,!1)},writeLine:function(e){a.writeLine(e)},increaseIndent:function(){a.increaseIndent()},decreaseIndent:function(){a.decreaseIndent()},getText:function(){return a.getText()},rawWrite:function(e){a.rawWrite(e),i(e,!1)},writeLiteral:function(e){a.writeLiteral(e),i(e,!0)},getTextPos:function(){return a.getTextPos()},getLine:function(){return a.getLine()},getColumn:function(){return a.getColumn()},getIndent:function(){return a.getIndent()},isAtStartOfLine:function(){return a.isAtStartOfLine()},hasTrailingComment:function(){return a.hasTrailingComment()},hasTrailingWhitespace:function(){return a.hasTrailingWhitespace()},clear:function(){a.clear(),t=0}}}(a),o="\n"===a?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0},i).writeNode(4,n,t,i),{text:i.getText(),node:S(n)}}n.getTextChangesFromChanges=function(n,t,r,i){return e.mapDefined(e.group(n,(function(e){return e.sourceFile.path})),(function(n){for(var s=n[0].sourceFile,c=e.stableSort(n,(function(e,n){return e.range.pos-n.range.pos||e.range.end-n.range.end})),l=function(n){e.Debug.assert(c[n].range.end<=c[n+1].range.pos,"Changes overlap",(function(){return JSON.stringify(c[n].range)+" and "+JSON.stringify(c[n+1].range)}))},u=0;u0?{fileName:s.fileName,textChanges:p}:void 0}))},n.newFileChanges=function(n,r,a,i,o){var s=t(n,e.getScriptKindFromFileName(r),a,i,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},n.newFileChangesWorker=t,n.getNonformattedText=a}(y||(y={})),n.applyChanges=T,n.isValidLocationToAddComment=L,function(n){function t(n,t,r){if(r.parent.name){var a=e.Debug.checkDefined(e.getTokenAtPosition(t,r.pos-1));n.deleteRange(t,{pos:a.getStart(t),end:r.end})}else{A(n,t,e.getAncestor(r,258))}}n.deleteDeclaration=function(n,r,a,i){switch(i.kind){case 159:var o=i.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,a)?n.replaceNodeWithText(a,i,"()"):D(n,r,a,i);break;case 258:case 257:A(n,a,i,{leadingTriviaOption:a.imports.length&&i===e.first(a.imports).parent||i===e.find(a.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(i)?c.JSDoc:c.StartLine});break;case 195:var s=i.parent;194===s.kind&&i!==e.last(s.elements)?A(n,a,i):D(n,r,a,i);break;case 246:!function(n,t,r,a){var i=a.parent;if(284===i.kind)return void n.deleteNodeRange(r,e.findChildOfKind(i,20,r),e.findChildOfKind(i,21,r));if(1!==i.declarations.length)return void D(n,t,r,a);var o=i.parent;switch(o.kind){case 236:case 235:n.replaceNode(r,a,e.factory.createObjectLiteralExpression());break;case 234:A(n,r,i);break;case 229:A(n,r,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(n,r,a,i);break;case 158:D(n,r,a,i);break;case 262:var u=i.parent;1===u.elements.length?t(n,a,u):D(n,r,a,i);break;case 260:t(n,a,i);break;case 26:A(n,a,i,{trailingTriviaOption:l.Exclude});break;case 97:A(n,a,i,{leadingTriviaOption:c.Exclude});break;case 249:case 248:A(n,a,i,{leadingTriviaOption:e.hasJSDocNodes(i)?c.JSDoc:c.StartLine});break;default:e.isImportClause(i.parent)&&i.parent.name===i?function(n,t,r){if(r.namedBindings){var a=r.name.getStart(t),i=e.getTokenAtPosition(t,r.name.end);if(i&&27===i.kind){var o=e.skipTrivia(t.text,i.end,!1,!0);n.deleteRange(t,{pos:a,end:o})}else A(n,t,r.name)}else A(n,t,r.parent)}(n,a,i.parent):e.isCallExpression(i.parent)&&e.contains(i.parent.arguments,i)?D(n,r,a,i):A(n,a,i)}}}(h||(h={})),n.deleteNode=A}(e.textChanges||(e.textChanges={}))}(d||(d={})),function(e){!function(n){var t=e.createMultiMap(),r=new e.Map;function a(n){return e.isArray(n)?e.formatStringFromArgs(e.getLocaleSpecificMessage(n[0]),n.slice(1)):e.getLocaleSpecificMessage(n)}function s(e,n,t,r,a,i){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:a,commands:i?[i]:void 0}}function c(e,n){return{changes:e,commands:n}}function u(n,t,r){for(var a=0,i=d(n);a1)break}var u=a<2;return function(e){var n=e.fixId,t=e.fixAllDescription,r=l(e,["fixId","fixAllDescription"]);return u?r:o(o({},r),{fixId:n,fixAllDescription:t})}}(t,r))}))},n.getAllFixes=function(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)},n.createCombinedCodeActions=c,n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var a=[];return c(e.textChanges.ChangeTracker.with(n,(function(e){return u(n,t,(function(n){return r(e,n,a)}))})),0===a.length?void 0:a)},n.eachDiagnostic=u}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){var n,t;n=e.refactor||(e.refactor={}),t=new e.Map,n.registerRefactor=function(e,n){t.set(e,n)},n.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(t.values(),(function(e){return n.cancellationToken&&n.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(n)})))},n.getEditsForRefactor=function(e,n,r){var a=t.get(n);return a&&a.getEditsForAction(e,r)}}(d||(d={})),function(e){!function(n){var t="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.Debug.checkDefined(e.findAncestor(a,(function(n){return e.isAsExpression(n)||e.isTypeAssertionExpression(n)})),"Expected to find an assertion expression"),o=e.isAsExpression(i)?e.factory.createAsExpression(i.expression,e.factory.createKeywordTypeNode(151)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(151),i.expression);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,t,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){n.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(t){var r=t.sourceFile,a=e.textChanges.ChangeTracker.with(t,(function(n){var t=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);n.insertNodeAtEndOfScope(r,r,t)}));return[n.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",a,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="addMissingAsync",r=[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 a(r,a,i,o){var s=i((function(n){return function(n,t,r,a){if(a&&a.has(e.getNodeId(r)))return;null==a||a.add(e.getNodeId(r));var i=e.factory.updateModifiers(e.getSynthesizedDeepClone(r,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(r))));n.replaceNode(t,r,i)}(n,r.sourceFile,a,o)}));return n.createCodeFixAction(t,s,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)}function i(n,t){if(t){var r=e.getTokenAtPosition(n,t.start);return e.findAncestor(r,(function(r){return r.getStart(n)e.textSpanEnd(t)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(t,e.createTextSpanFromNode(r,n))}))}}n.registerCodeFix({fixIds:[t],errorCodes:r,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,o=n.cancellationToken,s=n.program,c=n.span,l=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(t,o),function(n,t){return function(r){var a=r.start,i=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},n)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,r)),u=i(t,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u){return[a(n,u,(function(t){return e.textChanges.ChangeTracker.with(n,t)}))]}},getAllCodeActions:function(t){var o=t.sourceFile,s=new e.Set;return n.codeFixAll(t,r,(function(n,r){var c=r.relatedInformation&&e.find(r.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=i(o,c);if(l){return a(t,l,(function(e){return e(n),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="addMissingAwait",r=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=i([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,r],a);function s(t,r,a,i,s,c){var l=t.sourceFile,p=t.program,f=t.cancellationToken,m=function(n,t,r,a,i){var s=function(n,t){if(e.isPropertyAccessExpression(n.parent)&&e.isIdentifier(n.parent.expression))return{identifiers:[n.parent.expression],isCompleteFix:!0};if(e.isIdentifier(n))return{identifiers:[n],isCompleteFix:!0};if(e.isBinaryExpression(n)){for(var r=void 0,a=!0,i=0,o=[n.left,n.right];ie.textSpanEnd(r)?"quit":e.isExpression(t)&&e.textSpansEqual(r,e.createTextSpanFromNode(t,n))}));return s&&function(n,t,r,a,i){var o=i.getDiagnosticsProducingTypeChecker().getDiagnostics(n,a);return e.some(o,(function(n){var a=n.start,i=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},r)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(n,t,r,a,i)&&u(s)?s:void 0}function u(n){return 32768&n.kind||!!e.findAncestor(n,(function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n||e.isBlock(n)&&(248===n.parent.kind||205===n.parent.kind||206===n.parent.kind||164===n.parent.kind)}))}function d(n,t,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l0)return[n.createCodeFixAction(t,i,e.Diagnostics.Add_const_to_unresolved_variable,t,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.Set;return n.codeFixAll(t,r,(function(e,n){return a(e,n.file,n.start,t.program,i)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="addMissingDeclareProperty",r=[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 a(n,t,r,a){var i=e.getTokenAtPosition(t,r);if(e.isIdentifier(i)){var o=i.parent;162!==o.kind||a&&!e.tryAddToSet(a,o)||n.insertModifierBefore(t,133,o)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Prefix_with_declare,t,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.Set;return n.codeFixAll(t,r,(function(e,n){return a(e,n.file,n.start,i)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.findAncestor(a,e.isDecorator);e.Debug.assert(!!i,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(i.expression,void 0,void 0);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Call_decorator_expression,t,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r);if(!e.isIdentifier(a))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(a.kind));var i=a.parent;if(!e.isParameter(i))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(a.kind));var o=i.parent.parameters.indexOf(i);e.Debug.assert(!i.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,i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,e.factory.createTypeReferenceNode(a,void 0),i.initializer);n.replaceNode(t,a,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Add_parameter_name,t,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,i)}function i(n){return function(n){return e.isFunctionLikeDeclaration(n)||246===n.kind||161===n.kind||162===n.kind}(n)&&o(n)}function o(n){return e.isFunctionLikeDeclaration(n)?n.parameters.some(o)||!n.type&&!!e.getJSDocReturnType(n):!n.type&&!!e.getJSDocType(n)}function s(n,t,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some((function(n){return!!e.getJSDocType(n)})))){if(!r.typeParameters){var a=e.getJSDocTypeParameterDeclarations(r);a.length&&n.insertTypeParameters(t,r,a)}var i=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,t);i&&n.insertNodeBefore(t,e.first(r.parameters),e.factory.createToken(20));for(var o=0,s=r.parameters;o1?(n.delete(t,c),n.insertNodeAfter(t,u,l)):n.replaceNode(t,u,l)}}function d(r){var a=[];return r.members&&r.members.forEach((function(e,r){if("constructor"!==r){var i=s(e,void 0);i&&a.push.apply(a,i)}else n.delete(t,e.valueDeclaration.parent)})),r.exports&&r.exports.forEach((function(n){if("prototype"===n.name){var t=n.declarations[0];if(1===n.declarations.length&&e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&e.isObjectLiteralExpression(t.parent.right))(r=s(t.parent.right.symbol,void 0))&&a.push.apply(a,r)}else{var r;(r=s(n,[e.factory.createToken(123)]))&&a.push.apply(a,r)}})),a;function s(r,a){var s=[];if(!(8192&r.flags||4096&r.flags))return s;var c,l,u=r.valueDeclaration,d=u.parent,p=d.right;if(c=u,l=p,!(e.isPropertyAccessExpression(c)?o(c)||e.isFunctionLike(l):e.every(c.properties,(function(n){return!!(e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)||e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)&&n.name||o(n))}))))return s;var f=d.parent&&230===d.parent.kind?d.parent:d;if(n.delete(t,f),!p)return s.push(e.factory.createPropertyDeclaration([],a,r.name,void 0,void 0,void 0)),s;if(e.isPropertyAccessExpression(u)&&(e.isFunctionExpression(p)||e.isArrowFunction(p)))return _(s,p,u.name);if(e.isObjectLiteralExpression(p))return e.flatMap(p.properties,(function(n){return e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)?s.concat(n):e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)?_(s,n.initializer,n.name):o(n)?s:[]}));if(e.isSourceFileJS(t))return s;if(!e.isPropertyAccessExpression(u))return s;var m=e.factory.createPropertyDeclaration(void 0,a,u.name,void 0,void 0,p);return e.copyLeadingComments(d.parent,m,t),s.push(m),s;function _(n,r,o){return e.isFunctionExpression(r)?function(n,r,o){var s=e.concatenate(a,i(r,129)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,r.parameters,void 0,r.body);return e.copyLeadingComments(d,c,t),n.concat(c)}(n,r,o):function(n,r,o){var s,c=r.body;s=227===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(a,i(r,129)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,r.parameters,void 0,s);return e.copyLeadingComments(d,u,t),n.concat(u)}(n,r,o)}}}}function i(n,t){return e.filter(n.modifiers,(function(e){return e.kind===t}))}function o(n){return!!n.name&&!(!e.isIdentifier(n.name)||"constructor"!==n.name.text)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start,r.program.getTypeChecker())}));return[n.createCodeFixAction(t,i,e.Diagnostics.Convert_function_to_an_ES2015_class,t,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return a(n,t.file,t.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t,r="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(n,t,r,a,i){var o,s=e.getTokenAtPosition(t,r);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(t,r)),e.isFunctionLikeDeclaration)){var d,f,m=new e.Map,_=e.isInJSFile(o),y=function(n,t){if(!n.body)return new e.Set;var r=new e.Set;return e.forEachChild(n.body,(function n(a){c(a,t,"then")?(r.add(e.getNodeId(a)),e.forEach(a.arguments,n)):c(a,t,"catch")?(r.add(e.getNodeId(a)),e.forEachChild(a,n)):l(a,t)?r.add(e.getNodeId(a)):e.forEachChild(a,n)})),r}(o,a),h=function(n,t,r,a){var i=new e.Map,o=e.createMultiMap();return e.forEachChild(n,(function n(s){if(e.isIdentifier(s)){var c=t.getSymbolAtLocation(s),l=c&&function(e,n){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===n}(c,a);if(c&&l){var d=g(t.getTypeAtLocation(s),t),p=e.getSymbolId(c).toString();if(!d||e.isFunctionLikeDeclaration(s.parent)||r.has(p)){if(s.parent&&(e.isParameter(s.parent)||e.isVariableDeclaration(s.parent)||e.isBindingElement(s.parent))){var f=s.text,m=o.get(f);if(m&&m.some((function(e){return e!==c}))){var _=u(s,o);i.set(p,_.identifier),r.set(p,_),o.add(f,c)}else{var y=e.getSynthesizedDeepClone(s);r.set(p,E(y)),o.add(f,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=u(v,o);r.set(p,b),o.add(v.text,c)}}}else e.forEachChild(s,n)})),e.getSynthesizedDeepCloneWithRenames(n,!0,i,t)}(o,a,m,i.sourceFile),v=h.body&&e.isBlock(h.body)?(d=h.body,f=[],e.forEachReturnStatement(d,(function(n){e.isReturnStatementWithFixablePromiseHandler(n)&&f.push(n)})),f):e.emptyArray,b={checker:a,synthNamesMap:m,setOfExpressionsToReturn:y,isInJSFile:_};if(v.length){n.insertLastModifierBefore(t,129,o);for(var T=function(r){e.forEachChild(r,(function a(i){if(e.isCallExpression(i)){var o=p(i,b);n.replaceNodeWithNodes(t,r,o)}else e.isFunctionLike(i)||e.forEachChild(i,a)}))},S=0,x=v;S0)return N;var R=g(i.checker.getTypeAtLocation(n),i.checker).getReturnType(),k=e.getSynthesizedDeepClone(x),O=i.checker.getPromisedTypeOfPromise(R)?e.factory.createAwaitExpression(k):k;if(S(a,i))return m(O,null===(u=a.typeArguments)||void 0===u?void 0:u[0]);var w=f(t,O,void 0);return t&&t.types.push(R),w;default:return d()}return e.emptyArray}function g(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function y(n,t,r){for(var a=[],i=0,o=t;i0)return}else e.isFunctionLike(i)||e.forEachChild(i,t)}))}return a}function h(n,t){var r,a=[];e.isFunctionLikeDeclaration(n)?n.parameters.length>0&&(r=function n(t){if(e.isIdentifier(t))return i(t);var r=e.flatMap(t.elements,(function(t){return e.isOmittedExpression(t)?[]:[n(t.name)]}));return function(n,t,r){void 0===t&&(t=e.emptyArray);void 0===r&&(r=[]);return{kind:1,bindingPattern:n,elements:t,types:r}}(t,r)}(n.parameters[0].name)):e.isIdentifier(n)&&(r=i(n));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(n){var r,i=function(e){return e.symbol?e.symbol:t.checker.getSymbolAtLocation(e)}((r=n).original?r.original:r);return i&&t.synthNamesMap.get(e.getSymbolId(i).toString())||E(n,a)}}function v(n){return!n||(T(n)?!n.identifier.text:e.every(n.elements,v))}function b(e){return T(e)?e.identifier:e.bindingPattern}function E(e,n){return void 0===n&&(n=[]),{kind:0,identifier:e,types:n,hasBeenDeclared:!1}}function T(e){return 0===e.kind}function S(n,t){return!!n.original&&t.setOfExpressionsToReturn.has(e.getNodeId(n.original))}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){o=!0;var a=e.textChanges.ChangeTracker.with(t,(function(e){return s(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t)}));return o?[n.createCodeFixAction(r,a,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,a,(function(n,t){return s(n,t.file,t.start,e.program.getTypeChecker(),e)}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(t||(t={}))}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){function t(n,t,r,a){for(var i=0,o=n.imports;i1?[[i(r),o(r)],!0]:[[o(r)],!0]:[[i(r)],!1]}(u.arguments[0],t):void 0;return d?(a.replaceNodeWithNodes(n,r.parent,d[0]),d[1]):(a.replaceRangeWithText(n,e.createRange(c.getStart(n),u.pos),"export default"),!0)}a.delete(n,r.parent)}else e.isExportsOrModuleExportsOrAlias(n,c.expression)&&function(n,t,r,a){var i=t.left.name.text,o=a.get(i);if(void 0!==o){var s=[p(void 0,o,t.right),f([e.factory.createExportSpecifier(o,i)])];r.replaceNodeWithNodes(n,t.parent,s)}else!function(n,t,r){var a=n.left,i=n.right,o=n.parent,s=a.name.text;if(!(e.isFunctionExpression(i)||e.isArrowFunction(i)||e.isClassExpression(i))||i.name&&i.name.text!==s)r.replaceNodeRangeWithNodes(t,a.expression,e.findChildOfKind(a,24,t),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:a.getStart(t),end:i.getStart(t)},e.factory.createToken(92),{suffix:" "}),i.name||r.insertName(t,i,s);var c=e.findChildOfKind(o,26,t);c&&r.delete(t,c)}}(t,n,r)}(n,r,a,s);var m,_;return!1}(t,a,h,c,g)}default:return!1}}function i(e){return f(void 0,e)}function o(n){return f([e.factory.createExportSpecifier(void 0,"default")],n)}function s(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_"+e;return n.additional.add(e),e}function c(n){var t=e.createMultiMap();return function n(t,r){e.isIdentifier(t)&&function(e){var n=e.parent;switch(n.kind){case 198:return n.name!==e;case 195:case 262:return n.propertyName!==e;default:return!0}}(t)&&r(t);t.forEachChild((function(e){return n(e,r)}))}(n,(function(e){return t.add(e.text,e)})),t}function l(n,t,r){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(t,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),n,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.factory.converters.convertToFunctionBlock(e.getSynthesizedDeepClone(r.body)))}function u(n,t,r,a){return"default"===t?e.makeImport(e.factory.createIdentifier(n),void 0,r,a):e.makeImport(void 0,[d(t,n)],r,a)}function d(n,t){return e.factory.createImportSpecifier(void 0!==n&&n!==t?e.factory.createIdentifier(n):void 0,e.factory.createIdentifier(t))}function p(n,t,r){return e.factory.createVariableStatement(n,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,void 0,r)],2))}function f(n,t){return e.factory.createExportDeclaration(void 0,void 0,!1,n&&e.factory.createNamedExports(n),void 0===t?void 0:e.factory.createStringLiteral(t))}n.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(i){var o=i.sourceFile,l=i.program,u=i.preferences,d=e.textChanges.ChangeTracker.with(i,(function(n){if(function(n,t,i,o,l){var u={original:c(n),additional:new e.Set},d=function(n,t,a){var i=new e.Map;return r(n,(function(n){var r=n.name,o=r.text,c=r.originalKeywordKind;!i.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||t.resolveName(o,n,111551,!0))&&i.set(o,s("_"+o,a))})),i}(n,t,u);!function(n,t,a){r(n,(function(r,i){if(!i){var o=r.name.text;a.replaceNode(n,r,e.factory.createIdentifier(t.get(o)||o))}}))}(n,d,i);for(var p=!1,f=0,m=n.statements;f=e.ModuleKind.ES2015)return r?1:2;if(e.isInJSFile(n))return e.isExternalModule(n)?1:3;for(var a=0,i=n.statements;a"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return n.replaceNode(t,s,e.factory.createToken(84)),n.insertText(t,c.end," = "),n.insertText(t,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i,o=r.sourceFile,s=r.program,c=r.span,l=e.textChanges.ChangeTracker.with(r,(function(e){i=a(e,o,c.start,s.getTypeChecker())}));return i?[n.createCodeFixAction(t,l,i,t,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){a(n,t.file,t.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixIncorrectNamedTupleSyntax",r=[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];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,i=r.span,o=function(n,t){var r=e.getTokenAtPosition(n,t);return e.findAncestor(r,(function(e){return 191===e.kind}))}(a,i.start),s=e.textChanges.ChangeTracker.with(r,(function(n){return function(n,t,r){if(!r)return;var a=r.type,i=!1,o=!1;for(;179===a.kind||180===a.kind||185===a.kind;)179===a.kind?i=!0:180===a.kind&&(o=!0),a=a.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(i?e.factory.createToken(57):void 0),a);if(s===r)return;n.replaceNode(t,r,s)}(n,a,o)}));return[n.createCodeFixAction(t,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,t,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[t]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t=[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 r(n,t,r,a){var i=e.getTokenAtPosition(n,t),o=i.parent;if(a!==e.Diagnostics.No_overload_matches_this_call.code&&a!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=r.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===i){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(i),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(i,l)}else if(e.isImportSpecifier(o)&&o.name===i){e.Debug.assertNode(i,e.isIdentifier,"Expected an identifier for spelling (import)");var u=function(n,t,r){if(!r||!e.isStringLiteralLike(r.moduleSpecifier))return;var a=e.getResolvedModule(n,r.moduleSpecifier.text);return a?t.program.getSourceFile(a.resolvedFileName):void 0}(n,r,e.findAncestor(i,e.isImportDeclaration));u&&u.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(i,u.symbol))}else if(e.isJsxAttribute(o)&&o.name===i){e.Debug.assertNode(i,e.isIdentifier,"Expected an identifier for JSX attribute");var d=e.findAncestor(i,e.isJsxOpeningLikeElement),p=c.getContextualTypeForArgumentAtIndex(d,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(i,p)}else{var f=e.getMeaningFromLocation(i),m=e.getTextOfNode(i);e.Debug.assert(void 0!==m,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(i,m,function(e){var n=0;4&e&&(n|=1920);2&e&&(n|=788968);1&e&&(n|=111551);return n}(f))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}}function a(n,t,r,a,i){var o=e.symbolName(a);if(!e.isIdentifierText(o,i)&&e.isPropertyAccessExpression(r.parent)){var s=a.valueDeclaration;e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?n.replaceNode(t,r,e.factory.createIdentifier(o)):n.replaceNode(t,r.parent,e.factory.createElementAccessExpression(r.parent.expression,e.factory.createStringLiteral(o)))}else n.replaceNode(t,r,e.factory.createIdentifier(o))}n.registerCodeFix({errorCodes:t,getCodeActions:function(t){var i=t.sourceFile,o=t.errorCode,s=r(i,t.span.start,t,o);if(s){var c=s.node,l=s.suggestedSymbol,u=t.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(t,(function(e){return a(e,i,c,l,u)}));return[n.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,e.symbolName(l)],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){var i=r(t.file,t.start,e,t.code),o=e.host.getCompilationSettings().target;i&&a(n,e.sourceFile,i.node,i.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t,r="returnValueCorrect",a=[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 i(n,t,r){var a=n.createSymbol(4,t.escapedText);a.type=n.getTypeAtLocation(r);var i=e.createSymbolTable([a]);return n.createAnonymousType(void 0,i,[],[],void 0,void 0)}function o(n,r,a,o){if(r.body&&e.isBlock(r.body)&&1===e.length(r.body.statements)){var c=e.first(r.body.statements);if(e.isExpressionStatement(c)&&s(n,r,n.getTypeAtLocation(c.expression),a,o))return{declaration:r,kind:t.MissingReturnStatement,expression:c.expression,statement:c,commentSource:c.expression};if(e.isLabeledStatement(c)&&e.isExpressionStatement(c.statement)){var l=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(c.label,c.statement.expression)]);if(s(n,r,i(n,c.label,c.statement.expression),a,o))return e.isArrowFunction(r)?{declaration:r,kind:t.MissingParentheses,expression:l,statement:c,commentSource:c.statement.expression}:{declaration:r,kind:t.MissingReturnStatement,expression:l,statement:c,commentSource:c.statement.expression}}else if(e.isBlock(c)&&1===e.length(c.statements)){var u=e.first(c.statements);if(e.isLabeledStatement(u)&&e.isExpressionStatement(u.statement)){l=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(u.label,u.statement.expression)]);if(s(n,r,i(n,u.label,u.statement.expression),a,o))return{declaration:r,kind:t.MissingReturnStatement,expression:l,statement:c,commentSource:u}}}}}function s(n,t,r,a,i){if(i){var o=n.getSignatureFromDeclaration(t);if(o){e.hasSyntacticModifier(t,256)&&(r=n.createPromiseType(r));var s=n.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=n.createAnonymousType(void 0,e.createSymbolTable(),[s],[],void 0,void 0)}else r=n.getAnyType()}return n.isTypeAssignableTo(r,a)}function c(n,t,r,a){var i=e.getTokenAtPosition(t,r);if(i.parent){var s=e.findAncestor(i.parent,e.isFunctionLikeDeclaration);switch(a){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,i)))return;return o(n,s,n.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),l=n.getContextualTypeForArgumentAtIndex(s.parent,c);if(!l)return;return o(n,s,l,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(i)||!e.isVariableLike(i.parent)&&!e.isJsxAttribute(i.parent))return;var u=function(n){switch(n.kind){case 246:case 159:case 195:case 162:case 285:return n.initializer;case 277:return n.initializer&&(e.isJsxExpression(n.initializer)?n.initializer.expression:void 0);case 286:case 161:case 288:case 328:case 322:return}}(i.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return o(n,u,n.getTypeAtLocation(i.parent),!0)}}}function l(n,t,r,a){e.suppressLeadingAndTrailingTrivia(r);var i=e.probablyUsesSemicolons(t);n.replaceNode(t,a,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function u(n,t,r,a,i,o){var s=o||e.needsParentheses(a)?e.factory.createParenthesizedExpression(a):a;e.suppressLeadingAndTrailingTrivia(i),e.copyComments(i,s),n.replaceNode(t,r.body,s)}function d(n,t,r,a){n.replaceNode(t,r.body,e.factory.createParenthesizedExpression(a))}function p(t,a,i){var o=e.textChanges.ChangeTracker.with(t,(function(e){return l(e,t.sourceFile,a,i)}));return n.createCodeFixAction(r,o,e.Diagnostics.Add_a_return_statement,"fixAddReturnStatement",e.Diagnostics.Add_all_missing_return_statement)}function f(t,a,i){var o=e.textChanges.ChangeTracker.with(t,(function(e){return d(e,t.sourceFile,a,i)}));return n.createCodeFixAction(r,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"}(t||(t={})),n.registerCodeFix({errorCodes:a,fixIds:["fixAddReturnStatement","fixRemoveBracesFromArrowFunctionBody","fixWrapTheBlockWithParen"],getCodeActions:function(a){var i=a.program,o=a.sourceFile,s=a.span.start,l=a.errorCode,d=c(i.getTypeChecker(),o,s,l);if(d)return d.kind===t.MissingReturnStatement?e.append([p(a,d.expression,d.statement)],e.isArrowFunction(d.declaration)?function(t,a,i,o){var s=e.textChanges.ChangeTracker.with(t,(function(e){return u(e,t.sourceFile,a,i,o,!1)}));return n.createCodeFixAction(r,s,e.Diagnostics.Remove_braces_from_arrow_function_body,"fixRemoveBracesFromArrowFunctionBody",e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(a,d.declaration,d.expression,d.commentSource):void 0):[f(a,d.declaration,d.expression)]},getAllCodeActions:function(t){return n.codeFixAll(t,a,(function(n,r){var a=c(t.program.getTypeChecker(),r.file,r.start,r.code);if(a)switch(t.fixId){case"fixAddReturnStatement":l(n,r.file,a.expression,a.statement);break;case"fixRemoveBracesFromArrowFunctionBody":if(!e.isArrowFunction(a.declaration))return;u(n,r.file,a.declaration,a.expression,a.commentSource,!1);break;case"fixWrapTheBlockWithParen":if(!e.isArrowFunction(a.declaration))return;d(n,r.file,a.declaration,a.expression);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t,r="addMissingMember",a=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],i="addMissingMember";function o(n,t,r,a){var i=e.getTokenAtPosition(n,t);if(e.isIdentifier(i)||e.isPrivateIdentifier(i)){var o=i.parent;if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(r.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){var l=e.find(c.declarations,e.isClassLike);if(l||!e.isPrivateIdentifier(i)){var u=l||e.find(c.declarations,e.isInterfaceDeclaration);if(u&&!a.isSourceFileFromExternalLibrary(u.getSourceFile())){var d=(s.target||s)!==r.getDeclaredTypeOfSymbol(c);if(d&&(e.isPrivateIdentifier(i)||e.isInterfaceDeclaration(u)))return;var p=u.getSourceFile(),f=(d?32:0)|(e.startsWithUnderscore(i.text)?8:0),m=e.isSourceFileJS(p);return{kind:1,token:i,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:f,parentDeclaration:u,declSourceFile:p,isJSFile:m}}var _=e.find(c.declarations,e.isEnumDeclaration);return!_||e.isPrivateIdentifier(i)||a.isSourceFileFromExternalLibrary(_.getSourceFile())?void 0:{kind:0,token:i,parentDeclaration:_}}}}}}function s(n,t,r,a,i){var o=a.text;if(i){if(218===r.kind)return;var s=r.name.getText(),l=c(e.factory.createIdentifier(s),o);n.insertNodeAfter(t,r,l)}else if(e.isPrivateIdentifier(a)){var u=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),p=d(r);p?n.insertNodeAfter(t,p,u):n.insertNodeAtClassStart(t,r,u)}else{var f=e.getFirstConstructorWithBody(r);if(!f)return;var m=c(e.factory.createThis(),o);n.insertNodeAtConstructorEnd(t,f,m)}}function c(n,t){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(n,t),e.factory.createIdentifier("undefined")))}function l(n,t,r){var a;if(213===r.parent.parent.kind){var i=r.parent.parent,o=r.parent===i.left?i.right:i.left,s=n.getWidenedType(n.getBaseTypeOfLiteralType(n.getTypeAtLocation(o)));a=n.typeToTypeNode(s,t,void 0)}else{var c=n.getContextualType(r.parent);a=c?n.typeToTypeNode(c,void 0,void 0):void 0}return a||e.factory.createKeywordTypeNode(128)}function u(n,t,r,a,i,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,a,void 0,i,void 0),c=d(r);c?n.insertNodeAfter(t,c,s):n.insertNodeAtClassStart(t,r,s)}function d(n){for(var t,r=0,a=n.members;r=e.ModuleKind.ES2015&&o99){s=e.textChanges.ChangeTracker.with(t,(function(t){if(e.getTsConfigObjectLiteralExpression(a)){var r=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(t,a,r)}}));i.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return i.length?i:void 0}}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixPropertyAssignment",r=[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 a(n,t,r){n.replaceNode(t,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function i(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isShorthandPropertyAssignment)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=i(r.sourceFile,r.span.start),s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,[e.Diagnostics.Change_0_to_1,"=",":"],t,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,i(n.file,n.start))}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingClass(r).heritageClauses,i=a[0].getFirstToken();return 93===i.kind?{extendsToken:i,heritageClauses:a}:void 0}function i(n,t,r,a){if(n.replaceNode(t,r,e.factory.createToken(116)),2===a.length&&93===a[0].token&&116===a[1].token){var i=a[1].getFirstToken(),o=i.getFullStart();n.replaceRange(t,{pos:o,end:o},e.factory.createToken(27));for(var s=t.text,c=i.end;c":">","}":"}"};function o(n,t,r,a,o){var s=r.getText()[a];if(function(n){return e.hasProperty(i,n)}(s)){var c=o?i[s]:"{"+e.quote(s,t)+"}";n.replaceRangeWithText(r,{pos:a,end:a+1},c)}}}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="unusedIdentifier",r="unusedIdentifier_prefix",a="unusedIdentifier_delete",i="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(n,t,r){n.replaceNode(t,r.parent,e.factory.createKeywordTypeNode(151))}function c(r,i){return n.createCodeFixAction(t,r,i,a,e.Diagnostics.Delete_all_unused_declarations)}function l(n,t,r){n.delete(t,e.Debug.checkDefined(e.cast(r.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function u(n){return 99===n.kind?e.tryCast(n.parent,e.isImportDeclaration):void 0}function d(n,t){return e.isVariableDeclarationList(t.parent)&&e.first(t.parent.getChildren(n))===t}function p(e,n,t){e.delete(n,229===t.parent.kind?t.parent:t)}function f(n,t,r){e.forEach(r.elements,(function(e){return n.delete(t,e)}))}function m(n,t,r,a){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===a.kind&&(a=e.cast(a.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(a)&&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}(a)&&(n.replaceNode(r,a,e.factory.createIdentifier("_"+a.text)),e.isParameter(a.parent)&&e.getJSDocParameterTags(a.parent).forEach((function(t){e.isIdentifier(t.name)&&n.replaceNode(r,t.name,e.factory.createIdentifier("_"+t.name.text))}))))}function _(n,t,r,a,i,o){!function(n,t,r,a,i,o){var s=n.parent;e.isParameter(s)?function(n,t,r,a,i,o){void 0===o&&(o=!1);(function(n,t,r){var a=n.parent;switch(a.kind){case 164:var i=t.getSymbolAtLocation(a.name);if(e.isMemberSymbolInBaseType(i,t))return!1;case 165:case 248:return!0;case 205:case 206:var o=a.parameters,s=o.indexOf(n);return e.Debug.assert(-1!==s,"The parameter should already be in the list"),r?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(a)}})(r,a,o)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,a,t))?r.modifiers.forEach((function(e){n.deleteModifier(t,e)})):(n.delete(t,r),function(n,t,r,a,i){e.FindAllReferences.Core.eachSignatureCall(r.parent,a,i,(function(e){var a=r.parent.parameters.indexOf(r);e.arguments.length>a&&n.delete(t,e.arguments[a])}))}(n,t,r,i,a)))}(t,r,s,a,i,o):t.delete(r,e.isImportClause(s)?n:e.isComputedPropertyName(s)?s.parent:s)}(t,r,n,a,i,o),e.isIdentifier(t)&&function(n,t,r,a){e.FindAllReferences.Core.eachSymbolReferenceInFile(r,a,t,(function(r){e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),e.isBinaryExpression(r.parent)&&e.isExpressionStatement(r.parent.parent)&&r.parent.left===r&&n.delete(t,r.parent.parent)}))}(r,n,t,a)}n.registerCodeFix({errorCodes:o,getCodeActions:function(a){var o=a.errorCode,g=a.sourceFile,y=a.program,h=y.getTypeChecker(),v=y.getSourceFiles(),b=e.getTokenAtPosition(g,a.span.start);if(e.isJSDocTemplateTag(b))return[c(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(g,b)})),e.Diagnostics.Remove_template_tag)];if(29===b.kind)return[c(L=e.textChanges.ChangeTracker.with(a,(function(e){return l(e,g,b)})),e.Diagnostics.Remove_type_parameters)];var E=u(b);if(E)return[c(L=e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(g,E)})),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(E)])];if(e.isObjectBindingPattern(b.parent)){if(e.isParameter(b.parent.parent)){var T=b.parent.elements,S=[T.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(T,(function(e){return e.getText(g)})).join(", ")];return[c(e.textChanges.ChangeTracker.with(a,(function(e){return f(e,g,b.parent)})),S)]}return[c(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(g,b.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(d(g,b))return[c(e.textChanges.ChangeTracker.with(a,(function(e){return p(e,g,b.parent)})),e.Diagnostics.Remove_variable_statement)];var x=[];if(135===b.kind){var L=e.textChanges.ChangeTracker.with(a,(function(e){return s(e,g,b)})),A=e.cast(b.parent,e.isInferTypeNode).typeParameter.name.text;x.push(n.createCodeFixAction(t,L,[e.Diagnostics.Replace_infer_0_with_unknown,A],i,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var D=e.textChanges.ChangeTracker.with(a,(function(e){return _(g,b,e,h,v,!1)}));if(D.length){A=e.isComputedPropertyName(b.parent)?b.parent:b;x.push(c(D,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(g)]))}}var C=e.textChanges.ChangeTracker.with(a,(function(e){return m(e,o,g,b)}));return C.length&&x.push(n.createCodeFixAction(t,C,[e.Diagnostics.Prefix_0_with_an_underscore,b.getText(g)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),x},fixIds:[r,a,i],getAllCodeActions:function(t){var c=t.sourceFile,g=t.program,y=g.getTypeChecker(),h=g.getSourceFiles();return n.codeFixAll(t,o,(function(n,o){var g=e.getTokenAtPosition(c,o.start);switch(t.fixId){case r:m(n,o.code,c,g);break;case a:if(135===g.kind)break;var v=u(g);v?n.delete(c,v):e.isJSDocTemplateTag(g)?n.delete(c,g):29===g.kind?l(n,c,g):e.isObjectBindingPattern(g.parent)?e.isParameter(g.parent.parent)?f(n,c,g.parent):n.delete(c,g.parent.parent):d(c,g)?p(n,c,g.parent):_(c,g,n,y,h,!0);break;case i:135===g.kind&&s(n,c,g);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function a(n,t,r,a,i){var o=e.getTokenAtPosition(t,r),s=e.findAncestor(o,e.isStatement);if(s.getStart(t)!==o.getStart(t)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:i,start:r,length:a});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 231:if(l.elseStatement){if(e.isBlock(s.parent))break;return void n.replaceNode(t,s,e.factory.createBlock(e.emptyArray))}case 233:case 234:return void n.delete(t,l)}if(e.isBlock(s.parent)){var u=r+a,d=e.Debug.checkDefined(function(e,n){for(var t,r=0,a=e;rP.length)G(S,m.getSignatureFromDeclaration(f[f.length-1]),v,y,o(S));else e.Debug.assert(f.length===P.length,"Declarations and signatures should match count"),p(function(n,t,r,a,s){for(var c=n[0],l=n[0].minArgumentCount,u=!1,d=0,p=n;d=c.parameters.length&&(!e.signatureHasRestParameter(f)||e.signatureHasRestParameter(c))&&(c=f)}var m=c.parameters.length-(e.signatureHasRestParameter(c)?1:0),_=c.parameters.map((function(e){return e.name})),g=i(m,_,void 0,l,!1);if(u){var y=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),h=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),_[m]||"rest",m>=l?e.factory.createToken(57):void 0,y,void 0);g.push(h)}return function(n,t,r,a,i,s,c){return e.factory.createMethodDeclaration(void 0,n,void 0,t,r?e.factory.createToken(57):void 0,a,i,s,o(c))}(a,t,r,void 0,g,void 0,s)}(P,y,E,v,S))}}function G(n,a,i,o,c){var f=function(n,r,a,i,o,s,c,l,p){var f=n.program,m=f.getTypeChecker(),_=e.getEmitScriptTarget(f.getCompilerOptions()),g=1073742081|(0===r?268435456:0),y=m.signatureToSignatureDeclaration(a,164,i,g,t(n));if(!y)return;var h=y.typeParameters,v=y.parameters,b=y.type;if(p){if(h){var E=e.sameMap(h,(function(n){var t,r=n.constraint,a=n.default;r&&((t=u(r,_))&&(r=t.typeNode,d(p,t.symbols)));a&&((t=u(a,_))&&(a=t.typeNode,d(p,t.symbols)));return e.factory.updateTypeParameterDeclaration(n,n.name,r,a)}));h!==E&&(h=e.setTextRange(e.factory.createNodeArray(E,h.hasTrailingComma),h))}var T=e.sameMap(v,(function(n){var t=u(n.type,_),r=n.type;return t&&(r=t.typeNode,d(p,t.symbols)),e.factory.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,r,n.initializer)}));if(v!==T&&(v=e.setTextRange(e.factory.createNodeArray(T,v.hasTrailingComma),v)),b){var S=u(b,_);S&&(b=S.typeNode,d(p,S.symbols))}}return e.factory.updateMethodDeclaration(y,void 0,o,y.asteriskToken,s,c?e.factory.createToken(57):void 0,h,v,b,l)}(s,n,a,r,i,o,E,c,l);f&&p(f)}}function a(n,t,r,a,i,o,s){var c=n.typeToTypeNode(r,a,o,s);if(c&&e.isImportTypeNode(c)){var l=u(c,i);if(l)return d(t,l.symbols),l.typeNode}return c}function i(n,t,r,a,i){for(var o=[],s=0;s=a?e.factory.createToken(57):void 0,i?void 0:r&&r[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(n){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral("Method not implemented.",0===n)]))],!0)}function s(n,t,r){var a=e.getTsConfigObjectLiteralExpression(t);if(a){var i=l(a,"compilerOptions");if(void 0!==i){var o=i.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,u=r;s0)return[n.createCodeFixAction(t,i,e.Diagnostics.Convert_to_a_bigint_numeric_literal,t,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixAddModuleReferTypeMissingTypeof",r=[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 a(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(99===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(192===r.parent.kind,"Token parent should be an ImportType"),r.parent}function i(n,t,r){var a=e.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);n.replaceNode(t,r,a)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_missing_typeof,t,e.Diagnostics.Add_missing_typeof)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,e.sourceFile,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function a(n,t){var r=e.getTokenAtPosition(n,t).parent.parent;if((e.isBinaryExpression(r)||(r=r.parent,e.isBinaryExpression(r)))&&e.nodeIsMissing(r.operatorToken))return r}function i(n,t,r){var a=function(n){var t=[],r=n;for(;;){if(e.isBinaryExpression(r)&&e.nodeIsMissing(r.operatorToken)&&27===r.operatorToken.kind){if(t.push(r.left),e.isJsxChild(r.right))return t.push(r.right),t;if(e.isBinaryExpression(r.right)){r=r.right;continue}return}return}}(r);a&&n.replaceNode(t,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),a,e.factory.createJsxJsxClosingFragment()))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.program.getCompilerOptions().jsx;if(2===o||3===o){var s=r.sourceFile,c=r.span,l=a(s,c.start);if(l){var u=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,s,l)}));return[n.createCodeFixAction(t,u,e.Diagnostics.Wrap_in_JSX_fragment,t,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(e.sourceFile,t.start);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixConvertToMappedObjectType",r=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(a.parent))return{indexSignature:a,container:e.isInterfaceDeclaration(a.parent)?a.parent:e.cast(a.parent.parent,e.isTypeAliasDeclaration)}}function o(n,t,r){var a,o,s=r.indexSignature,c=r.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(n){return!e.isIndexSignatureDeclaration(n)})),u=e.first(s.parameters),d=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(141):void 0,d,s.questionToken,s.type),f=e.factory.createIntersectionTypeNode(i(e.getAllSuperTypeNodes(c),[p],l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray));n.replaceNode(t,c,(a=c,o=f,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,o)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,s=r.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[n.createCodeFixAction(t,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],t,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&o(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="removeAccidentalCallParentheses",r=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(a){var i=e.textChanges.ChangeTracker.with(r,(function(e){e.deleteRange(r.sourceFile,{pos:a.expression.end,end:a.end})}));return[n.createCodeFixActionWithoutFixAll(t,i,e.Diagnostics.Remove_parentheses)]}},fixIds:[t]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function a(n,t,r){var a=e.tryCast(e.getTokenAtPosition(t,r.start),(function(e){return 130===e.kind})),i=a&&e.tryCast(a.parent,e.isAwaitExpression);if(i){var o=i;if(e.isParenthesizedExpression(i.parent)){var s=e.getLeftmostExpression(i.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(i.parent.pos,t);c&&102!==c.kind&&(o=i.parent)}}n.replaceNode(t,o,i.expression)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Remove_unnecessary_await,t,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport";function a(n,t){return e.findAncestor(e.getTokenAtPosition(n,t.start),e.isImportDeclaration)}function i(n,t,r){if(t){var a=e.Debug.checkDefined(t.importClause);n.replaceNode(r.sourceFile,t,e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(a,a.isTypeOnly,a.name,void 0),t.moduleSpecifier)),n.insertNodeAfter(r.sourceFile,t,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(a,a.isTypeOnly,void 0,a.namedBindings),t.moduleSpecifier))}}n.registerCodeFix({errorCodes:t,fixIds:[r],getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return i(e,a(t.sourceFile,t.span),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Split_into_two_separate_import_declarations,r,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){i(n,a(e.sourceFile,t),e)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixConvertConstToLet",r=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,i=r.span,o=r.program,s=function(n,t,r){var a=e.getTokenAtPosition(n,t),i=r.getTypeChecker().getSymbolAtLocation(a);if(i)return i.valueDeclaration.parent.parent}(a,i.start,o),c=e.textChanges.ChangeTracker.with(r,(function(e){return function(e,n,t){if(!t)return;var r=t.getStart();e.replaceRangeWithText(n,{pos:r,end:r+5},"let")}(e,a,s)}));return[n.createCodeFixAction(t,c,e.Diagnostics.Convert_const_to_let,t,e.Diagnostics.Convert_const_to_let)]},fixIds:[t]})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){var t="fixExpectedComma",r=[e.Diagnostics._0_expected.code];function a(n,t,r){var a=e.getTokenAtPosition(n,t);return 26===a.kind&&a.parent&&(e.isObjectLiteralExpression(a.parent)||e.isArrayLiteralExpression(a.parent))?{node:a}:void 0}function i(n,t,r){var a=r.node,i=e.factory.createToken(27);n.replaceNode(t,a,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=a(o,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,s)}));return[n.createCodeFixAction(t,c,[e.Diagnostics.Change_0_to_1,";",","],t,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=a(t.file,t.start,t.code);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(n){function t(n,t){void 0===t&&(t=!0);var r=n.file,a=e.getRefactorContextSpan(n),i=e.getTokenAtPosition(r,a.start),o=i.parent&&1&e.getSyntacticModifierFlags(i.parent)&&t?i.parent:e.getParentNodeInSpan(i,r,a);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),l=!!(512&c);if(!(1&c)||!l&&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 u=o;return u.name&&e.isIdentifier(u.name)?{info:{exportNode:u,exportName:u.name,wasDefault:l,exportingModuleSymbol:s}}:void 0;case 229:var d=o;if(!(2&d.declarationList.flags)||1!==d.declarationList.declarations.length)return;var p=e.first(d.declarationList.declarations);if(!p.initializer)return;return e.Debug.assert(!l,"Can't have a default flag here"),e.isIdentifier(p.name)?{info:{exportNode:d,exportName:p.name,wasDefault:l,exportingModuleSymbol:s}}:void 0;default:return}}function r(n,t){return e.factory.createImportSpecifier(n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}n.registerRefactor("Convert export",{getAvailableActions:function(n){var r=t(n,"invoked"===n.triggerReason);if(!r)return e.emptyArray;if(void 0===r.error){var a=r.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:a,actions:[{name:r.info.wasDefault?"Convert default export to named export":"Convert named export to default export",description:a}]}]}return n.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:r.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:r.error}]}]:e.emptyArray},getEditsForAction:function(n,a){return e.Debug.assert("Convert default export to named export"===a||"Convert named export to default export"===a,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(n,(function(a){var i,o,s,c,l,u;return o=n.file,s=n.program,c=e.Debug.checkDefined(null===(i=t(n))||void 0===i?void 0:i.info,"context must have info"),l=a,u=n.cancellationToken,function(n,t,r,a){var i=t.wasDefault,o=t.exportNode,s=t.exportName;if(i)r.delete(n,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:r.insertNodeAfter(n,c,e.factory.createToken(87));break;case 229:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,a,n)){r.replaceNode(n,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:r.deleteModifier(n,c),r.insertNodeAfter(n,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.assertNever(o,"Unexpected exportNode kind "+o.kind)}}}(o,c,l,s.getTypeChecker()),void function(n,t,a,i){var o=t.wasDefault,s=t.exportName,c=t.exportingModuleSymbol,l=n.getTypeChecker(),u=e.Debug.checkDefined(l.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(n.getSourceFiles(),l,i,u,c,s.text,o,(function(n){var t=n.getSourceFile();o?function(n,t,a,i){var o=t.parent;switch(o.kind){case 198:a.replaceNode(n,t,e.factory.createIdentifier(i));break;case 262:case 267:var s=o;a.replaceNode(n,s,r(i,s.name.text));break;case 259:var c=o;e.Debug.assert(c.name===t,"Import clause name should match provided ref"),s=r(i,t.text);var l=c.namedBindings;if(l)if(260===l.kind){a.deleteRange(n,{pos:t.getStart(n),end:l.getStart(n)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,n):1,d=e.makeImport(void 0,[r(i,t.text)],c.parent.moduleSpecifier,u);a.insertNodeAfter(n,c.parent,d)}else a.delete(n,t),a.insertNodeAtEndOfList(n,l.elements,s);else a.replaceNode(n,t,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(o)}}(t,n,a,s.text):function(n,t,r){var a,i,o=t.parent;switch(o.kind){case 198:r.replaceNode(n,t,e.factory.createIdentifier("default"));break;case 262:var s=e.factory.createIdentifier(o.name.text);1===o.parent.elements.length?r.replaceNode(n,o.parent,s):(r.delete(n,o),r.insertNodeBefore(n,o.parent,s));break;case 267:r.replaceNode(n,o,(a="default",i=o.name.text,e.factory.createExportSpecifier(a===i?void 0:e.factory.createIdentifier(a),e.factory.createIdentifier(i))));break;default:e.Debug.assertNever(o,"Unexpected parent kind "+o.kind)}}(t,n,a)}))}(s,c,l,u)})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(n){function t(n,t){void 0===t&&(t=!0);var r=n.file,a=e.getRefactorContextSpan(n),i=e.getTokenAtPosition(r,a.start),o=t?e.findAncestor(i,e.isImportDeclaration):e.getParentNodeInSpan(i,r,a);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=p.pos?f.getEnd():p.getEnd()),_=d?function(e){for(;e.parent;){if(o(e)&&!o(e.parent))return e;e=e.parent}return}(p):function(e,n){for(;e.parent;){if(o(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}return}(p,m),g=_&&o(_)?function(n){if(i(n))return n;if(e.isVariableStatement(n)){var t=e.getSingleVariableOfVariableStatement(n),r=null==t?void 0:t.initializer;return r&&i(r)?r:void 0}return n.expression&&i(n.expression)?n.expression:void 0}(_):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=a.getTypeChecker();return e.isConditionalExpression(g)?function(n,t){var r=n.condition,a=u(n.whenTrue);if(!a||t.isNullableType(t.getTypeAtLocation(a)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&l(r,a.expression))return{info:{finalExpression:a,occurrences:[r],expression:n}};if(e.isBinaryExpression(r)){var i=c(a.expression,r);return i?{info:{finalExpression:a,occurrences:i,expression:n}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(g,y):function(n){if(55!==n.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=u(n.right);if(!t)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=c(t.expression,n.left);return r?{info:{finalExpression:t,occurrences:r,expression:n}}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(g)}}function c(n,t){for(var r=[];e.isBinaryExpression(t)&&55===t.operatorToken.kind;){var a=l(e.skipParentheses(n),e.skipParentheses(t.right));if(!a)break;r.push(a),n=a,t=t.left}var i=l(n,t);return i&&r.push(i),r.length>0?r:void 0}function l(n,t){return(e.isIdentifier(t)||e.isPropertyAccessExpression(t))&&function(n,t){for(;e.isCallExpression(n)||e.isPropertyAccessExpression(n);){var r=e.isPropertyAccessExpression(t)?t.name.getText():t.getText();if(e.isPropertyAccessExpression(n)&&n.name.getText()===r)break;n=n.expression}for(;e.isPropertyAccessExpression(n)&&e.isPropertyAccessExpression(t);){if(n.name.getText()!==t.name.getText())return!1;n=n.expression,t=t.expression}return e.isIdentifier(n)&&e.isIdentifier(t)&&n.getText()===t.getText()}(n,t)?t:void 0}function u(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)?u(n.left):!e.isPropertyAccessExpression(n)&&!e.isCallExpression(n)||e.isOptionalChain(n)?void 0:n}n.registerRefactor(r,{getAvailableActions:function(n){var t=s(n,"invoked"===n.triggerReason);if(!t)return e.emptyArray;if(!t.error)return[{name:r,description:a,actions:[{name:r,description:a}]}];if(n.preferences.provideRefactorNotApplicableReason)return[{name:r,description:a,actions:[{name:r,description:a,notApplicableReason:t.error}]}];return e.emptyArray},getEditsForAction:function(n,t){var r=s(n);return r&&r.info?{edits:e.textChanges.ChangeTracker.with(n,(function(t){return function(n,t,r,a,i){var o=a.finalExpression,s=a.occurrences,c=a.expression,l=s[s.length-1],u=function n(t,r,a){if(e.isPropertyAccessExpression(r)||e.isCallExpression(r)){var i=n(t,r.expression,a),o=a.length>0?a[a.length-1]:void 0,s=(null==o?void 0:o.getText())===r.expression.getText();if(s&&a.pop(),e.isCallExpression(r))return s?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return s?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name)}return r}(t,o,s);u&&(e.isPropertyAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?r.replaceNodeRange(n,l,o,u):e.isConditionalExpression(c)&&r.replaceNode(n,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}(n.file,n.program.getTypeChecker(),t,e.Debug.checkDefined(r.info,"context must have info"))})),renameFilename:void 0,renameLocation:void 0}:void 0}})}(n.convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(n){!function(t){var r="Convert overload list to single signature",a=e.Diagnostics.Convert_overload_list_to_single_signature.message;function i(e){switch(e.kind){case 163:case 164:case 168:case 165:case 169:case 248:return!0}return!1}function o(n,t,r){var a=e.getTokenAtPosition(n,t),o=e.findAncestor(a,i);if(o){var s=r.getTypeChecker(),c=o.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(t){return e.getSourceFileOfNode(t)===n}))&&i(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(n){return!!n.typeParameters||e.some(n.parameters,(function(n){return!!n.decorators||!!n.modifiers||!e.isIdentifier(n.name)}))}))){var p=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var f=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===f})))return d}}}}}}}n.registerRefactor(r,{getEditsForAction:function(n){var t=n.file,r=n.startPosition,a=n.program,i=o(t,r,a);if(!i)return;var s=a.getTypeChecker(),c=i[i.length-1],l=c;switch(c.kind){case 163:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(i),c.type);break;case 164:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(i),c.type,c.body);break;case 168:l=e.factory.updateCallSignature(c,c.typeParameters,d(i),c.type);break;case 165:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,d(i),c.body);break;case 169:l=e.factory.updateConstructSignature(c,c.typeParameters,d(i),c.type);break;case 248:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(i),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l===c)return;var u=e.textChanges.ChangeTracker.with(n,(function(e){e.replaceNodeRange(t,i[0],i[i.length-1],l)}));return{renameFilename:void 0,renameLocation:void 0,edits:u};function d(n){var t=n[n.length-1];return e.isFunctionLikeDeclaration(t)&&t.body&&(n=n.slice(0,n.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(n,p)))])}function p(n){var t=e.map(n.parameters,f);return e.setEmitFlags(e.factory.createTupleTypeNode(t),e.some(t,(function(n){return!!e.length(e.getSyntheticLeadingComments(n))}))?0:1)}function f(n){e.Debug.assert(e.isIdentifier(n.name));var t=e.setTextRange(e.factory.createNamedTupleMember(n.dotDotDotToken,n.name,n.questionToken,n.type||e.factory.createKeywordTypeNode(128)),n),r=n.symbol&&n.symbol.getDocumentationComment(s);if(r){var a=e.displayPartsToString(r);a.length&&e.setSyntheticLeadingComments(t,[{text:"*\n"+a.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(n){var t=n.file,i=n.startPosition,s=n.program;return o(t,i,s)?[{name:r,description:a,actions:[{name:r,description:a}]}]:e.emptyArray}})}(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(n){!function(t){var r,a,i,o;function s(n){var t=l(n.file,e.getRefactorContextSpan(n),"invoked"===n.triggerReason),r=t.targetRange;if(void 0===r)return t.errors&&0!==t.errors.length&&n.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:T(t.errors)}]},{name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[{description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),name:"constant_extract_error",notApplicableReason:T(t.errors)}]}]:e.emptyArray;var a=function(n,t){var r=p(n,t),a=r.scopes,i=r.readsAndWrites,o=i.functionErrorsPerScope,s=i.constantErrorsPerScope;return a.map((function(n,t){var r,a,i=function(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}(n),c=function(n){return e.isClassLike(n)?"readonly field":"constant"}(n),l=e.isFunctionLikeDeclaration(n)?function(n){switch(n.kind){case 165:return"constructor";case 205:case 248:return n.name?"function '"+n.name.text+"'":e.ANONYMOUS;case 206:return"arrow function";case 164:return"method '"+n.name.getText()+"'";case 166:return"'get "+n.name.getText()+"'";case 167:return"'set "+n.name.getText()+"'";default:throw e.Debug.assertNever(n,"Unexpected scope kind "+n.kind)}}(n):e.isClassLike(n)?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"}(n):function(e){return 254===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(n);return 1===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"global"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"module"]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[i,l]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==t||e.isClassLike(n)||(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:a,errors:s[t]}}}))}(r,n);if(void 0===a)return e.emptyArray;for(var i,o,s=[],c=new e.Map,u=[],d=new e.Map,f=0,m=0,_=a;m<_.length;m++){var g=_[m],y=g.functionExtraction,h=g.constantExtraction,v=y.description;if(0===y.errors.length?c.has(v)||(c.set(v,!0),s.push({description:v,name:"function_scope_"+f})):i||(i={description:v,name:"function_scope_"+f,notApplicableReason:T(y.errors)}),0===h.errors.length){var b=h.description;d.has(b)||(d.set(b,!0),u.push({description:b,name:"constant_scope_"+f}))}else o||(o={description:v,name:"constant_scope_"+f,notApplicableReason:T(h.errors)});f++}var E=[];return s.length?E.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:s}):n.preferences.provideRefactorNotApplicableReason&&i&&E.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[i]}),u.length?E.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:u}):n.preferences.provideRefactorNotApplicableReason&&o&&E.push({name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[o]}),E.length?E:e.emptyArray;function T(e){var n=e[0].messageText;return"string"!=typeof n&&(n=n.messageText),n}}function c(n,t){var r=l(n.file,e.getRefactorContextSpan(n)).targetRange,i=/^function_scope_(\d+)$/.exec(t);if(i){var o=+i[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(n,t,r){var i=p(n,t),o=i.scopes,s=i.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(n,t,r,i,o,s){var c,l,u=r.usages,d=r.typeParameterUsages,p=r.substitutions,y=s.program.getTypeChecker(),h=e.getEmitScriptTarget(s.program.getCompilerOptions()),b=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),E=t.getSourceFile(),T=e.getUniqueName(e.isClassLike(t)?"newMethod":"newFunction",E),S=e.isInJSFile(t),x=e.factory.createIdentifier(T),L=[],A=[];u.forEach((function(n,r){var a;if(!S){var i=y.getTypeOfSymbolAtLocation(n.symbol,n.node);i=y.getBaseTypeOfLiteralType(i),a=e.codefix.typeToAutoImportableTypeNode(y,b,i,t,h,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,r,void 0,a);L.push(o),2===n.usage&&(l||(l=[])).push(n),A.push(e.factory.createIdentifier(r))}));var D=e.arrayFrom(d.values()).map((function(e){return{type:e,declaration:f(e)}})).sort(m),C=0===D.length?void 0:D.map((function(e){return e.declaration})),I=void 0!==C?C.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)})):void 0;if(e.isExpression(n)&&!S){var N=y.getContextualType(n);c=y.typeToTypeNode(N,t,1)}var R,k=function(n,t,r,a,i){var o,s=void 0!==r||t.length>0;if(e.isBlock(n)&&!s&&0===a.size)return{body:e.factory.createBlock(n.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.factory.createReturnStatement(n)]);if(s||a.size){var u=e.visitNodes(l,(function n(i){if(!c&&e.isReturnStatement(i)&&s){var l=_(t,r);return i.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(i.expression,n)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(i)||e.isClassLike(i);var d=a.get(e.getNodeId(i).toString()),p=d?e.getSynthesizedDeepClone(d):e.visitEachChild(i,n,e.nullTransformationContext);return c=u,p})).slice();if(s&&!i&&e.isStatement(n)){var d=_(t,r);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(n,i,l,p,!!(o.facts&a.HasReturn)),O=k.body,w=k.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(O),e.isClassLike(t)){var P=S?[]:[e.factory.createModifier(120)];o.facts&a.InStaticRegion&&P.push(e.factory.createModifier(123)),o.facts&a.IsAsyncFunction&&P.push(e.factory.createModifier(129)),R=e.factory.createMethodDeclaration(void 0,P.length?P:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,x,void 0,C,L,c,O)}else R=e.factory.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,x,C,L,c,O);var M=e.textChanges.ChangeTracker.fromContext(s),F=function(n,t){return e.find(function(n){if(e.isFunctionLikeDeclaration(n)){var t=n.body;if(e.isBlock(t))return t.statements}else{if(e.isModuleBlock(n)||e.isSourceFile(n))return n.statements;if(e.isClassLike(n))return n.members;e.assertType(n)}return e.emptyArray}(t),(function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)}))}((g(o.range)?e.last(o.range):o.range).end,t);F?M.insertNodeBefore(s.file,F,R,!0):M.insertNodeAtEndOfScope(s.file,t,R);b.writeFixes(M);var G=[],B=function(n,t,r){var i=e.factory.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&a.InStaticRegion?e.factory.createIdentifier(n.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,i)}return i}(t,o,T),U=e.factory.createCallExpression(B,I,A);o.facts&a.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U));o.facts&a.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U));v(n)&&(U=e.factory.createJsxExpression(void 0,U));if(i.length&&!l)if(e.Debug.assert(!w,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var V=i[0];G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),U)],V.parent.flags)))}else{for(var j=[],H=[],K=i[0].parent.flags,W=!1,q=0,z=i;q0,"Found no members");for(var i=!0,o=0,s=a;on)return r||a[0];if(i&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;i=!1}r=c}return void 0===r?e.Debug.fail():r}(n.pos,t);g.insertNodeBefore(o.file,T,b,!0),g.replaceNode(o.file,n,E)}else{var S=e.factory.createVariableDeclaration(p,void 0,m,_),x=function(n,t){var r;for(;void 0!==n&&n!==t;){if(e.isVariableDeclaration(n)&&n.initializer===r&&e.isVariableDeclarationList(n.parent)&&n.parent.declarations.length>1)return n;r=n,n=n.parent}}(n,t);if(x){g.insertNodeBefore(o.file,x,S);E=e.factory.createIdentifier(p);g.replaceNode(o.file,n,E)}else if(230===n.parent.kind&&t===e.findAncestor(n,d)){var L=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));g.replaceNode(o.file,n.parent,L)}else{L=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));if(0===(T=function(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var a=n;a!==t;a=a.parent)d(a)&&(r=a);for(a=(r||n).parent;;a=a.parent){if(h(a)){for(var i=void 0,o=0,s=a.statements;on.pos)break;i=c}return!i&&e.isCaseClause(a)?(e.Debug.assert(e.isSwitchStatement(a.parent.parent),"Grandparent isn't a switch statement"),a.parent.parent):e.Debug.checkDefined(i,"prevStatement failed to get set")}e.Debug.assert(a!==t,"Didn't encounter a block-like before encountering scope")}}(n,t)).pos?g.insertNodeAtTopOfFile(o.file,L,!1):g.insertNodeBefore(o.file,T,L,!1),230===n.parent.kind)g.delete(o.file,n.parent);else{E=e.factory.createIdentifier(p);v(n)&&(E=e.factory.createJsxExpression(void 0,E)),g.replaceNode(o.file,n,E)}}}var A=g.getChanges(),D=n.getSourceFile().fileName,C=e.getRenameLocation(A,D,p,!0);return{renameFilename:D,renameLocation:C,edits:A}}(e.isExpression(c)?c:c.statements[0].expression,o[r],l[r],n.facts,t)}(r,n,o)}e.Debug.fail("Unrecognized action name")}function l(n,t,i){void 0===i&&(i=!0);var o=t.length;if(0===o&&!i)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractEmpty)]};var s=0===o&&i,c=e.getTokenAtPosition(n,t.start),l=s?function(n){return e.findAncestor(n,(function(n){return n.parent&&y(n)&&!e.isBinaryExpression(n.parent)}))}(c):e.getParentNodeInSpan(c,n,t),d=e.findTokenOnLeftOfPosition(n,e.textSpanEnd(t)),p=s?l:e.getParentNodeInSpan(d,n,t),f=[],m=a.None;if(!l||!p)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};if(l.parent!==p.parent)return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};if(l!==p){if(!h(l.parent))return{errors:[e.createFileDiagnostic(n,t.start,o,r.cannotExtractRange)]};for(var _=[],g=0,v=l.parent.statements;g=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractSuper)),!0}else m|=a.UsesThis;break;case 206:e.forEachChild(i,(function n(t){if(e.isThis(t))m|=a.UsesThis;else{if(e.isClassLike(t)||e.isFunctionLike(t)&&!e.isArrowFunction(t))return!1;e.forEachChild(t,n)}}));case 249:case 248:e.isSourceFile(i.parent)&&void 0===i.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(i,r.functionWillNotBeVisibleInTheNewScope));case 218:case 205:case 164:case 165:case 166:case 167:return!1}var d=l;switch(i.kind){case 231:case 244:l=0;break;case 227:i.parent&&244===i.parent.kind&&i.parent.finallyBlock===i&&(l=4);break;case 282:case 281:l|=1;break;default:e.isIterationStatement(i,!1)&&(l|=3)}switch(i.kind){case 186:case 107:m|=a.UsesThis;break;case 242:var p=i.label;(c||(c=[])).push(p.escapedText),e.forEachChild(i,n),c.pop();break;case 238:case 237:(p=i.label)?e.contains(c,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(238===i.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 210:m|=a.IsAsyncFunction;break;case 216:m|=a.IsGenerator;break;case 239:4&l?m|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(i,n)}l=d}(n),o}}function u(n){return e.isStatement(n)?[n]:e.isExpressionNode(n)?e.isExpressionStatement(n.parent)?[n.parent]:n:void 0}function d(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function p(n,t){var i=t.file,o=function(n){var t=g(n.range)?e.first(n.range):n.range;if(n.facts&a.UsesThis){var r=e.getContainingClass(t);if(r){var i=e.findAncestor(t,e.isFunctionLikeDeclaration);return i?[i,r]:[r]}}for(var o=[];;)if(159===(t=t.parent).kind&&(t=e.findAncestor(t,(function(n){return e.isFunctionLikeDeclaration(n)})).parent),d(t)&&(o.push(t),294===t.kind))return o}(n);return{scopes:o,readsAndWrites:function(n,t,i,o,s,c){var l,u,d=new e.Map,p=[],f=[],m=[],_=[],y=[],h=new e.Map,v=[],b=g(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===b){var E=n.range,T=e.first(E).getStart(),S=e.last(E).end;u=e.createFileDiagnostic(o,T,S-T,r.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(u=e.createDiagnosticForNode(b,r.uselessConstantType));for(var x=0,L=t;x=l)return g;if(C.set(g,l),y){for(var h=0,v=p;h0){for(var O=new e.Map,w=0,P=N;void 0!==P&&w=0)return;var a=e.isIdentifier(r)?K(r):s.getSymbolAtLocation(r);if(a){var i=e.find(y,(function(e){return e.symbol===a}));if(i)if(e.isVariableDeclaration(i)){var o=i.symbol.id.toString();h.has(o)||(v.push(i),h.set(o,!0))}else l=l||i}e.forEachChild(r,t)}))}for(var V=function(t){var a=p[t];if(t>0&&(a.usages.size>0||a.typeParameterUsages.size>0)){var i=g(n.range)?n.range[0]:n.range;_[t].push(e.createDiagnosticForNode(i,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(p[t].usages.forEach((function(n){2===n.usage&&(s=!0,106500&n.symbol.flags&&n.symbol.valueDeclaration&&e.hasEffectiveModifier(n.symbol.valueDeclaration,64)&&(o=n.symbol.valueDeclaration))})),e.Debug.assert(g(n.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!g(n.range)){var c=e.createDiagnosticForNode(n.range,r.cannotWriteInExpression);m[t].push(c),_[t].push(c)}else if(o&&t>0){c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor);m[t].push(c),_[t].push(c)}else if(l){c=e.createDiagnosticForNode(l,r.cannotExtractExportedEntity);m[t].push(c),_[t].push(c)}},j=0;jr.pos}));if(-1!==i){var o=a[i];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[a[i]],afterLast:a[i+1]};if(!(r.pos>o.getStart(t))){var s=e.findIndex(a,(function(e){return e.end>r.end}),i);if(-1===s||!(0===s||a[s].getStart(t)=2&&e.every(n,(function(n){return function(n,t){if(e.isRestParameter(n)){var r=t.getTypeAtLocation(n);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!n.modifiers&&!n.decorators&&e.isIdentifier(n.name)}(n,t)}))}(n.parameters,t))return!1;switch(n.kind){case 248:return p(n)&&d(n,t);case 164:return d(n,t);case 165:return e.isClassDeclaration(n.parent)?p(n.parent)&&d(n,t):f(n.parent.parent)&&d(n,t);case 205:case 206:return f(n.parent)}return!1}(i,r)&&e.rangeContainsRange(i,a))||i.body&&e.rangeContainsRange(i.body,a)?void 0:i}function d(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function p(n){return!!n.name||!!e.findModifier(n,87)}function f(n){return e.isVariableDeclaration(n)&&e.isVarConst(n)&&e.isIdentifier(n.name)&&!n.type}function m(n){return n.length>0&&e.isThis(n[0].name)}function _(n){return m(n)&&(n=e.factory.createNodeArray(n.slice(1),n.hasTrailingComma)),n}function g(n,t){var r=_(n.parameters),a=e.isRestParameter(e.last(r)),i=a?t.slice(0,r.length-1):t,o=e.map(i,(function(n,t){var a,i,o=y(r[t]),s=(a=o,i=n,e.isIdentifier(i)&&e.getTextOfIdentifierOrLiteral(i)===a?e.factory.createShorthandPropertyAssignment(a):e.factory.createPropertyAssignment(a,i));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),e.copyComments(n,s),s}));if(a&&t.length>=r.length){var s=t.slice(r.length-1),c=e.factory.createPropertyAssignment(y(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function y(n){return e.getTextOfIdentifierOrLiteral(n.name)}n.registerRefactor(r,{getEditsForAction:function(n,t){e.Debug.assert(t===r,"Unexpected action name");var d=n.file,p=n.startPosition,f=n.program,h=n.cancellationToken,v=n.host,b=u(d,p,f.getTypeChecker());if(!b||!h)return;var E=function(n,t,r){var u=function(n){switch(n.kind){case 248:return n.name?[n.name]:[e.Debug.checkDefined(e.findModifier(n,87),"Nameless function declaration should be a default export")];case 164:return[n.name];case 165:var t=e.Debug.checkDefined(e.findChildOfKind(n,132,n.getSourceFile()),"Constructor declaration should have constructor keyword");return 218===n.parent.kind?[n.parent.parent.name,t]:[t];case 206:return[n.parent.name];case 205:return n.name?[n.name,n.parent.name]:[n.parent.name];default:return e.Debug.assertNever(n,"Unexpected function declaration kind "+n.kind)}}(n),d=e.isConstructorDeclaration(n)?function(n){switch(n.parent.kind){case 249:var t=n.parent;return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless class declaration should be a default export")];case 218:var r=n.parent,a=n.parent.parent,i=r.name;return i?[i,a.name]:[a.name]}}(n):[],p=e.deduplicate(i(u,d),e.equateValues),f=t.getTypeChecker(),m=function(t){for(var r={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:r,valid:!0},p=e.map(u,_),f=e.map(d,_),m=e.isConstructorDeclaration(n),g=0,y=t;g0;){var o=a.shift();e.copyTrailingComments(n[o],i,t,3,!1),r(o,i)}}}(r,t,i),s=u(0,r),c=s[0],l=s[1],p=s[2];if(c===r.length){var f=e.factory.createNoSubstitutionTemplateLiteral(l);return o(p,f),f}var m=[],_=e.factory.createTemplateHead(l);o(p,_);for(var g=c;g328}));return r.kind<156?r:r.getFirstToken(n)}},t.prototype.getLastToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n),r=e.lastOrUndefined(t);if(r)return r.kind<156?r:r.getLastToken(n)},t.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},t}();function a(t,r,a,i){for(e.scanner.setTextPos(r);r=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);var a=this.getFullText();return"\n"===a[n]&&"\r"===a[n-1]?n-1:n},t.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},t.prototype.computeNamedDeclarations=function(){var n=e.createMultiMap();return this.forEachChild((function a(i){switch(i.kind){case 248:case 205:case 164:case 163:var o=i,s=r(o);if(s){var c=function(e){var t=n.get(e);t||n.set(e,t=[]);return t}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(i,a);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:t(i),e.forEachChild(i,a);break;case 159:if(!e.hasSyntacticModifier(i,92))break;case 246:case 195:var u=i;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,a);break}u.initializer&&a(u.initializer);case 288:case 162:case 161:t(i);break;case 264:var d=i;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,a):a(d.exportClause.name));break;case 258:var p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(260===p.namedBindings.kind?t(p.namedBindings):e.forEach(p.namedBindings.elements,a)));break;case 213:0!==e.getAssignmentDeclarationKind(i)&&t(i);default:e.forEachChild(i,a)}})),n;function t(e){var t=r(e);t&&n.add(t,e)}function r(n){var t=e.getNonAssignedNameOfDeclaration(n);return t&&(e.isComputedPropertyName(t)&&e.isPropertyAccessExpression(t.expression)?t.expression.name.text:e.isPropertyName(t)?e.getNameFromPropertyName(t):void 0)}},t}(t),h=function(){function n(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}return n.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},n}();function v(n){var t=!0;for(var r in n)if(e.hasProperty(n,r)&&!b(r)){t=!1;break}if(t)return n;var a={};for(var r in n){if(e.hasProperty(n,r))a[b(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=n[r]}return a}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function E(){return{target:1,jsx:1}}e.toEditorSettings=v,e.displayPartsToString=function(n){return n?e.map(n,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=E,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var T=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var r=0,a=n.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=n,this.hostCancellationToken.isCancellationRequested())},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},n}();e.ThrottledCancellationToken=C;var I=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],N=i(I,["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function R(n){var t=function(n){switch(n.kind){case 10:case 14:case 8:if(157===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(n.parent)||197!==n.parent.parent.kind&&278!==n.parent.parent.kind||n.parent.name!==n?void 0:n.parent}return}(n);return t&&(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))?t:void 0}function k(n,t,r,a){var i=e.getNameFromPropertyName(n.name);if(!i)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(i))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,(function(r){return e.isObjectLiteralExpression(n.parent)&&t.isTypeInvalidDueToUnionDiscriminant(r,n.parent)?void 0:r.getProperty(i)}));if(a&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(i)))return[o];return 0===s.length?e.mapDefined(r.types,(function(e){return e.getProperty(i)})):s}e.createLanguageService=function(n,t,r){var a,s;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),s=void 0===r?e.LanguageServiceMode.Semantic:"boolean"==typeof r?r?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:r;var c,l,u=new S(n),d=0,p=new D(n.getCancellationToken&&n.getCancellationToken()),f=n.getCurrentDirectory();function m(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var _=e.hostUsesCaseSensitiveFileNames(n),g=e.createGetCanonicalFileName(_),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return _},getCurrentDirectory:function(){return f},getProgram:E,fileExists:e.maybeBind(n,n.fileExists),readFile:e.maybeBind(n,n.readFile),getDocumentPositionMapper:e.maybeBind(n,n.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(n,n.getSourceFileLike),log:m});function h(e){var n=c.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '"+e+"'.");throw t.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),t}return n}function b(){var r,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),n.getProjectVersion){var i=n.getProjectVersion();if(i){if(l===i&&!(null===(r=n.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(n)))return;l=i}}var o=n.getTypeRootsVersion?n.getTypeRootsVersion():0;d!==o&&(m("TypeRoots version has changed; provide new program"),c=void 0,d=o);var u=new T(n,g),h=u.getRootFileNames(),v=n.hasInvalidatedResolution||e.returnFalse,b=e.maybeBind(n,n.hasChangedAutomaticTypeDirectiveNames),E=u.getProjectReferences();if(!e.isProgramUptoDate(c,h,u.compilationSettings(),(function(e,t){return n.getScriptVersion(t)}),D,v,b,E)){var S=u.compilationSettings(),x={getSourceFile:function(n,t,r,a){return C(n,e.toPath(n,f,g),t,r,a)},getSourceFileByPath:C,getCancellationToken:function(){return p},getCanonicalFileName:g,useCaseSensitiveFileNames:function(){return _},getNewLine:function(){return e.getNewLineCharacter(S,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:D,readFile:function(t){var r=e.toPath(t,f,g),a=u&&u.getEntryByPath(r);if(a)return e.isString(a)?void 0:e.getSnapshotText(a.scriptSnapshot);return n.readFile&&n.readFile(t)},getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),realpath:e.maybeBind(n,n.realpath),directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:function(t,r,a,i,o){return e.Debug.checkDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,a,i,o)},onReleaseOldSourceFile:function(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r)},hasInvalidatedResolution:v,hasChangedAutomaticTypeDirectiveNames:b,trace:e.maybeBind(n,n.trace),resolveModuleNames:e.maybeBind(n,n.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(n,n.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(n,n.useSourceOfProjectReferenceRedirect)};null===(a=n.setCompilerHost)||void 0===a||a.call(n,x);var L=t.getKeyForCompilationSettings(S),A={rootNames:h,options:S,host:x,oldProgram:c,projectReferences:E};return c=e.createProgram(A),u=void 0,y.clearCache(),void c.getTypeChecker()}function D(t){var r=e.toPath(t,f,g),a=u&&u.getEntryByPath(r);return a?!e.isString(a):!!n.fileExists&&n.fileExists(t)}function C(n,r,a,i,o){e.Debug.assert(void 0!==u,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=u&&u.getOrCreateEntryByPath(n,r);if(s){if(!o){var l=c&&c.getSourceFileByPath(r);if(l)return e.Debug.assertEqual(s.scriptKind,l.scriptKind,"Registered script kind should match new script kind."),t.updateDocumentWithKey(n,r,S,L,s.scriptSnapshot,s.version,s.scriptKind)}return t.acquireDocumentWithKey(n,r,S,L,s.scriptSnapshot,s.version,s.scriptKind)}}}function E(){if(s!==e.LanguageServiceMode.Syntactic)return b(),c;e.Debug.assert(void 0===c)}function x(n,t,r){var a=e.normalizePath(n);e.Debug.assert(r.some((function(n){return e.normalizePath(n)===a}))),b();var i=e.mapDefined(r,(function(e){return c.getSourceFile(e)})),o=h(n);return e.DocumentHighlights.getDocumentHighlights(c,p,o,t,i)}function L(n,t,r,a){b();var i=r&&2===r.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,p,i,n,t,r,a)}function A(t){var r=e.getScriptKind(t,n);return 3===r||4===r}var C=new e.Map(e.getEntries(((a={})[18]=19,a[20]=21,a[22]=23,a[31]=29,a)));function O(t){var r;return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:(r=t.file,e.toPath(r,f,g)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function w(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function P(n,t,r){for(var a=u.getCurrentSourceFile(n),i=[],o=w(a,t),s=o.lineStarts,c=o.firstLine,l=o.lastLine,d=r||!1,p=Number.MAX_VALUE,f=new e.Map,m=new RegExp(/\S/),_=e.isInsideJsxElement(a,s[c]),g=_?"{/*":"//",y=c;y<=l;y++){var h=a.text.substring(s[y],a.getLineEndOfPosition(s[y])),v=m.exec(h);v&&(p=Math.min(p,v.index),f.set(y.toString(),v.index),h.substr(v.index,g.length)!==g&&(d=void 0===r||r))}for(y=c;y<=l;y++){var b=f.get(y.toString());void 0!==b&&(_?i.push.apply(i,M(n,{pos:s[y]+p,end:a.getLineEndOfPosition(s[y])},d,_)):d?i.push({newText:g,span:{length:0,start:s[y]+p}}):a.text.substr(s[y]+b,g.length)===g&&i.push({newText:"",span:{length:g.length,start:s[y]+b}}))}return i}function M(n,t,r,a){for(var i,o=u.getCurrentSourceFile(n),s=[],c=o.text,l=!1,d=r||!1,p=[],f=t.pos,m=void 0!==a?a:e.isInsideJsxElement(o,f),_=m?"{/*":"/*",g=m?"*/}":"*/",y=m?"\\{\\/\\*":"\\/\\*",h=m?"\\*\\/\\}":"\\*\\/";f<=t.end;){var v=c.substr(f,_.length)===_?_.length:0,b=e.isInComment(o,f+v);if(b)m&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),l=!0,f=b.end+1;else{var E=c.substring(f,t.end).search("("+y+")|("+h+")");d=void 0!==r?r:d||!e.isTextWhiteSpaceLike(c,f,-1===E?t.end:f+E),f=-1===E?t.end+1:f+E+g.length}}if(d||!l){2!==(null===(i=e.isInComment(o,t.pos))||void 0===i?void 0:i.kind)&&e.insertSorted(p,t.pos,e.compareValues),e.insertSorted(p,t.end,e.compareValues);var T=p[0];c.substr(T,_.length)!==_&&s.push({newText:_,span:{length:0,start:T}});for(var S=1;S0?A-g.length:0;v=c.substr(D,g.length)===g?g.length:0;s.push({newText:"",span:{length:_.length,start:A-v}})}return s}function F(t,r,a,i,o){var s="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:s[0],endPosition:s[1],program:E(),host:n,formatContext:e.formatting.getFormatContext(i,n),cancellationToken:p,preferences:a,triggerReason:o}}C.forEach((function(e,n){return C.set(e.toString(),Number(n))}));var G={dispose:function(){if(c){var r=t.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return t.releaseDocumentWithKey(e.resolvedPath,r)})),c=void 0}n=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return b(),c.getSyntacticDiagnostics(h(e),p).slice()},getSemanticDiagnostics:function(n){b();var t=h(n),r=c.getSemanticDiagnostics(t,p);if(!e.getEmitDeclarations(c.getCompilerOptions()))return r.slice();var a=c.getDeclarationDiagnostics(t,p);return i(r,a)},getSuggestionDiagnostics:function(n){return b(),e.computeSuggestionDiagnostics(h(n),c,p)},getCompilerOptionsDiagnostics:function(){return b(),i(c.getOptionsDiagnostics(p),c.getGlobalDiagnostics(p))},getSyntacticClassifications:function(n,t){return e.getSyntacticClassifications(p,u.getCurrentSourceFile(n),t)},getSemanticClassifications:function(n,t){return A(n)?(b(),e.getSemanticClassifications(c.getTypeChecker(),p,h(n),c.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(n,t){return e.getEncodedSyntacticClassifications(p,u.getCurrentSourceFile(n),t)},getEncodedSemanticClassifications:function(n,t){return A(n)?(b(),e.getEncodedSemanticClassifications(c.getTypeChecker(),p,h(n),c.getClassifiableNames(),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(t,r,a){void 0===a&&(a=e.emptyOptions);var i=o(o({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return b(),e.Completions.getCompletionsAtPosition(n,c,m,h(t),r,i,a.triggerCharacter)},getCompletionEntryDetails:function(t,r,a,i,o,s){return void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(c,m,h(t),r,{name:a,source:o},n,i&&e.formatting.getFormatContext(i,n),s,p)},getCompletionEntrySymbol:function(t,r,a,i,o){return void 0===o&&(o=e.emptyOptions),b(),e.Completions.getCompletionEntrySymbol(c,m,h(t),r,{name:a,source:i},n,o)},getSignatureHelpItems:function(n,t,r){var a=(void 0===r?e.emptyOptions:r).triggerReason;b();var i=h(n);return e.SignatureHelp.getSignatureHelpItems(c,i,t,a,p)},getQuickInfoAtPosition:function(n,t){b();var r=h(n),a=e.getTouchingPropertyName(r,t);if(a!==r){var i=c.getTypeChecker(),o=function(n){if(e.isNewExpression(n.parent)&&n.pos===n.parent.pos)return n.parent.expression;return n}(a),s=function(n,t){var r=R(n);if(r){var a=t.getContextualType(r.parent),i=a&&k(r,t,a,!1);if(i&&1===i.length)return e.first(i)}return t.getSymbolAtLocation(n)}(o,i);if(!s||i.isUnknownSymbol(s)){var l=function(n,t,r){switch(t.kind){case 78:return!e.isLabelName(t)&&!e.isTagName(t);case 198:case 156:return!e.isInComment(n,r);case 107:case 186:case 105:return!0;default:return!1}}(r,o,t)?i.getTypeAtLocation(o):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,r),displayParts:i.runWithCancellationToken(p,(function(n){return e.typeToDisplayParts(n,l,e.getContainerNode(o))})),documentation:l.symbol?l.symbol.getDocumentationComment(i):void 0,tags:l.symbol?l.symbol.getJsDocTags():void 0}}var u=i.runWithCancellationToken(p,(function(n){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,s,r,e.getContainerNode(o),o)})),d=u.symbolKind,f=u.displayParts,m=u.documentation,_=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(o,r),displayParts:f,documentation:m,tags:_}}},getDefinitionAtPosition:function(n,t){return b(),e.GoToDefinition.getDefinitionAtPosition(c,h(n),t)},getDefinitionAndBoundSpan:function(n,t){return b(),e.GoToDefinition.getDefinitionAndBoundSpan(c,h(n),t)},getImplementationAtPosition:function(n,t){return b(),e.FindAllReferences.getImplementationsAtPosition(c,p,c.getSourceFiles(),h(n),t)},getTypeDefinitionAtPosition:function(n,t){return b(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),h(n),t)},getReferencesAtPosition:function(n,t){return b(),L(e.getTouchingPropertyName(h(n),t),t,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(n,t){return b(),e.FindAllReferences.findReferencedSymbols(c,p,c.getSourceFiles(),h(n),t)},getOccurrencesAtPosition:function(n,t){return e.flatMap(x(n,t,[n]),(function(e){return e.highlightSpans.map((function(n){return o(o({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1},n.isInString&&{isInString:!0}),n.contextSpan&&{contextSpan:n.contextSpan})}))}))},getDocumentHighlights:x,getNameOrDottedNameSpan:function(n,t,r){var a=u.getCurrentSourceFile(n),i=e.getTouchingPropertyName(a,t);if(i!==a){switch(i.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=i;;)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(),i.getEnd())}},getBreakpointStatementAtPosition:function(n,t){var r=u.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(n,t,r,a){void 0===a&&(a=!1),b();var i=r?[h(r)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(i,c.getTypeChecker(),p,n,t,a)},getRenameInfo:function(n,t,r){return b(),e.Rename.getRenameInfo(c,h(n),t,r)},getSmartSelectionRange:function(n,t){return e.SmartSelectionRange.getSmartSelectionRange(t,u.getCurrentSourceFile(n))},findRenameLocations:function(n,t,r,a,i){b();var s=h(n),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,t));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(n){var t=e.createTextSpanFromNode(n.tagName,s);return o({fileName:s.fileName,textSpan:t},e.FindAllReferences.toContextSpan(t,s,n.parent))}))}return L(c,t,{findInStrings:r,findInComments:a,providePrefixAndSuffixTextForRename:i,use:2},(function(n,t,r){return e.FindAllReferences.toRenameLocation(n,t,r,i||!1)}))},getNavigationBarItems:function(n){return e.NavigationBar.getNavigationBarItems(u.getCurrentSourceFile(n),p)},getNavigationTree:function(n){return e.NavigationBar.getNavigationTree(u.getCurrentSourceFile(n),p)},getOutliningSpans:function(n){var t=u.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,p)},getTodoComments:function(n,t){b();var r=h(n);p.throwIfCancellationRequested();var a,i,o=r.text,s=[];if(t.length>0&&(i=r.fileName,!e.stringContains(i,"/node_modules/")))for(var c=function(){var n="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(t,(function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"})).join("|")+")";return new RegExp(n+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),l=void 0;l=c.exec(o);){p.throwIfCancellationRequested();e.Debug.assert(l.length===t.length+3);var u=l[1],d=l.index+u.length;if(e.isInComment(r,d)){for(var f=void 0,m=0;m=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)){var _=l[2];s.push({descriptor:f,message:_,position:d})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=u.getCurrentSourceFile(n),a=e.getTouchingToken(r,t),i=a.getStart(r)===t?C.get(a.kind.toString()):void 0,o=i&&e.findChildOfKind(a.parent,i,r);return o?[e.createTextSpanFromNode(a,r),e.createTextSpanFromNode(o,r)].sort((function(e,n){return e.start-n.start})):e.emptyArray},getIndentationAtPosition:function(n,t,r){var a=e.timestamp(),i=v(r),o=u.getCurrentSourceFile(n);m("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,i);return m("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-a)),s},getFormattingEditsForRange:function(t,r,a,i){var o=u.getCurrentSourceFile(t);return e.formatting.formatSelection(r,a,o,e.formatting.getFormatContext(v(i),n))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(u.getCurrentSourceFile(t),e.formatting.getFormatContext(v(r),n))},getFormattingEditsAfterKeystroke:function(t,r,a,i){var o=u.getCurrentSourceFile(t),s=e.formatting.getFormatContext(v(i),n);if(!e.isInComment(o,r))switch(a){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),u.getCurrentSourceFile(t),r)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var a=u.getCurrentSourceFile(n);if(e.isInString(a,t))return!1;if(e.isInsideJsxElementOrAttribute(a,t))return 123===r;if(e.isInTemplateString(a,t))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(a,t)}return!0},getJsxClosingTagAtPosition:function(n,t){var r=u.getCurrentSourceFile(n),a=e.findPrecedingToken(t,r);if(a){var i=31===a.kind&&e.isJsxOpeningElement(a.parent)?a.parent.parent:e.isJsxText(a)?a.parent:void 0;return i&&function n(t){var r=t.openingElement,a=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,a.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&n(i)}(i)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(n,t,r){var a=u.getCurrentSourceFile(n),i=e.formatting.getRangeOfEnclosingComment(a,t);return!i||r&&3!==i.kind?void 0:e.createTextSpanFromRange(i)},getCodeFixesAtPosition:function(t,r,a,i,o,s){void 0===s&&(s=e.emptyOptions),b();var l=h(t),u=e.createTextSpanFromBounds(r,a),d=e.formatting.getFormatContext(o,n);return e.flatMap(e.deduplicate(i,e.equateValues,e.compareValues),(function(t){return p.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:l,span:u,program:c,host:n,cancellationToken:p,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(t,r,a,i){void 0===i&&(i=e.emptyOptions),b(),e.Debug.assert("file"===t.type);var o=h(t.fileName),s=e.formatting.getFormatContext(a,n);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:c,host:n,cancellationToken:p,formatContext:s,preferences:i})},applyCodeActionCommand:function(n,t){var r="string"==typeof n?t:n;return e.isArray(r)?Promise.all(r.map((function(e){return O(e)}))):O(r)},organizeImports:function(t,r,a){void 0===a&&(a=e.emptyOptions),b(),e.Debug.assert("file"===t.type);var i=h(t.fileName),o=e.formatting.getFormatContext(r,n);return e.OrganizeImports.organizeImports(i,o,n,c,a)},getEditsForFileRename:function(t,r,a,i){return void 0===i&&(i=e.emptyOptions),e.getEditsForFileRename(E(),t,r,n,e.formatting.getFormatContext(a,n),i,y)},getEmitOutput:function(t,r,a){b();var i=h(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(c,i,!!r,p,o,a)},getNonBoundSourceFile:function(e){return u.getCurrentSourceFile(e)},getProgram:E,getAutoImportProvider:function(){var e;return null===(e=n.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(n)},getApplicableRefactors:function(n,t,r,a){void 0===r&&(r=e.emptyOptions),b();var i=h(n);return e.refactor.getApplicableRefactors(F(i,t,r,e.emptyOptions,a))},getEditsForRefactor:function(n,t,r,a,i,o){void 0===o&&(o=e.emptyOptions),b();var s=h(n);return e.refactor.getEditsForRefactor(F(s,r,o,t),a,i)},toLineColumnOffset:y.toLineColumnOffset,getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(n,t){b();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(h(n),t));return r&&e.mapOneOrMany(r,(function(n){return e.CallHierarchy.createCallHierarchyItem(c,n)}))},provideCallHierarchyIncomingCalls:function(n,t){b();var r=h(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getIncomingCalls(c,a,p):[]},provideCallHierarchyOutgoingCalls:function(n,t){b();var r=h(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getOutgoingCalls(c,a):[]},toggleLineComment:P,toggleMultilineComment:M,commentSelection:function(e,n){var t=w(u.getCurrentSourceFile(e),n);return t.firstLine===t.lastLine&&n.pos!==n.end?M(e,n,!0):P(e,n,!0)},uncommentSelection:function(n,t){var r=u.getCurrentSourceFile(n),a=[],i=t.pos,o=t.end;i===o&&(o+=e.isInsideJsxElement(r,i)?2:1);for(var s=i;s<=o;s++){var c=e.isInComment(r,s);if(c){switch(c.kind){case 2:a.push.apply(a,P(n,{end:c.end,pos:c.pos+1},!1));break;case 3:a.push.apply(a,M(n,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return a}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:I.forEach((function(e){return G[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:N.forEach((function(e){return G[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return G},e.getNameTable=function(n){return n.nameTable||function(n){var t=n.nameTable=new e.Map;n.forEachChild((function n(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&function(n){return e.isDeclarationName(n)||269===n.parent.kind||function(e){return e&&e.parent&&199===e.parent.kind&&e.parent.argumentExpression===e}(n)||e.isLiteralComputedPropertyDeclarationName(n)}(r)){var a=e.getEscapedTextOfIdentifierOrLiteral(r);t.set(a,void 0===t.get(a)?r.pos:-1)}else if(e.isPrivateIdentifier(r)){a=r.escapedText;t.set(a,void 0===t.get(a)?r.pos:-1)}if(e.forEachChild(r,n),e.hasJSDocNodes(r))for(var i=0,o=r.jsDoc;ia){var i=e.findPrecedingToken(r.pos,n);if(!i||n.getLineAndCharacterOfPosition(i.getEnd()).line!==a)return;r=i}if(!(8388608&r.flags))return d(r)}function o(t,r){var a=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(a,(r||t).getEnd())}function s(t,r){return o(t,e.findNextToken(r,r.parent,n))}function c(e,t){return e&&a===n.getLineAndCharacterOfPosition(e.getStart(n)).line?d(e):d(t)}function l(t){return d(e.findPrecedingToken(t.pos,n))}function u(t){return d(e.findNextToken(t,t.parent,n))}function d(t){if(t){var r=t.parent;switch(t.kind){case 229:return h(t.declarationList.declarations[0]);case 246:case 162:case 161:return h(t);case 159:return function n(t){if(e.isBindingPattern(t.name))return T(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasSyntacticModifier(n,12)}(t))return o(t);var r=t.parent,a=r.parameters.indexOf(t);return e.Debug.assert(-1!==a),0!==a?n(r.parameters[a-1]):d(r.body)}(t);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)}(t);case 227:if(e.isFunctionBlock(t))return function(e){var n=e.statements.length?e.statements[0]:e.getLastToken();if(v(e.parent))return c(e.parent,n);return d(n)}(t);case 254:return b(t);case 284:return b(t.block);case 230:return o(t.expression);case 239:return o(t.getChildAt(0),t.expression);case 233:return s(t,t.expression);case 232:return d(t.statement);case 245:return o(t.getChildAt(0));case 231:return s(t,t.expression);case 242:return d(t.statement);case 238:case 237:return o(t.getChildAt(0),t.label);case 234:return function(e){if(e.initializer)return E(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(t);case 235:return s(t,t.expression);case 236:return E(t);case 241:return s(t,t.expression);case 281:case 282:return d(t.statements[0]);case 244:return b(t.tryBlock);case 243:case 263:return o(t,t.expression);case 257:return o(t,t.moduleReference);case 258:case 264:return o(t,t.moduleSpecifier);case 253:if(1!==e.getModuleInstanceState(t))return;case 249:case 252:case 288:case 195:return o(t);case 240:return d(t.statement);case 160:return g=r.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,g.pos),g.end);case 193:case 194:return T(t);case 250:case 251:return;case 26:case 1:return c(e.findPrecedingToken(t.pos,n));case 27:return l(t);case 18:return function(t){switch(t.parent.kind){case 252:var r=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 249:var a=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),a.members.length?a.members[0]:a.getLastToken(n));case 255:return c(t.parent.parent,t.parent.clauses[0])}return d(t.parent)}(t);case 19:return function(n){switch(n.parent.kind){case 254:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 252:case 249:return o(n);case 227:if(e.isFunctionBlock(n.parent))return o(n);case 284:return d(e.lastOrUndefined(n.parent.statements));case 255:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?d(e.lastOrUndefined(r.statements)):void 0;case 193:var a=n.parent;return d(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var i=n.parent;return o(e.lastOrUndefined(i.properties)||i)}return d(n.parent)}}(t);case 23:return function(n){switch(n.parent.kind){case 194:var t=n.parent;return o(e.lastOrUndefined(t.elements)||t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var r=n.parent;return o(e.lastOrUndefined(r.elements)||r)}return d(n.parent)}}(t);case 20:return function(e){if(232===e.parent.kind||200===e.parent.kind||201===e.parent.kind)return l(e);if(204===e.parent.kind)return u(e);return d(e.parent)}(t);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 l(e);default:return d(e.parent)}}(t);case 58:return function(n){if(e.isFunctionLike(n.parent)||285===n.parent.kind||159===n.parent.kind)return l(n);return d(n.parent)}(t);case 31:case 29:return function(e){if(203===e.parent.kind)return u(e);return d(e.parent)}(t);case 114:return function(e){if(232===e.parent.kind)return s(e,e.parent.expression);return d(e.parent)}(t);case 90:case 82:case 95:return u(t);case 155:return function(e){if(236===e.parent.kind)return u(e);return d(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return S(t);if((78===t.kind||217===t.kind||285===t.kind||286===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(213===t.kind){var a=t,i=a.left,p=a.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i))return S(i);if(62===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return o(t);if(27===p.kind)return d(i)}if(e.isExpressionNode(t))switch(r.kind){case 232:return l(t);case 160:return d(t.parent);case 234:case 236:return o(t);case 213:if(27===t.parent.operatorToken.kind)return o(t);break;case 206:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 285:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return d(t.parent.initializer);break;case 203:if(t.parent.type===t)return u(t.parent.type);break;case 246:case 159:var f=t.parent,m=f.initializer,_=f.type;if(m===t||_===t||e.isAssignmentOperator(t.kind))return l(t);break;case 213:i=t.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i)&&t!==i)return l(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return l(t)}return d(t.parent)}}var g;function y(t){return e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]===t?o(e.findPrecedingToken(t.pos,n,t.parent),t):o(t)}function h(t){if(235===t.parent.parent.kind)return d(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?T(t.name):t.initializer||e.hasSyntacticModifier(t,1)||236===r.parent.kind?y(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?d(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function v(n){return e.hasSyntacticModifier(n,1)||249===n.parent.kind&&165!==n.kind}function b(t){switch(t.parent.kind){case 253:if(1!==e.getModuleInstanceState(t.parent))return;case 233:case 231:case 235:return c(t.parent,t.statements[0]);case 234:case 236:return c(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return d(t.statements[0])}function E(e){if(247!==e.initializer.kind)return d(e.initializer);var n=e.initializer;return n.declarations.length>0?d(n.declarations[0]):void 0}function T(n){var t=e.forEach(n.elements,(function(e){return 219!==e.kind?e:void 0}));return t?d(t):195===n.parent.kind?o(n.parent):y(n.parent)}function S(n){e.Debug.assert(194!==n.kind&&193!==n.kind);var t=196===n.kind?n.elements:n.properties,r=e.forEach(t,(function(e){return 219!==e.kind?e:void 0}));return r?d(r):o(213===n.parent.kind?n.parent:n)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(d||(d={})),function(e){e.transform=function(n,t,r){var a=[];r=e.fixupCompilerOptions(r,a);var i=e.isArray(n)?n:[n],o=e.transformNodes(void 0,void 0,e.factory,r,i,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}}(d||(d={}));var d,p=function(){return this}();!function(e){function n(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}var t=function(){function n(e){this.scriptSnapshotShim=e}return n.prototype.getText=function(e,n){return this.scriptSnapshotShim.getText(e,n)},n.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},n.prototype.getChangeRange=function(n){var t=n,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var a=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(a.span.start,a.span.length),a.newLength)},n.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},n}(),r=function(){function n(n){var t=this;this.shimHost=n,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(n,r){var a=JSON.parse(t.shimHost.getModuleResolutionsForFile(r));return e.map(n,(function(n){var t=e.getProperty(a,n);return t?{resolvedFileName:t,extension:e.extensionFromPath(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(n,r){var a=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(n,(function(n){return e.getProperty(a,n)}))})}return n.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},n.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},n.prototype.error=function(e){this.shimHost.error(e)},n.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},n.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},n.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},n.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var n=JSON.parse(e);return n.allowNonTsExtensions=!0,n},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){var n=this.shimHost.getScriptSnapshot(e);return n&&new t(n)},n.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},n.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},n.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}},n.prototype.getCancellationToken=function(){var n=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(n)},n.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},n.prototype.readDirectory=function(n,t,r,a,i){var o=e.getFileMatcherPatterns(n,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},n.prototype.readFile=function(e,n){return this.shimHost.readFile(e,n)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n}();e.LanguageServiceShimHostAdapter=r;var a=function(){function n(e){var n=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return n.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return n.shimHost.realpath(e)}:this.realpath=void 0}return n.prototype.readDirectory=function(n,t,r,a,i){var o=e.getFileMatcherPatterns(n,r,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n.prototype.readFile=function(e){return this.shimHost.readFile(e)},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n}();function s(e,n,t,r){return c(e,n,!0,t,r)}function c(t,r,a,i,o){try{var s=function(n,t,r,a){var i;a&&(n.log(t),i=e.timestamp());var o=r();if(a){var s=e.timestamp();if(n.log(t+" completed in "+(s-i)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),n.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(t,r,i,o);return a?JSON.stringify({result:s}):s}catch(a){return a instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,a),a.description=r,JSON.stringify({error:a}))}}e.CoreServicesShimHostAdapter=a;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function f(n,t){return n.map((function(n){return function(n,t){return{message:e.flattenDiagnosticMessageText(n.messageText,t),start:n.start,length:n.length,category:e.diagnosticCategoryName(n),code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}(n,t)}))}e.realizeDiagnostics=f;var m=function(n){function t(e,t,r){var a=n.call(this,e)||this;return a.host=t,a.languageService=r,a.logPerformance=!1,a.logger=a.host,a}return u(t,n),t.prototype.forwardJSONCall=function(e,n){return s(this.logger,e,n,this.logPerformance)},t.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p&&p.CollectGarbage&&(p.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,n.prototype.dispose.call(this,e)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},t.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},t.prototype.realizeDiagnostics=function(n){return f(n,e.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return a.languageService.getSyntacticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return a.languageService.getSemanticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getEncodedSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return _(a.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return _(a.languageService.getEncodedSemanticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getSyntacticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var t=n.languageService.getSyntacticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSemanticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var t=n.languageService.getSemanticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return n.realizeDiagnostics(n.languageService.getSuggestionDiagnostics(e))}))},t.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var n=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(n)}))},t.prototype.getQuickInfoAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getQuickInfoAtPosition(e,n)}))},t.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)}))},t.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getBreakpointStatementAtPosition(e,n)}))},t.prototype.getSignatureHelpItems=function(e,n,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+n+")",(function(){return r.languageService.getSignatureHelpItems(e,n,t)}))},t.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getDefinitionAtPosition(e,n)}))},t.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+n+")",(function(){return t.languageService.getDefinitionAndBoundSpan(e,n)}))},t.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getTypeDefinitionAtPosition(e,n)}))},t.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getImplementationAtPosition(e,n)}))},t.prototype.getRenameInfo=function(e,n,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+n+")",(function(){return r.languageService.getRenameInfo(e,n,t)}))},t.prototype.getSmartSelectionRange=function(e,n){var t=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+n+")",(function(){return t.languageService.getSmartSelectionRange(e,n)}))},t.prototype.findRenameLocations=function(e,n,t,r,a){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+", "+a+")",(function(){return i.languageService.findRenameLocations(e,n,t,r,a)}))},t.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getBraceMatchingAtPosition(e,n)}))},t.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+n+", "+t+")",(function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)}))},t.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+n+")",(function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)}))},t.prototype.getIndentationAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+n+")",(function(){var a=JSON.parse(t);return r.languageService.getIndentationAtPosition(e,n,a)}))},t.prototype.getReferencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getReferencesAtPosition(e,n)}))},t.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('"+e+"', "+n+")",(function(){return t.languageService.findReferences(e,n)}))},t.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getOccurrencesAtPosition(e,n)}))},t.prototype.getDocumentHighlights=function(n,t,r){var a=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+t+")",(function(){var i=a.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(n));return e.filter(i,(function(n){return e.toFileNameLowerCase(e.normalizeSlashes(n.fileName))===o}))}))},t.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getCompletionsAtPosition(e,n,t)}))},t.prototype.getCompletionEntryDetails=function(e,n,t,r,a,i){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+n+", '"+t+"')",(function(){var s=void 0===r?void 0:JSON.parse(r);return o.languageService.getCompletionEntryDetails(e,n,t,s,a,i)}))},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+n+", "+t+")",(function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsForRange(e,n,t,i)}))},t.prototype.getFormattingEditsForDocument=function(e,n){var t=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",(function(){var r=JSON.parse(n);return t.languageService.getFormattingEditsForDocument(e,r)}))},t.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+n+", '"+t+"')",(function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsAfterKeystroke(e,n,t,i)}))},t.prototype.getDocCommentTemplateAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getDocCommentTemplateAtPosition(e,n)}))},t.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getNavigateToItems(e,n,t)}))},t.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return n.languageService.getNavigationBarItems(e)}))},t.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return n.languageService.getNavigationTree(e)}))},t.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return n.languageService.getOutliningSpans(e)}))},t.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return t.languageService.getTodoComments(e,JSON.parse(n))}))},t.prototype.prepareCallHierarchy=function(e,n){var t=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+n+")",(function(){return t.languageService.prepareCallHierarchy(e,n)}))},t.prototype.provideCallHierarchyIncomingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+n+")",(function(){return t.languageService.provideCallHierarchyIncomingCalls(e,n)}))},t.prototype.provideCallHierarchyOutgoingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+n+")",(function(){return t.languageService.provideCallHierarchyOutgoingCalls(e,n)}))},t.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var t=n.languageService.getEmitOutput(e),r=t.diagnostics,a=l(t,["diagnostics"]);return o(o({},a),{diagnostics:n.realizeDiagnostics(r)})}))},t.prototype.getEmitOutputObject=function(e){var n=this;return c(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return n.languageService.getEmitOutput(e)}),this.logPerformance)},t.prototype.toggleLineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.toggleLineComment(e,n)}))},t.prototype.toggleMultilineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.toggleMultilineComment(e,n)}))},t.prototype.commentSelection=function(e,n){var t=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.commentSelection(e,n)}))},t.prototype.uncommentSelection=function(e,n){var t=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.uncommentSelection(e,n)}))},t}(d);function _(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var g=function(n){function t(t,r){var a=n.call(this,t)||this;return a.logger=r,a.logPerformance=!1,a.classifier=e.createClassifier(),a}return u(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),s(this.logger,"getEncodedLexicalClassifications",(function(){return _(r.classifier.getEncodedLexicalClassifications(e,n,t))}),this.logPerformance)},t.prototype.getClassificationsForLine=function(e,n,t){void 0===t&&(t=!1);for(var r=this.classifier.getClassificationsForLine(e,n,t),a="",i=0,o=r.entries;i=1&&arguments.length<=3?e.factory.createVariableDeclaration(n,void 0,t,r):e.Debug.fail("Argument count mismatch")}),n),e.updateVariableDeclaration=e.Debug.deprecate((function(n,t,r,a,i){return 5===arguments.length?e.factory.updateVariableDeclaration(n,t,r,a,i):4===arguments.length?e.factory.updateVariableDeclaration(n,t,n.exclamationToken,r,a):e.Debug.fail("Argument count mismatch")}),n),e.createImportClause=e.Debug.deprecate((function(n,t,r){return void 0===r&&(r=!1),e.factory.createImportClause(r,n,t)}),n),e.updateImportClause=e.Debug.deprecate((function(n,t,r,a){return e.factory.updateImportClause(n,a,t,r)}),n),e.createExportDeclaration=e.Debug.deprecate((function(n,t,r,a,i){return void 0===i&&(i=!1),e.factory.createExportDeclaration(n,t,i,r,a)}),n),e.updateExportDeclaration=e.Debug.deprecate((function(n,t,r,a,i,o){return e.factory.updateExportDeclaration(n,t,r,o,a,i)}),n),e.createJSDocParamTag=e.Debug.deprecate((function(n,t,r,a){return e.factory.createJSDocParameterTag(void 0,n,t,r,!1,a)}),n),e.createComma=e.Debug.deprecate((function(n,t){return e.factory.createComma(n,t)}),n),e.createLessThan=e.Debug.deprecate((function(n,t){return e.factory.createLessThan(n,t)}),n),e.createAssignment=e.Debug.deprecate((function(n,t){return e.factory.createAssignment(n,t)}),n),e.createStrictEquality=e.Debug.deprecate((function(n,t){return e.factory.createStrictEquality(n,t)}),n),e.createStrictInequality=e.Debug.deprecate((function(n,t){return e.factory.createStrictInequality(n,t)}),n),e.createAdd=e.Debug.deprecate((function(n,t){return e.factory.createAdd(n,t)}),n),e.createSubtract=e.Debug.deprecate((function(n,t){return e.factory.createSubtract(n,t)}),n),e.createLogicalAnd=e.Debug.deprecate((function(n,t){return e.factory.createLogicalAnd(n,t)}),n),e.createLogicalOr=e.Debug.deprecate((function(n,t){return e.factory.createLogicalOr(n,t)}),n),e.createPostfixIncrement=e.Debug.deprecate((function(n){return e.factory.createPostfixIncrement(n)}),n),e.createLogicalNot=e.Debug.deprecate((function(n){return e.factory.createLogicalNot(n)}),n),e.createNode=e.Debug.deprecate((function(n,t,r){return void 0===t&&(t=0),void 0===r&&(r=0),e.setTextRangePosEnd(294===n?e.parseBaseNodeFactory.createBaseSourceFileNode(n):78===n?e.parseBaseNodeFactory.createBaseIdentifierNode(n):79===n?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(n):e.isNodeKind(n)?e.parseBaseNodeFactory.createBaseNode(n):e.parseBaseNodeFactory.createBaseTokenNode(n),t,r)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(n){var t=e.factory.cloneNode(n);return e.setTextRange(t,n),e.setParent(t,n.parent),t}),{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."})}(d||(d={}))}).call(this,"/index.js","/")},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)}},function(e,n,t){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return n[t]}})}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),a=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),n.getAllLibs=n.uniq=n.nonNullable=void 0,a(t(48),n);const i=t(22);n.nonNullable=function(e){return void 0!==e||null!==e},n.uniq=e=>e.filter((e,n,t)=>t.indexOf(e)===n),n.getAllLibs=function(e){const n={},t=/^lib.*\.d\.ts$/,r=e=>{t.test(e)||(e=`lib.${e}.d.ts`),n[e]=!0;const a=i.libDTS[e].references;a.length&&a.forEach(r)};return e.forEach(r),Object.keys(n)}},function(e,n){e.exports=require("stream")},function(e,n,t){"use strict";var r=t(2).codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(n,t,i){if("function"==typeof t)return e(n,null,t);t||(t={}),i=function(e){var n=!1;return function(){if(!n){n=!0;for(var t=arguments.length,r=new Array(t),a=0;a0&&e.column>=0)||n||t||r)&&!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))},s.prototype._serializeMappings=function(){for(var e,n,t,i,o=0,s=1,c=0,l=0,u=0,d=0,p="",f=this._mappings.toArray(),m=0,_=f.length;m<_;m++){if(e="",(n=f[m]).generatedLine!==s)for(o=0;n.generatedLine!==s;)e+=";",s++;else if(m>0){if(!a.compareByGeneratedPositionsInflated(n,f[m-1]))continue;e+=","}e+=r.encode(n.generatedColumn-o),o=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=r.encode(i-d),d=i,e+=r.encode(n.originalLine-1-l),l=n.originalLine-1,e+=r.encode(n.originalColumn-c),c=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-u),u=t)),p+=e}return p},s.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=a.relative(n,e));var t=a.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null}),this)},s.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},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=s},function(e,n,t){var r=t(34);n.encode=function(e){var n,t="",a=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{n=31&a,(a>>>=5)>0&&(n|=32),t+=r.encode(n)}while(a>0);return t},n.decode=function(e,n,t){var a,i,o,s,c=e.length,l=0,u=0;do{if(n>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(e.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+e.charAt(n-1));a=!!(32&i),l+=(i&=31)<>1,1==(1&o)?-s:s),t.rest=n}},function(e,n,t){var r=t(7),a=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function o(){this._array=[],this._set=i?new Map:Object.create(null)}o.fromArray=function(e,n){for(var t=new o,r=0,a=e.length;r=0)return n}else{var t=r.toSetString(e);if(a.call(this._set,t))return this._set[t]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e>>=0;var a=e.byteLength-n;if(a<0)throw new RangeError("'offset' is out of bounds");if(void 0===t)t=a;else if((t>>>=0)>a)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(n,n+t)):new Buffer(new Uint8Array(e.slice(n,n+t)))}(e,n,a):"string"==typeof e?function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!Buffer.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,n):new Buffer(e,n)}(e,n):r?Buffer.from(e):new Buffer(e);var i}},function(e,n){e.exports=require("module")},function(e,n,t){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n};Object.defineProperty(n,"__esModule",{value:!0});const a=r(t(6)),i=t(10);function o(e,n,t){const r=new s(e,n,t);process.stdout.write(r.toString()+a.EOL)}n.issueCommand=o,n.issue=function(e,n=""){o(e,{},n)};class s{constructor(e,n,t){e||(e="missing.command"),this.command=e,this.properties=n,this.message=t}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const a=this.properties[r];a&&(t?t=!1:e+=",",e+=`${r}=${n=a,i.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var n;return e+=`::${function(e){return i.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.libDTS=void 0,n.libDTS={"lib.d.ts":{content:'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0 \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// \r\n\n\n/// \r\n/// \r\n/// \r\n/// \r\n',references:["es5","dom","webworker.importscripts","scripthost"]},"lib.dom.d.ts":{content:'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0 \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// \r\n\n\n/////////////////////////////\n/// DOM APIs\n/////////////////////////////\n\ninterface Account {\n displayName: string;\n id: string;\n imageURL?: string;\n name?: string;\n rpDisplayName: string;\n}\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n fftSize?: number;\n maxDecibels?: number;\n minDecibels?: number;\n smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n animationName?: string;\n elapsedTime?: number;\n pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: number | null;\n timelineTime?: number | null;\n}\n\ninterface AssertionOptions {\n allowList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\n}\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n buffer?: AudioBuffer | null;\n detune?: number;\n loop?: boolean;\n loopEnd?: number;\n loopStart?: number;\n playbackRate?: number;\n}\n\ninterface AudioContextInfo {\n currentTime?: number;\n sampleRate?: number;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioParamDescriptor {\n automationRate?: AutomationRate;\n defaultValue?: number;\n maxValue?: number;\n minValue?: number;\n name: string;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: number;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n numberOfOutputs?: number;\n outputChannelCount?: number[];\n parameterData?: Record;\n processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n appid?: string;\n authnSel?: AuthenticatorSelectionList;\n exts?: boolean;\n loc?: boolean;\n txAuthGeneric?: txAuthGenericArg;\n txAuthSimple?: string;\n uvi?: boolean;\n uvm?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n authnSel?: boolean;\n exts?: AuthenticationExtensionsSupported;\n loc?: Coordinates;\n txAuthGeneric?: ArrayBuffer;\n txAuthSimple?: string;\n uvi?: ArrayBuffer;\n uvm?: UvmEntries;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface ByteLengthChunk {\n byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n desynchronized?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientData {\n challenge: string;\n extensions?: WebAuthnExtensions;\n hashAlg: string | Algorithm;\n origin: string;\n rpId: string;\n tokenBinding?: string;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n activeDuration?: number;\n currentIteration?: number | null;\n endTime?: number;\n localTime?: number | null;\n progress?: number | null;\n}\n\ninterface ComputedKeyframe {\n composite: CompositeOperationOrAuto;\n computedOffset: number;\n easing: string;\n offset: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {\n arrayOfDomainStrings?: string[];\n}\n\ninterface ConstantSourceOptions {\n offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n exact?: boolean;\n ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n exact?: string | string[];\n ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainVideoFacingModeParameters {\n exact?: VideoFacingModeEnum | VideoFacingModeEnum[];\n ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CustomEventInit extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n delayTime?: number;\n maxDelayTime?: number;\n}\n\ninterface DeviceLightEventInit extends EventInit {\n value?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceMotionEventAccelerationInit;\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n interval?: number;\n rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n absolute?: boolean;\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DevicePermissionDescriptor extends PermissionDescriptor {\n deviceId?: string;\n name: "camera" | "microphone" | "speaker";\n}\n\ninterface DocumentTimelineOptions {\n originTime?: number;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n attack?: number;\n knee?: number;\n ratio?: number;\n release?: number;\n threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n}\n\ninterface ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n modifierAltGraph?: boolean;\n modifierCapsLock?: boolean;\n modifierFn?: boolean;\n modifierFnLock?: boolean;\n modifierHyper?: boolean;\n modifierNumLock?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface ExceptionInformation {\n domain?: string | null;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusNavigationEventInit extends EventInit {\n navigationReason?: string | null;\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface FocusNavigationOrigin {\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface GetRootNodeOptions {\n composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n inputType?: string;\n isComposing?: boolean;\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: number;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | null;\n rootMargin?: string;\n threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n code?: string;\n isComposing?: boolean;\n key?: string;\n location?: number;\n repeat?: boolean;\n}\n\ninterface Keyframe {\n composite?: CompositeOperationOrAuto;\n easing?: string;\n offset?: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message: ArrayBuffer;\n messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n label?: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n robustness?: string;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamErrorEventInit extends EventInit {\n error?: MediaStreamError | null;\n}\n\ninterface MediaStreamEventInit extends EventInit {\n stream?: MediaStream;\n}\n\ninterface MediaStreamTrackAudioSourceOptions {\n mediaStreamTrack: MediaStreamTrack;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n deviceId?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n latency?: DoubleRange;\n noiseSuppression?: boolean[];\n resizeMode?: string[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n autoGainControl?: ConstrainBoolean;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n latency?: ConstrainDouble;\n noiseSuppression?: ConstrainBoolean;\n resizeMode?: ConstrainDOMString;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n autoGainControl?: boolean;\n channelCount?: number;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n latency?: number;\n noiseSuppression?: boolean;\n resizeMode?: string;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: boolean;\n channelCount?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n latency?: boolean;\n noiseSuppression?: boolean;\n resizeMode?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit extends EventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MidiPermissionDescriptor extends PermissionDescriptor {\n name: "midi";\n sysex?: boolean;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n movementX?: number;\n movementY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface MutationObserverInit {\n /**\n * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.\n */\n attributeFilter?: string[];\n /**\n * Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded.\n */\n attributeOldValue?: boolean;\n /**\n * Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.\n */\n attributes?: boolean;\n /**\n * Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified.\n */\n characterData?: boolean;\n /**\n * Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded.\n */\n characterDataOldValue?: boolean;\n /**\n * Set to true if mutations to target\'s children are to be observed.\n */\n childList?: boolean;\n /**\n * Set to true if mutations to not just target, but also target\'s descendants are to be observed.\n */\n subtree?: boolean;\n}\n\ninterface NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: number;\n vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n coneInnerAngle?: number;\n coneOuterAngle?: number;\n coneOuterGain?: number;\n distanceModel?: DistanceModelType;\n maxDistance?: number;\n orientationX?: number;\n orientationY?: number;\n orientationZ?: number;\n panningModel?: PanningModelType;\n positionX?: number;\n positionY?: number;\n positionZ?: number;\n refDistance?: number;\n rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n currency: string;\n currencySystem?: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n shippingOptions?: PaymentShippingOption[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n id?: string;\n total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n additionalDisplayItems?: PaymentItem[];\n data?: any;\n supportedMethods: string | string[];\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n error?: string;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string | string[];\n}\n\ninterface PaymentOptions {\n requestPayerEmail?: boolean;\n requestPayerName?: boolean;\n requestPayerPhone?: boolean;\n requestShipping?: boolean;\n shippingType?: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentShippingOption {\n amount: PaymentCurrencyAmount;\n id: string;\n label: string;\n selected?: boolean;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[] | Float32Array;\n real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface PostMessageOptions {\n transfer?: any[];\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise;\n reason?: any;\n}\n\ninterface PropertyIndexedKeyframes {\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n easing?: string | string[];\n offset?: number | (number | null)[];\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n attestation?: AttestationConveyancePreference;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: BufferSource;\n excludeCredentials?: PublicKeyCredentialDescriptor[];\n extensions?: AuthenticationExtensionsClientInputs;\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n icon?: string;\n name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n alg: COSEAlgorithmIdentifier;\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n allowCredentials?: PublicKeyCredentialDescriptor[];\n challenge: BufferSource;\n extensions?: AuthenticationExtensionsClientInputs;\n rpId?: string;\n timeout?: number;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PushPermissionDescriptor extends PermissionDescriptor {\n name: "push";\n userVisibleOnly?: boolean;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: number | null;\n keys?: Record;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy {\n highWaterMark?: number;\n size?: QueuingStrategySizeCallback;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n expires?: number;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n peerIdentity?: string;\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n id?: number;\n maxPacketLifeTime?: number;\n maxRetransmits?: number;\n negotiated?: boolean;\n ordered?: boolean;\n priority?: RTCPriorityType;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCDtlsParameters {\n fingerprints?: RTCDtlsFingerprint[];\n role?: RTCDtlsRole;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n error: RTCError;\n}\n\ninterface RTCErrorInit {\n errorDetail: RTCErrorDetailType;\n httpRequestStatusCode?: number;\n receivedAlert?: number;\n sctpCauseCode?: number;\n sdpLineNumber?: number;\n sentAlert?: number;\n}\n\ninterface RTCIceCandidateAttributes extends RTCStats {\n addressSourceUrl?: string;\n candidateType?: RTCStatsIceCandidateType;\n ipAddress?: string;\n portNumber?: number;\n priority?: number;\n transport?: string;\n}\n\ninterface RTCIceCandidateComplete {\n}\n\ninterface RTCIceCandidateDictionary {\n foundation?: string;\n ip?: string;\n msMTurnSessionId?: string;\n port?: number;\n priority?: number;\n protocol?: RTCIceProtocol;\n relatedAddress?: string;\n relatedPort?: number;\n tcpType?: RTCIceTcpCandidateType;\n type?: RTCIceCandidateType;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePair {\n local?: RTCIceCandidate;\n remote?: RTCIceCandidate;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n localCandidateId?: string;\n nominated?: boolean;\n priority?: number;\n readable?: boolean;\n remoteCandidateId?: string;\n roundTripTime?: number;\n state?: RTCStatsIceCandidatePairState;\n transportId?: string;\n writable?: boolean;\n}\n\ninterface RTCIceGatherOptions {\n gatherPolicy?: RTCIceGatherPolicy;\n iceservers?: RTCIceServer[];\n}\n\ninterface RTCIceParameters {\n password?: string;\n usernameFragment?: string;\n}\n\ninterface RTCIceServer {\n credential?: string | RTCOAuthCredential;\n credentialType?: RTCIceCredentialType;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCIdentityProviderOptions {\n peerIdentity?: string;\n protocol?: string;\n usernameHint?: string;\n}\n\ninterface RTCInboundRTPStreamStats extends RTCRTPStreamStats {\n bytesReceived?: number;\n fractionLost?: number;\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCMediaStreamTrackStats extends RTCStats {\n audioLevel?: number;\n echoReturnLoss?: number;\n echoReturnLossEnhancement?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesCorrupted?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n framesSent?: number;\n remoteSource?: boolean;\n ssrcIds?: string[];\n trackIdentifier?: string;\n}\n\ninterface RTCOAuthCredential {\n accessToken: string;\n macKey: string;\n}\n\ninterface RTCOfferAnswerOptions {\n voiceActivityDetection?: boolean;\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n roundTripTime?: number;\n targetBitrate?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n errorCode: number;\n hostCandidate?: string;\n statusText?: string;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCRTPStreamStats extends RTCStats {\n associateStatsId?: string;\n codecId?: string;\n firCount?: number;\n isRemote?: boolean;\n mediaTrackId?: string;\n mediaType?: string;\n nackCount?: number;\n pliCount?: number;\n sliCount?: number;\n ssrc?: string;\n transportId?: string;\n}\n\ninterface RTCRtcpFeedback {\n parameter?: string;\n type?: string;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n channels?: number;\n clockRate: number;\n mimeType: string;\n payloadType: number;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: number;\n}\n\ninterface RTCRtpDecodingParameters extends RTCRtpCodingParameters {\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n codecPayloadType?: number;\n dtx?: RTCDtxStatus;\n maxBitrate?: number;\n maxFramerate?: number;\n ptime?: number;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpFecParameters {\n mechanism?: string;\n ssrc?: number;\n}\n\ninterface RTCRtpHeaderExtension {\n kind?: string;\n preferredEncrypt?: boolean;\n preferredId?: number;\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypted?: boolean;\n id: number;\n uri: string;\n}\n\ninterface RTCRtpParameters {\n codecs: RTCRtpCodecParameters[];\n headerExtensions: RTCRtpHeaderExtensionParameters[];\n rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n encodings: RTCRtpDecodingParameters[];\n}\n\ninterface RTCRtpRtxParameters {\n ssrc?: number;\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n priority?: RTCPriorityType;\n transactionId: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n voiceActivityFlag?: boolean;\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCRtpUnhandled {\n muxId?: string;\n payloadType?: number;\n ssrc?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCSrtpKeyParam {\n keyMethod?: string;\n keySalt?: string;\n lifetime?: string;\n mkiLength?: number;\n mkiValue?: number;\n}\n\ninterface RTCSrtpSdesParameters {\n cryptoSuite?: string;\n keyParams?: RTCSrtpKeyParam[];\n sessionParams?: string[];\n tag?: number;\n}\n\ninterface RTCSsrcRange {\n max?: number;\n min?: number;\n}\n\ninterface RTCStats {\n id: string;\n timestamp: number;\n type: RTCStatsType;\n}\n\ninterface RTCStatsEventInit extends EventInit {\n report: RTCStatsReport;\n}\n\ninterface RTCStatsReport {\n}\n\ninterface RTCTrackEventInit extends EventInit {\n receiver: RTCRtpReceiver;\n streams?: MediaStream[];\n track: MediaStreamTrack;\n transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n activeConnection?: boolean;\n bytesReceived?: number;\n bytesSent?: number;\n localCertificateId?: string;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairId?: string;\n}\n\ninterface ReadableStreamReadDoneResult {\n done: true;\n value?: T;\n}\n\ninterface ReadableStreamReadValueResult {\n done: false;\n value: T;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /**\n * A BodyInit object or null to set request\'s body.\n */\n body?: BodyInit | null;\n /**\n * A string indicating how the request will interact with the browser\'s cache to set request\'s cache.\n */\n cache?: RequestCache;\n /**\n * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials.\n */\n credentials?: RequestCredentials;\n /**\n * A Headers object, an object literal, or an array of two-item arrays to set request\'s headers.\n */\n headers?: HeadersInit;\n /**\n * A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity.\n */\n integrity?: string;\n /**\n * A boolean to set request\'s keepalive.\n */\n keepalive?: boolean;\n /**\n * A string to set request\'s method.\n */\n method?: string;\n /**\n * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode.\n */\n mode?: RequestMode;\n /**\n * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect.\n */\n redirect?: RequestRedirect;\n /**\n * A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer.\n */\n referrer?: string;\n /**\n * A referrer policy to set request\'s referrerPolicy.\n */\n referrerPolicy?: ReferrerPolicy;\n /**\n * An AbortSignal to set request\'s signal.\n */\n signal?: AbortSignal | null;\n /**\n * Can only be null. Used to disassociate request from any Window.\n */\n window?: any;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n clipped?: boolean;\n fill?: boolean;\n markers?: boolean;\n stroke?: boolean;\n}\n\ninterface ScopedCredentialDescriptor {\n id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n transports?: Transport[];\n type: ScopedCredentialType;\n}\n\ninterface ScopedCredentialOptions {\n excludeList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\n}\n\ninterface ScopedCredentialParameters {\n algorithm: string | Algorithm;\n type: ScopedCredentialType;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n block?: ScrollLogicalPosition;\n inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n left?: number;\n top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n documentURI?: string;\n effectiveDirective?: string;\n lineNumber?: number;\n originalPolicy?: string;\n referrer?: string;\n sourceFile?: string;\n statusCode?: number;\n violatedDirective?: string;\n}\n\ninterface ServiceWorkerMessageEventInit extends EventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[] | null;\n source?: ServiceWorker | MessagePort | null;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n key?: string | null;\n newValue?: string | null;\n oldValue?: string | null;\n storageArea?: Storage | null;\n url?: string;\n}\n\ninterface StoreExceptionsInformation extends ExceptionInformation {\n detailURI?: string | null;\n explanationString?: string | null;\n siteName?: string | null;\n}\n\ninterface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {\n arrayOfDomainStrings?: string[];\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\ninterface TouchInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n clientX?: number;\n clientY?: number;\n force?: number;\n identifier: number;\n pageX?: number;\n pageY?: number;\n radiusX?: number;\n radiusY?: number;\n rotationAngle?: number;\n screenX?: number;\n screenY?: number;\n target: EventTarget;\n touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ninterface Transformer {\n flush?: TransformStreamDefaultControllerCallback;\n readableType?: undefined;\n start?: TransformStreamDefaultControllerCallback;\n transform?: TransformStreamDefaultControllerTransformCallback;\n writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingByteSource {\n autoAllocateChunkSize?: number;\n cancel?: ReadableStreamErrorCallback;\n pull?: ReadableByteStreamControllerCallback;\n start?: ReadableByteStreamControllerCallback;\n type: "bytes";\n}\n\ninterface UnderlyingSink {\n abort?: WritableStreamErrorCallback;\n close?: WritableStreamDefaultControllerCloseCallback;\n start?: WritableStreamDefaultControllerStartCallback;\n type?: undefined;\n write?: WritableStreamDefaultControllerWriteCallback;\n}\n\ninterface UnderlyingSource {\n cancel?: ReadableStreamErrorCallback;\n pull?: ReadableStreamDefaultControllerCallback;\n start?: ReadableStreamDefaultControllerCallback;\n type?: undefined;\n}\n\ninterface VRDisplayEventInit extends EventInit {\n display: VRDisplay;\n reason?: VRDisplayEventReason;\n}\n\ninterface VRLayer {\n leftBounds?: number[] | Float32Array | null;\n rightBounds?: number[] | Float32Array | null;\n source?: HTMLCanvasElement | null;\n}\n\ninterface VRStageParameters {\n sittingToStandingTransform?: Float32Array;\n sizeX?: number;\n sizeY?: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebAuthnExtensions {\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ninterface txAuthGenericArg {\n content: ArrayBuffer;\n contentType: string;\n}\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted.\n */\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n};\n\ninterface AbstractRange {\n /**\n * Returns true if range is collapsed, and false otherwise.\n */\n readonly collapsed: boolean;\n /**\n * Returns range\'s end node.\n */\n readonly endContainer: Node;\n /**\n * Returns range\'s end offset.\n */\n readonly endOffset: number;\n /**\n * Returns range\'s start node.\n */\n readonly startContainer: Node;\n /**\n * Returns range\'s start offset.\n */\n readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n prototype: AbstractRange;\n new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AesCfbParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCmacParams extends Algorithm {\n length: number;\n}\n\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\ninterface AnalyserNode extends AudioNode {\n fftSize: number;\n readonly frequencyBinCount: number;\n maxDecibels: number;\n minDecibels: number;\n smoothingTimeConstant: number;\n getByteFrequencyData(array: Uint8Array): void;\n getByteTimeDomainData(array: Uint8Array): void;\n getFloatFrequencyData(array: Float32Array): void;\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n getAnimations(): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n}\n\ninterface Animation extends EventTarget {\n currentTime: number | null;\n effect: AnimationEffect | null;\n readonly finished: Promise;\n id: string;\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n readonly pending: boolean;\n readonly playState: AnimationPlayState;\n playbackRate: number;\n readonly ready: Promise;\n startTime: number | null;\n timeline: AnimationTimeline | null;\n cancel(): void;\n finish(): void;\n pause(): void;\n play(): void;\n reverse(): void;\n updatePlaybackRate(playbackRate: number): void;\n addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n getComputedTiming(): ComputedEffectTiming;\n getTiming(): EffectTiming;\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/** Events providing information related to animations. */\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: number | null;\n readonly timelineTime: number | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\ninterface ApplicationCacheEventMap {\n "cached": Event;\n "checking": Event;\n "downloading": Event;\n "error": Event;\n "noupdate": Event;\n "obsolete": Event;\n "progress": ProgressEvent;\n "updateready": Event;\n}\n\ninterface ApplicationCache extends EventTarget {\n /** @deprecated */\n oncached: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onchecking: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onerror: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;\n /** @deprecated */\n onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n readonly status: number;\n /** @deprecated */\n abort(): void;\n /** @deprecated */\n swapCache(): void;\n /** @deprecated */\n update(): void;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ApplicationCache: {\n prototype: ApplicationCache;\n new(): ApplicationCache;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n};\n\n/** A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\ninterface Attr extends Node {\n readonly localName: string;\n readonly name: string;\n readonly namespaceURI: string | null;\n readonly ownerElement: Element | null;\n readonly prefix: string | null;\n readonly specified: boolean;\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n prototype: AudioBufferSourceNode;\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\ninterface AudioContext extends BaseAudioContext {\n readonly baseLatency: number;\n readonly outputLatency: number;\n close(): Promise;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;\n getOutputTimestamp(): AudioTimestamp;\n resume(): Promise;\n suspend(): Promise;\n addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\ninterface AudioListener {\n readonly forwardX: AudioParam;\n readonly forwardY: AudioParam;\n readonly forwardZ: AudioParam;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n readonly upX: AudioParam;\n readonly upY: AudioParam;\n readonly upZ: AudioParam;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/** A generic interface for representing an audio processing module. Examples include: */\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: BaseAudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destinationNode: AudioNode): void;\n disconnect(destinationNode: AudioNode, output: number): void;\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\n disconnect(destinationParam: AudioParam): void;\n disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\ninterface AudioParam {\n automationRate: AutomationRate;\n readonly defaultValue: number;\n readonly maxValue: number;\n readonly minValue: number;\n value: number;\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n cancelScheduledValues(cancelTime: number): AudioParam;\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n setValueAtTime(value: number, startTime: number): AudioParam;\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioParamMap {\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n prototype: AudioParamMap;\n new(): AudioParamMap;\n};\n\n/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed. */\ninterface AudioProcessingEvent extends Event {\n readonly inputBuffer: AudioBuffer;\n readonly outputBuffer: AudioBuffer;\n readonly playbackTime: number;\n}\n\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n prototype: AudioScheduledSourceNode;\n new(): AudioScheduledSourceNode;\n};\n\n/** A single audio track from one of the HTML media elements,