From 1de08ce4abf892d08a53bb8de7f211c36f57922c Mon Sep 17 00:00:00 2001 From: Evan Jacobs Date: Tue, 16 Jun 2020 11:57:20 -0400 Subject: [PATCH 1/4] update @actions/core Fixes a build error --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 457148b..fd90989 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "webpack-cli": "^3.3.11" }, "dependencies": { - "@actions/core": "^1.2.3", + "@actions/core": "^1.2.4", "@yarnpkg/lockfile": "^1.1.0", "concat-stream": "^2.0.0", "glob": "^7.1.6" diff --git a/yarn.lock b/yarn.lock index 7dbb0a0..4e9e257 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@actions/core@^1.2.3": - version "1.2.3" - resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.3.tgz#e844b4fa0820e206075445079130868f95bfca95" - integrity sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w== +"@actions/core@^1.2.4": + version "1.2.4" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.4.tgz#96179dbf9f8d951dd74b40a0dbd5c22555d186ab" + integrity sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg== "@types/concat-stream@^1.6.0": version "1.6.0" From 0099af1d37610d303953d3f45ef091fcb7df8d37 Mon Sep 17 00:00:00 2001 From: Evan Jacobs Date: Tue, 16 Jun 2020 12:07:11 -0400 Subject: [PATCH 2/4] update bundle --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index cfffd8d..232333a 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(a(t(e[c]),n)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function g(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.emptyArray=[],e.createMap=n,e.createMapFromEntries=function(e){for(var t=n(),r=0,a=e;r=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 M(e,n){return k(e,n)}e.toFileNameLowerCase=I,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.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 G(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 B(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function U(e,n){for(var t=n;t=t.length+r.length&&H(n,t)&&B(n,r)}e.getUILocale=function(){return w},e.setUILocale=function(e){w!==e&&(w=e,P=void 0)},e.compareStringsCaseSensitiveUI=function(e,n){return(P||(P=F(w)))(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 N(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=H,e.removePrefix=function(e,n){return H(e,n)?e.substr(n.length):e},e.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=x),H(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 r(e,n,t,i){e||(t&&(n+="\r\nVerbose Debug Information: "+("string"==typeof t?t:t())),a(n?"False expression: "+n:"False expression.",i||r))}function a(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||a),t}function i(e,n){return null==e?a(n):e}function o(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var n=Function.prototype.toString.call(e),t=/^function\s+([\w\$]+)\s*\(/.exec(n);return t?t[1]:""}function s(n,t,r){void 0===n&&(n=0);var a=function(n){var t=[];for(var r in n){var a=n[r];"number"==typeof a&&t.push([a,r])}return e.stableSort(t,(function(n,t){return e.compareValues(n[0],t[0])}))}(t);if(0===n)return a.length>0&&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;p=n&&a("Expected "+e+" < "+n+". "+(t||""))},n.assertLessThanOrEqual=function(e,n){e>n&&a("Expected "+e+" <= "+n)},n.assertGreaterThanOrEqual=function(e,n){e= "+n)},n.fail=a,n.assertDefined=i,n.assertEachDefined=function(e,n){for(var t=0,r=e;t=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.CaretEqualsToken=74]="CaretEqualsToken",e[e.Identifier=75]="Identifier",e[e.PrivateIdentifier=76]="PrivateIdentifier",e[e.BreakKeyword=77]="BreakKeyword",e[e.CaseKeyword=78]="CaseKeyword",e[e.CatchKeyword=79]="CatchKeyword",e[e.ClassKeyword=80]="ClassKeyword",e[e.ConstKeyword=81]="ConstKeyword",e[e.ContinueKeyword=82]="ContinueKeyword",e[e.DebuggerKeyword=83]="DebuggerKeyword",e[e.DefaultKeyword=84]="DefaultKeyword",e[e.DeleteKeyword=85]="DeleteKeyword",e[e.DoKeyword=86]="DoKeyword",e[e.ElseKeyword=87]="ElseKeyword",e[e.EnumKeyword=88]="EnumKeyword",e[e.ExportKeyword=89]="ExportKeyword",e[e.ExtendsKeyword=90]="ExtendsKeyword",e[e.FalseKeyword=91]="FalseKeyword",e[e.FinallyKeyword=92]="FinallyKeyword",e[e.ForKeyword=93]="ForKeyword",e[e.FunctionKeyword=94]="FunctionKeyword",e[e.IfKeyword=95]="IfKeyword",e[e.ImportKeyword=96]="ImportKeyword",e[e.InKeyword=97]="InKeyword",e[e.InstanceOfKeyword=98]="InstanceOfKeyword",e[e.NewKeyword=99]="NewKeyword",e[e.NullKeyword=100]="NullKeyword",e[e.ReturnKeyword=101]="ReturnKeyword",e[e.SuperKeyword=102]="SuperKeyword",e[e.SwitchKeyword=103]="SwitchKeyword",e[e.ThisKeyword=104]="ThisKeyword",e[e.ThrowKeyword=105]="ThrowKeyword",e[e.TrueKeyword=106]="TrueKeyword",e[e.TryKeyword=107]="TryKeyword",e[e.TypeOfKeyword=108]="TypeOfKeyword",e[e.VarKeyword=109]="VarKeyword",e[e.VoidKeyword=110]="VoidKeyword",e[e.WhileKeyword=111]="WhileKeyword",e[e.WithKeyword=112]="WithKeyword",e[e.ImplementsKeyword=113]="ImplementsKeyword",e[e.InterfaceKeyword=114]="InterfaceKeyword",e[e.LetKeyword=115]="LetKeyword",e[e.PackageKeyword=116]="PackageKeyword",e[e.PrivateKeyword=117]="PrivateKeyword",e[e.ProtectedKeyword=118]="ProtectedKeyword",e[e.PublicKeyword=119]="PublicKeyword",e[e.StaticKeyword=120]="StaticKeyword",e[e.YieldKeyword=121]="YieldKeyword",e[e.AbstractKeyword=122]="AbstractKeyword",e[e.AsKeyword=123]="AsKeyword",e[e.AssertsKeyword=124]="AssertsKeyword",e[e.AnyKeyword=125]="AnyKeyword",e[e.AsyncKeyword=126]="AsyncKeyword",e[e.AwaitKeyword=127]="AwaitKeyword",e[e.BooleanKeyword=128]="BooleanKeyword",e[e.ConstructorKeyword=129]="ConstructorKeyword",e[e.DeclareKeyword=130]="DeclareKeyword",e[e.GetKeyword=131]="GetKeyword",e[e.InferKeyword=132]="InferKeyword",e[e.IsKeyword=133]="IsKeyword",e[e.KeyOfKeyword=134]="KeyOfKeyword",e[e.ModuleKeyword=135]="ModuleKeyword",e[e.NamespaceKeyword=136]="NamespaceKeyword",e[e.NeverKeyword=137]="NeverKeyword",e[e.ReadonlyKeyword=138]="ReadonlyKeyword",e[e.RequireKeyword=139]="RequireKeyword",e[e.NumberKeyword=140]="NumberKeyword",e[e.ObjectKeyword=141]="ObjectKeyword",e[e.SetKeyword=142]="SetKeyword",e[e.StringKeyword=143]="StringKeyword",e[e.SymbolKeyword=144]="SymbolKeyword",e[e.TypeKeyword=145]="TypeKeyword",e[e.UndefinedKeyword=146]="UndefinedKeyword",e[e.UniqueKeyword=147]="UniqueKeyword",e[e.UnknownKeyword=148]="UnknownKeyword",e[e.FromKeyword=149]="FromKeyword",e[e.GlobalKeyword=150]="GlobalKeyword",e[e.BigIntKeyword=151]="BigIntKeyword",e[e.OfKeyword=152]="OfKeyword",e[e.QualifiedName=153]="QualifiedName",e[e.ComputedPropertyName=154]="ComputedPropertyName",e[e.TypeParameter=155]="TypeParameter",e[e.Parameter=156]="Parameter",e[e.Decorator=157]="Decorator",e[e.PropertySignature=158]="PropertySignature",e[e.PropertyDeclaration=159]="PropertyDeclaration",e[e.MethodSignature=160]="MethodSignature",e[e.MethodDeclaration=161]="MethodDeclaration",e[e.Constructor=162]="Constructor",e[e.GetAccessor=163]="GetAccessor",e[e.SetAccessor=164]="SetAccessor",e[e.CallSignature=165]="CallSignature",e[e.ConstructSignature=166]="ConstructSignature",e[e.IndexSignature=167]="IndexSignature",e[e.TypePredicate=168]="TypePredicate",e[e.TypeReference=169]="TypeReference",e[e.FunctionType=170]="FunctionType",e[e.ConstructorType=171]="ConstructorType",e[e.TypeQuery=172]="TypeQuery",e[e.TypeLiteral=173]="TypeLiteral",e[e.ArrayType=174]="ArrayType",e[e.TupleType=175]="TupleType",e[e.OptionalType=176]="OptionalType",e[e.RestType=177]="RestType",e[e.UnionType=178]="UnionType",e[e.IntersectionType=179]="IntersectionType",e[e.ConditionalType=180]="ConditionalType",e[e.InferType=181]="InferType",e[e.ParenthesizedType=182]="ParenthesizedType",e[e.ThisType=183]="ThisType",e[e.TypeOperator=184]="TypeOperator",e[e.IndexedAccessType=185]="IndexedAccessType",e[e.MappedType=186]="MappedType",e[e.LiteralType=187]="LiteralType",e[e.ImportType=188]="ImportType",e[e.ObjectBindingPattern=189]="ObjectBindingPattern",e[e.ArrayBindingPattern=190]="ArrayBindingPattern",e[e.BindingElement=191]="BindingElement",e[e.ArrayLiteralExpression=192]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=193]="ObjectLiteralExpression",e[e.PropertyAccessExpression=194]="PropertyAccessExpression",e[e.ElementAccessExpression=195]="ElementAccessExpression",e[e.CallExpression=196]="CallExpression",e[e.NewExpression=197]="NewExpression",e[e.TaggedTemplateExpression=198]="TaggedTemplateExpression",e[e.TypeAssertionExpression=199]="TypeAssertionExpression",e[e.ParenthesizedExpression=200]="ParenthesizedExpression",e[e.FunctionExpression=201]="FunctionExpression",e[e.ArrowFunction=202]="ArrowFunction",e[e.DeleteExpression=203]="DeleteExpression",e[e.TypeOfExpression=204]="TypeOfExpression",e[e.VoidExpression=205]="VoidExpression",e[e.AwaitExpression=206]="AwaitExpression",e[e.PrefixUnaryExpression=207]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=208]="PostfixUnaryExpression",e[e.BinaryExpression=209]="BinaryExpression",e[e.ConditionalExpression=210]="ConditionalExpression",e[e.TemplateExpression=211]="TemplateExpression",e[e.YieldExpression=212]="YieldExpression",e[e.SpreadElement=213]="SpreadElement",e[e.ClassExpression=214]="ClassExpression",e[e.OmittedExpression=215]="OmittedExpression",e[e.ExpressionWithTypeArguments=216]="ExpressionWithTypeArguments",e[e.AsExpression=217]="AsExpression",e[e.NonNullExpression=218]="NonNullExpression",e[e.MetaProperty=219]="MetaProperty",e[e.SyntheticExpression=220]="SyntheticExpression",e[e.TemplateSpan=221]="TemplateSpan",e[e.SemicolonClassElement=222]="SemicolonClassElement",e[e.Block=223]="Block",e[e.EmptyStatement=224]="EmptyStatement",e[e.VariableStatement=225]="VariableStatement",e[e.ExpressionStatement=226]="ExpressionStatement",e[e.IfStatement=227]="IfStatement",e[e.DoStatement=228]="DoStatement",e[e.WhileStatement=229]="WhileStatement",e[e.ForStatement=230]="ForStatement",e[e.ForInStatement=231]="ForInStatement",e[e.ForOfStatement=232]="ForOfStatement",e[e.ContinueStatement=233]="ContinueStatement",e[e.BreakStatement=234]="BreakStatement",e[e.ReturnStatement=235]="ReturnStatement",e[e.WithStatement=236]="WithStatement",e[e.SwitchStatement=237]="SwitchStatement",e[e.LabeledStatement=238]="LabeledStatement",e[e.ThrowStatement=239]="ThrowStatement",e[e.TryStatement=240]="TryStatement",e[e.DebuggerStatement=241]="DebuggerStatement",e[e.VariableDeclaration=242]="VariableDeclaration",e[e.VariableDeclarationList=243]="VariableDeclarationList",e[e.FunctionDeclaration=244]="FunctionDeclaration",e[e.ClassDeclaration=245]="ClassDeclaration",e[e.InterfaceDeclaration=246]="InterfaceDeclaration",e[e.TypeAliasDeclaration=247]="TypeAliasDeclaration",e[e.EnumDeclaration=248]="EnumDeclaration",e[e.ModuleDeclaration=249]="ModuleDeclaration",e[e.ModuleBlock=250]="ModuleBlock",e[e.CaseBlock=251]="CaseBlock",e[e.NamespaceExportDeclaration=252]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=253]="ImportEqualsDeclaration",e[e.ImportDeclaration=254]="ImportDeclaration",e[e.ImportClause=255]="ImportClause",e[e.NamespaceImport=256]="NamespaceImport",e[e.NamedImports=257]="NamedImports",e[e.ImportSpecifier=258]="ImportSpecifier",e[e.ExportAssignment=259]="ExportAssignment",e[e.ExportDeclaration=260]="ExportDeclaration",e[e.NamedExports=261]="NamedExports",e[e.NamespaceExport=262]="NamespaceExport",e[e.ExportSpecifier=263]="ExportSpecifier",e[e.MissingDeclaration=264]="MissingDeclaration",e[e.ExternalModuleReference=265]="ExternalModuleReference",e[e.JsxElement=266]="JsxElement",e[e.JsxSelfClosingElement=267]="JsxSelfClosingElement",e[e.JsxOpeningElement=268]="JsxOpeningElement",e[e.JsxClosingElement=269]="JsxClosingElement",e[e.JsxFragment=270]="JsxFragment",e[e.JsxOpeningFragment=271]="JsxOpeningFragment",e[e.JsxClosingFragment=272]="JsxClosingFragment",e[e.JsxAttribute=273]="JsxAttribute",e[e.JsxAttributes=274]="JsxAttributes",e[e.JsxSpreadAttribute=275]="JsxSpreadAttribute",e[e.JsxExpression=276]="JsxExpression",e[e.CaseClause=277]="CaseClause",e[e.DefaultClause=278]="DefaultClause",e[e.HeritageClause=279]="HeritageClause",e[e.CatchClause=280]="CatchClause",e[e.PropertyAssignment=281]="PropertyAssignment",e[e.ShorthandPropertyAssignment=282]="ShorthandPropertyAssignment",e[e.SpreadAssignment=283]="SpreadAssignment",e[e.EnumMember=284]="EnumMember",e[e.UnparsedPrologue=285]="UnparsedPrologue",e[e.UnparsedPrepend=286]="UnparsedPrepend",e[e.UnparsedText=287]="UnparsedText",e[e.UnparsedInternalText=288]="UnparsedInternalText",e[e.UnparsedSyntheticReference=289]="UnparsedSyntheticReference",e[e.SourceFile=290]="SourceFile",e[e.Bundle=291]="Bundle",e[e.UnparsedSource=292]="UnparsedSource",e[e.InputFiles=293]="InputFiles",e[e.JSDocTypeExpression=294]="JSDocTypeExpression",e[e.JSDocAllType=295]="JSDocAllType",e[e.JSDocUnknownType=296]="JSDocUnknownType",e[e.JSDocNullableType=297]="JSDocNullableType",e[e.JSDocNonNullableType=298]="JSDocNonNullableType",e[e.JSDocOptionalType=299]="JSDocOptionalType",e[e.JSDocFunctionType=300]="JSDocFunctionType",e[e.JSDocVariadicType=301]="JSDocVariadicType",e[e.JSDocNamepathType=302]="JSDocNamepathType",e[e.JSDocComment=303]="JSDocComment",e[e.JSDocTypeLiteral=304]="JSDocTypeLiteral",e[e.JSDocSignature=305]="JSDocSignature",e[e.JSDocTag=306]="JSDocTag",e[e.JSDocAugmentsTag=307]="JSDocAugmentsTag",e[e.JSDocAuthorTag=308]="JSDocAuthorTag",e[e.JSDocClassTag=309]="JSDocClassTag",e[e.JSDocPublicTag=310]="JSDocPublicTag",e[e.JSDocPrivateTag=311]="JSDocPrivateTag",e[e.JSDocProtectedTag=312]="JSDocProtectedTag",e[e.JSDocReadonlyTag=313]="JSDocReadonlyTag",e[e.JSDocCallbackTag=314]="JSDocCallbackTag",e[e.JSDocEnumTag=315]="JSDocEnumTag",e[e.JSDocParameterTag=316]="JSDocParameterTag",e[e.JSDocReturnTag=317]="JSDocReturnTag",e[e.JSDocThisTag=318]="JSDocThisTag",e[e.JSDocTypeTag=319]="JSDocTypeTag",e[e.JSDocTemplateTag=320]="JSDocTemplateTag",e[e.JSDocTypedefTag=321]="JSDocTypedefTag",e[e.JSDocPropertyTag=322]="JSDocPropertyTag",e[e.SyntaxList=323]="SyntaxList",e[e.NotEmittedStatement=324]="NotEmittedStatement",e[e.PartiallyEmittedExpression=325]="PartiallyEmittedExpression",e[e.CommaListExpression=326]="CommaListExpression",e[e.MergeDeclarationMarker=327]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=328]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=329]="SyntheticReferenceExpression",e[e.Count=330]="Count",e[e.FirstAssignment=62]="FirstAssignment",e[e.LastAssignment=74]="LastAssignment",e[e.FirstCompoundAssignment=63]="FirstCompoundAssignment",e[e.LastCompoundAssignment=74]="LastCompoundAssignment",e[e.FirstReservedWord=77]="FirstReservedWord",e[e.LastReservedWord=112]="LastReservedWord",e[e.FirstKeyword=77]="FirstKeyword",e[e.LastKeyword=152]="LastKeyword",e[e.FirstFutureReservedWord=113]="FirstFutureReservedWord",e[e.LastFutureReservedWord=121]="LastFutureReservedWord",e[e.FirstTypeNode=168]="FirstTypeNode",e[e.LastTypeNode=188]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=74]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=152]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=74]="LastBinaryOperator",e[e.FirstStatement=225]="FirstStatement",e[e.LastStatement=241]="LastStatement",e[e.FirstNode=153]="FirstNode",e[e.FirstJSDocNode=294]="FirstJSDocNode",e[e.LastJSDocNode=322]="LastJSDocNode",e[e.FirstJSDocTagNode=306]="FirstJSDocTagNode",e[e.LastJSDocTagNode=322]="LastJSDocTagNode",e[e.FirstContextualKeyword=122]="FirstContextualKeyword",e[e.LastContextualKeyword=152]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.ThisNodeHasError=65536]="ThisNodeHasError",e[e.JavaScriptFile=131072]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=524288]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",e[e.JSDoc=4194304]="JSDoc",e[e.Ambient=8388608]="Ambient",e[e.InWithStatement=16777216]="InWithStatement",e[e.JsonFile=33554432]="JsonFile",e[e.TypeCached=67108864]="TypeCached",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=25358336]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=3071]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.Referenced=1024]="Referenced",e[e.Shared=2048]="Shared",e[e.PreFinally=4096]="PreFinally",e[e.AfterFinally=8192]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));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.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.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.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=277904747]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",e[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.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.IncludesMask=68943871]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=2097152]="IncludesNonWideningType",e[e.IncludesWildcard=4194304]="IncludesWildcard",e[e.IncludesEmptyObject=8388608]="IncludesEmptyObject",e[e.GenericMappedType=131072]="GenericMappedType"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ArrayLiteral=65536]="ArrayLiteral",e[e.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.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=1572864]="RequiresWidening",e[e.PropagatingFlags=3670016]="PropagatingFlags"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.IsInnerCallChain=4]="IsInnerCallChain",e[e.IsOuterCallChain=8]="IsOuterCallChain",e[e.PropagatingFlags=3]="PropagatingFlags",e[e.CallChainFlags=12]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=4]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=8]="MappedTypeConstraint",e[e.ContravariantConditional=16]="ContravariantConditional",e[e.ReturnType=32]="ReturnType",e[e.LiteralKeyof=64]="LiteralKeyof",e[e.NoConstraints=128]="NoConstraints",e[e.AlwaysStrict=256]="AlwaysStrict",e[e.MaxValue=512]="MaxValue",e[e.PriorityImpliesCombination=104]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(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.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2020=8]="AssertES2020",e[e.AssertES2019=16]="AssertES2019",e[e.AssertES2018=32]="AssertES2018",e[e.AssertES2017=64]="AssertES2017",e[e.AssertES2016=128]="AssertES2016",e[e.AssertES2015=256]="AssertES2015",e[e.AssertGenerator=512]="AssertGenerator",e[e.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=538920960]="ArrowFunctionExcludes",e[e.FunctionExcludes=538925056]="FunctionExcludes",e[e.ConstructorExcludes=538923008]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536875008]="PropertyExcludes",e[e.ClassExcludes=536905728]="ClassExcludes",e[e.ModuleExcludes=537991168]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536887296]="CatchClauseExcludes",e[e.BindingPatternExcludes=536879104]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.SpreadArrays=2048]="SpreadArrays",e[e.Await=4096]="Await",e[e.AsyncGenerator=8192]="AsyncGenerator",e[e.AsyncDelegator=16384]="AsyncDelegator",e[e.AsyncValues=32768]="AsyncValues",e[e.ExportStar=65536]="ExportStar",e[e.MakeTemplateObject=131072]="MakeTemplateObject",e[e.ClassPrivateFieldGet=262144]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=524288]="ClassPrivateFieldSet",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=524288]="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.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=528]="TupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=49153]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(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=y(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(),v="win32"!==h&&"win64"!==h&&!N((p=n,p.replace(/\w/g,(function(e){var n=e.toUpperCase();return e===n?e.toLowerCase():n})))),E=_&&("win32"===process.platform||"darwin"===process.platform),S=T({pollingWatchFile:g((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)}}),v),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=k(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=E?{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"),A(n,b(r),o,s)}}function _(e,a){return"rename"!==e||a&&a!==d&&a.lastIndexOf(u)!==a.length-u.length||k(n,t)?r(e,a):f(g)}function g(){return A(n,(function(e,r){r===i.Created&&k(n,t)&&f(m)}),o,s)}},useCaseSensitiveFileNames:v,fileExists:N,fsSupportsRecursiveFsWatch:E,directoryExists:O,getAccessibleSortedChildDirectories:function(e){return R(e).directories},realpath:M,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY}),A=S.watchFile,x=S.watchDirectory,C={args:process.argv.slice(2),newLine:d.EOL,useCaseSensitiveFileNames:v,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:A,watchDirectory:x,resolvePath:function(e){return u.resolve(e)},fileExists:N,directoryExists:O,createDirectory:function(e){if(!C.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 R(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(n,t,r,a,i){return e.matchFiles(n,t,r,a,v,process.cwd(),i,R,M)},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?w:a,createSHA256Hash:o?w: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){D((function(){return process.exit(e)}))},enableCPUProfiler:function(e,n){if(s)return n(),!1;var r=t(39);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:D,realpath:M,debugMode:e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{t(29).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,C);return{module:t(38)(a),modulePath:a,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return C;function D(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=e.createMap(),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=A(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=A(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]&&x(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(R(n,t,"boolean"==typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a))}function N(n,t,a,i,o){var s=R(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."),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."),Catch_clause_variable_cannot_have_a_type_annotation:n(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer: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."),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."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:n(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement: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'."),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'."),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:n(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: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_be_referenced_in_its_initializer:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:n(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature: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}'."),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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:n(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: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."),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."),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?"),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."),It_is_highly_likely_that_you_are_missing_a_semicolon:n(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: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:n(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_2749","'{0}' refers to a value, but is being used as a type here."),The_implementation_signature_is_declared_here: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."),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_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}."),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."),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."),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"),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."),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}'."),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."),JSX_fragment_is_not_supported_when_using_jsxFactory:n(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:n(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Unknown_type_acquisition_option_0_Did_you_mean_1: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_destructuring:n(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),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_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_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}'"),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.")}}(d||(d={})),function(e){var n;function t(e){return e>=75}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||t(e)};var r=((n={abstract:122,any:125,as:123,asserts:124,bigint:151,boolean:128,break:77,case:78,catch:79,class:80,continue:82,const:81}).constructor=129,n.debugger=83,n.declare=130,n.default=84,n.delete=85,n.do=86,n.else=87,n.enum=88,n.export=89,n.extends=90,n.false=91,n.finally=92,n.for=93,n.from=149,n.function=94,n.get=131,n.if=95,n.implements=113,n.import=96,n.in=97,n.infer=132,n.instanceof=98,n.interface=114,n.is=133,n.keyof=134,n.let=115,n.module=135,n.namespace=136,n.never=137,n.new=99,n.null=100,n.number=140,n.object=141,n.package=116,n.private=117,n.protected=118,n.public=119,n.readonly=138,n.require=139,n.global=150,n.return=101,n.set=142,n.static=120,n.string=143,n.super=102,n.switch=103,n.symbol=144,n.this=104,n.throw=105,n.true=106,n.try=107,n.type=145,n.typeof=108,n.undefined=146,n.unique=147,n.unknown=148,n.var=109,n.void=110,n.while=111,n.with=112,n.yield=121,n.async=126,n.await=127,n.of=152,n),a=e.createMapFromTemplate(r),i=e.createMapFromTemplate(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,"^=":74,"@":59,"`":61})),s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],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];function f(e,n){if(e=2?d:1===n?l:s)}e.isUnicodeIdentifierStart=m;var _,g=(_=[],i.forEach((function(e,n){_[e]=n})),_);function y(e){for(var n=new Array,t=0,r=0;t127&&S(a)&&(n.push(r),r=t)}}return n.push(r),n}function h(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,y(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 S(e){return 10===e||13===e||8232===e||8233===e}function L(e){return e>=48&&e<=57}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return g[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=y,e.getPositionOfLineAndCharacter=function(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):h(v(e),n,t,e.text,r)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=v,e.computeLineAndCharacterOfPosition=b,e.getLineAndCharacterOfPosition=function(e,n){return b(v(e),n)},e.isWhiteSpaceLike=E,e.isWhiteSpaceSingleLine=T,e.isLineBreak=S,e.isOctalDigit=A,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&&E(i)){t++;continue}}return t}};var x="<<<<<<<".length;function C(n,t){if(e.Debug.assert(t>=0),0===t||S(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+x=0&&t127&&E(_)){d&&S(_)&&(u=!0),t++;continue}break e}}return d&&(f=a(s,c,l,u,i,f)),f}function O(e,n,t,r,a){return N(!0,e,n,!1,t,r,a)}function M(e,n,t,r,a){return N(!0,e,n,!0,t,r,a)}function P(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function w(e){var n=I.exec(e);if(n)return n[0]}function F(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,n)}function G(e,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,n){return f(e,n>=2?p:1===n?u:c)}(e,n)}e.isShebangTrivia=R,e.scanShebangTrivia=k,e.forEachLeadingCommentRange=function(e,n,t,r){return N(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return N(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=O,e.reduceEachTrailingCommentRange=M,e.getLeadingCommentRanges=function(e,n){return O(e,n,P,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return M(e,n,P,void 0,void 0)},e.getShebang=w,e.isIdentifierStart=F,e.isIdentifierPart=G,e.isIdentifierText=function(e,n){var t=B(e,0);if(!F(t,n))return!1;for(var r=U(t);r112},isReservedWord:function(){return m>=77&&m<=112},isUnterminated:function(){return 0!=(4&g)},getTokenFlags:function(){return g},reScanGreaterToken:function(){if(31===m){if(62===y.charCodeAt(u))return 62===y.charCodeAt(u+1)?61===y.charCodeAt(u+2)?(u+=3,m=71):(u+=2,m=49):61===y.charCodeAt(u+1)?(u+=2,m=70):(u++,m=48);if(61===y.charCodeAt(u))return u++,m=33}return m},reScanSlashToken:function(){if(43===m||67===m){for(var t=f+1,r=!1,a=!1;;){if(t>=d){g|=4,b(e.Diagnostics.Unterminated_regular_expression_literal);break}var i=y.charCodeAt(t);if(S(i)){g|=4,b(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 m=1;var e=B(y,u);switch(u+=U(e),e){case 9:case 11:case 12:case 32:for(;u=0&&F(t,n))return u+=3,g|=8,_=q()+X(),m=Y();var r=z();return r>=0&&F(r,n)?(u+=6,g|=1024,_=String.fromCharCode(r)+X(),m=Y()):(u++,m=0)}if(F(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+=y.substring(a,u),g|=4,b(e.Diagnostics.Unterminated_string_literal);break}var i=y.charCodeAt(u);if(i===t){r+=y.substring(a,u),u++;break}if(92!==i||n){if(S(i)&&!n){r+=y.substring(a,u),g|=4,b(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=y.substring(a,u),r+=K(),a=u}return r}function H(){for(var n,t=96===y.charCodeAt(u),r=++u,a="";;){if(u>=d){a+=y.substring(r,u),g|=4,b(e.Diagnostics.Unterminated_template_literal),n=t?14:17;break}var i=y.charCodeAt(u);if(96===i){a+=y.substring(r,u),u++,n=t?14:17;break}if(36===i&&u+1=d)return b(e.Diagnostics.Unexpected_end_of_text),"";var n=y.charCodeAt(u);switch(u++,n){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return u=0?String.fromCharCode(t):(b(e.Diagnostics.Hexadecimal_digit_expected),"")}function q(){var n=P(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(b(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(b(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=d?(b(e.Diagnostics.Unexpected_end_of_text),r=!0):125===y.charCodeAt(u)?u++:(b(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":j(t)}function z(){if(u+5=2&&117===B(y,u+1)&&123===B(y,u+2)){var e=u;u+=3;var t=P(1,!1),r=t?parseInt(t,16):-1;return u=e,r}return-1}function X(){for(var e="",t=u;u=0&&G(r,n)){u+=3,g|=8,e+=q(),t=u;continue}if(!((r=z())>=0&&G(r,n)))break;g|=1024,e+=y.substring(t,u),e+=j(r),t=u+=6}}return e+=y.substring(t,u)}function Y(){var e=_.length;if(e>=2&&e<=11){var n=_.charCodeAt(0);if(n>=97&&n<=122){var t=a.get(_);if(void 0!==t)return m=t}}return m=75}function Q(n){for(var t="",r=!1,a=!1;;){var i=y.charCodeAt(u);if(95!==i){if(r=!0,!L(i)||i-48>=n)break;t+=y[u],u++,a=!1}else g|=512,r?(r=!1,a=!0):b(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===y.charCodeAt(u-1)&&b(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t}function Z(){if(110===y.charCodeAt(u))return _+="n",384&g&&(_=e.parsePseudoBigInt(_)+"n"),u++,9;var n=128&g?parseInt(_.slice(2),2):256&g?parseInt(_.slice(2),8):+_;return _=""+n,8}function $(){var t;p=u,g=0;for(var a=!1;;){if(f=u,u>=d)return m=1;var o=B(y,u);if(35===o&&0===u&&R(y,u)){if(u=k(y,u),r)continue;return m=6}switch(o){case 10:case 13:if(g|=1,r){u++;continue}return 13===o&&u+1=0&&F(l,n))return u+=3,g|=8,_=q()+X(),m=Y();var v=z();return v>=0&&F(v,n)?(u+=6,g|=1024,_=String.fromCharCode(v)+X(),m=Y()):(b(e.Diagnostics.Invalid_character),u++,m=0);case 35:if(0!==u&&"!"===y[u+1])return b(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,m=0;if(u++,F(o=y.charCodeAt(u),n)){for(u++;u=d)return m=1;var e=y.charCodeAt(u);if(60===e)return 47===y.charCodeAt(u+1)?(u+=2,m=30):(u++,m=29);if(123===e)return u++,m=18;for(var n=0,t=-1;u0&&t++,S(e)&&0===n?n=-1:E(e)||(n=u),u++}var r=-1===t?u:t;return _=y.substring(p,r),-1===n?12:11}function ne(){switch(p=u,y.charCodeAt(u)){case 34:case 39:return _=V(!0),m=10;default:return $()}}function te(e,n){var t=u,r=p,a=f,i=m,o=_,s=g,c=e();return c&&!n||(u=t,p=r,f=a,m=i,_=o,g=s),c}function re(e,n,t){y=e||"",d=void 0===t?y.length:n+t,ae(n||0)}function ae(n){e.Debug.assert(n>=0),u=n,p=n,f=n,m=0,_=void 0,g=0}};var B=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 U(e){return e>=65536?2:1}var V=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 j(e){return V(e)}e.utf16EncodeAsString=j}(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!!Ge(n)&&e.every(n.elements,u)}function u(e){return!!z(e)||l(e.name)}function d(e){for(var n=e.parent;F(n.parent);)n=n.parent.parent;return n.parent}function p(e,n){F(e)&&(e=d(e));var t=n(e);return 242===e.kind&&(e=e.parent),e&&243===e.kind&&(t|=n(e),e=e.parent),e&&225===e.kind&&(t|=n(e)),t}function f(e,n){if(e)for(;void 0!==e.original;)e=e.original;return!n||n(e)?e:void 0}function m(e){return 0==(8&e.flags)}function _(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 g(e){return _(e.escapedText)}function y(e){var n=e.parent.parent;if(n){if(Xe(n))return h(n);switch(n.kind){case 225:if(n.declarationList&&n.declarationList.declarations[0])return h(n.declarationList.declarations[0]);break;case 226:var t=n.expression;switch(209===t.kind&&62===t.operatorToken.kind&&(t=t.left),t.kind){case 194:return t.name;case 195:var r=t.argumentExpression;if(I(r))return r}break;case 200:return h(n.expression);case 238:if(Xe(n.statement)||He(n.statement))return h(n.statement)}}}function h(e){var n=T(e);return n&&I(n)?n:void 0}function v(e){return e.name||y(e)}function b(e){return!!e.name}function E(n){switch(n.kind){case 75:return n;case 322:case 316:var t=n.name;if(153===t.kind)return t.right;break;case 196:case 209: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 321:return v(n);case 315:return y(n);case 259:var a=n.expression;return I(a)?a:void 0;case 195:var i=n;if(e.isBindableStaticElementAccessExpression(i))return i.argumentExpression}return n.name}function T(n){if(void 0!==n)return E(n)||(K(n)||q(n)?function(n){if(!n.parent)return;if(se(n.parent)||F(n.parent))return n.parent.name;if(W(n.parent)&&n===n.parent.right){if(I(n.parent.left))return n.parent.left;if(e.isAccessExpression(n.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(n.parent.left)}else if($(n.parent)&&I(n.parent.name))return n.parent.name}(n):void 0)}function S(n){if(n.name){if(I(n.name)){var t=n.name.escapedText;return C(n.parent).filter((function(e){return ve(e)&&I(e.name)&&e.name.escapedText===t}))}var r=n.parent.parameters.indexOf(n);e.Debug.assert(r>-1,"Parameters should always be in their parents' parameter list");var a=C(n.parent).filter(ve);if(r=153}function xe(e){return 8<=e&&e<=14}function Ce(e){return 14<=e&&e<=17}function De(e){return N(e)&&R(e.name)}function Ie(e){switch(e){case 122:case 126:case 81:case 130:case 84:case 89:case 119:case 117:case 118:case 138:case 120:return!0}return!1}function Re(n){return!!(92&e.modifierToFlag(n))}function ke(e){return e&&Oe(e.kind)}function Ne(e){switch(e){case 244:case 161:case 162:case 163:case 164:case 201:case 202:return!0;default:return!1}}function Oe(e){switch(e){case 160:case 165:case 305:case 166:case 167:case 170:case 300:case 171:return!0;default:return Ne(e)}}function Me(e){var n=e.kind;return 162===n||159===n||161===n||163===n||164===n||167===n||222===n}function Pe(e){return e&&(245===e.kind||214===e.kind)}function we(e){var n=e.kind;return 166===n||165===n||158===n||160===n||167===n}function Fe(e){var n=e.kind;return 281===n||282===n||283===n||161===n||163===n||164===n}function Ge(e){if(e){var n=e.kind;return 190===n||189===n}return!1}function Be(e){switch(e.kind){case 189:case 193:return!0}return!1}function Ue(e){switch(e.kind){case 190:case 192:return!0}return!1}function Ve(e){switch(e){case 194:case 195:case 197:case 196:case 266:case 267:case 270:case 198:case 192:case 200:case 193:case 214:case 201:case 75:case 13:case 8:case 9:case 10:case 14:case 211:case 91:case 100:case 104:case 106:case 102:case 218:case 219:case 96:return!0;default:return!1}}function je(e){switch(e){case 207:case 208:case 203:case 204:case 205:case 206:case 199:return!0;default:return Ve(e)}}function He(e){return function(e){switch(e){case 210:case 212:case 202:case 209:case 213:case 217:case 215:case 326:case 325:return!0;default:return je(e)}}(H(e).kind)}function Ke(e){return 325===e.kind}function We(e){return 324===e.kind}function qe(e){return re(e)||ae(e)}function ze(e){return 244===e||264===e||245===e||246===e||247===e||248===e||249===e||254===e||253===e||260===e||259===e||252===e}function Je(e){return 234===e||233===e||241===e||228===e||226===e||224===e||231===e||232===e||230===e||227===e||238===e||235===e||237===e||239===e||240===e||225===e||229===e||236===e||324===e||328===e||327===e}function Xe(n){return 155===n.kind?n.parent&&320!==n.parent.kind||e.isInJSFile(n):202===(t=n.kind)||191===t||245===t||214===t||162===t||248===t||284===t||263===t||244===t||201===t||163===t||255===t||253===t||258===t||246===t||273===t||161===t||160===t||249===t||252===t||256===t||262===t||156===t||281===t||159===t||158===t||164===t||282===t||247===t||155===t||242===t||321===t||314===t||322===t;var t}function Ye(e){return e.kind>=306&&e.kind<=322}function Qe(e){return!!e.initializer}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=_,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&De(e.valueDeclaration)?g(e.valueDeclaration.name):_(e.escapedName)},e.nodeHasName=function n(t,r){return!(!b(t)||!I(t.name)||g(t.name)!==g(r))||!(!X(t)||!e.some(t.declarationList.declarations,(function(e){return n(e,r)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=b,e.getNonAssignedNameOfDeclaration=E,e.getNameOfDeclaration=T,e.getJSDocParameterTags=S,e.getJSDocTypeParameterTags=function(e){var n=e.name.escapedText;return C(e.parent).filter((function(e){return Te(e)&&e.typeParameters.some((function(e){return e.name.escapedText===n}))}))},e.hasJSDocParameterTags=function(e){return!!D(e,ve)},e.getJSDocAugmentsTag=function(e){return D(e,de)},e.getJSDocClassTag=function(e){return D(e,pe)},e.getJSDocPublicTag=function(e){return D(e,fe)},e.getJSDocPrivateTag=function(e){return D(e,me)},e.getJSDocProtectedTag=function(e){return D(e,_e)},e.getJSDocReadonlyTag=function(e){return D(e,ge)},e.getJSDocEnumTag=function(e){return D(e,ye)},e.getJSDocThisTag=function(e){return D(e,he)},e.getJSDocReturnTag=L,e.getJSDocTemplateTag=function(e){return D(e,Te)},e.getJSDocTypeTag=A,e.getJSDocType=x,e.getJSDocReturnType=function(n){var t=L(n);if(t&&t.typeExpression)return t.typeExpression.type;var r=A(n);if(r&&r.typeExpression){var a=r.typeExpression.type;if(w(a)){var i=e.find(a.members,O);return i&&i.type}if(P(a))return a.type}},e.getJSDocTags=C,e.getAllJSDocTagsOfKind=function(e,n){return C(e).filter((function(e){return e.kind===n}))},e.getEffectiveTypeParameterDeclarations=function(n){if(Le(n))return e.emptyArray;if(e.isJSDocTypeAlias(n))return e.Debug.assert(303===n.parent.kind),e.flatMap(n.parent.tags,(function(e){return Te(e)?e.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=x(n);if(r&&P(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(e){return e.constraint?e.constraint:Te(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0},e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=I,e.isQualifiedName=function(e){return 153===e.kind},e.isComputedPropertyName=function(e){return 154===e.kind},e.isPrivateIdentifier=R,e.isIdentifierOrPrivateIdentifier=function(e){return 75===e.kind||76===e.kind},e.isTypeParameterDeclaration=function(e){return 155===e.kind},e.isParameter=k,e.isDecorator=function(e){return 157===e.kind},e.isPropertySignature=function(e){return 158===e.kind},e.isPropertyDeclaration=N,e.isMethodSignature=function(e){return 160===e.kind},e.isMethodDeclaration=function(e){return 161===e.kind},e.isConstructorDeclaration=function(e){return 162===e.kind},e.isGetAccessorDeclaration=function(e){return 163===e.kind},e.isSetAccessorDeclaration=function(e){return 164===e.kind},e.isCallSignatureDeclaration=O,e.isConstructSignatureDeclaration=function(e){return 166===e.kind},e.isIndexSignatureDeclaration=function(e){return 167===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 164===e.kind||163===e.kind},e.isTypePredicateNode=function(e){return 168===e.kind},e.isTypeReferenceNode=M,e.isFunctionTypeNode=P,e.isConstructorTypeNode=function(e){return 171===e.kind},e.isTypeQueryNode=function(e){return 172===e.kind},e.isTypeLiteralNode=w,e.isArrayTypeNode=function(e){return 174===e.kind},e.isTupleTypeNode=function(e){return 175===e.kind},e.isUnionTypeNode=function(e){return 178===e.kind},e.isIntersectionTypeNode=function(e){return 179===e.kind},e.isConditionalTypeNode=function(e){return 180===e.kind},e.isInferTypeNode=function(e){return 181===e.kind},e.isParenthesizedTypeNode=function(e){return 182===e.kind},e.isThisTypeNode=function(e){return 183===e.kind},e.isTypeOperatorNode=function(e){return 184===e.kind},e.isIndexedAccessTypeNode=function(e){return 185===e.kind},e.isMappedTypeNode=function(e){return 186===e.kind},e.isLiteralTypeNode=function(e){return 187===e.kind},e.isImportTypeNode=function(e){return 188===e.kind},e.isObjectBindingPattern=function(e){return 189===e.kind},e.isArrayBindingPattern=function(e){return 190===e.kind},e.isBindingElement=F,e.isArrayLiteralExpression=function(e){return 192===e.kind},e.isObjectLiteralExpression=function(e){return 193===e.kind},e.isPropertyAccessExpression=G,e.isPropertyAccessChain=function(e){return G(e)&&!!(32&e.flags)},e.isElementAccessExpression=B,e.isElementAccessChain=function(e){return B(e)&&!!(32&e.flags)},e.isCallExpression=U,e.isCallChain=function(e){return U(e)&&!!(32&e.flags)},e.isOptionalChain=V,e.isOptionalChainRoot=j,e.isExpressionOfOptionalChainRoot=function(e){return j(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!V(e.parent)||j(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 209===e.kind&&60===e.operatorToken.kind},e.isNewExpression=function(e){return 197===e.kind},e.isTaggedTemplateExpression=function(e){return 198===e.kind},e.isTypeAssertion=function(e){return 199===e.kind},e.isConstTypeReference=function(e){return M(e)&&I(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments},e.isParenthesizedExpression=function(e){return 200===e.kind},e.skipPartiallyEmittedExpressions=H,e.isFunctionExpression=K,e.isArrowFunction=function(e){return 202===e.kind},e.isDeleteExpression=function(e){return 203===e.kind},e.isTypeOfExpression=function(e){return 204===e.kind},e.isVoidExpression=function(e){return 205===e.kind},e.isAwaitExpression=function(e){return 206===e.kind},e.isPrefixUnaryExpression=function(e){return 207===e.kind},e.isPostfixUnaryExpression=function(e){return 208===e.kind},e.isBinaryExpression=W,e.isConditionalExpression=function(e){return 210===e.kind},e.isTemplateExpression=function(e){return 211===e.kind},e.isYieldExpression=function(e){return 212===e.kind},e.isSpreadElement=function(e){return 213===e.kind},e.isClassExpression=q,e.isOmittedExpression=z,e.isExpressionWithTypeArguments=function(e){return 216===e.kind},e.isAsExpression=function(e){return 217===e.kind},e.isNonNullExpression=function(e){return 218===e.kind},e.isMetaProperty=function(e){return 219===e.kind},e.isTemplateSpan=function(e){return 221===e.kind},e.isSemicolonClassElement=function(e){return 222===e.kind},e.isBlock=J,e.isVariableStatement=X,e.isEmptyStatement=function(e){return 224===e.kind},e.isExpressionStatement=function(e){return 226===e.kind},e.isIfStatement=function(e){return 227===e.kind},e.isDoStatement=function(e){return 228===e.kind},e.isWhileStatement=function(e){return 229===e.kind},e.isForStatement=Y,e.isForInStatement=Q,e.isForOfStatement=Z,e.isContinueStatement=function(e){return 233===e.kind},e.isBreakStatement=function(e){return 234===e.kind},e.isBreakOrContinueStatement=function(e){return 234===e.kind||233===e.kind},e.isReturnStatement=function(e){return 235===e.kind},e.isWithStatement=function(e){return 236===e.kind},e.isSwitchStatement=function(e){return 237===e.kind},e.isLabeledStatement=function(e){return 238===e.kind},e.isThrowStatement=function(e){return 239===e.kind},e.isTryStatement=function(e){return 240===e.kind},e.isDebuggerStatement=function(e){return 241===e.kind},e.isVariableDeclaration=$,e.isVariableDeclarationList=ee,e.isFunctionDeclaration=function(e){return 244===e.kind},e.isClassDeclaration=function(e){return 245===e.kind},e.isInterfaceDeclaration=function(e){return 246===e.kind},e.isTypeAliasDeclaration=function(e){return 247===e.kind},e.isEnumDeclaration=function(e){return 248===e.kind},e.isModuleDeclaration=function(e){return 249===e.kind},e.isModuleBlock=ne,e.isCaseBlock=function(e){return 251===e.kind},e.isNamespaceExportDeclaration=function(e){return 252===e.kind},e.isImportEqualsDeclaration=function(e){return 253===e.kind},e.isImportDeclaration=function(e){return 254===e.kind},e.isImportClause=function(e){return 255===e.kind},e.isNamespaceImport=function(e){return 256===e.kind},e.isNamespaceExport=function(e){return 262===e.kind},e.isNamedExportBindings=function(e){return 262===e.kind||261===e.kind},e.isNamedImports=function(e){return 257===e.kind},e.isImportSpecifier=te,e.isExportAssignment=re,e.isExportDeclaration=ae,e.isNamedExports=function(e){return 261===e.kind},e.isExportSpecifier=ie,e.isMissingDeclaration=function(e){return 264===e.kind},e.isExternalModuleReference=function(e){return 265===e.kind},e.isJsxElement=function(e){return 266===e.kind},e.isJsxSelfClosingElement=function(e){return 267===e.kind},e.isJsxOpeningElement=function(e){return 268===e.kind},e.isJsxClosingElement=function(e){return 269===e.kind},e.isJsxFragment=function(e){return 270===e.kind},e.isJsxOpeningFragment=function(e){return 271===e.kind},e.isJsxClosingFragment=function(e){return 272===e.kind},e.isJsxAttribute=oe,e.isJsxAttributes=function(e){return 274===e.kind},e.isJsxSpreadAttribute=function(e){return 275===e.kind},e.isJsxExpression=function(e){return 276===e.kind},e.isCaseClause=function(e){return 277===e.kind},e.isDefaultClause=function(e){return 278===e.kind},e.isHeritageClause=function(e){return 279===e.kind},e.isCatchClause=function(e){return 280===e.kind},e.isPropertyAssignment=se,e.isShorthandPropertyAssignment=function(e){return 282===e.kind},e.isSpreadAssignment=function(e){return 283===e.kind},e.isEnumMember=function(e){return 284===e.kind},e.isSourceFile=ce,e.isBundle=function(e){return 291===e.kind},e.isUnparsedSource=function(e){return 292===e.kind},e.isUnparsedPrepend=function(e){return 286===e.kind},e.isUnparsedTextLike=le,e.isUnparsedNode=function(e){return le(e)||285===e.kind||289===e.kind},e.isJSDocTypeExpression=function(e){return 294===e.kind},e.isJSDocAllType=function(e){return 295===e.kind},e.isJSDocUnknownType=function(e){return 296===e.kind},e.isJSDocNullableType=function(e){return 297===e.kind},e.isJSDocNonNullableType=function(e){return 298===e.kind},e.isJSDocOptionalType=function(e){return 299===e.kind},e.isJSDocFunctionType=function(e){return 300===e.kind},e.isJSDocVariadicType=function(e){return 301===e.kind},e.isJSDoc=ue,e.isJSDocAuthorTag=function(e){return 308===e.kind},e.isJSDocAugmentsTag=de,e.isJSDocClassTag=pe,e.isJSDocPublicTag=fe,e.isJSDocPrivateTag=me,e.isJSDocProtectedTag=_e,e.isJSDocReadonlyTag=ge,e.isJSDocEnumTag=ye,e.isJSDocThisTag=he,e.isJSDocParameterTag=ve,e.isJSDocReturnTag=be,e.isJSDocTypeTag=Ee,e.isJSDocTemplateTag=Te,e.isJSDocTypedefTag=function(e){return 321===e.kind},e.isJSDocPropertyTag=function(e){return 322===e.kind},e.isJSDocPropertyLikeTag=function(e){return 322===e.kind||316===e.kind},e.isJSDocTypeLiteral=Se,e.isJSDocCallbackTag=function(e){return 314===e.kind},e.isJSDocSignature=Le,e.isSyntaxList=function(e){return 323===e.kind},e.isNode=function(e){return Ae(e.kind)},e.isNodeKind=Ae,e.isToken=function(e){return e.kind>=0&&e.kind<=152},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=xe,e.isLiteralExpression=function(e){return xe(e.kind)},e.isTemplateLiteralKind=Ce,e.isTemplateLiteralToken=function(e){return Ce(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 16===n||17===n},e.isImportOrExportSpecifier=function(e){return te(e)||ie(e)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 258:case 263:return e.parent.parent.isTypeOnly;case 256:return e.parent.isTypeOnly;case 255:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||Ce(e.kind)},e.isGeneratedIdentifier=function(e){return I(e)&&(7&e.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=De,e.isPrivateIdentifierPropertyAccessExpression=function(e){return G(e)&&R(e.name)},e.isModifierKind=Ie,e.isParameterPropertyModifier=Re,e.isClassMemberModifier=function(e){return Re(e)||120===e},e.isModifier=function(e){return Ie(e.kind)},e.isEntityName=function(e){var n=e.kind;return 153===n||75===n},e.isPropertyName=function(e){var n=e.kind;return 75===n||10===n||8===n||154===n},e.isBindingName=function(e){var n=e.kind;return 75===n||189===n||190===n},e.isFunctionLike=ke,e.isFunctionLikeDeclaration=function(e){return e&&Ne(e.kind)},e.isFunctionLikeKind=Oe,e.isFunctionOrModuleBlock=function(e){return ce(e)||ne(e)||J(e)&&ke(e.parent)},e.isClassElement=Me,e.isClassLike=Pe,e.isAccessor=function(e){return e&&(163===e.kind||164===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 161:case 163:case 164:return!0;default:return!1}},e.isTypeElement=we,e.isClassOrTypeElement=function(e){return we(e)||Me(e)},e.isObjectLiteralElementLike=Fe,e.isTypeNode=function(n){return e.isTypeNodeKind(n.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 170:case 171:return!0}return!1},e.isBindingPattern=Ge,e.isAssignmentPattern=function(e){var n=e.kind;return 192===n||193===n},e.isArrayBindingElement=function(e){var n=e.kind;return 191===n||215===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 242:case 156:case 191:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Be(e)||Ue(e)},e.isObjectBindingOrAssignmentPattern=Be,e.isArrayBindingOrAssignmentPattern=Ue,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 194===n||153===n||188===n},e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 194===n||153===n},e.isCallLikeExpression=function(e){switch(e.kind){case 268:case 267:case 196:case 197:case 198:case 157:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 196===e.kind||197===e.kind},e.isTemplateLiteral=function(e){var n=e.kind;return 211===n||14===n},e.isLeftHandSideExpression=function(e){return Ve(H(e).kind)},e.isUnaryExpression=function(e){return je(H(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 208:return!0;case 207:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=He,e.isAssertionExpression=function(e){var n=e.kind;return 199===n||217===n},e.isPartiallyEmittedExpression=Ke,e.isNotEmittedStatement=We,e.isSyntheticReference=function(e){return 329===e.kind},e.isNotEmittedOrPartiallyEmittedNode=function(e){return We(e)||Ke(e)},e.isIterationStatement=function e(n,t){switch(n.kind){case 230:case 231:case 232:case 228:case 229:return!0;case 238:return t&&e(n.statement,t)}return!1},e.isScopeMarker=qe,e.hasScopeMarker=function(n){return e.some(n,qe)},e.needsScopeMarker=function(n){return!(e.isAnyImportOrReExport(n)||re(n)||e.hasModifier(n,1)||e.isAmbientModule(n))},e.isExternalModuleIndicator=function(n){return e.isAnyImportOrReExport(n)||re(n)||e.hasModifier(n,1)},e.isForInOrOfStatement=function(e){return 231===e.kind||232===e.kind},e.isConciseBody=function(e){return J(e)||He(e)},e.isFunctionBody=function(e){return J(e)},e.isForInitializer=function(e){return ee(e)||He(e)},e.isModuleBody=function(e){var n=e.kind;return 250===n||249===n||75===n},e.isNamespaceBody=function(e){var n=e.kind;return 250===n||249===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 75===n||249===n},e.isNamedImportBindings=function(e){var n=e.kind;return 257===n||256===n},e.isModuleOrEnumDeclaration=function(e){return 249===e.kind||248===e.kind},e.isDeclaration=Xe,e.isDeclarationStatement=function(e){return ze(e.kind)},e.isStatementButNotDeclaration=function(e){return Je(e.kind)},e.isStatement=function(n){var t=n.kind;return Je(t)||ze(t)||function(n){if(223!==n.kind)return!1;if(void 0!==n.parent&&(240===n.parent.kind||280===n.parent.kind))return!1;return!e.isFunctionBlock(n)}(n)},e.isModuleReference=function(e){var n=e.kind;return 265===n||153===n||75===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 104===n||75===n||194===n},e.isJsxChild=function(e){var n=e.kind;return 266===n||276===n||267===n||11===n||270===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 273===n||275===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 10===n||276===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 268===n||267===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 277===n||278===n},e.isJSDocNode=function(e){return e.kind>=294&&e.kind<=322},e.isJSDocCommentContainingNode=function(e){return 303===e.kind||Ye(e)||Se(e)||Le(e)},e.isJSDocTag=Ye,e.isSetAccessor=function(e){return 164===e.kind},e.isGetAccessor=function(e){return 163===e.kind},e.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&n.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=Qe,e.hasOnlyExpressionInitializer=function(e){return Qe(e)&&!Y(e)&&!Q(e)&&!Z(e)&&!oe(e)},e.isObjectLiteralElement=function(e){return 273===e.kind||275===e.kind||Fe(e)},e.isTypeReferenceType=function(e){return 169===e.kind||216===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 m(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function _(e){return!m(e)}function g(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r0?b(n._children[0],t,r):e.skipTrivia((t||p(n)).text,n.pos)}function E(e,n,t){return void 0===t&&(t=!1),T(e.text,n,t)}function T(n,t,r){if(void 0===r&&(r=!1),m(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 S(e,n){return void 0===n&&(n=!1),E(p(e),e,n)}function L(e){return e.pos}function A(e){var n=e.emitNode;return n&&n.flags||0}function x(e){var n=fn(e);return 242===n.kind&&280===n.parent.kind}function C(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||D(n))}function D(e){return!!(1024&e.flags)}function I(e){return C(e)&&R(e)}function R(n){switch(n.parent.kind){case 290:return e.isExternalModule(n.parent);case 250:return C(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function k(n,t){switch(n.kind){case 290:case 251:case 280:case 249:case 230:case 231:case 232:case 162:case 161:case 163:case 164:case 244:case 201:case 202:return!0;case 223:return!e.isFunctionLike(t)}return!1}function N(n){switch(n.kind){case 165:case 166:case 160:case 167:case 170:case 171:case 300:case 245:case 214:case 246:case 247:case 320:case 244:case 161:case 162:case 163:case 164:case 201:case 202:return!0;default:return e.assertType(n),!1}}function O(e){switch(e.kind){case 254:case 253:return!0;default:return!1}}function M(e){return e&&0!==u(e)?S(e):"(Missing)"}function P(n){switch(n.kind){case 75:case 76:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 154:return tn(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 w(e,n,t,r,a,i,o){var s=G(e,n);return Ut(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 290:var a=e.skipTrivia(n.text,0,!1);return a===n.text.length?e.createTextSpan(0,0):F(n,a);case 242:case 191:case 245:case 214:case 246:case 249:case 248:case 284:case 244:case 201:case 161:case 163:case 164:case 247:case 159:case 158:r=t.name;break;case 202:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&223===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=m(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 196===e.kind&&96===e.expression.kind}function j(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function H(e){return 226===e.kind&&10===e.expression.kind}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=c,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=l,e.arrayToSet=function(n,t){return e.arrayToMap(n,t||function(e){return e},e.returnTrue)},e.cloneMap=function(n){var t=e.createMap();return l(n,t),t},e.usingSingleLineStringWriter=function(e){var n=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(n)}},e.getFullWidth=u,e.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},e.setResolvedModule=function(n,t,r){n.resolvedModules||(n.resolvedModules=e.createMap()),n.resolvedModules.set(t,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=e.createMap()),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=p(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=f,e.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n)||e.identifiers.has(n))},e.nodeIsMissing=m,e.nodeIsPresent=_,e.insertStatementsAfterStandardPrologue=function(e,n){return g(e,n,H)},e.insertStatementsAfterCustomPrologue=function(e,n){return g(e,n,h)},e.insertStatementAfterStandardPrologue=function(e,n){return y(e,n,H)},e.insertStatementAfterCustomPrologue=function(e,n){return y(e,n,h)},e.isRecognizedTripleSlashComment=function(n,t,r){if(47===n.charCodeAt(t+1)&&t+2=e.ModuleKind.ES2015||!t.noImplicitUseStrict)))},e.isBlockScope=k,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 314:case 321:case 305:return!0;default:return e.assertType(n),N(n)}},e.isDeclarationWithTypeParameterChildren=N,e.isAnyImportSyntax=O,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 254:case 253:case 225:case 245:case 244:case 249:case 247:case 246:case 248:return!0;default:return!1}},e.isAnyImportOrReExport=function(n){return O(n)||e.isExportDeclaration(n)},e.getEnclosingBlockScopeContainer=function(e){return s(e.parent,(function(e){return k(e,e.parent)}))},e.declarationNameToString=M,e.getNameFromIndexInfo=function(e){return e.declaration?M(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=P,e.entityNameToString=function n(t){switch(t.kind){case 75:return 0===u(t)?e.idText(t):S(t);case 153:return n(t.left)+"."+n(t.right);case 194:return e.isIdentifier(t.name)?n(t.expression)+"."+n(t.name):e.Debug.assertNever(t.name);default:return e.Debug.assertNever(t)}},e.createDiagnosticForNode=function(e,n,t,r,a,i){return w(p(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 Ut(n,c,t.end-c,r,a,i,o,s)},e.createDiagnosticForNodeInSourceFile=w,e.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=p(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.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 196===e.kind&&102===e.expression.kind},e.isImportCall=V,e.isImportMeta=function(n){return e.isMetaProperty(n)&&96===n.keywordToken&&"meta"===n.name.escapedText},e.isLiteralImportTypeNode=j,e.isPrologueDirective=H,e.getLeadingCommentRangesOfNode=function(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=156===n.kind||155===n.kind||201===n.kind||202===n.kind||200===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 K=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var W=/^(\/\/\/\s*/;function q(n){if(168<=n.kind&&n.kind<=188)return!0;switch(n.kind){case 125:case 148:case 140:case 151:case 143:case 128:case 144:case 141:case 146:case 137:return!0;case 110:return 205!==n.parent.kind;case 216:return!pt(n);case 155:return 186===n.parent.kind||181===n.parent.kind;case 75:(153===n.parent.kind&&n.parent.right===n||194===n.parent.kind&&n.parent.name===n)&&(n=n.parent),e.Debug.assert(75===n.kind||153===n.kind||194===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 153:case 194:case 104:var t=n.parent;if(172===t.kind)return!1;if(188===t.kind)return!t.isTypeOf;if(168<=t.kind&&t.kind<=188)return!0;switch(t.kind){case 216:return!pt(t);case 155:case 320:return n===t.constraint;case 159:case 158:case 156:case 242:return n===t.type;case 244:case 201:case 202:case 162:case 161:case 160:case 163:case 164:return n===t.type;case 165:case 166:case 167:case 199:return n===t.type;case 196:case 197:return e.contains(t.typeArguments,n);case 198:return!1}}return!1}function z(e){if(e)switch(e.kind){case 191:case 284:case 156:case 281:case 159:case 158:case 282:case 242:return!0}return!1}function J(e){return 243===e.parent.kind&&225===e.parent.parent.kind}function X(e,n,t){return e.properties.filter((function(e){if(281===e.kind){var r=P(e.name);return n===r||!!t&&t===r}return!1}))}function Y(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function Q(n,t){var r=Y(n);return r?X(r,t):e.emptyArray}function Z(n,t){for(e.Debug.assert(290!==n.kind);;){if(!(n=n.parent))return e.Debug.fail();switch(n.kind){case 154:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 157:156===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 202:if(!t)continue;case 244:case 201:case 249:case 159:case 158:case 161:case 160:case 162:case 163:case 164:case 165:case 166:case 167:case 248:case 290:return n}}}function $(e){var n=e.kind;return(194===n||195===n)&&102===e.expression.kind}function ee(n,t,r){if(e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name))return!1;switch(n.kind){case 245:return!0;case 159:return 245===t.kind;case 163:case 164:case 161:return void 0!==n.body&&245===t.kind;case 156:return void 0!==t.body&&(162===t.kind||161===t.kind||164===t.kind)&&245===r.kind}return!1}function ne(e,n,t){return void 0!==e.decorators&&ee(e,n,t)}function te(e,n,t){return ne(e,n,t)||re(e,n)}function re(n,t){switch(n.kind){case 245:return e.some(n.members,(function(e){return te(e,n,t)}));case 161:case 164:return e.some(n.parameters,(function(e){return ne(e,n,t)}));default:return!1}}function ae(e){var n=e.parent;return(268===n.kind||267===n.kind||269===n.kind)&&n.tagName===e}function ie(e){switch(e.kind){case 102:case 100:case 106:case 91:case 13:case 192:case 193:case 194:case 195:case 196:case 197:case 198:case 217:case 199:case 218:case 200:case 201:case 214:case 202:case 205:case 203:case 204:case 207:case 208:case 209:case 210:case 213:case 211:case 215:case 266:case 267:case 270:case 212:case 206:case 219:return!0;case 153:for(;153===e.parent.kind;)e=e.parent;return 172===e.parent.kind||ae(e);case 75:if(172===e.parent.kind||ae(e))return!0;case 8:case 9:case 10:case 14:case 104:return oe(e);default:return!1}}function oe(e){var n=e.parent;switch(n.kind){case 242:case 156:case 159:case 158:case 284:case 281:case 191:return n.initializer===e;case 226:case 227:case 228:case 229:case 235:case 236:case 237:case 277:case 239:return n.expression===e;case 230:var t=n;return t.initializer===e&&243!==t.initializer.kind||t.condition===e||t.incrementor===e;case 231:case 232:var r=n;return r.initializer===e&&243!==r.initializer.kind||r.expression===e;case 199:case 217:case 221:case 154:return e===n.expression;case 157:case 276:case 275:case 283:return!0;case 216:return n.expression===e&&pt(n);case 282:return n.objectAssignmentInitializer===e;default:return ie(n)}}function se(e){for(;153===e.kind||75===e.kind;)e=e.parent;return 172===e.kind}function ce(e){return 253===e.kind&&265===e.moduleReference.kind}function le(e){return ue(e)}function ue(e){return!!e&&!!(131072&e.flags)}function de(n,t){if(196!==n.kind)return!1;var r=n,a=r.expression,i=r.arguments;if(75!==a.kind||"require"!==a.escapedText)return!1;if(1!==i.length)return!1;var o=i[0];return!t||e.isStringLiteralLike(o)}function pe(n){return ue(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&(56===n.initializer.operatorToken.kind||60===n.initializer.operatorToken.kind)&&n.name&&ft(n.name)&&me(n.name,n.initializer.left)?n.initializer.right:n.initializer}function fe(n,t){if(e.isCallExpression(n)){var r=Ke(n.expression);return 201===r.kind||202===r.kind?n:void 0}return 201===n.kind||214===n.kind||202===n.kind||e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function me(n,t){if(ln(n)&&ln(t))return un(n)==un(n);if(e.isIdentifier(n)&&be(t)&&(104===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Ae(t);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),me(n,r)}return!(!be(n)||!be(t))&&(Ce(n)===Ce(t)&&me(n.expression,t.expression))}function _e(e){for(;dt(e,!0);)e=e.right;return e}function ge(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function ye(n){return(e.isPropertyAccessExpression(n)||Ee(n))&&e.isIdentifier(n.expression)&&"module"===n.expression.escapedText&&"exports"===Ce(n)}function he(n){var t=function(n){if(e.isCallExpression(n)){if(!ve(n))return 0;var t=n.arguments[0];return ge(t)||ye(t)?8:Te(t)&&"prototype"===Ce(t)?9:7}if(62!==n.operatorToken.kind||!Nt(n.left))return 0;if(Le(n.left.expression,!0)&&"prototype"===Ce(n.left)&&e.isObjectLiteralExpression(Ie(n)))return 6;return De(n.left)}(n);return 5===t||ue(n)?t:0}function ve(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)&&tn(n.arguments[1])&&Le(n.arguments[0],!0)}function be(n){return e.isPropertyAccessExpression(n)||Ee(n)}function Ee(n){return e.isElementAccessExpression(n)&&(tn(n.argumentExpression)||sn(n.argumentExpression))}function Te(n,t){return e.isPropertyAccessExpression(n)&&(!t&&104===n.expression.kind||Le(n.expression,!0))||Se(n,t)}function Se(e,n){return Ee(e)&&(!n&&104===e.expression.kind||ft(e.expression)||Te(e.expression,!0))}function Le(e,n){return ft(e)||Te(e,n)}function Ae(n){return e.isPropertyAccessExpression(n)?n.name:n.argumentExpression}function xe(n){if(e.isPropertyAccessExpression(n))return n.name;var t=Ke(n.argumentExpression);return e.isNumericLiteral(t)||e.isStringLiteralLike(t)?t:n}function Ce(n){var t=xe(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)&&sn(n.argumentExpression))return dn(e.idText(n.argumentExpression.name))}function De(n){if(104===n.expression.kind)return 4;if(ye(n))return 2;if(Le(n.expression,!0)){if(_t(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"===Ce(t))&&Te(n))return 1;if(Le(n,!0)||e.isElementAccessExpression(n)&&on(n)&&104!==n.expression.kind)return 5}return 0}function Ie(n){for(;e.isBinaryExpression(n.right);)n=n.right;return n.right}function Re(n){switch(n.parent.kind){case 254:case 260:return n.parent;case 265:return n.parent.parent;case 196:return V(n.parent)||de(n.parent,!1)?n.parent:void 0;case 187:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function ke(e){return 321===e.kind||314===e.kind||315===e.kind}function Ne(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==he(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 Oe(e){switch(e.kind){case 225:var n=Me(e);return n&&n.initializer;case 159:case 281:return e.initializer}}function Me(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function Pe(n){return e.isModuleDeclaration(n)&&n.body&&249===n.body.kind?n.body:void 0}function we(n){var t=n.parent;return 281===t.kind||259===t.kind||159===t.kind||226===t.kind&&194===n.kind||Pe(t)||e.isBinaryExpression(n)&&62===n.operatorToken.kind?t:t.parent&&(Me(t.parent)===n||e.isBinaryExpression(t)&&62===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Me(t.parent.parent)||Oe(t.parent.parent)===n||Ne(t.parent.parent))?t.parent.parent:void 0}function Fe(e){return Ge(Be(e))}function Ge(n){var t,r=Ne(n)||(t=n,e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&62===t.expression.operatorToken.kind?_e(t.expression):void 0)||Oe(n)||Me(n)||Pe(n)||n;return r&&e.isFunctionLike(r)?r:void 0}function Be(n){return e.Debug.assertDefined(s(n.parent,e.isJSDoc)).parent}function Ue(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&301===t.kind}function Ve(e){for(var n=e.parent;;){switch(n.kind){case 209:var t=n.operatorToken.kind;return ct(t)&&n.left===e?62===t?1:2:0;case 207:case 208:var r=n.operator;return 45===r||46===r?2:0;case 231:case 232:return n.initializer===e?1:0;case 200:case 192:case 213:case 218:e=n;break;case 282:if(n.name!==e)return 0;e=n.parent;break;case 281:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function je(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function He(e){return je(e,200)}function Ke(e){for(;200===e.kind;)e=e.expression;return e}function We(n){return ft(n)||e.isClassExpression(n)}function qe(e){return We(ze(e))}function ze(n){return e.isExportAssignment(n)?n.expression:n.right}function Je(n){var t=Xe(n);if(t&&ue(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function Xe(e){var n=Ze(e.heritageClauses,90);return n&&n.types.length>0?n.types[0]:void 0}function Ye(e){var n=Ze(e.heritageClauses,113);return n?n.types:void 0}function Qe(e){var n=Ze(e.heritageClauses,90);return n?n.types:void 0}function Ze(e,n){if(e)for(var t=0,r=e;t=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 vn=/\$\{/g;var bn=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,En=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Tn=/[\\\`]/g,Sn=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"});function Ln(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function An(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Sn.get(e)||Ln(e.charCodeAt(0))}function xn(e,n){var t=96===n?Tn:39===n?En:bn;return e.replace(t,An)}e.escapeString=xn;var Cn=/[^\u0000-\u007F]/g;function Dn(e,n){return e=xn(e,n),Cn.test(e)?e.replace(Cn,(function(e){return Ln(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Dn;var In=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Rn=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,kn=e.createMapFromTemplate({'"':""","'":"'"});function Nn(e){return 0===e.charCodeAt(0)?"�":kn.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function On(e,n){var t=39===n?Rn:In;return e.replace(t,Nn)}e.escapeJsxAttributeString=On,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 Mn=[""," "];function Pn(e){return void 0===Mn[e]&&(Mn[e]=Pn(e-1)+Mn[1]),Mn[e]}function wn(){return Mn[1].length}function Fn(e,n,t){return n.moduleName||Gn(e,n.fileName,t&&t.fileName)}function Gn(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=Tr(e.getRelativePathToDirectoryOrUrl(i,o,i,a,!1));return r?e.ensurePathIsNonModuleName(s):s}function Bn(e,n,t,r,a){var i=n.declarationDir||n.outDir;return Tr(i?jn(e,i,t,r,a):e)+".d.ts"}function Un(e,n,t){return!(n.getCompilerOptions().noEmitForJsFiles&&le(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&!(B(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&(t||!n.isSourceOfProjectReferenceRedirect(e.fileName))}function Vn(e,n,t){return jn(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function jn(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 Hn(n,t){return e.getLineAndCharacterOfPosition(n,t).line}function Kn(n,t){return e.computeLineAndCharacterOfPosition(n,t).line}function Wn(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&qn(e.parameters[0]);return e.parameters[n?1:0]}}function qn(e){return zn(e.name)}function zn(e){return!!e&&75===e.kind&&Jn(e)}function Jn(e){return 104===e.originalKeywordKind}function Xn(n){if(ue(n)||!e.isFunctionDeclaration(n)){var t=n.type;return t||!ue(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}}function Yn(e,n,t,r){Qn(e,n,t.pos,r)}function Qn(e,n,t,r){r&&r.length&&t!==r[0].pos&&Kn(e,t)!==Kn(e,r[0].pos)&&n.writeLine()}function Zn(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=62&&e<=74}function lt(e){var n=ut(e);return n&&!n.isImplements?n.class:void 0}function ut(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:113===n.parent.token}:void 0}function dt(n,t){return e.isBinaryExpression(n)&&(t?62===n.operatorToken.kind:ct(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function pt(e){return void 0!==lt(e)}function ft(e){return 75===e.kind||mt(e)}function mt(n){return e.isPropertyAccessExpression(n)&&ft(n.expression)}function _t(e){return Te(e)&&"prototype"===Ce(e)}e.getIndentString=Pn,e.getIndentSize=wn,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=Pn(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(){a||(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*wn():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.getResolvedExternalModuleName=Fn,e.getExternalModuleNameFromDeclaration=function(e,n,t){var r=n.getExternalModuleFileFromDeclaration(t);if(r&&!r.isDeclarationFile)return Fn(e,r)},e.getExternalModuleNameFromPath=Gn,e.getOwnEmitOutputFilePath=function(e,n,t){var r=n.getCompilerOptions();return(r.outDir?Tr(Vn(e,n,r.outDir)):Tr(e))+t},e.getDeclarationEmitOutputFilePath=function(e,n){return Bn(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Bn,e.getSourceFilesToEmit=function(n,t,r){var a=n.getCompilerOptions();if(a.outFile||a.out){var i=qt(a),o=a.emitDeclarationOnly||i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(n.getSourceFiles(),(function(t){return(o||!e.isExternalModule(t))&&Un(t,n,r)}))}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,(function(e){return Un(e,n,r)}))},e.sourceFileMayBeEmitted=Un,e.getSourceFilePathInNewDir=Vn,e.getSourceFilePathInNewDirWorker=jn,e.writeFile=function(n,t,r,a,i,o){n.writeFile(r,a,i,(function(n){t.add(Vt(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=Hn,e.getLineOfLocalPositionFromLineMap=Kn,e.getFirstConstructorWithBody=function(n){return e.find(n.members,(function(n){return e.isConstructorDeclaration(n)&&_(n.body)}))},e.getSetAccessorValueParameter=Wn,e.getSetAccessorTypeAnnotationNode=function(e){var n=Wn(e);return n&&n.type},e.getThisParameter=function(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(qn(t))return t}},e.parameterIsThisKeyword=qn,e.isThisIdentifier=zn,e.identifierIsThisKeyword=Jn,e.getAllAccessorDeclarations=function(n,t){var r,a,i,o;return an(t)?(r=t,163===t.kind?i=t:164===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,(function(n){e.isAccessor(n)&&nt(n,32)===nt(t,32)&&(cn(n.name)===cn(t.name)&&(r?a||(a=n):r=n,163!==n.kind||i||(i=n),164!==n.kind||o||(o=n)))})),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}},e.getEffectiveTypeAnnotationNode=Xn,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||(ue(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)&&!(303===n.parent.kind&&n.parent.tags.some(ke))}(n)?n.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=Wn(e);return n&&Xn(n)},e.emitNewLineBeforeLeadingComments=Yn,e.emitNewLineBeforeLeadingCommentsOfPosition=Qn,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&Kn(e,t)!==Kn(e,r)&&n.writeLine()},e.emitComments=Zn,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 v(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){_=Kn(t,e.last(u).end);Kn(t,e.skipTrivia(n,i.pos))>=_+2&&(Yn(t,r,i,c),Zn(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%wn(),_=Pn((f-m)/wn());for(r.rawWrite(_);m;)r.rawWrite(" "),m--}else r.rawWrite("")}$n(n,i,r,o,u,p),u=p}else r.writeComment(n.substring(a,i))},e.hasModifiers=function(e){return 0!==it(e)},e.hasModifier=nt,e.hasStaticModifier=tt,e.hasReadonlyModifier=rt,e.getSelectedModifierFlags=at,e.getModifierFlags=it,e.getModifierFlagsNoCache=ot,e.modifierToFlag=st,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isAssignmentOperator=ct,e.tryGetClassExtendingExpressionWithTypeArguments=lt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=ut,e.isAssignmentExpression=dt,e.isDestructuringAssignment=function(e){if(dt(e,!0)){var n=e.left.kind;return 193===n||192===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=pt,e.isEntityNameExpression=ft,e.getFirstIdentifier=function(e){switch(e.kind){case 75:return e;case 153:do{e=e.left}while(75!==e.kind);return e;case 194:do{e=e.expression}while(75!==e.kind);return e}},e.isDottedName=function e(n){return 75===n.kind||104===n.kind||102===n.kind||194===n.kind&&e(n.expression)||200===n.kind&&e(n.expression)},e.isPropertyAccessEntityNameExpression=mt,e.tryGetPropertyAccessOrIdentifierToString=function n(t){if(e.isPropertyAccessExpression(t)){var r=n(t.expression);if(void 0!==r)return r+"."+t.name}else if(e.isIdentifier(t))return e.unescapeLeadingUnderscores(t.escapedText)},e.isPrototypeAccess=_t,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 153===e.parent.kind&&e.parent.right===e||194===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 193===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 192===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(n){return function(n){return n&&e.length(n.declarations)>0&&nt(n.declarations[0],512)}(n)?n.declarations[0].localSymbol:void 0},e.tryExtractTSExtension=function(n){return e.find(e.supportedTSExtensionsForExtractExtension,(function(t){return e.fileExtensionIs(n,t)}))};var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function yt(n){for(var t,r,a,i,o="",s=function(n){for(var t=[],r=n.length,a=0;a>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+=gt.charAt(t)+gt.charAt(r)+gt.charAt(a)+gt.charAt(i),c+=3;return o}e.convertToBase64=yt,e.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):yt(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 bt(e,n){return vt(n,e.end)}function Et(e){return e.decorators&&e.decorators.length>0?bt(e,e.decorators.end):e}function Tt(e,n,t){return St(Lt(e,t),n.end,t)}function St(e,n,t){return e===n||Hn(t,e)===Hn(t,n)}function Lt(n,t){return xr(n.pos)?-1:e.skipTrivia(t.text,n.pos)}function At(e){return void 0!==e.initializer}function xt(e){return 33554432&e.flags?e.checkFlags:0}function Ct(n){var t=n.parent;if(!t)return 0;switch(t.kind){case 200:return Ct(t);case 208:case 207:var r=t.operator;return 45===r||46===r?c():0;case 209:var a=t,i=a.left,o=a.operatorToken;return i===n&&ct(o.kind)?62===o.kind?1:c():0;case 194:return t.name!==n?0:Ct(t);case 281:var s=Ct(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 282:return n===t.objectAssignmentInitializer?0:Ct(t.parent);case 192:return Ct(t);default:return 0}function c(){return t.parent&&226===function(e){for(;200===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function Dt(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 It(e){if(32&e.flags){var n=Rt(e);return!!n&&nt(n,128)}return!1}function Rt(n){return e.find(n.declarations,e.isClassLike)}function kt(e){return 3899393&e.flags?e.objectFlags:0}function Nt(e){return 194===e.kind||195===e.kind}function Ot(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 Mt(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function Pt(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function wt(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 Ft(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function Gt(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,(function(n,a){return""+e.Debug.assertDefined(t[+a+r])}))}function Bt(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function Ut(n,t,r,a){e.Debug.assertGreaterThanOrEqual(t,0),e.Debug.assertGreaterThanOrEqual(r,0),n&&(e.Debug.assertLessThanOrEqual(t,n.text.length),e.Debug.assertLessThanOrEqual(t+r,n.text.length));var i=Bt(a);return arguments.length>4&&(i=Gt(i,arguments,4)),{file:n,start:t,length:r,messageText:i,category:a.category,code:a.code,reportsUnnecessary:a.reportsUnnecessary}}function Vt(e){var n=Bt(e);return arguments.length>1&&(n=Gt(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}}function jt(e){return e.file?e.file.path:void 0}function Ht(n,t){return Kt(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 Ht(e,t.relatedInformation[n])}))||0;return n.relatedInformation?-1:1}(n,t)||0}function Kt(n,t){return e.compareStringsCaseSensitive(jt(n),jt(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 Wt(e){return e.target||0}function qt(n){return"number"==typeof n.module?n.module:Wt(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function zt(e){return!(!e.declaration&&!e.composite)}function Jt(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function Xt(e,n){return n.strictFlag?Jt(e,n.name):e[n.name]}function Yt(e){for(var n=!1,t=0;t0?bt(e,e.modifiers.end):Et(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return vt(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return Tt(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return St(Lt(e,t),Lt(n,t),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return St(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=Tt,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return St(e.end,Lt(n,t),t)},e.isNodeArrayMultiLine=function(e,n){return!St(e.pos,e.end,n)},e.positionsAreOnSameLine=St,e.getStartPositionOfRange=Lt,e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 248:case 249:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,At)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=xt,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&xt(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===Ct(e)},e.isWriteAccess=function(e){return 0!==Ct(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(ht||(ht={})),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=Dt,e.mutateMap=function(e,n,t){Dt(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&&It(e.symbol)},e.isAbstractConstructorSymbol=It,e.getClassLikeDeclarationOfSymbol=Rt,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:S(t)},e.getLastChild=function(n){var t;return e.forEachChild(n,(function(e){_(e)&&(t=e)}),(function(e){for(var n=e.length-1;n>=0;n--)if(_(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>=168&&e<=188||125===e||148===e||140===e||151===e||141===e||128===e||143===e||144===e||104===e||110===e||146===e||100===e||137===e||216===e||295===e||296===e||297===e||298===e||299===e||300===e||301===e},e.isAccessExpression=Nt,e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.getDotOrQuestionDotToken=function(n){return n.questionDotToken||e.createNode(24,n.expression.end,n.name.pos)},e.isNamedImportsOrExports=function(e){return 257===e.kind||261===e.kind},e.objectAllocator={getNodeConstructor:function(){return wt},getTokenConstructor:function(){return wt},getIdentifierConstructor:function(){return wt},getPrivateIdentifierConstructor:function(){return wt},getSourceFileConstructor:function(){return wt},getSymbolConstructor:function(){return Ot},getTypeConstructor:function(){return Mt},getSignatureConstructor:function(){return Pt},getSourceMapSourceConstructor:function(){return Ft}},e.setObjectAllocator=function(n){e.objectAllocator=n},e.formatStringFromArgs=Gt,e.setLocalizedDiagnosticMessages=function(n){e.localizedDiagnosticMessages=n},e.getLocaleSpecificMessage=Bt,e.createFileDiagnostic=Ut,e.formatMessage=function(e,n){var t=Bt(n);return arguments.length>2&&(t=Gt(t,arguments,2)),t},e.createCompilerDiagnostic=Vt,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=Bt(n);return arguments.length>2&&(t=Gt(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=Ht,e.compareDiagnosticsSkipRelatedInformation=Kt,e.getEmitScriptTarget=Wt,e.getEmitModuleKind=qt,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;return void 0===t&&(t=qt(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t},e.hasJsonModuleEmitEnabled=function(n){switch(qt(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!(!zt(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(n){var t=qt(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop||t===e.ModuleKind.System},e.getEmitDeclarations=zt,e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=Jt,e.compilerOptionsAffectSemanticDiagnostics=function(n,t){return t!==n&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!kr(Xt(t,e),Xt(n,e))}))},e.compilerOptionsAffectEmit=function(n,t){return t!==n&&e.affectsEmitOptionDeclarations.some((function(e){return!kr(Xt(t,e),Xt(n,e))}))},e.getCompilerOptionValue=Xt,e.hasZeroOrOneAsteriskCharacter=Yt,e.discoverProbableSymlinks=function(n,t,r){for(var a=e.createMap(),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,or[r])}))}function lr(e){return!/[.*?]/.test(e)}function ur(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function dr(n,t,r,a,i){n=e.normalizePath(n),i=e.normalizePath(i);var o=e.combinePaths(i,n);return{includeFilePatterns:e.map(cr(r,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:sr(r,o,"files"),includeDirectoryPattern:sr(r,o,"directories"),excludePattern:sr(t,o,"exclude"),basePaths:fr(n,r,a)}}function pr(e,n){return new RegExp(e,n?"":"i")}function fr(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 br(r,t);return 0},e.adjustExtensionPriority=br,e.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var Er=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function Tr(e){for(var n=0,t=Er;n=0)}function Cr(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Dr(n){return e.find(Er,(function(t){return e.fileExtensionIs(n,t)}))}e.removeFileExtension=Tr,e.tryRemoveExtension=Sr,e.removeExtension=Lr,e.changeExtension=function(n,t){return e.changeAnyExtension(n,t,Er,!1)},e.tryParsePattern=Ar,e.positionIsSynthesized=xr,e.extensionIsTS=Cr,e.resolutionExtensionIsTSOrJson=function(e){return Cr(e)||".json"===e},e.extensionFromPath=function(n){var t=Dr(n);return void 0!==t?t:e.Debug.fail("File "+n+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==Dr(e)},e.tryGetExtensionFromPath=Dr,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}};var Ir=function(){function n(){this.map=e.createMap()}return n.prototype.add=function(n){this.map.set(String(e.getNodeId(n)),n)},n.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},n.prototype.has=function(n){return this.map.has(String(e.getNodeId(n)))},n.prototype.forEach=function(e){this.map.forEach(e)},n.prototype.some=function(e){return c(this.map,e)||!1},n}();e.NodeSet=Ir;var Rr=function(){function n(){this.map=e.createMap()}return n.prototype.get=function(n){var t=this.map.get(String(e.getNodeId(n)));return t&&t.value},n.prototype.getOrUpdate=function(e,n){var t=this.get(e);if(t)return t;var r=n();return this.set(e,r),r},n.prototype.set=function(n,t){this.map.set(String(e.getNodeId(n)),{node:n,value:t})},n.prototype.has=function(n){return this.map.has(String(e.getNodeId(n)))},n.prototype.forEach=function(e){this.map.forEach((function(n){var t=n.node,r=n.value;return e(r,t)}))},n}();function kr(n,t){return n===t||"object"==typeof n&&null!==n&&"object"==typeof t&&null!==t&&e.equalOwnProperties(n,t,kr)}e.NodeMap=Rr,e.rangeOfNode=function(e){return{pos:b(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=kr,e.getOrUpdate=function(e,n,t){var r=e.get(n);if(void 0===r){var a=t();return e.set(n,a),a}return r},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(n){return!!(8388608&n.flags)||se(n)||(t=n,113===(null==(i=null!==(r=e.tryCast(t.parent.parent,e.isHeritageClause))&&void 0!==r?r:e.tryCast(null===(a=t.parent.parent)||void 0===a?void 0:a.parent,e.isHeritageClause))?void 0:i.token)||246===(null==i?void 0:i.parent.kind))||function(e){for(;75===e.kind||194===e.kind;)e=e.parent;if(154!==e.kind)return!1;if(nt(e.parent,128))return!0;var n=e.parent.parent.kind;return 246===n||173===n}(n)||!ie(n);var t,r,a,i},e.typeOnlyDeclarationIsExport=function(e){return 263===e.kind}}(d||(d={})),function(e){var n,t,r,a,i,o,s,c;function l(e,n){return n&&e(n)}function u(e,n,t){if(t){if(n)return n(t);for(var r=0,a=t;rn.checkJsDirective.pos)&&(n.checkJsDirective={enabled:"ts-check"===a,end:e.range.end,pos:e.range.pos})}));break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(n||(n={})),e.createNode=function(n,s,c){return 290===n?new(o||(o=e.objectAllocator.getSourceFileConstructor()))(n,s,c):75===n?new(a||(a=e.objectAllocator.getIdentifierConstructor()))(n,s,c):76===n?new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(n,s,c):e.isNodeKind(n)?new(t||(t=e.objectAllocator.getNodeConstructor()))(n,s,c):new(r||(r=e.objectAllocator.getTokenConstructor()))(n,s,c)},e.isJSDocLikeText=d,e.forEachChild=p,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?s.parseSourceFile(n,t,r,void 0,a,6):s.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 s.parseIsolatedEntityName(e,n)},e.parseJsonText=function(e,n){return s.parseJsonText(e,n)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,n,t,r){void 0===r&&(r=!1);var a=c.updateSourceFile(e,n,t,r);return a.flags|=3145728&e.flags,a},e.parseIsolatedJSDocComment=function(e,n,t){var r=s.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&s.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,n,t){return s.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(n){var t,r,a,i,o,s,c,l,u,g,y,h,v,b,E,S,L,A,x,C,D=e.createScanner(99,!0),I=!1;function R(n,t,r,a,i){void 0===r&&(r=2),N(t,r,a,6),(s=F(n,2,6,!1)).flags=L,oe();var o=re();if(1===ae())s.statements=xe([],o,o),s.endOfFileToken=Ee();else{var l=Le(226);switch(ae()){case 22:l.expression=Kt();break;case 106:case 91:case 100:l.expression=Ee();break;case 40:fe((function(){return 8===oe()&&58!==oe()}))?l.expression=Et():l.expression=qt();break;case 8:case 10:if(fe((function(){return 58!==oe()}))){l.expression=mn();break}default:l.expression=qt()}Ce(l),s.statements=xe([l],o),s.endOfFileToken=be(1,e.Diagnostics.Unexpected_token)}i&&w(s),s.nodeCount=y,s.identifierCount=b,s.identifiers=h,s.parseDiagnostics=c;var u=s;return O(),u}function k(e){return 4===e||2===e||1===e||6===e?1:0}function N(n,s,u,d){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),i=e.objectAllocator.getPrivateIdentifierConstructor(),o=e.objectAllocator.getSourceFileConstructor(),g=n,l=u,c=[],E=0,h=e.createMap(),v=e.createMap(),b=0,y=0,d){case 1:case 2:L=131072;break;case 6:L=33685504;break;default:L=0}I=!1,D.setText(g),D.setOnError(te),D.setScriptTarget(s),D.setLanguageVariant(k(d))}function O(){D.setText(""),D.setOnError(void 0),c=void 0,s=void 0,h=void 0,l=void 0,g=void 0,S=void 0}function M(n,t,r,a){var i=f(n);return i&&(L|=8388608),(s=F(n,t,a,i)).flags=L,oe(),m(s,g),_(s,(function(n,t,r){c.push(e.createFileDiagnostic(s,n,t,r))})),s.statements=$e(0,lr),e.Debug.assert(1===ae()),s.endOfFileToken=P(Ee()),function(n){n.externalModuleIndicator=e.forEach(n.statements,Zr)||function(e){return 2097152&e.flags?$r(e):void 0}(n)}(s),s.nodeCount=y,s.identifierCount=b,s.identifiers=h,s.parseDiagnostics=c,r&&w(s),s}function P(n){e.Debug.assert(!n.jsDoc);var t=e.mapDefined(e.getJSDocCommentRanges(n,s.text),(function(e){return C.parseJSDocComment(n,e.pos,e.end-e.pos)}));return t.length&&(n.jsDoc=t),n}function w(n){for(var t=[n];t.length;){var r=t.pop();i(r,a(r))}return;function a(e){var n=[];return p(e,(function(e){n.unshift(e)})),n}function i(n,r){for(var a=0,i=r;a112)}function ge(n,t,r){return void 0===r&&(r=!0),ae()===n?(r&&oe(),!0):(t?Z(t):Z(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function ye(e){return ae()===e&&(oe(),!0)}function he(e){if(ae()===e)return Ee()}function ve(e){if(ae()===e)return n=Le(ae()),se(),Ce(n);var n}function be(n,t,r){return he(n)||De(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function Ee(){var e=Le(ae());return oe(),Ce(e)}function Te(){return 26===ae()||(19===ae()||1===ae()||D.hasPrecedingLineBreak())}function Se(){return Te()?(26===ae()&&oe(),!0):ge(26)}function Le(n,o){y++;var s=o>=0?o:D.getStartPos();return e.isNodeKind(n)||0===n?new t(n,s,s):75===n?new a(n,s,s):76===n?new i(n,s,s):new r(n,s,s)}function Ae(e,n){var t=Le(e,n);return 2&D.getTokenFlags()&&P(t),t}function xe(e,n,t){var r=e.length,a=r>=1&&r<=4?e.slice():e;return a.pos=n,a.end=void 0===t?D.getStartPos():t,a}function Ce(e,n){return e.end=void 0===n?D.getStartPos():n,L&&(e.flags|=L),I&&(I=!1,e.flags|=65536),e}function De(n,t,r,a){t?$(D.getStartPos(),0,r,a):r&&Z(r,a);var i=Le(n);return 75===n?i.escapedText="":(e.isLiteralKind(n)||e.isTemplateLiteralKind(n))&&(i.text=""),Ce(i)}function Ie(e){var n=h.get(e);return void 0===n&&h.set(e,n=e),n}function Re(n,t,r){if(b++,n){var a=Le(75);return 75!==ae()&&(a.originalKeywordKind=ae()),a.escapedText=e.escapeLeadingUnderscores(Ie(D.getTokenValue())),ie(),Ce(a)}if(76===ae())return Z(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Re(!0);var i=1===ae(),o=D.isReservedWord(),s=D.getTokenText(),c=o?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return De(75,i,t||c,s)}function ke(e,n){return Re(_e(),e,n)}function Ne(n){return Re(e.tokenIsIdentifierOrKeyword(ae()),n)}function Oe(){return e.tokenIsIdentifierOrKeyword(ae())||10===ae()||8===ae()}function Me(e){if(10===ae()||8===ae()){var n=mn();return n.text=Ie(n.text),n}return e&&22===ae()?function(){var e=Le(154);return ge(22),e.expression=W(st),ge(23),Ce(e)}():76===ae()?we():Ne()}function Pe(){return Me(!0)}function we(){var n,t,r=Le(76);return r.escapedText=e.escapeLeadingUnderscores((n=D.getTokenText(),void 0===(t=v.get(n))&&v.set(n,t=n),t)),oe(),Ce(r)}function Fe(e){return ae()===e&&me(Be)}function Ge(){return oe(),!D.hasPrecedingLineBreak()&&je()}function Be(){switch(ae()){case 81:return 88===oe();case 89:return oe(),84===ae()?fe(He):145===ae()?fe(Ve):Ue();case 84:return He();case 120:case 131:case 142:return oe(),je();default:return Ge()}}function Ue(){return 41!==ae()&&123!==ae()&&18!==ae()&&je()}function Ve(){return oe(),Ue()}function je(){return 22===ae()||18===ae()||41===ae()||25===ae()||Oe()}function He(){return oe(),80===ae()||94===ae()||114===ae()||122===ae()&&fe(tr)||126===ae()&&fe(rr)}function Ke(n,t){if(nn(n))return!0;switch(n){case 0:case 1:case 3:return!(26===ae()&&t)&&sr();case 2:return 78===ae()||84===ae();case 4:return fe(Nn);case 5:return fe(Rr)||26===ae()&&!t;case 6:return 22===ae()||Oe();case 12:switch(ae()){case 22:case 41:case 25:case 24:return!0;default:return Oe()}case 18:return Oe();case 9:return 22===ae()||25===ae()||Oe();case 7:return 18===ae()?fe(We):t?_e()&&!Xe():it()&&!Xe();case 8:return yr();case 10:return 27===ae()||25===ae()||yr();case 19:return _e();case 15:switch(ae()){case 27:case 24:return!0}case 11:return 25===ae()||ot();case 16:return Ln(!1);case 17:return Ln(!0);case 20:case 21:return 27===ae()||zn();case 22:return Vr();case 23:return e.tokenIsIdentifierOrKeyword(ae());case 13:return e.tokenIsIdentifierOrKeyword(ae())||18===ae();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function We(){if(e.Debug.assert(18===ae()),19===oe()){var n=oe();return 27===n||18===n||90===n||113===n}return!0}function qe(){return oe(),_e()}function ze(){return oe(),e.tokenIsIdentifierOrKeyword(ae())}function Je(){return oe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ae())}function Xe(){return(113===ae()||90===ae())&&fe(Ye)}function Ye(){return oe(),ot()}function Qe(){return oe(),zn()}function Ze(e){if(1===ae())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ae();case 3:return 19===ae()||78===ae()||84===ae();case 7:return 18===ae()||90===ae()||113===ae();case 8:return function(){if(Te())return!0;if(yt(ae()))return!0;if(38===ae())return!0;return!1}();case 19:return 31===ae()||20===ae()||18===ae()||90===ae()||113===ae();case 11:return 21===ae()||26===ae();case 15:case 21:case 10:return 23===ae();case 17:case 16:case 18:return 21===ae()||23===ae();case 20:return 27!==ae();case 22:return 18===ae()||19===ae();case 13:return 31===ae()||43===ae();case 14:return 29===ae()&&fe(qr);default:return!1}}function $e(e,n){var t=E;E|=1<=0&&(c.hasTrailingComma=!0),c}function on(n){return 6===n?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function sn(){var e=xe([],re());return e.isMissingList=!0,e}function cn(e,n,t,r){if(ge(t)){var a=an(e,n);return ge(r),a}return sn()}function ln(e,n){for(var t=e?Ne(n):ke(n),r=D.getStartPos();ye(24);){if(29===ae()){t.jsdocDotPos=r;break}r=D.getStartPos(),t=un(t,dn(e,!1))}return t}function un(e,n){var t=Le(153,e.pos);return t.left=e,t.right=n,Ce(t)}function dn(n,t){if(D.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ae())&&fe(nr))return De(75,!0,e.Diagnostics.Identifier_expected);if(76===ae()){var r=we();return t?r:De(75,!0,e.Diagnostics.Identifier_expected)}return n?Ne():ke()}function pn(){var n,t=Le(211);t.head=(n=_n(ae()),e.Debug.assert(15===n.kind,"Template head has wrong token kind"),n),e.Debug.assert(15===t.head.kind,"Template head has wrong token kind");var r=[],a=re();do{r.push(fn())}while(16===e.last(r).literal.kind);return t.templateSpans=xe(r,a),Ce(t)}function fn(){var n,t,r=Le(221);return r.expression=W(st),19===ae()?(u=D.reScanTemplateToken(),t=_n(ae()),e.Debug.assert(16===t.kind||17===t.kind,"Template fragment has wrong token kind"),n=t):n=be(17,e.Diagnostics._0_expected,e.tokenToString(19)),r.literal=n,Ce(r)}function mn(){return _n(ae())}function _n(e){var n=Le(e);switch(n.text=D.getTokenValue(),e){case 14:case 15:case 16:case 17:var t=14===e||17===e,r=D.getTokenText();n.rawText=r.substring(1,r.length-(D.isUnterminated()?0:t?1:2))}return D.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),D.isUnterminated()&&(n.isUnterminated=!0),8===n.kind&&(n.numericLiteralFlags=1008&D.getTokenFlags()),oe(),Ce(n),n}function gn(){var n=Le(169);return n.typeName=ln(!0,e.Diagnostics.Type_expected),D.hasPrecedingLineBreak()||29!==le()||(n.typeArguments=cn(20,tt,29,31)),Ce(n)}function yn(){var e=Le(183);return oe(),Ce(e)}function hn(e){var n=Le(295);return e?Xn(299,n):(oe(),Ce(n))}function vn(){var e=Le(156);return 104!==ae()&&99!==ae()||(e.name=Ne(),ge(58)),e.type=bn(),Ce(e)}function bn(){D.setInJSDocType(!0);var e=he(135);if(e){var n=Le(302,e.pos);e:for(;;)switch(ae()){case 19:case 1:case 27:case 5:break e;default:se()}return D.setInJSDocType(!1),Ce(n)}var t=he(25),r=et();if(D.setInJSDocType(!1),t){var a=Le(301,t.pos);a.type=r,r=Ce(a)}return 62===ae()?Xn(299,r):r}function En(){var e=Le(155);return e.name=ke(),ye(90)&&(zn()||!ot()?e.constraint=tt():e.expression=Tt()),ye(62)&&(e.default=tt()),Ce(e)}function Tn(){if(29===ae())return cn(19,En,29,31)}function Sn(){if(ye(58))return tt()}function Ln(n){return 25===ae()||yr()||e.isModifierKind(ae())||59===ae()||zn(!n)}function An(){var n=Ae(156);return 104===ae()?(n.name=Re(!0),n.type=Sn(),Ce(n)):(n.decorators=kr(),n.modifiers=Nr(),n.dotDotDotToken=he(25),n.name=hr(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters),0===e.getFullWidth(n.name)&&!n.modifiers&&e.isModifierKind(ae())&&oe(),n.questionToken=he(57),n.type=Sn(),n.initializer=ct(),Ce(n))}function xn(n,t,r){32&t||(r.typeParameters=Tn());var a=function(e,n){if(!ge(20))return e.parameters=sn(),!1;var t=J(),r=Q();return U(!!(1&n)),j(!!(2&n)),e.parameters=32&n?an(17,vn):an(16,An),U(t),j(r),ge(21)}(r,t);return(!function(n,t){if(38===n)return ge(n),!0;if(ye(58))return!0;if(t&&38===ae())return Z(e.Diagnostics._0_expected,e.tokenToString(58)),oe(),!0;return!1}(n,!!(4&t))||(r.type=et(),!function n(t){switch(t.kind){case 169:return e.nodeIsMissing(t.typeName);case 170:case 171:var r=t,a=r.parameters,i=r.type;return!!a.isMissingList||n(i);case 182:return n(t.type);default:return!1}}(r.type)))&&a}function Cn(){ye(27)||Se()}function Dn(e){var n=Ae(e);return 166===e&&ge(99),xn(58,4,n),Cn(),Ce(n)}function In(){return 22===ae()&&fe(Rn)}function Rn(){if(oe(),25===ae()||23===ae())return!0;if(e.isModifierKind(ae())){if(oe(),_e())return!0}else{if(!_e())return!1;oe()}return 58===ae()||27===ae()||57===ae()&&(oe(),58===ae()||27===ae()||23===ae())}function kn(e){return e.kind=167,e.parameters=cn(16,An,22,23),e.type=at(),Cn(),Ce(e)}function Nn(){if(20===ae()||29===ae())return!0;for(var n=!1;e.isModifierKind(ae());)n=!0,oe();return 22===ae()||(Oe()&&(n=!0,oe()),!!n&&(20===ae()||29===ae()||57===ae()||58===ae()||27===ae()||Te()))}function On(){if(20===ae()||29===ae())return Dn(165);if(99===ae()&&fe(Mn))return Dn(166);var e=Ae(0);return e.modifiers=Nr(),In()?kn(e):function(e){return e.name=Pe(),e.questionToken=he(57),20===ae()||29===ae()?(e.kind=160,xn(58,4,e)):(e.kind=158,e.type=at(),62===ae()&&(e.initializer=ct())),Cn(),Ce(e)}(e)}function Mn(){return oe(),20===ae()||29===ae()}function Pn(){return 24===oe()}function wn(){switch(oe()){case 20:case 29:case 24:return!0}return!1}function Fn(){var e;return ge(18)?(e=$e(4,On),ge(19)):e=sn(),e}function Gn(){return oe(),39===ae()||40===ae()?138===oe():(138===ae()&&oe(),22===ae()&&qe()&&97===oe())}function Bn(){var e=Le(186);return ge(18),138!==ae()&&39!==ae()&&40!==ae()||(e.readonlyToken=Ee(),138!==e.readonlyToken.kind&&be(138)),ge(22),e.typeParameter=function(){var e=Le(155);return e.name=ke(),ge(97),e.constraint=tt(),Ce(e)}(),ge(23),57!==ae()&&39!==ae()&&40!==ae()||(e.questionToken=Ee(),57!==e.questionToken.kind&&be(57)),e.type=at(),Se(),ge(19),Ce(e)}function Un(){var e=re();if(ye(25)){var n=Le(177,e);return n.type=tt(),Ce(n)}var t=tt();return 4194304&L||297!==t.kind||t.pos!==t.type.pos||(t.kind=176),t}function Vn(){var e=Ee();return 24===ae()?void 0:e}function jn(e){var n,t=Le(187);e&&((n=Le(207)).operator=40,oe());var r=106===ae()||91===ae()?Ee():_n(ae());return e&&(n.operand=r,Ce(n),r=n),t.literal=r,Ce(t)}function Hn(){return oe(),96===ae()}function Kn(){s.flags|=1048576;var n=Le(188);return ye(108)&&(n.isTypeOf=!0),ge(96),ge(20),n.argument=tt(),ge(21),ye(24)&&(n.qualifier=ln(!0,e.Diagnostics.Type_expected)),D.hasPrecedingLineBreak()||29!==le()||(n.typeArguments=cn(20,tt,29,31)),Ce(n)}function Wn(){return oe(),8===ae()||9===ae()}function qn(){switch(ae()){case 125:case 148:case 143:case 140:case 151:case 144:case 128:case 146:case 137:case 141:return me(Vn)||gn();case 41:return hn(!1);case 65:return hn(!0);case 60:D.reScanQuestionToken();case 57:return r=D.getStartPos(),oe(),27===ae()||19===ae()||21===ae()||31===ae()||62===ae()||51===ae()?Ce(t=Le(296,r)):((t=Le(297,r)).type=tt(),Ce(t));case 94:return function(){if(fe(Wr)){var e=Ae(300);return oe(),xn(58,36,e),Ce(e)}var n=Le(169);return n.typeName=Ne(),Ce(n)}();case 53:return function(){var e=Le(298);return oe(),e.type=qn(),Ce(e)}();case 14:case 10:case 8:case 9:case 106:case 91:return jn();case 40:return fe(Wn)?jn(!0):gn();case 110:case 100:return Ee();case 104:var e=yn();return 133!==ae()||D.hasPrecedingLineBreak()?e:function(e){oe();var n=Le(168,e.pos);return n.parameterName=e,n.type=tt(),Ce(n)}(e);case 108:return fe(Hn)?Kn():(n=Le(172),ge(108),n.exprName=ln(!0),Ce(n));case 18:return fe(Gn)?Bn():function(){var e=Le(173);return e.members=Fn(),Ce(e)}();case 22:return function(){var e=Le(175);return e.elementTypes=cn(21,Un,22,23),Ce(e)}();case 20:return function(){var e=Le(182);return ge(20),e.type=tt(),ge(21),Ce(e)}();case 96:return Kn();case 124:return fe(nr)?function(){var e=Le(168);return e.assertsModifier=be(124),e.parameterName=104===ae()?yn():ke(),e.type=ye(133)?tt():void 0,Ce(e)}():gn();default:return gn()}var n,t,r}function zn(e){switch(ae()){case 125:case 148:case 143:case 140:case 151:case 128:case 138:case 144:case 147:case 110:case 146:case 100:case 104:case 108:case 137:case 18:case 22:case 29:case 51:case 50:case 99:case 10:case 8:case 9:case 106:case 91:case 141:case 41:case 57:case 53:case 25:case 132:case 96:case 124:return!0;case 94:return!e;case 40:return!e&&fe(Wn);case 20:return!e&&fe(Jn);default:return _e()}}function Jn(){return oe(),21===ae()||Ln(!1)||zn()}function Xn(e,n){oe();var t=Le(e,n.pos);return t.type=n,Ce(t)}function Yn(){var e=ae();switch(e){case 134:case 147:case 138:return function(e){var n=Le(184);return ge(e),n.operator=e,n.type=Yn(),Ce(n)}(e);case 132:return function(){var e=Le(181);ge(132);var n=Le(155);return n.name=ke(),e.typeParameter=Ce(n),Ce(e)}()}return function(){for(var e=qn();!D.hasPrecedingLineBreak();)switch(ae()){case 53:e=Xn(298,e);break;case 57:if(!(4194304&L)&&fe(Qe))return e;e=Xn(297,e);break;case 22:var n;if(ge(22),zn())(n=Le(185,e.pos)).objectType=e,n.indexType=tt(),ge(23),e=Ce(n);else(n=Le(174,e.pos)).elementType=e,ge(23),e=Ce(n);break;default:return e}return e}()}function Qn(e,n,t){var r=D.getStartPos(),a=ye(t),i=n();if(ae()===t||a){for(var o=[i];ye(t);)o.push(n());var s=Le(e,r);s.types=xe(o,r),i=Ce(s)}return i}function Zn(){return Qn(179,Yn,50)}function $n(){if(oe(),21===ae()||25===ae())return!0;if(function(){if(e.isModifierKind(ae())&&Nr(),_e()||104===ae())return oe(),!0;if(22===ae()||18===ae()){var n=c.length;return hr(),n===c.length}return!1}()){if(58===ae()||27===ae()||57===ae()||62===ae())return!0;if(21===ae()&&(oe(),38===ae()))return!0}return!1}function et(){var e=_e()&&me(nt),n=tt();if(e){var t=Le(168,e.pos);return t.assertsModifier=void 0,t.parameterName=e,t.type=n,Ce(t)}return n}function nt(){var e=ke();if(133===ae()&&!D.hasPrecedingLineBreak())return oe(),e}function tt(){return H(40960,rt)}function rt(e){if(29===ae()||20===ae()&&fe($n)||99===ae())return function(){var e=re(),n=Ae(ye(99)?171:170,e);return xn(38,4,n),Ce(n)}();var n=Qn(178,Zn,51);if(!e&&!D.hasPrecedingLineBreak()&&ye(90)){var t=Le(180,n.pos);return t.checkType=n,t.extendsType=rt(!0),ge(57),t.trueType=rt(),ge(58),t.falseType=rt(),Ce(t)}return n}function at(){return ye(58)?tt():void 0}function it(){switch(ae()){case 104:case 102:case 100:case 106:case 91:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 94:case 80:case 99:case 43:case 67:case 75:return!0;case 96:return fe(wn);default:return _e()}}function ot(){if(it())return!0;switch(ae()){case 39:case 40:case 54:case 53:case 85:case 108:case 110:case 45:case 46:case 29:case 127:case 121:case 76:return!0;default:return!!function(){if(X()&&97===ae())return!1;return e.getBinaryOperatorPrecedence(ae())>0}()||_e()}}function st(){var e=Y();e&&V(!1);for(var n,t=lt();n=he(27);)t=vt(t,n,lt());return e&&V(!0),t}function ct(){return ye(62)?lt():void 0}function lt(){if(function(){if(121===ae())return!!J()||fe(ar);return!1}())return n=Le(212),oe(),D.hasPrecedingLineBreak()||41!==ae()&&!ot()||(n.asteriskToken=he(41),n.expression=lt()),Ce(n);var n,t=function(){var e=function(){if(20===ae()||29===ae()||126===ae())return fe(dt);if(38===ae())return 1;return 0}();if(0===e)return;var n=1===e?mt(!0):me(pt);if(!n)return;var t=ea(n,126),r=ae();return n.equalsGreaterThanToken=be(38),n.body=38===r||18===r?_t(t):ke(),Ce(n)}()||function(){if(126===ae()&&1===fe(ft)){var e=Or();return ut(gt(0),e)}return}();if(t)return t;var r=gt(0);return 75===r.kind&&38===ae()?ut(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(ce())?vt(r,Ee(),lt()):function(n){var t=he(57);if(!t)return n;var r=Le(210,n.pos);return r.condition=n,r.questionToken=t,r.whenTrue=H(20480,lt),r.colonToken=be(58),r.whenFalse=e.nodeIsPresent(r.colonToken)?lt():De(75,!1,e.Diagnostics._0_expected,e.tokenToString(58)),Ce(r)}(r)}function ut(n,t){var r;e.Debug.assert(38===ae(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),t?(r=Le(202,t.pos)).modifiers=t:r=Le(202,n.pos);var a=Le(156,n.pos);return a.name=n,Ce(a),r.parameters=xe([a],a.pos,a.end),r.equalsGreaterThanToken=be(38),r.body=_t(!!t),P(Ce(r))}function dt(){if(126===ae()){if(oe(),D.hasPrecedingLineBreak())return 0;if(20!==ae()&&29!==ae())return 0}var n=ae(),t=oe();if(20===n){if(21===t)switch(oe()){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)&&126!==t&&fe(qe))return 1;if(!_e()&&104!==t)return 0;switch(oe()){case 58:return 1;case 57:return oe(),58===ae()||27===ae()||62===ae()||21===ae()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===n),_e()?1===s.languageVariant?fe((function(){var e=oe();if(90===e)switch(oe()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function pt(){var n=D.getTokenPos();if(!S||!S.has(n.toString())){var t=mt(!1);return t||(S||(S=e.createMap())).set(n.toString(),!0),t}}function ft(){if(126===ae()){if(oe(),D.hasPrecedingLineBreak()||38===ae())return 0;var e=gt(0);if(!D.hasPrecedingLineBreak()&&75===e.kind&&38===ae())return 1}return 0}function mt(n){var t=Ae(202);if(t.modifiers=Or(),xn(58,ea(t,126)?2:0,t)||n){var r=t.type&&e.isJSDocFunctionType(t.type);if(n||38===ae()||!r&&18===ae())return t}}function _t(e){return 18===ae()?Yt(e?2:0):26===ae()||94===ae()||80===ae()||!sr()||18!==ae()&&94!==ae()&&80!==ae()&&59!==ae()&&ot()?e?q(lt):H(32768,lt):Yt(16|(e?2:0))}function gt(e){return ht(e,Tt())}function yt(e){return 97===e||152===e}function ht(n,t){for(;;){ce();var r=e.getBinaryOperatorPrecedence(ae());if(!(42===ae()?r>=n:r>n))break;if(97===ae()&&X())break;if(123===ae()){if(D.hasPrecedingLineBreak())break;oe(),t=bt(t,tt())}else t=vt(t,Ee(),gt(r))}return t}function vt(e,n,t){var r=Le(209,e.pos);return r.left=e,r.operatorToken=n,r.right=t,Ce(r)}function bt(e,n){var t=Le(217,e.pos);return t.expression=e,t.type=n,Ce(t)}function Et(){var e=Le(207);return e.operator=ae(),oe(),e.operand=St(),Ce(e)}function Tt(){if(function(){switch(ae()){case 39:case 40:case 54:case 53:case 85:case 108:case 110:case 127:return!1;case 29:if(1!==s.languageVariant)return!1;default:return!0}}()){var n=Lt();return 42===ae()?ht(e.getBinaryOperatorPrecedence(ae()),n):n}var t=ae(),r=St();if(42===ae()){var a=e.skipTrivia(g,r.pos),i=r.end;199===r.kind?ee(a,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):ee(a,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(t))}return r}function St(){switch(ae()){case 39:case 40:case 54:case 53:return Et();case 85:return e=Le(203),oe(),e.expression=St(),Ce(e);case 108:return function(){var e=Le(204);return oe(),e.expression=St(),Ce(e)}();case 110:return function(){var e=Le(205);return oe(),e.expression=St(),Ce(e)}();case 29:return function(){var e=Le(199);return ge(29),e.type=tt(),ge(31),e.expression=St(),Ce(e)}();case 127:if(127===ae()&&(Q()||fe(ar)))return function(){var e=Le(206);return oe(),e.expression=St(),Ce(e)}();default:return Lt()}var e}function Lt(){if(45===ae()||46===ae())return(n=Le(207)).operator=ae(),oe(),n.operand=At(),Ce(n);if(1===s.languageVariant&&29===ae()&&fe(Je))return Ct(!0);var n,t=At();return e.Debug.assert(e.isLeftHandSideExpression(t)),45!==ae()&&46!==ae()||D.hasPrecedingLineBreak()?t:((n=Le(208,t.pos)).operand=t,n.operator=ae(),oe(),Ce(n))}function At(){var n;if(96===ae())if(fe(Mn))s.flags|=1048576,n=Ee();else if(fe(Pn)){var t=D.getStartPos();oe(),oe();var r=Le(219,t);r.keywordToken=96,r.name=Ne(),n=Ce(r),s.flags|=2097152}else n=xt();else n=102===ae()?function(){var n=Ee();if(29===ae()){var t=re();void 0!==me(Ut)&&ee(t,re(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ae()||24===ae()||22===ae())return n;var r=Le(194,n.pos);return r.expression=n,be(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=dn(!0,!0),Ce(r)}():xt();return function(n){for(;;){n=wt(n,!0);var t=he(28);if(29===ae()||47===ae()){var r=me(Ut);if(r){if(Ft()){n=Gt(n,t,r);continue}(a=Le(196,n.pos)).expression=n,a.questionDotToken=t,a.typeArguments=r,a.arguments=Bt(),(t||32&n.flags)&&(a.flags|=32),n=Ce(a);continue}}else if(20===ae()){var a;(a=Le(196,n.pos)).expression=n,a.questionDotToken=t,a.arguments=Bt(),(t||32&n.flags)&&(a.flags|=32),n=Ce(a);continue}if(t){var i=Le(194,n.pos);i.expression=n,i.questionDotToken=t,i.name=De(75,!1,e.Diagnostics.Identifier_expected),i.flags|=32,n=Ce(i)}break}return n}(n)}function xt(){return wt(Vt(),!0)}function Ct(n){var t,r=function(e){var n=D.getStartPos();if(ge(29),31===ae()){var t=Le(271,n);return de(),Ce(t)}var r,a=Rt(),i=Ur(),o=(s=Le(274),s.properties=$e(13,Nt),Ce(s));var s;31===ae()?(r=Le(268,n),de()):(ge(43),e?ge(31):(ge(31,void 0,!1),de()),r=Le(267,n));return r.tagName=a,r.typeArguments=i,r.attributes=o,Ce(r)}(n);if(268===r.kind)(a=Le(266,r.pos)).openingElement=r,a.children=It(a.openingElement),a.closingElement=function(e){var n=Le(269);ge(30),n.tagName=Rt(),e?ge(31):(ge(31,void 0,!1),de());return Ce(n)}(n),T(a.openingElement.tagName,a.closingElement.tagName)||ne(a.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(g,a.openingElement.tagName)),t=Ce(a);else if(271===r.kind){var a;(a=Le(270,r.pos)).openingFragment=r,a.children=It(a.openingFragment),a.closingFragment=function(n){var t=Le(272);ge(30),e.tokenIsIdentifierOrKeyword(ae())&&ne(Rt(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);n?ge(31):(ge(31,void 0,!1),de());return Ce(t)}(n),t=Ce(a)}else e.Debug.assert(267===r.kind),t=r;if(n&&29===ae()){var i=me((function(){return Ct(!0)}));if(i){Z(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=Le(209,t.pos);return o.end=i.end,o.left=t,o.right=i,o.operatorToken=De(27,!1),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return t}function Dt(n,t){switch(t){case 1:return void(e.isJsxOpeningFragment(n)?ne(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):ne(n.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,n.tagName)));case 30:case 7:return;case 11:case 12:return(r=Le(11)).text=D.getTokenValue(),r.containsOnlyTriviaWhiteSpaces=12===u,u=D.scanJsxToken(),Ce(r);case 18:return kt(!1);case 29:return Ct(!1);default:return e.Debug.assertNever(t)}var r}function It(e){var n=[],t=re(),r=E;for(E|=16384;;){var a=Dt(e,u=D.reScanJsxToken());if(!a)break;n.push(a)}return E=r,xe(n,t)}function Rt(){ue();for(var e=104===ae()?Ee():Ne();ye(24);){var n=Le(194,e.pos);n.expression=e,n.name=dn(!0,!1),e=Ce(n)}return e}function kt(e){var n=Le(276);if(ge(18))return 19!==ae()&&(n.dotDotDotToken=he(25),n.expression=st()),e?ge(19):ge(19,void 0,!1)&&de(),Ce(n)}function Nt(){if(18===ae())return function(){var e=Le(275);return ge(18),ge(25),e.expression=st(),ge(19),Ce(e)}();ue();var e=Le(273);if(e.name=Ne(),62===ae())switch(u=D.scanJsxAttributeValue()){case 10:e.initializer=mn();break;default:e.initializer=kt(!0)}return Ce(e)}function Ot(){return oe(),e.tokenIsIdentifierOrKeyword(ae())||22===ae()||Ft()}function Mt(n,t){var r=Le(194,n.pos);return r.expression=n,r.questionDotToken=t,r.name=dn(!0,!0),(t||32&n.flags)&&(r.flags|=32,e.isPrivateIdentifier(r.name)&&ne(r.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers)),Ce(r)}function Pt(n,t){var r=Le(195,n.pos);if(r.expression=n,r.questionDotToken=t,23===ae())r.argumentExpression=De(75,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=W(st);e.isStringOrNumericLiteralLike(a)&&(a.text=Ie(a.text)),r.argumentExpression=a}return ge(23),(t||32&n.flags)&&(r.flags|=32),Ce(r)}function wt(n,t){for(;;){var r=void 0,a=!1;if(t&&28===ae()&&fe(Ot)?(r=be(28),a=e.tokenIsIdentifierOrKeyword(ae())):a=ye(24),a)n=Mt(n,r);else if(r||53!==ae()||D.hasPrecedingLineBreak())if(!r&&Y()||!ye(22)){if(!Ft())return n;n=Gt(n,r,void 0)}else n=Pt(n,r);else{oe();var i=Le(218,n.pos);i.expression=n,n=Ce(i)}}}function Ft(){return 14===ae()||15===ae()}function Gt(e,n,t){var r=Le(198,e.pos);return r.tag=e,r.questionDotToken=n,r.typeArguments=t,r.template=14===ae()?mn():pn(),(n||32&e.flags)&&(r.flags|=32),Ce(r)}function Bt(){ge(20);var e=an(11,Ht);return ge(21),e}function Ut(){if(29===le()){oe();var e=an(20,tt);if(ge(31))return e&&function(){switch(ae()){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 Vt(){switch(ae()){case 8:case 9:case 10:case 14:return mn();case 104:case 102:case 100:case 106:case 91:return Ee();case 20:return n=Ae(200),ge(20),n.expression=W(st),ge(21),Ce(n);case 22:return Kt();case 18:return qt();case 126:if(!fe(rr))break;return zt();case 80:return wr(Ae(0),214);case 94:return zt();case 99:return function(){var n=D.getStartPos();if(ge(99),ye(24)){var t=Le(219,n);return t.keywordToken=99,t.name=Ne(),Ce(t)}var r,a=Vt();for(;;){a=wt(a,!1),r=me(Ut),Ft()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),a=Gt(a,void 0,r),r=void 0);break}var i=Le(197,n);i.expression=a,i.typeArguments=r,(i.typeArguments||20===ae())&&(i.arguments=Bt());return Ce(i)}();case 43:case 67:if(13===(u=D.reScanSlashToken()))return mn();break;case 15:return pn()}var n;return ke(e.Diagnostics.Expression_expected)}function jt(){return 25===ae()?(e=Le(213),ge(25),e.expression=lt(),Ce(e)):27===ae()?Le(215):lt();var e}function Ht(){return H(20480,jt)}function Kt(){var e=Le(192);return ge(22),D.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=an(15,jt),ge(23),Ce(e)}function Wt(){var e=Ae(0);if(he(25))return e.kind=283,e.expression=lt(),Ce(e);if(e.decorators=kr(),e.modifiers=Nr(),Fe(131))return Ir(e,163);if(Fe(142))return Ir(e,164);var n=he(41),t=_e();if(e.name=Pe(),e.questionToken=he(57),e.exclamationToken=he(53),n||20===ae()||29===ae())return xr(e,n);if(t&&58!==ae()){e.kind=282;var r=he(62);r&&(e.equalsToken=r,e.objectAssignmentInitializer=W(lt))}else e.kind=281,ge(58),e.initializer=W(lt);return Ce(e)}function qt(){var e=Le(193);return ge(18),D.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=an(12,Wt,!0),ge(19),Ce(e)}function zt(){var e=Y();e&&V(!1);var n=Ae(201);n.modifiers=Nr(),ge(94),n.asteriskToken=he(41);var t=n.asteriskToken?1:0,r=ea(n,126)?2:0;return n.name=t&&r?K(40960,Jt):t?function(e){return K(8192,e)}(Jt):r?q(Jt):Jt(),xn(58,t|r,n),n.body=Yt(t|r),e&&V(!0),Ce(n)}function Jt(){return _e()?ke():void 0}function Xt(n,t){var r=Le(223),a=D.getTokenPos();if(ge(18,t)||n){if(D.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=$e(1,lr),!ge(19)){var i=e.lastOrUndefined(c);i&&i.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(i,e.createFileDiagnostic(s,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}}else r.statements=sn();return Ce(r)}function Yt(e,n){var t=J();U(!!(1&e));var r=Q();j(!!(2&e));var a=Y();a&&V(!1);var i=Xt(!!(16&e),n);return a&&V(!0),U(t),j(r),i}function Qt(){var e=re();ge(93);var n,t,r=he(127);if(ge(20),26!==ae()&&(n=109===ae()||115===ae()||81===ae()?Er(!0):K(4096,st)),r?ge(152):ye(152)){var a=Le(232,e);a.awaitModifier=r,a.initializer=n,a.expression=W(lt),ge(21),t=a}else if(ye(97)){var i=Le(231,e);i.initializer=n,i.expression=W(st),ge(21),t=i}else{var o=Le(230,e);o.initializer=n,ge(26),26!==ae()&&21!==ae()&&(o.condition=W(st)),ge(26),21!==ae()&&(o.incrementor=W(st)),ge(21),t=o}return t.statement=lr(),Ce(t)}function Zt(e){var n=Le(e);return ge(234===e?77:82),Te()||(n.label=ke()),Se(),Ce(n)}function $t(){return 78===ae()?(e=Le(277),ge(78),e.expression=W(st),ge(58),e.statements=$e(3,lr),Ce(e)):function(){var e=Le(278);return ge(84),ge(58),e.statements=$e(3,lr),Ce(e)}();var e}function er(){var e=Le(240);return ge(107),e.tryBlock=Xt(!1),e.catchClause=79===ae()?function(){var e=Le(280);ge(79),ye(20)?(e.variableDeclaration=br(),ge(21)):e.variableDeclaration=void 0;return e.block=Xt(!1),Ce(e)}():void 0,e.catchClause&&92!==ae()||(ge(92),e.finallyBlock=Xt(!1)),Ce(e)}function nr(){return oe(),e.tokenIsIdentifierOrKeyword(ae())&&!D.hasPrecedingLineBreak()}function tr(){return oe(),80===ae()&&!D.hasPrecedingLineBreak()}function rr(){return oe(),94===ae()&&!D.hasPrecedingLineBreak()}function ar(){return oe(),(e.tokenIsIdentifierOrKeyword(ae())||8===ae()||9===ae()||10===ae())&&!D.hasPrecedingLineBreak()}function ir(){for(;;)switch(ae()){case 109:case 115:case 81:case 94:case 80:case 88:return!0;case 114:case 145:return oe(),!D.hasPrecedingLineBreak()&&_e();case 135:case 136:return fr();case 122:case 126:case 130:case 117:case 118:case 119:case 138:if(oe(),D.hasPrecedingLineBreak())return!1;continue;case 150:return oe(),18===ae()||75===ae()||89===ae();case 96:return oe(),10===ae()||41===ae()||18===ae()||e.tokenIsIdentifierOrKeyword(ae());case 89:var n=oe();if(145===n&&(n=fe(oe)),62===n||41===n||18===n||84===n||123===n)return!0;continue;case 120:oe();continue;default:return!1}}function or(){return fe(ir)}function sr(){switch(ae()){case 59:case 26:case 18:case 109:case 115:case 94:case 80:case 88:case 95:case 86:case 111:case 93:case 82:case 77:case 101:case 112:case 103:case 105:case 107:case 83:case 79:case 92:return!0;case 96:return or()||fe(wn);case 81:case 89:return or();case 126:case 130:case 114:case 135:case 136:case 145:case 150:return!0;case 119:case 117:case 118:case 120:case 138:return or()||!fe(nr);default:return ot()}}function cr(){return oe(),_e()||18===ae()||22===ae()}function lr(){switch(ae()){case 26:return e=Le(224),ge(26),Ce(e);case 18:return Xt(!1);case 109:return Sr(Ae(242));case 115:if(fe(cr))return Sr(Ae(242));break;case 94:return Lr(Ae(244));case 80:return Pr(Ae(245));case 95:return function(){var e=Le(227);return ge(95),ge(20),e.expression=W(st),ge(21),e.thenStatement=lr(),e.elseStatement=ye(87)?lr():void 0,Ce(e)}();case 86:return function(){var e=Le(228);return ge(86),e.statement=lr(),ge(111),ge(20),e.expression=W(st),ge(21),ye(26),Ce(e)}();case 111:return function(){var e=Le(229);return ge(111),ge(20),e.expression=W(st),ge(21),e.statement=lr(),Ce(e)}();case 93:return Qt();case 82:return Zt(233);case 77:return Zt(234);case 101:return function(){var e=Le(235);return ge(101),Te()||(e.expression=W(st)),Se(),Ce(e)}();case 112:return function(){var e=Le(236);return ge(112),ge(20),e.expression=W(st),ge(21),e.statement=K(16777216,lr),Ce(e)}();case 103:return function(){var e=Le(237);ge(103),ge(20),e.expression=W(st),ge(21);var n=Le(251);return ge(18),n.clauses=$e(2,$t),ge(19),e.caseBlock=Ce(n),Ce(e)}();case 105:return function(){var e=Le(239);return ge(105),e.expression=D.hasPrecedingLineBreak()?void 0:W(st),Se(),Ce(e)}();case 107:case 79:case 92:return er();case 83:return function(){var e=Le(241);return ge(83),Se(),Ce(e)}();case 59:return dr();case 126:case 114:case 145:case 135:case 136:case 130:case 81:case 88:case 89:case 96:case 117:case 118:case 119:case 122:case 120:case 138:case 150:if(or())return dr()}var e;return function(){var e=Ae(0),n=W(st);return 75===n.kind&&ye(58)?(e.kind=238,e.label=n,e.statement=lr()):(e.kind=226,e.expression=n,Se()),Ce(e)}()}function ur(e){return 130===e.kind}function dr(){var n=fe((function(){return kr(),Nr()})),t=e.some(n,ur);if(t){var r=K(8388608,(function(){var e=nn(E);if(e)return tn(e)}));if(r)return r}var a=Ae(0);if(a.decorators=kr(),a.modifiers=Nr(),t){for(var i=0,o=a.modifiers;i=0),e.Debug.assert(n<=i),e.Debug.assert(i<=a.length),d(a,n)){var o,s,c,l=[];return D.scanRange(n+3,r-5,(function(){var e,t,r=1,d=n-Math.max(a.lastIndexOf("\n",n),0)+4;function f(n){e||(e=d),l.push(n),d+=n.length}for(se();M(5););M(4)&&(r=0,d=0);e:for(;;){switch(ae()){case 59:0===r||1===r?(p(l),v(y(d)),r=0,e=void 0):f(D.getTokenText());break;case 4:l.push(D.getTokenText()),r=0,d=0;break;case 41:var m=D.getTokenText();1===r||2===r?(r=2,f(m)):(r=1,d+=m.length);break;case 5:var _=D.getTokenText();2===r?l.push(_):void 0!==e&&d+_.length>e&&l.push(_.slice(e-d-1)),d+=_.length;break;case 1:break e;default:r=2,f(D.getTokenText())}se()}return u(l),p(l),(t=Le(303,n)).tags=o&&xe(o,s,c),t.comment=l.length?l.join(""):void 0,Ce(t,i)}))}function u(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function p(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function f(){for(;;){if(se(),1===ae())return!0;if(5!==ae()&&4!==ae())return!1}}function m(){if(5!==ae()&&4!==ae()||!fe(f))for(;5===ae()||4===ae();)se()}function _(){if((5===ae()||4===ae())&&fe(f))return"";for(var e=D.hasPrecedingLineBreak(),n=!1,t="";e&&41===ae()||5===ae()||4===ae();)t+=D.getTokenText(),4===ae()?(e=!0,n=!0,t=""):41===ae()&&(e=!1),se();return n?t:""}function y(n){e.Debug.assert(59===ae());var r=D.getTokenPos();se();var a,i=P(void 0),s=_();switch(i.escapedText){case"author":a=function(e,n,t){var r=Le(308,e);r.tagName=n;var a=me((function(){return function(){var e=[],n=!1,t=!1,r=D.getToken();e:for(;;){switch(r){case 75:case 5:case 24:case 59:e.push(D.getTokenText());break;case 29:if(n||t)return;n=!0,e.push(D.getTokenText());break;case 31:if(!n||t)return;t=!0,e.push(D.getTokenText()),D.setTextPos(D.getTokenPos()+1);break e;case 4:case 1:break e}r=se()}if(n&&t)return 0===e.length?void 0:e.join("")}()}));if(!a)return Ce(r);if(r.comment=a,fe((function(){return 4!==oe()}))){var i=h(t);i&&(r.comment+=i)}return Ce(r)}(r,i,n);break;case"augments":case"extends":a=function(e,n){var t=Le(307,e);return t.tagName=n,t.class=function(){var e=ye(18),n=Le(216);n.expression=function(){var e=P();for(;ye(24);){var n=Le(194,e.pos);n.expression=e,n.name=P(),e=Ce(n)}return e}(),n.typeArguments=Ur();var t=Ce(n);e&&ge(19);return t}(),Ce(t)}(r,i);break;case"class":case"constructor":a=x(r,309,i);break;case"public":a=x(r,310,i);break;case"private":a=x(r,311,i);break;case"protected":a=x(r,312,i);break;case"readonly":a=x(r,313,i);break;case"this":a=function(e,n){var r=Le(318,e);return r.tagName=n,r.typeExpression=t(!0),m(),Ce(r)}(r,i);break;case"enum":a=function(e,n){var r=Le(315,e);return r.tagName=n,r.typeExpression=t(!0),m(),Ce(r)}(r,i);break;case"arg":case"argument":case"param":return L(r,i,2,n);case"return":case"returns":a=function(n,t){e.some(o,e.isJSDocReturnTag)&&ee(t.pos,D.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var r=Le(317,n);return r.tagName=t,r.typeExpression=E(),Ce(r)}(r,i);break;case"template":a=function(n,r){var a;18===ae()&&(a=t());var i=[],o=re();do{m();var s=Le(155);s.name=P(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Ce(s),m(),i.push(s)}while(M(27));var c=Le(320,n);return c.tagName=r,c.constraint=a,c.typeParameters=xe(i,o),Ce(c),c}(r,i);break;case"type":a=A(r,i);break;case"typedef":a=function(n,t,r){var a=E();_();var i,o=Le(321,n);if(o.tagName=t,o.fullName=C(),o.name=I(o.fullName),m(),o.comment=h(r),o.typeExpression=a,!a||S(a.type)){for(var s=void 0,c=void 0,l=void 0;s=me((function(){return k(r)}));)if(c||(c=Le(304,n)),319===s.kind){if(l)break;l=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(a&&174===a.type.kind&&(c.isArrayType=!0),o.typeExpression=l&&l.typeExpression&&!S(l.typeExpression.type)?l.typeExpression:Ce(c),i=o.typeExpression.end)}return Ce(o,i||void 0!==o.comment?D.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(r,i,n);break;case"callback":a=function(n,t,r){var a,i=Le(314,n);i.tagName=t,i.fullName=C(),i.name=I(i.fullName),m(),i.comment=h(r);var o=Le(305,n);o.parameters=[];for(;a=me((function(){return N(4,r)}));)o.parameters=e.append(o.parameters,a);var s=me((function(){if(M(59)){var e=y(r);if(e&&317===e.kind)return e}}));s&&(o.type=s);return i.typeExpression=Ce(o),Ce(i)}(r,i,n);break;default:a=function(e,n){var t=Le(306,e);return t.tagName=n,Ce(t)}(r,i)}return a.comment||(s||(n+=a.end-a.pos),a.comment=h(n,s.slice(n))),a}function h(n,t){var r,a=[],i=0;function o(e){r||(r=n),a.push(e),n+=e.length}t&&(o(t),i=2);var s=ae();e:for(;;){switch(s){case 4:i>=1&&(i=0,a.push(D.getTokenText())),n=0;break;case 59:if(3===i){a.push(D.getTokenText());break}D.setTextPos(D.getTextPos()-1);case 1:break e;case 5:if(2===i||3===i)o(D.getTokenText());else{var c=D.getTokenText();void 0!==r&&n+c.length>r&&a.push(c.slice(r-n)),n+=c.length}break;case 18:i=2,fe((function(){return 59===se()&&e.tokenIsIdentifierOrKeyword(se())&&"link"===D.getTokenText()}))&&(o(D.getTokenText()),se(),o(D.getTokenText()),se()),o(D.getTokenText());break;case 61:i=3===i?2:3,o(D.getTokenText());break;case 41:if(0===i){i=1,n+=1;break}default:3!==i&&(i=2),o(D.getTokenText())}s=se()}return u(a),p(a),0===a.length?void 0:a.join("")}function v(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function E(){return _(),18===ae()?t():void 0}function T(){var n=M(22);n&&m();var t,r=M(61),a=function(){var e=P();ye(22)&&ge(23);for(;ye(24);){var n=P();ye(22)&&ge(23),e=un(e,n)}return e}();return r&&(ve(t=61)||De(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))),n&&(m(),he(62)&&st(),ge(23)),{name:a,isBracketed:n}}function S(n){switch(n.kind){case 141:return!0;case 174:return S(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&!n.typeArguments}}function L(n,t,r,a){var i=E(),o=!i;_();var s=T(),c=s.name,l=s.isBracketed;m(),o&&(i=E());var u=Le(1===r?322:316,n),d=h(a+D.getStartPos()-n),p=4!==r&&function(n,t,r,a){if(n&&S(n.type)){for(var i=Le(294,D.getTokenPos()),o=void 0,s=void 0,c=D.getStartPos(),l=void 0;o=me((function(){return N(r,a,t)}));)316!==o.kind&&322!==o.kind||(l=e.append(l,o));if(l)return(s=Le(304,c)).jsDocPropertyTags=l,174===n.type.kind&&(s.isArrayType=!0),i.type=Ce(s),Ce(i)}}(i,c,r,a);return p&&(i=p,o=!0),u.tagName=t,u.typeExpression=i,u.name=c,u.isNameFirst=o,u.isBracketed=l,u.comment=d,Ce(u)}function A(n,r){e.some(o,e.isJSDocTypeTag)&&ee(r.pos,D.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=Le(319,n);return a.tagName=r,a.typeExpression=t(!0),Ce(a)}function x(e,n,t){var r=Le(n,e);return r.tagName=t,Ce(r)}function C(n){var t=D.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ae())){var r=P();if(ye(24)){var a=Le(249,t);return n&&(a.flags|=4),a.name=r,a.body=C(!0),Ce(a)}return n&&(r.isInJSDocNamespace=!0),r}}function I(n){if(n)for(var t=n;;){if(e.isIdentifier(t)||!t.body)return e.isIdentifier(t)?t:t.name;t=t.body}}function R(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 k(e){return N(1,e)}function N(n,t,r){for(var a=!0,i=!1;;)switch(se()){case 59:if(a){var o=O(n,t);return!(o&&(316===o.kind||322===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!R(r,o.name.left)))&&o}i=!1;break;case 4:a=!0,i=!1;break;case 41:i&&(a=!1),i=!0;break;case 75:a=!1;break;case 1:return!1}}function O(n,t){e.Debug.assert(59===ae());var r=D.getStartPos();se();var a,i=P();switch(m(),i.escapedText){case"type":return 1===n&&A(r,i);case"prop":case"property":a=1;break;case"arg":case"argument":case"param":a=6;break;default:return!1}return!!(n&a)&&L(r,i,n,t)}function M(e){return ae()===e&&(se(),!0)}function P(n){if(!e.tokenIsIdentifierOrKeyword(ae()))return De(75,!n,n||e.Diagnostics.Identifier_expected);b++;var t=D.getTokenPos(),r=D.getTextPos(),a=Le(75,t);return 75!==ae()&&(a.originalKeywordKind=ae()),a.escapedText=e.escapeLeadingUnderscores(Ie(D.getTokenValue())),Ce(a,r),se(),a}}n.parseJSDocTypeExpressionForTests=function(e,n,r){N(e,99,void 0,1),s=F("file.js",99,1,!1),D.setText(e,n,r),u=D.scan();var a=t(),i=c;return O(),a?{jsDocTypeExpression:a,diagnostics:i}:void 0},n.parseJSDocTypeExpression=t,n.parseIsolatedJSDocComment=function(e,n,t){N(e,99,void 0,1),s={languageVariant:0,text:e};var r=K(4194304,(function(){return i(n,t)})),a=c;return O(),r?{jsDoc:r,diagnostics:a}:void 0},n.parseJSDocComment=function(e,n,t){var r,a=u,o=c.length,l=I,d=K(4194304,(function(){return i(n,t)}));return d&&(d.parent=e),131072&L&&(s.jsDocDiagnostics||(s.jsDocDiagnostics=[]),(r=s.jsDocDiagnostics).push.apply(r,c)),u=a,c.length=o,I=l,d},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={}))}(C=n.JSDocParser||(n.JSDocParser={}))}(s||(s={})),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),n.pos+=a,n.end+=a,c&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),p(n,l,u),e.hasJSDocNodes(n))for(var d=0,f=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),n.pos=Math.min(n.pos,a),n.end>=r?n.end+=i:n.end=Math.min(n.end,a),e.Debug.assert(n.pos<=n.end),n.parent&&(e.Debug.assert(n.pos>=n.parent.pos),e.Debug.assert(n.end<=n.parent.end))}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 c(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)}}var l;n.updateSourceFile=function(n,r,l,u){if(c(n,r,l,u=u||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(l))return n;if(0===n.statements.length)return s.parseSourceFile(n.fileName,r,n.languageVersion,void 0,!0,n.scriptKind);var d=n;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var f=n.text,m=function(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,l);c(n,r,_,u),e.Debug.assert(_.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(_.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(_))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var g=e.textChangeRangeNewSpan(_).length-_.span.length;return function(n,r,o,s,c,l,u,d){return void f(n);function f(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),p(n,f,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 p=0,m=n;p/im,v=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function b(n,t,r){var a=2===t.kind&&h.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(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,n))}}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=e.createMapFromEntries(r),e.optionsForWatch=[{name:"watchFile",type:e.createMapFromTemplate({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory}),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:e.createMapFromTemplate({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling}),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:e.createMapFromTemplate({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority}),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.optionDeclarations=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:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99}),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:e.createMapFromTemplate({remove:0,preserve:1,error:2}),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_solution_searching_for_this_project},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(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},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.The_specified_path_does_not_exist_Colon_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,k,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=w(n,i,!0,(void 0===R&&(R={name:void 0,type:"object",elementOptions:S([{name:"compilerOptions",type:"object",elementOptions:N(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:k},{name:"typingOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:A},{name:"typeAcquisition",type:"object",elementOptions:M(),extraKeyDiagnostics:A},{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])}),R),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(N(),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(M(),i,n,a,A,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=w,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,x());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 250: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 249:return t(n,i);case 75: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,f,g,y,h,v,b,E,T,S,L,A,x,C,D,I,R,k,N,O,M,P,w=0,F={flags:1},G={flags:1},B=0;function U(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),N=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,i),M=e.createUnderscoreEscapedMap(),w=0,P=n.isDeclarationFile,O=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(F),e.Debug.attachFlowNodeDebugInfo(G),n.locals||(Ge(n),n.symbolCount=w,n.classifiableNames=M,function(){if(!v)return;for(var t=f,r=h,a=y,i=c,o=E,l=0,d=v;l=225&&n.kind<=241&&!r.allowUnreachableCode&&(n.flowNode=E),n.kind){case 229:!function(e){var n=ye(e,ie()),t=ae(),r=ae();se(n,E),E=n,_e(e.expression,t,r),E=de(t),ge(e.statement,r,n),se(n,E),E=de(r)}(n);break;case 228:!function(e){var n=ie(),t=ye(e,ae()),r=ae();se(n,E),E=n,ge(e.statement,r,t),se(t,E),E=de(t),_e(e.expression,n,r),E=de(r)}(n);break;case 230:!function(e){var n=ye(e,ie()),t=ae(),r=ae();Ge(e.initializer),se(n,E),E=n,_e(e.condition,t,r),E=de(t),ge(e.statement,r,n),Ge(e.incrementor),se(n,E),E=de(r)}(n);break;case 231:case 232:!function(e){var n=ye(e,ie()),t=ae();Ge(e.expression),se(n,E),E=n,232===e.kind&&Ge(e.awaitModifier);se(t,E),Ge(e.initializer),243!==e.initializer.kind&&be(e.initializer);ge(e.statement,t,n),se(n,E),E=de(t)}(n);break;case 227:!function(e){var n=ae(),t=ae(),r=ae();_e(e.expression,n,t),E=de(n),Ge(e.thenStatement),se(r,E),E=de(t),Ge(e.elseStatement),se(r,E),E=de(r)}(n);break;case 235:case 239:!function(e){Ge(e.expression),235===e.kind&&(R=!0,L&&se(L,E));E=F}(n);break;case 234:case 233:!function(e){if(Ge(e.label),e.label){var n=function(e){for(var n=I;n;n=n.next)if(n.name===e)return n;return}(e.label.escapedText);n&&(n.referenced=!0,he(e,n.breakTarget,n.continueTarget))}else he(e,T,S)}(n);break;case 240:!function(e){var n=ae(),t=L,r=C;L=ae(),se(C=e.catchClause?ae():L,E),Ge(e.tryBlock),se(n,E);var a=E,i=F;e.catchClause&&(E=de(C),se(C=L,E),Ge(e.catchClause),se(n,E),i=E);var o=de(C);if(L=t,C=r,e.finallyBlock){var c=s({flags:4096,antecedent:o,lock:{}});if(se(n,c),E=de(n),Ge(e.finallyBlock),1&E.flags||1&a.flags&&1&i.flags&&(E=a===G||i===G?G:F),!(1&E.flags)){var l=s({flags:8192,antecedent:E});c.lock=l,E=l}}else E=de(n)}(n);break;case 237:!function(n){var t=ae();Ge(n.expression);var r=T,a=D;T=t,D=E,Ge(n.caseBlock),se(t,E);var i=e.forEach(n.caseBlock.clauses,(function(e){return 278===e.kind}));n.possiblyExhaustive=!i&&!t.antecedents,i||se(t,le(D,n,0,0));T=r,D=a,E=de(t)}(n);break;case 251:!function(e){var n=B;B=0;for(var t=e.clauses,a=$(e.parent.expression),i=F,o=0;o=0;)switch(n=t.expr[r],t.state[r]){case 0:n.parent=c;var a=N;Ve(n);var i=c;c=n;var o=void 0;if(P);else if(536870912&n.transformFlags)P=!0,o=-1;else{var s=B;B=0,o=s}d(1,a,i,o);break;case 1:if(55===(u=n.operatorToken.kind)||56===u||60===u){if(fe(n)){var l=ae();Ee(n,l,l),E=de(l)}else Ee(n,A,x);f()}else d(2),_(n.left);break;case 2:d(3),_(n.operatorToken);break;case 3:d(4),_(n.right);break;case 4:var u=n.operatorToken.kind;if(e.isAssignmentOperator(u)&&!e.isAssignmentTarget(n))if(be(n.left),62===u&&195===n.left.kind)re(n.left.expression)&&(E=ue(256,E,n));f();break;default:return e.Debug.fail("Invalid state "+t.state[r]+" for bindBinaryExpressionFlow")}function d(e,n,a,i){t.state[r]=e,void 0!==n&&(t.inStrictMode[r]=n),void 0!==a&&(t.parent[r]=a),void 0!==i&&(t.subtreeFlags[r]=i)}function f(){void 0!==t.inStrictMode[r]&&(-1===t.subtreeFlags[r]?(P=!1,B|=n.transformFlags&~m(n.kind)):void 0!==t.subtreeFlags[r]&&(B=t.subtreeFlags[r]|p(n,B)),N=t.inStrictMode[r],c=t.parent[r]),r--}function _(n){n&&e.isBinaryExpression(n)?(r++,t.expr[r]=n,t.state[r]=0,t.inStrictMode[r]=void 0,t.parent[r]=void 0,t.subtreeFlags[r]=void 0):Ge(n)}}(n);break;case 203:!function(e){Q(e),194===e.expression.kind&&be(e.expression)}(n);break;case 210:!function(e){var n=ae(),t=ae(),r=ae();_e(e.condition,n,t),E=de(n),Ge(e.questionToken),Ge(e.whenTrue),se(r,E),E=de(t),Ge(e.colonToken),Ge(e.whenFalse),se(r,E),E=de(r)}(n);break;case 242:!function(n){Q(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=113&&t.originalKeywordKind<=121)||e.isIdentifierName(t)||8388608&t.flags||4194304&t.flags||n.parseDiagnostics.length||n.bindDiagnostics.push(U(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),e.declarationNameToString(t)))}function Oe(t,r){if(r&&75===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 Me(e){N&&Oe(e,e.name)}function Pe(t){if(a<2&&290!==y.kind&&249!==y.kind&&!e.isFunctionLike(y)){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 we(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 Fe(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 Ge(n){if(n){n.parent=c;var t=N;if(Ve(n),n.kind>152){var r=c;c=n;var a=Ae(n);0===a?J(n):function(n,t){var r=f,a=g,i=y;if(1&t?(202!==n.kind&&(g=f),f=y=n,32&t&&(f.locals=e.createSymbolTable()),xe(f)):2&t&&((y=n).locals=void 0),4&t){var o=E,c=T,l=S,u=L,d=C,p=I,m=R,_=16&t&&!e.hasModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);_||(E=s({flags:2}),144&t&&(E.node=n)),L=_||162===n.kind?ae():void 0,C=void 0,T=void 0,S=void 0,I=void 0,R=!1,J(n),n.flags&=-2817,!(1&E.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=256,R&&(n.flags|=512),n.endFlowNode=E),290===n.kind&&(n.flags|=k),L&&(se(L,E),E=de(L),162===n.kind&&(n.returnFlowNode=E)),_||(E=o),T=c,S=l,L=u,C=d,I=p,R=m}else 64&t?(b=!1,J(n),n.flags=b?128|n.flags:-129&n.flags):J(n);f=r,g=a,y=i}(n,a),c=r}else if(!P&&0==(536870912&n.transformFlags)){B|=p(n,0);r=c;1===n.kind&&(c=n),Be(n),c=r}N=t}}function Be(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))&&we(n.label,e.Diagnostics.A_label_is_not_allowed_here)}(t);case 183:return void(b=!0);case 168:break;case 155: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()),q(t.locals,void 0,n,262144,526824)):Ce(n,262144,526824)}else if(181===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()),q(r.locals,void 0,n,262144,526824)):Re(n,262144,K(n))}else Ce(n,262144,526824)}(t);case 156:return rn(t);case 242:return tn(t);case 191:return t.flowNode=E,tn(t);case 159:case 158:return function(e){return an(e,4|(e.questionToken?16777216:0),0)}(t);case 281:case 282:return an(t,4,0);case 284:return an(t,8,900095);case 165:case 166:case 167:return Ce(t,131072,0);case 161:case 160:return an(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:103359);case 244:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(k|=2048);Me(t),N?(Pe(t),ke(t,16,110991)):Ce(t,16,110991)}(t);case 162:return Ce(t,16384,0);case 163:return an(t,32768,46015);case 164:return an(t,65536,78783);case 170:case 300:case 305:case 171:return function(n){var t=V(131072,K(n));j(t,n,131072);var r=V(2048,"__type");j(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(t);case 173:case 304:case 186:return function(e){return Re(e,2048,"__type")}(t);case 309:return function(n){Q(n);var t=e.getHostSignatureFromJSDoc(n);t&&161!==t.kind&&j(t.symbol,t,32)}(t);case 193:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),N&&!e.isAssignmentTarget(t))for(var a=e.createUnderscoreEscapedMap(),i=0,o=t.properties;i=168&&e<=188)return-2;switch(e){case 196:case 197:case 192:return 536879104;case 249:return 537991168;case 156:return 536870912;case 202:return 538920960;case 201:case 244:return 538925056;case 243:return 537018368;case 245:case 214:return 536905728;case 162:return 538923008;case 161:case 163:case 164:return 538923008;case 125:case 140:case 151:case 137:case 143:case 141:case 128:case 144:case 110:case 155:case 158:case 160:case 165:case 166:case 167:case 246:case 247:return-2;case 193:return 536922112;case 280:return 536887296;case 189:case 190:return 536879104;case 199:case 217:case 325:case 200:case 102:return 536870912;case 194:case 195:default:return 536870912}}function _(n,t){t.parent=n,e.forEachChild(t,(function(e){return _(t,e)}))}e.bindSourceFile=function(n,t){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+n.fileName),c(n,t),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=u,e.computeTransformFlagsForNode=p,e.getTransformFlagsSubtreeExclusions=m}(d||(d={})),function(e){e.createGetSymbolWalker=function(n,t,r,a,i,o,s,c,l,u,d){return function(p){void 0===p&&(p=function(){return!0});var f=[],m=[];return{walkType:function(n){try{return _(n),{visitedTypes:e.getOwnValues(f),visitedSymbols:e.getOwnValues(m)}}finally{e.clear(f),e.clear(m)}},walkSymbol:function(n){try{return h(n),{visitedTypes:e.getOwnValues(f),visitedSymbols:e.getOwnValues(m)}}finally{e.clear(f),e.clear(m)}}};function _(n){if(n&&(!f[n.id]&&(f[n.id]=n,!h(n.symbol)))){if(524288&n.flags){var t=n,r=t.objectFlags;4&r&&function(n){_(n.target),e.forEach(d(n),_)}(n),32&r&&function(e){_(e.typeParameter),_(e.constraintType),_(e.templateType),_(e.modifiersType)}(n),3&r&&(y(i=n),e.forEach(i.typeParameters,_),e.forEach(a(i),_),_(i.thisType)),24&r&&y(t)}var i;262144&n.flags&&function(e){_(l(e))}(n),3145728&n.flags&&function(n){e.forEach(n.types,_)}(n),4194304&n.flags&&function(e){_(e.type)}(n),8388608&n.flags&&function(e){_(e.objectType),_(e.indexType),_(e.constraint)}(n)}}function g(a){var i=t(a);i&&_(i.type),e.forEach(a.typeParameters,_);for(var o=0,s=a.parameters;o1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b);return N(t),L(m);function E(e){return!!e&&75===e.kind}function S(n){var t=e.find(n,e.isExportAssignment),r=e.find(n,e.isModuleDeclaration);if(r&&t&&t.isExportEquals&&e.isIdentifier(t.expression)&&e.isIdentifier(r.name)&&e.idText(r.name)===e.idText(t.expression)&&r.body&&e.isModuleBlock(r.body)){var a=e.filter(n,(function(n){return!!(1&e.getModifierFlags(n))}));e.length(a)&&(r.body.statements=e.createNodeArray(i(r.body.statements,[e.createExportDeclaration(void 0,void 0,e.createNamedExports(e.map(e.flatMap(a,(function(n){return t=n,e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),E):e.filter([e.getNameOfDeclaration(t)],E);var t})),(function(n){return e.createExportSpecifier(void 0,n)}))),void 0)]))),e.find(n,(function(n){return n!==r&&e.nodeHasName(n,r.name)}))||(m=[],e.forEach(r.body.statements,(function(e){P(e,0)})),n=i(e.filter(n,(function(e){return e!==r&&e!==t})),m))}return n}function L(n){return n=function(n){var t=e.find(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause}));if(t&&t.exportClause&&e.isNamedExports(t.exportClause)){var r=e.mapDefined(t.exportClause.elements,(function(t){if(!t.propertyName){var r=e.filter(n,(function(n){return e.nodeHasName(n,t.name)}));if(e.length(r)&&e.every(r,D))return void e.forEach(r,I)}return t}));e.length(r)?t.exportClause.elements=e.createNodeArray(r):n=e.filter(n,(function(e){return e!==t}))}return n}(n=function(n){var t=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(t)>1){var r=e.filter(n,(function(n){return!e.isExportDeclaration(n)||!!n.moduleSpecifier||!n.exportClause}));n=i(r,[e.createExportDeclaration(void 0,void 0,e.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.createExportDeclaration(void 0,void 0,e.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"===t?t="_default":"export="===t&&(t="_exports"),t=e.isIdentifierText(t,V)&&!e.isStringANonContextualKeyword(t)?t:"_"+t.replace(/[^a-zA-Z0-9]/g,"_")}function $(e,n){return r.remappedSymbolNames.has(""+R(e))?r.remappedSymbolNames.get(""+R(e)):(n=Z(e,n),r.remappedSymbolNames.set(""+R(e),n),n)}}(r,t,u)}))}};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:e.maybeBind(n,n.getCurrentDirectory),getProbableSymlinks:e.maybeBind(n,n.getProbableSymlinks)}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=i(o);return o.encounteredError?void 0:s}function a(n){return n.truncating?n.truncating:n.truncating=!(1&n.flags)&&n.approximateLength>e.defaultMaximumTruncationLength}function s(n,t){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&t.flags;if(t.flags&=-8388609,n){if(1&n.flags)return t.approximateLength+=3,e.createKeywordTypeNode(125);if(2&n.flags)return e.createKeywordTypeNode(148);if(4&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(143);if(8&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(140);if(64&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(151);if(16&n.flags)return t.approximateLength+=7,e.createKeywordTypeNode(128);if(1024&n.flags&&!(1048576&n.flags)){var o=da(n.symbol),c=S(o,t,788968);return lo(o)===n?c:F(c,e.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.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(n.value,!!(268435456&t.flags)),16777216));if(256&n.flags){var _=n.value;return t.approximateLength+=(""+_).length,e.createLiteralTypeNode(_<0?e.createPrefix(40,e.createLiteral(-_)):e.createLiteral(_))}if(2048&n.flags)return t.approximateLength+=e.pseudoBigIntToString(n.value).length+1,e.createLiteralTypeNode(e.createLiteral(n.value));if(512&n.flags)return t.approximateLength+=n.intrinsicName.length,"true"===n.intrinsicName?e.createTrue():e.createFalse();if(8192&n.flags){if(!(1048576&t.flags)){if(Na(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,S(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.createTypeOperatorNode(147,e.createKeywordTypeNode(144))}if(16384&n.flags)return t.approximateLength+=4,e.createKeywordTypeNode(110);if(32768&n.flags)return t.approximateLength+=9,e.createKeywordTypeNode(146);if(65536&n.flags)return t.approximateLength+=4,e.createKeywordTypeNode(100);if(131072&n.flags)return t.approximateLength+=5,e.createKeywordTypeNode(137);if(4096&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(144);if(67108864&n.flags)return t.approximateLength+=6,e.createKeywordTypeNode(141);if(xl(n))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),t.tracker.reportInaccessibleThisError&&t.tracker.reportInaccessibleThisError()),t.approximateLength+=4,e.createThis();if(!i&&n.aliasSymbol&&(16384&t.flags||ka(n.aliasSymbol,t.enclosingDeclaration))){var g=d(n.aliasTypeArguments,t);return!Sa(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?S(n.aliasSymbol,t,788968,g):e.createTypeReferenceNode(e.createIdentifier(""),g)}var y=e.getObjectFlags(n);if(4&y)return e.Debug.assert(!!(524288&n.flags)),n.node?M(n,w):w(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.createInferTypeNode(m(n,t,void 0));if(4&t.flags&&262144&n.flags&&!ka(n.symbol,t.enclosingDeclaration)){var h=A(n,t);return t.approximateLength+=e.idText(h).length,e.createTypeReferenceNode(e.createIdentifier(e.idText(h)),void 0)}return n.symbol?S(n.symbol,t,788968):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(3145728&n.flags){var v=1048576&n.flags?function(e){for(var n=[],t=0,r=0;r0?e.createUnionOrIntersectionTypeNode(1048576&n.flags?178:179,b):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&y)return e.Debug.assert(!!(524288&n.flags)),O(n);if(4194304&n.flags){var E=n.type;t.approximateLength+=6;var T=s(E,t);return e.createTypeOperatorNode(T)}if(8388608&n.flags){var L=s(n.objectType,t);T=s(n.indexType,t);return t.approximateLength+=2,e.createIndexedAccessTypeNode(L,T)}if(16777216&n.flags){var x=s(n.checkType,t),C=t.inferTypeParameters;t.inferTypeParameters=n.root.inferTypeParameters;var D=s(n.extendsType,t);t.inferTypeParameters=C;var k=s(Fl(n),t),N=s(Gl(n),t);return t.approximateLength+=15,e.createConditionalTypeNode(x,D,k,N)}return 33554432&n.flags?s(n.typeVariable,t):e.Debug.fail("Should be unreachable.")}function O(n){var r=""+n.id,a=n.symbol;if(a){if(Ug(a.valueDeclaration)){var i=n===no(a)?788968:111551;return S(a,t,i)}if(32&a.flags&&!Pi(a)&&!(214===a.valueDeclaration.kind&&2048&t.flags)||896&a.flags||function(){var n=!!(8192&a.flags)&&e.some(a.declarations,(function(n){return e.hasModifier(n,32)})),i=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(function(e){return 290===e.parent.kind||250===e.parent.kind})));if(n||i)return(!!(4096&t.flags)||t.visitedTypes&&t.visitedTypes.has(r))&&(!(8&t.flags)||Na(a,t.enclosingDeclaration))}())return S(a,t,111551);if(t.visitedTypes&&t.visitedTypes.has(r)){var o=function(n){if(n.symbol&&2048&n.symbol.flags){var t=e.findAncestor(n.symbol.declarations[0].parent,(function(e){return 182!==e.kind}));if(247===t.kind)return ua(t)}return}(n);return o?S(o,t,788968):l(t)}return M(n,P)}return P(n)}function M(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"+I(n.node):n.symbol?(o?"+":"")+R(n.symbol):void 0;if(t.visitedTypes||(t.visitedTypes=e.createMap()),s&&!t.symbolDepth&&(t.symbolDepth=e.createMap()),s){if((a=t.symbolDepth.get(s)||0)>10)return l(t);t.symbolDepth.set(s,a+1)}t.visitedTypes.set(i,!0);var c=r(n);return t.visitedTypes.delete(i),s&&t.symbolDepth.set(s,a),c}function P(n){if(as(n))return function(n){e.Debug.assert(!!(524288&n.flags));var r,a=n.declaration.readonlyToken?e.createToken(n.declaration.readonlyToken.kind):void 0,i=n.declaration.questionToken?e.createToken(n.declaration.questionToken.kind):void 0;r=$o(n)?e.createTypeOperatorNode(s(es(n),t)):s(Yo(n),t);var o=m(Xo(n),t,r),c=s(Qo(n),t),l=e.createMappedTypeNode(a,o,i,c);return t.approximateLength+=10,e.setEmitFlags(l,1)}(n);var r=is(n);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return t.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return f(r.callSignatures[0],170,t);if(1===r.constructSignatures.length&&!r.callSignatures.length)return f(r.constructSignatures[0],171,t)}var i=t.flags;t.flags|=4194304;var o=function(n){if(a(t))return[e.createPropertySignature(void 0,"...",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(A,h),t)}var v=t.flags;t.flags|=16;var b=S(n.symbol,t,788968,y);return t.flags=v,l?F(l,b):b}if(r.length>0){var E=bc(n),T=d(r.slice(0,E),t),L=n.target.hasRestElement;if(T){for(var A=n.target.minLength;A2)return[s(n[0],t),e.createTypeReferenceNode("... "+(n.length-2)+" more ...",void 0),s(n[n.length-1],t)]}for(var i=[],o=0,c=0,l=n;c0)),i}function b(n,t){var r;return 524384&tb(n).flags&&(r=e.createNodeArray(e.map(qi(n),(function(e){return _(e,t)})))),r}function E(n,t,r){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(U)===e.ModuleResolutionKind.NodeJs&&l.indexOf("/node_modules/")>=0&&(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.createLiteralTypeNode(e.createLiteral(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.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.createIndexedAccessTypeNode(e.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.createTypeQueryNode(f);var m,_=(m=e.isIdentifier(f)?f:f.right).typeArguments;return m.typeArguments=void 0,e.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=Ya(c,t),t.approximateLength+=(o?o.length:0)+1,t.flags^=16777216;else if(l&&ia(l)){var u=ia(l);e.forEachEntry(u,(function(n,t){if(ma(n,c)&&!To(t)&&"export="!==t)return o=e.unescapeLeadingUnderscores(t),!0}))}if(o||(o=Ya(c,t)),t.approximateLength+=o.length+1,!(16&t.flags)&&l&&Do(l)&&Do(l).get(c.escapedName)&&ma(Do(l).get(c.escapedName),c)){var d=g(n,r-1,i);return e.isIndexedAccessTypeNode(d)?e.createIndexedAccessTypeNode(d,e.createLiteralTypeNode(e.createLiteral(o))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(d,s),e.createLiteralTypeNode(e.createLiteral(o)))}var p=e.setEmitFlags(e.createIdentifier(o,s),16777216);if(p.symbol=c,r>i){d=g(n,r-1,i);return e.isEntityName(d)?e.createQualifiedName(d,p):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return p}}function L(e,n){return!!yr(n.enclosingDeclaration,e,788968,void 0,e,!1)}function A(n,t){if(4&t.flags&&t.typeParameterNames){var r=t.typeParameterNames.get(""+$c(n));if(r)return r}var a=x(n.symbol,t,788968,!0);if(!(75&a.kind))return e.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var i=a.escapedText,o=0,s=i;t.typeParameterNamesByText&&t.typeParameterNamesByText.get(s)||L(s,t);)s=i+"_"+ ++o;s!==i&&(a=e.createIdentifier(s,a.typeArguments)),(t.typeParameterNames||(t.typeParameterNames=e.createMap())).set(""+$c(n),a),(t.typeParameterNamesByText||(t.typeParameterNamesByText=e.createMap())).set(a.escapedText,!0)}return a}function x(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=Ya(o,t);0===a&&(t.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,i),16777216);return c.symbol=o,a>0?e.createQualifiedName(n(r,a-1),c):c}(i,i.length-1)}function C(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=Ya(o,t);0===a&&(t.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,wa))return e.createLiteral(T(o,t));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),V):e.isIdentifierStart(c,V);if(0===a||l){var u=e.setEmitFlags(e.createIdentifier(s,i),16777216);return u.symbol=o,a>0?e.createPropertyAccess(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.createLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})))).singleQuote=39===c:""+ +s===s&&(d=e.createLiteral(+s)),d||((d=e.setEmitFlags(e.createIdentifier(s,i),16777216)).symbol=o),e.createElementAccess(n(r,a-1),d)}(a,a.length-1)}function D(n){var t=e.getNameOfDeclaration(n);return!!(t&&e.isStringLiteral(t)&&(t.singleQuote||!e.nodeIsSynthesized(t)&&e.startsWith(e.getTextOfNode(t,!1),"'")))}function k(n,t){var r=!!e.length(n.declarations)&&e.every(n.declarations,D),a=function(n,t,r){var a=pr(n).nameType;if(a){if(384&a.flags){var i=""+a.value;return e.isIdentifierText(i,U.target)||Ym(i)?Ym(i)&&e.startsWith(i,"-")?e.createComputedPropertyName(e.createLiteral(+i)):N(i):e.createLiteral(i,!!r)}if(8192&a.flags)return e.createComputedPropertyName(C(a.symbol,t,111551))}}(n,t,r);return a||(e.isKnownSymbol(n)?e.createComputedPropertyName(e.createPropertyAccess(e.createIdentifier("Symbol"),n.escapedName.substr(3))):N(e.unescapeLeadingUnderscores(n.escapedName),r))}function N(n,t){return e.isIdentifierText(n,U.target)?e.createIdentifier(n):e.createLiteral(Ym(n)?+n:n,!!t)}}(),ee=e.createSymbolTable(),ne=rr(4,"undefined");ne.declarations=[];var te=rr(1536,"globalThis",8);te.exports=ee,te.declarations=[],ee.set(te.escapedName,te);var re,ae=rr(4,"arguments"),ie=rr(4,"require"),oe={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getRelationCacheSizes:function(){return{assignable:zt.size,identity:Xt.size,subtype:Wt.size,strictSubtype:qt.size}},isUndefinedSymbol:function(e){return e===ne},isArgumentsSymbol:function(e){return e===ae},isUnknownSymbol:function(e){return e===ge},getMergedSymbol:la,getDiagnostics:Cb,getGlobalDiagnostics:function(){return Db(),Vt.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(n,t){return(t=e.getParseTreeNode(t))?function(n,t){if(n=n.exportSymbol||n,75===t.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=ah(t);if(_a(fr(t).resolvedSymbol)===n)return r}return Bi(n)}(n,t):Ee},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=_r(r.locals,t,111551),o=_r(Do(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:lo,getPropertiesOfType:ls,getPropertyOfType:function(n,t){return Cs(n,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(n,t,r){var a=e.getParseTreeNode(r);if(a){var i=w_(e.escapeLeadingUnderscores(t),a);return i?F_(n,i):void 0}},getTypeOfPropertyOfType:function(n,t){return ai(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:Ns,getSignaturesOfType:Is,getIndexTypeOfType:Os,getBaseTypes:$i,getBaseTypeOfLiteralType:jd,getWidenedType:gp,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?ou(t):Ee},getParameterType:Zg,getPromisedTypeOfPromise:Ih,getReturnTypeOfSignature:Ys,isNullableType:x_,getNullableType:np,getNonNullableType:rp,getNonOptionalType:op,getTypeArguments:vc,typeToTypeNode:$.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$.signatureToSignatureDeclaration,symbolToEntityName:$.symbolToEntityName,symbolToExpression:$.symbolToExpression,symbolToTypeParameterDeclarations:$.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:$.symbolToParameterDeclaration,typeParameterToDeclaration:$.typeParameterToDeclaration,getSymbolsInScope:function(n,t){return(n=e.getParseTreeNode(n))?function(n,t){if(16777216&n.flags)return[];var r=e.createSymbolTable(),a=!1;return i(),r.delete("this"),ws(r);function i(){for(;n;){switch(n.locals&&!mr(n)&&s(n.locals,t),n.kind){case 290:if(!e.isExternalOrCommonJsModule(n))break;case 249:s(ua(n).exports,2623475&t);break;case 248:s(ua(n).exports,8&t);break;case 214:n.name&&o(n.symbol,t);case 245:case 246:a||s(Do(ua(n)),788968&t);break;case 201:n.name&&o(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&o(ae,t),a=e.hasModifier(n,32),n=n.parent}s(ee,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)}))}}(n,t):[]},getSymbolAtLocation:function(n){return(n=e.getParseTreeNode(n))?Pb(n):void 0},getShorthandAssignmentValueSymbol:function(n){return(n=e.getParseTreeNode(n))?function(e){if(e&&282===e.kind)return Jr(e.name,2208703);return}(n):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?function(e){return e.parent.parent.moduleSpecifier?Mr(e.parent.parent,e):Jr(e.propertyName||e.name,2998271)}(t):void 0},getExportSymbolOfSymbol:function(e){return la(e.exportSymbol||e)},getTypeAtLocation:function(n){return(n=e.getParseTreeNode(n))?wb(n):Ee},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&&Fb(t)||Ee},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?function(n){var t=Fb(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Cs(t,n.escapedText)}(t):void 0},signatureToString:function(n,t,r,a){return Ua(n,e.getParseTreeNode(t),r,a)},typeToString:function(n,t,r){return Va(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,a){return Ba(n,e.getParseTreeNode(t),r,a)},typePredicateToString:function(n,t,r){return Wa(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,a,i){return Ua(n,e.getParseTreeNode(t),r,a,i)},writeType:function(n,t,r,a){return Va(n,e.getParseTreeNode(t),r,a)},writeSymbol:function(n,t,r,a,i){return Ba(n,e.getParseTreeNode(t),r,a,i)},writeTypePredicate:function(n,t,r,a){return Wa(n,e.getParseTreeNode(t),r,a)},getAugmentedPropertiesOfType:Vb,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(pr(n).containingType.types,(function(e){return Cs(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=pr(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&&fr(a).resolvedSignature;if(4&t&&a){var o=r;do{fr(o).skipDirectInference=!0,o=o.parent}while(o&&o!==a);fr(a).resolvedSignature=void 0}var s=wm(r,t);if(4&t&&a){o=r;do{fr(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==a);fr(a).resolvedSignature=i}return s}},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?Dm(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&Lm(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&km(t)},isContextSensitive:ku,getFullyQualifiedName:zr,getResolvedSignature:function(e,n,t){return se(e,n,t,0)},getResolvedSignatureForSignatureHelp:function(e,n,t){return se(e,n,t,16)},getExpandedParameters:wo,hasEffectiveRestParameter:ry,getConstantValue:function(n){var t=e.getParseTreeNode(n,cE);return t?lE(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,n){switch(e.kind){case 194:return J_(e,102===e.expression.kind,n,gp(sh(e.expression)));case 153:return J_(e,!1,n,gp(sh(e.left)));case 188:return J_(e,!1,n,ou(e))}}(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var a=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!a&&function(e,n,t){return J_(e,194===e.kind&&102===e.expression.kind,t.escapedName,n)}(a,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?Ks(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?nE(t):void 0},getImmediateAliasedSymbol:$m,getAliasedSymbol:Ur,getEmitResolver:function(e,n){return Cb(e,n),Z},getExportsOfModule:ra,getExportsAndPropertiesOfModule:function(n){var t=ra(n),r=ea(n);r!==n&&e.addRange(t,ls(Bi(r)));return t},getSymbolWalker:e.createGetSymbolWalker((function(e){return $s(e)||he}),Xs,Ys,$i,is,Bi,Yp,ks,ds,e.getFirstIdentifier,vc),getAmbientModules:function(){sn||(sn=[],ee.forEach((function(e,n){c.test(n)&&sn.push(e)})));return sn},getJsxIntrinsicTagNamesAt:function(n){var t=s_(C.IntrinsicElements,n);return t?ls(t):e.emptyArray},isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return!!t&&Bs(t)},tryGetMemberInModuleExports:function(n,t){return aa(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(n,t){var r=aa(n,t);if(r)return r;var a=ea(t);if(a===t)return;var i=Bi(a);return 131068&i.flags||1&e.getObjectFlags(i)||Gd(i)?void 0:Cs(i,n)}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return Gs(e,!1)},getApparentType:Ss,getUnionType:il,isTypeAssignableTo:function(e,n){return Vu(e,n)},createAnonymousType:xa,createSignature:No,createSymbol:rr,createIndexInfo:lc,getAnyType:function(){return he},getStringType:function(){return Ie},getNumberType:function(){return Re},createPromiseType:uy,createArrayType:zc,getElementTypeOfArrayType:Md,getBooleanType:function(){return we},getFalseType:function(e){return e?Ne:Oe},getTrueType:function(e){return e?Me:Pe},getVoidType:function(){return Ge},getUndefinedType:function(){return Le},getNullType:function(){return Ce},getESSymbolType:function(){return Fe},getNeverType:function(){return Be},getOptionalType:function(){return xe},isSymbolAccessible:Oa,isArrayType:kd,isTupleType:zd,isArrayLikeType:Pd,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some((function(n){var t=n.name&&ml(n.name),r=t&&bo(t)?Ao(t):void 0,a=void 0===r?void 0:ai(e,r);return!!a&&Vd(a)&&!Vu(wb(n),a)}))},getAllPossiblePropertiesOfTypes:function(n){var t=il(n);if(!(1048576&t.flags))return Vb(t);for(var r=e.createSymbolTable(),a=0,i=n;a>",0,he),nt=No(void 0,void 0,void 0,e.emptyArray,he,void 0,0,0),tt=No(void 0,void 0,void 0,e.emptyArray,Ee,void 0,0,0),rt=No(void 0,void 0,void 0,e.emptyArray,he,void 0,0,0),at=No(void 0,void 0,void 0,e.emptyArray,Ue,void 0,0,0),it=lc(Ie,!0),ot=e.createMap(),st={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},ct=Sv(he,he,he),lt=Sv(he,he,Se),ut=Sv(Be,he,Le),dt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Bn||(Bn=Gc("AsyncIterator",3,e))||Ze},getGlobalIterableType:function(e){return Gn||(Gn=Gc("AsyncIterable",1,e))||Ze},getGlobalIterableIteratorType:function(e){return Un||(Un=Gc("AsyncIterableIterator",1,e))||Ze},getGlobalGeneratorType:function(e){return Vn||(Vn=Gc("AsyncGenerator",3,e))||Ze},resolveIterationType:kh,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},pt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return On||(On=Gc("Iterator",3,e))||Ze},getGlobalIterableType:Hc,getGlobalIterableIteratorType:function(e){return Mn||(Mn=Gc("IterableIterator",1,e))||Ze},getGlobalGeneratorType:function(e){return Pn||(Pn=Gc("Generator",3,e))||Ze},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},ft=e.createMap(),mt=e.createMap(),_t=0,gt=0,yt=0,ht=!1,vt=0,bt=ru(""),Et=ru(0),Tt=ru({negative:!1,base10Value:"0"}),St=[],Lt=[],At=[],xt=0,Ct=[],Dt=[],It=[],Rt=[],kt=[],Nt=[],Ot=[],Mt=[],Pt=[],wt=[],Ft=[],Gt=[],Bt=[],Ut=[],Vt=e.createDiagnosticCollection(),jt=e.createDiagnosticCollection(),Ht=e.createMapFromTemplate({string:Ie,number:Re,bigint:ke,boolean:we,symbol:Fe,undefined:Le}),Kt=il(e.arrayFrom(S.keys(),ru)),Wt=e.createMap(),qt=e.createMap(),zt=e.createMap(),Jt=e.createMap(),Xt=e.createMap(),Yt=e.createMap(),Qt=e.createSymbolTable();return Qt.set(ne.escapedName,ne),function(){for(var t=0,r=n.getSourceFiles();t=5||e.addRelatedInfo(i,e.length(i.relatedInformation)?e.createDiagnosticForNode(c,e.Diagnostics.and_here):e.createDiagnosticForNode(c,e.Diagnostics._0_was_also_declared_here,r))}}function ur(e,n,t){void 0===t&&(t=!1),n.forEach((function(n,r){var a=e.get(r);e.set(r,a?sr(a,n,t):n)}))}function dr(n){var t=n.parent;if(t.symbol.declarations[0]===t)if(e.isGlobalScopeAugmentation(t))ur(ee,t.symbol.exports);else{var r=Qr(n,n,8388608&n.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!r)return;if(1920&(r=ea(r)).flags)if(e.some(cn,(function(e){return r===e.symbol}))){var a=sr(t.symbol,r,!0);ln||(ln=e.createMap()),ln.set(n.text,a)}else sr(r,t.symbol);else $t(n,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}else e.Debug.assert(t.symbol.declarations.length>1)}function pr(e){if(33554432&e.flags)return e;var n=R(e);return Dt[n]||(Dt[n]={})}function fr(e){var n=I(e);return It[n]||(It[n]={flags:0})}function mr(n){return 290===n.kind&&!e.isExternalOrCommonJsModule(n)}function _r(n,t,r){if(r){var a=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=Ur(a);if(i===ge||i.flags&r)return a}}}}function gr(t,r){var a=e.getSourceFileOfNode(t),i=e.getSourceFileOfNode(r);if(a!==i){if(j&&(a.externalModuleIndicator||i.externalModuleIndicator)||!U.outFile&&!U.out||Qp(r)||8388608&t.flags)return!0;if(u(r,t))return!0;var o=n.getSourceFiles();return o.indexOf(a)<=o.indexOf(i)}if(t.pos<=r.pos){if(191===t.kind){var s=e.getAncestor(r,191);return s?e.findAncestor(s,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 202:return!0;case 159:return!r||!(e.isPropertyDeclaration(n)&&t.parent===n.parent||e.isParameterPropertyDeclaration(n,n.parent)&&t.parent===n.parent.parent)||"quit";case 223:switch(t.parent.kind){case 163:case 161:case 164:return!0;default:return!1}default:return!1}}))}}function yr(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),hr(e,n,t,r,a,i,o,_r,s)}function hr(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&&!mr(n)&&(u=c(n.locals,t,r))){var b=!0;if(e.isFunctionLike(n)&&d&&d!==n.body){if(r&u.flags&788968&&303!==d.kind&&(b=!!(262144&u.flags)&&(d===n.type||156===d.kind||155===d.kind)),r&u.flags&3){var E=n;U.target&&U.target>=2&&e.isParameter(d)&&E.body&&u.valueDeclaration.pos>=E.body.pos&&u.valueDeclaration.end<=E.body.end?b=!1:1&u.flags&&(b=156===d.kind||d===n.type&&!!e.findAncestor(u.valueDeclaration,e.isParameter))}}else 180===n.kind&&(b=d===n.trueType);if(b)break e;u=void 0}switch(y=y||vr(n,d),n.kind){case 290:if(!e.isExternalOrCommonJsModule(n))break;v=!0;case 249:var T=ua(n).exports||x;if(290===n.kind||e.isModuleDeclaration(n)&&8388608&n.flags&&!e.isGlobalScopeAugmentation(n)){if(u=T.get("default")){var S=e.getLocalSymbolForExportDefault(u);if(S&&u.flags&r&&S.escapedName===t)break e;u=void 0}var L=T.get(t);if(L&&2097152===L.flags&&(e.getDeclarationOfKind(L,263)||e.getDeclarationOfKind(L,262)))break}if("default"!==t&&(u=c(T,t,2623475&r))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||u.declarations.some(e.isJSDocTypeAlias))break e;u=void 0}break;case 248:if(u=c(ua(n).exports,t,8&r))break e;break;case 159:if(!e.hasModifier(n,32)){var A=ya(n.parent);A&&A.locals&&c(A.locals,t,111551&r)&&(f=n)}break;case 245:case 214:case 246:if(u=c(ua(n).members||x,t,788968&r)){if(!Tr(u,n)){u=void 0;break}if(d&&e.hasModifier(d,32))return void $t(h,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(214===n.kind&&32&r){var C=n.name;if(C&&t===C.escapedText){u=n.symbol;break e}}break;case 216:if(d===n.expression&&90===n.parent.token){var D=n.parent.parent;if(e.isClassLike(D)&&(u=c(ua(D).members,t,788968&r)))return void(a&&$t(h,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 154:if(_=n.parent.parent,(e.isClassLike(_)||246===_.kind)&&(u=c(ua(_).members,t,788968&r)))return void $t(h,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 202:if(U.target>=2)break;case 161:case 162:case 163:case 164:case 244:if(3&r&&"arguments"===t){u=ae;break e}break;case 201:if(3&r&&"arguments"===t){u=ae;break e}if(16&r){var I=n.name;if(I&&t===I.escapedText){u=n.symbol;break e}}break;case 157:n.parent&&156===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||245===n.parent.kind)&&(n=n.parent);break;case 321:case 314:case 315:n=e.getJSDocHost(n);break;case 156:d&&d===n.initializer&&(m=n);break;case 191:if(d&&d===n.initializer)156===(M=e.getRootDeclaration(n)).kind&&(m=n)}br(n)&&(p=n),d=n,n=n.parent}if(!o||!u||p&&u===p.symbol||(u.isReferenced|=r),!u){if(d&&(e.Debug.assert(290===d.kind),d.commonJsModuleIndicator&&"exports"===t&&r&d.symbol.flags))return d.symbol;s||(u=c(ee,t,r))}if(!u&&g&&e.isInJSFile(g)&&g.parent&&e.isRequireCall(g.parent,!1))return ie;if(u){if(a){if(f&&(99!==U.target||!U.useDefineForClassFields)){var R=f.name;return void $t(h,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(R),Er(i))}if(h&&(2&r||(32&r||384&r)&&111551==(111551&r))){var k=_a(u);(2&k.flags||32&k.flags||384&k.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)||248===n.kind}));if(void 0===r)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&r.flags||gr(r,t))){var a=void 0,i=e.declarationNameToString(e.getNameOfDeclaration(r));2&n.flags?a=$t(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,i):32&n.flags?a=$t(t,e.Diagnostics.Class_0_used_before_its_declaration,i):256&n.flags?a=$t(t,e.Diagnostics.Enum_0_used_before_its_declaration,i):(e.Debug.assert(!!(128&n.flags)),U.preserveConstEnums&&(a=$t(t,e.Diagnostics.Class_0_used_before_its_declaration,i))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,i))}}(k,h)}if(u&&v&&111551==(111551&r)&&!(4194304&g.flags)){var N=la(u);e.length(N.declarations)&&e.every(N.declarations,(function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports}))&&nr(!U.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 O=la(Io(u)),M=e.getRootDeclaration(m);O===ua(m)?$t(h,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(m.name)):O.valueDeclaration&&O.valueDeclaration.pos>m.pos&&M.parent.locals&&c(M.parent.locals,O.escapedName,r)===O&&$t(h,e.Diagnostics.Initializer_of_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=Hr(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($t(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||Rb(n)||Qp(n))return!1;var a=e.getThisContainer(n,!1),i=a;for(;i;){if(e.isClassLike(i.parent)){var o=ua(i.parent);if(!o)break;if(Cs(Bi(o),t))return $t(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Er(r),Ba(o)),!0;if(i===a&&!e.hasModifier(i,32))if(Cs(lo(o).thisType,t))return $t(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Er(r)),!0}i=i.parent}return!1}(h,t,i)||Sr(h)||function(n,t,r){var a=1920|(e.isInJSFile(n)?111551:0);if(r===a){var i=Br(yr(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(Cs(lo(i),s))return $t(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 $t(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(Lr(t)&&263===n.parent.kind)return $t(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(Lr(t))return $t(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var a=Br(yr(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 $t(n,i,e.unescapeLeadingUnderscores(t)),!0}}return!1}(h,t,r)||function(n,t,r){if(111127&r){if(Br(yr(n,t,1024,void 0,void 0,!1)))return $t(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(788544&r){if(Br(yr(n,t,1536,void 0,void 0,!1)))return $t(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=Br(yr(n,t,111127,void 0,void 0,!1));if(a&&!(1920&a.flags))return $t(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here,e.unescapeLeadingUnderscores(t)),!0}return!1}(h,t,r)))){var P=void 0;if(l&&xt<10&&(P=K_(g,t,r))){var w=Ba(P),F=$t(h,l,Er(i),w);P.valueDeclaration&&e.addRelatedInfo(F,e.createDiagnosticForNode(P.valueDeclaration,e.Diagnostics._0_is_declared_here,w))}P||$t(h,a,Er(i)),xt++}}function vr(n,t){return 202!==n.kind&&201!==n.kind?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||159===n.kind&&!e.hasModifier(n,32))&&(!t||t!==n.name):(!t||t!==n.name)&&(!(!n.asteriskToken&&!e.hasModifier(n,256))||!e.getImmediatelyInvokedFunctionExpression(n))}function br(e){switch(e.kind){case 244:case 245:case 246:case 248:case 247:case 249:return!0;default:return!1}}function Er(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function Tr(n,t){for(var r=0,a=n.declarations;r=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=r.exports.get("export=").valueDeclaration,l=$t(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ba(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 r.exports&&r.exports.has(n.symbol.escapedName)?$t(n.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ba(r),Ba(n.symbol)):$t(n.name,e.Diagnostics.Module_0_has_no_default_export,Ba(r));return Vr(n,a,void 0,!1),a}}(n,t);case 256:return function(e,n){var t=e.parent.parent.moduleSpecifier,r=Yr(e,t),a=na(r,t,n,!1);return Vr(e,r,a,!1),a}(n,t);case 262:return function(e,n){var t=e.parent.moduleSpecifier,r=t&&Yr(e,t),a=t&&na(r,t,n,!1);return Vr(e,r,a,!1),a}(n,t);case 258:return function(e,n){var t=Mr(e.parent.parent.parent,e,n);return Vr(e,void 0,t,!1),t}(n,t);case 263:return Pr(n,901119,t);case 259:case 209:return function(n,t){var r=wr(e.isExportAssignment(n)?n.expression:n.right,t);return Vr(n,void 0,r,!1),r}(n,t);case 252:return function(e,n){var t=ea(e.parent.symbol,n);return Vr(e,void 0,t,!1),t}(n,t);case 282:return Jr(n.name,901119,!0,t);case 281:return function(e,n){return wr(e.initializer,n)}(n,t);case 194: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 Gr(e,n){return void 0===n&&(n=901119),!!e&&(2097152==(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function Br(e,n){return!n&&Gr(e)?Ur(e):e}function Ur(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=pr(n);if(t.target)t.target===ye&&(t.target=ge);else{t.target=ye;var r=Cr(n);if(!r)return e.Debug.fail();var a=Fr(r);t.target===ye?t.target=a||ge:$t(r,e.Diagnostics.Circular_definition_of_import_alias_0,Ba(n))}return t.target}function Vr(n,t,r,a){if(!n)return!1;var i=ua(n);if(e.isTypeOnlyImportOrExportDeclaration(n))return pr(i).typeOnlyDeclaration=n,!0;var o=pr(i);return jr(o,t,a)||jr(o,r,a)}function jr(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:pr(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!n.typeOnlyDeclaration}function Hr(e){if(2097152&e.flags)return pr(e).typeOnlyDeclaration||void 0}function Kr(e){var n=ua(e),t=Ur(n);t&&((t===ge||111551&t.flags&&!$b(t)&&!Hr(n))&&Wr(n))}function Wr(n){var t=pr(n);if(!t.referenced){t.referenced=!0;var r=Cr(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var a=Br(n);(a===ge||111551&a.flags)&&Hy(r.moduleReference)}}}function qr(n,t){return 75===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),75===n.kind||153===n.parent.kind?Jr(n,1920,!1,t):(e.Debug.assert(253===n.parent.kind),Jr(n,901119,!1,t))}function zr(e,n){return e.parent?zr(e.parent,n)+"."+Ba(e):Ba(e,n,void 0,20)}function Jr(n,t,r,a,i){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(75===n.kind){var c=t===s?e.Diagnostics.Cannot_find_namespace_0:Xp(e.getFirstIdentifier(n)),l=e.isInJSFile(n)?function(n,t){if(Rc(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=ua(t.expression.left))return Xr(a)}if((e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)){if(a=ua(t.parent.parent.left))return Xr(a)}var r=e.getHostSignatureFromJSDocHost(t);if(r){var a;return(a=ua(r))&&a.valueDeclaration}}(n.parent);if(r)return yr(r,n.escapedText,t,void 0,n,!0)}}(n,t):void 0;if(!(o=yr(i||n,n.escapedText,t,r||l?void 0:c,n,!0)))return l}else{if(153!==n.kind&&194!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var u=153===n.kind?n.left:n.expression,d=153===n.kind?n.right:n.name,p=Jr(u,s,r,!1,i);if(!p||e.nodeIsMissing(d))return;if(p===ge)return p;if(e.isInJSFile(n)&&p.valueDeclaration&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&qg(p.valueDeclaration.initializer)){var f=p.valueDeclaration.initializer.arguments[0],m=Yr(f,f);if(m){var _=ea(m);_&&(p=_)}}if(!(o=_r(ia(p),d.escapedText,t)))return void(r||$t(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,zr(p),e.declarationNameToString(d)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),e.isEntityName(n)&&(2097152&o.flags||259===n.parent.kind)&&Vr(e.getAliasDeclarationFromName(n),o,void 0,!0),o.flags&t||a?o:Ur(o)}}function Xr(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 Yr(n,t,r){return Qr(n,t,r?void 0:e.Diagnostics.Cannot_find_module_0)}function Qr(n,t,r,a){return void 0===a&&(a=!1),e.isStringLiteralLike(t)?Zr(n,t.text,r,t,a):void 0}function Zr(t,r,a,i,o){(void 0===o&&(o=!1),e.startsWith(r,"@types/"))&&$t(i,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=Gs(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),l=e.getResolvedModule(c,r),u=l&&e.getResolutionDiagnostic(U,l),d=l&&!u&&n.getSourceFile(l.resolvedFileName);if(d)return d.symbol?(l.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(l.extension)&&$r(!1,i,l,r),la(d.symbol)):void(a&&$t(i,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(cn){var p=e.findBestPatternMatch(cn,(function(e){return e.pattern}),r);if(p){var f=ln&&ln.get(r);return la(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?$t(i,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,l.resolvedFileName):$r(J&&!!a,i,l,r);else if(a){if(l){var m=n.getProjectReferenceRedirect(l.resolvedFileName);if(m)return void $t(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,m,l.resolvedFileName)}if(u)$t(i,u,r,l.resolvedFileName);else{var _=e.tryExtractTSExtension(r);if(_)$t(i,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,_,e.removeExtension(r,_));else!U.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(U)?$t(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):$t(i,a,r)}}}function $r(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;nr(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 ea(n,t){if(n){var r=function(n,t){if(!n||n===ge||n===t||1===t.exports.size||2097152&n.flags)return n;var r=pr(n);if(r.cjsExportMerged)return r.cjsExportMerged;var a=33554432&n.flags?n:or(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)?sr(a.exports.get(n),e):e)})),pr(a).cjsExportMerged=a,r.cjsExportMerged=a}(la(Br(n.exports.get("export="),t)),la(n));return la(r)||n}}function na(n,t,r,a){var i=ea(n,r);if(!r&&i){if(!(a||1539&i.flags||e.getDeclarationOfKind(i,290))){var o=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return $t(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(U.esModuleInterop){var s=t.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=Bi(i),l=Ds(c,0);if(l&&l.length||(l=Ds(c,1)),l&&l.length){var u=Wg(c,i,n),d=rr(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=e.cloneMap(i.members)),i.exports&&(d.exports=e.cloneMap(i.exports));var p=is(u);return d.type=xa(d,p.members,e.emptyArray,e.emptyArray,p.stringIndexInfo,p.numberIndexInfo),d}}}}return i}function ta(e){return void 0!==e.exports.get("export=")}function ra(e){return ws(oa(e))}function aa(e,n){var t=oa(n);if(t)return t.get(e)}function ia(e){return 6256&e.flags?Co(e,"resolvedExports"):1536&e.flags?oa(e):e.exports||x}function oa(e){var n=pr(e);return n.resolvedExports||(n.resolvedExports=ca(e))}function sa(n,t,r,a){t&&t.forEach((function(t,i){if("default"!==i){var o=n.get(i);if(o){if(r&&a&&o&&Br(o)!==Br(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 ca(n){var t=[];return function n(r){if(!(r&&r.exports&&e.pushIfUnique(t,r)))return;var a=e.cloneMap(r.exports),i=r.exports.get("__export");if(i){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,l=i.declarations;c=u?l.substr(0,u-"...".length)+"...":l}function ja(e,n){var t=Ha(e.symbol)?Va(e,e.symbol.valueDeclaration):Va(e),r=Ha(n.symbol)?Va(n,n.symbol.valueDeclaration):Va(n);return t===r&&(t=Va(e,void 0,64),r=Va(n,void 0,64)),[t,r]}function Ha(n){return n&&n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!ku(n.valueDeclaration)}function Ka(e){return void 0===e&&(e=0),277904747&e}function Wa(n,t,r,a){return void 0===r&&(r=16384),a?i(a).getText():e.usingSingleLineStringWriter(i);function i(a){var i=e.createTypePredicateNodeWithModifier(2===n.kind||3===n.kind?e.createToken(124):void 0,1===n.kind||3===n.kind?e.createIdentifier(n.parameterName):e.createThisTypeNode(),n.type&&$.typeToTypeNode(n.type,t,70222336|Ka(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,i,s,a),a}}function qa(e){return 8===e?"private":16===e?"protected":"public"}function za(n){return n&&n.parent&&250===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function Ja(n){return 290===n.kind||e.isAmbientModule(n)}function Xa(n,t){var r=pr(n).nameType;if(r){if(384&r.flags){var a=""+r.value;return e.isIdentifierText(a,U.target)||Ym(a)?Ym(a)&&e.startsWith(a,"-")?"["+a+"]":a:'"'+e.escapeString(a,34)+'"'}if(8192&r.flags)return"["+Ya(r.symbol,t)+"]"}}function Ya(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],Ja)!==e.findAncestor(t.enclosingDeclaration,Ja)))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=pr(n).nameType;if(i&&384&i.flags){var o=Xa(n,t);if(void 0!==o)return o}}return e.declarationNameToString(a)}if(r||(r=n.declarations[0]),r.parent&&242===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 214:case 201:case 202:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),214===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=Xa(n,t);return void 0!==s?s:e.symbolName(n)}function Qa(n){if(n){var t=fr(n);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(n.kind){case 314:case 321:case 315:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 191:return Qa(n.parent.parent);case 242:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 249:case 245:case 246:case 247:case 244:case 248:case 253:if(e.isExternalModuleAugmentation(n))return!0;var t=ri(n);return 1&e.getCombinedModifierFlags(n)||253!==n.kind&&290!==t.kind&&8388608&t.flags?Qa(t):mr(t);case 159:case 158:case 163:case 164:case 161:case 160:if(e.hasModifier(n,24))return!1;case 162:case 166:case 165:case 167:case 156:case 250:case 170:case 171:case 173:case 169:case 174:case 175:case 178:case 179:case 182:return Qa(n.parent);case 255:case 256:case 258:return!1;case 155:case 290:case 252:return!0;case 259:default:return!1}}()),t.isVisible}return!1}function Za(n,t){var r,a,i;return n.parent&&259===n.parent.kind?r=yr(n,n.escapedText,2998271,void 0,n,!1):263===n.parent.kind&&(r=Pr(n.parent,2998271)),r&&((i=e.createMap()).set(""+R(r),!0),function n(r){e.forEach(r,(function(r){var o=xr(r)||r;if(t?fr(r).isVisible=!0:(a=a||[],e.pushIfUnique(a,o)),e.isInternalModuleImportEqualsDeclaration(r)){var s=r.moduleReference,c=yr(r,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1),l=c&&""+R(c);c&&!i.has(l)&&(i.set(l,!0),n(c.declarations))}}))}(r.declarations)),a}function $a(e,n){var t=ei(e,n);if(t>=0){for(var r=St.length,a=t;a=0;t--){if(ni(St[t],At[t]))return-1;if(St[t]===e&&At[t]===n)return t}return-1}function ni(n,t){switch(t){case 0:return!!pr(n).type;case 5:return!!fr(n).resolvedEnumType;case 2:return!!pr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments}return e.Debug.assertNever(t)}function ti(){return St.pop(),At.pop(),Lt.pop()}function ri(n){return e.findAncestor(e.getRootDeclaration(n),(function(e){switch(e.kind){case 242:case 243:case 258:case 257:case 256:case 255:return!1;default:return!0}})).parent}function ai(e,n){var t=Cs(e,n);return t?Bi(t):void 0}function ii(e){return e&&0!=(1&e.flags)}function oi(e){var n=ua(e);return n&&pr(n).type||gi(e,!1)}function si(n){return 154===n.kind&&!e.isStringOrNumericLiteralLike(n.expression)}function ci(n,t,r){if(131072&(n=Cf(n,(function(e){return!(98304&e.flags)}))).flags)return Je;if(1048576&n.flags)return If(n,(function(e){return ci(e,t,r)}));var a=il(e.map(t,ml));if(Ll(n)||Al(a)){if(131072&a.flags)return n;var i=Wn||(Wn=Fc("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return i?Tc(i,[n,a]):Ee}for(var o=e.createSymbolTable(),s=0,c=ls(n);s=2?(a=he,Wc(Hc(!0),[a])):En;var c=Qc(e.map(i,(function(n){return e.isOmittedExpression(n)?he:Ti(n,t,r)})),e.findLastIndex(i,(function(n){return!e.isOmittedExpression(n)&&!Km(n)}),i.length-(s?2:1))+1,s);return t&&((c=yc(c)).pattern=n,c.objectFlags|=1048576),c}function Li(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),189===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=lc(he,!1);else{var s=ml(n);if(bo(s)){var c=Ao(s),l=rr(4|(e.initializer?16777216:0),c);l.type=Ti(e,t,r),l.bindingElement=e,i.set(l.escapedName,l)}else o|=512}}));var s=xa(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):Si(n,t,r)}function Ai(e,n){return xi(gi(e,!0),e,n)}function xi(n,t,r){return n?(r&&vp(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==ua(t)&&(n=Fe),gp(n)):(n=e.isParameter(t)&&t.dotDotDotToken?En:he,r&&(Ci(t)||hp(t,n)),n)}function Ci(n){var t=e.getRootDeclaration(n);return Lh(156===t.kind?t.parent:t)}function Di(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return ou(t)}function Ii(n){var t=pr(n);if(!t.type){var r=function(n){if(4194304&n.flags)return(t=lo(da(n))).typeParameters?gc(t,e.map(t.typeParameters,(function(e){return he}))):t;var t;if(n===ie)return he;if(134217728&n.flags){var r=ua(e.getSourceFileOfNode(n.valueDeclaration)),a=e.createSymbolTable();return a.set("exports",r),xa(n,a,e.emptyArray,e.emptyArray,void 0,void 0)}var i,o=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o))return he;if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?gp(Hd(sh(o.statements[0].expression))):Je;if(!$a(n,0))return 512&n.flags&&!(67108864&n.flags)?wi(n):Gi(n);if(259===o.kind)i=xi(Hy(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=yi(n);else if(e.isJSDocPropertyLikeTag(o)||e.isPropertyAccessExpression(o)||e.isElementAccessExpression(o)||e.isIdentifier(o)||e.isStringLiteralLike(o)||e.isNumericLiteral(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&n.flags)return wi(n);i=e.isBinaryExpression(o.parent)?yi(n):Di(o)||he}else if(e.isPropertyAssignment(o))i=Di(o)||Yy(o);else if(e.isJsxAttribute(o))i=Di(o)||a_(o);else if(e.isShorthandPropertyAssignment(o))i=Di(o)||Xy(o.name,0);else if(e.isObjectLiteralMethod(o))i=Di(o)||Qy(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o))i=Ai(o,!0);else if(e.isEnumDeclaration(o))i=wi(n);else if(e.isEnumMember(o))i=Fi(n);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(n));i=Mi(n)}if(!ti())return 512&n.flags&&!(67108864&n.flags)?wi(n):Gi(n);return i}(n);t.type||(t.type=r)}return t.type}function Ri(n){if(n)return 163===n.kind?e.getEffectiveReturnTypeNode(n):e.getEffectiveSetAccessorTypeAnnotationNode(n)}function ki(e){var n=Ri(e);return n&&ou(n)}function Ni(e){return Js(Ks(e))}function Oi(n){var t=pr(n);return t.type||(t.type=function(n){if(!$a(n,0))return Ee;var t=Mi(n);if(!ti()){if(t=he,J)$t(e.getDeclarationOfKind(n,163),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ba(n))}return t}(n))}function Mi(n){var t=e.getDeclarationOfKind(n,163),r=e.getDeclarationOfKind(n,164);if(t&&e.isInJSFile(t)){var a=fi(t);if(a)return a}var i=ki(t);if(i)return i;var o=ki(r);return o||(t&&t.body?fy(t):(r?Lh(r)||nr(J,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ba(n)):(e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),Lh(t)||nr(J,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ba(n))),he))}function Pi(n){var t=Zi(no(n));return 8650752&t.flags?t:2097152&t.flags?e.find(t.types,(function(e){return!!(8650752&e.flags)})):void 0}function wi(n){var t=pr(n),r=t;if(!t.type){var a=e.getDeclarationOfExpando(n.valueDeclaration);if(a){var i=Vg(n,ua(a));i&&(n=t=i)}r.type=t.type=function(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return he;if(209===t.kind||e.isAccessExpression(t)&&209===t.parent.kind)return yi(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=ea(n);if(r!==n){if(!$a(n,0))return Ee;var a=la(n.exports.get("export=")),i=yi(a,a===r?void 0:r);return ti()?i:Gi(n)}}var o=Ea(16,n);if(32&n.flags){var s=Pi(n);return s?pl([o,s]):o}return K&&16777216&n.flags?tp(o):o}(n)}return t.type}function Fi(e){var n=pr(e);return n.type||(n.type=so(e))}function Gi(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?($t(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ba(n)),Ee):(J&&(156!==t.kind||t.initializer)&&$t(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,Ba(n)),he)}function Bi(n){return 65536&e.getCheckFlags(n)?function(n){var t=pr(n);return t.type||(e.Debug.assertDefined(t.deferralParent),e.Debug.assertDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?il(t.deferralConstituents):pl(t.deferralConstituents)),t.type}(n):1&e.getCheckFlags(n)?function(e){var n=pr(e);if(!n.type){if(!$a(e,0))return n.type=Ee;var t=Cu(Bi(n.target),n.mapper);ti()||(t=Gi(e)),n.type=t}return n.type}(n):8192&e.getCheckFlags(n)?function(e){return Np(e.propertyType,e.mappedType,e.constraintType)}(n):7&n.flags?Ii(n):9136&n.flags?wi(n):8&n.flags?Fi(n):98304&n.flags?Oi(n):2097152&n.flags?function(e){var n=pr(e);if(!n.type){var t=Ur(e);n.type=111551&t.flags?Bi(t):Ee}return n.type}(n):Ee}function Ui(n,t){return void 0!==n&&void 0!==t&&0!=(4&e.getObjectFlags(n))&&n.target===t}function Vi(n){return 4&e.getObjectFlags(n)?n.target:n}function ji(n,t){return function n(r){if(7&e.getObjectFlags(r)){var a=Vi(r);return a===t||e.some($i(a),n)}if(2097152&r.flags)return e.some(r.types,n);return!1}(n)}function Hi(n,t){for(var r=0,a=t;r0)return!0;if(8650752&e.flags){var n=gs(e);return!!n&&zi(n)}return!1}function Xi(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function Yi(n,t,r){var a=e.length(t),i=e.isInJSFile(r);return e.filter(Is(n,1),(function(n){return(i||a>=js(n.typeParameters))&&a<=e.length(n.typeParameters)}))}function Qi(n,t,r){var a=Yi(n,t,r),i=e.map(t,ou);return e.sameMap(a,(function(n){return e.some(n.typeParameters)?ec(n,i,e.isInJSFile(r)):n}))}function Zi(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),a=Xi(n);if(!a)return n.resolvedBaseConstructorType=Le;if(!$a(n,1))return Ee;var i=sh(a.expression);if(r&&a!==r&&(e.Debug.assert(!r.typeArguments),sh(r.expression)),2621440&i.flags&&is(i),!ti())return $t(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ba(n.symbol)),n.resolvedBaseConstructorType=Ee;if(!(1&i.flags||i===De||Ji(i))){var o=$t(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Va(i));if(262144&i.flags){var s=pc(i),c=Se;if(s){var l=Is(s,1);l[0]&&(c=Ys(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,Ba(i.symbol),Va(c)))}return n.resolvedBaseConstructorType=Ee}n.resolvedBaseConstructorType=i}return n.resolvedBaseConstructorType}function $i(n){return n.resolvedBaseTypes||(8&n.objectFlags?n.resolvedBaseTypes=[zc(il(n.typeParameters||e.emptyArray),n.readonly)]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=Ss(Zi(n));if(!(2621441&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,a=Xi(n),i=t.symbol?lo(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=vc(e);return n[t].symbol!==r[t].symbol}return!0}(i))r=Ec(a,t.symbol);else if(1&t.flags)r=t;else{var o=Qi(t,a.typeArguments,a);if(!o.length)return $t(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=Ys(o[0])}if(r===Ee)return n.resolvedBaseTypes=e.emptyArray;if(!eo(r))return $t(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Va(r)),n.resolvedBaseTypes=e.emptyArray;if(n===r||ji(r,n))return $t(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Va(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray;n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0);n.resolvedBaseTypes=[r]}(n),64&n.symbol.flags&&function(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t=i?16384:0);return a.type=r===o?zc(e):e,a}));return e.concatenate(n.parameters.slice(0,t),s)}}return n.parameters}function Fo(e,n,t,r,a){for(var i=0,o=e;i0)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=up(d,pl(e.mapDefined(c,(function(e){return e.thisParameter&&Bi(e.thisParameter)}))));(l=Mo(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=ny(e),r=ny(n),a=t>=r?e:n,i=a===e?n:e,o=a===e?t:r,s=ry(e)||ry(n),c=s&&!ry(a),l=new Array(o+(c?1:0)),u=0;u=ty(a)&&u>=ty(i),g=u>=t?void 0:Qg(e,u),y=u>=r?void 0:Qg(n,u),h=rr(1|(_&&!m?16777216:0),(g===y?g:g?y?void 0:g:y)||"arg"+u);h.type=m?zc(f):f,l[u]=h}if(c){var v=rr(1,"args");v.type=zc(Zg(i,o)),l[o]=v}return l}(n,t),i=function(e,n){if(!e||!n)return e||n;var t=pl([Bi(e),Bi(n)]);return up(e,t)}(n.thisParameter,t.thisParameter),o=Math.max(n.minArgumentCount,t.minArgumentCount),s=No(r,n.typeParameters||t.typeParameters,i,a,void 0,void 0,o,3&(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,zi);if(t>0&&t===e.countWhere(r,(function(e){return e}))){var a=r.indexOf(!0);r[a]=!1}return r}function Wo(n){for(var t,r,a,i,o=n.types,s=Ko(o),c=e.countWhere(s,(function(e){return e})),l=function(l){var u=n.types[l];if(!s[l]){var d=Is(u,1);d.length&&c>0&&(d=e.map(d,(function(e){var n=Oo(e);return n.resolvedReturnType=function(e,n,t,r){for(var a=[],i=0;i=d&&o<=p){var f=p?tc(u,Hs(i,u.typeParameters,d,a)):Oo(u);f.typeParameters=n.localTypeParameters,f.resolvedReturnType=n,s.push(f)}}return s}(u)),n.constructSignatures=a}}}function Jo(n){if(131069&n.flags)return n;if(4194304&n.flags)return hl(Ss(n.type));if(16777216&n.flags){if(n.root.isDistributive){var t=n.checkType,r=Jo(t);if(r!==t)return xu(n,fu(uu(n.root.checkType,r),n.mapper))}return n}return 1048576&n.flags?il(e.sameMap(n.types,Jo)):2097152&n.flags?pl(e.sameMap(n.types,Jo)):Be}function Xo(e){return e.typeParameter||(e.typeParameter=co(ua(e.declaration.typeParameter)))}function Yo(e){return e.constraintType||(e.constraintType=ds(Xo(e))||Ee)}function Qo(e){return e.templateType||(e.templateType=e.declaration.type?Cu(_i(ou(e.declaration.type),!!(4&ns(e))),e.mapper||G):Ee)}function Zo(n){return e.getEffectiveConstraintOfTypeParameter(n.declaration.typeParameter)}function $o(e){var n=Zo(e);return 184===n.kind&&134===n.operator}function es(e){if(!e.modifiersType)if($o(e))e.modifiersType=Cu(ou(Zo(e).type),e.mapper||G);else{var n=Yo(Ml(e.declaration)),t=n&&262144&n.flags?ds(n):n;e.modifiersType=t&&4194304&t.flags?Cu(t.type,e.mapper||G):Se}return e.modifiersType}function ns(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 ts(e){var n=ns(e);return 8&n?-1:4&n?1:0}function rs(e){var n=ts(e),t=es(e);return n||(as(t)?ts(t):0)}function as(n){return!!(32&e.getObjectFlags(n))&&Al(Yo(n))}function is(n){return n.members||(524288&n.flags?4&n.objectFlags?function(n){var t=vo(n.target),r=e.concatenate(t.typeParameters,[t.thisType]),a=vc(n);ko(n,t,r,a.length===r.length?a:e.concatenate(a,[n]))}(n):3&n.objectFlags?function(n){ko(n,vo(n),e.emptyArray,e.emptyArray)}(n):2048&n.objectFlags?function(n){for(var t=Ns(n.source,0),r=ns(n.mappedType),a=!(1&r),i=4&r?0:16777216,o=t&&lc(Np(t.type,n.mappedType,n.constraintType),a&&t.isReadonly),s=e.createSymbolTable(),c=0,l=ls(n.source);c=50)return $t(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),t=!0,n.immediateBaseConstraint=en;A++;var r=function(e){if(262144&e.flags){var n=pc(e);return e.isThisType||!n?n:a(n)}if(3145728&e.flags){for(var t=e.types,r=[],i=0,o=t;i=99,qn||(qn=Gc("BigInt",0,t))||Je):528&r.flags?hn:12288&r.flags?Uc(V>=2):67108864&r.flags?Je:4194304&r.flags?qe:2&r.flags&&!K?Je:r}function Ls(n,t){for(var r,a=e.createMap(),i=1048576&n.flags,o=i?24:0,s=i?0:16777216,c=4,l=0,u=0,d=n.types;u2?(x.checkFlags|=65536,x.deferralParent=n,x.deferralConstituents=b):x.type=i?il(b):pl(b),x}}function As(n,t){var r=n.propertyCache||(n.propertyCache=e.createSymbolTable()),a=r.get(t);return a||(a=Ls(n,t))&&r.set(t,a),a}function xs(n,t){var r=As(n,t);return!r||16&e.getCheckFlags(r)?void 0:r}function Cs(e,n){if(524288&(e=Ss(e)).flags){var t=is(e),r=t.members.get(n);if(r&&ga(r))return r;var a=t===$e?dn:t.callSignatures.length?pn:t.constructSignatures.length?fn:void 0;if(a){var i=ss(a,n);if(i)return i}return ss(un,n)}if(3145728&e.flags)return xs(e,n)}function Ds(n,t){if(3670016&n.flags){var r=is(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function Is(e,n){return Ds(Ss(e),n)}function Rs(e,n){if(3670016&e.flags){var t=is(e);return 0===n?t.stringIndexInfo:t.numberIndexInfo}}function ks(e,n){var t=Rs(e,n);return t&&t.type}function Ns(e,n){return Rs(Ss(e),n)}function Os(e,n){return ks(Ss(e),n)}function Ms(n,t){if(lp(n)){for(var r=[],a=0,i=ls(n);a=0),r>=ty(t)}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!a&&(!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length)}function Us(n){if(!e.isJSDocParameterTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&299===r.type.kind}function Vs(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function js(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&&!_||d||Fs(f)||(o=a.length)}if(!(163!==n.kind&&164!==n.kind||Lo(n)||c&&s)){var g=163===n.kind?164:163,y=e.getDeclarationOfKind(ua(n),g);y&&(s=(t=GE(y))&&t.symbol)}var h=162===n.kind?no(la(n.parent.symbol)):void 0,v=h?h.localTypeParameters:Ps(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&function(n,t){if(e.isJSDocSignature(n)||!qs(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=rr(3,"args",32768);o.type=i?zc(ou(i.type)):En,i&&t.pop();return t.push(o),!0}(n,a))&&(i|=1),r.resolvedSignature=No(n,v,s,a,void 0,void 0,o,i)}return r.resolvedSignature}function Ws(n){var t=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0,r=t&&t.typeExpression&&sg(ou(t.typeExpression));return r&&rc(r)}function qs(n){var t=fr(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 75:return"arguments"===t.escapedText&&e.isExpressionNode(t);case 159:case 161:case 163:case 164:return 154===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function zs(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(Ks(a))}}return t}function Js(e){if(e.thisParameter)return Bi(e.thisParameter)}function Xs(n){if(!n.resolvedTypePredicate){if(n.target){var t=Xs(n.target);n.resolvedTypePredicate=t?(o=t,s=n.mapper,Vs(o.kind,o.parameterName,o.parameterIndex,Cu(o.type,s))):et}else if(n.unionSignatures)n.resolvedTypePredicate=function(e){for(var n,t=[],r=0,a=e;r=0}function $s(e){if(w(e)){var n=Bi(e.parameters[e.parameters.length-1]),t=zd(n)?Jd(n):n;return t&&Os(t,1)}}function ec(e,n,t,r){var a=nc(e,Hs(n,e.typeParameters,js(e.typeParameters),t));if(r){var i=cg(Ys(a));if(i){var o=Oo(i);o.typeParameters=r;var s=Oo(a);return s.resolvedReturnType=oc(o),s}}return a}function nc(n,t){var r=n.instantiations||(n.instantiations=e.createMap()),a=mc(t),i=r.get(a);return i||r.set(a,i=tc(n,t)),i}function tc(e,n){return hu(e,function(e,n){return du(e.typeParameters,n)}(e,n),!0)}function rc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return hu(e,pu(e.typeParameters),!0)}(e)):e}function ac(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=function(n){return ec(n,e.map(n.typeParameters,(function(e){return e.target&&!ds(e.target)?e.target:e})),e.isInJSFile(n.declaration))}(n)):n}function ic(n){var t=n.typeParameters;if(t){var r=pu(t);return hu(n,du(t,e.map(t,(function(e){return Cu(gs(e),r)||Se}))),!0)}return n}function oc(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=162===t||166===t||171===t,a=Ea(16);a.members=x,a.properties=e.emptyArray,a.callSignatures=r?e.emptyArray:[n],a.constructSignatures=r?[n]:e.emptyArray,n.isolatedSignatureType=a}return n.isolatedSignatureType}function sc(e){return e.members.get("__index")}function cc(n,t){var r=1===t?140:143,a=sc(n);if(a)for(var i=0,o=a.declarations;i1&&(n+=":"+i),r+=i}return n}function _c(n,t){for(var r=0,a=0,i=n;aa.length)){var c=s&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent);if($t(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,Va(r,void 0,2),o,a.length),!s)return Ee}return 169===n.kind&&Xc(n)?hc(r,n,void 0):gc(r,e.concatenate(r.outerTypeParameters,Hs(Oc(n),a,o,s)))}return kc(n,t)?r:Ee}function Tc(n,t){var r=lo(n),a=pr(n),i=a.typeParameters,o=mc(t),s=a.instantiations.get(o);return s||a.instantiations.set(o,s=Cu(r,du(i,Hs(t,i,js(i),e.isInJSFile(n.valueDeclaration))))),s}function Sc(n){switch(n.kind){case 169:return n.typeName;case 216:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function Lc(e,n,t){return e&&Jr(e,n,t)||ge}function Ac(n,t){if(t===ge)return Ee;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=ua(r);if(a)return Vg(a,n)}}}(t)||t).flags)return Ec(n,t);if(524288&t.flags)return function(n,t){var r=lo(t),a=pr(t).typeParameters;if(a){var i=e.length(n.typeArguments),o=js(a);return ia.length?($t(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,Ba(t),o,a.length),Ee):Tc(t,Oc(n))}return kc(n,t)?r:Ee}(n,t);var r=uo(t);if(r)return kc(n,t)?262144&r.flags?Ic(r,n):nu(r):Ee;if(111551&t.flags&&Rc(n)){var a=function(n,t){var r=fr(n);if(!r.resolvedJSDocType){var a=Bi(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=188===n.kind&&n.qualifier;a.symbol&&(s||l)&&(i=Ac(n,a.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(n,t);return a||(Lc(Sc(n),788968),Bi(t))}return Ee}function xc(e,n){if(3&n.flags||n===e)return e;var t=$c(e)+">"+$c(n),r=fe.get(t);if(r)return r;var a=ha(33554432);return a.typeVariable=e,a.substitute=n,fe.set(t,a),a}function Cc(e){return 175===e.kind&&1===e.elementTypes.length}function Dc(e,n,t){return Cc(n)&&Cc(t)?Dc(e,n.elementTypes[0],t.elementTypes[0]):Pl(ou(n))===e?ou(t):void 0}function Ic(n,t){for(var r;t&&!e.isStatement(t)&&303!==t.kind;){var a=t.parent;if(180===a.kind&&t===a.trueType){var i=Dc(n,a.checkType,a.extendsType);i&&(r=e.append(r,i))}t=a}return r?xc(n,pl(e.append(r,n))):n}function Rc(e){return!!(4194304&e.flags)&&(169===e.kind||188===e.kind)}function kc(n,t){return!n.typeArguments||($t(n,e.Diagnostics.Type_0_is_not_generic,t?Ba(t):n.typeName?e.declarationNameToString(n.typeName):l),!1)}function Nc(n){var t=fr(n);if(!t.resolvedType){var r=void 0,a=void 0;Rc(n)&&((a=function(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return kc(n),Ie;case"Number":return kc(n),Re;case"Boolean":return kc(n),we;case"Void":return kc(n),Ge;case"Undefined":return kc(n),Le;case"Null":return kc(n),Ce;case"Function":case"function":return kc(n),dn;case"array":return t&&t.length||J?void 0:En;case"promise":return t&&t.length||J?void 0:uy(he);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=ou(t[0]),a=lc(ou(t[1]),!1);return xa(void 0,x,e.emptyArray,e.emptyArray,r===Ie?a:void 0,r===Re?a:void 0)}return he}return kc(n),J?void 0:he}}}(n))||((r=Lc(Sc(n),788968,!0))===ge?r=Lc(Sc(n),900095):Lc(Sc(n),788968),a=Ac(n,r))),a||(a=Ac(n,r=Lc(Sc(n),788968))),t.resolvedSymbol=r,t.resolvedType=a}return t.resolvedType}function Oc(n){return e.map(n.typeArguments,ou)}function Mc(e){var n=fr(e);return n.resolvedType||(n.resolvedType=nu(gp(sh(e.exprName)))),n.resolvedType}function Pc(n,t){function r(e){for(var n=0,t=e.declarations;n=t?16777216:0),""+l,a?8:0);d.type=u,s.push(d)}}}var p=[];for(l=t;l<=c;l++)p.push(ru(l));var f=rr(4,"length");f.type=r?Re:il(p),s.push(f);var m=Ea(12);return m.typeParameters=o,m.outerTypeParameters=void 0,m.localTypeParameters=o,m.instantiations=e.createMap(),m.instantiations.set(mc(m.typeParameters),m),m.target=m,m.resolvedTypeArguments=m.typeParameters,m.thisType=Ta(),m.thisType.isThisType=!0,m.thisType.constraint=m,m.declaredProperties=s,m.declaredCallSignatures=e.emptyArray,m.declaredConstructSignatures=e.emptyArray,m.declaredStringIndexInfo=void 0,m.declaredNumberIndexInfo=void 0,m.minLength=t,m.hasRestElement=r,m.readonly=a,m.associatedNames=i,m}(n,t,r,a,i)),s}function Qc(e,n,t,r,a){void 0===n&&(n=e.length),void 0===t&&(t=!1),void 0===r&&(r=!1);var i=e.length;if(1===i&&t)return zc(e[0],r);var o=Yc(i,n,i>0&&t,r,a);return e.length?gc(o,e):o}function Zc(e,n){var t=e.target;return t.hasRestElement&&(n=Math.min(n,bc(e)-1)),Qc(vc(e).slice(n),Math.max(0,t.minLength-n),t.hasRestElement,t.readonly,t.associatedNames&&t.associatedNames.slice(n))}function $c(e){return e.id}function el(n,t){return e.binarySearch(n,t,$c,e.compareValues)>=0}function nl(n,t){var r=e.binarySearch(n,t,$c,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function tl(n,t,r){var a=r.flags;if(1048576&a)return rl(n,t,r.types);if(!(131072&a))if(t|=68943871&a,66846720&a&&(t|=262144),r===be&&(t|=4194304),!K&&98304&a)524288&e.getObjectFlags(r)||(t|=2097152);else{var i=n.length,o=i&&r.id>n[i-1].id?~i:e.binarySearch(n,r,$c,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function rl(e,n,t){for(var r=0,a=t;r0;)for(var o=n[--a],s=0,c=n;s(t?25e6:1e6))return $t(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(i++,ld(o,l,qt)&&(!(1&e.getObjectFlags(Vi(o)))||!(1&e.getObjectFlags(Vi(l)))||ju(o,l))){e.orderedRemoveItemAt(n,a);break}}}return!0}function il(n,t,r,a){if(void 0===t&&(t=1),0===n.length)return Be;if(1===n.length)return n[0];var i=[],o=rl(i,0,n);if(0!==t){if(3&o)return 1&o?4194304&o?be:he:Se;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||tu(a)&&el(n,a.regularType))&&e.orderedRemoveItemAt(n,r)}}(i,o);break;case 2:if(!al(i,!(262144&o)))return Ee}if(0===i.length)return 65536&o?2097152&o?Ce:De:32768&o?2097152&o?Le:Ae:Be}return sl(i,66994211&o?0:262144,r,a)}function ol(e,n){return e.kind===n.kind&&e.parameterIndex===n.parameterIndex}function sl(e,n,t,r){if(0===e.length)return Be;if(1===e.length)return e[0];var a=mc(e),i=le.get(a);return i||(i=ha(1048576),le.set(a,i),i.objectFlags=n|_c(e,98304),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=r),i}function cl(e,n,t){var r=t.flags;return 2097152&r?ll(e,n,t.types):(id(t)?8388608&n||(n|=8388608,e.set(t.id.toString(),t)):(3&r?t===be&&(n|=4194304):!K&&98304&r||e.has(t.id.toString())||(109440&t.flags&&109440&n&&(n|=67108864),e.set(t.id.toString(),t)),n|=68943871&r),n)}function ll(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),8388608&i&&524288&i&&e.orderedRemoveItemAt(o,e.findIndex(o,id)),0===o.length)return Se;if(1===o.length)return o[0];var s=mc(o),c=ue.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 $t(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),Ee;var l=e.findIndex(o,(function(e){return 0!=(1048576&e.flags)})),u=o[l];c=il(e.map(u.types,(function(n){return pl(e.replaceElement(o,l,n))})),1,t,r)}else c=function(e,n,t){var r=ha(2097152);return r.objectFlags=_c(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,t,r);ue.set(s,c)}return c}function fl(e,n){var t=ha(4194304);return t.type=e,t.stringsOnly=n,t}function ml(n){return e.isPrivateIdentifier(n)?Be:e.isIdentifier(n)?ru(e.unescapeLeadingUnderscores(n.escapedText)):nu(e.isComputedPropertyName(n)?Qm(n):sh(n))}function _l(n,t){if(!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var r=pr(Io(n)).nameType;if(!r&&!e.isKnownSymbol(n))if("default"===n.escapedName)r=ru("default");else{var a=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);r=a&&ml(a)||ru(e.symbolName(n))}if(r&&r.flags&t)return r}return Be}function gl(n,t){return il(e.map(ls(n),(function(e){return _l(e,t)})))}function yl(e){var n=Ns(e,1);return n!==it?n:void 0}function hl(n,t,r){return void 0===t&&(t=Y),1048576&n.flags?pl(e.map(n.types,(function(e){return hl(e,t,r)}))):2097152&n.flags?il(e.map(n.types,(function(e){return hl(e,t,r)}))):Ry(n,58982400)?function(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=fl(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=fl(e,!1))}(n,t):32&e.getObjectFlags(n)?Cf(Yo(n),(function(e){return!(r&&5&e.flags)})):n===be?be:2&n.flags?Be:131073&n.flags?qe:t?!r&&Ns(n,0)?Ie:gl(n,128):!r&&Ns(n,0)?il([Ie,Re,gl(n,8192)]):yl(n)?il([Re,gl(n,8320)]):gl(n,8576)}function vl(n){if(Y)return n;var t=Kn||(Kn=Fc("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return t?Tc(t,[n,Ie]):Ie}function bl(n){return!J&&(!!(16384&e.getObjectFlags(n))||(1048576&n.flags?e.every(n.types,bl):2097152&n.flags?e.some(n.types,bl):!!(63176704&n.flags)&&bl(vs(n))))}function El(n,t){var r=t&&195===t.kind?t:void 0;return bo(n)?Ao(n):r&&Z_(r.argumentExpression,n,!1)?e.getPropertyNameForKnownSymbolName(e.idText(r.argumentExpression.name)):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function Tl(n,t,r,a,i,o,s){var c=o&&195===o.kind?o:void 0,l=o&&e.isPrivateIdentifier(o)?void 0:El(r,o);if(void 0!==l){var u=Cs(t,l);if(u){if(c){if(z_(u,c,104===c.expression.kind),xy(c,u,e.getAssignmentTargetKind(c)))return void $t(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ba(u));4&s&&(fr(o).resolvedSymbol=u)}var d=Bi(u);return c&&1!==e.getAssignmentTargetKind(c)?Yf(c,d):d}if(xf(t,zd)&&Ym(l)&&+l>=0){if(o&&xf(t,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var p=Sl(o);zd(t)?$t(p,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Va(t),bc(t),e.unescapeLeadingUnderscores(l)):$t(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Va(t))}return v(Ns(t,1)),If(t,(function(e){return Jd(e)||Le}))}}if(!(98304&r.flags)&&ky(r,12716)){if(131073&t.flags)return t;var f=Ns(t,0),m=ky(r,296)&&Ns(t,1)||f;if(m)return 1&s&&m===f?void(c&&$t(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Va(r),Va(n))):o&&!ky(r,12)?($t(p=Sl(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Va(r)),m.type):(v(m),m.type);if(131072&r.flags)return Be;if(bl(t))return he;if(c&&!Oy(t)){if(t.symbol===te&&void 0!==l&&te.exports.has(l)&&418&te.exports.get(l).flags)$t(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Va(t));else if(J&&!U.suppressImplicitAnyIndexErrors&&!i)if(void 0!==l&&V_(l,t))$t(c,e.Diagnostics.Property_0_is_a_static_member_of_type_1,l,Va(t));else if(Os(t,1))$t(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var _=void 0;if(void 0!==l&&(_=H_(l,t)))void 0!==_&&$t(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,Va(t),_);else{var g=function(n,t,r){var a=e.isAssignmentTarget(t)?"set":"get";if(!function(e){var t=ss(n,e);if(t){var a=sg(Bi(t));return!!a&&ty(a)>=1&&Vu(r,Zg(a,0))}return!1}(a))return;var i=e.tryGetPropertyAccessOrIdentifierToString(t.expression);void 0===i?i=a:i+="."+a;return i}(t,c,r);if(void 0!==g)$t(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Va(t),g);else{var y=void 0;if(1024&r.flags)y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Va(r)+"]",Va(t));else if(8192&r.flags){var h=zr(r.symbol,c);y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+h+"]",Va(t))}else 128&r.flags||256&r.flags?y=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,Va(t)):12&r.flags&&(y=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Va(r),Va(t)));y=e.chainDiagnosticMessages(y,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Va(a),Va(t)),Vt.add(e.createDiagnosticForNodeFromMessageChain(c,y))}}}return}}if(bl(t))return he;if(o){p=Sl(o);384&r.flags?$t(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,Va(t)):12&r.flags?$t(p,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Va(t),Va(r)):$t(p,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Va(r))}return ii(r)?r:void 0;function v(n){n&&n.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&$t(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Va(t))}}function Sl(e){return 195===e.kind?e.argumentExpression:185===e.kind?e.indexType:154===e.kind?e.expression:e}function Ll(e){return Ry(e,59113472)}function Al(e){return Ry(e,63176704)}function xl(e){return!!(262144&e.flags&&e.isThisType)}function Cl(n,t){return 8388608&n.flags?function(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===nn?n:n[r];n[r]=nn;var a=function(e){if(33554432&e.flags)return e.substitute;return e}(Cl(n.objectType,t)),i=Cl(n.indexType,t),o=function(n,t,r){if(1048576&t.flags){var a=e.map(t.types,(function(e){return Cl(kl(n,e),r)}));return r?pl(a):il(a)}}(a,i,t);if(o)return n[r]=o;if(!(63176704&i.flags)){var s=Dl(a,i,t);if(s)return n[r]=s}if(as(a))return n[r]=If(Rl(a,n.indexType),(function(e){return Cl(e,t)}));return n[r]=n}(n,t):16777216&n.flags?function(e,n){var t=e.checkType,r=e.extendsType,a=Fl(e),i=Gl(e);if(131072&i.flags&&Pl(a)===Pl(t)){if(1&t.flags||Vu(Iu(t),Iu(r)))return Cl(a,n);if(Il(t,r))return Be}else if(131072&a.flags&&Pl(i)===Pl(t)){if(!(1&t.flags)&&Vu(Iu(t),Iu(r)))return Be;if(1&t.flags||Il(t,r))return Cl(i,n)}return e}(n,t):n}function Dl(n,t,r){if(3145728&n.flags){var a=e.map(n.types,(function(e){return Cl(kl(e,t),r)}));return 2097152&n.flags||r?pl(a):il(a)}}function Il(e,n){return!!(131072&il([Vo(e,n),Be]).flags)}function Rl(e,n){var t=du([Xo(e)],[n]),r=fu(e.mapper,t);return Cu(Qo(e),r)}function kl(e,n,t){return Nl(e,n,t,0)||(t?Ee:Se)}function Nl(e,n,t,r){if(void 0===r&&(r=0),e===be||n===be)return be;if(!od(e)||98304&n.flags||!ky(n,12)||(n=Ie),Al(n)||(!t||185===t.kind)&&Ll(e)){if(3&e.flags)return e;var a=e.id+","+n.id,i=pe.get(a);return i||pe.set(a,i=function(e,n){var t=ha(8388608);return t.objectType=e,t.indexType=n,t}(e,n)),i}var o=Ss(e);if(1048576&n.flags&&!(16&n.flags)){for(var s=[],c=!1,l=0,u=n.types;l=a,r)})),o=ns(t),s=4&o?0:8&o?bc(n)-(n.target.hasRestElement?1:0):a,c=Su(n.target.readonly,o);return e.contains(i,Ee)?Ee:Qc(i,s,n.target.hasRestElement,c,n.target.associatedNames)}(a,n,i):Au(n,i)}return a}))}return Au(n,t)}(r,_):Au(r,_),i.instantiations.set(f,m)}return m}return n}function Eu(n,t){if(n.symbol&&n.symbol.declarations&&1===n.symbol.declarations.length){for(var r=n.symbol.declarations[0].parent,a=t;a!==r;a=a.parent)if(!a||223===a.kind||180===a.kind&&e.forEachChild(a.extendsType,i))return!0;return!!e.forEachChild(t,i)}return!0;function i(t){switch(t.kind){case 183:return!!n.isThisType;case 75:return!n.isThisType&&e.isPartOfTypeNode(t)&&function(e){return!(153===e.kind||169===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||188===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&ou(t)===n;case 172:return!0}return!!e.forEachChild(t,i)}}function Tu(e){var n=Yo(e);if(4194304&n.flags){var t=Pl(n.type);if(262144&t.flags)return t}}function Su(e,n){return!!(1&n)||!(2&n)&&e}function Lu(e,n,t,r){var a=fu(r,du([Xo(e)],[n])),i=Cu(Qo(e.target||e),a),o=ns(e);return K&&4&o&&!Vu(Le,i)?tp(i):K&&8&o&&t?uf(i,524288):i}function Au(e,n){var t=Ea(64|e.objectFlags,e.symbol);if(32&e.objectFlags){t.declaration=e.declaration;var r=Xo(e),a=yu(r);t.typeParameter=a,n=fu(uu(r,a),n),a.mapper=n}return t.target=e,t.mapper=n,t.aliasSymbol=e.aliasSymbol,t.aliasTypeArguments=cu(e.aliasTypeArguments,n),t}function xu(n,t){var r=n.root;if(r.outerTypeParameters){var a=e.map(r.outerTypeParameters,t),i=mc(a),o=r.instantiations.get(i);if(!o)o=function(e,n){if(e.isDistributive){var t=e.checkType,r=n(t);if(t!==r&&1179648&r.flags)return If(r,(function(r){return wl(e,mu(t,r,n))}))}return wl(e,n)}(r,du(r.outerTypeParameters,a)),r.instantiations.set(i,o);return o}return n}function Cu(n,t){if(!n||!t||t===G)return n;if(50===T||E>=5e6)return $t(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ee;E++,T++;var r=function(e,n){var t=e.flags;if(262144&t)return n(e);if(524288&t){var r=e.objectFlags;if(16&r)return Ip(e)?bu(e,n):e;if(32&r)return bu(e,n);if(4&r){if(e.node)return bu(e,n);var a=e.resolvedTypeArguments,i=cu(a,n);return i!==a?gc(e.target,i):e}return e}if(1048576&t&&!(131068&t)){var o=e.types;return(s=cu(o,n))!==o?il(s,1,e.aliasSymbol,cu(e.aliasTypeArguments,n)):e}if(2097152&t){var s;o=e.types;return(s=cu(o,n))!==o?pl(s,e.aliasSymbol,cu(e.aliasTypeArguments,n)):e}if(4194304&t)return hl(Cu(e.type,n));if(8388608&t)return kl(Cu(e.objectType,n),Cu(e.indexType,n));if(16777216&t)return xu(e,fu(e.mapper,n));if(33554432&t){var c=Cu(e.typeVariable,n);if(8650752&c.flags)return xc(c,Cu(e.substitute,n));var l=Cu(e.substitute,n);return 3&l.flags||Vu(Iu(c),Iu(l))?c:l}return e}(n,t);return T--,r}function Du(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Cu(e,_u))}function Iu(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Cu(e,gu),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Ru(e,n){return e&&lc(Cu(e.type,n),e.isReadonly,e.declaration)}function ku(n){switch(e.Debug.assert(161!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 201:case 202:case 161:case 244:return Nu(n);case 193:return e.some(n.properties,ku);case 192:return e.some(n.elements,ku);case 210:return ku(n.whenTrue)||ku(n.whenFalse);case 209:return(56===n.operatorToken.kind||60===n.operatorToken.kind)&&(ku(n.left)||ku(n.right));case 281:return ku(n.initializer);case 200:return ku(n.expression);case 274:return e.some(n.properties,ku)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,ku);case 273:var t=n.initializer;return!!t&&ku(t);case 276:var r=n.expression;return!!r&&ku(r)}return!1}function Nu(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!fi(n))&&(Ou(n)||function(n){return!e.getEffectiveReturnTypeNode(n)&&!!n.body&&223!==n.body.kind&&ku(n.body)}(n))}function Ou(n){if(!n.typeParameters){if(e.some(n.parameters,(function(n){return!e.getEffectiveTypeAnnotationNode(n)})))return!0;if(202!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!e.parameterIsThisKeyword(t))return!0}}return!1}function Mu(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Vm(n)||e.isObjectLiteralMethod(n))&&Nu(n)}function Pu(n){if(524288&n.flags){var t=is(n);if(t.constructSignatures.length||t.callSignatures.length){var r=Ea(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 pl(e.map(n.types,Pu));return n}function wu(e,n){return ld(e,n,Xt)}function Fu(e,n){return ld(e,n,Xt)?-1:0}function Gu(e,n){return ld(e,n,zt)?-1:0}function Bu(e,n){return ld(e,n,Wt)?-1:0}function Uu(e,n){return ld(e,n,Wt)}function Vu(e,n){return ld(e,n,zt)}function ju(n,t){return 1048576&n.flags?e.every(n.types,(function(e){return ju(e,t)})):1048576&t.flags?e.some(t.types,(function(e){return ju(n,e)})):58982400&n.flags?ju(gs(n)||Se,t):t===un?!!(67633152&n.flags):t===dn?!!(524288&n.flags)&&cf(n):ji(n,Vi(t))}function Hu(e,n){return ld(e,n,Jt)}function Ku(e,n){return Hu(e,n)||Hu(n,e)}function Wu(e,n,t,r,a,i){return pd(e,n,zt,t,r,a,i)}function qu(e,n,t,r,a,i){return zu(e,n,zt,t,r,a,i,void 0)}function zu(e,n,t,r,a,i,o,s){return!!ld(e,n,t)||(!r||!Xu(a,e,n,t,i,o,s))&&pd(e,n,t,r,i,o,s)}function Ju(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,Ju))}function Xu(n,t,r,a,i,c,l){if(!n||Ju(r))return!1;if(!pd(t,r,a,void 0)&&function(n,t,r,a,i,o,s){for(var c=Is(t,0),l=Is(t,1),u=0,d=[l,c];u1,h=Cf(_,Gd),v=Cf(_,(function(e){return!Gd(e)}));if(y){if(h!==Be){var b=Qc(i_(d,0)),E=function(n,t){var r,a,i,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(n.children))return[2];r=0,a=0,s.label=1;case 1:return au:ty(n)>u))return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=ug(n,t=ac(t),void 0,s));var d=ny(n),p=iy(n),f=iy(t);if((p||f)&&Cu(p||f,c),p&&f&&d!==u)return 0;var m=t.declaration?t.declaration.kind:0,_=!(3&r)&&W&&161!==m&&160!==m&&162!==m,g=-1,y=Js(n);if(y&&y!==Ge){var h=Js(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=ty(n)&&E0||jb(c));if(m&&!function(e,n,t){for(var r=0,a=ls(e);r0&&w(Ys(g[0]),l,!1)||y.length>0&&w(Ys(y[0]),l,!1)?O(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Va(c),Va(l)):O(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Va(c),Va(l))}return 0}var h=0,v=R();if(1048576&c.flags)h=r===Jt?B(c,l,i&&!(131068&c.flags),s):function(e,n,t){for(var r=-1,a=e.types,i=0,o=a;i0;if(T&&b--,524288&c.flags&&524288&l.flags){var S=u;P(c,l,i),u!==S&&(T=!!u)}if(524288&c.flags&&131068&l.flags)!function(n,t){var r=Ha(n.symbol)?Va(n,n.symbol.valueDeclaration):Va(n),a=Ha(t.symbol)?Va(t,t.symbol.valueDeclaration):Va(t);(gn===n&&Ie===t||yn===n&&Re===t||hn===n&&we===t||Uc(!1)===n&&Fe===t)&&O(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,r)}(c,l);else if(c.symbol&&524288&c.flags&&un===c)O(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(p&&2097152&l.flags){var L=l.types,A=s_(C.IntrinsicAttributes,a),x=s_(C.IntrinsicClassAttributes,a);if(A!==Ee&&x!==Ee&&(e.contains(L,A)||e.contains(L,x)))return h}if(!o&&T)return _=[c,l],h;M(o,c,l)}return h}function F(e,n){for(var t=-1,r=0,a=e.types;r25)return 0}for(var c=new Array(r.length),l=e.createUnderscoreEscapedMap(),u=0;u5?O(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Va(n),Va(t),e.map(g.slice(0,4),(function(e){return Ba(e)})).join(", "),g.length-4):O(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Va(n),Va(t),e.map(g,(function(e){return Ba(e)})).join(", ")),s&&u&&b++)}function X(n,t,a,i,o){if(r===Xt)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;var r=W(os(e),t),a=W(os(n),t);if(r.length!==a.length)return 0;for(var i=-1,o=0,s=r;o0||Is(n,r=1).length>0)return e.find(t.types,(function(e){return Is(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 Ud(c)&&1>=a&&(r=s,a=1)}return r}(n,t)}function md(e,n,t,r){for(var a=e.types.map((function(e){})),i=0,o=n;i0&&e.every(t.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&n.flags)&&e.every(n.types,_d)}function gd(n,t,r){var a=gc(n,e.map(n.typeParameters,(function(e){return e===t?r:e})));return a.objectFlags|=8192,a}function yd(e){var n=pr(e);return hd(n.typeParameters,n,(function(t,r,a){var i=Tc(e,cu(n.typeParameters,uu(r,a)));return i.aliasTypeArgumentsContainsMarker=!0,i}))}function hd(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=Zn;Zn=function(e){return e?i=!0:n=!0};var s=r(t,e,rn),c=r(t,e,an),l=(Vu(c,s)?1:0)|(Vu(s,c)?2:0);3===l&&Vu(r(t,e,$n),s)&&(l=4),Zn=o,(n||i)&&(n&&(l|=8),i&&(l|=16)),a.push(l)},o=0,s=n;o":r+="-"+o.id}return r}function Sd(e,n,t,r){if(r===Xt&&e.id>n.id){var a=e;e=n,n=a}var i=t?":"+t:"";if(Ed(e)&&Ed(n)){var o=[];return Td(e,o)+","+Td(n,o)+i}return e.id+","+n.id+i}function Ld(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,a=n.containingType.types;r=5&&524288&e.flags&&!Hp(e)){var r=e.symbol;if(r)for(var a=0,i=0;i=5)return!0}}if(t>=5&&8388608&e.flags){var o=Cd(e);for(a=0,i=0;i=5)return!0}}return!1}function Cd(e){for(var n=e;8388608&n.flags;)n=n.objectType;return n}function Dd(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(tb(n)!==tb(t))return 0}else if((16777216&n.flags)!=(16777216&t.flags))return 0;return Ay(n)!==Ay(t)?0:r(Bi(n),Bi(t))}function Id(n,t,r,a,i,o){if(n===t)return-1;if(!function(e,n,t){var r=ny(e),a=ny(n),i=ty(e),o=ty(n),s=ry(e),c=ry(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=du(n.typeParameters,t.typeParameters),c=0;c-1&&(yr(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 nr(J,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}i=n.dotDotDotToken?J?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:J?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 191:if(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!J)return;break;case 300:return void $t(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);case 244:case 161:case 160:case 163:case 164:case 201:case 202:if(J&&!n.name)return void $t(n,1===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=J?1===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 186:return void(J&&$t(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=J?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}nr(J,n,i,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}}function vp(n,r,a){t&&J&&524288&e.getObjectFlags(r)&&(function n(t){var r=!1;if(524288&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,ad))r=!0;else for(var a=0,i=t.types;ae.target.minLength||!Jd(n)&&(!!Jd(e)||Xd(n)0)for(var T=0,S=t;T1){var t=e.filter(n,Hp);if(t.length){var r=il(t,2);return e.concatenate(e.filter(n,(function(e){return!Hp(e)})),[r])}}return n}(n.candidates),o=(r=n.typeParameter,!!(a=ds(r))&&Ry(16777216&a.flags?fs(a):a,4325372)),s=!o&&n.topLevel&&(n.isFixed||!Rp(Ys(t),n.typeParameter)),c=o?e.sameMap(i,nu):s?e.sameMap(i,Hd):i;return gp(104&n.priority?il(c,2):function(n){if(!K)return Rd(n);var t=e.filter(n,(function(e){return!(98304&e.flags)}));return t.length?np(Rd(t),98304&Qd(n)):il(n,2)}(c))}function qp(n,t){var r=n.inferences[t];if(!r.inferredType){var a=void 0,i=n.signature;if(i){var o=r.candidates?Wp(r,i):void 0;if(r.contraCandidates){var s=Kp(r);a=!o||131072&o.flags||!Uu(o,s)?s:o}else if(o)a=o;else if(1&n.flags)a=Ue;else{var c=Es(r.typeParameter);c&&(a=Cu(c,fu(function(n,t){return function(r){return e.findIndex(n.inferences,(function(e){return e.typeParameter===r}))>=t?Se:r}}(n,t),n.nonFixingMapper)))}}else a=wp(r);r.inferredType=a||zp(!!(2&n.flags));var l=ds(r.typeParameter);if(l){var u=Cu(l,n.nonFixingMapper);a&&n.compareTypes(a,Ro(u,a))||(r.inferredType=a=u)}}return r.inferredType}function zp(e){return e?he:Se}function Jp(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)||280===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,243))&&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=fr(c);l.flags|=131072;var u=l.capturedBlockScopeBindings||(l.capturedBlockScopeBindings=[]);e.pushIfUnique(u,t),c===r.initializer&&(s=!1)}}s&&(fr(i).flags|=65536)}var d;if(e.isForStatement(r))(d=e.getAncestor(t.valueDeclaration,243))&&d.parent===r&&function(n,t){var r=n;for(;200===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(207===r.parent.kind||208===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)&&(fr(t.valueDeclaration).flags|=4194304);fr(t.valueDeclaration).flags|=524288}a&&(fr(t.valueDeclaration).flags|=262144)}(n,t);var o=rm(Bi(a),n),s=e.getAssignmentTargetKind(n);if(s){if(!(3&a.flags||e.isInJSFile(n)&&512&a.flags))return $t(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Ba(t)),Ee;if(Ay(a))return 3&a.flags?$t(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Ba(t)):$t(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ba(t)),Ee}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=156===e.getRootDeclaration(i).kind,u=Qf(i),d=Qf(n),p=d!==u,f=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&_f(n.parent.parent),m=134217728&t.flags;d!==u&&(201===d.kind||202===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&(em(a)||l&&!Zf(a));)d=Qf(d);var _=l||c||p||f||m||e.isBindingElement(i)||o!==ve&&o!==Tn&&(!K||0!=(16387&o.flags)||Qp(n)||263===n.parent.kind)||218===n.parent.kind||242===i.kind&&i.exclamationToken||8388608&i.flags,g=Yf(n,o,_?l?function(e,n){return K&&156===n.kind&&n.initializer&&32768&Zd(e)&&!(32768&Zd(sh(n.initializer)))?uf(e,524288):e}(o,i):o:o===ve||o===Tn?Le:tp(o),d,!_);if(Vf(n)||o!==ve&&o!==Tn){if(!_&&!(32768&Zd(o))&&32768&Zd(g))return $t(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ba(t)),o}else if(g===ve||g===Tn)return J&&($t(e.getNameOfDeclaration(i),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ba(t),Va(g)),$t(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ba(t),Va(g))),sv(g);return s?jd(g):g}function om(e,n){(fr(e).flags|=2,159===n.kind||162===n.kind)?fr(n.parent).flags|=4:fr(n).flags|=4}function sm(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,sm)}function cm(e){var n=fr(e);return void 0===n.hasSuperCall&&(n.superCall=sm(e.body),n.hasSuperCall=!!n.superCall),n.superCall}function lm(e){return Zi(lo(ua(e)))===De}function um(n,t,r){var a=t.parent;if(e.getClassExtendsHeritageElement(a)&&!lm(a)){var i=cm(t);(!i||i.end>n.pos)&&$t(n,r)}}function dm(n){var t=e.getThisContainer(n,!0),r=!1;switch(162===t.kind&&um(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),202===t.kind&&(t=e.getThisContainer(t,!1),r=!0),t.kind){case 249:$t(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 248:$t(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 162:fm(n,t)&&$t(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 159:case 158:e.hasModifier(t,32)&&$t(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 154:$t(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&V<2&&om(n,t);var a=pm(n,!0,t);if(X){var i=Bi(te);if(a===i&&r)$t(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var o=$t(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var s=pm(t);s&&s!==i&&e.addRelatedInfo(o,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||he}function pm(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)&&(!bm(n)||e.getThisParameter(r))){var i=function(n){if(201===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent))return n.parent.left.expression.expression;if(161===n.kind&&193===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent))return n.parent.parent.left.expression;if(201===n.kind&&281===n.parent.kind&&193===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(201===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&&i){var o=sh(i).symbol;if(o&&o.members&&16&o.flags)return Yf(n,lo(o).thisType)}else if(a&&(201===r.kind||244===r.kind)&&e.getJSDocClassTag(r)){return Yf(n,lo(la(r.symbol)).thisType)}var s=Ni(r)||ym(r);if(s)return Yf(n,s)}if(e.isClassLike(r.parent)){var c,l=ua(r.parent);return Yf(n,c=e.hasModifier(r,32)?Bi(l):lo(l).thisType)}if(a&&((c=function(n){var t=e.getJSDocType(n);if(t&&300===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return ou(r.parameters[0].type)}var a=e.getJSDocThisTag(n);if(a&&a.typeExpression)return ou(a.typeExpression)}(r))&&c!==Ee))return Yf(n,c);if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var u=ua(r);return u&&Bi(u)}if(t)return Bi(te)}}function fm(n,t){return!!e.findAncestor(n,(function(n){return e.isFunctionLikeDeclaration(n)?"quit":156===n.kind&&n.parent===t}))}function mm(n){var t=196===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),a=!1;if(!t)for(;r&&202===r.kind;)r=e.getSuperContainer(r,!0),a=V<2;var i=0;if(!function(n){if(!n)return!1;if(t)return 162===n.kind;if(e.isClassLike(n.parent)||193===n.parent.kind)return e.hasModifier(n,32)?161===n.kind||160===n.kind||163===n.kind||164===n.kind:161===n.kind||160===n.kind||163===n.kind||164===n.kind||159===n.kind||158===n.kind||162===n.kind;return!1}(r)){var o=e.findAncestor(n,(function(e){return e===r?"quit":154===e.kind}));return o&&154===o.kind?$t(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?$t(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||193===r.parent.kind)?$t(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):$t(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Ee}if(t||162!==r.kind||um(n,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=e.hasModifier(r,32)||t?512:256,fr(n).flags|=i,161===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?fr(r).flags|=4096:fr(r).flags|=2048),a&&om(n.parent,r),193===r.parent.kind)return V<2?($t(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ee):he;var s=r.parent;if(!e.getClassExtendsHeritageElement(s))return $t(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Ee;var c=lo(ua(s)),l=c&&$i(c)[0];return l?162===r.kind&&fm(n,r)?($t(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Ee):512===i?Zi(c):Ro(l,c.thisType):Ee}function _m(n){return 4&e.getObjectFlags(n)&&n.target===bn?vc(n)[0]:void 0}function gm(n){return If(n,(function(n){return 2097152&n.flags?e.forEach(n.types,_m):_m(n)}))}function ym(n){if(202!==n.kind){if(Mu(n)){var t=Hm(n);if(t){var r=t.thisParameter;if(r)return Bi(r)}}var a=e.isInJSFile(n);if(X||a){var i=function(e){return 161!==e.kind&&163!==e.kind&&164!==e.kind||193!==e.parent.kind?201===e.kind&&281===e.parent.kind?e.parent.parent:void 0:e.parent}(n);if(i){for(var o=Om(i),s=i,c=o;c;){var l=gm(c);if(l)return Cu(l,Dp(Fm(i)));if(281!==s.parent.kind)break;c=Om(s=s.parent.parent)}return gp(o?rp(o):Hy(i))}var u=e.walkUpParenthesizedExpressions(n.parent);if(209===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&&Yp(p)===f.symbol)return}return gp(Hy(p))}}}}}function hm(n){var t=n.parent;if(Mu(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var a=vg(r),i=t.parameters.indexOf(n);if(n.dotDotDotToken)return fg(a,i,a.length,he,void 0);var o=fr(r),s=o.resolvedSignature;o.resolvedSignature=nt;var c=i=0)return s}return Ym(t)&&Cm(n,1)||Cm(n,0)}}),!0)}function Cm(e,n){return If(e,(function(e){return ks(e,n)}),!0)}function Dm(e,n){var t=Om(e.parent,n);if(t){if(!Lo(e)){var r=xm(t,ua(e).escapedName);if(r)return r}return Jm(e.name)&&Cm(t,1)||Cm(t,0)}}function Im(e,n){return e&&(xm(e,""+n)||Ev(1,e,Le,void 0,!1))}function Rm(n){var t=n.parent;return e.isJsxAttributeLike(t)?wm(n):e.isJsxElement(t)?function(e,n){var t=Om(e.openingElement.tagName),r=d_(l_(e));if(t&&!ii(t)&&r&&""!==r){var a=$u(e.children),i=a.indexOf(n),o=xm(t,r);return o&&(1===a.length?o:If(o,(function(e){return Pd(e)?kl(e,ru(i)):e}),!0))}}(t,n):void 0}function km(n){if(e.isJsxAttribute(n)){var t=Om(n.parent);if(!t||ii(t))return;return xm(t,n.name.escapedText)}return wm(n.parent)}function Nm(e){switch(e.kind){case 10:case 8:case 9:case 14:case 106:case 91:case 100:case 75:case 146:return!0;case 194:case 200:return Nm(e.expression);case 276:return!e.expression||Nm(e.expression)}return!1}function Om(n,t){var r=Mm(e.isObjectLiteralMethod(n)?function(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(16777216&n.flags))return Dm(n,t)}(n,t):wm(n,t),n,t);if(r&&!(t&&2&t&&8650752&r.flags)){var a=If(r,Ss,!0);if(1048576&a.flags){if(e.isObjectLiteralExpression(n))return function(n,t){return md(t,e.map(e.filter(n.properties,(function(e){return!!e.symbol&&281===e.kind&&Nm(e.initializer)&&tf(t,e.symbol.escapedName)})),(function(e){return[function(){return sh(e.initializer)},e.symbol.escapedName]})),Vu,t)}(n,a);if(e.isJsxAttributes(n))return function(n,t){return md(t,e.map(e.filter(n.properties,(function(e){return!!e.symbol&&273===e.kind&&tf(t,e.symbol.escapedName)&&(!e.initializer||Nm(e.initializer))})),(function(e){return[e.initializer?function(){return sh(e.initializer)}:function(){return Me},e.symbol.escapedName]})),Vu,t)}(n,a)}return a}}function Mm(n,t,r){if(n&&Ry(n,63176704)){var a=Fm(t);if(a&&e.some(a.inferences,eh)){if(r&&1&r)return Pm(n,a.nonFixingMapper);if(a.returnMapper)return Pm(n,a.returnMapper)}}return n}function Pm(n,t){return 63176704&n.flags?Cu(n,t):1048576&n.flags?il(e.map(n.types,(function(e){return Pm(e,t)})),0):2097152&n.flags?pl(e.map(n.types,(function(e){return Pm(e,t)}))):n}function wm(n,t){if(!(16777216&n.flags)){if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 242:case 156:case 159:case 158:case 191:return function(n){var t=n.parent;if(e.hasInitializer(t)&&n===t.initializer){var r=vm(t);if(r)return r;if(e.isBindingPattern(t.name))return Li(t.name,!0,!1)}}(n);case 202:case 235:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t);if(1&r)return;var a=Tm(t);if(a){if(2&r){var i=Dh(a);return i&&il([i,dy(i)])}return a}}}(n);case 212:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),a=Tm(t);if(a)return n.asteriskToken?a:Hv(0,a,0!=(2&r))}}(r);case 206:return function(e){var n=wm(e);if(n){var t=kh(n);return t&&il([t,dy(t)])}}(r);case 196:if(96===r.expression.kind)return Ie;case 197:return Sm(r,n);case 199:case 217:return e.isConstTypeReference(r.type)?void 0:ou(r.type);case 209:return Am(n,t);case 281:case 282:return Dm(r,t);case 283:return Om(r.parent,t);case 192:var a=r;return Im(Om(a,t),e.indexOfNode(a.elements,n));case 210:return function(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?wm(t,n):void 0}(n,t);case 221:return e.Debug.assert(211===r.parent.kind),function(e,n){if(198===e.parent.kind)return Sm(e.parent,n)}(r.parent,n);case 200:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?ou(i.typeExpression.type):wm(r,t);case 276:return Rm(r);case 273:case 275:return km(r);case 268:case 267:return function(n,t){if(e.isJsxOpeningElement(n)&&n.parent.contextualType&&4!==t)return n.parent.contextualType;return Lm(n,0)}(r,t)}}}function Fm(n){var t=e.findAncestor(n,(function(e){return!!e.inferenceContext}));return t&&t.inferenceContext}function Gm(n,t){return 0!==_g(t)?function(e,n){var t=sy(e,Se);t=Bm(n,l_(n),t);var r=s_(C.IntrinsicAttributes,n);r!==Ee&&(t=Vo(r,t));return t}(n,t):function(n,t){var r=l_(t),a=(o=r,u_(C.ElementAttributesPropertyNameContainer,o)),i=void 0===a?sy(n,Se):""===a?Ys(n):function(e,n){if(e.unionSignatures){for(var t=[],r=0,a=e.unionSignatures;r=2)return gc(o,c=Hs([s,r],o.typeParameters,2,e.isInJSFile(n)));if(e.length(o.aliasTypeArguments)>=2){var c=Hs([s,r],o.aliasTypeArguments,2,e.isInJSFile(n));return Tc(o.aliasSymbol,c)}}return r}function Um(n,t){var r=Is(n,0);if(1===r.length){var a=r[0];if(!function(n,t){for(var r=0;r0&&213===a[i-1].kind,y=i-(g?1:0),h=void 0;if(c&&y>0)return(_=yc(Qc(s,y,g))).pattern=n,_;if(h=zm(s,l,g,i,u))return qm(h);if(r)return qm(Qc(s,y,g))}return qm(zc(s.length?il(s,2):K?je:Ae,u))}function qm(n){if(!(4&e.getObjectFlags(n)))return n;var t=n.literalType;return t||((t=n.literalType=yc(n)).objectFlags|=1114112),t}function zm(e,n,t,r,a){if(void 0===r&&(r=e.length),void 0===a&&(a=!1),a||n&&Af(n,Fd))return Qc(e,r-(t?1:0),t,a)}function Jm(e){switch(e.kind){case 154:return function(e){return ky(Qm(e),296)}(e);case 75:return Ym(e.escapedText);case 8:case 10:return Ym(e.text);default:return!1}}function Xm(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Ym(e){return(+e).toString()===e}function Qm(n){var t=fr(n.expression);return t.resolvedType||(t.resolvedType=sh(n.expression),98304&t.resolvedType.flags||!ky(t.resolvedType,12716)&&!Vu(t.resolvedType,We)?$t(n,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):Z_(n.expression,t.resolvedType,!0)),t.resolvedType}function Zm(e,n,t,r){for(var a=[],i=0;i0&&(o=Xl(o,R(),n.symbol,m,l),i=[],r=e.createSymbolTable(),g=!1,y=!1),!n_(S=sh(b.expression)))return $t(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Ee;o=Xl(o,S,n.symbol,m,l),h=v+1;continue}e.Debug.assert(163===b.kind||164===b.kind),Tb(b)}!T||8576&T.flags?r.set(E.escapedName,E):Vu(T,We)&&(Vu(T,Re)?y=!0:g=!0,a&&(_=!0)),i.push(E)}if(c)for(var D=0,I=ls(s);D0&&(o=Xl(o,R(),n.symbol,m,l),i=[],r=e.createSymbolTable(),g=!1,y=!1),If(o,(function(e){return e===Je?R():e}))):R();function R(){var t=g?Zm(n,h,i,0):void 0,o=y?Zm(n,h,i,1):void 0,s=xa(n.symbol,r,e.emptyArray,e.emptyArray,t,o);return s.objectFlags|=1048704|m,f&&(s.objectFlags|=16384),_&&(s.objectFlags|=512),a&&(s.pattern=n),s}}function n_(n){if(63176704&n.flags){var t=gs(n);if(void 0!==t)return n_(t)}return!!(126615553&n.flags||117632&Zd(n)&&n_($d(n))||3145728&n.flags&&e.every(n.types,n_))}function t_(n){return!e.stringContains(n,"-")}function r_(n){return 75===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function a_(e,n){return e.initializer?Xy(e.initializer,n):Me}function i_(e,n){for(var t=[],r=0,a=e.children;r0&&(o=Xl(o,S(),a.symbol,l,!1),i=e.createSymbolTable()),ii(_=Hy(f.expression,t))&&(s=!0),n_(_)?o=Xl(o,_,a.symbol,l,!1):r=r?pl([r,_]):_}}s||i.size>0&&(o=Xl(o,S(),a.symbol,l,!1));var y=266===n.parent.kind?n.parent:void 0;if(y&&y.openingElement===n&&y.children.length>0){var h=i_(y,t);if(!s&&u&&""!==u){c&&$t(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(u));var v=Om(n.attributes),b=v&&xm(v,u),E=rr(33554436,u);E.type=1===h.length?h[0]:zm(h,b,!1)||zc(il(h)),E.valueDeclaration=e.createPropertySignature(void 0,e.unescapeLeadingUnderscores(u),void 0,void 0,void 0),E.valueDeclaration.parent=a,E.valueDeclaration.symbol=E;var T=e.createSymbolTable();T.set(u,E),o=Xl(o,xa(a.symbol,T,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,l,!1)}}return s?he:r&&o!==Xe?pl([r,o]):r||(o===Xe?S():o);function S(){l|=Q;var n=xa(a.symbol,i,e.emptyArray,e.emptyArray,void 0,void 0);return n.objectFlags|=1048704|l,n}}(n.parent,t)}function s_(e,n){var t=l_(n),r=t&&ia(t),a=r&&_r(r,e,788968);return a?lo(a):Ee}function c_(n){var t=fr(n);if(!t.resolvedSymbol){var r=s_(C.IntrinsicElements,n);if(r!==Ee){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=Cs(r,n.tagName.escapedText);return a?(t.jsxFlags|=1,t.resolvedSymbol=a):Os(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):($t(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+C.IntrinsicElements),t.resolvedSymbol=ge)}return J&&$t(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(C.IntrinsicElements)),t.resolvedSymbol=ge}return t.resolvedSymbol}function l_(e){var n=e&&fr(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=Zt(e),r=yr(e,t,1920,void 0,t,!1);if(r){var a=Br(_r(ia(Br(r)),C.JSX,1920));if(a)return n&&(n.jsxNamespace=a),a;n&&(n.jsxNamespace=!1)}}return Fc(C.JSX,1920,void 0)}function u_(n,t){var r=t&&_r(t.exports,n,788968),a=r&&lo(r),i=a&&ls(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&$t(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function d_(e){return u_(C.ElementChildrenAttributeNameContainer,e)}function p_(n,t){var r=s_(C.IntrinsicElements,t);if(r!==Ee){var a=n.value,i=Cs(r,e.escapeLeadingUnderscores(a));if(i)return Bi(i);var o=Os(r,0);return o||void 0}return he}function f_(n){e.Debug.assert(r_(n.tagName));var t=fr(n);if(!t.resolvedJsxElementAttributesType){var r=c_(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=Bi(r):2&t.jsxFlags?t.resolvedJsxElementAttributesType=Os(lo(r),0):t.resolvedJsxElementAttributesType=Ee}return t.resolvedJsxElementAttributesType}function m_(e){var n=s_(C.ElementClass,e);if(n!==Ee)return n}function __(e){return s_(C.Element,e)}function g_(e){var n=__(e);if(n)return il([n,Ce])}function y_(n){var t,r=e.isJsxOpeningLikeElement(n);r&&function(n){IE(n,n.typeArguments);for(var t=e.createUnderscoreEscapedMap(),r=0,a=n.attributes.properties;r=0)return d>=ty(r)&&(ry(r)||ds)return!1;if(o||i>=c)return!0;for(var p=i;p=a&&t.length<=r}function sg(e){return lg(e,0,!1)}function cg(e){return lg(e,0,!1)||lg(e,1,!1)}function lg(e,n,t){if(524288&e.flags){var r=is(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 ug(n,t,r,a){var i=Tp(n.typeParameters,n,0,a),o=ay(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return bp(s?hu(t,s):t,n,(function(e,n){Bp(i.inferences,e,n)})),r||Ep(t,n,(function(e,n){Bp(i.inferences,e,n,32)})),ec(n,Jp(i),e.isInJSFile(t.declaration))}function dg(n,t,r,a,i){if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r){var a=Gm(n,e),i=jy(e.attributes,a,r,t);return Bp(r.inferences,i,a),Jp(r)}(n,t,a,i);if(157!==n.kind){var o=wm(n);if(o){var s=Fm(n),c=Cu(o,Dp(function(n,t){return void 0===t&&(t=0),n&&Sp(e.map(n.inferences,Cp),n.signature,n.flags|t,n.compareTypes)}(s,1))),l=sg(c),u=l&&l.typeParameters?oc(nc(l,l.typeParameters)):c,d=Ys(t);Bp(i.inferences,u,d,32);var p=Tp(t.typeParameters,t,i.flags),f=Cu(o,s&&s.returnMapper);Bp(p.inferences,f,d),i.returnMapper=e.some(p.inferences,eh)?Dp(function(n){var t=e.filter(n.inferences,eh);return t.length?Sp(e.map(t,Cp),n.signature,n.flags,n.compareTypes):void 0}(p)):void 0}}var m=Js(t);if(m){var _=yg(n),g=_?sh(_):Ge;Bp(i.inferences,g,m)}for(var y=iy(t),h=y?Math.min(ny(t)-1,r.length):r.length,v=0;v=r-1){var o=n[r-1];if(tg(o))return 220===o.kind?zc(o.type):pg(jy(o.expression,a,i,0))}for(var s=[],c=-1,l=t;l0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var a=n.arguments||e.emptyArray,i=a.length;if(i&&tg(a[i-1])&&rg(a)===i-1){var o=a[i-1],s=gt?sh(o.expression):Hy(o.expression);if(zd(s)){var c=vc(s),l=s.target.hasRestElement?c.length-1:-1,u=e.map(c,(function(e,n){return hg(o,e,n===l)}));return e.concatenate(a.slice(0,i-1),u)}}return a}function bg(n,t){switch(n.parent.kind){case 245:case 214:return 1;case 159:return 2;case 161:case 163:case 164:return 0===V||t.parameters.length<=2?2:3;case 156:return 3;default:return e.Debug.fail()}}function Eg(n,t){var r,a,i=e.getSourceFileOfNode(n);if(e.isPropertyAccessExpression(n.expression)){var o=e.getErrorSpanForNode(i,n.expression.name);r=o.start,a=t?o.length:n.end-r}else{var s=e.getErrorSpanForNode(i,n.expression);r=s.start,a=t?s.length:n.end-r}return{start:r,length:a,sourceFile:i}}function Tg(n,t,r,a,i,o){if(e.isCallExpression(n)){var s=Eg(n),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,t,r,a,i,o)}return e.createDiagnosticForNode(n,t,r,a,i,o)}function Sg(n,t,r){for(var a,i=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,l=r.length,u=0,d=t;us&&(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&&ty(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.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.createNodeArray(r.slice(o));_.pos=e.first(_).pos,_.end=e.last(_).end,_.end===_.pos&&_.end++;var L=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),_,b,h,l);return g?e.addRelatedInfo(L,g):L}function Lg(n,r,a,i,o,s){var c,l=198===n.kind,u=157===n.kind,d=e.isJsxOpeningLikeElement(n),p=!a;u||(c=n.typeArguments,(l||d||102!==n.expression.kind)&&e.forEach(c,bb));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,Wt,E)),y||(y=q(f,zt,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 L=gg(n,h,S,zt,0,!0,(function(){return T}));if(L)for(var A=0,x=L;A3&&e.addRelatedInfo(C,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),Vt.add(C)}else e.Debug.fail("No error for last overload signature")}else{for(var D=[],I=0,R=Number.MAX_VALUE,k=0,N=0,O=function(t){var r=gg(n,h,t,zt,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,N+1,f.length,Ua(t))}));r?(r.length<=R&&(R=r.length,k=N),I=Math.max(I,r.length),D.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),N++},M=0,P=m;M1?D[k]:e.flatten(D);e.Debug.assert(G.length>0,"No errors reported for 3 or fewer overload signatures");var B=e.chainDiagnosticMessages(e.map(G,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),U=e.flatMap(G,(function(e){return e.relatedInformation}));if(e.every(G,(function(e){return e.start===G[0].start&&e.length===G[0].length&&e.file===G[0].file}))){var V=G[0],j=V.file,H=V.start,K=V.length;Vt.add({file:j,start:H,length:K,code:B.code,category:B.category,messageText:B,relatedInformation:U})}else Vt.add(e.createDiagnosticForNodeFromMessageChain(n,B,U))}else if(_)Vt.add(Sg(n,[_],h));else if(g)mg(g,n.typeArguments,!0,s);else{var W=e.filter(r,(function(e){return og(e,c)}));0===W.length?Vt.add(function(n,t,r){var a=r.length;if(1===t.length){var i=js((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),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===re?r.length:re),i=t[a],o=i.typeParameters;if(!o)return i;var s=$_(n)?n.typeArguments:void 0,c=s?tc(i,function(e,n,t){var r=e.map(wb);for(;r.length>n.length;)r.pop();for(;r.length=0&&$t(n.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=A_(n.expression);if(i===Ue)return at;if((i=Ss(i))===Ee)return ng(n);if(ii(i))return n.typeArguments&&$t(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),eg(n);var o=Is(i,1);if(o.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,a=e.getSelectedModifierFlags(r,24);if(!a||162!==r.kind)return!0;var i=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=lo(r.parent.symbol);if(!Nb(n,i)){var s=e.getContainingClass(n);if(s&&16&a){var c=wb(s);if(function n(t,r){var a=$i(r);if(!e.length(a))return!1;var i=a[0];if(2097152&i.flags){for(var o=Ko(i.types),s=0,c=0,l=i.types;c0;if(1048576&n.flags){for(var s=!1,c=0,l=n.types;c0)return e.parameters.length-1+t}}return e.minArgumentCount}function ry(e){if(w(e)){var n=Bi(e.parameters[e.parameters.length-1]);return!zd(n)||n.target.hasRestElement}return!1}function ay(e){if(w(e)){var n=Bi(e.parameters[e.parameters.length-1]);return zd(n)?function(e){var n=Jd(e);return n&&zc(n)}(n):n}}function iy(e){var n=ay(e);return!n||kd(n)||ii(n)?void 0:n}function oy(e){return sy(e,Be)}function sy(e,n){return e.parameters.length>0?Zg(e,0):n}function cy(n,t){(n.typeParameters=t.typeParameters,t.thisParameter)&&((!(i=n.thisParameter)||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(n.thisParameter=up(t.thisParameter,void 0)),ly(n.thisParameter,Bi(t.thisParameter))));for(var r=n.parameters.length-(w(n)?1:0),a=0;a0&&(r=il(u,2)):l=Be;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?sh(n.expression,t):Ae;if(e.pushIfUnique(r,_y(n,s,he,i)),n.asteriskToken){var c=Cv(s,i?19:17,n.expression);o=c&&c.nextType}else o=wm(n);o&&e.pushIfUnique(a,o)})),{yieldTypes:r,nextTypes:a}}(n,t),p=d.yieldTypes,f=d.nextTypes;a=e.some(p)?il(p,2):void 0,i=e.some(f)?pl(f):void 0}else{var m=vy(n,t);if(!m)return 2&o?py(n,Be):Be;if(0===m.length)return 2&o?py(n,Ge):Ge;r=il(m,2)}if(r||a||i){var _=jm(n);if(_||(a&&vp(n,a,1),r&&vp(n,r),i&&vp(n,i)),r&&Ud(r)||a&&Ud(a)||i&&Ud(i)){var g=_?_===Ks(n)?c?void 0:r:Mm(Ys(_),n):void 0;c?(a=qd(a,g,0,s),r=qd(r,g,1,s),i=qd(i,g,2,s)):r=function(e,n,t){return e&&Ud(e)&&(e=Wd(e,n?t?Ih(n):n:void 0)),e}(r,g,s)}a&&(a=gp(a)),r&&(r=gp(r)),i&&(i=gp(i))}return c?my(a||Be,r||l,i||Em(2,n)||Se,s):s?uy(r||l):r||l}function my(e,n,t,r){var a=r?dt:pt,i=a.getGlobalGeneratorType(!1);if(e=a.resolveIterationType(e,void 0)||Se,n=a.resolveIterationType(n,void 0)||Se,t=a.resolveIterationType(t,void 0)||Se,i===Ze){var o=a.getGlobalIterableIteratorType(!1),s=o!==Ze?kv(o,a):void 0,c=s?s.returnType:he,l=s?s.nextType:Le;return Vu(n,c)&&Vu(l,t)?o!==Ze?Wc(o,[e]):(a.getGlobalIterableIteratorType(!0),Je):(a.getGlobalGeneratorType(!0),Je)}return Wc(i,[e,n,t])}function _y(n,t,r,a){var i=n.expression||n,o=n.asteriskToken?bv(a?19:17,t,r,i):t;return a?kh(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 gy(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(sh(n.right,t));break}if(Uy(n),62===(o=n.operatorToken.kind)&&(193===n.left.kind||192===n.left.kind)){l(Fy(n.left,sh(n.right,t),t,104===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||_v(s,n.left),u(2),d(n.right);break;case 2:s=a.leftType[i];var c=r;l(Vy(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=sh(n,t)}}function Uy(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||zE(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||zE(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(r.kind)))}function Vy(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 74:case 50:case 72:if(i===Ue||o===Ue)return Ue;i=k_(i,n),o=k_(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 74:return 37;case 50:case 72:return 55;default:return}}(r.kind)))return $t(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d)),Re;var p,f=Sy(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=Sy(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(ky(i,3)&&ky(o,3)||!Ry(i,2112)&&!Ry(o,2112))p=Re;else if(y(i,o)){switch(u){case 49:case 71:E()}p=ke}else E(y),p=Ee;return f&&m&&v(p),p;case 39:case 63:if(i===Ue||o===Ue)return Ue;ky(i,132)||ky(o,132)||(i=k_(i,n),o=k_(o,a));var _=void 0;if(ky(i,296,!0)&&ky(o,296,!0)?_=Re:ky(i,2112,!0)&&ky(o,2112,!0)?_=ke:ky(i,132,!0)||ky(o,132,!0)?_=Ie:(ii(i)||ii(o))&&(_=i===Ee||o===Ee?Ee:he),_&&!h(u))return _;if(!_){return E((function(e,n){return ky(e,2543)&&ky(n,2543)})),he}return 63===u&&v(_),_;case 29:case 31:case 32:case 33:return h(u)&&(i=jd(k_(i,n)),o=jd(k_(o,a)),b((function(e,n){return Hu(e,n)||Hu(n,e)||Vu(e,ze)&&Vu(n,ze)}))),we;case 34:case 35:case 36:case 37:return b((function(e,n){return Gy(e,n)||Gy(n,e)})),we;case 98:return function(n,t,r,a){return r===Ue||a===Ue?Ue:(!ii(r)&&Ny(r,131068)&&$t(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ii(a)||jb(a)||Uu(a,dn)||$t(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),we)}(n,a,i,o);case 97:return function(n,t,r,a){return r===Ue||a===Ue?Ue:(r=k_(r,n),a=k_(a,t),Hu(r,Ie)||ky(r,12584)||$t(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Ny(a,126091264)||$t(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),we)}(n,a,i,o);case 55:return 4194304&lf(i)?il([(l=K?i:jd(o),If(l,ep)),o]):i;case 56:return 8388608&lf(i)?il([$d(i),o],2):i;case 60:return 262144&lf(i)?il([rp(i),o],2):i;case 62:var g=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return function(n,t){if(2===n)for(var r=0,a=os(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(!nh(e,i))return i}}function rh(e){var n=sg(e);if(n&&!n.typeParameters)return Ys(n)}function ah(e){var n=ih(e);if(n)return n;if(67108864&e.flags&&Xn){var t=Xn[I(e)];if(t)return t}var r=vt,a=sh(e);vt!==r&&((Xn||(Xn=[]))[I(e)]=a,e.flags|=67108864);return a}function ih(n){var t=e.skipParentheses(n);if(!e.isCallExpression(t)||102===t.expression.kind||e.isRequireCall(t,!0)||Hg(t)){if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return ou(t.type);if(8===n.kind||10===n.kind||106===n.kind||91===n.kind)return sh(n)}else{var r=e.isCallChain(t)?function(e){var n=sh(e.expression),t=cp(n,e.expression),r=rh(n);return r&&sp(r,e,t!==n)}(t):rh(A_(t.expression));if(r)return r}}function oh(e){var n=fr(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=he;try{return n.contextFreeType=sh(e,4)}finally{e.contextualType=t}}function sh(n,a,i){var o=d;d=n,E=0;var s=Zy(n,function(n,a,i){var o=n.kind;if(r)switch(o){case 214:case 201:case 202:r.throwIfCancellationRequested()}switch(o){case 75:return im(n);case 104:return dm(n);case 102:return mm(n);case 100:return De;case 14:case 10:return eu(ru(n.text));case 8:return YE(n),eu(ru(+n.text));case 9:return function(n){if(!(e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent))&&V<7&&zE(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(n),eu(function(n){return ru({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}(n));case 106:return Me;case 91:return Ne;case 211:return function(n){return e.forEach(n.templateSpans,(function(n){Ry(sh(n.expression),12288)&&$t(n.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)})),Ie}(n);case 13:return vn;case 192:return Wm(n,a,i);case 193:return e_(n,a);case 194:return O_(n);case 153:return M_(n);case 195:return Y_(n);case 196:if(96===n.expression.kind)return Kg(n);case 197:return jg(n,a);case 198:return zg(n);case 200:return function(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;if(r)return Jg(r,r.typeExpression.type,n.expression,t);return sh(n.expression,t)}(n,a);case 214:return function(e){return eb(e),Tb(e),Bi(ua(e))}(n);case 201:case 202:return Ey(n,a);case 204:return function(e){return sh(e.expression),Kt}(n);case 199:case 217:return function(e){return Jg(e,e.type,e.expression)}(n);case 218:return function(e){return rp(sh(e.expression))}(n);case 219:return Xg(n);case 203:return function(n){sh(n.expression);var t=e.skipParentheses(n.expression);if(!e.isAccessExpression(t))return $t(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),we;194===t.kind&&e.isPrivateIdentifier(t.name)&&$t(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var r=_a(fr(t).resolvedSymbol);return r&&Ay(r)&&$t(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),we}(n);case 205:return function(e){return sh(e.expression),Ae}(n);case 206:return Dy(n);case 207:return function(n){var t=sh(n.operand);if(t===Ue)return Ue;switch(n.operand.kind){case 8:switch(n.operator){case 40:return eu(ru(-n.operand.text));case 39:return eu(ru(+n.operand.text))}break;case 9:if(40===n.operator)return eu(ru({negative:!0,base10Value:e.parsePseudoBigInt(n.operand.text)}))}switch(n.operator){case 39:case 40:case 54:return k_(t,n.operand),Ry(t,12288)&&$t(n.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(n.operator)),39===n.operator?(Ry(t,2112)&&$t(n.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(n.operator),Va(jd(t))),Re):Iy(t);case 53:gv(n.operand);var r=12582912&lf(t);return 4194304===r?Ne:8388608===r?Me:we;case 45:case 46:return Sy(n.operand,k_(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Cy(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),Iy(t)}return Ee}(n);case 208:return function(n){var t=sh(n.operand);return t===Ue?Ue:(Sy(n.operand,k_(t,n.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Cy(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),Iy(t))}(n);case 209:return By(n,a);case 210:return function(e,n){return gv(e.condition),il([sh(e.whenTrue,n),sh(e.whenFalse,n)],2)}(n,a);case 213:return function(e,n){return V<2&&EE(e,U.downlevelIteration?1536:2048),bv(33,sh(e.expression,n),Le,e.expression)}(n,a);case 215:return Ae;case 212:return function(n){t&&(8192&n.flags||WE(n,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),bm(n)&&$t(n,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(n);if(!r)return he;var a=e.getFunctionFlags(r);if(!(1&a))return he;var i=0!=(2&a);n.asteriskToken&&(i&&V<99&&EE(n,53248),!i&&V<2&&U.downlevelIteration&&EE(n,256));var o=Qs(r),s=o&&Kv(o,i),c=s&&s.yieldType||he,l=s&&s.nextType||he,u=i?kh(l)||he:l,d=n.expression?sh(n.expression):Ae,p=_y(n,d,u,i);return o&&p&&qu(p,c,n.expression||n,n.expression),n.asteriskToken?Tv(i?19:17,1,d,n.expression)||he:o?Hv(2,o,i)||he:Em(2,r)||he}(n);case 220:return n.type;case 276:return b_(n,a);case 266:case 267:return function(e,n){return Tb(e),__(e)||he}(n);case 270:return function(n){return y_(n.openingFragment),2===U.jsx&&(U.jsxFactory||e.getSourceFileOfNode(n).pragmas.has("jsx"))&&$t(n,U.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),i_(n),__(n)||he}(n);case 274:return o_(n,a);case 268:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ee}(n,a,i),a);return Oy(s)&&function(n,t){194===n.parent.kind&&n.parent.expression===n||195===n.parent.kind&&n.parent.expression===n||(75===n.kind||153===n.kind)&&Ob(n)||172===n.parent.kind&&n.parent.exprName===n||263===n.parent.kind||$t(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(U.isolatedModules){e.Debug.assert(!!(128&t.symbol.flags)),8388608&t.symbol.valueDeclaration.flags&&$t(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(n,s),d=o,s}function ch(n){n.expression&&WE(n.expression,e.Diagnostics.Type_expected),bb(n.constraint),bb(n.default);var r=co(ua(n));gs(r),function(e){return bs(e)!==nn}(r)||$t(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Va(r));var a=ds(r),i=Es(r);a&&i&&Wu(i,Ro(Cu(a,uu(r,i)),i),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),t&&Yv(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function lh(n){SE(n),cv(n);var t=e.getContainingFunction(n);e.hasModifier(n,92)&&(162===t.kind&&e.nodeIsPresent(t.body)||$t(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&$t(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)&&$t(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),162!==t.kind&&166!==t.kind&&171!==t.kind||$t(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),202===t.kind&&$t(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!n.dotDotDotToken||e.isBindingPattern(n.name)||Vu(Bi(n.symbol),Sn)||$t(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function uh(n,t,r){for(var a=0,i=n.elements;a=2||U.noEmit||!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===ae.escapedName&&$t(n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(n);var a=e.getEffectiveReturnTypeNode(n);if(J&&!a)switch(n.kind){case 166:$t(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 165:$t(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=ou(a);if(o===Ge)$t(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Hv(0,o,0!=(2&i))||he;Wu(my(s,Hv(1,o,0!=(2&i))||s,Hv(2,o,0!=(2&i))||Se,!!(2&i)),o,a)}}else 2==(3&i)&&function(n,t){var r=ou(t);if(V>=2){if(r===Ee)return;var a=Vc(!0);if(a!==Ze&&!Ui(r,a))return void $t(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(n){Oh(n&&e.getEntityNameFromTypeNode(n))}(t),r===Ee)return;var i=e.getEntityNameFromTypeNode(t);if(void 0===i)return void $t(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,Va(r));var o=Jr(i,111551,!0),s=o?Bi(o):Ee;if(s===Ee)return void(75===i.kind&&"Promise"===i.escapedText&&Vi(r)===Vc(!1)?$t(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):$t(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,kn||(kn=Gc("PromiseConstructorLike",0,d))||Je);if(c===Je)return void $t(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(!Wu(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=_r(n.locals,l.escapedText,111551);if(u)return void $t(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(i))}var d;Rh(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)}167!==n.kind&&300!==n.kind&&Vh(n)}}function ph(n){for(var t=e.createMap(),r=0,a=n.members;r0&&t.declarations[0]!==n)return}var r=sc(ua(n));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o=0)return void(t&&$t(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Ut.push(n.id);var d=kh(u,t,r,a);if(Ut.pop(),!d)return;return i.awaitedTypeOfType=d}var p=ai(n,"then");if(!(p&&Is(p,0).length>0))return i.awaitedTypeOfType=n;if(t){if(!r)return e.Debug.fail();$t(t,r,a)}}function Nh(n){var t=Ys(Bg(n));if(!(1&t.flags)){var r,a,i=Mg(n);switch(n.parent.kind){case 245:r=il([Bi(ua(n.parent)),Ge]);break;case 156:r=Ge,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 159:r=Ge,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 161:case 163:case 164:r=il([qc(wb(n.parent)),Ge]);break;default:return e.Debug.fail()}Wu(t,r,n,i,(function(){return a}))}}function Oh(n){if(n){var t=e.getFirstIdentifier(n),r=2097152|(75===n.kind?788968:1920),a=yr(t,t.escapedText,r,void 0,void 0,!0);a&&2097152&a.flags&&ga(a)&&!$b(Ur(a))&&!Hr(a)&&Wr(a)}}function Mh(n){var t=Ph(n);t&&e.isEntityName(t)&&Oh(t)}function Ph(e){if(e)switch(e.kind){case 179:case 178:return wh(e.types);case 180:return wh([e.trueType,e.falseType]);case 182:return Ph(e.type);case 169:return e.typeName}}function wh(n){for(var t,r=0,a=n;r=e.ModuleKind.ES2015||U.noEmit)&&(nv(n,t,"require")||nv(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=ri(n);290===r.kind&&e.isExternalOrCommonJsModule(r)&&$t(t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function ov(n,t){if(!(V>=4||U.noEmit)&&nv(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=ri(n);290===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&$t(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 sv(e){return e===ve?he:e===Tn?En:e}function cv(n){if(Gh(n),e.isBindingElement(n)||bb(n.type),n.name){if(154===n.name.kind&&(Qm(n.name),n.initializer&&Hy(n.initializer)),191===n.kind){189===n.parent.kind&&V<99&&EE(n,4),n.propertyName&&154===n.propertyName.kind&&Qm(n.propertyName);var t=n.parent.parent,r=oi(t),a=n.propertyName||n.name;if(r&&!e.isBindingPattern(a)){var i=ml(a);if(bo(i)){var o=Cs(r,Ao(i));o&&(z_(o,void 0,!1),S_(t,!!t.initializer&&102===t.initializer.kind,r,o))}}}if(e.isBindingPattern(n.name)&&(190===n.name.kind&&V<2&&U.downlevelIteration&&EE(n,512),e.forEach(n.name.elements,bb)),n.initializer&&156===e.getRootDeclaration(n).kind&&e.nodeIsMissing(e.getContainingFunction(n).body))$t(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){var s=n.initializer&&231!==n.parent.parent.kind,c=0===n.name.elements.length;if(s||c){var l=Ai(n);if(s){var u=Hy(n.initializer);K&&c?N_(u,n):qu(u,Ai(n),n,n.initializer)}c&&(e.isArrayBindingPattern(n.name)?bv(65,l,Le,n):K&&N_(l,n))}}else{var d=ua(n),p=sv(Bi(d));if(n===d.valueDeclaration){var f=e.getEffectiveInitializer(n);if(f)e.isInJSFile(n)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(n.name))&&e.hasEntries(d.exports)||231===n.parent.parent.kind||qu(Hy(f),p,n,f,void 0);d.declarations.length>1&&e.some(d.declarations,(function(t){return t!==n&&e.isVariableLike(t)&&!uv(t,n)}))&&$t(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var m=sv(Ai(n));p===Ee||m===Ee||wu(p,m)||67108864&d.flags||lv(d.valueDeclaration,p,n,m),n.initializer&&qu(Hy(n.initializer),m,n,n.initializer,void 0),uv(n,d.valueDeclaration)||$t(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}159!==n.kind&&158!==n.kind&&(Ch(n),242!==n.kind&&191!==n.kind||function(n){if(0==(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(242!==n.kind||n.initializer)){var t=ua(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=yr(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&E_(r)){var a=e.getAncestor(r.valueDeclaration,243),i=225===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!(i&&(223===i.kind&&e.isFunctionLike(i.parent)||250===i.kind||249===i.kind||290===i.kind))){var o=Ba(r);$t(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),iv(n,n.name),ov(n,n.name),!U.noEmit&&V<99&&nv(n,n.name,"WeakMap")&&Bt.push(n))}}}function lv(n,t,r,a){var i=e.getNameOfDeclaration(r),o=159===r.kind||158===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=$t(i,o,s,Va(t),Va(a));n&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function uv(n,t){if(156===n.kind&&242===t.kind||242===n.kind&&156===t.kind)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;return e.getSelectedModifierFlags(n,504)===e.getSelectedModifierFlags(t,504)}function dv(n){return function(n){if(231!==n.parent.parent.kind&&232!==n.parent.parent.kind)if(8388608&n.flags)jE(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return zE(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return zE(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(225!==n.parent.parent.kind||!n.type||n.initializer||8388608&n.flags))return zE(n.exclamationToken,e.Diagnostics.Definite_assignment_assertions_can_only_be_used_along_with_a_type_annotation);var t=e.getEmitModuleKind(U);t=1&&dv(n.declarations[0])}function vv(e,n){return bv(n?15:13,A_(e),Le,e)}function bv(e,n,t,r){return ii(n)?n:Ev(e,n,t,r,!0)||he}function Ev(n,t,r,a,i){var o=0!=(2&n);if(t!==Be){var s=V>=2,c=!s&&U.downlevelIteration;if(s||c||o){var l=Cv(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&&Wu(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=il(_,2))}else 132&d.flags&&(d=Be);if((f=d!==t)&&(V<1&&a&&($t(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 Ie}if(!Pd(d)){if(a&&!p){var g=Tv(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];tr(a,y[1]&&!!Dh(d),h,Va(d))}return f?Ie:void 0}var v=Os(d,1);return f&&v?132&v.flags?Ie:il([v,Ie],2):v}Mv(a,t,o)}function Tv(e,n,t,r){if(!ii(t)){var a=Cv(t,e,r);return a&&a[P(n)]}}function Sv(e,n,t){if(void 0===e&&(e=Be),void 0===n&&(n=Be),void 0===t&&(t=Se),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=mc([e,n,t]),a=ot.get(r);return a||(a={yieldType:e,returnType:n,nextType:t},ot.set(r,a)),a}return{yieldType:e,returnType:n,nextType:t}}function Lv(n){for(var t,r,a,i=0,o=n;ir)return!1;for(var u=0;u1)return WE(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(113===o.token),r)return WE(o,e.Diagnostics.implements_clause_already_seen);r=!0}kE(o)}})(n)||xE(n.typeParameters,t)}(n),Gh(n),n.name&&(Yv(n.name,e.Diagnostics.Class_name_cannot_be_0),iv(n,n.name),ov(n,n.name),8388608&n.flags||(r=n.name,1===V&&"Object"===r.escapedText&&j>s;case 49:return i>>>s;case 47:return i<1&&k(n,!!U.preserveConstEnums||!!U.isolatedModules)){var s=function(n){for(var t=0,r=n.declarations;t1)for(var o=0,s=r;o=225&&a<=241&&n.flowNode&&!qf(n.flowNode)&&nr(!1===U.allowUnreachableCode,n,e.Diagnostics.Unreachable_code_detected);switch(a){case 155:return ch(n);case 156:return lh(n);case 159:return mh(n);case 158:return function(n){return e.isPrivateIdentifier(n.name)&&$t(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),mh(n)}(n);case 170:case 171:case 165:case 166:case 167:return dh(n);case 161:case 160:return function(n){UE(n)||OE(n.name),e.isPrivateIdentifier(n.name)&&$t(n,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Uh(n),e.hasModifier(n,128)&&161===n.kind&&n.body&&$t(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}(n);case 162:return _h(n);case 163:case 164:return gh(n);case 169:return Eh(n);case 168:return function(n){var t=function(e){switch(e.parent.kind){case 202:case 165:case 244:case 201:case 170:case 161:case 160:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=Ks(t),a=Xs(r);if(a){bb(n.type);var i=n.parameterName;if(0===a.kind||2===a.kind)iu(i);else if(a.parameterIndex>=0){if(w(r)&&a.parameterIndex===r.parameters.length-1)$t(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(a.type){Wu(a.type,Bi(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&&$t(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=Bh(n.class.expression),i=e.getClassExtendsHeritageElement(t);if(i){var o=Bh(i.expression);o&&a.escapedText!==o.escapedText&&$t(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(o))}}else $t(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 321:case 314:case 315:return function(n){n.typeExpression||$t(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&Yv(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),bb(n.typeExpression)}(n);case 320:return function(e){bb(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&&$t(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(n){if(248!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(i?$t(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 249:return lb(n);case 254:return mb(n);case 253:return function(n){if(!gb(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(SE(n),e.isInternalModuleImportEqualsDeclaration(n)||db(n)))if(fb(n),e.hasModifier(n,1)&&Kr(n),265!==n.moduleReference.kind){var t=Ur(ua(n));if(t!==ge){if(111551&t.flags){var r=e.getFirstIdentifier(n.moduleReference);1920&Jr(r,112575).flags||$t(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}788968&t.flags&&Yv(n.name,e.Diagnostics.Import_name_cannot_be_0)}}else j>=e.ModuleKind.ES2015&&!(8388608&n.flags)&&zE(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 260:return _b(n);case 259:return function(n){if(!gb(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var t=290===n.parent.kind?n.parent:n.parent.parent;if(249!==t.kind||e.isAmbientModule(t)){if(!SE(n)&&e.hasModifiers(n)&&WE(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),75===n.expression.kind){var r=n.expression,a=Jr(r,67108863,!0,!0,n);if(a){am(a,r);var i=2097152&a.flags?Ur(a):a;(i===ge||111551&i.flags)&&Hy(n.expression)}e.getEmitDeclarations(U)&&Za(n.expression,!0)}else Hy(n.expression);vb(t),8388608&n.flags&&!e.isEntityNameExpression(n.expression)&&zE(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||(j>=e.ModuleKind.ES2015?zE(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===e.ModuleKind.System&&zE(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?$t(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):$t(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 224:case 241:return void XE(n);case 264:(function(e){Gh(e)})(n)}}(n),d=a}}function Eb(n){e.isInJSFile(n)||zE(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Tb(n){var t=fr(e.getSourceFileOfNode(n));if(!(1&t.flags)){t.deferredNodes=t.deferredNodes||e.createMap();var r=""+I(n);t.deferredNodes.set(r,n)}}function Sb(n){var t=d;switch(d=n,E=0,n.kind){case 201:case 202:case 161:case 160:!function(n){e.Debug.assert(161!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=Qs(n);if(by(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Ys(Ks(n)),223===n.body.kind)bb(n.body);else{var a=sh(n.body),i=Ty(r,t);if(i)if(2==(3&t))qu(Rh(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 qu(a,i,n.body,n.body)}}(n);break;case 163:case 164:gh(n);break;case 214:!function(n){e.forEach(n.members,bb),Vh(n)}(n);break;case 267:!function(e){y_(e)}(n);break;case 266:!function(e){y_(e.openingElement),r_(e.closingElement.tagName)?c_(e.closingElement):sh(e.closingElement.tagName),i_(e)}(n)}d=t}function Lb(t){e.performance.mark("beforeCheck"),function(t){var r=fr(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,U,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(),Lb),Vt.getDiagnostics()}(t)}finally{r=void 0}}function Db(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Ib(e){switch(e.kind){case 155:case 245:case 246:case 247:case 248:return!0;case 255:return e.isTypeOnly;case 258:case 263:return e.parent.parent.isTypeOnly;default:return!1}}function Rb(e){for(;153===e.parent.kind;)e=e.parent;return 169===e.parent.kind}function kb(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function Nb(e,n){return!!kb(e,(function(e){return e===n}))}function Ob(e){return void 0!==function(e){for(;153===e.parent.kind;)e=e.parent;return 253===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:259===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function Mb(n){if(e.isDeclarationName(n))return ua(n.parent);if(e.isInJSFile(n)&&194===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 ua(n.parent);case 4:case 2:case 5:return ua(n.parent.parent)}}(n);if(t)return t}if(259===n.parent.kind&&e.isEntityNameExpression(n)){var r=Jr(n,2998271,!0);if(r&&r!==ge)return r}else if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)&&Ob(n)){var a=e.getAncestor(n,253);return e.Debug.assert(void 0!==a),qr(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&&188===t.kind&&t.qualifier===n)return t}(n);if(i){ou(i);var o=fr(n).resolvedSymbol;return o===ge?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(function(e){for(;194===e.parent.kind;)e=e.parent;return 216===e.parent.kind}(n)){var s=0;216===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(n)?Jr(n,s):void 0;if(c)return c}if(316===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(155===n.parent.kind&&320===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(75===n.kind){if(e.isJSXTagName(n)&&r_(n)){var u=c_(n.parent);return u===ge?void 0:u}return Jr(n,111551,!1,!0)}if(194===n.kind||153===n.kind){var d=fr(n);return d.resolvedSymbol||(194===n.kind?O_(n):M_(n)),d.resolvedSymbol}}else if(Rb(n)){return Jr(n,s=169===n.parent.kind?788968:1920,!1,!0)}return 168===n.parent.kind?Jr(n,1):void 0}function Pb(n){if(290===n.kind)return e.isExternalModule(n)?la(n.symbol):void 0;var t=n.parent,r=t.parent;if(!(16777216&n.flags)){if(O(n)){var a=ua(t);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?$m(a):a}if(e.isLiteralComputedPropertyDeclarationName(n))return ua(t.parent);if(75===n.kind){if(Ob(n))return Mb(n);if(191===t.kind&&189===r.kind&&n===t.propertyName){var i=Cs(wb(r),n.escapedText);if(i)return i}}switch(n.kind){case 75:case 76:case 194:case 153:return Mb(n);case 104:var o=e.getThisContainer(n,!1);if(e.isFunctionLike(o)){var s=Ks(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(n))return sh(n).symbol;case 183:return iu(n).symbol;case 102:return sh(n).symbol;case 129:var c=n.parent;return c&&162===c.kind?c.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(254===n.parent.kind||260===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 Yr(n,n);if(e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&t.arguments[1]===n)return ua(t);case 8:var l=e.isElementAccessExpression(t)?t.argumentExpression===n?ah(t.expression):void 0:e.isLiteralTypeNode(t)&&e.isIndexedAccessTypeNode(r)?ou(r.objectType):void 0;return l&&Cs(l,e.escapeLeadingUnderscores(n.text));case 84:case 94:case 38:case 80:return ua(n.parent);case 188:return e.isLiteralImportTypeNode(n)?Pb(n.argument.literal):void 0;case 89:return e.isExportAssignment(n.parent)?e.Debug.assertDefined(n.parent.symbol):void 0;default:return}}}function wb(n){if(16777216&n.flags)return Ee;var t,r,a=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),i=a&&no(ua(a.class));if(e.isPartOfTypeNode(n)){var o=ou(n);return i?Ro(o,i.thisType):o}if(e.isExpressionNode(n))return Gb(n);if(i&&!a.isImplements){var s=e.firstOrUndefined($i(i));return s?Ro(s,i.thisType):Ee}if(Ib(n))return lo(r=ua(n));if(75===(t=n).kind&&Ib(t.parent)&&t.parent.name===t)return(r=Pb(n))?lo(r):Ee;if(e.isDeclaration(n))return Bi(r=ua(n));if(O(n))return(r=Pb(n))?Bi(r):Ee;if(e.isBindingPattern(n))return gi(n.parent,!0)||Ee;if(Ob(n)&&(r=Pb(n))){var c=lo(r);return c!==Ee?c:Bi(r)}return Ee}function Fb(n){if(e.Debug.assert(193===n.kind||192===n.kind),232===n.parent.kind)return Fy(n,vv(n.parent.expression,n.parent.awaitModifier)||Ee);if(209===n.parent.kind)return Fy(n,ah(n.parent.right)||Ee);if(281===n.parent.kind){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression);return Py(t,Fb(t)||Ee,e.indexOfNode(t.properties,n.parent))}var r=e.cast(n.parent,e.isArrayLiteralExpression),a=Fb(r)||Ee,i=bv(65,a,Le,n.parent)||Ee;return wy(r,a,r.elements.indexOf(n),i)}function Gb(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),nu(ah(n))}function Bb(n){var t=ua(n.parent);return e.hasModifier(n,32)?Bi(t):lo(t)}function Ub(n){var t=n.name;switch(t.kind){case 75:return ru(e.idText(t));case 8:case 10:return ru(t.text);case 154:var r=Qm(t);return ky(r,12288)?r:Ie;default:return e.Debug.fail("Unsupported property name.")}}function Vb(n){n=Ss(n);var t=e.createSymbolTable(ls(n)),r=Is(n,0).length?pn:Is(n,1).length?fn:void 0;return r&&e.forEach(ls(r),(function(e){t.has(e.escapedName)||t.set(e.escapedName,e)})),La(t)}function jb(n){return e.typeHasCallOrConstructSignatures(n,oe)}function Hb(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t)return!(194===t.parent.kind&&t.parent.name===t)&&gE(t)===ae}return!1}function Kb(n){var t=Yr(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=ta(t),a=pr(t=ea(t));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(oa(t),(function(e){return(e=Br(e))&&!!(111551&e.flags)}))),a.exportsSomeValue}function Wb(n,t){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var a=gE(r,function(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}(r));if(a){if(1048576&a.flags){var i=la(a.exportSymbol);if(!t&&944&i.flags&&!(3&i.flags))return;a=i}var o=da(a);if(o){if(512&o.flags&&290===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)&&ua(n)===o}))}}}}function qb(n){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=gE(t);if(Gr(r,111551)&&!Hr(r))return Cr(r)}}function zb(n){if(418&n.flags&&!e.isSourceFile(n.valueDeclaration)){var t=pr(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||function(n){return e.isBindingElement(n.valueDeclaration)&&280===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}(n)){var a=fr(n.valueDeclaration);if(yr(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=223===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 Jb(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=gE(t);if(r&&zb(r))return r.valueDeclaration}}}function Xb(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=ua(t);if(r)return zb(r)}return!1}function Yb(n){switch(n.kind){case 253:return Zb(ua(n)||ge);case 255:case 256:case 258:case 263:var t=ua(n)||ge;return Zb(t)&&!Hr(t);case 260:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,Yb));case 259:return!n.expression||75!==n.expression.kind||Zb(ua(n)||ge)}return!1}function Qb(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);return!(void 0===t||290!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Zb(ua(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Zb(e){var n=Ur(e);return n===ge||!!(111551&n.flags)&&(U.preserveConstEnums||!$b(n))}function $b(e){return My(e)||!!e.constEnumOnlyModule}function eE(n,t){if(Dr(n)){var r=ua(n);if(r&&pr(r).referenced)return!0;var a=pr(r).target;if(a&&1&e.getModifierFlags(n)&&111551&a.flags&&(U.preserveConstEnums||!$b(a)))return!0}return!!t&&!!e.forEachChild(n,(function(e){return eE(e,t)}))}function nE(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=zs(ua(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function tE(n){return!(!K||Bs(n)||e.isJSDocParameterTag(n)||!n.initializer||e.hasModifier(n,92))}function rE(n){return K&&Bs(n)&&!n.initializer&&e.hasModifier(n,92)}function aE(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=ua(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(ia(r),(function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)}))}function iE(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=ua(t);return r&&ls(Bi(r))||e.emptyArray}function oE(e){return fr(e).flags||0}function sE(e){return ob(e.parent),fr(e).enumMemberValue}function cE(e){switch(e.kind){case 284:case 194:case 195:return!0}return!1}function lE(n){if(284===n.kind)return sE(n);var t=fr(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return sE(r)}}function uE(e){return!!(524288&e.flags)&&Is(e,0).length>0}function dE(n,t){var r=e.getParseTreeNode(n,e.isEntityName);if(!r)return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var a=Jr(r,111551,!0,!1,t),i=Jr(r,788968,!0,!1,t);if(a&&a===i){var o=jc(!1);if(o&&a===o)return e.TypeReferenceSerializationKind.Promise;var s=Bi(a);if(s&&Ji(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.Unknown;var c=lo(i);return c===Ee?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:ky(c,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:ky(c,528)?e.TypeReferenceSerializationKind.BooleanType:ky(c,296)?e.TypeReferenceSerializationKind.NumberLikeType:ky(c,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:ky(c,132)?e.TypeReferenceSerializationKind.StringLikeType:zd(c)?e.TypeReferenceSerializationKind.ArrayLikeType:ky(c,12288)?e.TypeReferenceSerializationKind.ESSymbolType:uE(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:kd(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function pE(n,t,r,a,i){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.createToken(125);var s=ua(o),c=!s||133120&s.flags?Ee:Hd(Bi(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),i&&(c=tp(c)),$.typeToTypeNode(c,t,1024|r,a)}function fE(n,t,r,a){var i=e.getParseTreeNode(n,e.isFunctionLike);if(!i)return e.createToken(125);var o=Ks(i);return $.typeToTypeNode(Ys(o),t,1024|r,a)}function mE(n,t,r,a){var i=e.getParseTreeNode(n,e.isExpression);if(!i)return e.createToken(125);var o=gp(Gb(i));return $.typeToTypeNode(o,t,1024|r,a)}function _E(n){return ee.has(e.escapeLeadingUnderscores(n))}function gE(n,t){var r=fr(n).resolvedSymbol;if(r)return r;var a=n;if(t){var i=n.parent;e.isDeclaration(i)&&n===i.name&&(a=ri(i))}return yr(a,n.escapedText,3257279,void 0,void 0,!0)}function yE(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=gE(t);if(r)return _a(r).valueDeclaration}}}function hE(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&tu(Bi(ua(n)))}function vE(n,t){return function(n,t,r){return(1024&n.flags?$.symbolToExpression(n.symbol,111551,t,void 0,r):n===Me?e.createTrue():n===Ne&&e.createFalse())||e.createLiteral(n.value)}(Bi(ua(n)),n,t)}function bE(n){var t=249===n.kind?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=Qr(t,t,void 0);if(r)return e.getDeclarationOfKind(r,290)}function EE(n,t){if((a&t)!==t&&U.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,U)&&!(8388608&n.flags)){var i=function(n,t){u||(u=Zr(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||ge);return u}(r,n);if(i!==ge)for(var o=t&~a,s=1;s<=524288;s<<=1)if(o&s){var c=TE(s);_r(i.exports,e.escapeLeadingUnderscores(c),111551)||$t(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 TE(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"__makeTemplateObject";case 262144:return"__classPrivateFieldGet";case 524288:return"__classPrivateFieldSet";default:return e.Debug.fail("Unrecognized helper")}}function SE(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 161!==n.kind||e.nodeIsPresent(n.body)?WE(n,e.Diagnostics.Decorators_are_not_valid_here):WE(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(163===n.kind||164===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return WE(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 163:case 164:case 162:case 159:case 158:case 161:case 160:case 167:case 249:case 254:case 253:case 260:case 259:case 201:case 202:case 156:return!1;default:if(250===n.parent.kind||290===n.parent.kind)return!1;switch(n.kind){case 244:return LE(n,126);case 245:return LE(n,122);case 246:case 225:case 247:return!0;case 248:return LE(n,81);default:return e.Debug.fail(),!1}}}(n)?WE(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 AE(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&qE(n[0],n.end-",".length,",".length,t)}function xE(n,t){if(n&&0===n.length){var r=n.pos-"<".length;return qE(t,r,e.skipTrivia(t.text,n.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function CE(n){if(V>=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($t(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([$t(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var o;return!1}function DE(n){var t=e.getSourceFileOfNode(n);return SE(n)||xE(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 RE(n){return function(n){if(n)for(var t=0,r=n;t1){t=231===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 WE(i.declarations[1],t)}var s=o[0];if(s.initializer){var t=231===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 zE(s.name,t)}if(s.type)return zE(s,t=231===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 GE(n){if(n.parameters.length===(163===n.kind?1:2))return e.getThisParameter(n)}function BE(n,t){if(function(n){return e.isDynamicName(n)&&!Eo(n)}(n))return zE(n,t)}function UE(n){if(DE(n))return!0;if(161===n.kind){if(193===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||126!==e.first(n.modifiers).kind))return WE(n,e.Diagnostics.Modifiers_cannot_appear_here);if(PE(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(wE(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return qE(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(ME(n))return!0}if(e.isClassLike(n.parent)){if(8388608&n.flags)return BE(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(161===n.kind&&!n.body)return BE(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(246===n.parent.kind)return BE(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(173===n.parent.kind)return BE(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 VE(n){return e.isStringOrNumericLiteralLike(n)||207===n.kind&&40===n.operator&&8===n.operand.kind}function jE(n){var t,r=n.initializer;if(r){var a=!(VE(r)||function(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&VE(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&Hy(n).flags)}(r)||106===r.kind||91===r.kind||(t=r,9===t.kind||207===t.kind&&40===t.operator&&9===t.operand.kind)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!i||n.type)return zE(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(a)return zE(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 zE(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function HE(n){var t=n.declarations;return!!AE(n.declarations)||!n.declarations.length&&qE(n,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function KE(e){return e.parseDiagnostics.length>0}function WE(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!KE(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return Vt.add(e.createFileDiagnostic(o,s.start,s.length,t,r,a,i)),!0}return!1}function qE(n,t,r,a,i,o,s){var c=e.getSourceFileOfNode(n);return!KE(c)&&(Vt.add(e.createFileDiagnostic(c,t,r,a,i,o,s)),!0)}function zE(n,t,r,a,i){return!KE(e.getSourceFileOfNode(n))&&(Vt.add(e.createDiagnosticForNode(n,t,r,a,i)),!0)}function JE(n){return 246!==n.kind&&247!==n.kind&&254!==n.kind&&253!==n.kind&&260!==n.kind&&259!==n.kind&&252!==n.kind&&!e.hasModifier(n,515)&&WE(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function XE(n){if(8388608&n.flags){if(!fr(n).hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return fr(n).hasReportedStatementInAmbientContext=WE(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(223===n.parent.kind||250===n.parent.kind||290===n.parent.kind){var t=fr(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=WE(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function YE(n){if(32&n.numericLiteralFlags){var t=void 0;if(V>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,187)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,284)&&(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 zE(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;er(!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 QE(n,t,r){if(1048576&t.flags&&2621440&n.flags){var a=ls(n);if(a){var i=rf(a,t);if(i)return md(t,e.map(i,(function(e){return[function(){return Bi(e)},e.escapedName]})),r)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(C||(C={})),e.signatureHasRestParameter=w,e.signatureHasLiteralTypes=F}(d||(d={})),function(e){function n(n){var t=e.createNode(n,-1,-1);return t.flags|=8,t}function t(n,t){return n!==t&&(mt(n,t),ct(n,t),e.aggregateTransformFlags(n)),n}function r(n,t){if(n&&n!==e.emptyArray){if(e.isNodeArray(n))return n}else n=[];var r=n;return r.pos=-1,r.end=-1,r.hasTrailingComma=t,r}function a(e){if(void 0===e)return e;var t=n(e.kind);for(var r in t.flags|=e.flags,mt(t,e),e)!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function i(n,t){if("number"==typeof n)return o(n+"");if("object"==typeof n&&"base10Value"in n)return s(e.pseudoBigIntToString(n)+"n");if("boolean"==typeof n)return n?m():_();if(e.isString(n)){var r=c(n);return t&&(r.singleQuote=!0),r}return a=n,(i=c(e.getTextOfIdentifierOrLiteral(a))).textSourceNode=a,i;var a,i}function o(e,t){void 0===t&&(t=0);var r=n(8);return r.text=e,r.numericLiteralFlags=t,r}function s(e){var t=n(9);return t.text=e,t}function c(e){var t=n(10);return t.text=e,t}function l(t,a){var i=n(75);return i.escapedText=e.escapeLeadingUnderscores(t),i.originalKeywordKind=t?e.stringToToken(t):0,i.autoGenerateFlags=0,i.autoGenerateId=0,a&&(i.typeArguments=r(a)),i}e.updateNode=t,e.createNodeArray=r,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createBigIntLiteral=s,e.createStringLiteral=c,e.createRegularExpressionLiteral=function(e){var t=n(13);return t.text=e,t},e.createIdentifier=l,e.updateIdentifier=function(n,r){return n.typeArguments!==r?t(l(e.idText(n),r),n):n};var u,d=0;function p(e){var n=l(e);return n.autoGenerateFlags=19,n.autoGenerateId=d,d++,n}function f(e){return n(e)}function m(){return n(106)}function _(){return n(91)}function g(e){return f(e)}function y(e,t){var r=n(153);return r.left=e,r.right=rt(t),r}function h(t){var r=n(154);return r.expression=function(n){return e.isCommaSequence(n)?ge(n):n}(t),r}function v(e,t,r){var a=n(155);return a.name=rt(e),a.constraint=t,a.default=r,a}function b(t,r,a,i,o,s,c){var l=n(156);return l.decorators=it(t),l.modifiers=it(r),l.dotDotDotToken=a,l.name=rt(i),l.questionToken=o,l.type=s,l.initializer=c?e.parenthesizeExpressionForList(c):void 0,l}function E(t){var r=n(157);return r.expression=e.parenthesizeForAccess(t),r}function T(e,t,r,a,i){var o=n(158);return o.modifiers=it(e),o.name=rt(t),o.questionToken=r,o.type=a,o.initializer=i,o}function S(e,t,r,a,i,o){var s=n(159);return s.decorators=it(e),s.modifiers=it(t),s.name=rt(r),s.questionToken=void 0!==a&&57===a.kind?a:void 0,s.exclamationToken=void 0!==a&&53===a.kind?a:void 0,s.type=i,s.initializer=o,s}function L(e,n,t,r,a){var i=N(160,e,n,t);return i.name=rt(r),i.questionToken=a,i}function A(e,t,a,i,o,s,c,l,u){var d=n(161);return d.decorators=it(e),d.modifiers=it(t),d.asteriskToken=a,d.name=rt(i),d.questionToken=o,d.typeParameters=it(s),d.parameters=r(c),d.type=l,d.body=u,d}function x(e,n,t){return function(e,n,t){return ue(ae(e,rt(n)),void 0,t)}(l(e),n,t)}function C(e,n,t){return!!t&&(e.push(Wn(n,t)),!0)}function D(e,t,a,i){var o=n(162);return o.decorators=it(e),o.modifiers=it(t),o.typeParameters=void 0,o.parameters=r(a),o.type=void 0,o.body=i,o}function I(e,t,a,i,o,s){var c=n(163);return c.decorators=it(e),c.modifiers=it(t),c.name=rt(a),c.typeParameters=void 0,c.parameters=r(i),c.type=o,c.body=s,c}function R(e,t,a,i,o){var s=n(164);return s.decorators=it(e),s.modifiers=it(t),s.name=rt(a),s.typeParameters=void 0,s.parameters=r(i),s.body=o,s}function k(e,t,a,i){var o=n(167);return o.decorators=it(e),o.modifiers=it(t),o.parameters=r(a),o.type=i,o}function N(e,t,r,a,i){var o=n(e);return o.typeParameters=it(t),o.parameters=it(r),o.type=a,o.typeArguments=it(i),o}function O(e,n,r,a){return e.typeParameters!==n||e.parameters!==r||e.type!==a?t(N(e.kind,n,r,a),e):e}function M(e,t,r){var a=n(168);return a.assertsModifier=e,a.parameterName=rt(t),a.type=r,a}function P(e,n,r,a){return e.assertsModifier!==n||e.parameterName!==r||e.type!==a?t(M(n,r,a),e):e}function w(t,r){var a=n(169);return a.typeName=rt(t),a.typeArguments=r&&e.parenthesizeTypeParameters(r),a}function F(e){var t=n(172);return t.exprName=e,t}function G(e){var t=n(173);return t.members=r(e),t}function B(t){var r=n(174);return r.elementType=e.parenthesizeArrayTypeMember(t),r}function U(e){var t=n(175);return t.elementTypes=r(e),t}function V(t){var r=n(176);return r.type=e.parenthesizeArrayTypeMember(t),r}function j(e){var t=n(177);return t.type=e,t}function H(t,r){var a=n(t);return a.types=e.parenthesizeElementTypeMembers(r),a}function K(e,n){return e.types!==n?t(H(e.kind,n),e):e}function W(t,r,a,i){var o=n(180);return o.checkType=e.parenthesizeConditionalTypeMember(t),o.extendsType=e.parenthesizeConditionalTypeMember(r),o.trueType=a,o.falseType=i,o}function q(e){var t=n(181);return t.typeParameter=e,t}function z(t,r,a,i){var o=n(188);return o.argument=t,o.qualifier=r,o.typeArguments=e.parenthesizeTypeParameters(a),o.isTypeOf=i,o}function J(e){var t=n(182);return t.type=e,t}function X(t,r){var a=n(184);return a.operator="number"==typeof t?t:134,a.type=e.parenthesizeElementTypeMember("number"==typeof t?r:t),a}function Y(t,r){var a=n(185);return a.objectType=e.parenthesizeElementTypeMember(t),a.indexType=r,a}function Q(e,t,r,a){var i=n(186);return i.readonlyToken=e,i.typeParameter=t,i.questionToken=r,i.type=a,i}function Z(e){var t=n(187);return t.literal=e,t}function $(e){var t=n(189);return t.elements=r(e),t}function ee(e){var t=n(190);return t.elements=r(e),t}function ne(e,t,r,a){var i=n(191);return i.dotDotDotToken=e,i.propertyName=rt(t),i.name=rt(r),i.initializer=a,i}function te(t,a){var i=n(192);return i.elements=e.parenthesizeListElements(r(t)),a&&(i.multiLine=!0),i}function re(e,t){var a=n(193);return a.properties=r(e),t&&(a.multiLine=!0),a}function ae(t,r){var a=n(194);return a.expression=e.parenthesizeForAccess(t),a.name=rt(r),lt(a,131072),a}function ie(t,r,a){var i=n(194);return i.flags|=32,i.expression=e.parenthesizeForAccess(t),i.questionDotToken=r,i.name=rt(a),lt(i,131072),i}function oe(n,r,a,i){return e.Debug.assert(!!(32&n.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),n.expression!==r||n.questionDotToken!==a||n.name!==i?t(lt(ie(r,a,i),e.getEmitFlags(n)),n):n}function se(t,r){var a=n(195);return a.expression=e.parenthesizeForAccess(t),a.argumentExpression=at(r),a}function ce(t,r,a){var i=n(195);return i.flags|=32,i.expression=e.parenthesizeForAccess(t),i.questionDotToken=r,i.argumentExpression=at(a),i}function le(n,r,a,i){return e.Debug.assert(!!(32&n.flags),"Cannot update an ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),n.expression!==r||n.questionDotToken!==a||n.argumentExpression!==i?t(ce(r,a,i),n):n}function ue(t,a,i){var o=n(196);return o.expression=e.parenthesizeForAccess(t),o.typeArguments=it(a),o.arguments=e.parenthesizeListElements(r(i)),o}function de(t,a,i,o){var s=n(196);return s.flags|=32,s.expression=e.parenthesizeForAccess(t),s.questionDotToken=a,s.typeArguments=it(i),s.arguments=e.parenthesizeListElements(r(o)),s}function pe(n,r,a,i,o){return e.Debug.assert(!!(32&n.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),n.expression!==r||n.questionDotToken!==a||n.typeArguments!==i||n.arguments!==o?t(de(r,a,i,o),n):n}function fe(t,a,i){var o=n(197);return o.expression=e.parenthesizeForNew(t),o.typeArguments=it(a),o.arguments=i?e.parenthesizeListElements(r(i)):void 0,o}function me(t,r,a){var i=n(198);return i.tag=e.parenthesizeForAccess(t),a?(i.typeArguments=it(r),i.template=a):(i.typeArguments=void 0,i.template=r),i}function _e(t,r){var a=n(199);return a.type=t,a.expression=e.parenthesizePrefixOperand(r),a}function ge(e){var t=n(200);return t.expression=e,t}function ye(e,t,a,i,o,s,c){var l=n(201);return l.modifiers=it(e),l.asteriskToken=t,l.name=rt(a),l.typeParameters=it(i),l.parameters=r(o),l.type=s,l.body=c,l}function he(t,a,i,o,s,c){var l=n(202);return l.modifiers=it(t),l.typeParameters=it(a),l.parameters=r(i),l.type=o,l.equalsGreaterThanToken=s||f(38),l.body=e.parenthesizeConciseBody(c),l}function ve(t){var r=n(203);return r.expression=e.parenthesizePrefixOperand(t),r}function be(t){var r=n(204);return r.expression=e.parenthesizePrefixOperand(t),r}function Ee(t){var r=n(205);return r.expression=e.parenthesizePrefixOperand(t),r}function Te(t){var r=n(206);return r.expression=e.parenthesizePrefixOperand(t),r}function Se(t,r){var a=n(207);return a.operator=t,a.operand=e.parenthesizePrefixOperand(r),a}function Le(t,r){var a=n(208);return a.operand=e.parenthesizePostfixOperand(t),a.operator=r,a}function Ae(t,r,a){var i,o=n(209),s="number"==typeof(i=r)?f(i):i,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,t,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,a,!1,o.left),o}function xe(t,r,a,i,o){var s=n(210);return s.condition=e.parenthesizeForConditionalHead(t),s.questionToken=o?r:f(57),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?a:r),s.colonToken=o?i:f(58),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||a),s}function Ce(e,t){var a=n(211);return a.head=e,a.templateSpans=r(t),a}e.createTempVariable=function(e,n){var t=l("");return t.autoGenerateFlags=1,t.autoGenerateId=d,d++,e&&e(t),n&&(t.autoGenerateFlags|=8),t},e.createLoopVariable=function(){var e=l("");return e.autoGenerateFlags=2,e.autoGenerateId=d,d++,e},e.createUniqueName=function(e){var n=l(e);return n.autoGenerateFlags=3,n.autoGenerateId=d,d++,n},e.createOptimisticUniqueName=p,e.createFileLevelUniqueName=function(e){var n=p(e);return n.autoGenerateFlags|=32,n},e.getGeneratedNameForNode=function(n,t){var r=l(n&&e.isIdentifier(n)?e.idText(n):"");return r.autoGenerateFlags=4|t,r.autoGenerateId=d,r.original=n,d++,r},e.createPrivateIdentifier=function(t){"#"!==t[0]&&e.Debug.fail("First character of private identifier must be #: "+t);var r=n(76);return r.escapedText=e.escapeLeadingUnderscores(t),r},e.createToken=f,e.createSuper=function(){return n(102)},e.createThis=function(){return n(104)},e.createNull=function(){return n(100)},e.createTrue=m,e.createFalse=_,e.createModifier=g,e.createModifiersFromModifierFlags=function(e){var n=[];return 1&e&&n.push(g(89)),2&e&&n.push(g(130)),512&e&&n.push(g(84)),2048&e&&n.push(g(81)),4&e&&n.push(g(119)),8&e&&n.push(g(117)),16&e&&n.push(g(118)),128&e&&n.push(g(122)),32&e&&n.push(g(120)),64&e&&n.push(g(138)),256&e&&n.push(g(126)),n},e.createQualifiedName=y,e.updateQualifiedName=function(e,n,r){return e.left!==n||e.right!==r?t(y(n,r),e):e},e.createComputedPropertyName=h,e.updateComputedPropertyName=function(e,n){return e.expression!==n?t(h(n),e):e},e.createTypeParameterDeclaration=v,e.updateTypeParameterDeclaration=function(e,n,r,a){return e.name!==n||e.constraint!==r||e.default!==a?t(v(n,r,a),e):e},e.createParameter=b,e.updateParameter=function(e,n,r,a,i,o,s,c){return e.decorators!==n||e.modifiers!==r||e.dotDotDotToken!==a||e.name!==i||e.questionToken!==o||e.type!==s||e.initializer!==c?t(b(n,r,a,i,o,s,c),e):e},e.createDecorator=E,e.updateDecorator=function(e,n){return e.expression!==n?t(E(n),e):e},e.createPropertySignature=T,e.updatePropertySignature=function(e,n,r,a,i,o){return e.modifiers!==n||e.name!==r||e.questionToken!==a||e.type!==i||e.initializer!==o?t(T(n,r,a,i,o),e):e},e.createProperty=S,e.updateProperty=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.questionToken!==(void 0!==i&&57===i.kind?i:void 0)||e.exclamationToken!==(void 0!==i&&53===i.kind?i:void 0)||e.type!==o||e.initializer!==s?t(S(n,r,a,i,o,s),e):e},e.createMethodSignature=L,e.updateMethodSignature=function(e,n,r,a,i,o){return e.typeParameters!==n||e.parameters!==r||e.type!==a||e.name!==i||e.questionToken!==o?t(L(n,r,a,i,o),e):e},e.createMethod=A,e.createObjectDefinePropertyCall=function(e,n,t){return x("Object","defineProperty",[e,at(n),t])},e.createPropertyDescriptor=function(n,t){var r=[];C(r,"enumerable",at(n.enumerable)),C(r,"configurable",at(n.configurable));var a=C(r,"writable",at(n.writable));a=C(r,"value",n.value)||a;var i=C(r,"get",n.get);return i=C(r,"set",n.set)||i,e.Debug.assert(!(a&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),re(r,!t)},e.updateMethod=function(e,n,r,a,i,o,s,c,l,u){return e.decorators!==n||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==l||e.body!==u?t(A(n,r,a,i,o,s,c,l,u),e):e},e.createConstructor=D,e.updateConstructor=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.parameters!==a||e.body!==i?t(D(n,r,a,i),e):e},e.createGetAccessor=I,e.updateGetAccessor=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.parameters!==i||e.type!==o||e.body!==s?t(I(n,r,a,i,o,s),e):e},e.createSetAccessor=R,e.updateSetAccessor=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.parameters!==i||e.body!==o?t(R(n,r,a,i,o),e):e},e.createCallSignature=function(e,n,t){return N(165,e,n,t)},e.updateCallSignature=function(e,n,t,r){return O(e,n,t,r)},e.createConstructSignature=function(e,n,t){return N(166,e,n,t)},e.updateConstructSignature=function(e,n,t,r){return O(e,n,t,r)},e.createIndexSignature=k,e.updateIndexSignature=function(e,n,r,a,i){return e.parameters!==a||e.type!==i||e.decorators!==n||e.modifiers!==r?t(k(n,r,a,i),e):e},e.createSignatureDeclaration=N,e.createKeywordTypeNode=function(e){return n(e)},e.createTypePredicateNode=function(e,n){return M(void 0,e,n)},e.createTypePredicateNodeWithModifier=M,e.updateTypePredicateNode=function(e,n,t){return P(e,e.assertsModifier,n,t)},e.updateTypePredicateNodeWithModifier=P,e.createTypeReferenceNode=w,e.updateTypeReferenceNode=function(e,n,r){return e.typeName!==n||e.typeArguments!==r?t(w(n,r),e):e},e.createFunctionTypeNode=function(e,n,t){return N(170,e,n,t)},e.updateFunctionTypeNode=function(e,n,t,r){return O(e,n,t,r)},e.createConstructorTypeNode=function(e,n,t){return N(171,e,n,t)},e.updateConstructorTypeNode=function(e,n,t,r){return O(e,n,t,r)},e.createTypeQueryNode=F,e.updateTypeQueryNode=function(e,n){return e.exprName!==n?t(F(n),e):e},e.createTypeLiteralNode=G,e.updateTypeLiteralNode=function(e,n){return e.members!==n?t(G(n),e):e},e.createArrayTypeNode=B,e.updateArrayTypeNode=function(e,n){return e.elementType!==n?t(B(n),e):e},e.createTupleTypeNode=U,e.updateTupleTypeNode=function(e,n){return e.elementTypes!==n?t(U(n),e):e},e.createOptionalTypeNode=V,e.updateOptionalTypeNode=function(e,n){return e.type!==n?t(V(n),e):e},e.createRestTypeNode=j,e.updateRestTypeNode=function(e,n){return e.type!==n?t(j(n),e):e},e.createUnionTypeNode=function(e){return H(178,e)},e.updateUnionTypeNode=function(e,n){return K(e,n)},e.createIntersectionTypeNode=function(e){return H(179,e)},e.updateIntersectionTypeNode=function(e,n){return K(e,n)},e.createUnionOrIntersectionTypeNode=H,e.createConditionalTypeNode=W,e.updateConditionalTypeNode=function(e,n,r,a,i){return e.checkType!==n||e.extendsType!==r||e.trueType!==a||e.falseType!==i?t(W(n,r,a,i),e):e},e.createInferTypeNode=q,e.updateInferTypeNode=function(e,n){return e.typeParameter!==n?t(q(n),e):e},e.createImportTypeNode=z,e.updateImportTypeNode=function(e,n,r,a,i){return e.argument!==n||e.qualifier!==r||e.typeArguments!==a||e.isTypeOf!==i?t(z(n,r,a,i),e):e},e.createParenthesizedType=J,e.updateParenthesizedType=function(e,n){return e.type!==n?t(J(n),e):e},e.createThisTypeNode=function(){return n(183)},e.createTypeOperatorNode=X,e.updateTypeOperatorNode=function(e,n){return e.type!==n?t(X(e.operator,n),e):e},e.createIndexedAccessTypeNode=Y,e.updateIndexedAccessTypeNode=function(e,n,r){return e.objectType!==n||e.indexType!==r?t(Y(n,r),e):e},e.createMappedTypeNode=Q,e.updateMappedTypeNode=function(e,n,r,a,i){return e.readonlyToken!==n||e.typeParameter!==r||e.questionToken!==a||e.type!==i?t(Q(n,r,a,i),e):e},e.createLiteralTypeNode=Z,e.updateLiteralTypeNode=function(e,n){return e.literal!==n?t(Z(n),e):e},e.createObjectBindingPattern=$,e.updateObjectBindingPattern=function(e,n){return e.elements!==n?t($(n),e):e},e.createArrayBindingPattern=ee,e.updateArrayBindingPattern=function(e,n){return e.elements!==n?t(ee(n),e):e},e.createBindingElement=ne,e.updateBindingElement=function(e,n,r,a,i){return e.propertyName!==r||e.dotDotDotToken!==n||e.name!==a||e.initializer!==i?t(ne(n,r,a,i),e):e},e.createArrayLiteral=te,e.updateArrayLiteral=function(e,n){return e.elements!==n?t(te(n,e.multiLine),e):e},e.createObjectLiteral=re,e.updateObjectLiteral=function(e,n){return e.properties!==n?t(re(n,e.multiLine),e):e},e.createPropertyAccess=ae,e.updatePropertyAccess=function(n,r,a){return e.isOptionalChain(n)&&e.isIdentifier(n.name)&&e.isIdentifier(a)?oe(n,r,n.questionDotToken,a):n.expression!==r||n.name!==a?t(lt(ae(r,a),e.getEmitFlags(n)),n):n},e.createPropertyAccessChain=ie,e.updatePropertyAccessChain=oe,e.createElementAccess=se,e.updateElementAccess=function(n,r,a){return e.isOptionalChain(n)?le(n,r,n.questionDotToken,a):n.expression!==r||n.argumentExpression!==a?t(se(r,a),n):n},e.createElementAccessChain=ce,e.updateElementAccessChain=le,e.createCall=ue,e.updateCall=function(n,r,a,i){return e.isOptionalChain(n)?pe(n,r,n.questionDotToken,a,i):n.expression!==r||n.typeArguments!==a||n.arguments!==i?t(ue(r,a,i),n):n},e.createCallChain=de,e.updateCallChain=pe,e.createNew=fe,e.updateNew=function(e,n,r,a){return e.expression!==n||e.typeArguments!==r||e.arguments!==a?t(fe(n,r,a),e):e},e.createTaggedTemplate=me,e.updateTaggedTemplate=function(e,n,r,a){return e.tag!==n||(a?e.typeArguments!==r||e.template!==a:void 0!==e.typeArguments||e.template!==r)?t(me(n,r,a),e):e},e.createTypeAssertion=_e,e.updateTypeAssertion=function(e,n,r){return e.type!==n||e.expression!==r?t(_e(n,r),e):e},e.createParen=ge,e.updateParen=function(e,n){return e.expression!==n?t(ge(n),e):e},e.createFunctionExpression=ye,e.updateFunctionExpression=function(e,n,r,a,i,o,s,c){return e.name!==a||e.modifiers!==n||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?t(ye(n,r,a,i,o,s,c),e):e},e.createArrowFunction=he,e.updateArrowFunction=function(e,n,r,a,i,o,s){return e.modifiers!==n||e.typeParameters!==r||e.parameters!==a||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==s?t(he(n,r,a,i,o,s),e):e},e.createDelete=ve,e.updateDelete=function(e,n){return e.expression!==n?t(ve(n),e):e},e.createTypeOf=be,e.updateTypeOf=function(e,n){return e.expression!==n?t(be(n),e):e},e.createVoid=Ee,e.updateVoid=function(e,n){return e.expression!==n?t(Ee(n),e):e},e.createAwait=Te,e.updateAwait=function(e,n){return e.expression!==n?t(Te(n),e):e},e.createPrefix=Se,e.updatePrefix=function(e,n){return e.operand!==n?t(Se(e.operator,n),e):e},e.createPostfix=Le,e.updatePostfix=function(e,n){return e.operand!==n?t(Le(n,e.operator),e):e},e.createBinary=Ae,e.updateBinary=function(e,n,r,a){return e.left!==n||e.right!==r?t(Ae(n,a||e.operatorToken,r),e):e},e.createConditional=xe,e.updateConditional=function(e,n,r,a,i,o){return e.condition!==n||e.questionToken!==r||e.whenTrue!==a||e.colonToken!==i||e.whenFalse!==o?t(xe(n,r,a,i,o),e):e},e.createTemplateExpression=Ce,e.updateTemplateExpression=function(e,n,r){return e.head!==n||e.templateSpans!==r?t(Ce(n,r),e):e};var De,Ie,Re={};function ke(t,r,a){var i=n(t);if(i.text=r,void 0===a||r===a)i.rawText=a;else{var o=function(n,t){switch(u||(u=e.createScanner(99,!1,0)),n){case 14:u.setText("`"+t+"`");break;case 15:u.setText("`"+t+"${");break;case 16:u.setText("}"+t+"${");break;case 17:u.setText("}"+t+"`")}var r,a=u.scan();if(23===a&&(a=u.reScanTemplateToken()),u.isUnterminated())return u.setText(void 0),Re;switch(a){case 14:case 15:case 16:case 17:r=u.getTokenValue()}return 1!==u.scan()?(u.setText(void 0),Re):(u.setText(void 0),r)}(t,a);if("object"==typeof o)return e.Debug.fail("Invalid raw text");e.Debug.assert(r===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'."),i.rawText=a}return i}function Ne(e,t){var r=n(212);return r.asteriskToken=e&&41===e.kind?e:void 0,r.expression=e&&41!==e.kind?e:t,r}function Oe(t){var r=n(213);return r.expression=e.parenthesizeExpressionForList(t),r}function Me(e,t,a,i,o){var s=n(214);return s.decorators=void 0,s.modifiers=it(e),s.name=rt(t),s.typeParameters=it(a),s.heritageClauses=it(i),s.members=r(o),s}function Pe(t,r){var a=n(216);return a.expression=e.parenthesizeForAccess(r),a.typeArguments=it(t),a}function we(e,t){var r=n(217);return r.expression=e,r.type=t,r}function Fe(t){var r=n(218);return r.expression=e.parenthesizeForAccess(t),r}function Ge(e,t){var r=n(219);return r.keywordToken=e,r.name=t,r}function Be(e,t){var r=n(221);return r.expression=e,r.literal=t,r}function Ue(e,t){var a=n(223);return a.statements=r(e),t&&(a.multiLine=t),a}function Ve(t,r){var a=n(225);return a.decorators=void 0,a.modifiers=it(t),a.declarationList=e.isArray(r)?cn(r):r,a}function je(){return n(224)}function He(t){var r=n(226);return r.expression=e.parenthesizeExpressionForExpressionStatement(t),r}function Ke(e,n){return e.expression!==n?t(He(n),e):e}function We(e,t,r){var a=n(227);return a.expression=e,a.thenStatement=ot(t),a.elseStatement=ot(r),a}function qe(e,t){var r=n(228);return r.statement=ot(e),r.expression=t,r}function ze(e,t){var r=n(229);return r.expression=e,r.statement=ot(t),r}function Je(e,t,r,a){var i=n(230);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=ot(a),i}function Xe(e,t,r){var a=n(231);return a.initializer=e,a.expression=t,a.statement=ot(r),a}function Ye(t,r,a,i){var o=n(232);return o.awaitModifier=t,o.initializer=r,o.expression=e.isCommaSequence(a)?ge(a):a,o.statement=ot(i),o}function Qe(e){var t=n(233);return t.label=rt(e),t}function Ze(e){var t=n(234);return t.label=rt(e),t}function $e(e){var t=n(235);return t.expression=e,t}function en(e,t){var r=n(236);return r.expression=e,r.statement=ot(t),r}function nn(t,r){var a=n(237);return a.expression=e.parenthesizeExpressionForList(t),a.caseBlock=r,a}function tn(e,t){var r=n(238);return r.label=rt(e),r.statement=ot(t),r}function rn(e){var t=n(239);return t.expression=e,t}function an(e,t,r){var a=n(240);return a.tryBlock=e,a.catchClause=t,a.finallyBlock=r,a}function on(t,r,a){var i=n(242);return i.name=rt(t),i.type=r,i.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,i}function sn(t,r,a,i){var o=n(242);return o.name=rt(t),o.type=a,o.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,o.exclamationToken=r,o}function cn(e,t){void 0===t&&(t=0);var a=n(243);return a.flags|=3&t,a.declarations=r(e),a}function ln(e,t,a,i,o,s,c,l){var u=n(244);return u.decorators=it(e),u.modifiers=it(t),u.asteriskToken=a,u.name=rt(i),u.typeParameters=it(o),u.parameters=r(s),u.type=c,u.body=l,u}function un(e,t,a,i,o,s){var c=n(245);return c.decorators=it(e),c.modifiers=it(t),c.name=rt(a),c.typeParameters=it(i),c.heritageClauses=it(o),c.members=r(s),c}function dn(e,t,a,i,o,s){var c=n(246);return c.decorators=it(e),c.modifiers=it(t),c.name=rt(a),c.typeParameters=it(i),c.heritageClauses=it(o),c.members=r(s),c}function pn(e,t,r,a,i){var o=n(247);return o.decorators=it(e),o.modifiers=it(t),o.name=rt(r),o.typeParameters=it(a),o.type=i,o}function fn(e,t,a,i){var o=n(248);return o.decorators=it(e),o.modifiers=it(t),o.name=rt(a),o.members=r(i),o}function mn(e,t,r,a,i){void 0===i&&(i=0);var o=n(249);return o.flags|=1044&i,o.decorators=it(e),o.modifiers=it(t),o.name=r,o.body=a,o}function _n(e){var t=n(250);return t.statements=r(e),t}function gn(e){var t=n(251);return t.clauses=r(e),t}function yn(e){var t=n(252);return t.name=rt(e),t}function hn(e,t,r,a){var i=n(253);return i.decorators=it(e),i.modifiers=it(t),i.name=rt(r),i.moduleReference=a,i}function vn(e,t,r,a){var i=n(254);return i.decorators=it(e),i.modifiers=it(t),i.importClause=r,i.moduleSpecifier=a,i}function bn(e,t,r){void 0===r&&(r=!1);var a=n(255);return a.name=e,a.namedBindings=t,a.isTypeOnly=r,a}function En(e){var t=n(256);return t.name=e,t}function Tn(e){var t=n(262);return t.name=e,t}function Sn(e){var t=n(257);return t.elements=r(e),t}function Ln(e,t){var r=n(258);return r.propertyName=e,r.name=t,r}function An(t,r,a,i){var o=n(259);return o.decorators=it(t),o.modifiers=it(r),o.isExportEquals=a,o.expression=a?e.parenthesizeBinaryOperand(62,i,!1,void 0):e.parenthesizeDefaultExpression(i),o}function xn(e,t,r,a,i){void 0===i&&(i=!1);var o=n(260);return o.decorators=it(e),o.modifiers=it(t),o.isTypeOnly=i,o.exportClause=r,o.moduleSpecifier=a,o}function Cn(e){var t=n(261);return t.elements=r(e),t}function Dn(e,t){var r=n(263);return r.propertyName=rt(e),r.name=rt(t),r}function In(e){var t=n(265);return t.expression=e,t}function Rn(e,t){var r=n(e);return r.tagName=l(t),r}function kn(e,t,a){var i=n(266);return i.openingElement=e,i.children=r(t),i.closingElement=a,i}function Nn(e,t,r){var a=n(267);return a.tagName=e,a.typeArguments=it(t),a.attributes=r,a}function On(e,t,r){var a=n(268);return a.tagName=e,a.typeArguments=it(t),a.attributes=r,a}function Mn(e){var t=n(269);return t.tagName=e,t}function Pn(e,t,a){var i=n(270);return i.openingFragment=e,i.children=r(t),i.closingFragment=a,i}function wn(e,t){var r=n(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r}function Fn(e,t){var r=n(273);return r.name=e,r.initializer=t,r}function Gn(e){var t=n(274);return t.properties=r(e),t}function Bn(e){var t=n(275);return t.expression=e,t}function Un(e,t){var r=n(276);return r.dotDotDotToken=e,r.expression=t,r}function Vn(t,a){var i=n(277);return i.expression=e.parenthesizeExpressionForList(t),i.statements=r(a),i}function jn(e){var t=n(278);return t.statements=r(e),t}function Hn(e,t){var a=n(279);return a.token=e,a.types=r(t),a}function Kn(t,r){var a=n(280);return a.variableDeclaration=e.isString(t)?on(t):t,a.block=r,a}function Wn(t,r){var a=n(281);return a.name=rt(t),a.questionToken=void 0,a.initializer=e.parenthesizeExpressionForList(r),a}function qn(t,r){var a=n(282);return a.name=rt(t),a.objectAssignmentInitializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,a}function zn(t){var r=n(283);return r.expression=e.parenthesizeExpressionForList(t),r}function Jn(t,r){var a=n(284);return a.name=rt(t),a.initializer=r&&e.parenthesizeExpressionForList(r),a}function Xn(e,t){var r=n(325);return r.expression=e,r.original=t,ct(r,t),r}function Yn(n){if(e.nodeIsSynthesized(n)&&!e.isParseTreeNode(n)&&!n.original&&!n.emitNode&&!n.id){if(326===n.kind)return n.elements;if(e.isBinaryExpression(n)&&27===n.operatorToken.kind)return[n.left,n.right]}return n}function Qn(t){var a=n(326);return a.elements=r(e.sameFlatMap(t,Yn)),a}function Zn(e,t){var r=n(329);return r.expression=e,r.thisArg=t,r}function $n(n,t){void 0===t&&(t=e.emptyArray);var r=e.createNode(291);return r.prepends=t,r.sourceFiles=n,r}function et(){return De||(De=e.arrayToMap([e.valuesHelper,e.readHelper,e.spreadHelper,e.spreadArraysHelper,e.restHelper,e.decorateHelper,e.metadataHelper,e.paramHelper,e.awaiterHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.extendsHelper,e.templateObjectHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper],(function(e){return e.name})))}function nt(n,t){var r=e.createNode(function(n){switch(n){case"prologue":return 285;case"prepend":return 286;case"internal":return 288;case"text":return 287;case"emitHelpers":case"no-default-lib":case"reference":case"type":case"lib":return e.Debug.fail("BundleFileSectionKind: "+n+" not yet mapped to SyntaxKind");default:return e.Debug.assertNever(n)}}(n.kind),n.pos,n.end);return r.parent=t,r.data=n.data,r}function tt(n,t){var r=e.createNode(289,n.pos,n.end);return r.parent=t,r.data=n.data,r.section=n,r}function rt(n){return e.isString(n)?l(n):n}function at(e){return"string"==typeof e?c(e):"number"==typeof e?o(""+e):"boolean"==typeof e?e?m():_():e}function it(e){return e?r(e):void 0}function ot(n){return n&&e.isNotEmittedStatement(n)?ct(mt(je(),n),n):n}function st(n){if(!n.emitNode){if(e.isParseTreeNode(n)){if(290===n.kind)return n.emitNode={annotatedNodes:[n]};st(e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(n)))).annotatedNodes.push(n)}n.emitNode={}}return n.emitNode}function ct(e,n){return n&&(e.pos=n.pos,e.end=n.end),e}function lt(e,n){return st(e).flags=n,e}function ut(e){var n=e.emitNode;return n&&n.leadingComments}function dt(e,n){return st(e).leadingComments=n,e}function pt(e){var n=e.emitNode;return n&&n.trailingComments}function ft(e,n){return st(e).trailingComments=n,e}function mt(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);u&&(t.helpers=e.addRange(t.helpers,u));void 0!==d&&(t.startsOnNewLine=d);return t}(r,n.emitNode))}return n}e.createTemplateHead=function(e,n){var t=ke(15,e,n);return t.text=e,t},e.createTemplateMiddle=function(e,n){var t=ke(16,e,n);return t.text=e,t},e.createTemplateTail=function(e,n){var t=ke(17,e,n);return t.text=e,t},e.createNoSubstitutionTemplateLiteral=function(e,n){return ke(14,e,n)},e.createYield=Ne,e.updateYield=function(e,n,r){return e.expression!==r||e.asteriskToken!==n?t(Ne(n,r),e):e},e.createSpread=Oe,e.updateSpread=function(e,n){return e.expression!==n?t(Oe(n),e):e},e.createClassExpression=Me,e.updateClassExpression=function(e,n,r,a,i,o){return e.modifiers!==n||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?t(Me(n,r,a,i,o),e):e},e.createOmittedExpression=function(){return n(215)},e.createExpressionWithTypeArguments=Pe,e.updateExpressionWithTypeArguments=function(e,n,r){return e.typeArguments!==n||e.expression!==r?t(Pe(n,r),e):e},e.createAsExpression=we,e.updateAsExpression=function(e,n,r){return e.expression!==n||e.type!==r?t(we(n,r),e):e},e.createNonNullExpression=Fe,e.updateNonNullExpression=function(e,n){return e.expression!==n?t(Fe(n),e):e},e.createMetaProperty=Ge,e.updateMetaProperty=function(e,n){return e.name!==n?t(Ge(e.keywordToken,n),e):e},e.createTemplateSpan=Be,e.updateTemplateSpan=function(e,n,r){return e.expression!==n||e.literal!==r?t(Be(n,r),e):e},e.createSemicolonClassElement=function(){return n(222)},e.createBlock=Ue,e.updateBlock=function(e,n){return e.statements!==n?t(Ue(n,e.multiLine),e):e},e.createVariableStatement=Ve,e.updateVariableStatement=function(e,n,r){return e.modifiers!==n||e.declarationList!==r?t(Ve(n,r),e):e},e.createEmptyStatement=je,e.createExpressionStatement=He,e.updateExpressionStatement=Ke,e.createStatement=He,e.updateStatement=Ke,e.createIf=We,e.updateIf=function(e,n,r,a){return e.expression!==n||e.thenStatement!==r||e.elseStatement!==a?t(We(n,r,a),e):e},e.createDo=qe,e.updateDo=function(e,n,r){return e.statement!==n||e.expression!==r?t(qe(n,r),e):e},e.createWhile=ze,e.updateWhile=function(e,n,r){return e.expression!==n||e.statement!==r?t(ze(n,r),e):e},e.createFor=Je,e.updateFor=function(e,n,r,a,i){return e.initializer!==n||e.condition!==r||e.incrementor!==a||e.statement!==i?t(Je(n,r,a,i),e):e},e.createForIn=Xe,e.updateForIn=function(e,n,r,a){return e.initializer!==n||e.expression!==r||e.statement!==a?t(Xe(n,r,a),e):e},e.createForOf=Ye,e.updateForOf=function(e,n,r,a,i){return e.awaitModifier!==n||e.initializer!==r||e.expression!==a||e.statement!==i?t(Ye(n,r,a,i),e):e},e.createContinue=Qe,e.updateContinue=function(e,n){return e.label!==n?t(Qe(n),e):e},e.createBreak=Ze,e.updateBreak=function(e,n){return e.label!==n?t(Ze(n),e):e},e.createReturn=$e,e.updateReturn=function(e,n){return e.expression!==n?t($e(n),e):e},e.createWith=en,e.updateWith=function(e,n,r){return e.expression!==n||e.statement!==r?t(en(n,r),e):e},e.createSwitch=nn,e.updateSwitch=function(e,n,r){return e.expression!==n||e.caseBlock!==r?t(nn(n,r),e):e},e.createLabel=tn,e.updateLabel=function(e,n,r){return e.label!==n||e.statement!==r?t(tn(n,r),e):e},e.createThrow=rn,e.updateThrow=function(e,n){return e.expression!==n?t(rn(n),e):e},e.createTry=an,e.updateTry=function(e,n,r,a){return e.tryBlock!==n||e.catchClause!==r||e.finallyBlock!==a?t(an(n,r,a),e):e},e.createDebuggerStatement=function(){return n(241)},e.createVariableDeclaration=on,e.updateVariableDeclaration=function(e,n,r,a){return e.name!==n||e.type!==r||e.initializer!==a?t(on(n,r,a),e):e},e.createTypeScriptVariableDeclaration=sn,e.updateTypeScriptVariableDeclaration=function(e,n,r,a,i){return e.name!==n||e.type!==a||e.initializer!==i||e.exclamationToken!==r?t(sn(n,r,a,i),e):e},e.createVariableDeclarationList=cn,e.updateVariableDeclarationList=function(e,n){return e.declarations!==n?t(cn(n,e.flags),e):e},e.createFunctionDeclaration=ln,e.updateFunctionDeclaration=function(e,n,r,a,i,o,s,c,l){return e.decorators!==n||e.modifiers!==r||e.asteriskToken!==a||e.name!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?t(ln(n,r,a,i,o,s,c,l),e):e},e.createClassDeclaration=un,e.updateClassDeclaration=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?t(un(n,r,a,i,o,s),e):e},e.createInterfaceDeclaration=dn,e.updateInterfaceDeclaration=function(e,n,r,a,i,o,s){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?t(dn(n,r,a,i,o,s),e):e},e.createTypeAliasDeclaration=pn,e.updateTypeAliasDeclaration=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.typeParameters!==i||e.type!==o?t(pn(n,r,a,i,o),e):e},e.createEnumDeclaration=fn,e.updateEnumDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.members!==i?t(fn(n,r,a,i),e):e},e.createModuleDeclaration=mn,e.updateModuleDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.body!==i?t(mn(n,r,a,i,e.flags),e):e},e.createModuleBlock=_n,e.updateModuleBlock=function(e,n){return e.statements!==n?t(_n(n),e):e},e.createCaseBlock=gn,e.updateCaseBlock=function(e,n){return e.clauses!==n?t(gn(n),e):e},e.createNamespaceExportDeclaration=yn,e.updateNamespaceExportDeclaration=function(e,n){return e.name!==n?t(yn(n),e):e},e.createImportEqualsDeclaration=hn,e.updateImportEqualsDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.name!==a||e.moduleReference!==i?t(hn(n,r,a,i),e):e},e.createImportDeclaration=vn,e.updateImportDeclaration=function(e,n,r,a,i){return e.decorators!==n||e.modifiers!==r||e.importClause!==a||e.moduleSpecifier!==i?t(vn(n,r,a,i),e):e},e.createImportClause=bn,e.updateImportClause=function(e,n,r,a){return e.name!==n||e.namedBindings!==r||e.isTypeOnly!==a?t(bn(n,r,a),e):e},e.createNamespaceImport=En,e.createNamespaceExport=Tn,e.updateNamespaceImport=function(e,n){return e.name!==n?t(En(n),e):e},e.updateNamespaceExport=function(e,n){return e.name!==n?t(Tn(n),e):e},e.createNamedImports=Sn,e.updateNamedImports=function(e,n){return e.elements!==n?t(Sn(n),e):e},e.createImportSpecifier=Ln,e.updateImportSpecifier=function(e,n,r){return e.propertyName!==n||e.name!==r?t(Ln(n,r),e):e},e.createExportAssignment=An,e.updateExportAssignment=function(e,n,r,a){return e.decorators!==n||e.modifiers!==r||e.expression!==a?t(An(n,r,e.isExportEquals,a),e):e},e.createExportDeclaration=xn,e.updateExportDeclaration=function(e,n,r,a,i,o){return e.decorators!==n||e.modifiers!==r||e.isTypeOnly!==o||e.exportClause!==a||e.moduleSpecifier!==i?t(xn(n,r,a,i,o),e):e},e.createEmptyExports=function(){return xn(void 0,void 0,Cn([]),void 0)},e.createNamedExports=Cn,e.updateNamedExports=function(e,n){return e.elements!==n?t(Cn(n),e):e},e.createExportSpecifier=Dn,e.updateExportSpecifier=function(e,n,r){return e.propertyName!==n||e.name!==r?t(Dn(n,r),e):e},e.createExternalModuleReference=In,e.updateExternalModuleReference=function(e,n){return e.expression!==n?t(In(n),e):e},e.createJSDocTypeExpression=function(e){var t=n(294);return t.type=e,t},e.createJSDocTypeTag=function(e,n){var t=Rn(319,"type");return t.typeExpression=e,t.comment=n,t},e.createJSDocReturnTag=function(e,n){var t=Rn(317,"returns");return t.typeExpression=e,t.comment=n,t},e.createJSDocThisTag=function(e){var n=Rn(318,"this");return n.typeExpression=e,n},e.createJSDocParamTag=function(e,n,t,r){var a=Rn(316,"param");return a.typeExpression=t,a.name=e,a.isBracketed=n,a.comment=r,a},e.createJSDocComment=function(e,t){var r=n(303);return r.comment=e,r.tags=t,r},e.createJsxElement=kn,e.updateJsxElement=function(e,n,r,a){return e.openingElement!==n||e.children!==r||e.closingElement!==a?t(kn(n,r,a),e):e},e.createJsxSelfClosingElement=Nn,e.updateJsxSelfClosingElement=function(e,n,r,a){return e.tagName!==n||e.typeArguments!==r||e.attributes!==a?t(Nn(n,r,a),e):e},e.createJsxOpeningElement=On,e.updateJsxOpeningElement=function(e,n,r,a){return e.tagName!==n||e.typeArguments!==r||e.attributes!==a?t(On(n,r,a),e):e},e.createJsxClosingElement=Mn,e.updateJsxClosingElement=function(e,n){return e.tagName!==n?t(Mn(n),e):e},e.createJsxFragment=Pn,e.createJsxText=wn,e.updateJsxText=function(e,n,r){return e.text!==n||e.containsOnlyTriviaWhiteSpaces!==r?t(wn(n,r),e):e},e.createJsxOpeningFragment=function(){return n(271)},e.createJsxJsxClosingFragment=function(){return n(272)},e.updateJsxFragment=function(e,n,r,a){return e.openingFragment!==n||e.children!==r||e.closingFragment!==a?t(Pn(n,r,a),e):e},e.createJsxAttribute=Fn,e.updateJsxAttribute=function(e,n,r){return e.name!==n||e.initializer!==r?t(Fn(n,r),e):e},e.createJsxAttributes=Gn,e.updateJsxAttributes=function(e,n){return e.properties!==n?t(Gn(n),e):e},e.createJsxSpreadAttribute=Bn,e.updateJsxSpreadAttribute=function(e,n){return e.expression!==n?t(Bn(n),e):e},e.createJsxExpression=Un,e.updateJsxExpression=function(e,n){return e.expression!==n?t(Un(e.dotDotDotToken,n),e):e},e.createCaseClause=Vn,e.updateCaseClause=function(e,n,r){return e.expression!==n||e.statements!==r?t(Vn(n,r),e):e},e.createDefaultClause=jn,e.updateDefaultClause=function(e,n){return e.statements!==n?t(jn(n),e):e},e.createHeritageClause=Hn,e.updateHeritageClause=function(e,n){return e.types!==n?t(Hn(e.token,n),e):e},e.createCatchClause=Kn,e.updateCatchClause=function(e,n,r){return e.variableDeclaration!==n||e.block!==r?t(Kn(n,r),e):e},e.createPropertyAssignment=Wn,e.updatePropertyAssignment=function(e,n,r){return e.name!==n||e.initializer!==r?t(Wn(n,r),e):e},e.createShorthandPropertyAssignment=qn,e.updateShorthandPropertyAssignment=function(e,n,r){return e.name!==n||e.objectAssignmentInitializer!==r?t(qn(n,r),e):e},e.createSpreadAssignment=zn,e.updateSpreadAssignment=function(e,n){return e.expression!==n?t(zn(n),e):e},e.createEnumMember=Jn,e.updateEnumMember=function(e,n,r){return e.name!==n||e.initializer!==r?t(Jn(n,r),e):e},e.updateSourceFileNode=function(e,a,i,o,s,c,l){if(e.statements!==a||void 0!==i&&e.isDeclarationFile!==i||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==l&&e.libReferenceDirectives!==l||void 0!==c&&e.hasNoDefaultLib!==c){var u=n(290);return u.flags|=e.flags,u.statements=r(a),u.endOfFileToken=e.endOfFileToken,u.fileName=e.fileName,u.path=e.path,u.text=e.text,u.isDeclarationFile=void 0===i?e.isDeclarationFile:i,u.referencedFiles=void 0===o?e.referencedFiles:o,u.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,u.hasNoDefaultLib=void 0===c?e.hasNoDefaultLib:c,u.libReferenceDirectives=void 0===l?e.libReferenceDirectives:l,void 0!==e.amdDependencies&&(u.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(u.moduleName=e.moduleName),void 0!==e.languageVariant&&(u.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(u.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(u.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(u.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(u.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(u.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(u.identifiers=e.identifiers),void 0!==e.nodeCount&&(u.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(u.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(u.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(u.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(u.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(u.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(u.lineMap=e.lineMap),void 0!==e.classifiableNames&&(u.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(u.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(u.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(u.imports=e.imports),void 0!==e.moduleAugmentations&&(u.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(u.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(u.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(u.localJsxNamespace=e.localJsxNamespace),t(u,e)}return e},e.getMutableClone=function(e){var n=a(e);return n.pos=e.pos,n.end=e.end,n.parent=e.parent,n},e.createNotEmittedStatement=function(e){var t=n(324);return t.original=e,ct(t,e),t},e.createEndOfDeclarationMarker=function(e){var t=n(328);return t.emitNode={},t.original=e,t},e.createMergeDeclarationMarker=function(e){var t=n(327);return t.emitNode={},t.original=e,t},e.createPartiallyEmittedExpression=Xn,e.updatePartiallyEmittedExpression=function(e,n){return e.expression!==n?t(Xn(n,e.original),e):e},e.createCommaList=Qn,e.updateCommaList=function(e,n){return e.elements!==n?t(Qn(n),e):e},e.createSyntheticReferenceExpression=Zn,e.updateSyntheticReferenceExpression=function(e,n,r){return e.expression!==n||e.thisArg!==r?t(Zn(n,r),e):e},e.createBundle=$n,e.createUnparsedSourceFile=function(n,t,r){var a,i,o=function(){var n=e.createNode(292);return n.prologues=e.emptyArray,n.referencedFiles=e.emptyArray,n.libReferenceDirectives=e.emptyArray,n.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(n,t)},n}();if(e.isString(n))o.fileName="",o.text=n,o.sourceMapPath=t,o.sourceMapText=r;else if(e.Debug.assert("js"===t||"dts"===t),o.fileName=("js"===t?n.javascriptPath:n.declarationPath)||"",o.sourceMapPath="js"===t?n.javascriptMapPath:n.declarationMapPath,Object.defineProperties(o,{text:{get:function(){return"js"===t?n.javascriptText:n.declarationText}},sourceMapText:{get:function(){return"js"===t?n.javascriptMapText:n.declarationMapText}}}),n.buildInfo&&n.buildInfo.bundle&&(o.oldFileOfCurrentEmit=n.oldFileOfCurrentEmit,e.Debug.assert(void 0===r||"boolean"==typeof r),a=r,i="js"===t?n.buildInfo.bundle.js:n.buildInfo.bundle.dts,o.oldFileOfCurrentEmit))return function(n,t){var r,a;e.Debug.assert(!!n.oldFileOfCurrentEmit);for(var i=0,o=t.sections;i0&&(i[c-s]=l)}s>0&&(i.length-=s)}},e.compareEmitHelpers=function(n,t){return n===t||n.priority===t.priority?0:void 0===n.priority?1:void 0===t.priority?-1:e.compareValues(n.priority,t.priority)},e.setOriginalNode=mt}(d||(d={})),function(e){function n(n,t,r){if(e.isComputedPropertyName(t))return e.setTextRange(e.createElementAccess(n,t.expression),r);var a=e.setTextRange(e.isIdentifier(t)||e.isPrivateIdentifier(t)?e.createPropertyAccess(n,t):e.createElementAccess(n,t),t);return e.getOrCreateEmitNode(a).flags|=64,a}function t(n,t){var r=e.createIdentifier(n||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(t),r}function r(n,r,a){return n?function n(r,a){if(e.isQualifiedName(r)){var i=n(r.left,a),o=e.createIdentifier(e.idText(r.right));return o.escapedText=r.right.escapedText,e.createPropertyAccess(i,o)}return t(e.idText(r),a)}(n,a):e.createPropertyAccess(t(r,a),"createElement")}function a(n){return e.setEmitFlags(e.createIdentifier(n),4098)}function o(n,t){var r=e.skipParentheses(n);switch(r.kind){case 75:return t;case 104:case 8:case 9:case 10:return!1;case 192:return 0!==r.elements.length;case 193:return r.properties.length>0;default:return!0}}function s(n){return e.isIdentifier(n)?e.createLiteral(n):e.isComputedPropertyName(n)?e.getMutableClone(n.expression):e.getMutableClone(n)}function c(e,n,t){return l(e,n,t,8192)}function l(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.getMutableClone(i);return a|=e.getEmitFlags(i),r||(a|=48),t||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(n)}function u(n,t,r,a){var i=e.createPropertyAccess(n,e.nodeIsSynthesized(t)?t:e.getSynthesizedClone(t));e.setTextRange(i,t);var o=0;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function d(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function p(n,t,r){e.Debug.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=t.length;ie.getOperatorPrecedence(209,27)?n:e.setTextRange(e.createParen(n),n)}function h(n){return 180===n.kind?e.createParenthesizedType(n):n}function v(n){switch(n.kind){case 178:case 179:case 170:case 171:return e.createParenthesizedType(n)}return h(n)}function b(e,n){for(;;){switch(e.kind){case 208:e=e.operand;continue;case 209:e=e.left;continue;case 210:e=e.condition;continue;case 198:e=e.tag;continue;case 196:if(n)return e;case 217:case 195:case 194:case 218:case 325:e=e.expression;continue}return e}}function E(e){return 209===e.kind&&27===e.operatorToken.kind||326===e.kind}function T(e,n){switch(void 0===n&&(n=7),e.kind){case 200:return 0!=(1&n);case 199:case 217:case 218:return 0!=(2&n);case 325:return 0!=(4&n)}return!1}function S(n,t){var r;void 0===t&&(t=7);do{r=n,1&t&&(n=e.skipParentheses(n)),2&t&&(n=L(n)),4&t&&(n=e.skipPartiallyEmittedExpressions(n))}while(r!==n);return n}function L(n){for(;e.isAssertionExpression(n)||218===n.kind;)n=n.expression;return n}function A(n,t,r){return void 0===r&&(r=7),n&&T(n,r)&&(!(200===(a=n).kind&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(n,t){switch(n.kind){case 200:return e.updateParen(n,t);case 199:return e.updateTypeAssertion(n,n.type,t);case 217:return e.updateAsExpression(n,t,n.type);case 218:return e.updateNonNullExpression(n,t);case 325:return e.updatePartiallyEmittedExpression(n,t)}}(n,A(n.expression,t)):t;var a}function x(n){return e.setStartsOnNewLine(n,!0)}function C(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function D(n,t,r,a){if(t.importHelpers&&e.isEffectiveExternalModule(n,t)){var i=C(n);if(i)return i;var o=e.getEmitModuleKind(t),s=(r||t.esModuleInterop&&a)&&o!==e.ModuleKind.System&&o0)if(i||l.push(e.createNull()),o.length>1)for(var u=0,d=o;u0)if(i.length>1)for(var l=0,u=i;l= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.createValuesHelper=function(n,t,r){return n.requestEmitHelper(e.valuesHelper),e.setTextRange(e.createCall(a("__values"),void 0,[t]),r)},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.createReadHelper=function(n,t,r,i){return n.requestEmitHelper(e.readHelper),e.setTextRange(e.createCall(a("__read"),void 0,void 0!==r?[t,e.createLiteral(r)]:[t]),i)},e.spreadHelper={name:"typescript:spread",importName:"__spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"},e.createSpreadHelper=function(n,t,r){return n.requestEmitHelper(e.readHelper),n.requestEmitHelper(e.spreadHelper),e.setTextRange(e.createCall(a("__spread"),void 0,t),r)},e.spreadArraysHelper={name:"typescript:spreadArrays",importName:"__spreadArrays",scoped:!1,text:"\n var __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n };"},e.createSpreadArraysHelper=function(n,t,r){return n.requestEmitHelper(e.spreadArraysHelper),e.setTextRange(e.createCall(a("__spreadArrays"),void 0,t),r)},e.createForOfBindingStatement=function(n,t){if(e.isVariableDeclarationList(n)){var r=e.first(n.declarations),a=e.updateVariableDeclaration(r,r.name,void 0,t);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(n,[a])),n)}var i=e.setTextRange(e.createAssignment(n,t),n);return e.setTextRange(e.createStatement(i),n)},e.insertLeadingStatement=function(n,t){return e.isBlock(n)?e.updateBlock(n,e.setTextRange(e.createNodeArray(i([t],n.statements)),n.statements)):e.createBlock(e.createNodeArray([n,t]),!0)},e.restoreEnclosingLabel=function n(t,r,a){if(!r)return t;var i=e.updateLabel(r,r.label,238===r.statement.kind?n(t,r.statement):t);return a&&a(r),i},e.createCallBinding=function(n,t,r,a){void 0===a&&(a=!1);var i,s,c=S(n,7);if(e.isSuperProperty(c))i=e.createThis(),s=c;else if(102===c.kind)i=e.createThis(),s=r<2?e.setTextRange(e.createIdentifier("_super"),c):c;else if(4096&e.getEmitFlags(c))i=e.createVoidZero(),s=g(c);else switch(c.kind){case 194:o(c.expression,a)?(i=e.createTempVariable(t),s=e.createPropertyAccess(e.setTextRange(e.createAssignment(i,c.expression),c.expression),c.name),e.setTextRange(s,c)):(i=c.expression,s=c);break;case 195:o(c.expression,a)?(i=e.createTempVariable(t),s=e.createElementAccess(e.setTextRange(e.createAssignment(i,c.expression),c.expression),c.argumentExpression),e.setTextRange(s,c)):(i=c.expression,s=c);break;default:i=e.createVoidZero(),s=g(n)}return{target:s,thisArg:i}},e.inlineExpressions=function(n){return n.length>10?e.createCommaList(n):e.reduceLeft(n,e.createComma)},e.createExpressionFromEntityName=function n(t){if(e.isQualifiedName(t)){var r=n(t.left),a=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,a),t)}return e.getMutableClone(t)},e.createExpressionForPropertyName=s,e.createExpressionForObjectLiteralElementLike=function(t,r,a){switch(r.name&&e.isPrivateIdentifier(r.name)&&e.Debug.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 163:case 164:return function(n,t,r,a){var i=e.getAllAccessorDeclarations(n,t),o=i.firstAccessor,c=i.getAccessor,l=i.setAccessor;if(t===o){var u=[];if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("get",d);u.push(p)}if(l){var f=e.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body);e.setTextRange(f,l),e.setOriginalNode(f,l);var m=e.createPropertyAssignment("set",f);u.push(m)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var _=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,s(t.name),e.createObjectLiteral(u,a)]),o);return e.aggregateTransformFlags(_)}return}(t.properties,r,a,!!t.multiLine);case 281:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}(r,a);case 282:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}(r,a);case 161:return function(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}(r,a)}},e.getInternalName=function(e,n,t){return l(e,n,t,49152)},e.isInternalName=function(n){return 0!=(32768&e.getEmitFlags(n))},e.getLocalName=function(e,n,t){return l(e,n,t,16384)},e.isLocalName=function(n){return 0!=(16384&e.getEmitFlags(n))},e.getExportName=c,e.isExportName=function(n){return 0!=(8192&e.getEmitFlags(n))},e.getDeclarationName=function(e,n,t){return l(e,n,t)},e.getExternalModuleOrNamespaceExportName=function(n,t,r,a){return n&&e.hasModifier(t,1)?u(n,l(t),r,a):c(t,r,a)},e.getNamespaceMemberName=u,e.convertToFunctionBody=function(n,t){return e.isBlock(n)?n:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(n),n)],t),n)},e.convertFunctionDeclarationToExpression=function(n){if(!n.body)return e.Debug.fail();var t=e.createFunctionExpression(n.modifiers,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);return e.setOriginalNode(t,n),e.setTextRange(t,n),e.getStartsOnNewLine(n)&&e.setStartsOnNewLine(t,!0),e.aggregateTransformFlags(t),t},e.addPrologue=function(e,n,t,r){return f(e,n,p(e,n,t),r)},e.addStandardPrologue=p,e.addCustomPrologue=f,e.findUseStrictPrologue=m,e.startsWithUseStrict=function(n){var t=e.firstOrUndefined(n);return void 0!==t&&e.isPrologueDirective(t)&&d(t)},e.ensureUseStrict=function(n){return m(n)?n:e.setTextRange(e.createNodeArray(i([x(e.createStatement(e.createLiteral("use strict")))],n)),n)},e.parenthesizeBinaryOperand=function(n,t,r,a){return 200===e.skipPartiallyEmittedExpressions(t).kind?t:function(n,t,r,a){var i=e.getOperatorPrecedence(209,n),o=e.getOperatorAssociativity(209,n),s=e.skipPartiallyEmittedExpressions(t);if(!r&&202===t.kind&&i>3)return!0;var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,i)){case-1:return!(!r&&1===o&&212===t.kind);case 1:return!1;case 0:if(r)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===n){if(function(e){return 41===e||51===e||50===e||52===e}(n))return!1;if(39===n){var l=a?_(a):0;if(e.isLiteralKind(l)&&l===_(s))return!1}}return 0===e.getExpressionAssociativity(s)}}(n,t,r,a)?e.createParen(t):t},e.parenthesizeForConditionalHead=function(n){var t=e.getOperatorPrecedence(210,57),r=e.skipPartiallyEmittedExpressions(n),a=e.getExpressionPrecedence(r);return 1!==e.compareValues(a,t)?e.createParen(n):n},e.parenthesizeSubexpressionOfConditionalExpression=function(n){return E(e.skipPartiallyEmittedExpressions(n))?e.createParen(n):n},e.parenthesizeDefaultExpression=function(n){var t=e.skipPartiallyEmittedExpressions(n),r=E(t);if(!r)switch(b(t,!1).kind){case 214:case 201:r=!0}return r?e.createParen(n):n},e.parenthesizeForNew=function(n){var t=b(n,!0);switch(t.kind){case 196:return e.createParen(n);case 197:return t.arguments?n:e.createParen(n)}return g(n)},e.parenthesizeForAccess=g,e.parenthesizePostfixOperand=function(n){return e.isLeftHandSideExpression(n)?n:e.setTextRange(e.createParen(n),n)},e.parenthesizePrefixOperand=function(n){return e.isUnaryExpression(n)?n:e.setTextRange(e.createParen(n),n)},e.parenthesizeListElements=function(n){for(var t,r=0;r=e.ModuleKind.ES2015&&c<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var u=[],d=0,p=l;ds-a)&&(i=s-a),(a>0||i0&&p<=152||183===p)return s;switch(p){case 75:return e.updateIdentifier(s,u(s.typeArguments,c,n));case 153:return e.updateQualifiedName(s,t(s.left,c,e.isEntityName),t(s.right,c,e.isIdentifier));case 154:return e.updateComputedPropertyName(s,t(s.expression,c,e.isExpression));case 155:return e.updateTypeParameterDeclaration(s,t(s.name,c,e.isIdentifier),t(s.constraint,c,e.isTypeNode),t(s.default,c,e.isTypeNode));case 156:return e.updateParameter(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.dotDotDotToken,d,e.isToken),t(s.name,c,e.isBindingName),t(s.questionToken,d,e.isToken),t(s.type,c,e.isTypeNode),t(s.initializer,c,e.isExpression));case 157:return e.updateDecorator(s,t(s.expression,c,e.isExpression));case 158:return e.updatePropertySignature(s,u(s.modifiers,c,e.isToken),t(s.name,c,e.isPropertyName),t(s.questionToken,d,e.isToken),t(s.type,c,e.isTypeNode),t(s.initializer,c,e.isExpression));case 159:return e.updateProperty(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isPropertyName),t(s.questionToken||s.exclamationToken,d,e.isToken),t(s.type,c,e.isTypeNode),t(s.initializer,c,e.isExpression));case 160:return e.updateMethodSignature(s,u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.parameters,c,e.isParameterDeclaration),t(s.type,c,e.isTypeNode),t(s.name,c,e.isPropertyName),t(s.questionToken,d,e.isToken));case 161:return e.updateMethod(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.asteriskToken,d,e.isToken),t(s.name,c,e.isPropertyName),t(s.questionToken,d,e.isToken),u(s.typeParameters,c,e.isTypeParameterDeclaration),i(s.parameters,c,l,u),t(s.type,c,e.isTypeNode),o(s.body,c,l));case 162:return e.updateConstructor(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),i(s.parameters,c,l,u),o(s.body,c,l));case 163:return e.updateGetAccessor(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isPropertyName),i(s.parameters,c,l,u),t(s.type,c,e.isTypeNode),o(s.body,c,l));case 164:return e.updateSetAccessor(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isPropertyName),i(s.parameters,c,l,u),o(s.body,c,l));case 165:return e.updateCallSignature(s,u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.parameters,c,e.isParameterDeclaration),t(s.type,c,e.isTypeNode));case 166:return e.updateConstructSignature(s,u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.parameters,c,e.isParameterDeclaration),t(s.type,c,e.isTypeNode));case 167:return e.updateIndexSignature(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),u(s.parameters,c,e.isParameterDeclaration),t(s.type,c,e.isTypeNode));case 168:return e.updateTypePredicateNodeWithModifier(s,t(s.assertsModifier,c),t(s.parameterName,c),t(s.type,c,e.isTypeNode));case 169:return e.updateTypeReferenceNode(s,t(s.typeName,c,e.isEntityName),u(s.typeArguments,c,e.isTypeNode));case 170:return e.updateFunctionTypeNode(s,u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.parameters,c,e.isParameterDeclaration),t(s.type,c,e.isTypeNode));case 171:return e.updateConstructorTypeNode(s,u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.parameters,c,e.isParameterDeclaration),t(s.type,c,e.isTypeNode));case 172:return e.updateTypeQueryNode(s,t(s.exprName,c,e.isEntityName));case 173:return e.updateTypeLiteralNode(s,u(s.members,c,e.isTypeElement));case 174:return e.updateArrayTypeNode(s,t(s.elementType,c,e.isTypeNode));case 175:return e.updateTupleTypeNode(s,u(s.elementTypes,c,e.isTypeNode));case 176:return e.updateOptionalTypeNode(s,t(s.type,c,e.isTypeNode));case 177:return e.updateRestTypeNode(s,t(s.type,c,e.isTypeNode));case 178:return e.updateUnionTypeNode(s,u(s.types,c,e.isTypeNode));case 179:return e.updateIntersectionTypeNode(s,u(s.types,c,e.isTypeNode));case 180:return e.updateConditionalTypeNode(s,t(s.checkType,c,e.isTypeNode),t(s.extendsType,c,e.isTypeNode),t(s.trueType,c,e.isTypeNode),t(s.falseType,c,e.isTypeNode));case 181:return e.updateInferTypeNode(s,t(s.typeParameter,c,e.isTypeParameterDeclaration));case 188:return e.updateImportTypeNode(s,t(s.argument,c,e.isTypeNode),t(s.qualifier,c,e.isEntityName),r(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 182:return e.updateParenthesizedType(s,t(s.type,c,e.isTypeNode));case 184:return e.updateTypeOperatorNode(s,t(s.type,c,e.isTypeNode));case 185:return e.updateIndexedAccessTypeNode(s,t(s.objectType,c,e.isTypeNode),t(s.indexType,c,e.isTypeNode));case 186:return e.updateMappedTypeNode(s,t(s.readonlyToken,d,e.isToken),t(s.typeParameter,c,e.isTypeParameterDeclaration),t(s.questionToken,d,e.isToken),t(s.type,c,e.isTypeNode));case 187:return e.updateLiteralTypeNode(s,t(s.literal,c,e.isExpression));case 189:return e.updateObjectBindingPattern(s,u(s.elements,c,e.isBindingElement));case 190:return e.updateArrayBindingPattern(s,u(s.elements,c,e.isArrayBindingElement));case 191:return e.updateBindingElement(s,t(s.dotDotDotToken,d,e.isToken),t(s.propertyName,c,e.isPropertyName),t(s.name,c,e.isBindingName),t(s.initializer,c,e.isExpression));case 192:return e.updateArrayLiteral(s,u(s.elements,c,e.isExpression));case 193:return e.updateObjectLiteral(s,u(s.properties,c,e.isObjectLiteralElementLike));case 194:return 32&s.flags?e.updatePropertyAccessChain(s,t(s.expression,c,e.isExpression),t(s.questionDotToken,c,e.isToken),t(s.name,c,e.isIdentifier)):e.updatePropertyAccess(s,t(s.expression,c,e.isExpression),t(s.name,c,e.isIdentifierOrPrivateIdentifier));case 195:return 32&s.flags?e.updateElementAccessChain(s,t(s.expression,c,e.isExpression),t(s.questionDotToken,c,e.isToken),t(s.argumentExpression,c,e.isExpression)):e.updateElementAccess(s,t(s.expression,c,e.isExpression),t(s.argumentExpression,c,e.isExpression));case 196:return 32&s.flags?e.updateCallChain(s,t(s.expression,c,e.isExpression),t(s.questionDotToken,c,e.isToken),u(s.typeArguments,c,e.isTypeNode),u(s.arguments,c,e.isExpression)):e.updateCall(s,t(s.expression,c,e.isExpression),u(s.typeArguments,c,e.isTypeNode),u(s.arguments,c,e.isExpression));case 197:return e.updateNew(s,t(s.expression,c,e.isExpression),u(s.typeArguments,c,e.isTypeNode),u(s.arguments,c,e.isExpression));case 198:return e.updateTaggedTemplate(s,t(s.tag,c,e.isExpression),r(s.typeArguments,c,e.isExpression),t(s.template,c,e.isTemplateLiteral));case 199:return e.updateTypeAssertion(s,t(s.type,c,e.isTypeNode),t(s.expression,c,e.isExpression));case 200:return e.updateParen(s,t(s.expression,c,e.isExpression));case 201:return e.updateFunctionExpression(s,u(s.modifiers,c,e.isModifier),t(s.asteriskToken,d,e.isToken),t(s.name,c,e.isIdentifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),i(s.parameters,c,l,u),t(s.type,c,e.isTypeNode),o(s.body,c,l));case 202:return e.updateArrowFunction(s,u(s.modifiers,c,e.isModifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),i(s.parameters,c,l,u),t(s.type,c,e.isTypeNode),t(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,l));case 203:return e.updateDelete(s,t(s.expression,c,e.isExpression));case 204:return e.updateTypeOf(s,t(s.expression,c,e.isExpression));case 205:return e.updateVoid(s,t(s.expression,c,e.isExpression));case 206:return e.updateAwait(s,t(s.expression,c,e.isExpression));case 207:return e.updatePrefix(s,t(s.operand,c,e.isExpression));case 208:return e.updatePostfix(s,t(s.operand,c,e.isExpression));case 209:return e.updateBinary(s,t(s.left,c,e.isExpression),t(s.right,c,e.isExpression),t(s.operatorToken,c,e.isToken));case 210:return e.updateConditional(s,t(s.condition,c,e.isExpression),t(s.questionToken,c,e.isToken),t(s.whenTrue,c,e.isExpression),t(s.colonToken,c,e.isToken),t(s.whenFalse,c,e.isExpression));case 211:return e.updateTemplateExpression(s,t(s.head,c,e.isTemplateHead),u(s.templateSpans,c,e.isTemplateSpan));case 212:return e.updateYield(s,t(s.asteriskToken,d,e.isToken),t(s.expression,c,e.isExpression));case 213:return e.updateSpread(s,t(s.expression,c,e.isExpression));case 214:return e.updateClassExpression(s,u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.heritageClauses,c,e.isHeritageClause),u(s.members,c,e.isClassElement));case 216:return e.updateExpressionWithTypeArguments(s,u(s.typeArguments,c,e.isTypeNode),t(s.expression,c,e.isExpression));case 217:return e.updateAsExpression(s,t(s.expression,c,e.isExpression),t(s.type,c,e.isTypeNode));case 218:return e.updateNonNullExpression(s,t(s.expression,c,e.isExpression));case 219:return e.updateMetaProperty(s,t(s.name,c,e.isIdentifier));case 221:return e.updateTemplateSpan(s,t(s.expression,c,e.isExpression),t(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 223:return e.updateBlock(s,u(s.statements,c,e.isStatement));case 225:return e.updateVariableStatement(s,u(s.modifiers,c,e.isModifier),t(s.declarationList,c,e.isVariableDeclarationList));case 226:return e.updateExpressionStatement(s,t(s.expression,c,e.isExpression));case 227:return e.updateIf(s,t(s.expression,c,e.isExpression),t(s.thenStatement,c,e.isStatement,e.liftToBlock),t(s.elseStatement,c,e.isStatement,e.liftToBlock));case 228:return e.updateDo(s,t(s.statement,c,e.isStatement,e.liftToBlock),t(s.expression,c,e.isExpression));case 229:return e.updateWhile(s,t(s.expression,c,e.isExpression),t(s.statement,c,e.isStatement,e.liftToBlock));case 230:return e.updateFor(s,t(s.initializer,c,e.isForInitializer),t(s.condition,c,e.isExpression),t(s.incrementor,c,e.isExpression),t(s.statement,c,e.isStatement,e.liftToBlock));case 231:return e.updateForIn(s,t(s.initializer,c,e.isForInitializer),t(s.expression,c,e.isExpression),t(s.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateForOf(s,t(s.awaitModifier,c,e.isToken),t(s.initializer,c,e.isForInitializer),t(s.expression,c,e.isExpression),t(s.statement,c,e.isStatement,e.liftToBlock));case 233:return e.updateContinue(s,t(s.label,c,e.isIdentifier));case 234:return e.updateBreak(s,t(s.label,c,e.isIdentifier));case 235:return e.updateReturn(s,t(s.expression,c,e.isExpression));case 236:return e.updateWith(s,t(s.expression,c,e.isExpression),t(s.statement,c,e.isStatement,e.liftToBlock));case 237:return e.updateSwitch(s,t(s.expression,c,e.isExpression),t(s.caseBlock,c,e.isCaseBlock));case 238:return e.updateLabel(s,t(s.label,c,e.isIdentifier),t(s.statement,c,e.isStatement,e.liftToBlock));case 239:return e.updateThrow(s,t(s.expression,c,e.isExpression));case 240:return e.updateTry(s,t(s.tryBlock,c,e.isBlock),t(s.catchClause,c,e.isCatchClause),t(s.finallyBlock,c,e.isBlock));case 242:return e.updateTypeScriptVariableDeclaration(s,t(s.name,c,e.isBindingName),t(s.exclamationToken,d,e.isToken),t(s.type,c,e.isTypeNode),t(s.initializer,c,e.isExpression));case 243:return e.updateVariableDeclarationList(s,u(s.declarations,c,e.isVariableDeclaration));case 244:return e.updateFunctionDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.asteriskToken,d,e.isToken),t(s.name,c,e.isIdentifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),i(s.parameters,c,l,u),t(s.type,c,e.isTypeNode),o(s.body,c,l));case 245:return e.updateClassDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.heritageClauses,c,e.isHeritageClause),u(s.members,c,e.isClassElement));case 246:return e.updateInterfaceDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),u(s.heritageClauses,c,e.isHeritageClause),u(s.members,c,e.isTypeElement));case 247:return e.updateTypeAliasDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),u(s.typeParameters,c,e.isTypeParameterDeclaration),t(s.type,c,e.isTypeNode));case 248:return e.updateEnumDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),u(s.members,c,e.isEnumMember));case 249:return e.updateModuleDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),t(s.body,c,e.isModuleBody));case 250:return e.updateModuleBlock(s,u(s.statements,c,e.isStatement));case 251:return e.updateCaseBlock(s,u(s.clauses,c,e.isCaseOrDefaultClause));case 252:return e.updateNamespaceExportDeclaration(s,t(s.name,c,e.isIdentifier));case 253:return e.updateImportEqualsDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.name,c,e.isIdentifier),t(s.moduleReference,c,e.isModuleReference));case 254:return e.updateImportDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.importClause,c,e.isImportClause),t(s.moduleSpecifier,c,e.isExpression));case 255:return e.updateImportClause(s,t(s.name,c,e.isIdentifier),t(s.namedBindings,c,e.isNamedImportBindings),s.isTypeOnly);case 256:return e.updateNamespaceImport(s,t(s.name,c,e.isIdentifier));case 262:return e.updateNamespaceExport(s,t(s.name,c,e.isIdentifier));case 257:return e.updateNamedImports(s,u(s.elements,c,e.isImportSpecifier));case 258:return e.updateImportSpecifier(s,t(s.propertyName,c,e.isIdentifier),t(s.name,c,e.isIdentifier));case 259:return e.updateExportAssignment(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.expression,c,e.isExpression));case 260:return e.updateExportDeclaration(s,u(s.decorators,c,e.isDecorator),u(s.modifiers,c,e.isModifier),t(s.exportClause,c,e.isNamedExportBindings),t(s.moduleSpecifier,c,e.isExpression),s.isTypeOnly);case 261:return e.updateNamedExports(s,u(s.elements,c,e.isExportSpecifier));case 263:return e.updateExportSpecifier(s,t(s.propertyName,c,e.isIdentifier),t(s.name,c,e.isIdentifier));case 265:return e.updateExternalModuleReference(s,t(s.expression,c,e.isExpression));case 266:return e.updateJsxElement(s,t(s.openingElement,c,e.isJsxOpeningElement),u(s.children,c,e.isJsxChild),t(s.closingElement,c,e.isJsxClosingElement));case 267:return e.updateJsxSelfClosingElement(s,t(s.tagName,c,e.isJsxTagNameExpression),u(s.typeArguments,c,e.isTypeNode),t(s.attributes,c,e.isJsxAttributes));case 268:return e.updateJsxOpeningElement(s,t(s.tagName,c,e.isJsxTagNameExpression),u(s.typeArguments,c,e.isTypeNode),t(s.attributes,c,e.isJsxAttributes));case 269:return e.updateJsxClosingElement(s,t(s.tagName,c,e.isJsxTagNameExpression));case 270:return e.updateJsxFragment(s,t(s.openingFragment,c,e.isJsxOpeningFragment),u(s.children,c,e.isJsxChild),t(s.closingFragment,c,e.isJsxClosingFragment));case 273:return e.updateJsxAttribute(s,t(s.name,c,e.isIdentifier),t(s.initializer,c,e.isStringLiteralOrJsxExpression));case 274:return e.updateJsxAttributes(s,u(s.properties,c,e.isJsxAttributeLike));case 275:return e.updateJsxSpreadAttribute(s,t(s.expression,c,e.isExpression));case 276:return e.updateJsxExpression(s,t(s.expression,c,e.isExpression));case 277:return e.updateCaseClause(s,t(s.expression,c,e.isExpression),u(s.statements,c,e.isStatement));case 278:return e.updateDefaultClause(s,u(s.statements,c,e.isStatement));case 279:return e.updateHeritageClause(s,u(s.types,c,e.isExpressionWithTypeArguments));case 280:return e.updateCatchClause(s,t(s.variableDeclaration,c,e.isVariableDeclaration),t(s.block,c,e.isBlock));case 281:return e.updatePropertyAssignment(s,t(s.name,c,e.isPropertyName),t(s.initializer,c,e.isExpression));case 282:return e.updateShorthandPropertyAssignment(s,t(s.name,c,e.isIdentifier),t(s.objectAssignmentInitializer,c,e.isExpression));case 283:return e.updateSpreadAssignment(s,t(s.expression,c,e.isExpression));case 284:return e.updateEnumMember(s,t(s.name,c,e.isPropertyName),t(s.initializer,c,e.isExpression));case 290:return e.updateSourceFileNode(s,a(s.statements,c,l));case 325:return e.updatePartiallyEmittedExpression(s,t(s.expression,c,e.isExpression));case 326:return e.updateCommaList(s,u(s.elements,c,e.isExpression));default:return s}}}}(d||(d={})),function(e){function n(e,n,t){return e?n(t,e):t}function t(e,n,t){return e?n(t,e):t}function r(r,a,i,o){if(void 0===r)return a;var s=o?t:e.reduceLeft,c=o||i,l=r.kind;if(l>0&&l<=152)return a;if(l>=168&&l<=187)return a;var u=a;switch(r.kind){case 222:case 224:case 215:case 241:case 324:break;case 153:u=n(r.left,i,u),u=n(r.right,i,u);break;case 154:u=n(r.expression,i,u);break;case 156:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 157:u=n(r.expression,i,u);break;case 158:u=s(r.modifiers,c,u),u=n(r.name,i,u),u=n(r.questionToken,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 159:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 161:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.typeParameters,c,u),u=s(r.parameters,c,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 162:u=s(r.modifiers,c,u),u=s(r.parameters,c,u),u=n(r.body,i,u);break;case 163:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.parameters,c,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 164:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.parameters,c,u),u=n(r.body,i,u);break;case 189:case 190:u=s(r.elements,c,u);break;case 191:u=n(r.propertyName,i,u),u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 192:u=s(r.elements,c,u);break;case 193:u=s(r.properties,c,u);break;case 194:u=n(r.expression,i,u),u=n(r.name,i,u);break;case 195:u=n(r.expression,i,u),u=n(r.argumentExpression,i,u);break;case 196:case 197:u=n(r.expression,i,u),u=s(r.typeArguments,c,u),u=s(r.arguments,c,u);break;case 198:u=n(r.tag,i,u),u=s(r.typeArguments,c,u),u=n(r.template,i,u);break;case 199:u=n(r.type,i,u),u=n(r.expression,i,u);break;case 201:u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.typeParameters,c,u),u=s(r.parameters,c,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 202:u=s(r.modifiers,c,u),u=s(r.typeParameters,c,u),u=s(r.parameters,c,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 200:case 203:case 204:case 205:case 206:case 212:case 213:case 218:u=n(r.expression,i,u);break;case 207:case 208:u=n(r.operand,i,u);break;case 209:u=n(r.left,i,u),u=n(r.right,i,u);break;case 210:u=n(r.condition,i,u),u=n(r.whenTrue,i,u),u=n(r.whenFalse,i,u);break;case 211:u=n(r.head,i,u),u=s(r.templateSpans,c,u);break;case 214:u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.typeParameters,c,u),u=s(r.heritageClauses,c,u),u=s(r.members,c,u);break;case 216:u=n(r.expression,i,u),u=s(r.typeArguments,c,u);break;case 217:u=n(r.expression,i,u),u=n(r.type,i,u);break;case 221:u=n(r.expression,i,u),u=n(r.literal,i,u);break;case 223:u=s(r.statements,c,u);break;case 225:u=s(r.modifiers,c,u),u=n(r.declarationList,i,u);break;case 226:u=n(r.expression,i,u);break;case 227:u=n(r.expression,i,u),u=n(r.thenStatement,i,u),u=n(r.elseStatement,i,u);break;case 228:u=n(r.statement,i,u),u=n(r.expression,i,u);break;case 229:case 236:u=n(r.expression,i,u),u=n(r.statement,i,u);break;case 230:u=n(r.initializer,i,u),u=n(r.condition,i,u),u=n(r.incrementor,i,u),u=n(r.statement,i,u);break;case 231:case 232:u=n(r.initializer,i,u),u=n(r.expression,i,u),u=n(r.statement,i,u);break;case 235:case 239:u=n(r.expression,i,u);break;case 237:u=n(r.expression,i,u),u=n(r.caseBlock,i,u);break;case 238:u=n(r.label,i,u),u=n(r.statement,i,u);break;case 240:u=n(r.tryBlock,i,u),u=n(r.catchClause,i,u),u=n(r.finallyBlock,i,u);break;case 242:u=n(r.name,i,u),u=n(r.type,i,u),u=n(r.initializer,i,u);break;case 243:u=s(r.declarations,c,u);break;case 244:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.typeParameters,c,u),u=s(r.parameters,c,u),u=n(r.type,i,u),u=n(r.body,i,u);break;case 245:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.typeParameters,c,u),u=s(r.heritageClauses,c,u),u=s(r.members,c,u);break;case 248:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=s(r.members,c,u);break;case 249:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=n(r.body,i,u);break;case 250:u=s(r.statements,c,u);break;case 251:u=s(r.clauses,c,u);break;case 253:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.name,i,u),u=n(r.moduleReference,i,u);break;case 254:u=s(r.decorators,c,u),u=s(r.modifiers,c,u),u=n(r.importClause,i,u),u=n(r.moduleSpecifier,i,u);break;case 255:u=n(r.name,i,u),u=n(r.namedBindings,i,u);break;case 256:case 262:u=n(r.name,i,u);break;case 257:case 261:u=s(r.elements,c,u);break;case 258:case 263:u=n(r.propertyName,i,u),u=n(r.name,i,u);break;case 259:u=e.reduceLeft(r.decorators,i,u),u=e.reduceLeft(r.modifiers,i,u),u=n(r.expression,i,u);break;case 260:u=e.reduceLeft(r.decorators,i,u),u=e.reduceLeft(r.modifiers,i,u),u=n(r.exportClause,i,u),u=n(r.moduleSpecifier,i,u);break;case 265:u=n(r.expression,i,u);break;case 266:u=n(r.openingElement,i,u),u=e.reduceLeft(r.children,i,u),u=n(r.closingElement,i,u);break;case 270:u=n(r.openingFragment,i,u),u=e.reduceLeft(r.children,i,u),u=n(r.closingFragment,i,u);break;case 267:case 268:u=n(r.tagName,i,u),u=s(r.typeArguments,i,u),u=n(r.attributes,i,u);break;case 274:u=s(r.properties,c,u);break;case 269:u=n(r.tagName,i,u);break;case 273:u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 275:case 276:u=n(r.expression,i,u);break;case 277:u=n(r.expression,i,u);case 278:u=s(r.statements,c,u);break;case 279:u=s(r.types,c,u);break;case 280:u=n(r.variableDeclaration,i,u),u=n(r.block,i,u);break;case 281:u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 282:u=n(r.name,i,u),u=n(r.objectAssignmentInitializer,i,u);break;case 283:u=n(r.expression,i,u);break;case 284:u=n(r.name,i,u),u=n(r.initializer,i,u);break;case 290:u=s(r.statements,c,u);break;case 325:u=n(r.expression,i,u);break;case 326:u=s(r.elements,c,u)}return u}function a(n){if(void 0===n)return 0;if(536870912&n.transformFlags)return n.transformFlags&~e.getTransformFlagsSubtreeExclusions(n.kind);var t=function(n){if(e.hasModifier(n,2)||e.isTypeNode(n)&&216!==n.kind)return 0;return r(n,0,i,o)}(n);return e.computeTransformFlagsForNode(n,t)}function i(e,n){return e|a(n)}function o(e,n){return e|function(e){if(void 0===e)return 0;for(var n=0,t=0,r=0,i=e;r=A,"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=A,"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!k||A!==e||x!==n}(n,t)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&C===e&&(D>n||D===n&&I>t)}(r,a,i))&&(G(),A=n,x=t,N=!1,O=!1,k=!0),void 0!==r&&void 0!==a&&void 0!==i&&(C=r,D=a,I=i,N=!0,void 0!==o&&(R=o,O=!0)),p()}function G(){if(k&&(!L||h!==A||v!==x||b!==C||E!==D||T!==I||S!==R)){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=e.createMapFromEntries(v.map((function(e,t){return[n.getCanonicalFileName(e),t]})));return{getSourcePosition:function(n){var t=L();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<=74},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 74:return 52}},e.addPrologueDirectivesAndInitialSuperCall=function(n,t,r){if(n.body){var a=n.body.statements,i=e.addPrologue(t,a,!1,r);if(i===a.length)return i;var o=e.findIndex(a,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}),i);if(o>-1){for(var s=i;s<=o;s++)t.push(e.visitNode(a[s],r,e.isStatement));return o+1}return i}return 0},e.helperString=function(e){for(var n=[],t=1;t=1)||24576&g.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(y)){l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,o),l=void 0);var h=a(n,s,y);e.isComputedPropertyName(y)&&(u=e.append(u,h.argumentExpression)),r(n,g,h,g)}else l=e.append(l,e.visitNode(g,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.createReadHelper(n.context,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 _=e.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=e.createArraySlice(o,f);r(n,m,g,m)}}else{var g=e.createElementAccess(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,B);return!1})(n)&&(r|=2);e.childIsDecorated(n)&&(r|=4);Re(n)?r|=8:!function(n){return ke(n)&&e.hasModifier(n,512)}(n)?Ne(n)&&(r|=16):r|=32;T<=1&&7&r&&(r|=128);return r}(a,i);128&s&&n.startLexicalEnvironment();var c=a.name||(5&s?e.getGeneratedNameForNode(a):void 0),l=2&s?function(t,r){var a=e.moveRangePastDecorators(t),i=function(t){if(16777216&v.getNodeCheckFlags(t)){0==(1&p)&&(p|=1,n.enableSubstitution(75),f=[]);var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return f[e.getOriginalNodeId(t)]=r,h(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,D,e.isHeritageClause),c=j(t),l=e.createClassExpression(void 0,r,void 0,s,c);e.aggregateTransformFlags(l),e.setOriginalNode(l,t),e.setTextRange(l,a);var u=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,l):l)],1));return e.setOriginalNode(u,t),e.setTextRange(u,a),e.setCommentRange(u,t),u}(a,c):function(n,t,r){var a=128&r?void 0:e.visitNodes(n.modifiers,w,e.isModifier),i=e.createClassDeclaration(void 0,a,t,void 0,e.visitNodes(n.heritageClauses,D,e.isHeritageClause),j(n)),o=e.getEmitFlags(n);1&r&&(o|=32);return e.aggregateTransformFlags(i),e.setTextRange(i,n),e.setOriginalNode(i,n),e.setEmitFlags(i,o),i}(a,c,s),u=[l];if(J(u,a,!1),J(u,a,!0),function(t,a){var i=function(t){var a=function(n){var t=n.decorators,r=W(e.getFirstConstructorWithBody(n));if(!t&&!r)return;return{decorators:t,parameters:r}}(t),i=z(t,t,a);if(!i)return;var o=f&&f[e.getOriginalNodeId(t)],s=e.getLocalName(t,!1,!0),c=r(n,i,s),l=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(l,1536),e.setSourceMapRange(l,e.moveRangePastDecorators(t)),l}(a);i&&t.push(e.setOriginalNode(e.createExpressionStatement(i),a))}(u,a),128&s){var d=e.createTokenRange(e.skipTrivia(t.text,a.members.end),19),m=e.getInternalName(a),_=e.createPartiallyEmittedExpression(m);_.end=d.end,e.setEmitFlags(_,1536);var g=e.createReturn(_);g.pos=d.pos,e.setEmitFlags(g,1920),u.push(g),e.insertStatementsAfterStandardPrologue(u,n.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(u);e.setEmitFlags(y,33554432);var b=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(a,!1,!1),void 0,y)]));e.setOriginalNode(b,a),e.setCommentRange(b,a),e.setSourceMapRange(b,e.moveRangePastDecorators(a)),e.startOnNewLine(b),u=[b]}8&s?Me(u,a):(128&s||2&s)&&(32&s?u.push(e.createExportDefault(e.getLocalName(a,!1,!0))):16&s&&u.push(e.createExternalModuleExport(e.getLocalName(a,!1,!0))));u.length>1&&(u.push(e.createEndOfDeclarationMarker(a)),e.setEmitFlags(l,4194304|e.getEmitFlags(l)));return e.singleOrMany(u)}(a);case 214:return function(t){if(!V(t))return e.visitEachChild(t,D,n);var r=e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,D,e.isHeritageClause),j(t));return e.aggregateTransformFlags(r),e.setOriginalNode(r,t),e.setTextRange(r,t),r}(a);case 279:return function(t){if(113===t.token)return;return e.visitEachChild(t,D,n)}(a);case 216:return function(n){return e.updateExpressionWithTypeArguments(n,void 0,e.visitNode(n.expression,D,e.isLeftHandSideExpression))}(a);case 161:return function(t){if(!pe(t))return;var r=e.updateMethod(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,de(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}(a);case 163:return function(t){if(!ge(t))return;var r=e.updateGetAccessor(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),de(t),e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||e.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(a);case 164:return function(t){if(!ge(t))return;var r=e.updateSetAccessor(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),de(t),e.visitParameterList(t.parameters,D,n),e.visitFunctionBody(t.body,D,n)||e.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(a);case 244:return function(t){if(!pe(t))return e.createNotEmittedStatement(t);var r=e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||e.createBlock([]));if(Re(t)){var a=[r];return Me(a,t),a}return r}(a);case 201:return function(t){if(!pe(t))return e.createOmittedExpression();return e.updateFunctionExpression(t,e.visitNodes(t.modifiers,w,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||e.createBlock([]))}(a);case 202:return function(t){return e.updateArrowFunction(t,e.visitNodes(t.modifiers,w,e.isModifier),void 0,e.visitParameterList(t.parameters,D,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,D,n))}(a);case 156:return function(n){if(e.parameterIsThisKeyword(n))return;var t=e.updateParameter(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}(a);case 200:return function(r){var a=e.skipOuterExpressions(r.expression,-3);if(e.isAssertionExpression(a)){var i=e.visitNode(r.expression,D,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(i,t))?e.updateParen(r,i):e.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,D,n)}(a);case 199:case 217:return function(n){var t=e.visitNode(n.expression,D,e.isExpression);return e.createPartiallyEmittedExpression(t,n)}(a);case 196:return function(n){return e.updateCall(n,e.visitNode(n.expression,D,e.isExpression),void 0,e.visitNodes(n.arguments,D,e.isExpression))}(a);case 197:return function(n){return e.updateNew(n,e.visitNode(n.expression,D,e.isExpression),void 0,e.visitNodes(n.arguments,D,e.isExpression))}(a);case 198:return function(n){return e.updateTaggedTemplate(n,e.visitNode(n.tag,D,e.isExpression),void 0,e.visitNode(n.template,D,e.isExpression))}(a);case 218:return function(n){var t=e.visitNode(n.expression,D,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(t,n)}(a);case 248:return function(n){if(!function(n){return!e.isEnumConst(n)||b.preserveConstEnums||b.isolatedModules}(n))return e.createNotEmittedStatement(n);var r=[],a=2,i=Te(r,n);i&&(S===e.ModuleKind.System&&c===t||(a|=512));var o=Fe(n),l=Ge(n),u=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(s,n,!1,!0):e.getLocalName(n,!1,!0),d=e.createLogicalOr(u,e.createAssignment(u,e.createObjectLiteral()));if(ve(n)){var p=e.getLocalName(n,!1,!0);d=e.createAssignment(p,d)}var f=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,o)],void 0,function(n,t){var r=s;s=t;var a=[];_();var i=e.map(n.members,he);return e.insertStatementsAfterStandardPrologue(a,y()),e.addRange(a,i),s=r,e.createBlock(e.setTextRange(e.createNodeArray(a),n.members),!0)}(n,l)),void 0,[d]));e.setOriginalNode(f,n),i&&(e.setSyntheticLeadingComments(f,void 0),e.setSyntheticTrailingComments(f,void 0));return e.setTextRange(f,n),e.addEmitFlags(f,a),r.push(f),r.push(e.createEndOfDeclarationMarker(n)),r}(a);case 225:return function(t){if(Re(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(r,ye))),t)}return e.visitEachChild(t,D,n)}(a);case 242:return function(n){return e.updateTypeScriptVariableDeclaration(n,e.visitNode(n.name,D,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,D,e.isExpression))}(a);case 249:return Se(a);case 253:return Ie(a);default:return e.visitEachChild(a,D,n)}}function G(t){var r=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(t)&&S>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return e.updateSourceFileNode(t,e.visitLexicalEnvironment(t.statements,R,n,0,r))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function U(e){return!!(2048&e.transformFlags)}function V(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,U)||e.some(n.members,U)}function j(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?159===a.kind?e.createVoidZero():e.createNull():void 0,l=r(n,i,o,s,c,e.moveRangePastDecorators(a));return e.setEmitFlags(l,1536),l}}function Y(n){return e.visitNode(n.expression,D,e.isExpression)}function Q(t,r){var a;if(t){a=[];for(var o=0,s=t;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"}}(d||(d={})),function(e){var n,t;function r(n,t,r){return n.requestEmitHelper(e.classPrivateFieldGetHelper),e.createCall(e.getUnscopedHelperName("__classPrivateFieldGet"),void 0,[t,r])}function a(n,t,r,a){return n.requestEmitHelper(e.classPrivateFieldSetHelper),e.createCall(e.getUnscopedHelperName("__classPrivateFieldSet"),void 0,[t,r,a])}!function(e){e[e.ClassAliases=1]="ClassAliases"}(n||(n={})),function(e){e[e.InstanceField=0]="InstanceField"}(t||(t={})),e.transformClassFields=function(n){var t,o,s,c,l=n.hoistVariableDeclaration,u=n.endLexicalEnvironment,d=n.resumeLexicalEnvironment,p=n.getEmitResolver(),f=n.getCompilerOptions(),m=e.getEmitScriptTarget(f),_=m<99,g=n.onSubstituteNode;n.onSubstituteNode=function(n,r){if(r=g(n,r),1===n)return function(n){switch(n.kind){case 75:return function(n){return function(n){if(1&t&&33554432&p.getNodeCheckFlags(n)){var r=p.getReferencedValueDeclaration(n);if(r){var a=o[r.id];if(a){var i=e.getSynthesizedClone(a);return e.setSourceMapRange(i,n),e.setCommentRange(i,n),i}}}return}(n)||n}(n)}return n}(r);return r};var y,h=[];return e.chainBundle((function(t){var r=n.getCompilerOptions();if(t.isDeclarationFile||r.useDefineForClassFields&&99===r.target)return t;var a=e.visitEachChild(t,v,n);return e.addEmitHelpers(a,n.readEmitHelpers()),a}));function v(r){if(!(4194304&r.transformFlags))return r;switch(r.kind){case 214:case 245:return function(r){var a=s;s=void 0,_&&(h.push(y),y=void 0);var i=e.isClassDeclaration(r)?function(t){if(!e.forEach(t.members,D))return e.visitEachChild(t,v,n);var r=e.getEffectiveBaseTypeNode(t),a=!(!r||100===e.skipOuterExpressions(r.expression).kind),i=[e.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,v,e.isHeritageClause),I(t,a))];e.some(s)&&i.push(e.createExpressionStatement(e.inlineExpressions(s)));var o=e.getProperties(t,!0,!0);e.some(o)&&k(i,o,e.getInternalName(t));return i}(r):function(r){if(!e.forEach(r.members,D))return e.visitEachChild(r,v,n);var a=e.isClassDeclaration(e.getOriginalNode(r)),i=e.getProperties(r,!0,!0),u=e.getEffectiveBaseTypeNode(r),d=!(!u||100===e.skipOuterExpressions(u.expression).kind),f=e.updateClassExpression(r,r.modifiers,r.name,void 0,e.visitNodes(r.heritageClauses,v,e.isHeritageClause),I(r,d));if(e.some(i)||e.some(s)){if(a)return e.Debug.assertDefined(c,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),c&&s&&e.some(s)&&c.push(e.createExpressionStatement(e.inlineExpressions(s))),c&&e.some(i)&&k(c,i,e.getInternalName(r)),f;var m=[],_=16777216&p.getNodeCheckFlags(r),g=e.createTempVariable(l,!!_);if(_){0==(1&t)&&(t|=1,n.enableSubstitution(75),o=[]);var y=e.getSynthesizedClone(g);y.autoGenerateFlags&=-9,o[e.getOriginalNodeId(r)]=y}return e.setEmitFlags(f,65536|e.getEmitFlags(f)),m.push(e.startOnNewLine(e.createAssignment(g,f))),e.addRange(m,e.map(s,e.startOnNewLine)),e.addRange(m,function(n,t){for(var r=[],a=0,i=n;as&&(i||e.addRange(c,e.visitNodes(r.body.statements,v,e.isStatement,s,l-s)),s=l)}k(c,o,e.createThis()),r&&e.addRange(c,e.visitNodes(r.body.statements,v,e.isStatement,s));return c=e.mergeLexicalEnvironment(c,u()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(c),r?r.body.statements:t.members),!0),r?r.body:void 0)}(t,a,r);if(!s)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,o,s),a||t),a))}(t,r);return c&&s.push(c),e.addRange(s,e.visitNodes(t.members,E,e.isClassElement)),e.setTextRange(e.createNodeArray(s),t.members)}function R(t){return!(!e.isPropertyDeclaration(t)||e.hasStaticModifier(t))&&(n.getCompilerOptions().useDefineForClassFields?m<99:e.isInitializedProperty(t)||_&&e.isPrivateIdentifierPropertyDeclaration(t))}function k(n,t,r){for(var a=0,i=t;a=0;--n){var t,r=h[n];if(r)if(t=r.get(e.escapedText))return t}}function P(t){var r=e.getGeneratedNameForNode(t),a=M(t.name);if(!a)return e.visitEachChild(t,v,n);var i=t.expression;return(e.isThisProperty(t)||e.isSuperProperty(t)||!e.isSimpleCopiableExpression(t.expression))&&((i=e.createTempVariable(l)).autoGenerateFlags|=8,(s||(s=[])).push(e.createBinary(i,62,t.expression))),e.createPropertyAccess(e.createParen(e.createObjectLiteral([e.createSetAccessor(void 0,void 0,"value",[e.createParameter(void 0,void 0,void 0,r,void 0,void 0,void 0)],e.createBlock([e.createExpressionStatement(C(a,i,r,62))]))])),"value")}function w(n){var t=e.getTargetOfBindingOrAssignmentElement(n);if(t&&e.isPrivateIdentifierPropertyAccessExpression(t)){var r=P(t);return e.isAssignmentExpression(n)?e.updateBinary(n,r,e.visitNode(n.right,v,e.isExpression),n.operatorToken):e.isSpreadElement(n)?e.updateSpread(n,r):r}return e.visitNode(n,b)}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 e.updatePropertyAssignment(n,e.visitNode(n.name,v),r?e.createAssignment(a,e.visitNode(r,v)):a)}return e.updatePropertyAssignment(n,e.visitNode(n.name,v),e.visitNode(n.initializer,b))}return e.visitNode(n,v)}},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return privateMap.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to set private field on non-instance");\n }\n privateMap.set(receiver, value);\n return value;\n };'}}(d||(d={})),function(e){var n,t;function r(n,t,r){var a=0!=(4096&n.getNodeCheckFlags(t)),i=[];return r.forEach((function(n,t){var r=e.unescapeLeadingUnderscores(t),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),r),4)))),a&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.setEmitFlags(e.createPropertyAccess(e.setEmitFlags(e.createSuper(),4),r),4),e.createIdentifier("v"))))),i.push(e.createPropertyAssignment(r,e.createObjectLiteral(o)))})),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(i,!0)]))],2))}function a(n,t,r,a,i){n.requestEmitHelper(e.awaiterHelper);var o=e.createFunctionExpression(void 0,e.createToken(41),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getUnscopedHelperName("__awaiter"),void 0,[t?e.createThis():e.createVoidZero(),r?e.createIdentifier("arguments"):e.createVoidZero(),a?e.createExpressionFromEntityName(a):e.createVoidZero(),o])}!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,o,s,c,l=n.resumeLexicalEnvironment,u=n.endLexicalEnvironment,d=n.hoistVariableDeclaration,p=n.getEmitResolver(),f=n.getCompilerOptions(),m=e.getEmitScriptTarget(f),_=0,g=[],y=0,h=n.onEmitNode,v=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){if(1&t&&function(e){var n=e.kind;return 245===n||162===n||161===n||163===n||164===n}(r)){var i=6144&p.getNodeCheckFlags(r);if(i!==_){var o=_;return _=i,h(n,r,a),void(_=o)}}else if(t&&g[e.getNodeId(r)]){o=_;return _=0,h(n,r,a),void(_=o)}h(n,r,a)},n.onSubstituteNode=function(n,t){if(t=v(n,t),1===n&&_)return function(n){switch(n.kind){case 194:return B(n);case 195:return U(n);case 196:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?B(t):U(t);return e.createCall(e.createPropertyAccess(r,"call"),void 0,i([e.createThis()],n.arguments))}return n}(n)}return n}(t);return t},e.chainBundle((function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(t,f));var r=e.visitEachChild(t,A,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function b(e,n){y=n?y|e:y&~e}function E(e){return 0!=(y&e)}function T(){return E(2)}function S(e,n,t){var r=e&~y;if(r){b(r,!0);var a=n(t);return b(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 126:return;case 206:return function(t){if(!E(1))return e.visitEachChild(t,A,n);return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,A,e.isExpression)),t),t)}(t);case 161:return S(3,C,t);case 244:return S(3,D,t);case 201:return S(3,I,t);case 202:return S(1,R,t);case 194:return s&&e.isPropertyAccessExpression(t)&&102===t.expression.kind&&s.set(t.name.escapedText,!0),e.visitEachChild(t,A,n);case 195:return s&&102===t.expression.kind&&(c=!0),e.visitEachChild(t,A,n);case 163:case 164:case 162:case 245:case 214:return S(3,L,t);default:return e.visitEachChild(t,A,n)}}function x(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 225:return function(t){if(N(t.declarationList)){var r=O(t.declarationList,!1);return r?e.createExpressionStatement(r):void 0}return e.visitEachChild(t,A,n)}(t);case 230:return function(n){var t=n.initializer;return e.updateFor(n,N(t)?O(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,x,e.isStatement,e.liftToBlock))}(t);case 231:return function(n){return e.updateForIn(n,N(n.initializer)?O(n.initializer,!0):e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.expression,A,e.isExpression),e.visitNode(n.statement,x,e.isStatement,e.liftToBlock))}(t);case 232:return function(n){return e.updateForOf(n,e.visitNode(n.awaitModifier,A,e.isToken),N(n.initializer)?O(n.initializer,!0):e.visitNode(n.initializer,A,e.isForInitializer),e.visitNode(n.expression,A,e.isExpression),e.visitNode(n.statement,x,e.isStatement,e.liftToBlock))}(t);case 280:return function(t){var r,a=e.createUnderscoreEscapedMap();if(k(t.variableDeclaration,a),a.forEach((function(n,t){o.has(t)&&(r||(r=e.cloneMap(o)),r.delete(t))})),r){var i=o;o=r;var s=e.visitEachChild(t,x,n);return o=i,s}return e.visitEachChild(t,x,n)}(t);case 223:case 237:case 251:case 277:case 278:case 240:case 228:case 229:case 227:case 236:case 238:return e.visitEachChild(t,x,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return A(t)}function C(t){return e.updateMethod(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)?F(t):e.visitFunctionBody(t.body,A,n))}function D(t){return e.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)?F(t):e.visitFunctionBody(t.body,A,n))}function I(t){return e.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)?F(t):e.visitFunctionBody(t.body,A,n))}function R(t){return e.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)?F(t):e.visitFunctionBody(t.body,A,n))}function k(n,t){var r=n.name;if(e.isIdentifier(r))t.set(r.escapedText,!0);else for(var a=0,i=r.elements;a=2&&6144&p.getNodeCheckFlags(i);if(R&&(0==(1&t)&&(t|=1,n.enableSubstitution(196),n.enableSubstitution(194),n.enableSubstitution(195),n.enableEmitNotification(245),n.enableEmitNotification(161),n.enableEmitNotification(163),n.enableEmitNotification(164),n.enableEmitNotification(162),n.enableEmitNotification(225)),e.hasEntries(s))){var N=r(p,i,s);g[e.getNodeId(N)]=!0,e.insertStatementsAfterStandardPrologue(D,[N])}var O=e.createBlock(D,!0);e.setTextRange(O,i.body),R&&c&&(4096&p.getNodeCheckFlags(i)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(i)&&e.addEmitHelper(O,e.asyncSuperHelper)),E=O}return o=h,_||(s=S,c=L),E}function G(n,t){return e.isBlock(n)?e.updateBlock(n,e.visitNodes(n.statements,x,e.isStatement,t)):e.convertToFunctionBody(e.visitNode(n,x,e.isConciseBody))}function B(n){return 102===n.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),n.name),n):n}function U(n){return 102===n.expression.kind?(t=n.argumentExpression,r=n,4096&_?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[t]),r)):n;var t,r}},e.createSuperAccessVariableStatement=r,e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(c(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(c(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(d||(d={})),function(e){var n;function t(n,t){return n.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,t):(n.requestEmitHelper(e.assignHelper),e.createCall(e.getUnscopedHelperName("__assign"),void 0,t))}function r(n,t){return n.requestEmitHelper(e.awaitHelper),e.createCall(e.getUnscopedHelperName("__await"),void 0,[t])}function a(n,t,r){return n.requestEmitHelper(e.asyncValues),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncValues"),void 0,[t]),r)}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2018=function(n){var o=n.resumeLexicalEnvironment,s=n.endLexicalEnvironment,c=n.hoistVariableDeclaration,l=n.getEmitResolver(),u=n.getCompilerOptions(),d=e.getEmitScriptTarget(u),p=n.onEmitNode;n.onEmitNode=function(n,t,r){if(1&m&&function(e){var n=e.kind;return 245===n||162===n||161===n||163===n||164===n}(t)){var a=6144&l.getNodeCheckFlags(t);if(a!==b){var i=b;return b=a,p(n,t,r),void(b=i)}}else if(m&&E[e.getNodeId(t)]){i=b;return b=0,p(n,t,r),void(b=i)}p(n,t,r)};var f=n.onSubstituteNode;n.onSubstituteNode=function(n,t){if(t=f(n,t),1===n&&b)return function(n){switch(n.kind){case 194:return U(n);case 195:return V(n);case 196:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?U(t):V(t);return e.createCall(e.createPropertyAccess(r,"call"),void 0,i([e.createThis()],n.arguments))}return n}(n)}return n}(t);return t};var m,_,g,y,h,v=!1,b=0,E=[];return e.chainBundle((function(t){if(t.isDeclarationFile)return t;v=!1,g=!e.isEffectiveStrictModeSourceFile(t,u);var r=e.visitEachChild(t,T,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function T(e){return C(e,!1)}function S(e){return C(e,!0)}function L(e){if(126!==e.kind)return e}function A(e,n){if(!g){g=!0;var t=e(n);return g=!1,t}return e(n)}function x(t){return e.visitEachChild(t,T,n)}function C(o,s){if(0==(32&o.transformFlags))return o;switch(o.kind){case 206:return function(t){if(2&_&&1&_)return e.setOriginalNode(e.setTextRange(e.createYield(r(n,e.visitNode(t.expression,T,e.isExpression))),t),t);return e.visitEachChild(t,T,n)}(o);case 212:return function(t){if(2&_&&1&_){if(t.asteriskToken){var i=e.visitNode(t.expression,T,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(n,e.updateYield(t,t.asteriskToken,function(n,t,r){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),e.setTextRange(e.createCall(e.getUnscopedHelperName("__asyncDelegator"),void 0,[t]),r)}(n,a(n,i,i),i)))),t),t)}return e.setOriginalNode(e.setTextRange(e.createYield(R(t.expression?e.visitNode(t.expression,T,e.isExpression):e.createVoidZero())),t),t)}return e.visitEachChild(t,T,n)}(o);case 235:return function(t){if(2&_&&1&_)return e.updateReturn(t,R(t.expression?e.visitNode(t.expression,T,e.isExpression):e.createVoidZero()));return e.visitEachChild(t,T,n)}(o);case 238:return function(t){if(2&_){var r=e.unwrapInnermostStatementOfLabel(t);return 232===r.kind&&r.awaitModifier?I(r,t):e.restoreEnclosingLabel(e.visitEachChild(r,T,n),t)}return e.visitEachChild(t,T,n)}(o);case 193:return function(r){if(16384&r.transformFlags){var a=function(n){for(var t,r=[],a=0,i=n;a1){for(var o=1;o=2&&6144&l.getNodeCheckFlags(t);if(p){0==(1&m)&&(m|=1,n.enableSubstitution(196),n.enableSubstitution(194),n.enableSubstitution(195),n.enableEmitNotification(245),n.enableEmitNotification(161),n.enableEmitNotification(163),n.enableEmitNotification(164),n.enableEmitNotification(162),n.enableEmitNotification(225));var f=e.createSuperAccessVariableStatement(l,t,y);E[e.getNodeId(f)]=!0,e.insertStatementsAfterStandardPrologue(r,[f])}r.push(u),e.insertStatementsAfterStandardPrologue(r,s());var _=e.updateBlock(t.body,r);return p&&h&&(4096&l.getNodeCheckFlags(t)?e.addEmitHelper(_,e.advancedAsyncSuperHelper):2048&l.getNodeCheckFlags(t)&&e.addEmitHelper(_,e.asyncSuperHelper)),y=i,h=c,_}function G(n){o();var t=0,r=[],a=e.visitNode(n.body,T,e.isConciseBody);e.isBlock(a)&&(t=e.addPrologue(r,a.statements,!1,T)),e.addRange(r,B(void 0,n));var i=s();if(t>0||e.some(r)||e.some(i)){var c=e.convertToFunctionBody(a,!0);return e.insertStatementsAfterStandardPrologue(r,i),e.addRange(r,c.statements.slice(t)),e.updateBlock(c,e.setTextRange(e.createNodeArray(r),c.statements))}return a}function B(t,r){for(var a=0,i=r.parameters;a 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'}}(d||(d={})),function(e){e.transformES2019=function(n){return e.chainBundle((function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,t,n)}));function t(r){if(0==(16&r.transformFlags))return r;switch(r.kind){case 280:return function(r){if(!r.variableDeclaration)return e.updateCatchClause(r,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(r.block,t,e.isBlock));return e.visitEachChild(r,t,n)}(r);default:return e.visitEachChild(r,t,n)}}}}(d||(d={})),function(e){e.transformES2020=function(n){var t=n.hoistVariableDeclaration;return e.chainBundle((function(t){if(t.isDeclarationFile)return t;return e.visitEachChild(t,r,n)}));function r(c){if(0==(8&c.transformFlags))return c;switch(c.kind){case 194:case 195:case 196:if(32&c.flags){var l=i(c,!1,!1);return e.Debug.assertNotNode(l,e.isSyntheticReference),l}return e.visitEachChild(c,r,n);case 209:return 60===c.operatorToken.kind?function(n){var a=e.visitNode(n.left,r,e.isExpression),i=a;s(a)&&(i=e.createTempVariable(t),a=e.createAssignment(i,a));return e.createConditional(o(a,i),i,e.visitNode(n.right,r,e.isExpression))}(c):e.visitEachChild(c,r,n);case 203:return function(n){return e.isOptionalChain(e.skipParentheses(n.expression))?e.setOriginalNode(a(n.expression,!1,!0),n):e.updateDelete(n,e.visitNode(n.expression,r,e.isExpression))}(c);default:return e.visitEachChild(c,r,n)}}function a(o,c,l){switch(o.kind){case 200:return function(n,t,r){var i=a(n.expression,t,r);return e.isSyntheticReference(i)?e.createSyntheticReferenceExpression(e.updateParen(n,i.expression),i.thisArg):e.updateParen(n,i)}(o,c,l);case 194:case 195:return function(n,a,o){if(e.isOptionalChain(n))return i(n,a,o);var c,l=e.visitNode(n.expression,r,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(s(l)?(c=e.createTempVariable(t),l=e.createAssignment(c,l)):c=l),l=194===n.kind?e.updatePropertyAccess(n,l,e.visitNode(n.name,r,e.isIdentifier)):e.updateElementAccess(n,l,e.visitNode(n.argumentExpression,r,e.isExpression)),c?e.createSyntheticReferenceExpression(l,c):l}(o,c,l);case 196:return function(t,a){return e.isOptionalChain(t)?i(t,a,!1):e.visitEachChild(t,r,n)}(o,c);default:return e.visitNode(o,r,e.isExpression)}}function i(n,i,c){var l=function(n){for(var t=[n];!n.questionDotToken&&!e.isTaggedTemplateExpression(n);)n=e.cast(n.expression,e.isOptionalChain),t.unshift(n);return{expression:n.expression,chain:t}}(n),u=l.expression,d=l.chain,p=a(u,e.isCallChain(d[0]),!1),f=e.isSyntheticReference(p)?p.thisArg:void 0,m=e.isSyntheticReference(p)?p.expression:p,_=m;s(m)&&(_=e.createTempVariable(t),m=e.createAssignment(_,m));for(var g,y=_,h=0;h=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(e.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 104:return function(n){if(1&c&&16&a)return e.setTextRange(e.createFileLevelUniqueName("_this"),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 191:case 245:case 248:case 242:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return!1}(t))return e.setTextRange(e.getGeneratedNameForNode(t),n)}return n}(t);return t},e.chainBundle((function(i){if(i.isDeclarationFile)return i;t=i,r=i.text;var s=function(n){var t=y(8064,64),r=[],a=[];l();var i=e.addStandardPrologue(r,n.statements,!1);i=e.addCustomPrologue(r,n.statements,i,b),e.addRange(a,e.visitNodes(n.statements,b,e.isStatement,i)),o&&a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(o)));return e.mergeLexicalEnvironment(r,d()),k(r,n),h(t,0,0),e.updateSourceFileNode(n,e.setTextRange(e.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 y(e,n){var t=a;return a=16383&(a&~e|n),t}function h(e,n,t){a=-16384&(a&~n|t)|e}function v(e){return 0!=(8192&a)&&235===e.kind&&!e.expression}function b(r){return function(n){return 0!=(256&n.transformFlags)||void 0!==s||8192&a&&(e.isStatement(n)||223===n.kind)||e.isIterationStatement(n,!1)&&ae(n)||0!=(33554432&e.getEmitFlags(n))}(r)?function(r){switch(r.kind){case 120:return;case 245:return function(n){var t=e.createVariableDeclaration(e.getLocalName(n,!0),void 0,S(n));e.setOriginalNode(t,n);var r=[],a=e.createVariableStatement(void 0,e.createVariableDeclarationList([t]));if(e.setOriginalNode(a,n),e.setTextRange(a,n),e.startOnNewLine(a),r.push(a),e.hasModifier(n,1)){var i=e.hasModifier(n,512)?e.createExportDefault(e.getLocalName(n)):e.createExternalModuleExport(e.getLocalName(n));e.setOriginalNode(i,a),r.push(i)}var o=e.getEmitFlags(n);0==(4194304&o)&&(r.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(a,4194304|o));return e.singleOrMany(r)}(r);case 214:return function(e){return S(e)}(r);case 156:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 244:return function(t){var r=s;s=void 0;var i=y(16286,65),o=e.visitParameterList(t.parameters,b,n),c=B(t),l=16384&a?e.getLocalName(t):t.name;return h(i,49152,0),s=r,e.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,b,e.isModifier),t.asteriskToken,l,void 0,o,void 0,c)}(r);case 202:return function(t){4096&t.transformFlags&&(a|=32768);var r=s;s=void 0;var i=y(15232,66),o=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,b,n),void 0,B(t));e.setTextRange(o,t),e.setOriginalNode(o,t),e.setEmitFlags(o,8),32768&a&&De();return h(i,0,0),s=r,o}(r);case 201:return function(t){var r=262144&e.getEmitFlags(t)?y(16278,69):y(16286,65),i=s;s=void 0;var o=e.visitParameterList(t.parameters,b,n),c=B(t),l=16384&a?e.getLocalName(t):t.name;return h(r,49152,0),s=i,e.updateFunctionExpression(t,void 0,t.asteriskToken,l,void 0,o,void 0,c)}(r);case 242:return H(r);case 75:return function(n){if(!s)return n;if(e.isGeneratedIdentifier(n))return n;if("arguments"!==n.escapedText||!m.isArgumentsLocalBinding(n))return n;return s.argumentsName||(s.argumentsName=e.createUniqueName("arguments"))}(r);case 243:return function(t){if(3&t.flags||131072&t.transformFlags){3&t.flags&&Ce();var r=e.flatMap(t.declarations,1&t.flags?j:H),a=e.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(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,b,n,0,e.getGeneratedNameForNode(r)))),1048576)),!0):!!i&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(e.createExpressionStatement(e.createAssignment(e.getGeneratedNameForNode(r),e.visitNode(i,b,e.isExpression))),1048576)),!0)}function I(n,t,r,a){a=e.visitNode(a,b,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(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 R(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=75===o.name.kind?e.getMutableClone(o.name):e.createTempVariable(void 0);e.setEmitFlags(s,48);var c=75===o.name.kind?e.getSynthesizedClone(o.name):s,l=r.parameters.length-1,u=e.createLoopVariable();i.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(s,void 0,e.createArrayLiteral([]))])),o),1048576));var d=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(u,void 0,e.createLiteral(l))]),o),e.setTextRange(e.createLessThan(u,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),o),e.setTextRange(e.createPostfixIncrement(u),o),e.createBlock([e.startOnNewLine(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.createElementAccess(c,0===l?u:e.createSubtract(u,e.createLiteral(l))),e.createElementAccess(e.createIdentifier("arguments"),u))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),i.push(d),75!==o.name.kind&&i.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(o,b,n,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,i),!0}function k(n,t){return!!(32768&a&&202!==t.kind)&&(N(n,t,e.createThis()),!0)}function N(n,t,r){De();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,r)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,t),e.insertStatementAfterCustomPrologue(n,a)}function O(n,t,r){if(16384&a){var i=void 0;switch(t.kind){case 202:return n;case 161:case 163:case 164:i=e.createVoidZero();break;case 162:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 244:case 201:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),98,e.getLocalName(t))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,i)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function M(n){return e.setTextRange(e.createEmptyStatement(),n)}function P(t,r,a){var i,o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=G(r,r,void 0,a),l=e.visitNode(r.name,b,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&n.getCompilerOptions().useDefineForClassFields){var u=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?e.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;i=e.createObjectDefinePropertyCall(t,u,e.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(t,l,r.name);i=e.createAssignment(d,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(e.createExpressionStatement(i),r);return e.setOriginalNode(p,r),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function w(n,t,r){var a=e.createExpressionStatement(F(n,t,r,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(t.firstAccessor)),a}function F(n,t,r,a){var i=t.firstAccessor,o=t.getAccessor,s=t.setAccessor,c=e.getMutableClone(n);e.setEmitFlags(c,1568),e.setSourceMapRange(c,i.name);var l=e.visitNode(i.name,b,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var u=e.createExpressionForPropertyName(l);e.setEmitFlags(u,1552),e.setSourceMapRange(u,i.name);var d=[];if(o){var p=G(o,void 0,void 0,r);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),d.push(f)}if(s){var m=G(s,void 0,void 0,r);e.setSourceMapRange(m,e.getSourceMapRange(s)),e.setEmitFlags(m,512);var _=e.createPropertyAssignment("set",m);e.setCommentRange(_,e.getCommentRange(s)),d.push(_)}d.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var g=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[c,u,e.createObjectLiteral(d,!0)]);return a&&e.startOnNewLine(g),g}function G(t,r,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.hasModifier(t,32)?y(16286,73):y(16286,65),u=e.visitParameterList(t.parameters,b,n),d=B(t);return 16384&a&&!i&&(244===t.kind||201===t.kind)&&(i=e.getGeneratedNameForNode(t)),h(l,49152,0),s=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,t.asteriskToken,i,void 0,u,void 0,d),r),t)}function B(n){var r,a,i,o=!1,s=!1,c=[],l=[],p=n.body;if(u(),e.isBlock(p)&&(i=e.addStandardPrologue(c,p.statements,!1)),o=C(l,n)||o,o=R(l,n,!1)||o,e.isBlock(p))i=e.addCustomPrologue(l,p.statements,i,b),r=p.statements,e.addRange(l,e.visitNodes(p.statements,b,e.isStatement,i)),!o&&p.multiLine&&(o=!0);else{e.Debug.assert(202===n.kind),r=e.moveRangeEnd(p,-1);var f=n.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(p)||(e.rangeEndIsOnSameLineAsRangeStart(f,p,t)?s=!0:o=!0);var m=e.visitNode(p,b,e.isExpression),_=e.createReturn(m);e.setTextRange(_,p),e.moveSyntheticComments(_,p),e.setEmitFlags(_,1440),l.push(_),a=p}if(e.mergeLexicalEnvironment(c,d()),O(c,n,!1),k(c,n),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(p)&&e.arrayIsEqualTo(l,p.statements))return p;var g=e.createBlock(e.setTextRange(e.createNodeArray(l),r),o);return e.setTextRange(g,n.body),!o&&s&&e.setEmitFlags(g,1),a&&e.setTokenSourceMapRange(g,19,a),e.setOriginalNode(g,n.body),g}function U(t,r){if(!r)switch(t.expression.kind){case 200:return e.updateParen(t,U(t.expression,!1));case 209:return e.updateParen(t,V(t.expression,!1))}return e.visitEachChild(t,b,n)}function V(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,b,n,0,r):e.visitEachChild(t,b,n)}function j(t){var r=t.name;if(e.isBindingPattern(r))return H(t);if(!t.initializer&&function(e){var n=m.getNodeCheckFlags(e),t=262144&n,r=524288&n;return!(0!=(64&a)||t&&r&&0!=(512&a))&&0==(4096&a)&&(!m.isDeclarationWithCollidingName(e)||r&&!t&&0==(6144&a))}(t)){var i=e.getMutableClone(t);return i.initializer=e.createVoidZero(),i}return e.visitEachChild(t,b,n)}function H(t){var r,a=y(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,b,n,0,void 0,0!=(32&a)):e.visitEachChild(t,b,n),h(a,0,0),r}function K(n){s.labels.set(e.idText(n.label),!0)}function W(n){s.labels.set(e.idText(n.label),!1)}function q(t,r,i,o,c){var u=y(t,r),p=function(t,r,i,o){if(!ae(t)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var u=o?o(t,r,void 0,i):e.restoreEnclosingLabel(e.visitEachChild(t,b,n),r,s&&W);return s&&(s.allowedNonLabeledJumps=c),u}var p=function(n){var t;switch(n.kind){case 230:case 231:case 232:var r=n.initializer;r&&243===r.kind&&(t=r)}var a=[],i=[];if(t&&3&e.getCombinedNodeFlags(t))for(var o=te(n),c=0,l=t.declarations;c=77&&t<=112)return e.setTextRange(e.createLiteral(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.resumeLexicalEnvironment,m=n.endLexicalEnvironment,_=n.hoistFunctionDeclaration,g=n.hoistVariableDeclaration,y=n.getCompilerOptions(),h=e.getEmitScriptTarget(y),v=n.getEmitResolver(),b=n.onSubstituteNode;n.onSubstituteNode=function(n,a){if(a=b(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=v.getReferencedValueDeclaration(a);if(i){var o=r[e.getOriginalNodeId(i)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n);return n}(a);return a};var E,T,S,L,A,x,C,D,I,R,k,N,O=1,M=0,P=0;return e.chainBundle((function(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;var r=e.visitEachChild(t,w,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function w(t){var r=t.transformFlags;return o?function(t){switch(t.kind){case 228:case 229:return function(t){return o?(re(),t=e.visitEachChild(t,w,n),ie(),t):e.visitEachChild(t,w,n)}(t);case 237:return function(t){o&&$({kind:2,isScript:!0,breakLabel:-1});t=e.visitEachChild(t,w,n),o&&oe();return t}(t);case 238:return function(t){o&&$({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1});t=e.visitEachChild(t,w,n),o&&se();return t}(t);default:return F(t)}}(t):a?F(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(n){switch(n.kind){case 244:return G(n);case 201:return B(n);default:return e.Debug.failBadSyntaxKind(n)}}(t):512&r?e.visitEachChild(t,w,n):t}function F(t){switch(t.kind){case 244:return G(t);case 201:return B(t);case 163:case 164:return function(t){var r=a,i=o;return a=!1,o=!1,t=e.visitEachChild(t,w,n),a=r,o=i,t}(t);case 225:return function(n){if(262144&n.transformFlags)return void W(n.declarationList);if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t0?e.inlineExpressions(e.map(c,q)):void 0,e.visitNode(t.condition,w,e.isExpression),e.visitNode(t.incrementor,w,e.isExpression),e.visitNode(t.statement,w,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,w,n);o&&ie();return t}(t);case 231:return function(t){o&&re();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var a=0,i=r.declarations;a0)return ge(r,t)}return e.visitEachChild(t,w,n)}(t);case 233:return function(t){if(o){var r=fe(t.label&&e.idText(t.label));if(r>0)return ge(r,t)}return e.visitEachChild(t,w,n)}(t);case 235:return function(n){return t=e.visitNode(n.expression,w,e.isExpression),r=n,e.setTextRange(e.createReturn(e.createArrayLiteral(t?[_e(2),t]:[_e(2)])),r);var t,r}(t);default:return 262144&t.transformFlags?function(t){switch(t.kind){case 209:return function(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return function(t){if(z(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return function(n){var t=Q(),r=Y();ve(r,e.visitNode(n.left,w,e.isExpression),n.left),55===n.operatorToken.kind?Te(t,r,n.left):Ee(t,r,n.left);return ve(r,e.visitNode(n.right,w,e.isExpression),n.right),Z(t),r}(t);if(27===t.operatorToken.kind)return function(n){var t=[];return r(n.left),r(n.right),e.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&27===n.operatorToken.kind?(r(n.left),r(n.right)):(z(n)&&t.length>0&&(Se(1,[e.createExpressionStatement(e.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,w,e.isExpression)))}}(t);var r=e.getMutableClone(t);return r.left=X(e.visitNode(t.left,w,e.isExpression)),r.right=e.visitNode(t.right,w,e.isExpression),r}return e.visitEachChild(t,w,n)}(t);case 1:return function(t){var r=t.left,a=t.right;if(z(a)){var i=void 0;switch(r.kind){case 194:i=e.updatePropertyAccess(r,X(e.visitNode(r.expression,w,e.isLeftHandSideExpression)),r.name);break;case 195:i=e.updateElementAccess(r,X(e.visitNode(r.expression,w,e.isLeftHandSideExpression)),X(e.visitNode(r.argumentExpression,w,e.isExpression)));break;default:i=e.visitNode(r,w,e.isExpression)}var o=t.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(e.createAssignment(i,e.setTextRange(e.createBinary(X(i),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(a,w,e.isExpression)),t)),t):e.updateBinary(t,i,e.visitNode(a,w,e.isExpression))}return e.visitEachChild(t,w,n)}(t);default:return e.Debug.assertNever(r)}}(t);case 210:return function(t){if(z(t.whenTrue)||z(t.whenFalse)){var r=Q(),a=Q(),i=Y();return Te(r,e.visitNode(t.condition,w,e.isExpression),t.condition),ve(i,e.visitNode(t.whenTrue,w,e.isExpression),t.whenTrue),be(a),Z(r),ve(i,e.visitNode(t.whenFalse,w,e.isExpression),t.whenFalse),Z(a),i}return e.visitEachChild(t,w,n)}(t);case 212:return function(t){var r=Q(),a=e.visitNode(t.expression,w,e.isExpression);if(t.asteriskToken){!function(e,n){Se(7,[e],n)}(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,a,t):a,t)}else!function(e,n){Se(6,[e],n)}(a,t);return Z(r),function(n){return e.setTextRange(e.createCall(e.createPropertyAccess(L,"sent"),void 0,[]),n)}(t)}(t);case 192:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(t);case 193:return function(n){var t=n.properties,r=n.multiLine,a=J(t),i=Y();ve(i,e.createObjectLiteral(e.visitNodes(t,w,e.isObjectLiteralElementLike,0,a),r));var o=e.reduceLeft(t,(function(t,a){z(a)&&t.length>0&&(he(e.createExpressionStatement(e.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(n,a,i),s=e.visitNode(o,w,e.isExpression);s&&(r&&e.startOnNewLine(s),t.push(s));return t}),[],a);return o.push(r?e.startOnNewLine(e.getMutableClone(i)):i),e.inlineExpressions(o)}(t);case 195:return function(t){if(z(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=X(e.visitNode(t.expression,w,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,w,e.isExpression),r}return e.visitEachChild(t,w,n)}(t);case 196:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,z)){var r=e.createCallBinding(t.expression,g,h,!0),a=r.target,i=r.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(a,w,e.isLeftHandSideExpression)),i,V(t.arguments),t),t)}return e.visitEachChild(t,w,n)}(t);case 197:return function(t){if(e.forEach(t.arguments,z)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),g),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(a,w,e.isExpression)),i,V(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,w,n)}(t);default:return e.visitEachChild(t,w,n)}}(t):1049088&t.transformFlags?e.visitEachChild(t,w,n):t}}function G(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,w,n),void 0,U(t.body)),t),t);else{var r=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,w,n),a=r,o=i}return a?void _(t):t}function B(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,w,n),void 0,U(t.body)),t),t);else{var r=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,w,n),a=r,o=i}return t}function U(n){var t=[],r=a,i=o,_=s,g=c,y=l,h=u,v=d,b=p,A=O,x=E,C=T,D=S,I=L;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,O=1,E=void 0,T=void 0,S=void 0,L=e.createTempVariable(void 0),f();var R=e.addPrologue(t,n.statements,!1,w);j(n.statements,R);var k=Le();return e.insertStatementsAfterStandardPrologue(t,m()),t.push(e.createReturn(k)),a=r,o=i,s=_,c=g,l=y,u=h,d=v,p=b,O=A,E=x,T=C,S=D,L=I,e.setTextRange(e.createBlock(t,n.multiLine),n)}function V(n,t,r,a){var o,s=J(n);if(s>0){o=Y();var c=e.visitNodes(n,w,e.isExpression,0,s);ve(o,e.createArrayLiteral(t?i([t],c):c)),t=void 0}var l=e.reduceLeft(n,(function(n,r){if(z(r)&&n.length>0){var s=void 0!==o;o||(o=Y()),ve(o,s?e.createArrayConcat(o,[e.createArrayLiteral(n,a)]):e.createArrayLiteral(t?i([t],n):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,w,e.isExpression)),n}),[],s);return o?e.createArrayConcat(o,[e.createArrayLiteral(l,a)]):e.setTextRange(e.createArrayLiteral(t?i([t],l):l,a),r)}function j(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r0?be(t,n):he(n)}(a);case 234:return function(n){var t=pe(n.label?e.idText(n.label):void 0);t>0?be(t,n):he(n)}(a);case 235:return function(n){t=e.visitNode(n.expression,w,e.isExpression),r=n,Se(8,[t],r);var t,r}(a);case 236:return function(n){z(n)?(t=X(e.visitNode(n.expression,w,e.isExpression)),r=Q(),a=Q(),Z(r),$({kind:1,expression:t,startLabel:r,endLabel:a}),H(n.statement),e.Debug.assert(1===te()),Z(ee().endLabel)):he(e.visitNode(n,w,e.isStatement));var t,r,a}(a);case 237:return function(n){if(z(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,a=($({kind:2,isScript:!1,breakLabel:f=Q()}),f),i=X(e.visitNode(n.expression,w,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(e.createCaseClause(e.visitNode(l.expression,w,e.isExpression),[ge(o[c],l.expression)]))}else p++}d.length&&(he(e.createSwitch(i,e.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}be(s>=0?o[s]:a);for(c=0;c0)break;l.push(q(a))}l.length&&(he(e.createExpressionStatement(e.inlineExpressions(l))),c+=l.length,l=[])}}function q(n){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(n.name),n.name),e.visitNode(n.initializer,w,e.isExpression)),n)}function z(e){return!!e&&0!=(262144&e.transformFlags)}function J(e){for(var n=e.length,t=0;t=0;t--){var r=u[t];if(!le(r))break;if(r.labelText===e)return!0}return!1}function pe(e){if(u)if(e)for(var n=u.length-1;n>=0;n--){if(le(t=u[n])&&t.labelText===e)return t.breakLabel;if(ce(t)&&de(e,n-1))return t.breakLabel}else for(n=u.length-1;n>=0;n--){var t;if(ce(t=u[n]))return t.breakLabel}return 0}function fe(e){if(u)if(e)for(var n=u.length-1;n>=0;n--){if(ue(t=u[n])&&de(e,n-1))return t.continueLabel}else for(n=u.length-1;n>=0;n--){var t;if(ue(t=u[n]))return t.continueLabel}return 0}function me(n){if(void 0!==n&&n>0){void 0===p&&(p=[]);var t=e.createLiteral(-1);return void 0===p[n]?p[n]=[t]:p[n].push(t),t}return e.createOmittedExpression()}function _e(n){var t=e.createLiteral(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 ge(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([_e(3),me(n)])),t)}function ye(){Se(0)}function he(e){e?Se(1,[e]):ye()}function ve(e,n,t){Se(2,[e,n],t)}function be(e,n){Se(3,[e],n)}function Ee(e,n,t){Se(4,[e,n],t)}function Te(e,n,t){Se(5,[e,n],t)}function Se(e,n,t){void 0===E&&(E=[],T=[],S=[]),void 0===d&&Z(Q());var r=E.length;E[r]=e,T[r]=n,S[r]=t}function Le(){M=0,P=0,A=void 0,x=!1,C=!1,D=void 0,I=void 0,R=void 0,k=void 0,N=void 0;var t=function(){if(E){for(var n=0;n0)),524288))}function Ae(e){(function(e){if(!C)return!0;if(!d||!p)return!1;for(var n=0;n=0;t--){var r=N[t];I=[e.createWith(r.expression,e.createBlock(I))]}if(k){var a=k.startLabel,i=k.catchLabel,o=k.finallyLabel,s=k.endLabel;I.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(L,"trys"),"push"),void 0,[e.createArrayLiteral([me(a),me(i),me(o),me(s)])]))),k=void 0}n&&I.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(L,"label"),e.createLiteral(P+1))))}D.push(e.createCaseClause(e.createLiteral(P),I||[])),I=void 0}function Ce(e){if(d)for(var n=0;n 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'}}(d||(d={})),function(e){e.transformModule=function(r){var a=r.startLexicalEnvironment,o=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,c=r.getCompilerOptions(),l=r.getEmitResolver(),u=r.getEmitHost(),d=e.getEmitScriptTarget(c),p=e.getEmitModuleKind(c),f=r.onSubstituteNode,m=r.onEmitNode;r.onSubstituteNode=function(n,t){if((t=f(n,t)).id&&y[t.id])return t;if(1===n)return function(n){switch(n.kind){case 75:return J(n);case 209:return function(n){if(e.isAssignmentOperator(n.operatorToken.kind)&&e.isIdentifier(n.left)&&!e.isGeneratedIdentifier(n.left)&&!e.isLocalName(n.left)&&!e.isDeclarationNameOfEnumOrNamespace(n.left)){var t=X(n.left);if(t){for(var r=n,a=0,i=t;a=2?2:0)),n),n))}else r&&e.isDefaultImport(n)&&(t=e.append(t,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(n)),n),n)],d>=2?2:0))));if(F(n)){var i=e.getOriginalNodeId(n);b[i]=G(b[i],n)}else t=G(t,n);return e.singleOrMany(t)}(n);case 253:return function(n){var t;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?t=e.hasModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(n.name,M(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,M(n))],d>=2?2:0)),n),n)):e.hasModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(q(e.getExportName(n),e.getLocalName(n))),n),n)));if(F(n)){var r=e.getOriginalNodeId(n);b[r]=B(b[r],n)}else t=B(t,n);return e.singleOrMany(t)}(n);case 260:return function(n){if(!n.moduleSpecifier)return;var t=e.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var a=[];p!==e.ModuleKind.AMD&&a.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(t,void 0,M(n))])),n),n));for(var i=0,o=n.exportClause.elements;i(e.isExportName(t)?1:0);return!1}(n.left))return e.flattenDestructuringAssignment(n,R,r,0,!1,P);return e.visitEachChild(n,R,r)}(n):e.visitEachChild(n,R,r):n}function k(n,t){var a,i=e.createUniqueName("resolve"),o=e.createUniqueName("reject"),s=[e.createParameter(void 0,void 0,void 0,i),e.createParameter(void 0,void 0,void 0,o)],l=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([n||e.createOmittedExpression()]),i,o]))]);d>=2?a=e.createArrowFunction(void 0,void 0,s,void 0,void 0,l):(a=e.createFunctionExpression(void 0,void 0,void 0,void 0,s,void 0,l),t&&e.setEmitFlags(a,8));var u=e.createNew(e.createIdentifier("Promise"),void 0,[a]);return c.esModuleInterop?(r.requestEmitHelper(e.importStarHelper),e.createCall(e.createPropertyAccess(u,e.createIdentifier("then")),void 0,[e.getUnscopedHelperName("__importStar")])):u}function N(n,t){var a,i=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),o=e.createCall(e.createIdentifier("require"),void 0,n?[n]:[]);return c.esModuleInterop&&(r.requestEmitHelper(e.importStarHelper),o=e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[o])),d>=2?a=e.createArrowFunction(void 0,void 0,[],void 0,void 0,o):(a=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(o)])),t&&e.setEmitFlags(a,8)),e.createCall(e.createPropertyAccess(i,"then"),void 0,[a])}function O(n,t){return!c.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?(r.requestEmitHelper(e.importStarHelper),e.createCall(e.getUnscopedHelperName("__importStar"),void 0,[t])):e.getImportNeedsImportDefaultHelper(n)?(r.requestEmitHelper(e.importDefaultHelper),e.createCall(e.getUnscopedHelperName("__importDefault"),void 0,[t])):t}function M(n){var t=e.getExternalModuleNameLiteral(n,_,u,l,c),r=[];return t&&r.push(t),e.createCall(e.createIdentifier("require"),void 0,r)}function P(n,t,r){var a=X(n);if(a){for(var i=e.isExportName(n)?t:e.createAssignment(n,t),o=0,s=a;oe.ModuleKind.ES2015)return n;if(!n.exportClause||!e.isNamespaceExport(n.exportClause)||!n.moduleSpecifier)return n;var t=n.exportClause.name,a=e.getGeneratedNameForNode(t),i=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(a)),n.moduleSpecifier);e.setOriginalNode(i,n.exportClause);var o=e.createExportDeclaration(void 0,void 0,e.createNamedExports([e.createExportSpecifier(a,t)]));return e.setOriginalNode(o,n),[i,o]}(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=164===n.kind?e.hasModifier(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.hasModifier(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 166: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 165: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 167: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 161:case 160:r=e.hasModifier(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:245===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 244: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.hasModifier(n.parent,8)?t:function(t){var r=function(t){switch(n.parent.kind){case 162: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 166:case 171: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 165: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 167: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 161:case 160:return e.hasModifier(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:245===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 244:case 170: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 164:case 163: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 245:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 246:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 186:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 171:case 166:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 161:case 160:t=e.hasModifier(n.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:245===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 170:case 244:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 247: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=245===n.parent.parent.kind?e.isHeritageClause(n.parent)&&113===n.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage: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 242===n.kind||191===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:159===n.kind||194===n.kind||158===n.kind||156===n.kind&&e.hasModifier(n.parent,8)?e.hasModifier(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:245===n.parent.kind||156===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.hasModifier(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:245===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.hasModifier(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:245===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&&156===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){if(a&&e.isJsonSourceFile(a))return[];var i=n.getCompilerOptions();return e.transformNodes(t,n,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,L=!1,A=n.getEmitHost(),x={trackSymbol:function(e,n,t){if(262144&e.flags)return;N(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"))},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)}},C=n.getEmitResolver(),D=n.getCompilerOptions(),I=D.noResolve,R=D.stripInternal;return function(t){if(290===t.kind&&t.isDeclarationFile)return t;if(291===t.kind){E=!0,_=e.createMap(),g=e.createMap();var a=!1,s=e.createBundle(e.map(t.sourceFiles,(function(t){if(!t.isDeclarationFile){if(a=a||t.hasNoDefaultLib,m=t,r=t,l=void 0,d=!1,u=e.createMap(),v=h,S=!1,L=!1,M(t,_),P(t,g),e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t)){T=!1,b=!1;var i=e.isSourceFileJS(t)?e.createNodeArray(O(t,!0)):e.visitNodes(t.statements,Q);return e.updateSourceFileNode(t,[e.createModuleDeclaration([],[e.createModifier(130)],e.createLiteral(e.getResolvedExternalModuleName(n.getEmitHost(),t)),e.createModuleBlock(e.setTextRange(e.createNodeArray(X(i)),t.statements)))],!0,[],[],!1,[])}b=!0;var o=e.isSourceFileJS(t)?e.createNodeArray(O(t)):e.visitNodes(t.statements,Q);return e.updateSourceFileNode(t,X(o),!0,[],[],!1,[])}})),e.mapDefined(t.prepends,(function(n){if(293===n.kind){var t=e.createUnparsedSourceFile(n,"dts",R);return a=a||!!t.hasNoDefaultLib,M(t,_),k(t.typeReferenceDirectives),P(t,g),t}return n})));s.syntheticFileReferences=[],s.syntheticTypeReferences=U(),s.syntheticLibReferences=B(),s.hasNoDefaultLib=a;var f=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,A,!0).declarationFilePath)),x=j(s.syntheticFileReferences,f);return _.forEach(x),s}b=!0,S=!1,L=!1,r=t,m=t,v=h,E=!1,T=!1,d=!1,l=void 0,u=e.createMap(),c=void 0,_=M(m,e.createMap()),g=P(m,e.createMap());var C,I=[],N=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,A,!0).declarationFilePath)),w=j(I,N);if(e.isSourceFileJS(m))C=e.createNodeArray(O(t)),_.forEach(w),y=e.filter(C,e.isAnyImportSyntax);else{var F=e.visitNodes(t.statements,Q);C=e.setTextRange(e.createNodeArray(X(F)),t.statements),_.forEach(w),y=e.filter(C,e.isAnyImportSyntax),e.isExternalModule(t)&&(!T||S&&!L)&&(C=e.setTextRange(e.createNodeArray(i(C,[e.createEmptyExports()])),C))}var G=e.updateSourceFileNode(t,C,!0,I,U(),t.hasNoDefaultLib,B());return G.exportedModulesFromDeclarationEmit=p,G;function B(){return e.map(e.arrayFrom(g.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function U(){return c?e.mapDefined(e.arrayFrom(c.keys()),V):[]}function V(n){if(y)for(var t=0,r=y;t0?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(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(n){return o(n,e.identity)}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){for(var c,d,p,f=new Array(330),m=[],_=[],g=0,y=!1,h=l,v=u,b=0,E=[],T={getCompilerOptions:function(){return r},getEmitResolver:function(){return n},getEmitHost:function(){return t},startLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),m[g]=c,_[g]=d,g++,c=void 0,d=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is already suspended."),y=!0},resumeLexicalEnvironment:function(){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(y,"Lexical environment is not suspended."),y=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!y,"Lexical environment is suspended."),(c||d)&&(d&&(n=i(d)),c)){var t=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}g--,c=m[g],d=_[g],0===g&&(m=[],_=[]);return n},hoistVariableDeclaration:function(n){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(e.createVariableDeclaration(n),64);c?c.push(t):c=[t]},hoistFunctionDeclaration:function(n){e.Debug.assert(b>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(b<2,"Cannot modify the lexical environment after transformation has completed."),d?d.push(n):d=[n]},requestEmitHelper:function(n){e.Debug.assert(b>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!n.scoped,"Cannot request a scoped emit helper."),p=e.append(p,n)},readEmitHelpers:function(){e.Debug.assert(b>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed.");var n=p;return p=void 0,n},enableSubstitution:function(n){e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),f[n]|=1},enableEmitNotification:function(n){e.Debug.assert(b<2,"Cannot modify the transformation context after transformation has completed."),f[n]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:R,get onSubstituteNode(){return h},set onSubstituteNode(n){e.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),h=n},get onEmitNode(){return v},set onEmitNode(n){e.Debug.assert(b<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),v=n},addDiagnostic:function(e){E.push(e)}},S=0,L=a;S"],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(u.outFile||u.out){var d=n.getPrependNodes();if(c.length||d.length){var p=e.createBundle(c,d);if(_=t(l(p,n,a),p))return _}}else{if(!i)for(var f=0,m=c;f"),Rn(),ge(e.type),Zn(e)}(t);case 300:return function(e){xn("function"),yn(e,e.parameters),Ln(":"),ge(e.type)}(t);case 171:return function(e){Qn(e),xn("new"),Rn(),gn(e,e.typeParameters),yn(e,e.parameters),Rn(),Ln("=>"),Rn(),ge(e.type),Zn(e)}(t);case 172:return function(e){xn("typeof"),Rn(),ge(e.exprName)}(t);case 173:return function(n){Ln("{");var t=1&e.getEmitFlags(n)?768:32897;vn(n,n.members,524288|t),Ln("}")}(t);case 174:return function(e){ge(e.elementType),Ln("["),Ln("]")}(t);case 175:return function(e){Ln("["),vn(e,e.elementTypes,528),Ln("]")}(t);case 176:return function(e){ge(e.type),Ln("?")}(t);case 178:return function(e){vn(e,e.types,516)}(t);case 179:return function(e){vn(e,e.types,520)}(t);case 180:return function(e){ge(e.checkType),Rn(),xn("extends"),Rn(),ge(e.extendsType),Rn(),Ln("?"),Rn(),ge(e.trueType),Rn(),Ln(":"),Rn(),ge(e.falseType)}(t);case 181:return function(e){xn("infer"),Rn(),ge(e.typeParameter)}(t);case 182:return function(e){Ln("("),ge(e.type),Ln(")")}(t);case 216:return function(e){he(e.expression),_n(e,e.typeArguments)}(t);case 183:return void xn("this");case 184:return function(e){Fn(e.operator,xn),Rn(),ge(e.type)}(t);case 185:return function(e){ge(e.objectType),Ln("["),ge(e.indexType),Ln("]")}(t);case 186:return function(n){var t=e.getEmitFlags(n);Ln("{"),1&t?Rn():(Nn(),On());n.readonlyToken&&(ge(n.readonlyToken),138!==n.readonlyToken.kind&&xn("readonly"),Rn());Ln("["),be(3,n.typeParameter),Ln("]"),n.questionToken&&(ge(n.questionToken),57!==n.questionToken.kind&&Ln("?"));Ln(":"),Rn(),ge(n.type),An(),1&t?Rn():(Nn(),Mn());Ln("}")}(t);case 187:return function(e){he(e.literal)}(t);case 188:return function(e){e.isTypeOf&&(xn("typeof"),Rn());xn("import"),Ln("("),ge(e.argument),Ln(")"),e.qualifier&&(Ln("."),ge(e.qualifier));_n(e,e.typeArguments)}(t);case 295:return void Ln("*");case 296:return void Ln("?");case 297:return function(e){Ln("?"),ge(e.type)}(t);case 298:return function(e){Ln("!"),ge(e.type)}(t);case 299:return function(e){ge(e.type),Ln("=")}(t);case 177:case 301:return function(e){Ln("..."),ge(e.type)}(t);case 189:return function(e){Ln("{"),vn(e,e.elements,525136),Ln("}")}(t);case 190:return function(e){Ln("["),vn(e,e.elements,524880),Ln("]")}(t);case 191:return function(e){ge(e.dotDotDotToken),e.propertyName&&(ge(e.propertyName),Ln(":"),Rn());ge(e.name),un(e.initializer,e.name.end,e)}(t);case 221:return function(e){he(e.expression),ge(e.literal)}(t);case 222:return void An();case 223:return function(e){Ne(e,!e.multiLine&&zn(e))}(t);case 225:return function(e){cn(e,e.modifiers),ge(e.declarationList),An()}(t);case 224:return Oe(!1);case 226:return function(n){he(n.expression),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(n.expression))&&An()}(t);case 227:return function(e){var n=we(95,e.pos,xn,e);Rn(),we(20,n,Ln,e),he(e.expression),we(21,e.expression.end,Ln,e),fn(e,e.thenStatement),e.elseStatement&&(Gn(e),we(87,e.thenStatement.end,xn,e),227===e.elseStatement.kind?(Rn(),ge(e.elseStatement)):fn(e,e.elseStatement))}(t);case 228:return function(n){we(86,n.pos,xn,n),fn(n,n.statement),e.isBlock(n.statement)?Rn():Gn(n);Me(n,n.statement.end),An()}(t);case 229:return function(e){Me(e,e.pos),fn(e,e.statement)}(t);case 230:return function(e){var n=we(93,e.pos,xn,e);Rn();var t=we(20,n,Ln,e);Pe(e.initializer),t=we(26,e.initializer?e.initializer.end:t,Ln,e),pn(e.condition),t=we(26,e.condition?e.condition.end:t,Ln,e),pn(e.incrementor),we(21,e.incrementor?e.incrementor.end:t,Ln,e),fn(e,e.statement)}(t);case 231:return function(e){var n=we(93,e.pos,xn,e);Rn(),we(20,n,Ln,e),Pe(e.initializer),Rn(),we(97,e.initializer.end,xn,e),Rn(),he(e.expression),we(21,e.expression.end,Ln,e),fn(e,e.statement)}(t);case 232:return function(e){var n=we(93,e.pos,xn,e);Rn(),function(e){e&&(ge(e),Rn())}(e.awaitModifier),we(20,n,Ln,e),Pe(e.initializer),Rn(),we(152,e.initializer.end,xn,e),Rn(),he(e.expression),we(21,e.expression.end,Ln,e),fn(e,e.statement)}(t);case 233:return function(e){we(82,e.pos,xn,e),dn(e.label),An()}(t);case 234:return function(e){we(77,e.pos,xn,e),dn(e.label),An()}(t);case 235:return function(e){we(101,e.pos,xn,e),pn(e.expression),An()}(t);case 236:return function(e){var n=we(112,e.pos,xn,e);Rn(),we(20,n,Ln,e),he(e.expression),we(21,e.expression.end,Ln,e),fn(e,e.statement)}(t);case 237:return function(e){var n=we(103,e.pos,xn,e);Rn(),we(20,n,Ln,e),he(e.expression),we(21,e.expression.end,Ln,e),Rn(),ge(e.caseBlock)}(t);case 238:return function(e){ge(e.label),we(58,e.label.end,Ln,e),Rn(),ge(e.statement)}(t);case 239:return function(e){we(105,e.pos,xn,e),pn(e.expression),An()}(t);case 240:return function(e){we(107,e.pos,xn,e),Rn(),ge(e.tryBlock),e.catchClause&&(Gn(e),ge(e.catchClause));e.finallyBlock&&(Gn(e),we(92,(e.catchClause||e.tryBlock).end,xn,e),Rn(),ge(e.finallyBlock))}(t);case 241:return function(e){Pn(83,e.pos,xn),An()}(t);case 242:return function(e){ge(e.name),ge(e.exclamationToken),ln(e.type),un(e.initializer,e.type?e.type.end:e.name.end,e)}(t);case 243:return function(n){xn(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),Rn(),vn(n,n.declarations,528)}(t);case 244:return function(e){Fe(e)}(t);case 245:return function(e){Ke(e)}(t);case 246:return function(e){mn(e,e.decorators),cn(e,e.modifiers),xn("interface"),Rn(),ge(e.name),gn(e,e.typeParameters),vn(e,e.heritageClauses,512),Rn(),Ln("{"),vn(e,e.members,129),Ln("}")}(t);case 247:return function(e){mn(e,e.decorators),cn(e,e.modifiers),xn("type"),Rn(),ge(e.name),gn(e,e.typeParameters),Rn(),Ln("="),Rn(),ge(e.type),An()}(t);case 248:return function(e){cn(e,e.modifiers),xn("enum"),Rn(),ge(e.name),Rn(),Ln("{"),vn(e,e.members,145),Ln("}")}(t);case 249:return function(e){cn(e,e.modifiers),1024&~e.flags&&(xn(16&e.flags?"namespace":"module"),Rn());ge(e.name);var n=e.body;if(!n)return An();for(;249===n.kind;)Ln("."),ge(n.name),n=n.body;Rn(),ge(n)}(t);case 250:return function(n){Qn(n),e.forEach(n.statements,et),Ne(n,zn(n)),Zn(n)}(t);case 251:return function(e){we(18,e.pos,Ln,e),vn(e,e.clauses,129),we(19,e.clauses.end,Ln,e,!0)}(t);case 252:return function(e){var n=we(89,e.pos,xn,e);Rn(),n=we(123,n,xn,e),Rn(),n=we(136,n,xn,e),Rn(),ge(e.name),An()}(t);case 253:return function(e){cn(e,e.modifiers),we(96,e.modifiers?e.modifiers.end:e.pos,xn,e),Rn(),ge(e.name),Rn(),we(62,e.name.end,Ln,e),Rn(),function(e){75===e.kind?he(e):ge(e)}(e.moduleReference),An()}(t);case 254:return function(e){cn(e,e.modifiers),we(96,e.modifiers?e.modifiers.end:e.pos,xn,e),Rn(),e.importClause&&(ge(e.importClause),Rn(),we(149,e.importClause.end,xn,e),Rn());he(e.moduleSpecifier),An()}(t);case 255:return function(e){e.isTypeOnly&&(we(145,e.pos,xn,e),Rn());ge(e.name),e.name&&e.namedBindings&&(we(27,e.name.end,Ln,e),Rn());ge(e.namedBindings)}(t);case 256:return function(e){var n=we(41,e.pos,Ln,e);Rn(),we(123,n,xn,e),Rn(),ge(e.name)}(t);case 262:return function(e){var n=we(41,e.pos,Ln,e);Rn(),we(123,n,xn,e),Rn(),ge(e.name)}(t);case 257:return function(e){We(e)}(t);case 258:return function(e){qe(e)}(t);case 259:return function(e){var n=we(89,e.pos,xn,e);Rn(),e.isExportEquals?we(62,n,Cn,e):we(84,n,xn,e);Rn(),he(e.expression),An()}(t);case 260:return function(e){var n=we(89,e.pos,xn,e);Rn(),e.isTypeOnly&&(n=we(145,n,xn,e),Rn());e.exportClause?ge(e.exportClause):n=we(41,n,Ln,e);if(e.moduleSpecifier){Rn(),we(149,e.exportClause?e.exportClause.end:n,xn,e),Rn(),he(e.moduleSpecifier)}An()}(t);case 261:return function(e){We(e)}(t);case 263:return function(e){qe(e)}(t);case 264:return;case 265:return function(e){xn("require"),Ln("("),he(e.expression),Ln(")")}(t);case 11:return function(e){f.writeLiteral(e.text)}(t);case 268:case 271:return function(n){Ln("<"),e.isJsxOpeningElement(n)&&(ze(n.tagName),_n(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&Rn(),ge(n.attributes));Ln(">")}(t);case 269:case 272:return function(n){Ln("")}(t);case 273:return function(e){ge(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",Ln,e.initializer,ve)}(t);case 274:return function(e){vn(e,e.properties,262656)}(t);case 275:return function(e){Ln("{..."),he(e.expression),Ln("}")}(t);case 276:return function(e){e.expression&&(Ln("{"),ge(e.dotDotDotToken),he(e.expression),Ln("}"))}(t);case 277:return function(e){we(78,e.pos,xn,e),Rn(),he(e.expression),Je(e,e.statements,e.expression.end)}(t);case 278:return function(e){var n=we(84,e.pos,xn,e);Je(e,e.statements,n)}(t);case 279:return function(e){Rn(),Fn(e.token,xn),Rn(),vn(e,e.types,528)}(t);case 280:return function(e){var n=we(79,e.pos,xn,e);Rn(),e.variableDeclaration&&(we(20,n,Ln,e),ge(e.variableDeclaration),we(21,e.variableDeclaration.end,Ln,e),Rn());ge(e.block)}(t);case 281:return function(n){ge(n.name),Ln(":"),Rn();var t=n.initializer;if(Et&&0==(512&e.getEmitFlags(t))){Et(e.getCommentRange(t).pos)}he(t)}(t);case 282:return function(e){ge(e.name),e.objectAssignmentInitializer&&(Rn(),Ln("="),Rn(),he(e.objectAssignmentInitializer))}(t);case 283:return function(e){e.expression&&(we(25,e.pos,Ln,e),he(e.expression))}(t);case 284:return function(e){ge(e.name),un(e.initializer,e.name.end,e)}(t);case 316:case 322:return function(e){Qe(e.tagName),$e(e.typeExpression),Rn(),e.isBracketed&&Ln("[");ge(e.name),e.isBracketed&&Ln("]");Ze(e.comment)}(t);case 317:case 319:case 318:case 315:return Qe((r=t).tagName),$e(r.typeExpression),void Ze(r.comment);case 307:return function(e){Qe(e.tagName),Rn(),Ln("{"),ge(e.class),Ln("}"),Ze(e.comment)}(t);case 320:return function(e){Qe(e.tagName),$e(e.constraint),Rn(),vn(e,e.typeParameters,528),Ze(e.comment)}(t);case 321:return function(e){Qe(e.tagName),e.typeExpression&&(294===e.typeExpression.kind?$e(e.typeExpression):(Rn(),Ln("{"),w("Object"),e.typeExpression.isArrayType&&(Ln("["),Ln("]")),Ln("}")));e.fullName&&(Rn(),ge(e.fullName));Ze(e.comment),e.typeExpression&&304===e.typeExpression.kind&&Xe(e.typeExpression)}(t);case 314:return function(e){Qe(e.tagName),e.name&&(Rn(),ge(e.name));Ze(e.comment),Ye(e.typeExpression)}(t);case 305:return Ye(t);case 304:return Xe(t);case 309:case 306:return function(e){Qe(e.tagName),Ze(e.comment)}(t);case 303:return function(e){if(w("/**"),e.comment)for(var n=e.comment.split(/\r\n?|\n/g),t=0,r=n;t=1&&!e.isJsonSourceFile(i)?64:0;vn(n,n.properties,526226|a|r),t&&Mn()}(t);case 194:return function(n){var t=e.cast(he(n.expression),e.isExpression),r=e.getDotOrQuestionDotToken(n),a=qn(n,n.expression,r),i=qn(n,r,n.name);Un(a,!1),28===r.kind||!function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var t=Yn(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)||f.hasTrailingComment()||f.hasTrailingWhitespace()||Ln(".");we(r.kind,n.expression.end,Ln,n),Un(i,!1),ge(n.name),Vn(a,i)}(t);case 195:return function(e){he(e.expression),ge(e.questionDotToken),we(22,e.expression.end,Ln,e),he(e.argumentExpression),we(23,e.argumentExpression.end,Ln,e)}(t);case 196:return function(e){he(e.expression),ge(e.questionDotToken),_n(e,e.typeArguments),bn(e,e.arguments,2576)}(t);case 197:return function(e){we(99,e.pos,xn,e),Rn(),he(e.expression),_n(e,e.typeArguments),bn(e,e.arguments,18960)}(t);case 198:return function(e){he(e.tag),_n(e,e.typeArguments),Rn(),he(e.template)}(t);case 199:return function(e){Ln("<"),ge(e.type),Ln(">"),he(e.expression)}(t);case 200:return function(e){var n=we(20,e.pos,Ln,e);he(e.expression),we(21,e.expression?e.expression.end:n,Ln,e)}(t);case 201:return function(e){tt(e.name),Fe(e)}(t);case 202:return function(e){mn(e,e.decorators),cn(e,e.modifiers),Be(e,ke)}(t);case 203:return function(e){we(85,e.pos,xn,e),Rn(),he(e.expression)}(t);case 204:return function(e){we(108,e.pos,xn,e),Rn(),he(e.expression)}(t);case 205:return function(e){we(110,e.pos,xn,e),Rn(),he(e.expression)}(t);case 206:return function(e){we(127,e.pos,xn,e),Rn(),he(e.expression)}(t);case 207:return function(e){Fn(e.operator,Cn),function(e){var n=e.operand;return 207===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}(e)&&Rn();he(e.operand)}(t);case 208:return function(e){he(e.operand),Fn(e.operator,Cn)}(t);case 209: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);Un(o,i),vt(n.operatorToken.pos),wn(n.operatorToken,97===n.operatorToken.kind?xn:Cn),Et(n.operatorToken.end,!0),Un(s,!0),c(n.right);break;case 2:o=qn(n,n.left,n.operatorToken),s=qn(n,n.operatorToken,n.right);Vn(o,s),a--;break;default:return e.Debug.fail("Invalid state "+r[a]+" for emitBinaryExpressionWorker")}function c(n){r[a]++;var i=b,o=E;b=n,E=void 0;var s=Ee(0,1,n);s===Le&&e.isBinaryExpression(n)?(a++,r[a]=0,t[a]=n):s(1,n),e.Debug.assert(b===n),b=i,E=o}}(t);case 210: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);he(e.condition),Un(n,!0),ge(e.questionToken),Un(t,!0),he(e.whenTrue),Vn(n,t),Un(r,!0),ge(e.colonToken),Un(a,!0),he(e.whenFalse),Vn(r,a)}(t);case 211:return function(e){ge(e.head),vn(e,e.templateSpans,262144)}(t);case 212:return function(e){we(121,e.pos,xn,e),ge(e.asteriskToken),pn(e.expression)}(t);case 213:return function(e){we(25,e.pos,Ln,e),he(e.expression)}(t);case 214:return function(e){tt(e.name),Ke(e)}(t);case 215:return;case 217:return function(e){he(e.expression),e.type&&(Rn(),xn("as"),Rn(),ge(e.type))}(t);case 218:return function(e){he(e.expression),Cn("!")}(t);case 219:return function(e){Pn(e.keywordToken,e.pos,Ln),Ln("."),ge(e.name)}(t);case 266:return function(e){ge(e.openingElement),vn(e,e.children,262144),ge(e.closingElement)}(t);case 267:return function(e){Ln("<"),ze(e.tagName),_n(e,e.typeArguments),Rn(),ge(e.attributes),Ln("/>")}(t);case 270:return function(e){ge(e.openingFragment),vn(e,e.children,262144),ge(e.closingFragment)}(t);case 325:return function(e){he(e.expression)}(t);case 326:return function(e){bn(e,e.elements,528)}(t)}}function Ae(n,t){e.Debug.assert(b===t||E===t),Te(1,n,t)(n,E),e.Debug.assert(b===t||E===t)}function xe(t){var r=!1,a=291===t.kind?t:void 0;if(!a||M!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c'),F&&F.sections.push({pos:a,end:f.getTextPos(),kind:"no-default-lib"}),Nn()}if(i&&i.moduleName&&(In('/// '),Nn()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o'):In('/// '),Nn()}for(var l=0,u=n;l'),F&&F.sections.push({pos:a,end:f.getTextPos(),kind:"reference",data:d.fileName}),Nn()}for(var p=0,m=t;p'),F&&F.sections.push({pos:a,end:f.getTextPos(),kind:"type",data:d.fileName}),Nn()}for(var _=0,g=r;_'),F&&F.sections.push({pos:a,end:f.getTextPos(),kind:"lib",data:d.fileName}),Nn()}}function nn(n){var t=n.statements;Qn(n),e.forEach(n.statements,et),xe(n);var r=e.findIndex(t,(function(n){return!e.isPrologueDirective(n)}));!function(e){e.isDeclarationFile&&en(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(n),vn(n,t,1,-1===r?t.length:r),Zn(n)}function tn(n,t,r,a){for(var i=!!t,o=0;o=a.length||0===s;if(l&&32768&i)return D&&D(a),void(I&&I(a));if(15360&i&&(Ln(function(e){return r[15360&e][0]}(i)),l&&!c&&Et(a.pos,!0)),D&&D(a),l)1&i?Nn():256&i&&!(524288&i)&&Rn();else{var u=0==(262144&i),d=u;jn(t,a,i)?(Nn(),d=!1):256&i&&Rn(),128&i&&On();for(var p=void 0,f=void 0,m=!1,_=0;_=0&&It(l,a);a=i(t,r,a),c&&(a=c.end);0==(256&s)&&a>=0&&It(l,a);return a}(a,n,r,t,Fn)}function wn(n,t){R&&R(n),t(e.tokenToString(n.kind)),k&&k(n)}function Fn(n,t,r){var a=e.tokenToString(n);return t(a),r<0?r:r+a.length}function Gn(n){1&e.getEmitFlags(n)?Rn():Nn()}function Bn(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),a=0,i=t;a0||o>0)&&i!==o&&(c||_t(i,s),(!c||i>=0&&0!=(512&r))&&(K=i),(!l||o>=0&&0!=(1024&r))&&(W=o,243===t.kind&&(q=o))),e.forEach(e.getSyntheticLeadingComments(t),dt),Q();var f=Te(2,n,t);2048&r?(J=!0,f(n,t),J=!1):f(n,t),Y(),e.forEach(e.getSyntheticTrailingComments(t),pt),(i>0||o>0)&&i!==o&&(K=u,W=d,q=p,!l&&s&&function(e){Lt(e,bt)}(o)),Q(),e.Debug.assert(b===t||E===t)}function dt(e){2===e.kind&&f.writeLine(),ft(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function pt(e){f.isAtStartOfLine()||f.writeSpace(" "),ft(e),e.hasTrailingNewLine&&f.writeLine()}function ft(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,f,0,t.length,O)}function mt(n,t,r){Y();var a,o,s=t.pos,c=t.end,l=e.getEmitFlags(n),u=J||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=t,(o=e.emitDetachedComments(i.text,_e(),f,At,a,O,J))&&(v?v.push(o):v=[o])),Q(),2048&l&&!J?(J=!0,r(n),J=!1):r(n),Y(),u||(_t(t.end,!0),z&&!f.isAtStartOfLine()&&f.writeLine()),Q()}function _t(e,n){z=!1,n?St(e,ht):0===e&&St(e,gt)}function gt(n,t,r,a,o){(function(n,t){return e.isRecognizedTripleSlashComment(i.text,n,t)})(n,t)&&ht(n,t,r,a,o)}function yt(t,r){return!n.onlyPrintJsDocStyle||(e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r))}function ht(n,t,r,a,o){yt(i.text,n)&&(z||(e.emitNewLineBeforeLeadingCommentOfPosition(_e(),f,o,n),z=!0),Dt(n),e.writeCommentRange(i.text,_e(),f,n,t,O),Dt(t),a?f.writeLine():3===r&&f.writeSpace(" "))}function vt(e){J||-1===e||_t(e,!0)}function bt(n,t,r,a){yt(i.text,n)&&(f.isAtStartOfLine()||f.writeSpace(" "),Dt(n),e.writeCommentRange(i.text,_e(),f,n,t,O),Dt(t),a&&f.writeLine())}function Et(e,n){J||(Y(),Lt(e,n?bt:Tt),Q())}function Tt(n,t,r,a){Dt(n),e.writeCommentRange(i.text,_e(),f,n,t,O),Dt(t),a?f.writeLine():f.writeSpace(" ")}function St(n,t){!i||-1!==K&&n===K||(function(n){return void 0!==v&&e.last(v).nodePos===n}(n)?function(n){var t=e.last(v).detachedCommentEndPos;v.length-1?v.pop():v=void 0;e.forEachLeadingCommentRange(i.text,t,n,t)}(t):e.forEachLeadingCommentRange(i.text,n,t,n))}function Lt(n,t){i&&(-1===W||n!==W&&n!==q)&&e.forEachTrailingCommentRange(i.text,n,t)}function At(n,t,r,a,o,s){yt(i.text,a)&&(Dt(a),e.writeCommentRange(n,t,r,a,o,s),Dt(o))}function xt(n,t){e.Debug.assert(b===t||E===t);var r=Te(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&&g&&g.appendSourceMap(f.getLine(),f.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?y:c,u=e.getEmitFlags(t);324!==t.kind&&0==(16&u)&&o>=0&&It(l,Ct(l,o)),64&u?(j=!0,r(n,t),j=!1):r(n,t),324!==t.kind&&0==(32&u)&&s>=0&&It(l,s)}e.Debug.assert(b===t||E===t)}function Ct(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function Dt(n){if(!(j||e.positionIsSynthesized(n)||kt(y))){var t=e.getLineAndCharacterOfPosition(y,n),r=t.line,a=t.character;g.addMapping(f.getLine(),f.getColumn(),H,r,a,void 0)}}function It(e,n){if(e!==y){var t=y;Rt(e),Dt(n),Rt(t)}else Dt(n)}function Rt(e){j||(y=e,kt(e)||(H=g.addSource(e.fileName),n.inlineSources&&g.setSourceContent(H,e.text)))}function kt(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(e,n){var t=_(),r=t.addOutput,a=t.getOutputs;if(e.options.outFile||e.options.out)g(e,r);else{for(var i=0,o=e.fileNames;i=4,y=(f+1+"").length;g&&(y=Math.max("...".length,y));for(var h="",v=c;v<=f;v++){h+=o.getNewLine(),g&&c+10?{diagnostics:o,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}:void 0}}function h(n,t){return void 0===t&&(t=n),{fileExists:function(e){return t.fileExists(e)},readDirectory:function(n,r,a,i,o){return e.Debug.assertDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,r,a,i,o)},readFile:function(e){return t.readFile(e)},useCaseSensitiveFileNames:n.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return n.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:n.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:n.trace?function(e){return n.trace(e)}:void 0}}function v(n,t,r){if(!n)return e.emptyArray;for(var a,i=0;i1}))&&Hn(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}R.useDefineForClassFields&&0===u&&Hn(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");R.checkJs&&!R.allowJs&&Z.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));R.emitDeclarationOnly&&(e.getEmitDeclarations(R)||Hn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),R.noEmit&&Hn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));R.emitDecoratorMetadata&&!R.experimentalDecorators&&Hn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");R.jsxFactory?(R.reactNamespace&&Hn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(R.jsxFactory,u)||Kn("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,R.jsxFactory)):R.reactNamespace&&!e.isIdentifierText(R.reactNamespace,u)&&Kn("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,R.reactNamespace);if(!R.noEmit&&!R.suppressOutputPathCheck){var y=He(),h=e.createMap();e.forEachEmittedFile(y,(function(e){R.emitDeclarationOnly||v(e.jsFilePath,h),v(e.declarationFilePath,h)}))}function v(n,t){if(n){var r=Ue(n);if(_e.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),Xn(n,e.createCompilerDiagnosticFromMessageChain(a))}var i=z.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);t.has(i)?Xn(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.set(i,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),Ge;function Be(n){if(e.containsPath(Q,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 Ue(n){return e.toPath(n,$,Mn)}function Ve(){if(void 0===S){var n=e.filter(m,(function(n){return e.sourceFileMayBeEmitted(n,Ge)}));R.rootDir&&wn(n,R.rootDir)?S=e.getNormalizedAbsolutePath(R.rootDir,$):R.composite&&R.configFilePath?wn(n,S=e.getDirectoryPath(e.normalizeSlashes(R.configFilePath))):(t=n,S=a(e.mapDefined(t,(function(e){return e.isDeclarationFile?void 0:e.fileName})),$,Mn)),S&&S[S.length-1]!==e.directorySeparator&&(S+=e.directorySeparator)}var t;return S}function je(n,t,r){if(0===de&&!r.ambientModuleNames.length)return W(n,t,void 0,Sn(r.originalFileName));var a,i,o,s=O&&O.getSourceFile(t);if(s!==r&&r.resolvedModules){for(var c=[],l=0,u=n;l0;){var s=r.text.slice(i[o-1],i[o]),c=t.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function on(e,n){return cn(e,n,w,sn)}function sn(n,t){return en((function(){var r=qe().getEmitResolver(n,t);return e.getDeclarationDiagnostics(He(e.noop),r,n)||e.emptyArray}))}function cn(n,t,r,a){var i=n?r.perFile&&r.perFile.get(n.path):r.allDiagnostics;if(i)return i;var o=a(n,t);return n?(r.perFile||(r.perFile=e.createMap()),r.perFile.set(n.path,o)):r.allDiagnostics=o,o}function ln(e,n){return e.isDeclarationFile?[]:on(e,n)}function un(n,t,r){_n(e.normalizePath(n),t,r,void 0)}function dn(e,n){return e.fileName===n.fileName}function pn(e,n){return 75===e.kind?75===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function fn(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.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),s.parent=c,c.parent=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}(b,h,n,t,Ue(n),d);return me.add(b.path,n),vn(E,t,u),fe.set(t,o.name),f.push(E),E}h&&(pe.set(v,h),fe.set(t,o.name))}if(vn(h,t,u),h){if(j.set(t,U>0),h.fileName=n,h.path=t,h.resolvedPath=Ue(n),h.originalFileName=d,hn(n,h,i),z.useCaseSensitiveFileNames()){var T=e.toFileNameLowerCase(t),S=ge.get(T);S?gn(n,S,i):ge.set(T,h)}X=X||h.hasNoDefaultLib&&!a,R.noResolve||(In(h,r),Rn(h)),R.noLib||Nn(h),Pn(h),r?p.push(h):f.push(h)}return h}function hn(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 vn(e,n,t){t?(_e.set(t,e),_e.set(n,e||!1)):_e.set(n,e)}function bn(e){var n=En(e);return n&&Tn(n,e)}function En(n){if(se&&se.length&&!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json"))return Sn(n)}function Tn(n,t){var r=n.commandLine.options.outFile||n.commandLine.options.out;return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!z.useCaseSensitiveFileNames())}function Sn(n){void 0===le&&(le=e.createMap(),Ln((function(e,n){e&&Ue(R.configFilePath)!==n&&e.commandLine.fileNames.forEach((function(e){return le.set(Ue(e),n)}))})));var t=le.get(Ue(n));return t&&Dn(t)}function Ln(e){return Cn(N,se,(function(n,t,r){var a=Ue(b((r?r.commandLine.projectReferences:N)[t]));return e(n,a)}))}function An(n){if(e.isDeclarationFileName(n))return void 0===ue&&(ue=e.createMap(),Ln((function(n){if(n){var t=n.commandLine.options.outFile||n.commandLine.options.out;if(t){var r=e.changeExtension(t,".d.ts");ue.set(Ue(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,z.useCaseSensitiveFileNames());ue.set(Ue(r),t)}}))}}))),ue.get(Ue(n))}function xn(e){return ye&&!!Sn(e)}function Cn(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 Dn(e){if(ce)return ce.get(e)||void 0}function In(n,t){e.forEach(n.referencedFiles,(function(a,i){_n(r(a.fileName,n.originalFileName),t,!1,void 0,{kind:e.RefFileKind.ReferenceFile,index:i,file:n,pos:a.pos,end:a.end})}))}function Rn(n){var t=e.map(n.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)}));if(t)for(var r=q(t,n.originalFileName,Sn(n.originalFileName)),a=0;aB,d=l&&!E(R,i)&&!R.noResolve&&at&&(Z.add(e.createDiagnosticForNodeInSourceFile(R.configFile,f.elements[t],r,a,i,o)),s=!1)}}s&&Z.add(e.createCompilerDiagnostic(r,a,i,o))}function Vn(n,t,r,a){for(var i=!0,o=0,s=jn();ot?Z.add(e.createDiagnosticForNodeInSourceFile(n||R.configFile,o.elements[t],r,a,i)):Z.add(e.createCompilerDiagnostic(r,a,i))}function qn(n,t,r,a,i,o,s){var c=zn();(!c||!Jn(c,n,t,r,a,i,o,s))&&Z.add(e.createCompilerDiagnostic(a,i,o,s))}function zn(){if(void 0===H){H=null;var n=e.getTsConfigObjectLiteralExpression(R.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t0)for(var o=n.getTypeChecker(),c=0,l=t.imports;c0)for(var p=0,f=t.referencedFiles;p1&&T(E)}return a;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,r){if(!t)return void r.set(n.resolvedPath,!1);var i;t.forEach((function(n){var t;(t=a(n))&&(i||(i=e.createMap()),i.set(t,!0))})),r.set(n.resolvedPath,i||!1)}(i,m.exportedModulesFromDeclarationEmit,l)):d=p}return o.set(i.resolvedPath,d),!p||d!==p}function p(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 f(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 m(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 p=u.pop();if(!l.has(p)){var g=t.getSourceFileByPath(p);l.set(p,g),g&&d(n,t,g,a,i,o,s)&&u.push.apply(u,f(n,g.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}r.canReuseOldState=l,r.create=function(n,t,r){for(var a=e.createMap(),i=n.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,o=i?e.createMap():void 0,s=e.createMap(),u=l(i,r),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.assertDefined(n.program).getSourceFileByPath(o);i.push.apply(i,e.BuilderState.getReferencedByPaths(n,s.resolvedPath))}}}e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var c=e.createMap();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.assertDefined(n.program),o=i.getSourceFileByPath(t);o&&(e.BuilderState.updateShapeSignature(n,i,o,e.Debug.assertDefined(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.assertDefined(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.assertDefined(n.currentAffectedFilesSignatures).get(t)!==e.Debug.assertDefined(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.addToSeen(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.emittedBuildInfo=!0:t===n.program?(n.changedFilesSet.clear(),n.programEmitComplete=!0):(n.seenAffectedFiles.set(t.resolvedPath,!0),void 0!==r&&(n.seenEmittedFiles||(n.seenEmittedFiles=e.createMap())).set(t.resolvedPath,r),a?n.affectedFilesPendingEmitIndex++: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 i}var o=e.Debug.assertDefined(n.program).getBindAndCheckDiagnostics(t,r);n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(a,o);return o}(n,t,r),e.Debug.assertDefined(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.source=n.source;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=e.createMap());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=e.createMap();for(var a in n)e.hasProperty(n,a)&&r.set(t(a),e.arrayToSet(n[a],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)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.assertDefined(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(!n.compilerOptions.outFile&&!n.compilerOptions.out){var r=e.Debug.assertDefined(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[u(t)]=void 0===r?e:{version:e.version,signature:r}}));var o={fileInfos:i,options:_(n.compilerOptions,(function(n){return u(e.getNormalizedAbsolutePath(n,r))}))};if(n.referencedMap){var s={};n.referencedMap.forEach((function(n,t){s[u(t)]=e.arrayFrom(n.keys(),u)})),o.referencedMap=s}if(n.exportedModulesMap){var c={};n.exportedModulesMap.forEach((function(t,r){var a=n.currentAffectedFilesExportedModulesMap&&n.currentAffectedFilesExportedModulesMap.get(r);void 0===a?c[u(r)]=e.arrayFrom(t.keys(),u):a&&(c[u(r)]=e.arrayFrom(a.keys(),u))})),o.exportedModulesMap=c}if(n.semanticDiagnosticsPerFile){var l=[];n.semanticDiagnosticsPerFile.forEach((function(e,t){return l.push(e.length?[u(t),n.hasReusableDiagnostic?e:y(e,u)]:u(t))})),o.semanticDiagnosticsPerFile=l}return o}function u(n){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(a,n,t))}}(S,b)},s=void 0,l=void 0,g=void 0;var L=E(S,u);return L.getState=function(){return S},L.backupState=function(){e.Debug.assert(void 0===h),h=function(n){var t=e.BuilderState.clone(n);return t.semanticDiagnosticsPerFile=e.cloneMapOrUndefined(n.semanticDiagnosticsPerFile),t.changedFilesSet=e.cloneMap(n.changedFilesSet),t.affectedFiles=n.affectedFiles,t.affectedFilesIndex=n.affectedFilesIndex,t.currentChangedFilePath=n.currentChangedFilePath,t.currentAffectedFilesSignatures=e.cloneMapOrUndefined(n.currentAffectedFilesSignatures),t.currentAffectedFilesExportedModulesMap=e.cloneMapOrUndefined(n.currentAffectedFilesExportedModulesMap),t.seenAffectedFiles=e.cloneMapOrUndefined(n.seenAffectedFiles),t.cleanedDiagnosticsOfLibFiles=n.cleanedDiagnosticsOfLibFiles,t.semanticDiagnosticsFromOldState=e.cloneMapOrUndefined(n.semanticDiagnosticsFromOldState),t.program=n.program,t.compilerOptions=n.compilerOptions,t.affectedFilesPendingEmit=n.affectedFilesPendingEmit&&n.affectedFilesPendingEmit.slice(),t.affectedFilesPendingEmitKind=e.cloneMapOrUndefined(n.affectedFilesPendingEmitKind),t.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex,t.seenEmittedFiles=e.cloneMapOrUndefined(n.seenEmittedFiles),t.programEmitComplete=n.programEmitComplete,t}(S)},L.restoreState=function(){S=e.Debug.assertDefined(h),h=void 0},L.getAllDependencies=function(n){return e.BuilderState.getAllDependencies(S,e.Debug.assertDefined(S.program),n)},L.getSemanticDiagnostics=function(n,t){a(S,n);var r,i=e.Debug.assertDefined(S.program).getCompilerOptions();if(i.outFile||i.out)return e.Debug.assert(!S.semanticDiagnosticsPerFile),e.Debug.assertDefined(S.program).getSemanticDiagnostics(n,t);if(n)return m(S,n,t);for(;x(t););for(var o=0,s=e.Debug.assertDefined(S.program).getSourceFiles();o1||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.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(r,a,i){var o,s,c,l=!1,u=e.createMultiMap(),d=e.memoize((function(){return r.getCurrentDirectory()})),p=r.getCachedDirectoryStructureHost(),f=e.createMap(),m=e.createCacheWithRedirects(),_=e.createCacheWithRedirects(),g=e.createModuleResolutionCacheWithMaps(m,_,d(),r.getCanonicalFileName),y=e.createMap(),h=e.createCacheWithRedirects(),v=[".ts",".tsx",".js",".jsx",".json"],b=e.createMap(),E=e.createMap(),T=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,d())),S=T&&r.toPath(T),L=void 0!==S?S.split(e.directorySeparator).length:0,A=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:R,finishCachingPerDirectoryResolution:function(){l=!1,c=void 0,R(),E.forEach((function(e,n){0===e.refCount&&(E.delete(n),e.watcher.close())}))},resolveModuleNames:function(n,t,r,a){return N(n,t,a,f,m,k,x,(function(n){return!n.resolvedModule||!e.resolutionExtensionIsTSOrJson(n.resolvedModule.extension)}),r,i)},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){var t=f.get(r.toPath(n));return t&&t.get(e)},resolveTypeReferenceDirectives:function(n,t,r){return N(n,t,r,y,h,e.resolveTypeReferenceDirective,C,(function(e){return void 0===e.resolvedTypeReferenceDirective}),void 0,!1)},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 z(r.toPath(e))}))},removeResolutionsOfFile:z,invalidateResolutionOfFile:function(e){z(e),X((function(n,t){var a=t(n);return!!a&&r.toPath(a.resolvedFileName)===e}))},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(n){e.Debug.assert(c===n||void 0===c),c=n},createHasInvalidatedResolution:function(n){if(l||n)return s=void 0,e.returnTrue;var t=s;return s=void 0,function(e){return!!t&&t.has(e)||I(e)}},updateTypeRootsWatch:function(){var n=r.getCompilationSettings();if(n.types)return void Q();var t=e.getEffectiveTypeRoots(n,{directoryExists:$,getCurrentDirectory:d});t?e.mutateMap(A,e.arrayToMap(t,(function(e){return r.toPath(e)})),{createNewValue:Z,onDeleteValue:e.closeFileWatcher}):Q()},closeTypeRootsWatch:Q,clear:function(){e.clearMap(E,e.closeFileWatcherOf),b.clear(),u.clear(),Q(),f.clear(),y.clear(),l=!1,R()}};function x(e){return e.resolvedModule}function C(e){return e.resolvedTypeReferenceDirective}function D(n,t){return!(void 0===n||t.length<=n.length)&&(e.startsWith(t,n)&&t[n.length]===e.directorySeparator)}function I(e){if(!c)return!1;var n=c.get(e);return!!n&&!!n.length}function R(){m.clear(),_.clear(),h.clear(),u.forEach(V),u.clear()}function k(n,t,a,i,o){var s=e.resolveModuleName(n,t,a,i,g,o);if(!r.getGlobalCache)return s;var c=r.getGlobalCache();if(!(void 0===c||e.isExternalModuleNameRelative(n)||s.resolvedModule&&e.extensionIsTS(s.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.assertDefined(r.globalCacheResolutionModuleName)(n),r.projectName,a,i,c),u=l.resolvedModule,d=l.failedLookupLocations;if(u)return{resolvedModule:u,failedLookupLocations:e.addRange(s.failedLookupLocations,d)}}return s}function N(n,t,a,i,s,c,u,d,p,f){var m=r.toPath(t),_=i.get(m)||i.set(m,e.createMap()).get(m),g=e.getDirectoryPath(m),y=s.getOrCreateMapOfCacheRedirects(a),h=y.get(g);h||(h=e.createMap(),y.set(g,h));for(var v=[],b=r.getCompilationSettings(),E=f&&I(m),T=r.getCurrentProgram(),S=T&&T.getResolvedProjectReferenceToRedirect(t),L=S?!a||a.sourceFile.path!==S.sourceFile.path:!!a,A=e.createMap(),x=0,C=n;xL+1?{dir:a.slice(0,L+1).join(e.directorySeparator),dirPath:r.slice(0,L+1).join(e.directorySeparator)}:{dir:T,dirPath:S,nonRecursive:!1}}return w(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,d())),e.getDirectoryPath(t))}function w(n,r){for(;e.pathContainsNodeModules(r);)n=e.getDirectoryPath(n),r=e.getDirectoryPath(r);if(O(r))return t(e.getDirectoryPath(r))?{dir:n,dirPath:r}:void 0;var a,i,o=!0;if(void 0!==S)for(;!D(r,S);){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 F(n){return e.fileExtensionIsOneOf(n,v)}function G(n,t){t.failedLookupLocations&&t.failedLookupLocations.length&&(t.refCount?t.refCount++:(t.refCount=1,e.isExternalModuleNameRelative(n)?B(t):u.add(n,t)))}function B(n){e.Debug.assert(!!n.refCount);for(var t=!1,a=0,i=n.failedLookupLocations;a1),b.set(s,u-1))),l===S?t=!0:K(l)}}t&&K(S)}}function K(e){E.get(e).refCount--}function W(e,n,t){return r.watchDirectoryOfFailedLookupLocation(e,(function(e){var t=r.toPath(e);p&&p.addOrDeleteFileOrDirectory(e,t),!l&&Y(t,n===t)&&r.onInvalidatedResolution()}),t?0:1)}function q(e,n){var t=e.get(n);t&&(t.forEach(H),e.delete(n))}function z(e){q(f,e),q(y,e)}function J(n,t,a){var i=e.createMap();n.forEach((function(n,o){var c=e.getDirectoryPath(o),l=i.get(c);l||(l=e.createMap(),i.set(c,l)),n.forEach((function(n,i){l.has(i)||(l.set(i,!0),!n.isInvalidated&&t(n,a)&&(n.isInvalidated=!0,(s||(s=e.createMap())).set(o,!0),o.endsWith(e.inferredTypesContainingFile)&&r.onChangedAutomaticTypeDirectiveNames()))}))}))}function X(n){var t;(t=r.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,f.size>t||y.size>t)?l=!0:(J(f,n,x),J(y,n,C))}function Y(t,a){var i;if(a)i=function(e){return D(t,r.toPath(e))};else{var o=n(t);if(!o)return!1;if(t=o,r.fileIsOpen(t))return!1;var c=e.getDirectoryPath(t);if(M(t)||O(t)||M(c)||O(c))i=function(n){return r.toPath(n)===t||e.startsWith(r.toPath(n),t)};else{if(!F(t)&&!b.has(t))return!1;if(e.isEmittedFileOfProgram(r.getCurrentProgram(),t))return!1;i=function(e){return r.toPath(e)===t}}}var u=s&&s.size;return X((function(n){return e.some(n.failedLookupLocations,i)})),l||s&&s.size!==u}function Q(){e.clearMap(A,e.closeFileWatcher)}function Z(e,n){return r.watchTypeRootsDirectory(n,(function(t){var a=r.toPath(t);p&&p.addOrDeleteFileOrDirectory(t,a),r.onChangedAutomaticTypeDirectiveNames();var i=function(e,n){if(!l){if(D(S,n))return S;var t=w(e,n);return t&&E.has(t.dirPath)?t.dirPath:void 0}}(n,e);i&&Y(a,i===a)&&r.onInvalidatedResolution()}),1)}function $(n){var a=e.getDirectoryPath(e.getDirectoryPath(n)),i=r.toPath(a);return i===S||t(i)}}}(d||(d={})),function(e){!function(n){var t,r;function a(n,t,r){var a=n.importModuleSpecifierPreference,i=n.importModuleSpecifierEnding;return{relativePreference:"relative"===a?0:"non-relative"===a?1:2,ending:function(){switch(i){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(n){var t=n.imports;return e.firstDefined(t,(function(n){var t=n.text;return e.pathIsRelative(t)?e.hasJSFileExtension(t):void 0}))||!1}(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function o(n,t,r,a,i,o,l){var u=s(t,a),d=p(i,t,r,u.getCanonicalFileName,a,o);return e.firstDefined(d,(function(e){return m(e,u,a,n)}))||c(r,u,n,l)}function s(n,t){return{getCanonicalFileName:e.createGetCanonicalFileName(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(n)}}function c(n,t,r,a){var i=t.getCanonicalFileName,o=t.sourceDirectory,s=a.ending,c=a.relativePreference,u=r.baseUrl,d=r.paths,p=r.rootDirs,m=p&&function(n,t,r,a,i,o){var s=_(t,n,a);if(void 0===s)return;var c=_(r,n,a),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,a)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?g(l,i,o):e.removeFileExtension(l)}(p,n,o,i,s,r)||g(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,n,i)),s,r);if(!u||0===c)return m;var v=y(n,u,i);if(!v)return m;var b=g(v,s,r),E=d&&f(e.removeFileExtension(v),b,d),T=void 0===E?b:E;return 1===c?T:(2!==c&&e.Debug.assertNever(c),h(T)||l(m)1&&t.sort(d),h.push.apply(h,t));var a=e.getDirectoryPath(n);if(a===n)return g=n,"break";g=n=a},b=e.getDirectoryPath(e.toPath(t,u,a));0!==y.size;){var E=v(b);if(b=g,"break"===E)break}if(y.size){var T=e.arrayFrom(y.values());T.length>1&&T.sort(d),h.push.apply(h,T)}return h}function f(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 m(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,u=n.substring(0,c.packageRootIndex);if(!i){var d=e.combinePaths(u,"package.json"),p=(l=r.fileExists(d)?JSON.parse(r.readFile(d)):void 0)&&l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(p){var m=n.slice(c.packageRootIndex+1),_=f(e.removeFileExtension(m),g(m,0,a),p.paths);void 0!==_&&(n=e.combinePaths(n.slice(0,c.packageRootIndex),_))}}var y=i?n:function(n){if(l){var t=l.typings||l.types||l.main;if(e.isString(t)){var a=e.toPath(t,u,o);if(e.removeFileExtension(a)===e.removeFileExtension(o(n)))return u}}var i=e.removeFileExtension(n);if("/index"===o(i.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)||function(){return e.noopFileWatcher},watchDirectory:e.maybeBind(n,n.watchDirectory)||function(){return e.noopFileWatcher},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)},onCachedDirectoryStructureHostCreate:function(e){return e||n},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.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 s,c,l=t,u=t,d=l.getCurrentDirectory(),p=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),f=(s=a,c={},e.commonOptionsWithBuild.forEach((function(n){e.hasProperty(s,n.name)&&(c[n.name]=s[n.name])})),c),m=e.createCompilerHostFromProgramHost(l,(function(){return L.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(m,l),m.getParsedCommandLine=function(e){return h(L,e,g(L,e))},m.resolveModuleNames=e.maybeBind(l,l.resolveModuleNames),m.resolveTypeReferenceDirectives=e.maybeBind(l,l.resolveTypeReferenceDirectives);var _=m.resolveModuleNames?void 0:e.createModuleResolutionCache(d,p);if(!m.resolveModuleNames){var y=function(n,t,r){return e.resolveModuleName(n,t,L.projectCompilerOptions,m,_,r).resolvedModule};m.resolveModuleNames=function(n,t,r,a){return e.loadWithLocalCache(e.Debug.assertEachDefined(n),t,a,y)}}var v=e.createWatchFactory(u,a),b=v.watchFile,E=v.watchFilePath,T=v.watchDirectory,S=v.writeLog,L={host:l,hostWithWatch:u,currentDirectory:d,getCanonicalFileName:p,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(l),writeFileName:l.trace?function(e){return l.trace(e)}:void 0,options:a,baseCompilerOptions:f,rootNames:r,baseWatchOptions:i,resolvedConfigFilePaths:e.createMap(),configFileCache:o(),projectStatus:o(),buildInfoChecked:o(),extendedConfigCache:e.createMap(),builderPrograms:o(),diagnostics:o(),projectPendingBuild:o(),projectErrorsReported:o(),compilerHost:m,moduleResolutionCache:_,buildOrder:void 0,readFileWithCache:function(e){return l.readFile(e)},projectCompilerOptions:f,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:n,currentInvalidatedProject:void 0,watch:n,allWatchedWildcardDirectories:o(),allWatchedInputFiles:o(),allWatchedConfigFiles:o(),timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:b,watchFilePath:E,watchDirectory:T,writeLog:S};return L}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=e.createMap(),o=e.createMap(),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)}(s,u,f),b=t.createProgram(f.fileNames,f.options,r,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)}(s,d,f),e.getConfigFileParsingDiagnostics(f),f.projectReferences),S++}function I(e,n,t){e.length?(E=M(s,d,b,f,e,n,t),S=y.QueueReferencingProjects):S++}function k(t){e.Debug.assertDefined(b),I(i(b.getConfigFileParsingDiagnostics(),b.getOptionsDiagnostics(t),b.getGlobalDiagnostics(t),b.getSyntacticDiagnostics(void 0,t)),n.SyntaxErrors,"Syntactic")}function N(t){I(e.Debug.assertDefined(b).getSemanticDiagnostics(void 0,t),n.TypeErrors,"Semantic")}function P(t,a,i){var o;e.Debug.assertDefined(b),e.Debug.assert(S===y.Emit),b.backupState();var u=[],p=e.emitFilesAndReportErrors(b,(function(e){return(o||(o=[])).push(e)}),void 0,void 0,(function(e,n,t){return u.push({name:e,text:n,writeByteOrderMark:t})}),a,!1,i).emitResult;if(o)return b.restoreState(),E=M(s,d,b,f,o,n.DeclarationEmitErrors,"Declaration file"),S=y.QueueReferencingProjects,{emitSkipped:!0,diagnostics:p.diagnostics};var m=s.host,g=s.compilerHost,h=n.DeclarationOutputUnchanged,v=r,T=!1,L=e.createDiagnosticCollection(),A=e.createMap();return u.forEach((function(r){var a,i=r.name,o=r.text,u=r.writeByteOrderMark;!T&&l(i)&&(m.fileExists(i)&&s.readFileWithCache(i)===o?a=m.getModifiedTime(i):(h&=~n.DeclarationOutputUnchanged,T=!0)),A.set(_(s,i),i),e.writeFile(t?{writeFile:t}:g,L,i,o,u),void 0!==a&&(v=c(a,v))})),w(L,A,v,T,u.length?u[0].name:e.getFirstProjectOutput(f,!m.useCaseSensitiveFileNames()),h),p}function w(t,r,i,o,c,l){var u=t.getDiagnostics();if(u.length)return E=M(s,d,b,f,u,n.EmitErrors,"Emit"),S=y.QueueReferencingProjects,u;s.writeFileName&&(r.forEach((function(e){return n=f,t=e,void((r=s.writeFileName)&&n.options.listEmittedFiles&&r("TSFILE: "+t));var n,t,r})),b&&e.listFiles(b,s.writeFileName));var p=F(s,f,i,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,r);return s.diagnostics.delete(d),s.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:o?a:p,oldestOutputFileName:c}),O(s,d,b,f),s.projectCompilerOptions=s.baseCompilerOptions,S=y.QueueReferencingProjects,E=l,u}function G(a,i){if(e.Debug.assert(o===t.UpdateBundle),s.options.dry)return Z(s,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,u),E=n.Success,void(S=y.QueueReferencingProjects);s.options.verbose&&Z(s,e.Diagnostics.Updating_output_of_project_0,u);var c=s.compilerHost;s.projectCompilerOptions=f.options;var l=e.emitUsingBuildInfo(f,c,(function(e){var n=v(s,e.path);return h(s,n,g(s,n))}),i);if(e.isString(l))return Z(s,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,u,Q(s,l)),S=y.BuildInvalidatedProjectOfBundle,T=R(t.Build,s,u,d,p,f,m);e.Debug.assert(!!l.length);var b=e.createDiagnosticCollection(),L=e.createMap();return l.forEach((function(n){var t=n.name,r=n.text,i=n.writeByteOrderMark;L.set(_(s,t),t),e.writeFile(a?{writeFile:a}:c,b,t,r,i)})),{emitSkipped:!1,diagnostics:w(b,L,r,!1,l[0].name,n.DeclarationOutputUnchanged)}}function U(n,t,r,a){for(;S<=n&&Si)}}}function k(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 N(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&&(o=f,s=m)}if(!t.fileNames.length&&!e.canJsonReportNoInutFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var _,y=e.getAllProjectOutputs(t,!u.useCaseSensitiveFileNames()),v="(none)",b=a,E="(none)",T=r,S=r,L=!1,A=0,x=y;AT&&(T=D,E=C),l(C))S=c(S,u.getModifiedTime(C)||e.missingFileModifiedTime)}var I,R=!1,k=!1;if(t.projectReferences){n.projectStatus.set(i,{type:e.UpToDateStatusType.ComputingUpstream});for(var N=0,O=t.projectReferences;N=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}}!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={})),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.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 242:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?7:1;case 156:case 191:case 159:case 158:case 281:case 282:case 161:case 160:case 162:case 163:case 164:case 244:case 201:case 202:case 280:case 273:return 1;case 155:case 246:case 247:case 173:return 2;case 321:return void 0===n.name?3:2;case 284:case 245:return 3;case 249:return e.isAmbientModule(n)||1===e.getModuleInstanceState(n)?5:4;case 248:case 257:case 258:case 253:case 254:case 259:case 260:return 7;case 290:return 5}return 7}function t(n){for(;153===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 290===(r=R(r)).kind?1:259===r.parent.kind||265===r.parent.kind?7:t(r)?function(n){var t=153===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&253===t.parent.kind?7:4}(r):e.isDeclarationName(r)?n(r.parent):function(n){e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent);switch(n.kind){case 104:return!e.isExpressionNode(n);case 183:return!0}switch(n.parent.kind){case 169:return!0;case 188:return!n.parent.isTypeOf;case 216:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(r)?2:function(e){return function(e){var n=e,t=!0;if(153===n.parent.kind){for(;n.parent&&153===n.parent.kind;)n=n.parent;t=n.right===e}return 169===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(194===n.parent.kind){for(;n.parent&&194===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&216===n.parent.kind&&279===n.parent.parent.kind){var r=n.parent.parent.parent;return 245===r.kind&&113===n.parent.parent.token||246===r.kind&&90===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(238===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 159:case 158:case 281:case 284:case 161:case 160:case 163:case 164:case 249:return e.getNameOfDeclaration(n.parent)===n;case 195:return n.parent.argumentExpression===n;case 154:return!0;case 187:return 185===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 290:case 161:case 160:case 244:case 201:case 163:case 164:case 245:case 246:case 248:case 249:return n}}},e.getNodeKind=function n(t){switch(t.kind){case 290:return e.isExternalModule(t)?"module":"script";case 249:return"module";case 245:case 214:return"class";case 246:return"interface";case 247:case 314:case 321:return"type";case 248:return"enum";case 242:return c(t);case 191:return c(e.getRootDeclaration(t));case 202:case 244:case 201:return"function";case 163:return"getter";case 164:return"setter";case 161:case 160:return"method";case 281:var r=t.initializer;return e.isFunctionLike(r)?"method":"property";case 159:case 158:case 282:case 283:return"property";case 167:return"index";case 166:return"construct";case 165:return"call";case 162:return"constructor";case 155:return"type parameter";case 284:return"enum member";case 156:return e.hasModifier(t,92)?"property":"parameter";case 253:case 258:case 263:case 256:case 262:return"alias";case 209: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 75:return e.isImportClause(t.parent)?"alias":"";case 259: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 104:return!0;case 75:return e.identifierIsThisKeyword(n)&&156===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(w(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||290===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 w(n){return e.isToken(n)&&!B(n)}function F(e,n){if(w(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,!!n.parent.questionDotToken,!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 75:case 10:case 8:case 9:case 106:case 91:case 108:case 90:case 134:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(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(e,n){return{span:e,newText:n}}function X(e){return 145===e.kind}function Y(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Q(n,t,r,a,i){return e.createImportDeclaration(void 0,void 0,n||t?e.createImportClause(n,t&&t.length?e.createNamedImports(t):void 0,i):void 0,"string"==typeof r?Z(r,a):r)}function Z(n,t){return e.createLiteral(n,0===t)}function $(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function ee(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,(function(n){var t=e.getNameOfDeclaration(n);return t&&75===t.kind?t.escapedText:void 0}))}function ne(n,t,r,a){var i=e.createMap();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 te(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function re(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function ae(e){return e.declarations&&e.declarations.length>0&&156===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=N(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.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=N(n,t);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(n){var t=e.isDeclaration(n)?e.getCombinedModifierFlags(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"),8388608&n.flags&&r.push("declare"),259===n.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 169===n.kind||196===n.kind?n.typeArguments:e.isFunctionLike(n)||245===n.kind||246===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<=74},e.isInsideTemplateLiteral=function(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)=2||!!e.noEmit},e.hostUsesCaseSensitiveFileNames=Y,e.hostGetCanonicalFileName=function(n){return e.createGetCanonicalFileName(Y(n))},e.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?Q(e,n,t,r):void 0},e.makeImport=Q,e.makeStringLiteral=Z,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=$,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?$(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=ee(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)},e.symbolEscapedNameNoDefault=ee,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=ne,e.isMemberSymbolInBaseType=function(e,n){return ne(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)||!te(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.insertImport=function(n,t,r,a){var i=e.findLast(t.statements,e.isAnyImportSyntax);i?n.insertNodeAfter(t,i,r):n.insertNodeAtTopOfFile(t,r,a)},e.getTypeKeywordOfTypeOnlyImport=function(n,t){return e.Debug.assert(n.isTypeOnly),e.cast(n.getChildAt(0,t),X)},e.textSpansEqual=re,e.documentSpansEqual=function(e,n){return e.fileName===n.fileName&&re(e.textSpan,n.textSpan)},e.forEachUnique=function(e,n){if(e)for(var t=0;ti&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(se(" ",e.SymbolDisplayPartKind.space)),n.push(se("...",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(oe(e,t))},writeLine:function(){if(a>i)return;a+=1,n.push(ue()),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(se(o,e.SymbolDisplayPartKind.space))),t=!1}}function c(e,t){a>i||(s(),a+=e.length,n.push(se(e,t)))}function l(){n=[],t=!0,r=0,a=0}}();function oe(n,t){return se(n,function(n){var t=n.flags;if(3&t)return ae(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 se(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function ce(n){return se(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function le(n){return se(n,e.SymbolDisplayPartKind.text)}e.symbolPart=oe,e.displayPart=se,e.spacePart=function(){return se(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=ce,e.punctuationPart=function(n){return se(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return se(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?le(n):ce(t)},e.textPart=le;function ue(){return se("\n",e.SymbolDisplayPartKind.lineBreak)}function de(e){try{return e(ie),ie.displayParts()}finally{ie.clear()}}function pe(n,t){return e.ensureScriptKind(n,t&&t.getScriptKind&&t.getScriptKind(n))}function fe(e){return 0!=(33554432&e.flags)}function me(e){return 0!=(2097152&e.flags)}function _e(e,n){void 0===n&&(n=!0);var t=e&&ye(e);return t&&!n&&he(t),t}function ge(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.createBindingElement(n.dotDotDotToken,n.propertyName||n.name,c,n.initializer));else if(r&&a&&e.isIdentifier(n)){var s,c;(c=(s=a.getSymbolAtLocation(n))&&r.get(String(e.getSymbolId(s))))&&(o=e.createIdentifier(c.text))}return o||(o=ye(n,r,a,i)),o&&!t&&he(o),i&&o&&i(n,o),o}function ye(n,t,r,a){var i=t||r||a?e.visitEachChild(n,(function(e){return ge(e,!0,t,r,a)}),e.nullTransformationContext):e.visitEachChild(n,_e,e.nullTransformationContext);if(i===n){var o=e.getSynthesizedClone(n);return e.isStringLiteral(o)?o.textSourceNode=n:e.isNumericLiteral(o)&&(o.numericLiteralFlags=n.numericLiteralFlags),e.setTextRange(o,n)}return i.parent=void 0,i}function he(e){ve(e),be(e)}function ve(e){Ee(e,512,Te)}function be(n){Ee(n,1024,e.getLastChild)}function Ee(n,t,r){e.addEmitFlags(n,t);var a=r(n);a&&Ee(a,t,r)}function Te(e){return e.forEachChild((function(e){return e}))}function Se(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 Le(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 Ae(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function xe(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function Ce(e){return 165===e||166===e||167===e||158===e||160===e}function De(e){return 244===e||162===e||161===e||163===e||164===e}function Ie(e){return 249===e}function Re(e){return 225===e||226===e||228===e||233===e||234===e||235===e||239===e||241===e||159===e||247===e||254===e||253===e||260===e||252===e||259===e}function ke(e,n){return Oe(e,e.fileExists,n)}function Ne(e){try{return e()}catch(e){return}}function Oe(e,n){for(var t=[],r=2;r-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));)t-=1;return t+1},e.getSynthesizedDeepClone=_e,e.getSynthesizedDeepCloneWithRenames=ge,e.getSynthesizedDeepClones=function(n,t){return void 0===t&&(t=!0),n&&e.createNodeArray(n.map((function(e){return _e(e,t)})),n.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=he,e.suppressLeadingTrivia=ve,e.suppressTrailingTrivia=be,e.getUniqueName=function(n,t){for(var r=n,a=1;!e.isFileLevelUniqueName(t,r);a++)r=n+"_"+a;return r},e.getRenameLocation=function(n,t,r,a){for(var i=0,o=-1,s=0,c=n;s=0),o},e.copyLeadingComments=function(n,t,r,a,i){e.forEachLeadingCommentRange(r.text,n.pos,Se(t,r,a,i,e.addSyntheticLeadingComment))},e.copyTrailingComments=function(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.end,Se(t,r,a,i,e.addSyntheticTrailingComment))},e.copyTrailingAsLeadingComments=function(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.pos,Se(t,r,a,i,e.addSyntheticLeadingComment))},e.getContextualTypeFromParent=function(e,n){var t=e.parent;switch(t.kind){case 197:return n.getContextualType(t);case 209:var r=t,a=r.left,i=r.operatorToken,o=r.right;return Ae(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 277:return t.expression===e?xe(t,n):void 0;default:return n.getContextualType(e)}},e.quote=function(n,t){if(/^\d+$/.test(n))return n;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=Ae,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 211:case 198:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=xe,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:{readFile:r.readFile,fileExists:r.fileExists,directoryExists:r.directoryExists,getSourceFiles:t.getSourceFiles,getCurrentDirectory:t.getCurrentDirectory,getCommonSourceDirectory:t.getCommonSourceDirectory}});return i?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Ce,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=De,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ie,e.syntaxRequiresTrailingSemicolonOrASI=Re,e.syntaxMayBeASICandidate=e.or(Ce,De,Ie,Re),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(Ce(n.kind)){if(r&&27===r.kind)return!1}else if(Ie(n.kind)){if((a=e.last(n.getChildren(t)))&&e.isModuleBlock(a))return!1}else if(De(n.kind)){var a;if((a=e.last(n.getChildren(t)))&&e.isFunctionBlock(a))return!1}else if(!Re(n.kind))return!1;if(228===n.kind)return!0;var i=M(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(Re(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 Oe(e,e.getDirectories,n)||[]},e.tryReadDirectory=function(n,t,r,a,i){return Oe(n,n.readDirectory,t,r,a,i)||e.emptyArray},e.tryFileExists=ke,e.tryDirectoryExists=function(n,t){return Ne((function(){return e.directoryProbablyExists(t,n)}))||!1},e.tryAndIgnoreErrors=Ne,e.tryIOAndConsumeErrors=Oe,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");ke(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 ke(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=Me(a,t);i&&r.push(i)}})),r},e.createPackageJsonInfo=Me,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=Pe,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,Pe)}},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],Pe);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}}(d||(d={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(a,s,c){var l=0,u=0,d=[],p=function(n){switch(n){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(n)}}(s),f=p.prefix,m=p.pushTemplate;a=f+a;var _=f.length;m&&d.push(15),o.setText(a);var g=0,y=[],h=0;do{l=o.scan(),e.isTrivia(l)||(E(),u=l);var v=o.getTextPos();if(r(o.getTokenPos(),v,_,i(l),y),v>=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:75===u&&h++;break;case 31:h>0&&h--;break;case 125:case 143:case 140:case 128:case 144:h>0&&!c&&(l=75);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())?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 131:case 142:case 129:case 120:return!0;default:return!1}}(u,l))&&(l=75)}}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([75,10,8,9,13,104,45,46,21,23,19,106,91],(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 98:case 97:case 123:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 74:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:return!0;default:return!1}}(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<=74)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 75:default:return e.isTemplateLiteralKind(n)?6:2}}function o(e,n){switch(n){case 249:case 245:case 246:case 244: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&&(242===r.kind||159===r.kind||156===r.kind||273===r.kind))return 5;if(209===r.kind||207===r.kind||208===r.kind||210===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return t&&273===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(75===n){if(t)switch(t.parent.kind){case 245:return t.parent.name===t?11:void 0;case 155:return t.parent.name===t?15:void 0;case 246:return t.parent.name===t?13:void 0;case 248:return t.parent.name===t?12:void 0;case 249:return t.parent.name===t?14:void 0;case 156: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 254:case 260:case 265: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:n.getApparentProperties().filter((function(n){return!e.isPrivateIdentifierPropertyDeclaration(n.valueDeclaration)})),hasIndexSignature:e.hasIndexSignature(n)}}function l(n,t){return void 0===t&&(t=e.createMap()),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){if(void 0===t)return;switch(t.kind){case 0:return r(t.paths);case 1:var c=[];return n.getCompletionEntriesFromSymbols(t.symbols,c,a,a,i,99,o,4,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,entries:c};case 2:c=t.types.map((function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,entries:c};default:return e.Debug.assertNever(t)}}(f=s(t,i,a,o,c,l),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*"),kind:"class",kindModifiers:void 0,sortText:t.LocationPriority}]}}var I=[];if(c(n,a)){var R=g(u,I,_,n,r,a.target,i,d,s,y,T,E,b,L);!function(n,r,a,i,o){e.getNameTable(n).forEach((function(n,s){if(n!==r){var c=e.unescapeLeadingUnderscores(s);e.addToSeen(a,c)&&e.isIdentifierText(c,i)&&o.push({name:c,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers,isFromUncheckedFile:!0})}}))}(n,_.pos,R,a.target,I)}else{if(!(m||u&&0!==u.length||0!==h))return;g(u,I,_,n,r,a.target,i,d,s,y,T,E,b,L)}if(0!==h)for(var k=e.arrayToSet(I,(function(e){return e.name})),N=0,O=function(n,t){if(!t)return C(n);var r=n+7+1;return A[r]||(A[r]=C(n).filter((function(n){return!function(e){switch(e){case 122:case 125:case 151:case 128:case 130:case 88:case 150:case 113:case 132:case 114:case 133:case 134:case 135:case 136:case 137:case 140:case 141:case 117:case 118:case 119:case 138:case 143:case 144:case 145:case 147:case 148:return!0;default:return!1}}(e.stringToToken(n.name))})))}(h,!S&&e.isSourceFileJS(n));N=n.pos;case 24:return 190===r;case 58:return 191===r;case 22:return 190===r;case 20:return 280===r||oe(r);case 18:return 248===r;case 29:return 245===r||214===r||246===r||247===r||e.isFunctionLikeKind(r);case 120:return 159===r&&!e.isClassLike(t.parent);case 25:return 156===r||!!t.parent&&190===t.parent.kind;case 119:case 117:case 118:return 156===r&&!e.isConstructorDeclaration(t.parent);case 123:return 258===r||263===r||256===r;case 131:case 142:return!M(n);case 80:case 88:case 114:case 94:case 109:case 96:case 115:case 81:case 121:case 145:return!0;case 41:return e.isFunctionLike(n.parent)&&!e.isMethodDeclaration(n.parent)}if(I(k(n))&&M(n))return!1;if(ie(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(k(n))||ue(n)))return!1;switch(k(n)){case 122:case 80:case 81:case 130:case 88:case 94:case 114:case 115:case 117:case 118:case 119:case 120:case 109:case 121:return!0;case 126:return e.isPropertyDeclaration(n.parent)}return e.isDeclarationName(n)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==v||o>v.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(268===e.parent.kind)return 268!==F.parent.kind;if(269===e.parent.kind||267===e.parent.kind)return!!e.parent.parent&&266===e.parent.parent.kind}return!1}(n);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-t)),i}(b))return void r("Returning an empty list because completion was requested in an invalid position.");var G=b.parent;if(24===b.kind||28===b.kind)switch(A=24===b.kind,x=28===b.kind,G.kind){case 194:if((L=(S=G).expression).end===b.pos&&e.isCallExpression(L)&&L.getChildCount(a)&&21!==e.last(L.getChildren(a)).kind)return;break;case 153:L=G.left;break;case 249:L=G.name;break;case 188:case 219:L=G;break;default:return}else if(1===a.languageVariant){if(G&&194===G.kind&&(b=G,G=G.parent),p.parent===F)switch(p.kind){case 31:266!==p.parent.kind&&268!==p.parent.kind||(F=p);break;case 43:267===p.parent.kind&&(F=p)}switch(G.kind){case 269:43===b.kind&&(R=!0,F=b);break;case 209:if(!P(G))break;case 267:case 266:case 268:29===b.kind&&(C=!0,F=b);break;case 273:switch(v.kind){case 62:w=!0;break;case 75:G!==v.parent&&!G.initializer&&e.findChildOfKind(G,62,a)&&(w=v)}}}}var B=e.timestamp(),U=5,V=!1,j=0,H=[],K=[],W=[],q=l.getImportSuggestionsCache&&l.getImportSuggestionsCache(),z=re();if(A||x)!function(){U=2;var n=e.isLiteralImportTypeNode(L),t=m||n&&!L.isTypeOf||e.isPartOfTypeNode(L.parent)||e.isPossiblyTypeArgumentPosition(b,a,u),r=e.isInRightSideOfInternalImportEqualsDeclaration(L);if(e.isEntityName(L)||n){var i=e.isModuleDeclaration(L.parent);i&&(V=!0);var o=u.getSymbolAtLocation(L);if(o&&1920&(o=e.skipAlias(o,u)).flags){for(var c=e.Debug.assertEachDefined(u.getExportsOfModule(o),"getExportsOfModule() should all be defined"),l=function(e){return u.isValidPropertyAccess(n?L:L.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===L.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 290!==e.kind&&249!==e.kind&&248!==e.kind}))){var y=u.getTypeOfSymbolAtLocation(o,L).getNonOptionalType(),h=!1;if(y.isNullableType())((E=A&&!x&&!1!==s.includeAutomaticOptionalChainCompletions)||x)&&(y=y.getNonNullableType(),E&&(h=!0));ee(y,!!(32768&L.flags),h)}return}}if(e.isMetaProperty(L)&&(99===L.keywordToken||96===L.keywordToken)&&b===L.getChildAt(1)){var v=99===L.keywordToken?"target":"meta";return void H.push(u.createSymbol(4,e.escapeLeadingUnderscores(v)))}if(!t){var E;y=u.getTypeAtLocation(L).getNonOptionalType(),h=!1;if(y.isNullableType())((E=A&&!x&&!1!==s.includeAutomaticOptionalChainCompletions)||x)&&(y=y.getNonNullableType(),E&&(h=!0));ee(y,!!(32768&L.flags),h)}}();else if(C){var J=e.Debug.assertEachDefined(u.getJsxIntrinsicTagNamesAt(F),"getJsxIntrinsicTagNames() should all be defined");te(),H=J.concat(H),U=3,j=0}else if(R){var X=b.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=v&&function(n,t,r,a){var i=n.parent;switch(n.kind){case 75:return e.getContextualTypeFromParent(n,a);case 62:switch(i.kind){case 242:return a.getContextualType(i.initializer);case 209:return a.getTypeAtLocation(i.left);case 273:return a.getContextualTypeForJsxAttribute(i);default:return}case 99:return a.getContextualType(i);case 78:return e.getSwitchedType(e.cast(i,e.isCaseClause),a);case 18:return e.isJsxExpression(i)&&266!==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)}}(v,o,a,u),Z=e.mapDefined(Q&&(Q.isUnion()?Q.types:[Q]),(function(e){return e.isLiteral()?e.value:void 0})),$=v&&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)?T(a,n,r):void 0}))}(v,Q,u);return{kind:0,symbols:H,completionKind:U,isInSnippetScope:_,propertyAccessToConvert:S,isNewIdentifierLocation:V,location:F,keywordFilters:j,literals:Z,symbolToOriginInfoMap:K,recommendedCompletion:$,previousToken:v,isJsxInitializer:w,insideJsDocTagTypeExpression:m,symbolToSortTextMap:W,isTypeOnlyLocation:z};function ee(n,t,r){V=!!n.getStringIndexType(),x&&e.some(n.getCallSignatures())&&(V=!0);var a=188===L.kind?L:L.parent;if(i)H.push.apply(H,O(n,u));else for(var o=0,c=n.getApparentProperties();o0&&(H=function(n,t){if(0===t.length)return n;for(var r=e.createMap(),a=e.createUnderscoreEscapedMap(),i=0,o=t;i=0&&!l(t,r[i],111);i--);return e.forEach(a(n.statement),(function(e){s(n,e)&&l(t,e.getFirstToken(),77,82)})),t}function d(e){var n=c(e);if(n)switch(n.kind){case 230:case 231:case 232:case 228:case 229:return u(n);case 237:return p(n)}}function p(n){var t=[];return l(t,n.getFirstToken(),103),e.forEach(n.caseBlock.clauses,(function(r){l(t,r.getFirstToken(),78,84),e.forEach(a(r),(function(e){s(n,e)&&l(t,e.getFirstToken(),77)}))})),t}function f(n,t){var r=[];(l(r,n.getFirstToken(),107),n.catchClause&&l(r,n.catchClause.getFirstToken(),79),n.finallyBlock)&&l(r,e.findChildOfKind(n,92,t),92);return r}function m(n,t){var a=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||290===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,105,t))})),e.isFunctionBlock(a)&&e.forEachReturnStatement(a,(function(n){i.push(e.findChildOfKind(n,101,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,101,t))})),e.forEach(r(a.body),(function(n){i.push(e.findChildOfKind(n,105,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,126)})),e.forEachChild(t,(function(n){y(n,(function(n){e.isAwaitExpression(n)&&l(r,n.getFirstToken(),127)}))})),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=e.arrayToSet(i,(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 95:case 87: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],95);for(var i=a.length-1;i>=0&&!l(r,a[i],87);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 101:return c(n.parent,e.isReturnStatement,_);case 105:return c(n.parent,e.isThrowStatement,m);case 107:case 79:case 92:return c(79===n.kind?n.parent.parent:n.parent,e.isTryStatement,f);case 103:return c(n.parent,e.isSwitchStatement,p);case 78:case 84:return e.isDefaultClause(n.parent)||e.isCaseClause(n.parent)?c(n.parent.parent.parent,e.isSwitchStatement,p):void 0;case 77:case 82:return c(n.parent,e.isBreakOrContinueStatement,d);case 93:case 111:case 86:return c(n.parent,(function(n){return e.isIterationStatement(n,!0)}),u);case 129:return s(e.isConstructorDeclaration,[129]);case 131:case 142:return s(e.isAccessor,[131,142]);case 127:return c(n.parent,e.isAwaitExpression,g);case 126:return h(g(n));case 121: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(),121)}))})),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 250:case 290:case 223:case 277:case 278:return 128&t&&e.isClassDeclaration(n)?i(n.members,[n]):r.statements;case 162:case 161:case 244:return i(r.parameters,e.isClassLike(r.parent)?r.parent.members:[]);case 245:case 214:case 246:case 173: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=e.createMap(),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,e.createMap),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.assertDefined(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(290===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(),L(e,e,n,t,r)}function L(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),i=t}function T(){i.children&&(A(i.children,i),I(i.children)),i=c.pop(),o=l.pop()}function S(e,n,t){E(e,t),L(n),T()}function L(n){var t;if(r.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 162:var a=n;S(a,a.body);for(var i=0,s=a.parameters;i0&&(E(U,P),e.forEachChild(U.right,L),T()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(n,U.right,P):(E(U,P),S(n,U.right,N.name),T()),void v(M);case 7:case 9:var w=n,G=(P=7===k?w.arguments[0]:w.arguments[0].expression,w.arguments[1]),B=b(n,P);M=B[0];return E(n,B[1]),E(n,e.setTextRange(e.createIdentifier(G.text),G)),L(n.arguments[2]),T(),T(),void v(M);case 5:var U,V=(N=(U=n).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(N)&&o&&o.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?S(n,U.right,V):e.isBindableStaticAccessExpression(N)&&(E(U,V),S(U.left,U.right,e.getNameOrArgument(N)),T()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(k)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,(function(n){e.forEach(n.tags,(function(n){e.isJSDocTypeAlias(n)&&g(n)}))})),e.forEachChild(n,L)}}function A(n,t){var r=e.createMap();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 290:var a=n;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 259:return e.isExportAssignment(n)&&n.isExportEquals?"export=":"default";case 202:case 244:case 201:case 245:case 214:return 512&e.getModifierFlags(n)?"default":U(n);case 162:return"constructor";case 166:return"new()";case 165:return"()";case 167:return"[]";default:return""}}function O(n){return{text:N(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 M(n){return{text:N(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:N(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.getModifierFlags(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],C=0===A.length?E?void 0:e.createNamedImports(e.emptyArray):0===y.length?e.createNamedImports(A):e.updateNamedImports(y[0].importClause.namedBindings,A);m&&E&&C?(u.push(o(x,E,void 0)),u.push(o(null!==(t=y[0])&&void 0!==t?t:x,void 0,C))):u.push(o(x,E,C))}}else{var D=_[0];u.push(o(D,D.importClause.name,g[0].importClause.namedBindings))}}return u}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 270:return function(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd());return c(r,"code",r,!1,"<>...")}(n);case 267:case 268:return function(e){if(0===e.properties.length)return;return o(e.getStart(t),e.getEnd(),"code")}(n.attributes);case 211:case 14:return function(e){if(14===e.kind&&0===e.text.length)return;return o(e.getStart(t),e.getEnd(),"code")}(n)}function i(n,t){return void 0===t&&(t=18),l(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function l(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(A(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(A(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 130===n&&(135===(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(96===n){if(20===(n=d())){if(10===(n=d()))return f(),!0}else{if(10===n)return f(),!0;if(75===n||e.isKeyword(n))if(149===(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&&149===(n=d())&&10===(n=d())&&f()}else 41===n&&123===(n=d())&&(75===(n=d())||e.isKeyword(n))&&149===(n=d())&&10===(n=d())&&f()}return!0}return!1}function y(){var n=e.scanner.getToken();if(89===n){if(m(),18===(n=d())){for(n=d();19!==n&&1!==n;)n=d();19===n&&149===(n=d())&&10===(n=d())&&f()}else if(41===n)149===(n=d())&&10===(n=d())&&f();else if(96===n&&(75===(n=d())||e.isKeyword(n))&&62===(n=d())&&h(!0))return!0;return!0}return!1}function h(n){var t=n?d():e.scanner.getToken();return 139===t&&(20===(t=d())&&10===(t=d())&&f(),!0)}function v(){var n=e.scanner.getToken();if(75===n&&"define"===e.scanner.getTokenValue()){if(20!==(n=d()))return!0;if(10===(n=d())){if(27!==(n=d()))return!0;n=d()}if(22!==n)return!0;for(n=d();23!==n&&1!==n;)10===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)||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||268===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.assertDefined(o.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(l.kind,19);var u=i(o,(function(e){return e===n.readonlyToken||138===e.kind||e===n.questionToken||57===e.kind}));return[a,c(s(i(u,(function(e){var n=e.kind;return 22===n||155===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)&&198===a.parent.kind){var f=a,m=f.parent;return e.Debug.assert(211===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 200:case 161:case 201:case 202: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 209: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.getCallSignatures();return 1!==f.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(f),node:n,symbol:l(s.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.isIdentifier(a)?a.text: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)}))}))}))}(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){var s=r.isTypeParameterList,c=r.argumentCount,l=r.argumentsSpan,u=r.invocation,d=r.argumentIndex,p=_(u),f=2===u.kind?u.symbol:o.getSymbolAtLocation(m(u)),g=f?e.symbolToDisplayParts(o,f,void 0,void 0):e.emptyArray,y=n.map((function(n){return function(n,t,r,a,o,s){var c=(r?v:b)(n,a,o,s),l=c.isVariadic,u=c.parameters,d=c.prefix,p=c.suffix,f=i(t,d),m=i(p,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)),_=n.getDocumentationComment(a),g=n.getJsDocTags();return{isVariadic:l,prefixDisplayParts:f,suffixDisplayParts:m,separatorDisplayParts:h,parameters:u,documentation:_,tags:g}}(n,g,s,o,p,a)}));0!==d&&e.Debug.assertLessThan(d,c);var E=n.indexOf(t);return e.Debug.assert(-1!==E),{items:y,applicableSpan:l,selectedItemIndex:E,argumentIndex:d,argumentCount:c}}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=e.mapToDisplayParts((function(o){var c=n.thisParameter?[t.symbolToParameterDeclaration(n.thisParameter,r,70246400)]:[],l=e.createNodeArray(i(c,t.getExpandedParameters(n).map((function(e){return t.symbolToParameterDeclaration(e,r,70246400)}))));s.writeList(2576,l,a,o)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],l)}}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.createNodeArray(n.typeParameters.map((function(e){return t.typeParameterToDeclaration(e,r)})));s.writeList(53776,o,a,i)}}));return{isVariadic:o,parameters:t.getExpandedParameters(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);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=e.createMap(),i=e.createMap();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=l.outFile||l.out,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;p0&&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 f=i.declarationList.declarations[0].initializer;f&&e.isRequireCall(f,!0)&&l.push(e.createDiagnosticForNode(f,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=104===c.kind&&e.isInExpressionContext(c),T=!1;if(104===c.kind&&!E)return{displayParts:[e.keywordPart(104)],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&&194===c.parent.kind){var L=c.parent.name;(L===c||L&&0===L.getFullWidth())&&(c=c.parent)}var A=void 0;if(e.isCallOrNewExpression(c)?A=c:(e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)||c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(i.valueDeclaration))&&(A=c.parent),A){S=a.getResolvedSignature(A);var x=197===A.kind||e.isCallExpression(A)&&102===A.expression.kind,C=x?d.getConstructSignatures():d.getCallSignatures();if(e.contains(C,S.target)||e.contains(C,S)||(S=C.length?C[0]:void 0),S){switch(x&&32&h?(v="constructor",J(d.symbol,v)):2097152&h?(X(v="alias"),_.push(e.spacePart()),x&&(_.push(e.keywordPart(99)),_.push(e.spacePart())),z(i)):J(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())),x&&(_.push(e.keywordPart(99)),_.push(e.spacePart())),Y(S,C,262144);break;default:Y(S,C)}b=!0,T=C.length>1}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||129===c.kind&&162===c.parent.kind){var D=c.parent;if(i.declarations&&e.find(i.declarations,(function(e){return e===(129===c.kind?D.parent:D)}))){C=162===D.kind?d.getNonNullableType().getConstructSignatures():d.getNonNullableType().getCallSignatures();S=a.isImplementationOfOverload(D)?C[0]:a.getSignatureFromDeclaration(D),162===D.kind?(v="constructor",J(d.symbol,v)):J(165!==D.kind||2048&d.symbol.flags||4096&d.symbol.flags?i:d.symbol,v),Y(S,C),b=!0,T=C.length>1}}}if(32&h&&!b&&!E&&(W(),e.getDeclarationOfKind(i,214)?X("local class"):_.push(e.keywordPart(80)),_.push(e.spacePart()),z(i),Q(i,o)),64&h&&2&l&&(K(),_.push(e.keywordPart(114)),_.push(e.spacePart()),z(i),Q(i,o)),524288&h&&2&l&&(K(),_.push(e.keywordPart(145)),_.push(e.spacePart()),z(i),Q(i,o),_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),e.addRange(_,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(i),s,8388608))),384&h&&(K(),e.some(i.declarations,(function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)}))&&(_.push(e.keywordPart(81)),_.push(e.spacePart())),_.push(e.keywordPart(88)),_.push(e.spacePart()),z(i)),1536&h&&!E){K();var I=(V=e.getDeclarationOfKind(i,249))&&V.name&&75===V.name.kind;_.push(e.keywordPart(I?136:135)),_.push(e.spacePart()),z(i)}if(262144&h&&2&l)if(K(),_.push(e.punctuationPart(20)),_.push(e.textPart("type parameter")),_.push(e.punctuationPart(21)),_.push(e.spacePart()),z(i),i.parent)q(),z(i.parent,s),Q(i.parent,s);else{var R=e.getDeclarationOfKind(i,155);if(void 0===R)return e.Debug.fail();if(V=R.parent)if(e.isFunctionLikeKind(V.kind)){q();S=a.getSignatureFromDeclaration(V);166===V.kind?(_.push(e.keywordPart(99)),_.push(e.spacePart())):165!==V.kind&&V.name&&z(V.symbol),e.addRange(_,e.signatureToDisplayParts(a,S,o,32))}else 247===V.kind&&(q(),_.push(e.keywordPart(145)),_.push(e.spacePart()),z(V.symbol),Q(V.symbol,o))}if(8&h&&(v="enum member",J(i,"enum member"),284===(V=i.declarations[0]).kind)){var k=a.getConstantValue(V);void 0!==k&&(_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),_.push(e.displayPart(e.getTextOfConstantValue(k),"number"==typeof k?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(K(),!b){var N=a.getAliasedSymbol(i);if(N!==i&&N.declarations&&N.declarations.length>0){var O=N.declarations[0],M=e.getNameOfDeclaration(O);if(M){var P=e.isModuleWithStringLiteralName(O)&&e.hasModifier(O,2),w="default"!==i.name&&!P,F=n(a,N,e.getSourceFileOfNode(O),O,M,l,w?i:N);_.push.apply(_,F.displayParts),_.push(e.lineBreakPart()),f=F.documentation,m=F.tags}}}switch(i.declarations[0].kind){case 252:_.push(e.keywordPart(89)),_.push(e.spacePart()),_.push(e.keywordPart(136));break;case 259:_.push(e.keywordPart(89)),_.push(e.spacePart()),_.push(e.keywordPart(i.declarations[0].isExportEquals?62:84));break;case 263:_.push(e.keywordPart(89));break;default:_.push(e.keywordPart(96))}_.push(e.spacePart()),z(i),e.forEach(i.declarations,(function(n){if(253===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))_.push(e.spacePart()),_.push(e.operatorPart(62)),_.push(e.spacePart()),_.push(e.keywordPart(139)),_.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()),z(r,s))}return!0}}))}if(!b)if(""!==v){if(d)if(E?(K(),_.push(e.keywordPart(104))):J(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);H().writeNode(4,t,e.getSourceFileOfNode(e.getParseTreeNode(s)),n)}));e.addRange(_,G)}else e.addRange(_,e.typeToDisplayParts(a,d,s));else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v){(C=d.getNonNullableType().getCallSignatures()).length&&(Y(C[0],C),T=C.length>1)}}else v=t(a,i,c);if(0!==g.length||T||(g=i.getDocumentationComment(a)),0===g.length&&4&h&&i.parent&&e.forEach(i.parent.declarations,(function(e){return 290===e.kind})))for(var B=0,U=i.declarations;B0))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 H(){return p||(p=e.createPrinter({removeComments:!0})),p}function K(){_.length&&_.push(e.lineBreakPart()),W()}function W(){u&&(X("alias"),_.push(e.spacePart()))}function q(){_.push(e.spacePart()),_.push(e.keywordPart(97)),_.push(e.spacePart())}function z(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 J(n,t){K(),t&&(X(t),n&&!e.some(n.declarations,(function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name}))&&(_.push(e.spacePart()),z(n)))}function X(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 Y(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 Q(n,t){var r=e.mapToDisplayParts((function(r){var i=a.symbolToTypeParameterDeclarations(n,t);H().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=new n.FormattingContext(u,c,g),v=-1,b=[];if(o.advance(),o.isOnToken()){var E=u.getLineAndCharacterOfPosition(r.getStart(u)).line,T=E;r.decorators&&(T=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),b=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 162:case 244:case 201:case 161:case 160:case 202:if(e.typeParameters===n)return 29;if(e.parameters===n)return 20;break;case 196:case 197:if(e.typeArguments===n)return 29;if(e.arguments===n)return 20;break;case 169:if(e.typeArguments===n)return 29;break;case 173:return 18}return 0}(r,t),l=s,d=i;if(0!==c)for(;o.isOnToken();){if((b=o.readTokenInfo(r)).token.end>t.pos)break;if(b.token.kind===c){d=u.getLineAndCharacterOfPosition(b.token.pos).line,k(b,r,s,r);var p=void 0;if(-1!==v)p=v;else{var f=e.getLineStartPositionForPosition(b.token.pos,u);p=n.SmartIndenter.findFirstNonWhitespaceColumn(f,b.token.pos,u,g)}l=L(r,i,p,g.indentSize)}else k(b,r,s,r)}for(var m=-1,_=0;_a.end)break;11!==a.kind?k(E,a,h,a):o.advance()}if(!a.parent&&o.isOnEOF()){var T=o.readEOFTokenRange();T.end<=a.end&&d&&D(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)break;k(S,a,l,a)}if(!o.isOnToken())return s;if(e.isToken(i)&&11!==i.kind){var S=o.readTokenInfo(i);return e.Debug.assert(S.token.end===i.end,"Token end is child end"),k(S,a,l,i),s}var L=157===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===_?v:i.getIndentation(),delta:Math.min(g.indentSize,i.getDelta(e)+s)}:-1===r?20===e.kind&&t===_?{indentation:v,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,b,h,E,A.indentation,A.delta),11===i.kind){var x={pos:i.getStart(),end:i.getEnd()};if(x.pos!==x.end){var C=c.getChildren(u),D=C[e.findIndex(C,(function(e){return e.pos===i.pos}))-1];if(D&&u.getLineAndCharacterOfPosition(x.end).line!==u.getLineAndCharacterOfPosition(D.end).line){var I=u.getLineAndCharacterOfPosition(x.pos).line===u.getLineAndCharacterOfPosition(D.end).line;R(x,A.indentation,I,!1,!0)}}}return b=a,m&&192===c.kind&&-1===s&&(s=A.indentation),s}function k(n,r,a,i,s){e.Debug.assert(e.rangeContainsRange(r,n.token));var c=o.lastTrailingTriviaWasNewLine(),p=!1;n.leadingTrivia&&x(n.leadingTrivia,r,b,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,b,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&&x(n.trailingTrivia,r,b,a),p){var T=m&&!l(n.token)?a.getIndentationForToken(g.line,n.token.kind,i,!!s):-1,S=!0;if(n.leadingTrivia){var L=a.getIndentationForComment(n.token.kind,T,i);S=A(n.leadingTrivia,L,S,(function(e){return I(e.pos,L,!1)}))}-1!==T&&S&&(I(n.token.pos,T,1===f),_=g.line,v=T)}o.advance(),b=r}}(r,r,E,T,a,i)}if(!o.isOnToken()){var S=o.getCurrentLeadingTrivia();S&&(A(S,a,!1,(function(e){return C(e,u.getLineAndCharacterOfPosition(e.pos),r,r,void 0)})),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 b;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 87:case 111:case 59:return!1;case 43:case 31:switch(i.kind){case 268:case 269:case 267:return!1}break;case 22:case 23:if(186!==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 245:return 80;case 246:return 114;case 244:return 94;case 248:return 248;case 163:return 131;case 164:return 142;case 161:if(n.asteriskToken)return 41;case 159:case 156: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){t.parent&&n.SmartIndenter.shouldIndentChildNode(g,t.parent,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 L=f(S,g);M(E,T.character,L)}else O(E,T.character)}}}}else a||I(t.pos,r,!1)}function k(n,t,r){for(var a=n;ao)){var s=N(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),O(s,o+1-s))}}}function N(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function O(n,t){t&&b.push(e.createTextChangeFromStartLength(n,t,""))}function M(n,t,r){(t||r)&&b.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))&&(290===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(227===n.kind&&n.elseStatement===t){var i=e.findChildOfKind(n,87,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 169:return i(r.typeArguments);case 193:return i(r.properties);case 192:return i(r.elements);case 173:return i(r.members);case 244:case 201:case 202:case 161:case 160:case 165:case 162:case 171:case 166:return i(r.typeParameters)||i(r.parameters);case 245:case 214:case 246:case 247:case 320:return i(r.typeParameters);case 197:case 196:return i(r.typeArguments)||i(r.arguments);case 243:return i(r.declarations);case 257:case 261:return i(r.elements);case 189:case 190: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&&209!==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"}(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);var i=t.getFullStart(),o=t.getStart(n);if(i===o)return o;var s=e.getLineStartPositionForPosition(i,n);if(e.getLineStartPositionForPosition(o,n)===s)return a===c.IncludeAll?i:o;var l=i>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,s)+l,n);return d=u(n.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,d),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&&193===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(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=e.createMap(),this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(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"})},n.prototype.getOptionsForInsertNodeBefore=function(n,t){return e.isStatement(n)||e.isClassElement(n)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?{}:e.isStringLiteral(n)&&e.isImportDeclaration(n.parent)||e.isNamedImports(n)?{suffix:", "}: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.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,L,S),i=e.nodeIsSynthesized(r)?r:Object.create(r);return i.pos=t(n),i.end=a(n),i}function L(n,r,i,o,s){var c=e.visitNodes(n,r,i,o,s);if(!c)return c;var l=c===n?e.createNodeArray(c.slice(0)):c;return l.pos=t(n),l.end=a(n),l}function A(n,t){return!(e.isInComment(n,t)||e.isInString(n,t)||e.isInTemplateString(n,t)||e.isInJSXText(n,t))}function x(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 C(n,t,r,a){var i=e.Debug.assertDefined(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])})):x(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 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(){a.writeLine()},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},i).writeNode(4,n,t,i),{text:i.getText(),node:S(n)}}n.getTextChangesFromChanges=function(n,t,r,i){return e.group(n,(function(e){return e.sourceFile.path})).map((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;u1)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=s,n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var a=[];return s(e.textChanges.ChangeTracker.with(n,(function(e){return c(n,t,(function(n){return r(e,n,a)}))})),0===a.length?void 0:a)},n.eachDiagnostic=c}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){var n,t;n=e.refactor||(e.refactor={}),t=e.createMap(),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.assertDefined(e.findAncestor(a,(function(n){return e.isAsExpression(n)||e.isTypeAssertion(n)})),"Expected to find an assertion expression"),o=e.isAsExpression(i)?e.createAsExpression(i.expression,e.createKeywordTypeNode(148)):e.createTypeAssertion(e.createKeywordTypeNode(148),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.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0,!1);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="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)&&(244===n.parent.kind||201===n.parent.kind||202===n.parent.kind||161===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.NodeSet;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;159!==o.kind||a&&!a.tryAdd(o)||n.insertModifierBefore(t,130,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.NodeSet;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.createCall(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.createParameter(void 0,i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,e.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)||242===n.kind||158===n.kind||159===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.createToken(20));for(var o=0,s=r.parameters;o0)return x;var C=_(o.checker.getTypeAtLocation(n),o.checker).getReturnType(),D=e.getSynthesizedDeepClone(h),I=o.checker.getPromisedTypeOfPromise(C)?e.createAwait(D):D;if(c)return[e.createReturn(I)];var R=f(t,I,o);return t&&t.types.push(C),R;default:i=!1}return e.emptyArray}function _(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function g(n,t,r){for(var a=[],i=0,o=t;i0)return}else e.isFunctionLike(i)||e.forEachChild(i,t)}))}return a}function y(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())||b(n,a,0)}}function h(n){return!n||(E(n)?!n.identifier.text:e.every(n.elements,h))}function v(e){return E(e)?e.identifier:e.bindingPattern}function b(e,n,t){return void 0===n&&(n=[]),void 0===t&&(t=0),{kind:0,identifier:e,types:n,numberOfAssignmentsOriginal:t}}function E(e){return 0===e.kind}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){i=!0;var a=e.textChanges.ChangeTracker.with(t,(function(e){return o(e,t.sourceFile,t.span.start,t.program.getTypeChecker(),t)}));return i?[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 o(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.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.createToken(89),e.createToken(81)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:a.getStart(t),end:i.getStart(t)},e.createToken(89),{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.createExportSpecifier(void 0,"default")],n)}function s(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_"+e;return n.additional.set(e,!0),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 194:return n.name!==e;case 191:case 258: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.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.convertToFunctionBody(e.getSynthesizedDeepClone(r.body)))}function u(n,t,r,a){return"default"===t?e.makeImport(e.createIdentifier(n),void 0,r,a):e.makeImport(void 0,[d(t,n)],r,a)}function d(n,t){return e.createImportSpecifier(void 0!==n&&n!==t?e.createIdentifier(n):void 0,e.createIdentifier(t))}function p(n,t,r){return e.createVariableStatement(n,e.createVariableDeclarationList([e.createVariableDeclaration(t,void 0,r)],2))}function f(n,t){return e.createExportDeclaration(void 0,void 0,n&&e.createNamedExports(n),void 0===t?void 0:e.createLiteral(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:e.createMap()},d=function(n,t,a){var i=e.createMap();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.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:4;for(var a=0,i=n.statements;a=e.ModuleKind.ES2015&&o99){s=e.textChanges.ChangeTracker.with(t,(function(t){if(e.getTsConfigObjectLiteralExpression(a)){var r=[["target",e.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.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="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 90===i.kind?{extendsToken:i,heritageClauses:a}:void 0}function i(n,t,r,a){if(n.replaceNode(t,r,e.createToken(113)),2===a.length&&90===a[0].token&&113===a[1].token){var i=a[1].getFirstToken(),o=i.getFullStart();n.replaceRange(t,{pos:o,end:o},e.createToken(27));for(var s=t.text,c=i.end;c0&&(!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)))}n.registerCodeFix({errorCodes:o,getCodeActions:function(a){var o=a.errorCode,_=a.sourceFile,g=a.program,y=g.getTypeChecker(),h=g.getSourceFiles(),v=e.getTokenAtPosition(_,a.span.start);if(e.isJSDocTemplateTag(v))return[c(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(_,v)})),e.Diagnostics.Remove_template_tag)];if(29===v.kind)return[c(L=e.textChanges.ChangeTracker.with(a,(function(e){return l(e,_,v)})),e.Diagnostics.Remove_type_parameters)];var b=u(v);if(b)return[c(L=e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(_,b)})),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var E=e.textChanges.ChangeTracker.with(a,(function(e){return d(v,e,_,y,h,!1)}));if(E.length)return[c(E,e.Diagnostics.Remove_destructuring)];var T=e.textChanges.ChangeTracker.with(a,(function(e){return p(_,v,e)}));if(T.length)return[c(T,e.Diagnostics.Remove_variable_statement)];var S=[];if(132===v.kind){var L=e.textChanges.ChangeTracker.with(a,(function(e){return s(e,_,v)})),A=e.cast(v.parent,e.isInferTypeNode).typeParameter.name.text;S.push(n.createCodeFixAction(t,L,[e.Diagnostics.Replace_infer_0_with_unknown,A],i,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var x=e.textChanges.ChangeTracker.with(a,(function(e){return m(_,v,e,y,h,!1)}));if(x.length){A=e.isComputedPropertyName(v.parent)?v.parent:v;S.push(c(x,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(_)]))}}var C=e.textChanges.ChangeTracker.with(a,(function(e){return f(e,o,_,v)}));return C.length&&S.push(n.createCodeFixAction(t,C,[e.Diagnostics.Prefix_0_with_an_underscore,v.getText(_)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[r,a,i],getAllCodeActions:function(t){var c=t.sourceFile,_=t.program,g=_.getTypeChecker(),y=_.getSourceFiles();return n.codeFixAll(t,o,(function(n,o){var _=e.getTokenAtPosition(c,o.start);switch(t.fixId){case r:f(n,o.code,c,_);break;case a:if(132===_.kind)break;var h=u(_);h?n.delete(c,h):e.isJSDocTemplateTag(_)?n.delete(c,_):29===_.kind?l(n,c,_):d(_,n,c,g,y,!0)||p(c,_,n)||m(c,_,n,g,y,!0);break;case i:132===_.kind&&s(n,c,_);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 227:if(l.elseStatement){if(e.isBlock(s.parent))break;return void n.replaceNode(t,s,e.createBlock(e.emptyArray))}case 229:case 230:return void n.delete(t,l)}if(e.isBlock(s.parent)){var u=r+a,d=e.Debug.assertDefined(function(e,n){for(var t,r=0,a=e;rC.length)R(u.getSignatureFromDeclaration(l[l.length-1]),m,p,o(s));else e.Debug.assert(l.length===C.length,"Declarations and signatures should match count"),c(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.createArrayTypeNode(e.createKeywordTypeNode(125)),h=e.createParameter(void 0,void 0,e.createToken(25),_[m]||"rest",m>=l?e.createToken(57):void 0,y,void 0);g.push(h)}return function(n,t,r,a,i,s,c){return e.createMethod(void 0,n,void 0,t,r?e.createToken(57):void 0,a,i,s,o(c))}(a,t,r,void 0,g,void 0,s)}(C,p,g,m,s))}}function R(n,i,o,s){var l=function(n,t,a,i,o,s,c){var l=n.program.getTypeChecker().signatureToSignatureDeclaration(t,161,a,257,r(n));if(!l)return;return l.decorators=void 0,l.modifiers=i,l.name=o,l.questionToken=s?e.createToken(57):void 0,l.body=c,l}(a,n,t,i,o,g,s);l&&c(l)}}function i(n,t,r,a,i){for(var o=[],s=0;s=a?e.createToken(57):void 0,i?void 0:r&&r[s]||e.createKeywordTypeNode(125),void 0);o.push(c)}return o}function o(n){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===n.quotePreference)]))],!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(96===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(188===r.parent.kind,"Token parent should be an ImportType"),r.parent}function i(n,t,r){var a=e.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="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.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),p=e.createMappedTypeNode(e.hasReadonlyModifier(s)?e.createModifier(138):void 0,d,s.questionToken,s.type),f=e.createIntersectionTypeNode(i(e.getAllSuperTypeNodes(c),[p],l.length?[e.createTypeLiteralNode(l)]:e.emptyArray));n.replaceNode(t,c,(a=c,o=f,e.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="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 127===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&&99!==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.assertDefined(t.importClause);n.replaceNode(r.sourceFile,t,e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(a,a.name,void 0,a.isTypeOnly),t.moduleSpecifier)),n.insertNodeAfter(r.sourceFile,t,e.createImportDeclaration(void 0,void 0,e.updateImportClause(a,void 0,a.namedBindings,a.isTypeOnly),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){function t(n){var t=n.file,r=e.getRefactorContextSpan(n),a=e.getTokenAtPosition(t,r.start),i=e.getParentNodeInSpan(a,t,r);if(i&&(e.isSourceFile(i.parent)||e.isModuleBlock(i.parent)&&e.isAmbientModule(i.parent.parent))){var o=e.isSourceFile(i.parent)?i.parent.symbol:i.parent.parent.symbol,s=e.getModifierFlags(i),c=!!(512&s);if(1&s&&(c||!o.exports.has("default")))switch(i.kind){case 244:case 245:case 246:case 248:case 247:case 249:var l=i;return l.name&&e.isIdentifier(l.name)?{exportNode:l,exportName:l.name,wasDefault:c,exportingModuleSymbol:o}:void 0;case 225:var u=i;if(!(2&u.declarationList.flags)||1!==u.declarationList.declarations.length)return;var d=e.first(u.declarationList.declarations);if(!d.initializer)return;return e.Debug.assert(!c,"Can't have a default flag here"),e.isIdentifier(d.name)?{exportNode:u,exportName:d.name,wasDefault:c,exportingModuleSymbol:o}:void 0;default:return}}}function r(n,t){return e.createImportSpecifier(n===t?void 0:e.createIdentifier(n),e.createIdentifier(t))}n.registerRefactor("Convert export",{getAvailableActions:function(n){var r=t(n);if(!r)return e.emptyArray;var a=r.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.wasDefault?"Convert default export to named export":"Convert named export to default export",description:a}]}]},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){return i=n.file,o=n.program,s=e.Debug.assertDefined(t(n),"context must have info"),c=a,l=n.cancellationToken,function(n,t,r,a){var i=t.wasDefault,o=t.exportNode,s=t.exportName;if(i)r.delete(n,e.Debug.assertDefined(e.findModifier(o,84),"Should find a default keyword in modifier list"));else{var c=e.Debug.assertDefined(e.findModifier(o,89),"Should find an export keyword in modifier list");switch(o.kind){case 244:case 245:case 246:r.insertNodeAfter(n,c,e.createToken(84));break;case 225:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,a,n)){r.replaceNode(n,o,e.createExportDefault(e.Debug.assertDefined(e.first(o.declarationList.declarations).initializer,"Initializer was previously known to be present")));break}case 248:case 247:case 249:r.deleteModifier(n,c),r.insertNodeAfter(n,o,e.createExportDefault(e.createIdentifier(s.text)));break;default:e.Debug.assertNever(o,"Unexpected exportNode kind "+o.kind)}}}(i,s,c,o.getTypeChecker()),void function(n,t,a,i){var o=t.wasDefault,s=t.exportName,c=t.exportingModuleSymbol,l=n.getTypeChecker(),u=e.Debug.assertDefined(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 194:a.replaceNode(n,t,e.createIdentifier(i));break;case 258:case 263:var s=o;a.replaceNode(n,s,r(i,s.name.text));break;case 255: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(256===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.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 194:r.replaceNode(n,t,e.createIdentifier("default"));break;case 258:var s=e.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 263:r.replaceNode(n,o,(a="default",i=o.name.text,e.createExportSpecifier(a===i?void 0:e.createIdentifier(a),e.createIdentifier(i))));break;default:e.Debug.assertNever(o,"Unexpected parent kind "+o.kind)}}(t,n,a)}))}(o,s,c,l);var i,o,s,c,l})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(n){function t(n){var t=n.file,r=e.getRefactorContextSpan(n),a=e.getTokenAtPosition(t,r.start),i=e.getParentNodeInSpan(a,t,r);if(i&&e.isImportDeclaration(i)){var o=i.importClause;return o&&o.namedBindings}}function r(n,t,r){return e.createImportDeclaration(void 0,void 0,e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0),n.moduleSpecifier)}n.registerRefactor("Convert import",{getAvailableActions:function(n){var r=t(n);if(!r)return e.emptyArray;var a=256===r.kind?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message;return[{name:"Convert import",description:a,actions:[{name:256===r.kind?"Convert namespace import to named imports":"Convert named imports to namespace import",description:a}]}]},getEditsForAction:function(n,a){return e.Debug.assert("Convert namespace import to named imports"===a||"Convert named imports to namespace import"===a,"Unexpected action name"),{edits:e.textChanges.ChangeTracker.with(n,(function(a){return i=n.file,o=n.program,s=a,c=e.Debug.assertDefined(t(n),"Context must provide an import to convert"),l=o.getTypeChecker(),void(256===c.kind?function(n,t,a,i,o){var s=!1,c=[],l=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,t,n,(function(n){if(e.isPropertyAccessExpression(n.parent)){var r=e.cast(n.parent,e.isPropertyAccessExpression),a=r.name.text;t.resolveName(a,n,67108863,!0)&&l.set(a,!0),e.Debug.assert(r.expression===n,"Parent expression should match id"),c.push(r)}else s=!0}));for(var u=e.createMap(),d=0,p=c;d0;if(e.isBlock(n)&&!s&&0===a.size)return{body:e.createBlock(n.statements,!0),returnValueProperty:void 0};var c=!1,l=e.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.createReturn(n)]);if(s||a.size){var u=e.visitNodes(l,(function n(i){if(!c&&235===i.kind&&s){var l=_(t,r);return i.expression&&(o||(o="__return"),l.unshift(e.createPropertyAssignment(o,e.visitNode(i.expression,n)))),1===l.length?e.createReturn(l[0].name):e.createReturn(e.createObjectLiteral(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.createReturn(d[0].name)):u.push(e.createReturn(e.createObjectLiteral(d)))}return{body:e.createBlock(u,!0),returnValueProperty:o}}return{body:e.createBlock(l,!0),returnValueProperty:void 0}}(n,i,l,p,!!(o.facts&a.HasReturn)),R=I.body,k=I.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(R),e.isClassLike(t)){var N=b?[]:[e.createToken(117)];o.facts&a.InStaticRegion&&N.push(e.createToken(120)),o.facts&a.IsAsyncFunction&&N.push(e.createToken(126)),D=e.createMethod(void 0,N.length?N:void 0,o.facts&a.IsGenerator?e.createToken(41):void 0,E,void 0,A,T,c,R)}else D=e.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.createToken(126)]:void 0,o.facts&a.IsGenerator?e.createToken(41):void 0,E,A,T,c,R);var O=e.textChanges.ChangeTracker.fromContext(s),M=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);M?O.insertNodeBefore(s.file,M,D,!0):O.insertNodeAtEndOfScope(s.file,t,D);var P=[],w=function(n,t,r){var i=e.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&a.InStaticRegion?e.createIdentifier(n.name.text):e.createThis();return e.createPropertyAccess(o,i)}return i}(t,o,v),F=e.createCall(w,x,S);o.facts&a.IsGenerator&&(F=e.createYield(e.createToken(41),F));o.facts&a.IsAsyncFunction&&(F=e.createAwait(F));if(i.length&&!l)if(e.Debug.assert(!k,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var G=i[0];P.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(G.name),e.getSynthesizedDeepClone(G.type),F)],G.parent.flags)))}else{for(var B=[],U=[],V=i[0].parent.flags,j=!1,H=0,K=i;H0,"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,E,v,!0),g.replaceNode(o.file,n,b)}else{var T=e.createVariableDeclaration(p,m,_),S=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(S){g.insertNodeBefore(o.file,S,T);b=e.createIdentifier(p);g.replaceNode(o.file,n,b)}else if(226===n.parent.kind&&t===e.findAncestor(n,d)){var L=e.createVariableStatement(void 0,e.createVariableDeclarationList([T],2));g.replaceNode(o.file,n.parent,L)}else{L=e.createVariableStatement(void 0,e.createVariableDeclarationList([T],2));if(0===(E=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(y(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.assertDefined(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,E,L,!1),226===n.parent.kind)g.delete(o.file,n.parent);else{b=e.createIdentifier(p);g.replaceNode(o.file,n,b)}}}var A=g.getChanges(),x=n.getSourceFile().fileName,C=e.getRenameLocation(A,x,p,!0);return{renameFilename:x,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){var i=t.length;if(0===i)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(n,t.start),n,t),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(n,e.textSpanEnd(t)),n,t),c=[],l=a.None;if(!o||!s)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};if(o!==s){if(!y(o.parent))return{errors:[e.createFileDiagnostic(n,t.start,i,r.cannotExtractRange)]};for(var d=[],p=0,f=o.parent.statements;p=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractSuper)),!0}else l|=a.UsesThis}if(e.isFunctionLikeDeclaration(i)||e.isClassLike(i)){switch(i.kind){case 244:case 245:e.isSourceFile(i.parent)&&void 0===i.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(i,r.functionWillNotBeVisibleInTheNewScope))}return!1}var f=d;switch(i.kind){case 227:case 240:d=0;break;case 223:i.parent&&240===i.parent.kind&&i.parent.finallyBlock===i&&(d=4);break;case 278:case 277:d|=1;break;default:e.isIterationStatement(i,!1)&&(d|=3)}switch(i.kind){case 183:case 104:l|=a.UsesThis;break;case 238:var m=i.label;(u||(u=[])).push(m.escapedText),e.forEachChild(i,n),u.pop();break;case 234:case 233:(m=i.label)?e.contains(u,m.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):d&(234===i.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 206:l|=a.IsAsyncFunction;break;case 212:l|=a.IsGenerator;break;case 235:4&d?l|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(i,n)}d=f}(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(156===(t=t.parent).kind&&(t=e.findAncestor(t,(function(n){return e.isFunctionLikeDeclaration(n)})).parent),d(t)&&(o.push(t),290===t.kind))return o}(n);return{scopes:o,readsAndWrites:function(n,t,i,o,s,c){var l,u,d=e.createMap(),p=[],f=[],m=[],_=[],y=[],h=e.createMap(),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 L=0,A=t;L=l)return g;if(D.set(g,l),y){for(var h=0,v=p;h0){for(var O=e.createMap(),M=0,P=R;void 0!==P&&M=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.hasModifier(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 244:return p(n)&&d(n,t);case 161:return d(n,t);case 162:return e.isClassDeclaration(n.parent)?p(n.parent)&&d(n,t):f(n.parent.parent)&&d(n,t);case 201:case 202: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,84)}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.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=h(r[t]),s=(a=o,i=n,e.isIdentifier(i)&&e.getTextOfIdentifierOrLiteral(i)===a?e.createShorthandPropertyAssignment(a):e.createPropertyAssignment(a,i));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),y(n,s),s}));if(a&&t.length>=r.length){var s=t.slice(r.length-1),c=e.createPropertyAssignment(h(e.last(r)),e.createArrayLiteral(s));o.push(c)}return e.createObjectLiteral(o,!1)}function y(n,t){var r=n.getSourceFile();!function(e,n){for(var t=e.getFullStart(),r=e.getStart(),a=t;a0;){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.createNoSubstitutionTemplateLiteral(l);return o(p,f),f}var m=[],_=e.createTemplateHead(l);o(p,_);for(var g=c;g322}));return r.kind<153?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<153?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 244:case 201:case 161:case 160: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 245:case 214:case 246:case 247:case 248:case 249:case 253:case 263:case 258:case 255:case 256:case 163:case 164:case 173:t(i),e.forEachChild(i,a);break;case 156:if(!e.hasModifier(i,92))break;case 242:case 191:var u=i;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,a);break}u.initializer&&a(u.initializer);case 284:case 159:case 158:t(i);break;case 260:var d=i;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,a):a(d.exportClause.name));break;case 254:var p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(256===p.namedBindings.kind?t(p.namedBindings):e.forEach(p.namedBindings.elements,a)));break;case 209: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=e.createMap();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}();function I(n){var t=function(n){switch(n.kind){case 10:case 14:case 8:if(154===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 75:return!e.isObjectLiteralElement(n.parent)||193!==n.parent.parent.kind&&274!==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 R(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.ThrottledCancellationToken=D,e.createLanguageService=function(n,t,r){var a;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),void 0===r&&(r=!1);var s,c,l=new S(n),u=0,d=new C(n.getCancellationToken&&n.getCancellationToken()),p=n.getCurrentDirectory();function f(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var m=e.hostUsesCaseSensitiveFileNames(n),_=e.createGetCanonicalFileName(m),g=e.getSourceMapper({useCaseSensitiveFileNames:function(){return m},getCurrentDirectory:function(){return p},getProgram:b,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:f});function y(e){var n=s.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '"+e+"'.");throw t.ProgramFiles=s.getSourceFiles().map((function(e){return e.fileName})),t}return n}function h(){if(e.Debug.assert(!r),n.getProjectVersion){var a=n.getProjectVersion();if(a){if(c===a&&!n.hasChangedAutomaticTypeDirectiveNames)return;c=a}}var i=n.getTypeRootsVersion?n.getTypeRootsVersion():0;u!==i&&(f("TypeRoots version has changed; provide new program"),s=void 0,u=i);var o=new T(n,_),l=o.getRootFileNames(),y=n.hasInvalidatedResolution||e.returnFalse,h=o.getProjectReferences();if(!e.isProgramUptoDate(s,l,o.compilationSettings(),(function(e){return o.getVersion(e)}),L,y,!!n.hasChangedAutomaticTypeDirectiveNames,h)){var v=o.compilationSettings(),b={getSourceFile:function(n,t,r,a){return A(n,e.toPath(n,p,_),t,r,a)},getSourceFileByPath:A,getCancellationToken:function(){return d},getCanonicalFileName:_,useCaseSensitiveFileNames:function(){return m},getNewLine:function(){return e.getNewLineCharacter(v,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:L,readFile:function(t){var r=e.toPath(t,p,_),a=o&&o.getEntryByPath(r);if(a)return e.isString(a)?void 0:e.getSnapshotText(a.scriptSnapshot);return n.readFile&&n.readFile(t)},realpath:n.realpath&&function(e){return n.realpath(e)},directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:function(t,r,a,i,o){return e.Debug.assertDefined(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:y,hasChangedAutomaticTypeDirectiveNames:n.hasChangedAutomaticTypeDirectiveNames};n.trace&&(b.trace=function(e){return n.trace(e)}),n.resolveModuleNames&&(b.resolveModuleNames=function(){for(var e=[],t=0;t0&&(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);){d.throwIfCancellationRequested();e.Debug.assert(l.length===t.length+3);var u=l[1],p=l.index+u.length;if(e.isInComment(r,p)){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:p})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=l.getCurrentSourceFile(n),a=e.getTouchingToken(r,t),i=a.getStart(r)===t?x.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=l.getCurrentSourceFile(n);f("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,i);return f("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-a)),s},getFormattingEditsForRange:function(n,t,r,a){var i=l.getCurrentSourceFile(n);return e.formatting.formatSelection(t,r,i,e.formatting.getFormatContext(v(a)))},getFormattingEditsForDocument:function(n,t){return e.formatting.formatDocument(l.getCurrentSourceFile(n),e.formatting.getFormatContext(v(t)))},getFormattingEditsAfterKeystroke:function(n,t,r,a){var i=l.getCurrentSourceFile(n),o=e.formatting.getFormatContext(v(a));if(!e.isInComment(i,t))switch(r){case"{":return e.formatting.formatOnOpeningCurly(t,i,o);case"}":return e.formatting.formatOnClosingCurly(t,i,o);case";":return e.formatting.formatOnSemicolon(t,i,o);case"\n":return e.formatting.formatOnEnter(t,i,o)}return[]},getDocCommentTemplateAtPosition:function(t,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),l.getCurrentSourceFile(t),r)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var a=l.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=l.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=l.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,c){void 0===c&&(c=e.emptyOptions),h();var l=y(t),u=e.createTextSpanFromBounds(r,a),p=e.formatting.getFormatContext(o);return e.flatMap(e.deduplicate(i,e.equateValues,e.compareValues),(function(t){return d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:l,span:u,program:s,host:n,cancellationToken:d,formatContext:p,preferences:c})}))},getCombinedCodeFix:function(t,r,a,i){void 0===i&&(i=e.emptyOptions),h(),e.Debug.assert("file"===t.type);var o=y(t.fileName),c=e.formatting.getFormatContext(a);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:s,host:n,cancellationToken:d,formatContext:c,preferences:i})},applyCodeActionCommand:function(n,t){var r="string"==typeof n?t:n;return e.isArray(r)?Promise.all(r.map((function(e){return D(e)}))):D(r)},organizeImports:function(t,r,a){void 0===a&&(a=e.emptyOptions),h(),e.Debug.assert("file"===t.type);var i=y(t.fileName),o=e.formatting.getFormatContext(r);return e.OrganizeImports.organizeImports(i,o,n,s,a)},getEditsForFileRename:function(t,r,a,i){return void 0===i&&(i=e.emptyOptions),e.getEditsForFileRename(b(),t,r,n,e.formatting.getFormatContext(a),i,g)},getEmitOutput:function(t,r,a){h();var i=y(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(s,i,!!r,d,o,a)},getNonBoundSourceFile:function(e){return l.getCurrentSourceFile(e)},getProgram:b,getApplicableRefactors:function(n,t,r){void 0===r&&(r=e.emptyOptions),h();var a=y(n);return e.refactor.getApplicableRefactors(k(a,t,r))},getEditsForRefactor:function(n,t,r,a,i,o){void 0===o&&(o=e.emptyOptions),h();var s=y(n);return e.refactor.getEditsForRefactor(k(s,r,o,t),a,i)},toLineColumnOffset:g.toLineColumnOffset,getSourceMapper:function(){return g},prepareCallHierarchy:function(n,t){h();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(s,e.getTouchingPropertyName(y(n),t));return r&&e.mapOneOrMany(r,(function(n){return e.CallHierarchy.createCallHierarchyItem(s,n)}))},provideCallHierarchyIncomingCalls:function(n,t){h();var r=y(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(s,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getIncomingCalls(s,a,d):[]},provideCallHierarchyOutgoingCalls:function(n,t){h();var r=y(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(s,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getOutgoingCalls(s,a):[]}}},e.getNameTable=function(n){return n.nameTable||function(n){var t=n.nameTable=e.createUnderscoreEscapedMap();n.forEachChild((function n(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&function(n){return e.isDeclarationName(n)||265===n.parent.kind||function(e){return e&&e.parent&&195===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 225:return h(t.declarationList.declarations[0]);case 242:case 159:case 158:return h(t);case 156:return function n(t){if(e.isBindingPattern(t.name))return T(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasModifier(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 244:case 161:case 160:case 163:case 164:case 162:case 201:case 202:return function(e){if(!e.body)return;if(v(e))return o(e);return d(e.body)}(t);case 223: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 250:return b(t);case 280:return b(t.block);case 226:return o(t.expression);case 235:return o(t.getChildAt(0),t.expression);case 229:return s(t,t.expression);case 228:return d(t.statement);case 241:return o(t.getChildAt(0));case 227:return s(t,t.expression);case 238:return d(t.statement);case 234:case 233:return o(t.getChildAt(0),t.label);case 230: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 231:return s(t,t.expression);case 232:return E(t);case 237:return s(t,t.expression);case 277:case 278:return d(t.statements[0]);case 240:return b(t.tryBlock);case 239:case 259:return o(t,t.expression);case 253:return o(t,t.moduleReference);case 254:case 260:return o(t,t.moduleSpecifier);case 249:if(1!==e.getModuleInstanceState(t))return;case 245:case 248:case 284:case 191:return o(t);case 236:return d(t.statement);case 157:return g=r.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,g.pos),g.end);case 189:case 190:return T(t);case 246:case 247: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 248:var r=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 245:var a=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),a.members.length?a.members[0]:a.getLastToken(n));case 251:return c(t.parent.parent,t.parent.clauses[0])}return d(t.parent)}(t);case 19:return function(n){switch(n.parent.kind){case 250:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 248:case 245:return o(n);case 223:if(e.isFunctionBlock(n.parent))return o(n);case 280:return d(e.lastOrUndefined(n.parent.statements));case 251:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?d(e.lastOrUndefined(r.statements)):void 0;case 189: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 190: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(228===e.parent.kind||196===e.parent.kind||197===e.parent.kind)return l(e);if(200===e.parent.kind)return u(e);return d(e.parent)}(t);case 21:return function(e){switch(e.parent.kind){case 201:case 244:case 202:case 161:case 160:case 163:case 164:case 162:case 229:case 228:case 230:case 232:case 196:case 197:case 200:return l(e);default:return d(e.parent)}}(t);case 58:return function(n){if(e.isFunctionLike(n.parent)||281===n.parent.kind||156===n.parent.kind)return l(n);return d(n.parent)}(t);case 31:case 29:return function(e){if(199===e.parent.kind)return u(e);return d(e.parent)}(t);case 111:return function(e){if(228===e.parent.kind)return s(e,e.parent.expression);return d(e.parent)}(t);case 87:case 79:case 92:return u(t);case 152:return function(e){if(232===e.parent.kind)return u(e);return d(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return S(t);if((75===t.kind||213===t.kind||281===t.kind||282===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(209===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 228:return l(t);case 157:return d(t.parent);case 230:case 232:return o(t);case 209:if(27===t.parent.operatorToken.kind)return o(t);break;case 202:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 281:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return d(t.parent.initializer);break;case 199:if(t.parent.type===t)return u(t.parent.type);break;case 242:case 156:var f=t.parent,m=f.initializer,_=f.type;if(m===t||_===t||e.isAssignmentOperator(t.kind))return l(t);break;case 209: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(231===t.parent.parent.kind)return d(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?T(t.name):t.initializer||e.hasModifier(t,1)||232===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.hasModifier(n,1)||245===n.parent.kind&&162!==n.kind}function b(t){switch(t.parent.kind){case 249:if(1!==e.getModuleInstanceState(t.parent))return;case 229:case 227:case 231:return c(t.parent,t.statements[0]);case 230:case 232:return c(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return d(t.statements[0])}function E(e){if(243!==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 215!==e.kind?e:void 0}));return t?d(t):191===n.parent.kind?o(n.parent):y(n.parent)}function S(n){e.Debug.assert(190!==n.kind&&189!==n.kind);var t=192===n.kind?n.elements:n.properties,r=e.forEach(t,(function(e){return 215!==e.kind?e:void 0}));return r?d(r):o(209===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,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 o(e,n,t,r){return s(e,n,!0,t,r)}function s(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 c=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function l(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}}(n,t)}))}e.realizeDiagnostics=l;var d=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 o(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 l(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 f(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 f(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(){return n.languageService.getEmitOutput(e)}))},t.prototype.getEmitOutputObject=function(e){var n=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return n.languageService.getEmitOutput(e)}),this.logPerformance)},t}(c);function f(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=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),o(this.logger,"getEncodedLexicalClassifications",(function(){return f(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;ie.filter((e,n,t)=>t.indexOf(e)===n),n.getAllLibs=function(e){const n={},t=/^lib.*\.d\.ts$/,a=e=>{t.test(e)||(e=`lib.${e}.d.ts`),n[e]=!0;const i=r.libDTS[e].references;i.length&&i.forEach(a)};return e.forEach(a),Object.keys(n)}},function(e,n,t){"use strict";var r=t(1).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(31);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(6),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,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(8));function i(e,n,t){const r=new o(e,n,t);process.stdout.write(r.toString()+a.EOL)}n.issueCommand=i,n.issue=function(e,n=""){i(e,{},n)};class o{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,(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(e||"").replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message)}`,e}}},function(e,n){e.exports=require("events")},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!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,