/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * monaco-typescript version: 3.1.0(64641eebb2d0dca62499cc1b822970ea72efbfce)
 * Released under the MIT license
 * https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md
 *-----------------------------------------------------------------------------*/
var __assign=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},__extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}();!function(e){var t,r,n,a,i,o,s,c,u;(t=e.Comparison||(e.Comparison={}))[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",(r=e.SyntaxKind||(e.SyntaxKind={}))[r.Unknown=0]="Unknown",r[r.EndOfFileToken=1]="EndOfFileToken",r[r.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",r[r.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",r[r.NewLineTrivia=4]="NewLineTrivia",r[r.WhitespaceTrivia=5]="WhitespaceTrivia",r[r.ShebangTrivia=6]="ShebangTrivia",r[r.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",r[r.NumericLiteral=8]="NumericLiteral",r[r.StringLiteral=9]="StringLiteral",r[r.JsxText=10]="JsxText",r[r.JsxTextAllWhiteSpaces=11]="JsxTextAllWhiteSpaces",r[r.RegularExpressionLiteral=12]="RegularExpressionLiteral",r[r.NoSubstitutionTemplateLiteral=13]="NoSubstitutionTemplateLiteral",r[r.TemplateHead=14]="TemplateHead",r[r.TemplateMiddle=15]="TemplateMiddle",r[r.TemplateTail=16]="TemplateTail",r[r.OpenBraceToken=17]="OpenBraceToken",r[r.CloseBraceToken=18]="CloseBraceToken",r[r.OpenParenToken=19]="OpenParenToken",r[r.CloseParenToken=20]="CloseParenToken",r[r.OpenBracketToken=21]="OpenBracketToken",r[r.CloseBracketToken=22]="CloseBracketToken",r[r.DotToken=23]="DotToken",r[r.DotDotDotToken=24]="DotDotDotToken",r[r.SemicolonToken=25]="SemicolonToken",r[r.CommaToken=26]="CommaToken",r[r.LessThanToken=27]="LessThanToken",r[r.LessThanSlashToken=28]="LessThanSlashToken",r[r.GreaterThanToken=29]="GreaterThanToken",r[r.LessThanEqualsToken=30]="LessThanEqualsToken",r[r.GreaterThanEqualsToken=31]="GreaterThanEqualsToken",r[r.EqualsEqualsToken=32]="EqualsEqualsToken",r[r.ExclamationEqualsToken=33]="ExclamationEqualsToken",r[r.EqualsEqualsEqualsToken=34]="EqualsEqualsEqualsToken",r[r.ExclamationEqualsEqualsToken=35]="ExclamationEqualsEqualsToken",r[r.EqualsGreaterThanToken=36]="EqualsGreaterThanToken",r[r.PlusToken=37]="PlusToken",r[r.MinusToken=38]="MinusToken",r[r.AsteriskToken=39]="AsteriskToken",r[r.AsteriskAsteriskToken=40]="AsteriskAsteriskToken",r[r.SlashToken=41]="SlashToken",r[r.PercentToken=42]="PercentToken",r[r.PlusPlusToken=43]="PlusPlusToken",r[r.MinusMinusToken=44]="MinusMinusToken",r[r.LessThanLessThanToken=45]="LessThanLessThanToken",r[r.GreaterThanGreaterThanToken=46]="GreaterThanGreaterThanToken",r[r.GreaterThanGreaterThanGreaterThanToken=47]="GreaterThanGreaterThanGreaterThanToken",r[r.AmpersandToken=48]="AmpersandToken",r[r.BarToken=49]="BarToken",r[r.CaretToken=50]="CaretToken",r[r.ExclamationToken=51]="ExclamationToken",r[r.TildeToken=52]="TildeToken",r[r.AmpersandAmpersandToken=53]="AmpersandAmpersandToken",r[r.BarBarToken=54]="BarBarToken",r[r.QuestionToken=55]="QuestionToken",r[r.ColonToken=56]="ColonToken",r[r.AtToken=57]="AtToken",r[r.EqualsToken=58]="EqualsToken",r[r.PlusEqualsToken=59]="PlusEqualsToken",r[r.MinusEqualsToken=60]="MinusEqualsToken",r[r.AsteriskEqualsToken=61]="AsteriskEqualsToken",r[r.AsteriskAsteriskEqualsToken=62]="AsteriskAsteriskEqualsToken",r[r.SlashEqualsToken=63]="SlashEqualsToken",r[r.PercentEqualsToken=64]="PercentEqualsToken",r[r.LessThanLessThanEqualsToken=65]="LessThanLessThanEqualsToken",r[r.GreaterThanGreaterThanEqualsToken=66]="GreaterThanGreaterThanEqualsToken",r[r.GreaterThanGreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanGreaterThanEqualsToken",r[r.AmpersandEqualsToken=68]="AmpersandEqualsToken",r[r.BarEqualsToken=69]="BarEqualsToken",r[r.CaretEqualsToken=70]="CaretEqualsToken",r[r.Identifier=71]="Identifier",r[r.BreakKeyword=72]="BreakKeyword",r[r.CaseKeyword=73]="CaseKeyword",r[r.CatchKeyword=74]="CatchKeyword",r[r.ClassKeyword=75]="ClassKeyword",r[r.ConstKeyword=76]="ConstKeyword",r[r.ContinueKeyword=77]="ContinueKeyword",r[r.DebuggerKeyword=78]="DebuggerKeyword",r[r.DefaultKeyword=79]="DefaultKeyword",r[r.DeleteKeyword=80]="DeleteKeyword",r[r.DoKeyword=81]="DoKeyword",r[r.ElseKeyword=82]="ElseKeyword",r[r.EnumKeyword=83]="EnumKeyword",r[r.ExportKeyword=84]="ExportKeyword",r[r.ExtendsKeyword=85]="ExtendsKeyword",r[r.FalseKeyword=86]="FalseKeyword",r[r.FinallyKeyword=87]="FinallyKeyword",r[r.ForKeyword=88]="ForKeyword",r[r.FunctionKeyword=89]="FunctionKeyword",r[r.IfKeyword=90]="IfKeyword",r[r.ImportKeyword=91]="ImportKeyword",r[r.InKeyword=92]="InKeyword",r[r.InstanceOfKeyword=93]="InstanceOfKeyword",r[r.NewKeyword=94]="NewKeyword",r[r.NullKeyword=95]="NullKeyword",r[r.ReturnKeyword=96]="ReturnKeyword",r[r.SuperKeyword=97]="SuperKeyword",r[r.SwitchKeyword=98]="SwitchKeyword",r[r.ThisKeyword=99]="ThisKeyword",r[r.ThrowKeyword=100]="ThrowKeyword",r[r.TrueKeyword=101]="TrueKeyword",r[r.TryKeyword=102]="TryKeyword",r[r.TypeOfKeyword=103]="TypeOfKeyword",r[r.VarKeyword=104]="VarKeyword",r[r.VoidKeyword=105]="VoidKeyword",r[r.WhileKeyword=106]="WhileKeyword",r[r.WithKeyword=107]="WithKeyword",r[r.ImplementsKeyword=108]="ImplementsKeyword",r[r.InterfaceKeyword=109]="InterfaceKeyword",r[r.LetKeyword=110]="LetKeyword",r[r.PackageKeyword=111]="PackageKeyword",r[r.PrivateKeyword=112]="PrivateKeyword",r[r.ProtectedKeyword=113]="ProtectedKeyword",r[r.PublicKeyword=114]="PublicKeyword",r[r.StaticKeyword=115]="StaticKeyword",r[r.YieldKeyword=116]="YieldKeyword",r[r.AbstractKeyword=117]="AbstractKeyword",r[r.AsKeyword=118]="AsKeyword",r[r.AnyKeyword=119]="AnyKeyword",r[r.AsyncKeyword=120]="AsyncKeyword",r[r.AwaitKeyword=121]="AwaitKeyword",r[r.BooleanKeyword=122]="BooleanKeyword",r[r.ConstructorKeyword=123]="ConstructorKeyword",r[r.DeclareKeyword=124]="DeclareKeyword",r[r.GetKeyword=125]="GetKeyword",r[r.InferKeyword=126]="InferKeyword",r[r.IsKeyword=127]="IsKeyword",r[r.KeyOfKeyword=128]="KeyOfKeyword",r[r.ModuleKeyword=129]="ModuleKeyword",r[r.NamespaceKeyword=130]="NamespaceKeyword",r[r.NeverKeyword=131]="NeverKeyword",r[r.ReadonlyKeyword=132]="ReadonlyKeyword",r[r.RequireKeyword=133]="RequireKeyword",r[r.NumberKeyword=134]="NumberKeyword",r[r.ObjectKeyword=135]="ObjectKeyword",r[r.SetKeyword=136]="SetKeyword",r[r.StringKeyword=137]="StringKeyword",r[r.SymbolKeyword=138]="SymbolKeyword",r[r.TypeKeyword=139]="TypeKeyword",r[r.UndefinedKeyword=140]="UndefinedKeyword",r[r.UniqueKeyword=141]="UniqueKeyword",r[r.FromKeyword=142]="FromKeyword",r[r.GlobalKeyword=143]="GlobalKeyword",r[r.OfKeyword=144]="OfKeyword",r[r.QualifiedName=145]="QualifiedName",r[r.ComputedPropertyName=146]="ComputedPropertyName",r[r.TypeParameter=147]="TypeParameter",r[r.Parameter=148]="Parameter",r[r.Decorator=149]="Decorator",r[r.PropertySignature=150]="PropertySignature",r[r.PropertyDeclaration=151]="PropertyDeclaration",r[r.MethodSignature=152]="MethodSignature",r[r.MethodDeclaration=153]="MethodDeclaration",r[r.Constructor=154]="Constructor",r[r.GetAccessor=155]="GetAccessor",r[r.SetAccessor=156]="SetAccessor",r[r.CallSignature=157]="CallSignature",r[r.ConstructSignature=158]="ConstructSignature",r[r.IndexSignature=159]="IndexSignature",r[r.TypePredicate=160]="TypePredicate",r[r.TypeReference=161]="TypeReference",r[r.FunctionType=162]="FunctionType",r[r.ConstructorType=163]="ConstructorType",r[r.TypeQuery=164]="TypeQuery",r[r.TypeLiteral=165]="TypeLiteral",r[r.ArrayType=166]="ArrayType",r[r.TupleType=167]="TupleType",r[r.UnionType=168]="UnionType",r[r.IntersectionType=169]="IntersectionType",r[r.ConditionalType=170]="ConditionalType",r[r.InferType=171]="InferType",r[r.ParenthesizedType=172]="ParenthesizedType",r[r.ThisType=173]="ThisType",r[r.TypeOperator=174]="TypeOperator",r[r.IndexedAccessType=175]="IndexedAccessType",r[r.MappedType=176]="MappedType",r[r.LiteralType=177]="LiteralType",r[r.ObjectBindingPattern=178]="ObjectBindingPattern",r[r.ArrayBindingPattern=179]="ArrayBindingPattern",r[r.BindingElement=180]="BindingElement",r[r.ArrayLiteralExpression=181]="ArrayLiteralExpression",r[r.ObjectLiteralExpression=182]="ObjectLiteralExpression",r[r.PropertyAccessExpression=183]="PropertyAccessExpression",r[r.ElementAccessExpression=184]="ElementAccessExpression",r[r.CallExpression=185]="CallExpression",r[r.NewExpression=186]="NewExpression",r[r.TaggedTemplateExpression=187]="TaggedTemplateExpression",r[r.TypeAssertionExpression=188]="TypeAssertionExpression",r[r.ParenthesizedExpression=189]="ParenthesizedExpression",r[r.FunctionExpression=190]="FunctionExpression",r[r.ArrowFunction=191]="ArrowFunction",r[r.DeleteExpression=192]="DeleteExpression",r[r.TypeOfExpression=193]="TypeOfExpression",r[r.VoidExpression=194]="VoidExpression",r[r.AwaitExpression=195]="AwaitExpression",r[r.PrefixUnaryExpression=196]="PrefixUnaryExpression",r[r.PostfixUnaryExpression=197]="PostfixUnaryExpression",r[r.BinaryExpression=198]="BinaryExpression",r[r.ConditionalExpression=199]="ConditionalExpression",r[r.TemplateExpression=200]="TemplateExpression",r[r.YieldExpression=201]="YieldExpression",r[r.SpreadElement=202]="SpreadElement",r[r.ClassExpression=203]="ClassExpression",r[r.OmittedExpression=204]="OmittedExpression",r[r.ExpressionWithTypeArguments=205]="ExpressionWithTypeArguments",r[r.AsExpression=206]="AsExpression",r[r.NonNullExpression=207]="NonNullExpression",r[r.MetaProperty=208]="MetaProperty",r[r.TemplateSpan=209]="TemplateSpan",r[r.SemicolonClassElement=210]="SemicolonClassElement",r[r.Block=211]="Block",r[r.VariableStatement=212]="VariableStatement",r[r.EmptyStatement=213]="EmptyStatement",r[r.ExpressionStatement=214]="ExpressionStatement",r[r.IfStatement=215]="IfStatement",r[r.DoStatement=216]="DoStatement",r[r.WhileStatement=217]="WhileStatement",r[r.ForStatement=218]="ForStatement",r[r.ForInStatement=219]="ForInStatement",r[r.ForOfStatement=220]="ForOfStatement",r[r.ContinueStatement=221]="ContinueStatement",r[r.BreakStatement=222]="BreakStatement",r[r.ReturnStatement=223]="ReturnStatement",r[r.WithStatement=224]="WithStatement",r[r.SwitchStatement=225]="SwitchStatement",r[r.LabeledStatement=226]="LabeledStatement",r[r.ThrowStatement=227]="ThrowStatement",r[r.TryStatement=228]="TryStatement",r[r.DebuggerStatement=229]="DebuggerStatement",r[r.VariableDeclaration=230]="VariableDeclaration",r[r.VariableDeclarationList=231]="VariableDeclarationList",r[r.FunctionDeclaration=232]="FunctionDeclaration",r[r.ClassDeclaration=233]="ClassDeclaration",r[r.InterfaceDeclaration=234]="InterfaceDeclaration",r[r.TypeAliasDeclaration=235]="TypeAliasDeclaration",r[r.EnumDeclaration=236]="EnumDeclaration",r[r.ModuleDeclaration=237]="ModuleDeclaration",r[r.ModuleBlock=238]="ModuleBlock",r[r.CaseBlock=239]="CaseBlock",r[r.NamespaceExportDeclaration=240]="NamespaceExportDeclaration",r[r.ImportEqualsDeclaration=241]="ImportEqualsDeclaration",r[r.ImportDeclaration=242]="ImportDeclaration",r[r.ImportClause=243]="ImportClause",r[r.NamespaceImport=244]="NamespaceImport",r[r.NamedImports=245]="NamedImports",r[r.ImportSpecifier=246]="ImportSpecifier",r[r.ExportAssignment=247]="ExportAssignment",r[r.ExportDeclaration=248]="ExportDeclaration",r[r.NamedExports=249]="NamedExports",r[r.ExportSpecifier=250]="ExportSpecifier",r[r.MissingDeclaration=251]="MissingDeclaration",r[r.ExternalModuleReference=252]="ExternalModuleReference",r[r.JsxElement=253]="JsxElement",r[r.JsxSelfClosingElement=254]="JsxSelfClosingElement",r[r.JsxOpeningElement=255]="JsxOpeningElement",r[r.JsxClosingElement=256]="JsxClosingElement",r[r.JsxFragment=257]="JsxFragment",r[r.JsxOpeningFragment=258]="JsxOpeningFragment",r[r.JsxClosingFragment=259]="JsxClosingFragment",r[r.JsxAttribute=260]="JsxAttribute",r[r.JsxAttributes=261]="JsxAttributes",r[r.JsxSpreadAttribute=262]="JsxSpreadAttribute",r[r.JsxExpression=263]="JsxExpression",r[r.CaseClause=264]="CaseClause",r[r.DefaultClause=265]="DefaultClause",r[r.HeritageClause=266]="HeritageClause",r[r.CatchClause=267]="CatchClause",r[r.PropertyAssignment=268]="PropertyAssignment",r[r.ShorthandPropertyAssignment=269]="ShorthandPropertyAssignment",r[r.SpreadAssignment=270]="SpreadAssignment",r[r.EnumMember=271]="EnumMember",r[r.SourceFile=272]="SourceFile",r[r.Bundle=273]="Bundle",r[r.JSDocTypeExpression=274]="JSDocTypeExpression",r[r.JSDocAllType=275]="JSDocAllType",r[r.JSDocUnknownType=276]="JSDocUnknownType",r[r.JSDocNullableType=277]="JSDocNullableType",r[r.JSDocNonNullableType=278]="JSDocNonNullableType",r[r.JSDocOptionalType=279]="JSDocOptionalType",r[r.JSDocFunctionType=280]="JSDocFunctionType",r[r.JSDocVariadicType=281]="JSDocVariadicType",r[r.JSDocComment=282]="JSDocComment",r[r.JSDocTypeLiteral=283]="JSDocTypeLiteral",r[r.JSDocTag=284]="JSDocTag",r[r.JSDocAugmentsTag=285]="JSDocAugmentsTag",r[r.JSDocClassTag=286]="JSDocClassTag",r[r.JSDocParameterTag=287]="JSDocParameterTag",r[r.JSDocReturnTag=288]="JSDocReturnTag",r[r.JSDocTypeTag=289]="JSDocTypeTag",r[r.JSDocTemplateTag=290]="JSDocTemplateTag",r[r.JSDocTypedefTag=291]="JSDocTypedefTag",r[r.JSDocPropertyTag=292]="JSDocPropertyTag",r[r.SyntaxList=293]="SyntaxList",r[r.NotEmittedStatement=294]="NotEmittedStatement",r[r.PartiallyEmittedExpression=295]="PartiallyEmittedExpression",r[r.CommaListExpression=296]="CommaListExpression",r[r.MergeDeclarationMarker=297]="MergeDeclarationMarker",r[r.EndOfDeclarationMarker=298]="EndOfDeclarationMarker",r[r.Count=299]="Count",r[r.FirstAssignment=58]="FirstAssignment",r[r.LastAssignment=70]="LastAssignment",r[r.FirstCompoundAssignment=59]="FirstCompoundAssignment",r[r.LastCompoundAssignment=70]="LastCompoundAssignment",r[r.FirstReservedWord=72]="FirstReservedWord",r[r.LastReservedWord=107]="LastReservedWord",r[r.FirstKeyword=72]="FirstKeyword",r[r.LastKeyword=144]="LastKeyword",r[r.FirstFutureReservedWord=108]="FirstFutureReservedWord",r[r.LastFutureReservedWord=116]="LastFutureReservedWord",r[r.FirstTypeNode=160]="FirstTypeNode",r[r.LastTypeNode=177]="LastTypeNode",r[r.FirstPunctuation=17]="FirstPunctuation",r[r.LastPunctuation=70]="LastPunctuation",r[r.FirstToken=0]="FirstToken",r[r.LastToken=144]="LastToken",r[r.FirstTriviaToken=2]="FirstTriviaToken",r[r.LastTriviaToken=7]="LastTriviaToken",r[r.FirstLiteralToken=8]="FirstLiteralToken",r[r.LastLiteralToken=13]="LastLiteralToken",r[r.FirstTemplateToken=13]="FirstTemplateToken",r[r.LastTemplateToken=16]="LastTemplateToken",r[r.FirstBinaryOperator=27]="FirstBinaryOperator",r[r.LastBinaryOperator=70]="LastBinaryOperator",r[r.FirstNode=145]="FirstNode",r[r.FirstJSDocNode=274]="FirstJSDocNode",r[r.LastJSDocNode=292]="LastJSDocNode",r[r.FirstJSDocTagNode=284]="FirstJSDocTagNode",r[r.LastJSDocTagNode=292]="LastJSDocTagNode",r[r.FirstContextualKeyword=117]="FirstContextualKeyword",r[r.LastContextualKeyword=144]="LastContextualKeyword",(n=e.NodeFlags||(e.NodeFlags={}))[n.None=0]="None",n[n.Let=1]="Let",n[n.Const=2]="Const",n[n.NestedNamespace=4]="NestedNamespace",n[n.Synthesized=8]="Synthesized",n[n.Namespace=16]="Namespace",n[n.ExportContext=32]="ExportContext",n[n.ContainsThis=64]="ContainsThis",n[n.HasImplicitReturn=128]="HasImplicitReturn",n[n.HasExplicitReturn=256]="HasExplicitReturn",n[n.GlobalAugmentation=512]="GlobalAugmentation",n[n.HasAsyncFunctions=1024]="HasAsyncFunctions",n[n.DisallowInContext=2048]="DisallowInContext",n[n.YieldContext=4096]="YieldContext",n[n.DecoratorContext=8192]="DecoratorContext",n[n.AwaitContext=16384]="AwaitContext",n[n.ThisNodeHasError=32768]="ThisNodeHasError",n[n.JavaScriptFile=65536]="JavaScriptFile",n[n.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",n[n.HasAggregatedChildData=262144]="HasAggregatedChildData",n[n.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",n[n.JSDoc=1048576]="JSDoc",n[n.Ambient=2097152]="Ambient",n[n.InWithStatement=4194304]="InWithStatement",n[n.BlockScoped=3]="BlockScoped",n[n.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",n[n.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",n[n.ContextFlags=6387712]="ContextFlags",n[n.TypeExcludesFlags=20480]="TypeExcludesFlags",(a=e.ModifierFlags||(e.ModifierFlags={}))[a.None=0]="None",a[a.Export=1]="Export",a[a.Ambient=2]="Ambient",a[a.Public=4]="Public",a[a.Private=8]="Private",a[a.Protected=16]="Protected",a[a.Static=32]="Static",a[a.Readonly=64]="Readonly",a[a.Abstract=128]="Abstract",a[a.Async=256]="Async",a[a.Default=512]="Default",a[a.Const=2048]="Const",a[a.HasComputedFlags=536870912]="HasComputedFlags",a[a.AccessibilityModifier=28]="AccessibilityModifier",a[a.ParameterPropertyModifier=92]="ParameterPropertyModifier",a[a.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",a[a.TypeScriptModifier=2270]="TypeScriptModifier",a[a.ExportDefault=513]="ExportDefault",(i=e.JsxFlags||(e.JsxFlags={}))[i.None=0]="None",i[i.IntrinsicNamedElement=1]="IntrinsicNamedElement",i[i.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",i[i.IntrinsicElement=3]="IntrinsicElement",(o=e.RelationComparisonResult||(e.RelationComparisonResult={}))[o.Succeeded=1]="Succeeded",o[o.Failed=2]="Failed",o[o.FailedAndReported=3]="FailedAndReported",(s=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[s.None=0]="None",s[s.Auto=1]="Auto",s[s.Loop=2]="Loop",s[s.Unique=3]="Unique",s[s.Node=4]="Node",s[s.KindMask=7]="KindMask",s[s.SkipNameGenerationScope=8]="SkipNameGenerationScope",s[s.ReservedInNestedScopes=16]="ReservedInNestedScopes",(c=e.TokenFlags||(e.TokenFlags={}))[c.None=0]="None",c[c.PrecedingLineBreak=1]="PrecedingLineBreak",c[c.PrecedingJSDocComment=2]="PrecedingJSDocComment",c[c.Unterminated=4]="Unterminated",c[c.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",c[c.Scientific=16]="Scientific",c[c.Octal=32]="Octal",c[c.HexSpecifier=64]="HexSpecifier",c[c.BinarySpecifier=128]="BinarySpecifier",c[c.OctalSpecifier=256]="OctalSpecifier",c[c.ContainsSeparator=512]="ContainsSeparator",c[c.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",c[c.NumericLiteralFlags=1008]="NumericLiteralFlags",(u=e.FlowFlags||(e.FlowFlags={}))[u.Unreachable=1]="Unreachable",u[u.Start=2]="Start",u[u.BranchLabel=4]="BranchLabel",u[u.LoopLabel=8]="LoopLabel",u[u.Assignment=16]="Assignment",u[u.TrueCondition=32]="TrueCondition",u[u.FalseCondition=64]="FalseCondition",u[u.SwitchClause=128]="SwitchClause",u[u.ArrayMutation=256]="ArrayMutation",u[u.Referenced=512]="Referenced",u[u.Shared=1024]="Shared",u[u.PreFinally=2048]="PreFinally",u[u.AfterFinally=4096]="AfterFinally",u[u.Label=12]="Label",u[u.Condition=96]="Condition";var _,l,d,p,f,m,g,y,v,h,b,x,k,D,S,C,T,E,N,A,P,F,w,I,O,M,L,R,B,z,J,j,K,U,q,V,W,H,G,X,Q,Y,Z,$=function(){};e.OperationCanceledException=$,(_=e.StructureIsReused||(e.StructureIsReused={}))[_.Not=0]="Not",_[_.SafeModules=1]="SafeModules",_[_.Completely=2]="Completely",(l=e.ExitStatus||(e.ExitStatus={}))[l.Success=0]="Success",l[l.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",l[l.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",(d=e.UnionReduction||(e.UnionReduction={}))[d.None=0]="None",d[d.Literal=1]="Literal",d[d.Subtype=2]="Subtype",(p=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[p.None=0]="None",p[p.NoTruncation=1]="NoTruncation",p[p.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",p[p.UseStructuralFallback=8]="UseStructuralFallback",p[p.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",p[p.UseFullyQualifiedType=64]="UseFullyQualifiedType",p[p.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",p[p.SuppressAnyReturnType=256]="SuppressAnyReturnType",p[p.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",p[p.MultilineObjectLiterals=1024]="MultilineObjectLiterals",p[p.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",p[p.UseTypeOfFunction=4096]="UseTypeOfFunction",p[p.OmitParameterModifiers=8192]="OmitParameterModifiers",p[p.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",p[p.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",p[p.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",p[p.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",p[p.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",p[p.AllowEmptyTuple=524288]="AllowEmptyTuple",p[p.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",p[p.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",p[p.IgnoreErrors=3112960]="IgnoreErrors",p[p.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",p[p.InTypeAlias=8388608]="InTypeAlias",p[p.InInitialEntityName=16777216]="InInitialEntityName",p[p.InReverseMappedType=33554432]="InReverseMappedType",(f=e.TypeFormatFlags||(e.TypeFormatFlags={}))[f.None=0]="None",f[f.NoTruncation=1]="NoTruncation",f[f.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",f[f.UseStructuralFallback=8]="UseStructuralFallback",f[f.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",f[f.UseFullyQualifiedType=64]="UseFullyQualifiedType",f[f.SuppressAnyReturnType=256]="SuppressAnyReturnType",f[f.MultilineObjectLiterals=1024]="MultilineObjectLiterals",f[f.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",f[f.UseTypeOfFunction=4096]="UseTypeOfFunction",f[f.OmitParameterModifiers=8192]="OmitParameterModifiers",f[f.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",f[f.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",f[f.AddUndefined=131072]="AddUndefined",f[f.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",f[f.InArrayType=524288]="InArrayType",f[f.InElementType=2097152]="InElementType",f[f.InFirstTypeArgument=4194304]="InFirstTypeArgument",f[f.InTypeAlias=8388608]="InTypeAlias",f[f.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",f[f.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask",(m=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[m.None=0]="None",m[m.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",m[m.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",m[m.AllowAnyNodeKind=4]="AllowAnyNodeKind",m[m.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",(g=e.SymbolAccessibility||(e.SymbolAccessibility={}))[g.Accessible=0]="Accessible",g[g.NotAccessible=1]="NotAccessible",g[g.CannotBeNamed=2]="CannotBeNamed",(y=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[y.UnionOrIntersection=0]="UnionOrIntersection",y[y.Spread=1]="Spread",(v=e.TypePredicateKind||(e.TypePredicateKind={}))[v.This=0]="This",v[v.Identifier=1]="Identifier",(h=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[h.Unknown=0]="Unknown",h[h.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",h[h.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",h[h.NumberLikeType=3]="NumberLikeType",h[h.StringLikeType=4]="StringLikeType",h[h.BooleanType=5]="BooleanType",h[h.ArrayLikeType=6]="ArrayLikeType",h[h.ESSymbolType=7]="ESSymbolType",h[h.Promise=8]="Promise",h[h.TypeWithCallSignature=9]="TypeWithCallSignature",h[h.ObjectType=10]="ObjectType",(b=e.SymbolFlags||(e.SymbolFlags={}))[b.None=0]="None",b[b.FunctionScopedVariable=1]="FunctionScopedVariable",b[b.BlockScopedVariable=2]="BlockScopedVariable",b[b.Property=4]="Property",b[b.EnumMember=8]="EnumMember",b[b.Function=16]="Function",b[b.Class=32]="Class",b[b.Interface=64]="Interface",b[b.ConstEnum=128]="ConstEnum",b[b.RegularEnum=256]="RegularEnum",b[b.ValueModule=512]="ValueModule",b[b.NamespaceModule=1024]="NamespaceModule",b[b.TypeLiteral=2048]="TypeLiteral",b[b.ObjectLiteral=4096]="ObjectLiteral",b[b.Method=8192]="Method",b[b.Constructor=16384]="Constructor",b[b.GetAccessor=32768]="GetAccessor",b[b.SetAccessor=65536]="SetAccessor",b[b.Signature=131072]="Signature",b[b.TypeParameter=262144]="TypeParameter",b[b.TypeAlias=524288]="TypeAlias",b[b.ExportValue=1048576]="ExportValue",b[b.Alias=2097152]="Alias",b[b.Prototype=4194304]="Prototype",b[b.ExportStar=8388608]="ExportStar",b[b.Optional=16777216]="Optional",b[b.Transient=33554432]="Transient",b[b.JSContainer=67108864]="JSContainer",b[b.All=67108863]="All",b[b.Enum=384]="Enum",b[b.Variable=3]="Variable",b[b.Value=67216319]="Value",b[b.Type=67901928]="Type",b[b.Namespace=1920]="Namespace",b[b.Module=1536]="Module",b[b.Accessor=98304]="Accessor",b[b.FunctionScopedVariableExcludes=67216318]="FunctionScopedVariableExcludes",b[b.BlockScopedVariableExcludes=67216319]="BlockScopedVariableExcludes",b[b.ParameterExcludes=67216319]="ParameterExcludes",b[b.PropertyExcludes=0]="PropertyExcludes",b[b.EnumMemberExcludes=68008959]="EnumMemberExcludes",b[b.FunctionExcludes=67215791]="FunctionExcludes",b[b.ClassExcludes=68008383]="ClassExcludes",b[b.InterfaceExcludes=67901832]="InterfaceExcludes",b[b.RegularEnumExcludes=68008191]="RegularEnumExcludes",b[b.ConstEnumExcludes=68008831]="ConstEnumExcludes",b[b.ValueModuleExcludes=67215503]="ValueModuleExcludes",b[b.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",b[b.MethodExcludes=67208127]="MethodExcludes",b[b.GetAccessorExcludes=67150783]="GetAccessorExcludes",b[b.SetAccessorExcludes=67183551]="SetAccessorExcludes",b[b.TypeParameterExcludes=67639784]="TypeParameterExcludes",b[b.TypeAliasExcludes=67901928]="TypeAliasExcludes",b[b.AliasExcludes=2097152]="AliasExcludes",b[b.ModuleMember=2623475]="ModuleMember",b[b.ExportHasLocal=944]="ExportHasLocal",b[b.HasExports=1952]="HasExports",b[b.HasMembers=6240]="HasMembers",b[b.BlockScoped=418]="BlockScoped",b[b.PropertyOrAccessor=98308]="PropertyOrAccessor",b[b.ClassMember=106500]="ClassMember",b[b.Classifiable=2885600]="Classifiable",b[b.LateBindingContainer=6240]="LateBindingContainer",(x=e.EnumKind||(e.EnumKind={}))[x.Numeric=0]="Numeric",x[x.Literal=1]="Literal",(k=e.CheckFlags||(e.CheckFlags={}))[k.Instantiated=1]="Instantiated",k[k.SyntheticProperty=2]="SyntheticProperty",k[k.SyntheticMethod=4]="SyntheticMethod",k[k.Readonly=8]="Readonly",k[k.Partial=16]="Partial",k[k.HasNonUniformType=32]="HasNonUniformType",k[k.ContainsPublic=64]="ContainsPublic",k[k.ContainsProtected=128]="ContainsProtected",k[k.ContainsPrivate=256]="ContainsPrivate",k[k.ContainsStatic=512]="ContainsStatic",k[k.Late=1024]="Late",k[k.ReverseMapped=2048]="ReverseMapped",k[k.Synthetic=6]="Synthetic",(D=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",D.Constructor="__constructor",D.New="__new",D.Index="__index",D.ExportStar="__export",D.Global="__global",D.Missing="__missing",D.Type="__type",D.Object="__object",D.JSXAttributes="__jsxAttributes",D.Class="__class",D.Function="__function",D.Computed="__computed",D.Resolving="__resolving__",D.ExportEquals="export=",D.Default="default",(S=e.NodeCheckFlags||(e.NodeCheckFlags={}))[S.TypeChecked=1]="TypeChecked",S[S.LexicalThis=2]="LexicalThis",S[S.CaptureThis=4]="CaptureThis",S[S.CaptureNewTarget=8]="CaptureNewTarget",S[S.SuperInstance=256]="SuperInstance",S[S.SuperStatic=512]="SuperStatic",S[S.ContextChecked=1024]="ContextChecked",S[S.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",S[S.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",S[S.CaptureArguments=8192]="CaptureArguments",S[S.EnumValuesComputed=16384]="EnumValuesComputed",S[S.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",S[S.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",S[S.CapturedBlockScopedBinding=131072]="CapturedBlockScopedBinding",S[S.BlockScopedBindingInLoop=262144]="BlockScopedBindingInLoop",S[S.ClassWithBodyScopedClassBinding=524288]="ClassWithBodyScopedClassBinding",S[S.BodyScopedClassBinding=1048576]="BodyScopedClassBinding",S[S.NeedsLoopOutParameter=2097152]="NeedsLoopOutParameter",S[S.AssignmentsMarked=4194304]="AssignmentsMarked",S[S.ClassWithConstructorReference=8388608]="ClassWithConstructorReference",S[S.ConstructorReferenceInClass=16777216]="ConstructorReferenceInClass",(C=e.TypeFlags||(e.TypeFlags={}))[C.Any=1]="Any",C[C.String=2]="String",C[C.Number=4]="Number",C[C.Boolean=8]="Boolean",C[C.Enum=16]="Enum",C[C.StringLiteral=32]="StringLiteral",C[C.NumberLiteral=64]="NumberLiteral",C[C.BooleanLiteral=128]="BooleanLiteral",C[C.EnumLiteral=256]="EnumLiteral",C[C.ESSymbol=512]="ESSymbol",C[C.UniqueESSymbol=1024]="UniqueESSymbol",C[C.Void=2048]="Void",C[C.Undefined=4096]="Undefined",C[C.Null=8192]="Null",C[C.Never=16384]="Never",C[C.TypeParameter=32768]="TypeParameter",C[C.Object=65536]="Object",C[C.Union=131072]="Union",C[C.Intersection=262144]="Intersection",C[C.Index=524288]="Index",C[C.IndexedAccess=1048576]="IndexedAccess",C[C.Conditional=2097152]="Conditional",C[C.Substitution=4194304]="Substitution",C[C.FreshLiteral=8388608]="FreshLiteral",C[C.ContainsWideningType=16777216]="ContainsWideningType",C[C.ContainsObjectLiteral=33554432]="ContainsObjectLiteral",C[C.ContainsAnyFunctionType=67108864]="ContainsAnyFunctionType",C[C.NonPrimitive=134217728]="NonPrimitive",C[C.GenericMappedType=536870912]="GenericMappedType",C[C.Nullable=12288]="Nullable",C[C.Literal=224]="Literal",C[C.Unit=13536]="Unit",C[C.StringOrNumberLiteral=96]="StringOrNumberLiteral",C[C.StringOrNumberLiteralOrUnique=1120]="StringOrNumberLiteralOrUnique",C[C.DefinitelyFalsy=14560]="DefinitelyFalsy",C[C.PossiblyFalsy=14574]="PossiblyFalsy",C[C.Intrinsic=134249103]="Intrinsic",C[C.Primitive=16382]="Primitive",C[C.StringLike=524322]="StringLike",C[C.NumberLike=84]="NumberLike",C[C.BooleanLike=136]="BooleanLike",C[C.EnumLike=272]="EnumLike",C[C.ESSymbolLike=1536]="ESSymbolLike",C[C.UnionOrIntersection=393216]="UnionOrIntersection",C[C.StructuredType=458752]="StructuredType",C[C.TypeVariable=1081344]="TypeVariable",C[C.InstantiableNonPrimitive=7372800]="InstantiableNonPrimitive",C[C.InstantiablePrimitive=524288]="InstantiablePrimitive",C[C.Instantiable=7897088]="Instantiable",C[C.StructuredOrInstantiable=8355840]="StructuredOrInstantiable",C[C.Narrowable=142575359]="Narrowable",C[C.NotUnionOrUnit=134283777]="NotUnionOrUnit",C[C.RequiresWidening=50331648]="RequiresWidening",C[C.PropagatingFlags=117440512]="PropagatingFlags",(T=e.ObjectFlags||(e.ObjectFlags={}))[T.Class=1]="Class",T[T.Interface=2]="Interface",T[T.Reference=4]="Reference",T[T.Tuple=8]="Tuple",T[T.Anonymous=16]="Anonymous",T[T.Mapped=32]="Mapped",T[T.Instantiated=64]="Instantiated",T[T.ObjectLiteral=128]="ObjectLiteral",T[T.EvolvingArray=256]="EvolvingArray",T[T.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",T[T.ContainsSpread=1024]="ContainsSpread",T[T.ReverseMapped=2048]="ReverseMapped",T[T.JsxAttributes=4096]="JsxAttributes",T[T.MarkerType=8192]="MarkerType",T[T.ClassOrInterface=3]="ClassOrInterface",(E=e.Variance||(e.Variance={}))[E.Invariant=0]="Invariant",E[E.Covariant=1]="Covariant",E[E.Contravariant=2]="Contravariant",E[E.Bivariant=3]="Bivariant",E[E.Independent=4]="Independent",(N=e.SignatureKind||(e.SignatureKind={}))[N.Call=0]="Call",N[N.Construct=1]="Construct",(A=e.IndexKind||(e.IndexKind={}))[A.String=0]="String",A[A.Number=1]="Number",(P=e.InferencePriority||(e.InferencePriority={}))[P.NakedTypeVariable=1]="NakedTypeVariable",P[P.HomomorphicMappedType=2]="HomomorphicMappedType",P[P.MappedTypeConstraint=4]="MappedTypeConstraint",P[P.ReturnType=8]="ReturnType",P[P.LiteralKeyof=16]="LiteralKeyof",P[P.NoConstraints=32]="NoConstraints",P[P.AlwaysStrict=64]="AlwaysStrict",P[P.PriorityImpliesCombination=28]="PriorityImpliesCombination",(F=e.InferenceFlags||(e.InferenceFlags={}))[F.None=0]="None",F[F.InferUnionTypes=1]="InferUnionTypes",F[F.NoDefault=2]="NoDefault",F[F.AnyDefault=4]="AnyDefault",(w=e.Ternary||(e.Ternary={}))[w.False=0]="False",w[w.Maybe=1]="Maybe",w[w.True=-1]="True",(I=e.SpecialPropertyAssignmentKind||(e.SpecialPropertyAssignmentKind={}))[I.None=0]="None",I[I.ExportsProperty=1]="ExportsProperty",I[I.ModuleExports=2]="ModuleExports",I[I.PrototypeProperty=3]="PrototypeProperty",I[I.ThisProperty=4]="ThisProperty",I[I.Property=5]="Property",I[I.Prototype=6]="Prototype",(M=O=e.DiagnosticCategory||(e.DiagnosticCategory={}))[M.Warning=0]="Warning",M[M.Error=1]="Error",M[M.Suggestion=2]="Suggestion",M[M.Message=3]="Message",e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=O[e.category];return t?r.toLowerCase():r},(L=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[L.Classic=1]="Classic",L[L.NodeJs=2]="NodeJs",(R=e.ModuleKind||(e.ModuleKind={}))[R.None=0]="None",R[R.CommonJS=1]="CommonJS",R[R.AMD=2]="AMD",R[R.UMD=3]="UMD",R[R.System=4]="System",R[R.ES2015=5]="ES2015",R[R.ESNext=6]="ESNext",(B=e.JsxEmit||(e.JsxEmit={}))[B.None=0]="None",B[B.Preserve=1]="Preserve",B[B.React=2]="React",B[B.ReactNative=3]="ReactNative",(z=e.NewLineKind||(e.NewLineKind={}))[z.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",z[z.LineFeed=1]="LineFeed",(J=e.ScriptKind||(e.ScriptKind={}))[J.Unknown=0]="Unknown",J[J.JS=1]="JS",J[J.JSX=2]="JSX",J[J.TS=3]="TS",J[J.TSX=4]="TSX",J[J.External=5]="External",J[J.JSON=6]="JSON",(j=e.ScriptTarget||(e.ScriptTarget={}))[j.ES3=0]="ES3",j[j.ES5=1]="ES5",j[j.ES2015=2]="ES2015",j[j.ES2016=3]="ES2016",j[j.ES2017=4]="ES2017",j[j.ES2018=5]="ES2018",j[j.ESNext=6]="ESNext",j[j.Latest=6]="Latest",(K=e.LanguageVariant||(e.LanguageVariant={}))[K.Standard=0]="Standard",K[K.JSX=1]="JSX",(U=e.DiagnosticStyle||(e.DiagnosticStyle={}))[U.Simple=0]="Simple",U[U.Pretty=1]="Pretty",(q=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[q.None=0]="None",q[q.Recursive=1]="Recursive",(V=e.CharacterCodes||(e.CharacterCodes={}))[V.nullCharacter=0]="nullCharacter",V[V.maxAsciiCharacter=127]="maxAsciiCharacter",V[V.lineFeed=10]="lineFeed",V[V.carriageReturn=13]="carriageReturn",V[V.lineSeparator=8232]="lineSeparator",V[V.paragraphSeparator=8233]="paragraphSeparator",V[V.nextLine=133]="nextLine",V[V.space=32]="space",V[V.nonBreakingSpace=160]="nonBreakingSpace",V[V.enQuad=8192]="enQuad",V[V.emQuad=8193]="emQuad",V[V.enSpace=8194]="enSpace",V[V.emSpace=8195]="emSpace",V[V.threePerEmSpace=8196]="threePerEmSpace",V[V.fourPerEmSpace=8197]="fourPerEmSpace",V[V.sixPerEmSpace=8198]="sixPerEmSpace",V[V.figureSpace=8199]="figureSpace",V[V.punctuationSpace=8200]="punctuationSpace",V[V.thinSpace=8201]="thinSpace",V[V.hairSpace=8202]="hairSpace",V[V.zeroWidthSpace=8203]="zeroWidthSpace",V[V.narrowNoBreakSpace=8239]="narrowNoBreakSpace",V[V.ideographicSpace=12288]="ideographicSpace",V[V.mathematicalSpace=8287]="mathematicalSpace",V[V.ogham=5760]="ogham",V[V._=95]="_",V[V.$=36]="$",V[V._0=48]="_0",V[V._1=49]="_1",V[V._2=50]="_2",V[V._3=51]="_3",V[V._4=52]="_4",V[V._5=53]="_5",V[V._6=54]="_6",V[V._7=55]="_7",V[V._8=56]="_8",V[V._9=57]="_9",V[V.a=97]="a",V[V.b=98]="b",V[V.c=99]="c",V[V.d=100]="d",V[V.e=101]="e",V[V.f=102]="f",V[V.g=103]="g",V[V.h=104]="h",V[V.i=105]="i",V[V.j=106]="j",V[V.k=107]="k",V[V.l=108]="l",V[V.m=109]="m",V[V.n=110]="n",V[V.o=111]="o",V[V.p=112]="p",V[V.q=113]="q",V[V.r=114]="r",V[V.s=115]="s",V[V.t=116]="t",V[V.u=117]="u",V[V.v=118]="v",V[V.w=119]="w",V[V.x=120]="x",V[V.y=121]="y",V[V.z=122]="z",V[V.A=65]="A",V[V.B=66]="B",V[V.C=67]="C",V[V.D=68]="D",V[V.E=69]="E",V[V.F=70]="F",V[V.G=71]="G",V[V.H=72]="H",V[V.I=73]="I",V[V.J=74]="J",V[V.K=75]="K",V[V.L=76]="L",V[V.M=77]="M",V[V.N=78]="N",V[V.O=79]="O",V[V.P=80]="P",V[V.Q=81]="Q",V[V.R=82]="R",V[V.S=83]="S",V[V.T=84]="T",V[V.U=85]="U",V[V.V=86]="V",V[V.W=87]="W",V[V.X=88]="X",V[V.Y=89]="Y",V[V.Z=90]="Z",V[V.ampersand=38]="ampersand",V[V.asterisk=42]="asterisk",V[V.at=64]="at",V[V.backslash=92]="backslash",V[V.backtick=96]="backtick",V[V.bar=124]="bar",V[V.caret=94]="caret",V[V.closeBrace=125]="closeBrace",V[V.closeBracket=93]="closeBracket",V[V.closeParen=41]="closeParen",V[V.colon=58]="colon",V[V.comma=44]="comma",V[V.dot=46]="dot",V[V.doubleQuote=34]="doubleQuote",V[V.equals=61]="equals",V[V.exclamation=33]="exclamation",V[V.greaterThan=62]="greaterThan",V[V.hash=35]="hash",V[V.lessThan=60]="lessThan",V[V.minus=45]="minus",V[V.openBrace=123]="openBrace",V[V.openBracket=91]="openBracket",V[V.openParen=40]="openParen",V[V.percent=37]="percent",V[V.plus=43]="plus",V[V.question=63]="question",V[V.semicolon=59]="semicolon",V[V.singleQuote=39]="singleQuote",V[V.slash=47]="slash",V[V.tilde=126]="tilde",V[V.backspace=8]="backspace",V[V.formFeed=12]="formFeed",V[V.byteOrderMark=65279]="byteOrderMark",V[V.tab=9]="tab",V[V.verticalTab=11]="verticalTab",(W=e.Extension||(e.Extension={})).Ts=".ts",W.Tsx=".tsx",W.Dts=".d.ts",W.Js=".js",W.Jsx=".jsx",W.Json=".json",(H=e.TransformFlags||(e.TransformFlags={}))[H.None=0]="None",H[H.TypeScript=1]="TypeScript",H[H.ContainsTypeScript=2]="ContainsTypeScript",H[H.ContainsJsx=4]="ContainsJsx",H[H.ContainsESNext=8]="ContainsESNext",H[H.ContainsES2017=16]="ContainsES2017",H[H.ContainsES2016=32]="ContainsES2016",H[H.ES2015=64]="ES2015",H[H.ContainsES2015=128]="ContainsES2015",H[H.Generator=256]="Generator",H[H.ContainsGenerator=512]="ContainsGenerator",H[H.DestructuringAssignment=1024]="DestructuringAssignment",H[H.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",H[H.ContainsDecorators=4096]="ContainsDecorators",H[H.ContainsPropertyInitializer=8192]="ContainsPropertyInitializer",H[H.ContainsLexicalThis=16384]="ContainsLexicalThis",H[H.ContainsCapturedLexicalThis=32768]="ContainsCapturedLexicalThis",H[H.ContainsLexicalThisInComputedPropertyName=65536]="ContainsLexicalThisInComputedPropertyName",H[H.ContainsDefaultValueAssignments=131072]="ContainsDefaultValueAssignments",H[H.ContainsParameterPropertyAssignments=262144]="ContainsParameterPropertyAssignments",H[H.ContainsSpread=524288]="ContainsSpread",H[H.ContainsObjectSpread=1048576]="ContainsObjectSpread",H[H.ContainsRest=524288]="ContainsRest",H[H.ContainsObjectRest=1048576]="ContainsObjectRest",H[H.ContainsComputedPropertyName=2097152]="ContainsComputedPropertyName",H[H.ContainsBlockScopedBinding=4194304]="ContainsBlockScopedBinding",H[H.ContainsBindingPattern=8388608]="ContainsBindingPattern",H[H.ContainsYield=16777216]="ContainsYield",H[H.ContainsHoistedDeclarationOrCompletion=33554432]="ContainsHoistedDeclarationOrCompletion",H[H.ContainsDynamicImport=67108864]="ContainsDynamicImport",H[H.Super=134217728]="Super",H[H.ContainsSuper=268435456]="ContainsSuper",H[H.HasComputedFlags=536870912]="HasComputedFlags",H[H.AssertTypeScript=3]="AssertTypeScript",H[H.AssertJsx=4]="AssertJsx",H[H.AssertESNext=8]="AssertESNext",H[H.AssertES2017=16]="AssertES2017",H[H.AssertES2016=32]="AssertES2016",H[H.AssertES2015=192]="AssertES2015",H[H.AssertGenerator=768]="AssertGenerator",H[H.AssertDestructuringAssignment=3072]="AssertDestructuringAssignment",H[H.OuterExpressionExcludes=536872257]="OuterExpressionExcludes",H[H.PropertyAccessExcludes=671089985]="PropertyAccessExcludes",H[H.NodeExcludes=939525441]="NodeExcludes",H[H.ArrowFunctionExcludes=1003902273]="ArrowFunctionExcludes",H[H.FunctionExcludes=1003935041]="FunctionExcludes",H[H.ConstructorExcludes=1003668801]="ConstructorExcludes",H[H.MethodOrAccessorExcludes=1003668801]="MethodOrAccessorExcludes",H[H.ClassExcludes=942011713]="ClassExcludes",H[H.ModuleExcludes=977327425]="ModuleExcludes",H[H.TypeExcludes=-3]="TypeExcludes",H[H.ObjectLiteralExcludes=942740801]="ObjectLiteralExcludes",H[H.ArrayLiteralOrCallOrNewExcludes=940049729]="ArrayLiteralOrCallOrNewExcludes",H[H.VariableDeclarationListExcludes=948962625]="VariableDeclarationListExcludes",H[H.ParameterExcludes=939525441]="ParameterExcludes",H[H.CatchClauseExcludes=940574017]="CatchClauseExcludes",H[H.BindingPatternExcludes=940049729]="BindingPatternExcludes",H[H.TypeScriptClassSyntaxMask=274432]="TypeScriptClassSyntaxMask",H[H.ES2015FunctionSyntaxMask=163840]="ES2015FunctionSyntaxMask",(G=e.EmitFlags||(e.EmitFlags={}))[G.SingleLine=1]="SingleLine",G[G.AdviseOnEmitNode=2]="AdviseOnEmitNode",G[G.NoSubstitution=4]="NoSubstitution",G[G.CapturesThis=8]="CapturesThis",G[G.NoLeadingSourceMap=16]="NoLeadingSourceMap",G[G.NoTrailingSourceMap=32]="NoTrailingSourceMap",G[G.NoSourceMap=48]="NoSourceMap",G[G.NoNestedSourceMaps=64]="NoNestedSourceMaps",G[G.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",G[G.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",G[G.NoTokenSourceMaps=384]="NoTokenSourceMaps",G[G.NoLeadingComments=512]="NoLeadingComments",G[G.NoTrailingComments=1024]="NoTrailingComments",G[G.NoComments=1536]="NoComments",G[G.NoNestedComments=2048]="NoNestedComments",G[G.HelperName=4096]="HelperName",G[G.ExportName=8192]="ExportName",G[G.LocalName=16384]="LocalName",G[G.InternalName=32768]="InternalName",G[G.Indented=65536]="Indented",G[G.NoIndentation=131072]="NoIndentation",G[G.AsyncFunctionBody=262144]="AsyncFunctionBody",G[G.ReuseTempVariableScope=524288]="ReuseTempVariableScope",G[G.CustomPrologue=1048576]="CustomPrologue",G[G.NoHoisting=2097152]="NoHoisting",G[G.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",G[G.Iterator=8388608]="Iterator",G[G.NoAsciiEscaping=16777216]="NoAsciiEscaping",G[G.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",G[G.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",(X=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[X.Extends=1]="Extends",X[X.Assign=2]="Assign",X[X.Rest=4]="Rest",X[X.Decorate=8]="Decorate",X[X.Metadata=16]="Metadata",X[X.Param=32]="Param",X[X.Awaiter=64]="Awaiter",X[X.Generator=128]="Generator",X[X.Values=256]="Values",X[X.Read=512]="Read",X[X.Spread=1024]="Spread",X[X.Await=2048]="Await",X[X.AsyncGenerator=4096]="AsyncGenerator",X[X.AsyncDelegator=8192]="AsyncDelegator",X[X.AsyncValues=16384]="AsyncValues",X[X.ExportStar=32768]="ExportStar",X[X.MakeTemplateObject=65536]="MakeTemplateObject",X[X.FirstEmitHelper=1]="FirstEmitHelper",X[X.LastEmitHelper=65536]="LastEmitHelper",X[X.ForOfIncludes=256]="ForOfIncludes",X[X.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",X[X.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",X[X.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",X[X.SpreadIncludes=1536]="SpreadIncludes",(Q=e.EmitHint||(e.EmitHint={}))[Q.SourceFile=0]="SourceFile",Q[Q.Expression=1]="Expression",Q[Q.IdentifierName=2]="IdentifierName",Q[Q.MappedTypeParameter=3]="MappedTypeParameter",Q[Q.Unspecified=4]="Unspecified",(Y=e.ListFormat||(e.ListFormat={}))[Y.None=0]="None",Y[Y.SingleLine=0]="SingleLine",Y[Y.MultiLine=1]="MultiLine",Y[Y.PreserveLines=2]="PreserveLines",Y[Y.LinesMask=3]="LinesMask",Y[Y.NotDelimited=0]="NotDelimited",Y[Y.BarDelimited=4]="BarDelimited",Y[Y.AmpersandDelimited=8]="AmpersandDelimited",Y[Y.CommaDelimited=16]="CommaDelimited",Y[Y.DelimitersMask=28]="DelimitersMask",Y[Y.AllowTrailingComma=32]="AllowTrailingComma",Y[Y.Indented=64]="Indented",Y[Y.SpaceBetweenBraces=128]="SpaceBetweenBraces",Y[Y.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",Y[Y.Braces=512]="Braces",Y[Y.Parenthesis=1024]="Parenthesis",Y[Y.AngleBrackets=2048]="AngleBrackets",Y[Y.SquareBrackets=4096]="SquareBrackets",Y[Y.BracketsMask=7680]="BracketsMask",Y[Y.OptionalIfUndefined=8192]="OptionalIfUndefined",Y[Y.OptionalIfEmpty=16384]="OptionalIfEmpty",Y[Y.Optional=24576]="Optional",Y[Y.PreferNewLine=32768]="PreferNewLine",Y[Y.NoTrailingNewLine=65536]="NoTrailingNewLine",Y[Y.NoInterveningComments=131072]="NoInterveningComments",Y[Y.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",Y[Y.SingleElement=524288]="SingleElement",Y[Y.Modifiers=131328]="Modifiers",Y[Y.HeritageClauses=256]="HeritageClauses",Y[Y.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",Y[Y.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",Y[Y.TupleTypeElements=336]="TupleTypeElements",Y[Y.UnionTypeConstituents=260]="UnionTypeConstituents",Y[Y.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",Y[Y.ObjectBindingPatternElements=262576]="ObjectBindingPatternElements",Y[Y.ArrayBindingPatternElements=262448]="ArrayBindingPatternElements",Y[Y.ObjectLiteralExpressionProperties=263122]="ObjectLiteralExpressionProperties",Y[Y.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",Y[Y.CommaListElements=272]="CommaListElements",Y[Y.CallExpressionArguments=1296]="CallExpressionArguments",Y[Y.NewExpressionArguments=9488]="NewExpressionArguments",Y[Y.TemplateExpressionSpans=131072]="TemplateExpressionSpans",Y[Y.SingleLineBlockStatements=384]="SingleLineBlockStatements",Y[Y.MultiLineBlockStatements=65]="MultiLineBlockStatements",Y[Y.VariableDeclarationList=272]="VariableDeclarationList",Y[Y.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",Y[Y.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",Y[Y.ClassHeritageClauses=256]="ClassHeritageClauses",Y[Y.ClassMembers=65]="ClassMembers",Y[Y.InterfaceMembers=65]="InterfaceMembers",Y[Y.EnumMembers=81]="EnumMembers",Y[Y.CaseBlockClauses=65]="CaseBlockClauses",Y[Y.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",Y[Y.JsxElementOrFragmentChildren=131072]="JsxElementOrFragmentChildren",Y[Y.JsxElementAttributes=131328]="JsxElementAttributes",Y[Y.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",Y[Y.HeritageClauseTypes=272]="HeritageClauseTypes",Y[Y.SourceFileStatements=65537]="SourceFileStatements",Y[Y.Decorators=24577]="Decorators",Y[Y.TypeArguments=26896]="TypeArguments",Y[Y.TypeParameters=26896]="TypeParameters",Y[Y.Parameters=1296]="Parameters",Y[Y.IndexSignatureParameters=4432]="IndexSignatureParameters",(Z=e.PragmaKindFlags||(e.PragmaKindFlags={}))[Z.None=0]="None",Z[Z.TripleSlashXML=1]="TripleSlashXML",Z[Z.SingleLine=2]="SingleLine",Z[Z.MultiLine=4]="MultiLine",Z[Z.All=7]="All",Z[Z.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",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}}}(ts||(ts={})),(ts||(ts={})).timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date},function(i){var e,t,o,s,r,c,u;e=i.performance||(i.performance={}),r="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},c=!1,u=0,e.mark=function(e){c&&(o.set(e,i.timestamp()),t.set(e,(t.get(e)||0)+1),r(e))},e.measure=function(e,t,r){if(c){var n=r&&o.get(r)||i.timestamp(),a=t&&o.get(t)||u;s.set(e,(s.get(e)||0)+(n-a))}},e.getCount=function(e){return t&&t.get(e)||0},e.getDuration=function(e){return s&&s.get(e)||0},e.forEachMeasure=function(r){s.forEach(function(e,t){r(t,e)})},e.enable=function(){t=i.createMap(),o=i.createMap(),s=i.createMap(),c=!0,u=i.timestamp()},e.disable=function(){c=!1}}(ts||(ts={})),function(e){e.versionMajorMinor="2.8",e.version=e.versionMajorMinor+".1"}(ts||(ts={})),function(t){t.isExternalModuleNameRelative=function(e){return t.pathIsRelative(e)||t.isRootedDiskPath(e)},t.sortAndDeduplicateDiagnostics=function(e){return t.sortAndDeduplicate(e,t.compareDiagnostics)}}(ts||(ts={})),function(g){function t(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function s(){return new n}g.emptyArray=[],g.closeFileWatcher=function(e){e.close()},g.createMap=s,g.createUnderscoreEscapedMap=function(){return new n},g.createSymbolTable=function(e){var t=s();if(e)for(var r=0,n=e;r<n.length;r++){var a=n[r];t.set(a.escapedName,a)}return t},g.createMapFromTemplate=function(e){var t=new n;for(var r in e)E.call(e,r)&&t.set(r,e[r]);return t};var r,n="undefined"!=typeof Map&&"entries"in Map.prototype?Map:(r=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e)}return e.prototype.next=function(){var e=this.index;return e<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[e]),done:!1}):{value:void 0,done:!0}},e}(),function(){function e(){this.data=t(),this.size=0}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.has(e)||this.size++,this.data[e]=t,this},e.prototype.has=function(e){return e in this.data},e.prototype.delete=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},e.prototype.clear=function(){this.data=t(),this.size=0},e.prototype.keys=function(){return new r(this.data,function(e,t){return t})},e.prototype.values=function(){return new r(this.data,function(e,t){return e[t]})},e.prototype.entries=function(){return new r(this.data,function(e,t){return[t,e[t]]})},e.prototype.forEach=function(e){for(var t in this.data)e(this.data[t],t)},e}());function e(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}}function p(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0}function a(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}}function x(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r))return r;return-1}function i(e,t,r){if(void 0===r&&(r=V),e)for(var n=0,a=e;n<a.length;n++){if(r(a[n],t))return!0}return!1}function o(e,t,r){for(var n=r||0;n<e.length;n++)if(i(t,e.charCodeAt(n)))return n;return-1}function c(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function l(e){var t;if(e){t=[];for(var r=0,n=e;r<n.length;r++){var a=n[r];a&&(R(a)?y(t,a):t.push(a))}}return t}function u(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++){var a=t(e[n],n);a&&(R(a)?y(r,a):r.push(a))}}return r}function _(e,t){if(e){if(!t)return 0<e.length;for(var r=0,n=e;r<n.length;r++){if(t(n[r]))return!0}}return!1}function d(e,t,r){return e?0===e.length?[]:1===e.length?e.slice():r?function(t,e,r){var n=t.map(function(e,t){return t});h(t,n,r);for(var a=t[n[0]],i=[n[0]],o=1;o<n.length;o++){var s=n[o],c=t[s];e(a,c)||(i.push(s),a=c)}return i.sort(),i.map(function(e){return t[e]})}(e,t,r):function(e,t){for(var r=[],n=0,a=e;n<a.length;n++)v(r,a[n],t);return r}(e,t):void 0}function f(e,t,r){if(void 0===r&&(r=V),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function m(e,t){return t<0?e.length+t:t}function y(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:m(t,r),n=void 0===n?t.length:m(t,n);for(var a=r;a<n&&a<t.length;a++)void 0!==t[a]&&e.push(t[a]);return e}function v(e,t,r){return!i(e,t,r)&&(e.push(t),!0)}function h(r,e,n){e.sort(function(e,t){return n(r[e],r[t])||X(e,t)})}function k(e,t){return e.slice().sort(t)}function b(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:e[++t-1],done:!1}}}}function D(e,t){if(e&&(t=m(e,t))<e.length)return e[t]}function S(e){return D(e,-1)}function C(e,t,r,n,a){if(!e||0===e.length)return-1;for(var i=a||0,o=e.length-1,s=r(t);i<=o;){var c=i+(o-i>>1);switch(n(r(e[c]),s)){case-1:i=c+1;break;case 0:return c;case 1:o=c-1}}return~i}function T(e,t,r,n,a){if(e&&0<e.length){var i=e.length;if(0<i){var o=void 0===n||n<0?0:n,s=void 0===a||i-1<o+a?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}g.toPath=function(e,t,r){return r(fe(e)?oe(e):ye(e,t))},g.length=function(e){return e?e.length:0},g.forEach=e,g.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},g.firstDefinedIterator=function(e,t){for(;;){var r=e.next(),n=r.value;if(r.done)return;var a=t(n);if(void 0!==a)return a}},g.findAncestor=function(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},g.zipWith=function(e,t,r){var n=[];Qe.assertEqual(e.length,t.length);for(var a=0;a<e.length;a++)n.push(r(e[a],t[a],a));return n},g.zipToIterator=function(e,t){Qe.assertEqual(e.length,t.length);var r=0;return{next:function(){return r===e.length?{value:void 0,done:!0}:{value:[e[++r-1],t[r-1]],done:!1}}}},g.zipToMap=function(e,t){Qe.assert(e.length===t.length);for(var r=s(),n=0;n<e.length;++n)r.set(e[n],t[n]);return r},g.every=p,g.find=a,g.findLast=function(e,t){for(var r=e.length-1;0<=r;r--){var n=e[r];if(t(n,r))return n}},g.findIndex=x,g.findMap=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}Qe.fail()},g.contains=i,g.arraysEqual=function(e,r,n){return void 0===n&&(n=V),e.length===r.length&&e.every(function(e,t){return n(e,r[t])})},g.indexOfAnyCharCode=o,g.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},g.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var a=e.slice(0,n);for(n++;n<r;){var i=e[n];t(i)&&a.push(i),n++}return a}}return e},g.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},g.clear=function(e){e.length=0},g.map=c,g.mapIterator=function(t,r){return{next:function(){var e=t.next();return e.done?e:{value:r(e.value),done:!1}}}},g.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],a=t(n,r);if(n!==a){var i=e.slice(0,r);for(i.push(a),r++;r<e.length;r++)i.push(t(e[r],r));return i}}return e},g.flatten=l,g.flatMap=u,g.flatMapIterator=function(r,n){var e=r.next();if(e.done)return g.emptyIterator;var a=i(e.value);return{next:function(){for(;;){var e=a.next();if(!e.done)return e;var t=r.next();if(t.done)return t;a=i(t.value)}}};function i(e){var t=n(e);return void 0===t?g.emptyIterator:R(t)?b(t):t}},g.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var a=e[n],i=t(a,n);(r||a!==i||R(i))&&(r||(r=e.slice(0,n)),R(i)?y(r,i):r.push(i))}return r||e},g.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var a=t(e[n],n);if(void 0===a)return;r.push(a)}return r},g.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var a=t(e[n],n);void 0!==a&&r.push(a)}return r},g.mapDefinedIterator=function(r,n){return{next:function(){for(;;){var e=r.next();if(e.done)return e;var t=n(e.value);if(void 0!==t)return{value:t,done:!1}}}}},g.emptyIterator={next:function(){return{value:void 0,done:!0}}},g.singleIterator=function(t){var r=!1;return{next:function(){var e=r;return r=!0,e?{value:void 0,done:!0}:{value:t,done:!1}}}},g.span=function(e,t){if(e){for(var r=0;r<e.length;r++)if(!t(e[r],r))return[e.slice(0,r),e.slice(r)];return[e.slice(0),[]]}},g.spanMap=function(e,t,r){var n;if(e){n=[];for(var a=e.length,i=void 0,o=void 0,s=0,c=0;s<a;){for(;c<a;){if(o=t(e[c],c),0===c)i=o;else if(o!==i)break;c++}if(s<c){var u=r(e.slice(s,c),i,s,c);u&&n.push(u),s=c}i=o,c++}}return n},g.mapEntries=function(e,i){if(e){var o=s();return e.forEach(function(e,t){var r=i(t,e),n=r[0],a=r[1];o.set(n,a)}),o}},g.some=_,g.concatenate=function(e,t){return _(t)?_(e)?e.concat(t):t:e},g.deduplicate=d,g.insertSorted=function(e,t,r){if(0!==e.length){var n=C(e,t,J,r);n<0&&e.splice(~n,0,t)}else e.push(t)},g.sortAndDeduplicate=function(e,t,r){return function(e,t){if(e){if(0===e.length)return[];for(var r=e[0],n=[r],a=1;a<e.length;a++){var i=e[a];switch(t(i,r)){case!0:case 0:continue;case-1:return Qe.fail("Array is unsorted.")}n.push(r=i)}return n}}(k(e,t),r||t)},g.arrayIsEqualTo=f,g.changesAffectModuleResolution=function(e,t){return!(e&&e.module===t.module&&e.moduleResolution===t.moduleResolution&&e.noResolve===t.noResolve&&e.target===t.target&&e.noLib===t.noLib&&e.jsx===t.jsx&&e.allowJs===t.allowJs&&e.rootDir===t.rootDir&&e.configFilePath===t.configFilePath&&e.baseUrl===t.baseUrl&&e.maxNodeModuleJsDepth===t.maxNodeModuleJsDepth&&f(e.lib,t.lib)&&f(e.typeRoots,t.typeRoots)&&f(e.rootDirs,t.rootDirs)&&F(e.paths,t.paths))},g.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},g.relativeComplement=function(e,t,r){if(!t||!e||0===t.length||0===e.length)return t;var n=[];e:for(var a=0,i=0;i<t.length;i++){0<i&&Qe.assertGreaterThanOrEqual(r(t[i],t[i-1]),0);t:for(var o=a;a<e.length;a++)switch(o<a&&Qe.assertGreaterThanOrEqual(r(e[a],e[a-1]),0),r(t[i],e[a])){case-1:n.push(t[i]);continue e;case 0:continue e;case 1:continue t}}return n},g.sum=function(e,t){for(var r=0,n=0,a=e;n<a.length;n++)r+=a[n][t];return r},g.append=function(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)},g.addRange=y,g.pushIfUnique=v,g.appendIfUnique=function(e,t,r){return e?(v(e,t,r),e):[t]},g.sort=k,g.best=function(e,t){var r=e.next();if(!r.done)for(var n=r.value;;){var a=e.next(),i=a.value;if(a.done)return n;t(i,n)&&(n=i)}},g.arrayIterator=b,g.stableSort=function(t,e){var r=t.map(function(e,t){return t});return h(t,r,e),r.map(function(e){return t[e]})},g.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},g.elementAt=D,g.firstOrUndefined=function(e){return D(e,0)},g.first=function(e){return Qe.assert(0!==e.length),e[0]},g.lastOrUndefined=S,g.last=function(e){return Qe.assert(0!==e.length),e[e.length-1]},g.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},g.singleOrMany=function(e){return e&&1===e.length?e[0]:e},g.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},g.binarySearch=C,g.reduceLeft=T;var E=Object.prototype.hasOwnProperty;function N(e,t){return E.call(e,t)}function A(e,t){for(var r,n=[],a=e.next(),i=a.value,o=a.done;!o;i=(r=e.next()).value,o=r.done,r)n.push(t?t(i):i);return n}function P(e,r){e.forEach(function(e,t){r.set(t,e)})}function F(e,t,r){if(void 0===r&&(r=V),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(E.call(e,n)){if(void 0===!E.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(E.call(t,n)&&!E.call(e,n))return!1;return!0}function w(e,t,r){void 0===r&&(r=J);for(var n=s(),a=0,i=e;a<i.length;a++){var o=i[a];n.set(t(o),r(o))}return n}function I(e,t,r){void 0===r&&(r=J);for(var n=O(),a=0,i=e;a<i.length;a++){var o=i[a];n.add(t(o),r(o))}return n}function O(){var e=s();return e.add=M,e.remove=L,e}function M(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function L(e,t){var r=this.get(e);r&&(ct(r,t),r.length||this.delete(e))}function R(e){return Array.isArray?Array.isArray(e):e instanceof Array}function B(e){return"string"==typeof e}function z(e){}function J(e){return e}function j(e){return e.toLowerCase()}function K(t,r,n,a,e){if(e){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return T(i,function(e,t){return t(e)},e)}}return a?function(e){return a(n(r(t(e))))}:n?function(e){return n(r(t(e)))}:r?function(e){return r(t(e))}:t?function(e){return t(e)}:function(e){return e}}function U(e,r,n){return n=n||0,e.replace(/{(\d+)}/g,function(e,t){return r[+t+n]})}function q(e){return g.localizedDiagnosticMessages&&g.localizedDiagnosticMessages[e.key]||e.message}function V(e,t){return e===t}function W(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function H(e,t){return V(e,t)}function G(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function X(e,t){return G(e,t)}function Q(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:t<e?1:0}function Y(e,t){return G(e,t)}g.hasProperty=N,g.getProperty=function(e,t){return E.call(e,t)?e[t]:void 0},g.getOwnKeys=function(e){var t=[];for(var r in e)E.call(e,r)&&t.push(r);return t},g.getOwnValues=function(e){var t=[];for(var r in e)E.call(e,r)&&t.push(e[r]);return t},g.arrayFrom=A,g.forEachEntry=function(e,t){for(var r,n=e.entries(),a=n.next(),i=a.value,o=a.done;!o;i=(r=n.next()).value,o=r.done,r){var s=i[0],c=t(i[1],s);if(c)return c}},g.forEachKey=function(e,t){for(var r,n=e.keys(),a=n.next(),i=a.value,o=a.done;!o;i=(r=n.next()).value,o=r.done,r){var s=t(i);if(s)return s}},g.copyEntries=P,g.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,a=t;n<a.length;n++){var i=a[n];for(var o in i)N(i,o)&&(e[o]=i[o])}return e},g.equalOwnProperties=F,g.arrayToMap=w,g.arrayToNumericMap=function(e,t,r){void 0===r&&(r=J);for(var n=[],a=0,i=e;a<i.length;a++){var o=i[a];n[t(o)]=r(o)}return n},g.arrayToSet=function(e,t){return w(e,t||function(e){return e},function(){return!0})},g.arrayToMultiMap=I,g.group=function(e,t){return A(I(e,t).values())},g.cloneMap=function(e){var t=s();return P(e,t),t},g.clone=function(e){var t={};for(var r in e)E.call(e,r)&&(t[r]=e[r]);return t},g.extend=function(e,t){var r={};for(var n in t)E.call(t,n)&&(r[n]=t[n]);for(var n in e)E.call(e,n)&&(r[n]=e[n]);return r},g.createMultiMap=O,g.isArray=R,g.toArray=function(e){return R(e)?e:[e]},g.isString=B,g.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},g.cast=function(e,t){if(void 0!==e&&t(e))return e;e&&"number"==typeof e.kind?Qe.fail("Invalid cast. The supplied "+Qe.showSyntaxKind(e)+" did not pass the test '"+Qe.getFunctionName(t)+"'."):Qe.fail("Invalid cast. The supplied value did not pass the test '"+Qe.getFunctionName(t)+"'.")},g.noop=z,g.returnFalse=function(){return!1},g.returnTrue=function(){return!0},g.identity=J,g.toLowerCase=j,g.notImplemented=function(){throw new Error("Not implemented")},g.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},g.chain=function(t,r,n,a,e){if(e){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(t){return K.apply(void 0,c(i,function(e){return e(t)}))}}return a?function(e){return K(t(e),r(e),n(e),a(e))}:n?function(e){return K(t(e),r(e),n(e))}:r?function(e){return K(t(e),r(e))}:t?function(e){return K(t(e))}:function(e){return function(e){return e}}},g.compose=K,g.formatStringFromArgs=U,g.getLocaleSpecificMessage=q,g.createFileDiagnostic=function(e,t,r,n){Qe.assertGreaterThanOrEqual(t,0),Qe.assertGreaterThanOrEqual(r,0),e&&(Qe.assertLessThanOrEqual(t,e.text.length),Qe.assertLessThanOrEqual(t+r,e.text.length));var a=q(n);return 4<arguments.length&&(a=U(a,arguments,4)),{file:e,start:t,length:r,messageText:a,category:n.category,code:n.code}},g.formatMessage=function(e,t){var r=q(t);return 2<arguments.length&&(r=U(r,arguments,2)),r},g.createCompilerDiagnostic=function(e){var t=q(e);return 1<arguments.length&&(t=U(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}},g.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}},g.chainDiagnosticMessages=function(e,t){var r=q(t);return 2<arguments.length&&(r=U(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}},g.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e},g.equateValues=V,g.equateStringsCaseInsensitive=W,g.equateStringsCaseSensitive=H,g.compareValues=X,g.compareStringsCaseInsensitive=Q,g.compareStringsCaseSensitive=Y;var Z,$,ee=function(){var t,r,n=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return e;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return i;return o}();return function(e){return void 0===e?t||(t=n(e)):"en-US"===e?r||(r=n(e)):n(e)};function a(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:0<n?1:0}function e(e){var r=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return a(e,t,r)}}function i(e){return void 0!==e?o():function(e,t){return a(e,t,r)};function r(e,t){return e.localeCompare(t)}}function o(){return function(e,t){return a(e,t,r)};function r(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,t){return e<t?-1:t<e?1:0}}}();function te(e){return e.file?e.file.fileName:void 0}function re(e){return e.replace(/\\/g,"/")}function ne(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var t=e.indexOf("/",2);if(t<0)return 2;var r=e.indexOf("/",t+1);return r<0?t+1:r+1}if(58===e.charCodeAt(1)&&(47===e.charCodeAt(2)||92===e.charCodeAt(2)))return 3;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var n=e.indexOf("://");return-1!==n?n+"://".length:0}g.getUILocale=function(){return $},g.setUILocale=function(e){$!==e&&($=e,Z=void 0)},g.compareStringsCaseSensitiveUI=function(e,t){return(Z||(Z=ee($)))(e,t)},g.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},g.compareDiagnostics=function(e,t){return Y(te(e),te(t))||X(e.start,t.start)||X(e.length,t.length)||X(e.code,t.code)||function(e,t){for(;e&&t;){var r=B(e)?e:e.messageText,n=B(t)?t:t.messageText,a=Y(r,n);if(a)return a;e=B(e)?void 0:e.next,t=B(t)?void 0:t.next}return e||t?e?1:-1:0}(e.messageText,t.messageText)||0},g.compareBooleans=function(e,t){return X(e?1:0,t?1:0)},g.normalizeSlashes=re,g.getRootLength=ne,g.directorySeparator="/";var ae=47;function ie(e,t){for(var r=[],n=0,a=e.substr(t).split(g.directorySeparator);n<a.length;n++){var i=a[n];"."!==i&&(".."===i&&0<r.length&&".."!==S(r)?r.pop():i&&r.push(i))}return r}function oe(e){return se(e).path}function se(e){var t=ne(e=re(e)),r=e.substr(0,t),n=ie(e,t);if(n.length){var a=r+n.join(g.directorySeparator);return{path:ce(e)?a+g.directorySeparator:a,parts:n}}return{path:r,parts:n}}function ce(e){return e.charCodeAt(e.length-1)===ae}function ue(e){return e.substr(0,Math.max(ne(e),e.lastIndexOf(g.directorySeparator)))}function _e(e){return e&&!fe(e)&&Ee(e,"://")}function le(e){return e.target||0}function de(e){return"number"==typeof e.module?e.module:2<=le(e)?g.ModuleKind.ES2015:g.ModuleKind.CommonJS}function pe(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0}function fe(e){return e&&0!==ne(e)}function me(e,t){var r=ie(e,t);return[e.substr(0,t)].concat(r)}function ge(e,t){var r=ne(e=re(e));return 0===r&&(r=ne(e=ke(re(t),e))),me(e,r)}function ye(e,t){return ve(ge(e,t))}function ve(e){if(e&&e.length)return e[0]+e.slice(1).join(g.directorySeparator)}function he(e,t){return _e(e)?function(e){for(var t=e.length,r=e.indexOf("://")+"://".length;r<t&&47===e.charCodeAt(r);)r++;if(r===t)return[e];var n=e.indexOf(g.directorySeparator,r);return-1!==n?me(e,r=n+1):[e+g.directorySeparator]}(e):ge(e,t)}function be(e,t,r,n,a){var i,o=he(t,r),s=he(e,r);for(1<s.length&&""===S(s)&&s.pop(),i=0;i<o.length&&i<s.length&&n(s[i])===n(o[i]);i++);if(i){for(var c="",u=o.slice(i,o.length);i<s.length;i++)""!==s[i]&&(c=c+".."+g.directorySeparator);return c+u.join(g.directorySeparator)}var _=ve(o);return a&&fe(_)&&(_="file:///"+_),_}function xe(e){if(void 0!==e){var t=e.lastIndexOf(g.directorySeparator);return t<0?e:e.substring(t+1)}}function ke(e,t){return e&&e.length?t&&t.length?0!==ne(t)?t:e.charAt(e.length-1)===g.directorySeparator?e+t:e+g.directorySeparator+t:e:t}function De(e){return e.charAt(e.length-1)===g.directorySeparator?e.substr(0,e.length-1):e}function Se(e,t,r,n){if(void 0===e||void 0===t)return!1;if(e===t)return!0;if((e=De(e))===(t=De(t)))return!0;var a=ge(e,r),i=ge(t,r);if(i.length<a.length)return!1;for(var o=n?W:H,s=0;s<a.length;s++)if(!o(a[s],i[s]))return!1;return!0}function Ce(e,t){return 0===e.lastIndexOf(t,0)}function Te(e,t){var r=e.length-t.length;return 0<=r&&e.indexOf(t,r)===r}function Ee(e,t){return-1!==e.indexOf(t)}function Ne(e){return Ee(xe(e),".")}function Ae(e,t){return e.length>t.length&&Te(e,t)}function Pe(e,t){for(var r=0,n=t;r<n.length;r++){if(Ae(e,n[r]))return!0}return!1}g.normalizePath=oe,g.normalizePathAndParts=se,g.pathEndsWithDirectorySeparator=ce,g.getDirectoryPath=ue,g.isUrl=_e,g.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},g.getEmitScriptTarget=le,g.getEmitModuleKind=de,g.getEmitModuleResolutionKind=function(e){var t=e.moduleResolution;return void 0===t&&(t=de(e)===g.ModuleKind.CommonJS?g.ModuleResolutionKind.NodeJs:g.ModuleResolutionKind.Classic),t},g.getAllowSyntheticDefaultImports=function(e){var t=de(e);return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:e.esModuleInterop?t!==g.ModuleKind.None&&t<g.ModuleKind.ES2015:t===g.ModuleKind.System},g.getStrictOptionValue=function(e,t){return void 0===e[t]?e.strict:e[t]},g.hasZeroOrOneAsteriskCharacter=pe,g.isRootedDiskPath=fe,g.convertToRelativePath=function(e,t,r){return fe(e)?be(t,e,t,r,!1):e},g.getNormalizedPathComponents=ge,g.getNormalizedAbsolutePath=ye,g.getNormalizedPathFromPathComponents=ve,g.getRelativePathToDirectoryOrUrl=be,g.getBaseFileName=xe,g.combinePaths=ke,g.removeTrailingDirectorySeparator=De,g.ensureTrailingDirectorySeparator=function(e){return e.charAt(e.length-1)!==g.directorySeparator?e+g.directorySeparator:e},g.comparePaths=function(e,t,r,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;e=De(e),t=De(t);for(var a=ge(e,r),i=ge(t,r),o=Math.min(a.length,i.length),s=n?Q:Y,c=0;c<o;c++){var u=s(a[c],i[c]);if(0!==u)return u}return X(a.length,i.length)},g.containsPath=Se,g.startsWith=Ce,g.removePrefix=function(e,t){return Ce(e,t)?e.substr(t.length):e},g.endsWith=Te,g.removeSuffix=function(e,t){return Te(e,t)?e.slice(0,e.length-t.length):e},g.stringContains=Ee,g.hasExtension=Ne,g.fileExtensionIs=Ae,g.fileExtensionIsOneOf=Pe;var Fe=/[^\w\s\/]/g,we=[42,63];g.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Ie="(?!("+g.commonPackageFolders.join("|")+")(/|$))",Oe={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+Ie+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return je(e,Oe.singleAsteriskRegexFragment)}},Me={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+Ie+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return je(e,Me.singleAsteriskRegexFragment)}},Le={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return je(e,Le.singleAsteriskRegexFragment)}},Re={files:Oe,directories:Me,exclude:Le};function Be(e,t,r){var n=ze(e,t,r);if(n&&n.length)return"^("+n.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===r?"($|/)":"$")}function ze(e,t,r){if(void 0!==e&&0!==e.length)return u(e,function(e){return e&&function(e,t,r,n){var a=n.singleAsteriskRegexFragment,i=n.doubleAsteriskRegexFragment,o=n.replaceWildcardCharacter,s="",c=!1,u=ge(e,t),_=S(u);if("exclude"!==r&&"**"===_)return;u[0]=De(u[0]),Je(_)&&u.push("**","*");for(var l=0,d=0,p=u;d<p.length;d++){var f=p[d];if("**"===f)s+=i;else if("directories"===r&&(s+="(",l++),c&&(s+=g.directorySeparator),"exclude"!==r){var m="";42===f.charCodeAt(0)?(m+="([^./]"+a+")?",f=f.substr(1)):63===f.charCodeAt(0)&&(m+="[^./]",f=f.substr(1)),(m+=f.replace(Fe,o))!==f&&(s+=Ie),s+=m}else s+=f.replace(Fe,o);c=!0}for(;0<l;)s+=")?",l--;return s}(e,t,r,Re[r])})}function Je(e){return!/[.*?]/.test(e)}function je(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Ke(e,t,r,n,a){e=oe(e);var i=ke(a=oe(a),e);return{includeFilePatterns:c(ze(r,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Be(r,i,"files"),includeDirectoryPattern:Be(r,i,"directories"),excludePattern:Be(t,i,"exclude"),basePaths:function(r,e,n){var a=[r];if(e){for(var t=[],i=0,o=e;i<o.length;i++){var s=o[i],c=fe(s)?s:oe(ke(r,s));t.push(Ue(c))}t.sort(n?Y:Q);for(var u=function(t){p(a,function(e){return!Se(e,t,r,!n)})&&a.push(t)},_=0,l=t;_<l.length;_++){var d=l[_];u(d)}}return a}(e,r,n)}}function Ue(e){var t=o(e,we);return t<0?Ne(e)?De(ue(e)):e:e.substring(0,e.lastIndexOf(g.directorySeparator,t))}function qe(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}g.getRegularExpressionForWildcard=Be,g.isImplicitGlob=Je,g.getFileMatcherPatterns=Ke,g.matchFiles=function(e,f,t,r,n,a,i,m){for(var o=Ke(e=oe(e),t,r,n,a=oe(a)),s=n?"":"i",g=o.includeFilePatterns&&o.includeFilePatterns.map(function(e){return new RegExp(e,s)}),y=o.includeDirectoryPattern&&new RegExp(o.includeDirectoryPattern,s),v=o.excludePattern&&new RegExp(o.excludePattern,s),h=g?g.map(function(){return[]}):[[]],c=0,u=o.basePaths;c<u.length;c++){var _=u[c];b(_,ke(a,_),i)}return l(h);function b(a,i,e){for(var t=m(a),r=t.files,n=t.directories,o=function(e){var t=ke(a,e),r=ke(i,e);if(f&&!Pe(t,f))return"continue";if(v&&v.test(r))return"continue";if(g){var n=x(g,function(e){return e.test(r)});-1!==n&&h[n].push(t)}else h[0].push(t)},s=0,c=k(r,Y);s<c.length;s++)o(l=c[s]);if(void 0===e||0!=--e)for(var u=0,_=k(n,Y);u<_.length;u++){var l=_[u],d=ke(a,l),p=ke(i,l);y&&!y.test(p)||v&&v.test(p)||b(d,p,e)}}},g.ensureScriptKind=function(e,t){return t||qe(e)||3},g.getScriptKindFromFileName=qe,g.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],g.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],g.supportedJavascriptExtensions=[".js",".jsx"];var Ve,We=g.supportedTypeScriptExtensions.concat(g.supportedJavascriptExtensions);function He(e,t){var r=e&&e.allowJs;return t&&0!==t.length&&r?d(We.concat(t.map(function(e){return e.extension})),H,Y):r?We:g.supportedTypeScriptExtensions}function Ge(e,t){return e<2?0:e<t.length?2:t.length}g.getSupportedExtensions=He,g.hasJavaScriptFileExtension=function(t){return e(g.supportedJavascriptExtensions,function(e){return Ae(t,e)})},g.hasTypeScriptFileExtension=function(t){return e(g.supportedTypeScriptExtensions,function(e){return Ae(t,e)})},g.isSupportedSourceFileName=function(e,t,r){if(!e)return!1;for(var n=0,a=He(t,r);n<a.length;n++)if(Ae(e,a[n]))return!0;return!1},(Ve=g.ExtensionPriority||(g.ExtensionPriority={}))[Ve.TypeScriptFiles=0]="TypeScriptFiles",Ve[Ve.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",Ve[Ve.Highest=0]="Highest",Ve[Ve.Lowest=2]="Lowest",g.getExtensionPriority=function(e,t){for(var r=t.length-1;0<=r;r--)if(Ae(e,t[r]))return Ge(r,t);return 0},g.adjustExtensionPriority=Ge,g.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var Xe,Qe,Ye=[".d.ts",".ts",".js",".tsx",".jsx"];function Ze(e){for(var t=0,r=Ye;t<r.length;t++){var n=$e(e,r[t]);if(void 0!==n)return n}return e}function $e(e,t){return Ae(e,t)?et(e,t):void 0}function et(e,t){return e.substring(0,e.length-t.length)}function tt(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function rt(e,t){this.flags=t,Qe.isDebugging&&(this.checker=e)}function nt(){}function at(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function it(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function ot(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function st(e,t){e[t]=e[e.length-1],e.pop()}function ct(e,t){!function(e,t){for(var r=0;r<e.length;r++)if(t(e[r])){st(e,r);break}}(e,function(e){return e===t})}function ut(e,t,r){for(var n,a=-1,i=0,o=e;i<o.length;i++){var s=o[i],c=t(s);_t(c,r)&&c.prefix.length>a&&(a=c.prefix.length,n=s)}return n}function _t(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&Ce(t,r)&&Te(t,n)}function lt(e){Qe.assert(pe(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function dt(t){return a(g.supportedTypescriptExtensionsForExtractExtension,function(e){return Ae(t,e)})||a(g.supportedJavascriptExtensions,function(e){return Ae(t,e)})}g.removeFileExtension=Ze,g.tryRemoveExtension=$e,g.removeExtension=et,g.changeExtension=function(e,t){return Ze(e)+t},g.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},g.objectAllocator={getNodeConstructor:function(){return at},getTokenConstructor:function(){return at},getIdentifierConstructor:function(){return at},getSourceFileConstructor:function(){return at},getSymbolConstructor:function(){return tt},getTypeConstructor:function(){return rt},getSignatureConstructor:function(){return nt},getSourceMapSourceConstructor:function(){return it}},(Xe=g.AssertionLevel||(g.AssertionLevel={}))[Xe.None=0]="None",Xe[Xe.Normal=1]="Normal",Xe[Xe.Aggressive=2]="Aggressive",Xe[Xe.VeryAggressive=3]="VeryAggressive",function(t){function a(e,t,r,n){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),i(t?"False expression: "+t:"False expression.",n||a))}function i(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||i),r}function o(e,t){return a(null!=e,t),e}function r(e){var t=g.SyntaxKind;return t?t[e.kind]:e.kind.toString()}t.currentAssertionLevel=0,t.isDebugging=!1,t.shouldAssert=function(e){return t.currentAssertionLevel>=e},t.assert=a,t.assertEqual=function(e,t,r,n){e!==t&&i("Expected "+e+" === "+t+". "+(r?n?r+" "+n:r:""))},t.assertLessThan=function(e,t,r){t<=e&&i("Expected "+e+" < "+t+". "+(r||""))},t.assertLessThanOrEqual=function(e,t){t<e&&i("Expected "+e+" <= "+t)},t.assertGreaterThanOrEqual=function(e,t){e<t&&i("Expected "+e+" >= "+t)},t.fail=i,t.assertDefined=o,t.assertEachDefined=function(e,t){for(var r=0,n=e;r<n.length;r++)o(n[r],t);return e},t.assertNever=function e(t,r,n){return i(r||"Illegal value: "+t,n||e)},t.getFunctionName=function(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""},t.showSymbol=function(e){var t=g.SymbolFlags;return"{ flags: "+(t?function(e,t){for(var r=[],n=0;n<=30;n++){var a=1<<n;e&a&&r.push(t[a])}return r.join("|")}(e.flags,t):e.flags)+"; declarations: "+c(e.declarations,r)+" }"},t.showSyntaxKind=r}(Qe=g.Debug||(g.Debug={})),g.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return ot(e,r),!0;return!1},g.orderedRemoveItemAt=ot,g.unorderedRemoveItemAt=st,g.unorderedRemoveItem=ct,g.createGetCanonicalFileName=function(e){return e?J:j},g.matchPatternOrExact=function(e,t){for(var r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=lt(i);if(o)r.push(o);else if(i===t)return i}return ut(r,function(e){return e},t)},g.patternText=function(e){return e.prefix+"*"+e.suffix},g.matchedText=function(e,t){return Qe.assert(_t(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},g.findBestPatternMatch=ut,g.tryParsePattern=lt,g.positionIsSynthesized=function(e){return!(0<=e)},g.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},g.extensionFromPath=function(e){var t=dt(e);if(void 0!==t)return t;Qe.fail("File "+e+" has unknown extension.")},g.isAnySupportedFileExtension=function(e){return void 0!==dt(e)},g.tryGetExtensionFromPath=dt,g.getAnyExtensionFromPath=function(e){var t=xe(e),r=t.lastIndexOf(".");if(0<=r)return t.substring(r)},g.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},g.and=function(t,r){return function(e){return t(e)&&r(e)}},g.or=function(t,r){return function(e){return t(e)||r(e)}},g.assertTypeIsNever=function(e){},g.emptyFileSystemEntries={files:g.emptyArray,directories:g.emptyArray},g.singleElementArray=function(e){return void 0===e?void 0:[e]},g.enumerateInsertsAndDeletes=function(e,t,r,n,a,i){i=i||z;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var _=e[o],l=t[s],d=r(_,l);-1===d?(n(_),o++):(1===d?a(l):(i(l,_),o++),s++)}for(;o<c;)n(e[o++]);for(;s<u;)a(t[s++])}}(ts||(ts={})),function(N){var A,e,P,t;N.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=A=N.FileWatcherEventKind||(N.FileWatcherEventKind={}))[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",(t=P=N.PollingInterval||(N.PollingInterval={}))[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low";var r,n,a=[r=250,n=2*r,4*n];function i(e){return(t={})[P.Low]=e.Low,t[P.Medium]=e.Medium,t[P.High]=e.High,t;var t}N.watchFileUsingPriorityPollingInterval=function(e,t,r,n){return e.watchFile(t,r,a[n])},N.missingFileModifiedTime=new Date(0);var s={Low:32,Medium:64,High:256},g=i(s);function o(o){if(o.getEnvironmentVariable){var n=function(e,t){var r=a(e);if(r)return n("Low"),n("Medium"),n("High"),!0;return!1;function n(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",P);g=e("TSC_WATCH_POLLINGCHUNKSIZE",s)||g,N.unchangedPollThresholds=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",s)||N.unchangedPollThresholds}function a(a){var i;return e("Low"),e("Medium"),e("High"),i;function e(e){var t,r,n=(t=a,r=e,o.getEnvironmentVariable(t+"_"+r.toUpperCase()));n&&((i||(i={}))[e]=Number(n))}}function e(e,t){var r=a(e);return(n||r)&&i(r?__assign({},t,r):t)}}function F(t){var a=[],_=[],r=e(P.Low),n=e(P.Medium),i=e(P.High);return function(e,t,r){var n={fileName:e,callback:t,unchangedPolls:0,mtime:m(e)};return a.push(n),l(n,r),{close:function(){n.isClosed=!0,N.unorderedRemoveItem(a,n)}}};function e(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function o(e){e.pollIndex=c(e,e.pollingInterval,e.pollIndex,g[e.pollingInterval]),e.length?f(e.pollingInterval):(N.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function s(e){c(_,P.Low,0,_.length),o(e),!e.pollScheduled&&_.length&&f(P.Low)}function c(e,t,r,n){for(var a=e.length,i=r,o=0;o<n&&0<a;u(),a--){var s=e[r];if(s)if(s.isClosed)e[r]=void 0;else{o++;var c=y(s,m(s.fileName));s.isClosed?e[r]=void 0:c?(s.unchangedPolls=0,e!==_&&(e[r]=void 0,d(s))):s.unchangedPolls!==N.unchangedPollThresholds[t]?s.unchangedPolls++:e===_?(s.unchangedPolls=1,e[r]=void 0,l(s,P.Low)):t!==P.High&&(s.unchangedPolls++,e[r]=void 0,l(s,t===P.Low?P.Medium:P.High)),e[r]&&(i<r&&(e[i]=s,e[r]=void 0),i++)}}return r;function u(){++r===e.length&&(i<r&&(e.length=i),i=r=0)}}function u(e){switch(e){case P.Low:return r;case P.Medium:return n;case P.High:return i}}function l(e,t){u(t).push(e),p(t)}function d(e){_.push(e),p(P.Low)}function p(e){u(e).pollScheduled||f(e)}function f(e){u(e).pollScheduled=t.setTimeout(e===P.Low?s:o,e,u(e))}function m(e){return t.getModifiedTime(e)||N.missingFileModifiedTime}}function y(e,t){var r=e.mtime.getTime(),n=t.getTime();if(r!==n){e.mtime=t;var a=0===r?A.Created:0===n?A.Deleted:A.Changed;return e.callback(e.fileName,a),!0}return!1}function w(i){return o;function o(e,t){var r=i.watchDirectory(e,function(e){t(e),a(n,t)}),n={close:function(){r.close(),n.childWatches.forEach(N.closeFileWatcher),n=void 0},dirName:e,childWatches:N.emptyArray};return a(n,t),n}function a(e,t){e&&(e.childWatches=function(r,e,t){var n;return N.enumerateInsertsAndDeletes(i.directoryExists(r)?i.getAccessileSortedChildDirectories(r):N.emptyArray,e,function(e,t){return i.filePathComparer(N.getNormalizedAbsolutePath(e,r),t.dirName)},function(e){a(o(N.getNormalizedAbsolutePath(e,r),t))},N.closeFileWatcher,a),n||N.emptyArray;function a(e){(n||(n=[])).push(e)}}(e.dirName,e.childWatches,t))}}function I(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}N.unchangedPollThresholds=i(s),N.setCustomPollingValues=o,N.createDynamicPriorityPollingWatchFile=F,N.onWatchedFileStat=y,N.createRecursiveDirectoryWatcher=w,N.getNodeMajorVersion=I,N.sys=function(){var a,e,E="\ufeff";if("undefined"!=typeof ChakraHost?(e=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)},a={newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,r){r&&(t=E+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(e,t,r,n,a){var i=N.getFileMatcherPatterns(e,r,n,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(e,t,i.basePaths,i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:e}):"undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(a=function(){var r,d=require("fs"),t=require("path"),e=require("os");try{r=require("crypto")}catch(e){r=void 0}var n,a,p=4<=I(),i=e.platform(),o="win32"!==i&&"win64"!==i&&!S(__filename.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t}));(a=n||(n={}))[a.File=0]="File",a[a.Directory=1]="Directory";var s,c=process.env.TSC_NONPOLLING_WATCHER,u=process.env.TSC_WATCHFILE,_=process.env.TSC_WATCHDIRECTORY,l={args:process.argv.slice(2),newLine:e.EOL,useCaseSensitiveFileNames:o,write:function(e){process.stdout.write(e)},readFile:function(e,t){if(S(e)){var r=d.readFileSync(e),n=r.length;if(2<=n&&254===r[0]&&255===r[1]){n&=-2;for(var a=0;a<n;a+=2){var i=r[a];r[a]=r[a+1],r[a+1]=i}return r.toString("utf16le",2)}return 2<=n&&255===r[0]&&254===r[1]?r.toString("utf16le",2):3<=n&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}},writeFile:function(e,t,r){var n;r&&(t=E+t);try{n=d.openSync(e,"w"),d.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&d.closeSync(n)}},watchFile:function(){switch(u){case"PriorityPollingInterval":return m;case"DynamicPriorityPolling":return F({getModifiedTime:T,setTimeout:setTimeout});case"UseFsEvents":return v;case"UseFsEventsWithFallbackDynamicPolling":return s=F({getModifiedTime:T,setTimeout:setTimeout}),n=s,function(e,t,r){return y(e,0,g(e,t),!1,n,r)};case"UseFsEventsOnParentDirectory":return f()}var n;return c?f():function(e,t){return m(e,t)}}(),watchDirectory:function(){if(p&&("win32"===process.platform||"darwin"===process.platform))return b;var n="RecursiveDirectoryUsingFsWatchFile"===_?x(m):"RecursiveDirectoryUsingDynamicPriorityPolling"===_?x(s||F({getModifiedTime:T,setTimeout:setTimeout})):b,a=w({filePathComparer:o?N.compareStringsCaseSensitive:N.compareStringsCaseInsensitive,directoryExists:C,getAccessileSortedChildDirectories:function(e){return k(e).directories},watchDirectory:n});return function(e,t,r){if(r)return a(e,t);n(e,t)}}(),resolvePath:function(e){return t.resolve(e)},fileExists:S,directoryExists:C,createDirectory:function(e){l.directoryExists(e)||d.mkdirSync(e)},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:function(t){return N.filter(d.readdirSync(t),function(e){return D(N.combinePaths(t,e),1)})},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(e,t,r,n,a){return N.matchFiles(e,t,r,n,o,process.cwd(),a,k)},getModifiedTime:T,createHash:r?function(e){var t=r.createHash("md5");return t.update(e),t.digest("hex")}:function(e){return""+e.split("").map(function(e){return e.charCodeAt(0)}).reduce(function(e,t){return(e<<5)+e+t},5381)},getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=d.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e)},realpath:function(t){try{return d.realpathSync(t)}catch(e){return t}},debugMode:N.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{require("source-map-support").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)}};return l;function f(){var c=N.createMultiMap(),u=N.createMap(),_=N.createGetCanonicalFileName(o);return function(e,t){var r=_(e);c.add(r,t);var s,n,a,i=N.getDirectoryPath(r)||".",o=u.get(i)||(s=N.getDirectoryPath(e)||".",n=i,(a=h(s,function(e,t){var r=N.isString(t)?N.getNormalizedAbsolutePath(t,s):void 0,n=c.get(_(r));if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];o(r,A.Changed)}})).referenceCount=0,u.set(n,a),a);return o.referenceCount++,{close:function(){1===o.referenceCount?(o.close(),u.delete(i)):o.referenceCount--,c.remove(r,t)}}}}function m(n,a,e){var i;return d.watchFile(n,{persistent:!0,interval:e||250},t),{close:function(){return d.unwatchFile(n,t)}};function t(e,t){var r=0==+t.mtime||i===A.Deleted;if(0==+e.mtime){if(r)return;i=A.Deleted}else if(r)i=A.Created;else{if(+e.mtime==+t.mtime)return;i=A.Changed}a(n,i)}}function g(t,r){return function(e){r(t,"rename"===e?S(t)?A.Created:A.Deleted:A.Changed)}}function y(n,r,t,a,i,o){var s,c=D(n,r)?_():l();return{close:function(){c.close(),c=void 0}};function u(e){t("rename",""),c&&(c.close(),c=e())}function _(){void 0===s&&(s=!p||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!a});try{var e=d.watch(n,s,t);return e.on("error",function(){return u(l)}),e}catch(e){return i(n,(r=t,function(e,t){return r(t===A.Changed?"change":"rename","")}),o)}var r}function l(){return i(n,function(e,t){t===A.Created&&D(n,r)&&u(_)},o)}}function v(e,t,r){return y(e,0,g(e,t),!1,m,r)}function h(e,t,r){return y(e,1,t,!!r,m)}function b(e,t,r){return h(e,(n=e,a=t,function(e,t){"rename"===e&&a(t?N.normalizePath(N.combinePaths(n,t)):n)}),r);var n,a}function x(r){return function(e,t){return r(e,function(){return t(e)},P.Medium)}}function k(e){try{for(var t=d.readdirSync(e||".").sort(),r=[],n=[],a=0,i=t;a<i.length;a++){var o=i[a];if("."!==o&&".."!==o){var s=N.combinePaths(e,o),c=void 0;try{c=d.statSync(s)}catch(e){continue}c.isFile()?r.push(o):c.isDirectory()&&n.push(o)}}return{files:r,directories:n}}catch(e){return N.emptyFileSystemEntries}}function D(e,t){try{var r=d.statSync(e);switch(t){case 0:return r.isFile();case 1:return r.isDirectory()}}catch(e){return!1}}function S(e){return D(e,0)}function C(e){return D(e,1)}function T(e){try{return d.statSync(e).mtime}catch(e){return}}}()),a){var i=a.writeFile;a.writeFile=function(e,t,r){var n=N.getDirectoryPath(N.normalizeSlashes(e));n&&!a.directoryExists(n)&&function e(t,r){var n=N.getDirectoryPath(t),a=""!==n&&t!==n&&!r.directoryExists(n);a&&e(n,r),!a&&r.directoryExists(t)||r.createDirectory(t)}(n,a),i.call(a,e,t,r)}}return a}(),N.sys&&N.sys.getEnvironmentVariable&&(o(N.sys),N.Debug.currentAssertionLevel=/^development$/i.test(N.sys.getEnvironmentVariable("NODE_ENV"))?1:0),N.sys&&N.sys.debugMode&&(N.Debug.isDebugging=!0)}(ts||(ts={})),function(e){function t(e,t,r,n){return{code:e,category:t,key:r,message:n}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type.  Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime:t(7038,e.DiagnosticCategory.Error,"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038","A namespace-style import cannot be called or constructed, and will cause a failure at runtime."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'")}}(ts||(ts={})),function(O){function M(e){return 71<=e}O.tokenIsIdentifierOrKeyword=M,O.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||M(e)};var L=O.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:142,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:143,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:144,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,"</":28,">>":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),r=[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],n=[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],a=[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],i=[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];function o(e,t){if(e<t[0])return!1;for(var r,n=0,a=t.length;n+1<a;){if(r=n+(a-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?a=r:n=r+2}return!1}function s(e,t){return o(e,1<=t?a:r)}O.isUnicodeIdentifierStart=s;var c,t=(c=[],L.forEach(function(e,t){c[e]=t}),c);function u(e){for(var t=new Array,r=0,n=0;r<e.length;){var a=e.charCodeAt(r);switch(r++,a){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:127<a&&z(a)&&(t.push(n),n=r)}}return t.push(n),t}function _(e,t,r,n){(t<0||t>=e.length)&&O.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+e.length+" , line map is correct? "+(void 0!==n?O.arraysEqual(e,u(n)):"unknown"));var a=e[t]+r;return t<e.length-1?O.Debug.assert(a<e[t+1]):void 0!==n&&O.Debug.assert(a<=n.length),a}function l(e){return e.lineMap||(e.lineMap=u(e.text))}function d(e,t){var r=O.binarySearch(e,t,O.identity,O.compareValues);return r<0&&(r=~r-1,O.Debug.assert(-1!==r,"position cannot precede the beginning of the file")),{line:r,character:t-e[r]}}function R(e){return B(e)||z(e)}function B(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function z(e){return 10===e||13===e||8232===e||8233===e}function J(e){return 48<=e&&e<=57}function j(e){return 48<=e&&e<=55}O.tokenToString=function(e){return t[e]},O.stringToToken=function(e){return L.get(e)},O.computeLineStarts=u,O.getPositionOfLineAndCharacter=function(e,t,r){return _(l(e),t,r,e.text)},O.computePositionOfLineAndCharacter=_,O.getLineStarts=l,O.computeLineAndCharacterOfPosition=d,O.getLineAndCharacterOfPosition=function(e,t){return d(l(e),t)},O.isWhiteSpaceLike=R,O.isWhiteSpaceSingleLine=B,O.isLineBreak=z,O.isOctalDigit=j,O.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return 127<r}},O.skipTrivia=function(e,t,r,n){if(void 0===n&&(n=!1),O.positionIsSynthesized(t))return t;for(;;){var a=e.charCodeAt(t);switch(a){case 13:10===e.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(n)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!z(e.charCodeAt(t));)t++;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}continue}break;case 60:case 124:case 61:case 62:if(K(e,t)){t=U(e,t);continue}break;case 35:if(0===t&&q(e,t)){t=V(e,t);continue}break;default:if(127<a&&R(a)){t++;continue}}return t}};var p="<<<<<<<".length;function K(e,t){if(O.Debug.assert(0<=t),0===t||z(e.charCodeAt(t-1))){var r=e.charCodeAt(t);if(t+p<e.length){for(var n=0;n<p;n++)if(e.charCodeAt(t+n)!==r)return!1;return 61===r||32===e.charCodeAt(t+p)}}return!1}function U(e,t,r){r&&r(O.Diagnostics.Merge_conflict_marker_encountered,t,p);var n=e.charCodeAt(t),a=e.length;if(60===n||62===n)for(;t<a&&!z(e.charCodeAt(t));)t++;else for(O.Debug.assert(124===n||61===n);t<a;){var i=e.charCodeAt(t);if((61===i||62===i)&&i!==n&&K(e,t))break;t++}return t}var f=/^#!.*/;function q(e,t){return O.Debug.assert(0===t),f.test(e)}function V(e,t){return t+=f.exec(e)[0].length}function m(e,t,r,n,a,i,o){var s,c,u,_,l=!1,d=n||0===r,p=o;e:for(;0<=r&&r<t.length;){var f=t.charCodeAt(r);switch(f){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;d=!0,l&&(_=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var m=t.charCodeAt(r+1),g=!1;if(47===m||42===m){var y=47===m?2:3,v=r;if(r+=2,47===m)for(;r<t.length;){if(z(t.charCodeAt(r))){g=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(d){if(l){if(p=a(s,c,u,_,i,p),!e&&p)return p;l=!1}s=v,c=r,u=y,_=g,l=!0}continue}break e;default:if(127<f&&R(f)){l&&z(f)&&(_=!0),r++;continue}break e}}return l&&(p=a(s,c,u,_,i,p)),p}function g(e,t,r,n,a){return m(!0,e,t,!1,r,n,a)}function y(e,t,r,n,a){return m(!0,e,t,!0,r,n,a)}function v(e,t,r,n,a,i){return i||(i=[]),i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),i}function W(e,t){return 65<=e&&e<=90||97<=e&&e<=122||36===e||95===e||127<e&&s(e,t)}function H(e,t){return 65<=e&&e<=90||97<=e&&e<=122||48<=e&&e<=57||36===e||95===e||127<e&&o(e,1<=t?i:n)}O.forEachLeadingCommentRange=function(e,t,r,n){return m(!1,e,t,!1,r,n)},O.forEachTrailingCommentRange=function(e,t,r,n){return m(!1,e,t,!0,r,n)},O.reduceEachLeadingCommentRange=g,O.reduceEachTrailingCommentRange=y,O.getLeadingCommentRanges=function(e,t){return g(e,t,v,void 0,void 0)},O.getTrailingCommentRanges=function(e,t){return y(e,t,v,void 0,void 0)},O.getShebang=function(e){var t=f.exec(e);if(t)return t[0]},O.isIdentifierStart=W,O.isIdentifierPart=H,O.isIdentifierText=function(e,t){if(!W(e.charCodeAt(0),t))return!1;for(var r=1;r<e.length;r++)if(!H(e.charCodeAt(r),t))return!1;return!0},O.createScanner=function(i,o,s,l,a,e,t){var d,p,f,m,g,y,v;return void 0===s&&(s=0),w(l,e,t),{getStartPos:function(){return f},getTextPos:function(){return d},getToken:function(){return g},getTokenPos:function(){return m},getTokenText:function(){return l.substring(m,d)},getTokenValue:function(){return y},hasExtendedUnicodeEscape:function(){return 0!=(8&v)},hasPrecedingLineBreak:function(){return 0!=(1&v)},isIdentifier:function(){return 71===g||107<g},isReservedWord:function(){return 72<=g&&g<=107},isUnterminated:function(){return 0!=(4&v)},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(29===g){if(62===l.charCodeAt(d))return 62===l.charCodeAt(d+1)?61===l.charCodeAt(d+2)?(d+=3,g=67):(d+=2,g=47):61===l.charCodeAt(d+1)?(d+=2,g=66):(d++,g=46);if(61===l.charCodeAt(d))return d++,g=31}return g},reScanSlashToken:function(){if(41===g||63===g){for(var e=m+1,t=!1,r=!1;;){if(p<=e){v|=4,c(O.Diagnostics.Unterminated_regular_expression_literal);break}var n=l.charCodeAt(e);if(z(n)){v|=4,c(O.Diagnostics.Unterminated_regular_expression_literal);break}if(t)t=!1;else{if(47===n&&!r){e++;break}91===n?r=!0:92===n?t=!0:93===n&&(r=!1)}e++}for(;e<p&&H(l.charCodeAt(e),i);)e++;d=e,y=l.substring(m,d),g=12}return g},reScanTemplateToken:function(){return O.Debug.assert(18===g,"'reScanTemplateToken' should only be called on a '}'"),d=m,g=k()},scanJsxIdentifier:function(){if(M(g)){for(var e=d;d<p;){var t=l.charCodeAt(d);if(45!==t&&(e===d?!W(t,i):!H(t,i)))break;d++}y+=l.substring(e,d)}return g},scanJsxAttributeValue:function(){switch(f=d,l.charCodeAt(d)){case 34:case 39:return y=x(!0),g=9;default:return A()}},reScanJsxToken:function(){return d=m=f,g=P()},scanJsxToken:P,scanJSDocToken:function(){if(p<=d)return g=1;m=f=d;var e=l.charCodeAt(d);switch(d++,e){case 9:case 11:case 12:case 32:for(;d<p&&B(l.charCodeAt(d));)d++;return g=5;case 64:return g=57;case 10:case 13:return g=4;case 42:return g=39;case 123:return g=17;case 125:return g=18;case 91:return g=21;case 93:return g=22;case 60:return g=27;case 61:return g=58;case 44:return g=26;case 46:return g=23}if(W(e,6)){for(;H(l.charCodeAt(d),6)&&d<p;)d++;return y=l.substring(m,d),g=71}return g=0},scan:A,getText:function(){return l},setText:w,setScriptTarget:function(e){i=e},setLanguageVariant:function(e){s=e},setOnError:function(e){a=e},setTextPos:I,tryScan:function(e){return F(e,!1)},lookAhead:function(e){return F(e,!0)},scanRange:function(e,t,r){var n=p,a=d,i=f,o=m,s=g,c=y,u=v;w(l,e,t);var _=r();return p=n,d=a,f=i,m=o,g=s,y=c,v=u,_}};function c(e,t,r){if(void 0===t&&(t=d),a){var n=d;d=t,a(e,r||0),d=n}}function u(){for(var e=d,t=!1,r=!1,n="";;){var a=l.charCodeAt(d);if(95!==a){if(!J(a))break;t=!0,r=!1,d++}else v|=512,t?(t=!1,r=!0,n+=l.substring(e,d)):c(r?O.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:O.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),e=++d}return 95===l.charCodeAt(d-1)&&c(O.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),n+l.substring(e,d)}function _(){var e,t,r=d,n=u();46===l.charCodeAt(d)&&(d++,e=u());var a=d;if(69===l.charCodeAt(d)||101===l.charCodeAt(d)){d++,v|=16,43!==l.charCodeAt(d)&&45!==l.charCodeAt(d)||d++;var i=d,o=u();o?(t=l.substring(a,i)+o,a=d):c(O.Diagnostics.Digit_expected)}if(512&v){var s=n;return e&&(s+="."+e),t&&(s+=t),""+ +s}return""+ +l.substring(r,a)}function h(){for(var e=d;j(l.charCodeAt(d));)d++;return+l.substring(e,d)}function r(e,t){return n(e,!1,t)}function b(e,t){return n(e,!0,t)}function n(e,t,r){for(var n=0,a=0,i=!1,o=!1;n<e||t;){var s=l.charCodeAt(d);if(r&&95===s)v|=512,i?(i=!1,o=!0):c(o?O.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:O.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++;else{if(i=r,48<=s&&s<=57)a=16*a+s-48;else if(65<=s&&s<=70)a=16*a+s-65+10;else{if(!(97<=s&&s<=102))break;a=16*a+s-97+10}d++,n++,o=!1}}return n<e&&(a=-1),95===l.charCodeAt(d-1)&&c(O.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),a}function x(e){void 0===e&&(e=!1);for(var t=l.charCodeAt(d),r="",n=++d;;){if(p<=d){r+=l.substring(n,d),v|=4,c(O.Diagnostics.Unterminated_string_literal);break}var a=l.charCodeAt(d);if(a===t){r+=l.substring(n,d),d++;break}if(92!==a||e){if(z(a)&&!e){r+=l.substring(n,d),v|=4,c(O.Diagnostics.Unterminated_string_literal);break}d++}else r+=l.substring(n,d),r+=D(),n=d}return r}function k(){for(var e,t=96===l.charCodeAt(d),r=++d,n="";;){if(p<=d){n+=l.substring(r,d),v|=4,c(O.Diagnostics.Unterminated_template_literal),e=t?13:16;break}var a=l.charCodeAt(d);if(96===a){n+=l.substring(r,d),d++,e=t?13:16;break}if(36===a&&d+1<p&&123===l.charCodeAt(d+1)){n+=l.substring(r,d),d+=2,e=t?14:15;break}92!==a?13!==a?d++:(n+=l.substring(r,d),++d<p&&10===l.charCodeAt(d)&&d++,n+="\n",r=d):(n+=l.substring(r,d),n+=D(),r=d)}return O.Debug.assert(void 0!==e),y=n,e}function D(){if(p<=++d)return c(O.Diagnostics.Unexpected_end_of_text),"";var e,t,r=l.charCodeAt(d);switch(d++,r){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 d<p&&123===l.charCodeAt(d)?(v|=8,d++,e=b(1,!1),t=!1,e<0?(c(O.Diagnostics.Hexadecimal_digit_expected),t=!0):1114111<e&&(c(O.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),t=!0),p<=d?(c(O.Diagnostics.Unexpected_end_of_text),t=!0):125===l.charCodeAt(d)?d++:(c(O.Diagnostics.Unterminated_Unicode_escape_sequence),t=!0),t?"":function(e){if(O.Debug.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);var t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}(e)):S(4);case 120:return S(2);case 13:d<p&&10===l.charCodeAt(d)&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function S(e){var t=r(e,!1);return 0<=t?String.fromCharCode(t):(c(O.Diagnostics.Hexadecimal_digit_expected),"")}function C(){if(d+5<p&&117===l.charCodeAt(d+1)){var e=d;d+=2;var t=r(4,!1);return d=e,t}return-1}function T(){for(var e="",t=d;d<p;){var r=l.charCodeAt(d);if(H(r,i))d++;else{if(92!==r)break;if(!(0<=(r=C())&&H(r,i)))break;e+=l.substring(t,d),e+=String.fromCharCode(r),t=d+=6}}return e+=l.substring(t,d)}function E(){var e=y.length;if(2<=e&&e<=11){var t=y.charCodeAt(0);if(97<=t&&t<=122&&void 0!==(g=L.get(y)))return g}return g=71}function N(e){O.Debug.assert(2===e||8===e,"Expected either base 2 or base 8");for(var t=0,r=0,n=!1,a=!1;;){var i=l.charCodeAt(d);if(95!==i){n=!0;var o=i-48;if(!J(i)||e<=o)break;t=t*e+o,d++,r++,a=!1}else v|=512,n?(n=!1,a=!0):c(a?O.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:O.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++}return 0===r?-1:(95===l.charCodeAt(d-1)&&c(O.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),t)}function A(){for(f=d,v=0;;){if(p<=(m=d))return g=1;var e=l.charCodeAt(d);if(35===e&&0===d&&q(l,d)){if(d=V(l,d),o)continue;return g=6}switch(e){case 10:case 13:if(v|=1,o){d++;continue}return 13===e&&d+1<p&&10===l.charCodeAt(d+1)?d+=2:d++,g=4;case 9:case 11:case 12:case 32:if(o){d++;continue}for(;d<p&&B(l.charCodeAt(d));)d++;return g=5;case 33:return 61===l.charCodeAt(d+1)?61===l.charCodeAt(d+2)?(d+=3,g=35):(d+=2,g=33):(d++,g=51);case 34:case 39:return y=x(),g=9;case 96:return g=k();case 37:return 61===l.charCodeAt(d+1)?(d+=2,g=64):(d++,g=42);case 38:return 38===l.charCodeAt(d+1)?(d+=2,g=53):61===l.charCodeAt(d+1)?(d+=2,g=68):(d++,g=48);case 40:return d++,g=19;case 41:return d++,g=20;case 42:return 61===l.charCodeAt(d+1)?(d+=2,g=61):42===l.charCodeAt(d+1)?61===l.charCodeAt(d+2)?(d+=3,g=62):(d+=2,g=40):(d++,g=39);case 43:return 43===l.charCodeAt(d+1)?(d+=2,g=43):61===l.charCodeAt(d+1)?(d+=2,g=59):(d++,g=37);case 44:return d++,g=26;case 45:return 45===l.charCodeAt(d+1)?(d+=2,g=44):61===l.charCodeAt(d+1)?(d+=2,g=60):(d++,g=38);case 46:return J(l.charCodeAt(d+1))?(y=_(),g=8):46===l.charCodeAt(d+1)&&46===l.charCodeAt(d+2)?(d+=3,g=24):(d++,g=23);case 47:if(47===l.charCodeAt(d+1)){for(d+=2;d<p&&!z(l.charCodeAt(d));)d++;if(o)continue;return g=2}if(42===l.charCodeAt(d+1)){d+=2,42===l.charCodeAt(d)&&47!==l.charCodeAt(d+1)&&(v|=2);for(var t=!1;d<p;){var r=l.charCodeAt(d);if(42===r&&47===l.charCodeAt(d+1)){d+=2,t=!0;break}z(r)&&(v|=1),d++}if(t||c(O.Diagnostics.Asterisk_Slash_expected),o)continue;return t||(v|=4),g=3}return 61===l.charCodeAt(d+1)?(d+=2,g=63):(d++,g=41);case 48:var n;if(d+2<p&&(88===l.charCodeAt(d+1)||120===l.charCodeAt(d+1)))return d+=2,(n=b(1,!0))<0&&(c(O.Diagnostics.Hexadecimal_digit_expected),n=0),y=""+n,v|=64,g=8;if(d+2<p&&(66===l.charCodeAt(d+1)||98===l.charCodeAt(d+1)))return d+=2,(n=N(2))<0&&(c(O.Diagnostics.Binary_digit_expected),n=0),y=""+n,v|=128,g=8;if(d+2<p&&(79===l.charCodeAt(d+1)||111===l.charCodeAt(d+1)))return d+=2,(n=N(8))<0&&(c(O.Diagnostics.Octal_digit_expected),n=0),y=""+n,v|=256,g=8;if(d+1<p&&j(l.charCodeAt(d+1)))return y=""+h(),v|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return y=_(),g=8;case 58:return d++,g=56;case 59:return d++,g=25;case 60:if(K(l,d)){if(d=U(l,d,c),o)continue;return g=7}return 60===l.charCodeAt(d+1)?61===l.charCodeAt(d+2)?(d+=3,g=65):(d+=2,g=45):61===l.charCodeAt(d+1)?(d+=2,g=30):1===s&&47===l.charCodeAt(d+1)&&42!==l.charCodeAt(d+2)?(d+=2,g=28):(d++,g=27);case 61:if(K(l,d)){if(d=U(l,d,c),o)continue;return g=7}return 61===l.charCodeAt(d+1)?61===l.charCodeAt(d+2)?(d+=3,g=34):(d+=2,g=32):62===l.charCodeAt(d+1)?(d+=2,g=36):(d++,g=58);case 62:if(K(l,d)){if(d=U(l,d,c),o)continue;return g=7}return d++,g=29;case 63:return d++,g=55;case 91:return d++,g=21;case 93:return d++,g=22;case 94:return 61===l.charCodeAt(d+1)?(d+=2,g=70):(d++,g=50);case 123:return d++,g=17;case 124:if(K(l,d)){if(d=U(l,d,c),o)continue;return g=7}return 124===l.charCodeAt(d+1)?(d+=2,g=54):61===l.charCodeAt(d+1)?(d+=2,g=69):(d++,g=49);case 125:return d++,g=18;case 126:return d++,g=52;case 64:return d++,g=57;case 92:var a=C();return 0<=a&&W(a,i)?(d+=6,y=String.fromCharCode(a)+T(),g=E()):(c(O.Diagnostics.Invalid_character),d++,g=0);default:if(W(e,i)){for(d++;d<p&&H(e=l.charCodeAt(d),i);)d++;return y=l.substring(m,d),92===e&&(y+=T()),g=E()}if(B(e)){d++;continue}if(z(e)){v|=1,d++;continue}return c(O.Diagnostics.Invalid_character),d++,g=0}}}function P(){if(f=m=d,p<=d)return g=1;var e=l.charCodeAt(d);if(60===e)return 47===l.charCodeAt(d+1)?(d+=2,g=28):(d++,g=27);if(123===e)return d++,g=17;for(var t=0;d<p&&123!==(e=l.charCodeAt(d));){if(60===e){if(K(l,d))return d=U(l,d,c),g=7;break}z(e)&&0===t?t=-1:R(e)||(t=d),d++}return-1===t?11:10}function F(e,t){var r=d,n=f,a=m,i=g,o=y,s=v,c=e();return c&&!t||(d=r,f=n,m=a,g=i,y=o,v=s),c}function w(e,t,r){l=e||"",p=void 0===r?l.length:t+r,I(t||0)}function I(e){O.Debug.assert(0<=e),m=f=d=e,y=void(g=0),v=0}}}(ts||(ts={})),function(m){m.resolvingEmptyArray=[],m.emptyMap=m.createMap(),m.emptyUnderscoreEscapedMap=m.emptyMap,m.externalHelpersModuleNameText="tslib",m.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,a=r;n<a.length;n++){var i=a[n];if(i.kind===t)return i}};var t,e,r=(t="",{getText:function(){return t},write:e=function(e){return t+=e},rawWrite:e,writeTextOfNode:e,writeKeyword:e,writeOperator:e,writePunctuation:e,writeSpace:e,writeStringLiteral:e,writeLiteral:e,writeParameter:e,writeProperty:e,writeSymbol:e,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return t+=" "},increaseIndent:m.noop,decreaseIndent:m.noop,clear:function(){return t=""},trackSymbol:m.noop,reportInaccessibleThisError:m.noop,reportInaccessibleUniqueSymbolError:m.noop,reportPrivateInBaseOfClassExpression:m.noop});function n(e){return e.end-e.pos}function a(e){return function(e){if(!(262144&e.flags)){var t=0!=(32768&e.flags)||m.forEachChild(e,a);t&&(e.flags|=131072),e.flags|=262144}}(e),0!=(131072&e.flags)}function o(e){for(;e&&272!==e.kind;)e=e.parent;return e}function s(e,t){m.Debug.assert(0<=e);var r=m.getLineStarts(t),n=e,a=t.text;if(n+1===r.length)return a.length-1;var i=r[n],o=r[n+1]-1;for(m.Debug.assert(m.isLineBreak(a.charCodeAt(o)));i<=o&&m.isLineBreak(a.charCodeAt(o));)o--;return o}function c(e){return void 0===e||e.pos===e.end&&0<=e.pos&&1!==e.kind}function i(e){return!c(e)}function f(e,t){return 42===e.charCodeAt(t.pos+1)&&33===e.charCodeAt(t.pos+2)}function u(e,t,r){return c(e)?e.pos:m.isJSDocNode(e)?m.skipTrivia((t||o(e)).text,e.pos,!1,!0):r&&m.hasJSDocNodes(e)?u(e.jsDoc[0]):293===e.kind&&0<e._children.length?u(e._children[0],t,r):m.skipTrivia((t||o(e)).text,e.pos)}function _(e,t,r){return void 0===r&&(r=!1),l(e.text,t,r)}function l(e,t,r){return void 0===r&&(r=!1),c(t)?"":e.substring(r?t.pos:m.skipTrivia(e,t.pos),t.end)}function d(e,t){return void 0===t&&(t=!1),_(o(e),e,t)}function p(e){return e.pos}function g(e){var t=e.emitNode;return t&&t.flags}function y(e){return 2<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function v(e){var t=Se(e);return 230===t.kind&&267===t.parent.kind}function h(e){return m.isModuleDeclaration(e)&&(9===e.name.kind||x(e))}function b(e){return m.isModuleDeclaration(e)&&9===e.name.kind}function x(e){return!!(512&e.flags)}function k(e){switch(e.parent.kind){case 272:return m.isExternalModule(e.parent);case 238:return h(e.parent.parent)&&m.isSourceFile(e.parent.parent.parent)&&!m.isExternalModule(e.parent.parent.parent)}return!1}function D(e,t){switch(e.kind){case 272:case 239:case 267:case 237:case 218:case 219:case 220:case 154:case 153:case 155:case 156:case 232:case 190:case 191:return!0;case 211:return t&&!m.isFunctionLike(t)}return!1}function S(e){return 0===n(e)?"(Missing)":d(e)}function C(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return y(e.text);case 146:return ye(e.expression)?y(e.expression.text):void 0;default:m.Debug.assertNever(e)}}function T(e,t,r,n,a,i,o){var s=N(e,t);return m.createFileDiagnostic(e,s.start,s.length,r,n,a,i,o)}function E(e,t){var r=m.createScanner(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();var n=r.getTokenPos();return m.createTextSpanFromBounds(n,r.getTextPos())}function N(e,t){var r=t;switch(t.kind){case 272:var n=m.skipTrivia(e.text,0,!1);return n===e.text.length?m.createTextSpan(0,0):E(e,n);case 230:case 180:case 233:case 203:case 234:case 237:case 236:case 271:case 232:case 190:case 153:case 155:case 156:case 235:r=t.name;break;case 191:return function(e,t){var r=m.skipTrivia(e.text,t.pos);if(t.body&&211===t.body.kind){var n=m.getLineAndCharacterOfPosition(e,t.body.pos).line;if(n<m.getLineAndCharacterOfPosition(e,t.body.end).line)return m.createTextSpan(r,s(n,e)-r+1)}return m.createTextSpanFromBounds(r,t.end)}(e,t)}if(void 0===r)return E(e,t.pos);var a=c(r),i=a?r.pos:m.skipTrivia(e.text,r.pos);return a?(m.Debug.assert(i===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),m.Debug.assert(i===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(m.Debug.assert(i>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),m.Debug.assert(i<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),m.createTextSpanFromBounds(i,r.end)}function A(e){return!!(2&m.getCombinedNodeFlags(e))||!!(2048&m.getCombinedModifierFlags(e))}m.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},m.getFullWidth=n,m.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},m.setResolvedModule=function(e,t,r){e.resolvedModules||(e.resolvedModules=m.createMap()),e.resolvedModules.set(t,r)},m.setResolvedTypeReferenceDirective=function(e,t,r){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=m.createMap()),e.resolvedTypeReferenceDirectiveNames.set(t,r)},m.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||r&&n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},m.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},m.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},m.hasChangesInResolutions=function(e,t,r,n){m.Debug.assert(e.length===t.length);for(var a=0;a<e.length;a++){var i=t[a],o=r&&r.get(e[a]);if(o?!i||!n(o,i):i)return!0}return!1},m.containsParseError=a,m.getSourceFileOfNode=o,m.isStatementWithLocals=function(e){switch(e.kind){case 211:case 239:case 218:case 219:case 220:return!0}return!1},m.getStartPositionOfLine=function(e,t){return m.Debug.assert(0<=e),m.getLineStarts(t)[e]},m.nodePosToString=function(e){var t=o(e),r=m.getLineAndCharacterOfPosition(t,e.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},m.getEndLinePosition=s,m.nodeIsMissing=c,m.nodeIsPresent=i,m.isRecognizedTripleSlashComment=function(e,t,r){if(47===e.charCodeAt(t+1)&&t+2<r&&47===e.charCodeAt(t+2)){var n=e.substring(t,r);return!!(n.match(m.fullTripleSlashReferencePathRegEx)||n.match(m.fullTripleSlashAMDReferencePathRegEx)||n.match(P)||n.match(O))}return!1},m.isPinnedComment=f,m.getTokenPosOfNode=u,m.getNonDecoratorTokenPosOfNode=function(e,t){return c(e)||!e.decorators?u(e,t):m.skipTrivia((t||o(e)).text,e.decorators.end)},m.getSourceTextOfNodeFromSourceFile=_,m.getTextOfNodeFromSourceText=l,m.getTextOfNode=d,m.indexOfNode=function(e,t){return m.binarySearch(e,t,p,m.compareValues)},m.getEmitFlags=g,m.getLiteralText=function(e,t){if(!Ce(e)&&e.parent&&!(m.isNumericLiteral(e)&&512&e.numericLiteralFlags))return _(t,e);var r=16777216&g(e)?Ie:Re;switch(e.kind){case 9:return e.singleQuote?"'"+r(e.text,39)+"'":'"'+r(e.text,34)+'"';case 13:return"`"+r(e.text,96)+"`";case 14:return"`"+r(e.text,96)+"${";case 15:return"}"+r(e.text,96)+"${";case 16:return"}"+r(e.text,96)+"`";case 8:case 12:return e.text}m.Debug.fail("Literal kind '"+e.kind+"' not accounted for.")},m.getTextOfConstantValue=function(e){return m.isString(e)?'"'+Re(e)+'"':""+e},m.escapeLeadingUnderscores=y,m.escapeIdentifier=function(e){return e},m.makeIdentifierFromModuleName=function(e){return m.getBaseFileName(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},m.isBlockOrCatchScoped=function(e){return 0!=(3&m.getCombinedNodeFlags(e))||v(e)},m.isCatchClauseVariableDeclarationOrBindingElement=v,m.isAmbientModule=h,m.isModuleWithStringLiteralName=b,m.isNonGlobalAmbientModule=function(e){return m.isModuleDeclaration(e)&&m.isStringLiteral(e.name)},m.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&237===t.kind&&!t.body;var t},m.isBlockScopedContainerTopLevel=function(e){return 272===e.kind||237===e.kind||m.isFunctionLike(e)},m.isGlobalScopeAugmentation=x,m.isExternalModuleAugmentation=function(e){return h(e)&&k(e)},m.isModuleAugmentationExternal=k,m.isEffectiveExternalModule=function(e,t){return m.isExternalModule(e)||t.isolatedModules||m.getEmitModuleKind(t)===m.ModuleKind.CommonJS&&!!e.commonJsModuleIndicator},m.isBlockScope=D,m.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 157:case 158:case 152:case 159:case 162:case 163:case 280:case 233:case 203:case 234:case 235:case 290:case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return m.assertTypeIsNever(e),!1}},m.isAnyImportSyntax=function(e){switch(e.kind){case 242:case 241:return!0;default:return!1}},m.getEnclosingBlockScopeContainer=function(e){for(var t=e.parent;t;){if(D(t,t.parent))return t;t=t.parent}},m.declarationNameToString=S,m.getNameFromIndexInfo=function(e){return e.declaration?S(e.declaration.parameters[0].name):void 0},m.getTextOfPropertyName=C,m.entityNameToString=function e(t){switch(t.kind){case 71:return 0===n(t)?m.idText(t):d(t);case 145:return e(t.left)+"."+e(t.right);case 183:return e(t.expression)+"."+e(t.name)}},m.createDiagnosticForNode=function(e,t,r,n,a,i){return T(o(e),e,t,r,n,a,i)},m.createDiagnosticForNodeArray=function(e,t,r,n,a,i,o){var s=m.skipTrivia(e.text,t.pos);return m.createFileDiagnostic(e,s,t.end-s,r,n,a,i,o)},m.createDiagnosticForNodeInSourceFile=T,m.createDiagnosticForNodeSpan=function(e,t,r,n,a,i,o,s){var c=m.skipTrivia(e.text,t.pos);return m.createFileDiagnostic(e,c,r.end-c,n,a,i,o,s)},m.createDiagnosticForNodeFromMessageChain=function(e,t){var r=o(e),n=N(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}},m.getSpanOfTokenAtPosition=E,m.getErrorSpanForNode=N,m.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},m.isConstEnumDeclaration=function(e){return 236===e.kind&&A(e)},m.isConst=A,m.isLet=function(e){return!!(1&m.getCombinedNodeFlags(e))},m.isSuperCall=function(e){return 185===e.kind&&97===e.expression.kind},m.isImportCall=function(e){return 185===e.kind&&91===e.expression.kind},m.isPrologueDirective=function(e){return 214===e.kind&&9===e.expression.kind},m.getLeadingCommentRangesOfNode=function(e,t){return 10!==e.kind?m.getLeadingCommentRanges(t.text,e.pos):void 0},m.getJSDocCommentRanges=function(e,t){var r=148===e.kind||147===e.kind||190===e.kind||191===e.kind||189===e.kind?m.concatenate(m.getTrailingCommentRanges(t,e.pos),m.getLeadingCommentRanges(t,e.pos)):m.getLeadingCommentRanges(t,e.pos);return m.filter(r,function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)})},m.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var P=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;m.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var F,w,I,O=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function M(e){if(160<=e.kind&&e.kind<=177)return!0;switch(e.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 194!==e.parent.kind;case 205:return!ft(e);case 147:return 176===e.parent.kind||171===e.parent.kind;case 71:145===e.parent.kind&&e.parent.right===e?e=e.parent:183===e.parent.kind&&e.parent.name===e&&(e=e.parent),m.Debug.assert(71===e.kind||145===e.kind||183===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 183:case 99:var t=e.parent;if(164===t.kind)return!1;if(160<=t.kind&&t.kind<=177)return!0;switch(t.kind){case 205:return!ft(t);case 147:return e===t.constraint;case 151:case 150:case 148:case 230:return e===t.type;case 232:case 190:case 191:case 154:case 153:case 152:case 155:case 156:return e===t.type;case 157:case 158:case 159:case 188:return e===t.type;case 185:case 186:return m.contains(t.typeArguments,e);case 187:return!1}}return!1}function L(e){if(e)switch(e.kind){case 180:case 271:case 148:case 268:case 151:case 150:case 269:case 230:return!0}return!1}function R(e){return 231===e.parent.kind&&212===e.parent.parent.kind}function B(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 146:if(m.isClassLike(e.parent.parent))return e;e=e.parent;break;case 149:148===e.parent.kind&&m.isClassElement(e.parent.parent)?e=e.parent.parent:m.isClassElement(e.parent)&&(e=e.parent);break;case 191:if(!t)continue;case 232:case 190:case 237:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 236:case 272:return e}}}function z(e,t,r){switch(e.kind){case 233:return!0;case 151:return 233===t.kind;case 155:case 156:case 153:return void 0!==e.body&&233===t.kind;case 148:return void 0!==t.body&&(154===t.kind||153===t.kind||156===t.kind)&&233===r.kind}return!1}function J(e,t,r){return void 0!==e.decorators&&z(e,t,r)}function j(e,t,r){return J(e,t,r)||K(e,t)}function K(t,r){switch(t.kind){case 233:return m.forEach(t.members,function(e){return j(e,t,r)});case 153:case 156:return m.forEach(t.parameters,function(e){return J(e,t,r)})}}function U(e){var t=e.parent;return(255===t.kind||254===t.kind||256===t.kind)&&t.tagName===e}function q(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 206:case 188:case 207:case 189:case 190:case 203:case 191:case 194:case 192:case 193:case 196:case 197:case 198:case 199:case 202:case 200:case 13:case 204:case 253:case 254:case 257:case 201:case 195:case 208:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||U(e);case 71:if(164===e.parent.kind||U(e))return!0;case 8:case 9:case 99:return V(e);default:return!1}}function V(e){var t=e.parent;switch(t.kind){case 230:case 148:case 151:case 150:case 271:case 268:case 180:return t.initializer===e;case 214:case 215:case 216:case 217:case 223:case 224:case 225:case 264:case 227:return t.expression===e;case 218:var r=t;return r.initializer===e&&231!==r.initializer.kind||r.condition===e||r.incrementor===e;case 219:case 220:var n=t;return n.initializer===e&&231!==n.initializer.kind||n.expression===e;case 188:case 206:case 209:case 146:return e===t.expression;case 149:case 263:case 262:case 270:return!0;case 205:return t.expression===e&&ft(t);default:return q(t)}}function W(e){return 241===e.kind&&252===e.moduleReference.kind}function H(e){return G(e)}function G(e){return e&&!!(65536&e.flags)}function X(e){if(e&&m.isVariableDeclaration(e)&&e.initializer)return Y(e.initializer,!1)||m.isIdentifier(e.name)&&Z(e.name,e.initializer,!1)}function Q(e){if(e&&e.parent&&m.isBinaryExpression(e.parent)&&58===e.parent.operatorToken.kind){var t=m.isPropertyAccessExpression(e.parent.left)&&"prototype"===e.parent.left.name.escapedText;return Y(e.parent.right,t)||Z(e.parent.left,e.parent.right,t)}}function Y(e,t){if(m.isCallExpression(e)){var r=le(e.expression);return 190===r.kind||191===r.kind?e:void 0}return 190===e.kind||203===e.kind?e:m.isObjectLiteralExpression(e)&&(0===e.properties.length||t)?e:void 0}function Z(e,t,r){var n=m.isBinaryExpression(t)&&54===t.operatorToken.kind&&Y(t.right,r);if(n&&function e(t,r){if(m.isIdentifier(t)&&m.isIdentifier(r))return t.escapedText===r.escapedText;if(m.isIdentifier(t)&&m.isPropertyAccessExpression(r))return(99===r.expression.kind||m.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&e(t,r.name);if(m.isPropertyAccessExpression(t)&&m.isPropertyAccessExpression(r))return t.name.escapedText===r.name.escapedText&&e(t.expression,r.expression);return!1}(e,t.left))return n}function $(e){if(!G(e)||58!==e.operatorToken.kind||!m.isPropertyAccessExpression(e.left))return 0;var t=e.left;if(99===t.expression.kind)return 4;if(m.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText)return 2;if(mt(t.expression)){if("prototype"===t.name.escapedText&&m.isObjectLiteralExpression(e.right))return 6;if(m.isPropertyAccessExpression(t.expression)&&"prototype"===t.expression.name.escapedText)return 3;for(var r=t;m.isPropertyAccessExpression(r.expression);)r=r.expression;m.Debug.assert(m.isIdentifier(r.expression));var n=r.expression;return"exports"===n.escapedText||"module"===n.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function ee(e){return m.isExpressionStatement(e)&&e.expression&&m.isBinaryExpression(e.expression)&&58===e.expression.operatorToken.kind&&e.expression.right}function te(e){return m.isExpressionStatement(e)&&m.isBinaryExpression(e.expression)&&0!==$(e.expression)&&m.isBinaryExpression(e.expression.right)&&54===e.expression.right.operatorToken.kind&&e.expression.right.right}function re(e){switch(e.kind){case 212:var t=ne(e);return t&&t.initializer;case 151:return e.initializer}}function ne(e){return m.isVariableStatement(e)&&0<e.declarationList.declarations.length&&e.declarationList.declarations[0]}function ae(e){return 237===e.kind&&e.body&&237===e.body.kind&&e.body}function ie(e){var t=oe(e),r=te(t)||ee(t)||re(t)||ne(t)||ae(t)||t;return r&&m.isFunctionLike(r)?r:void 0}function oe(e){return m.Debug.assert(282===e.parent.kind),e.parent.parent}function se(e){return void 0!==e.dotDotDotToken}function ce(e){for(var t=e.parent;;){switch(t.kind){case 198:var r=t.operatorToken.kind;return lt(r)&&t.left===e?58===r?1:2:0;case 196:case 197:var n=t.operator;return 43===n||44===n?2:0;case 219:case 220:return t.initializer===e?1:0;case 189:case 181:case 202:case 207:e=t;break;case 269:if(t.name!==e)return 0;e=t.parent;break;case 268:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ue(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function _e(e){return ue(e,189)}function le(e){for(;189===e.kind;)e=e.expression;return e}function de(e){return mt(e.expression)}function pe(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a.token===t)return a}}function fe(e){return 72<=e&&e<=144}function me(e){return 117<=e&&e<=144}function ge(e){return fe(e)&&!me(e)}function ye(e){var t=e.kind;return 9===t||8===t}function ve(e){var t=m.getNameOfDeclaration(e);return t&&he(t)}function he(e){return 146===e.kind&&!ye(e.expression)&&!be(e.expression)}function be(e){return m.isPropertyAccessExpression(e)&&De(e.expression)}function xe(e){if(71===e.kind)return e.escapedText;if(9===e.kind||8===e.kind)return y(e.text);if(146===e.kind){var t=e.expression;if(be(t))return ke(m.idText(t.name));if(9===t.kind||8===t.kind)return y(t.text)}}function ke(e){return"__@"+e}function De(e){return 71===e.kind&&"Symbol"===e.escapedText}function Se(e){for(;180===e.kind;)e=e.parent.parent;return e}function Ce(e){return m.positionIsSynthesized(e.pos)||m.positionIsSynthesized(e.end)}function Te(e,t,r){switch(e){case 186:return r?0:1;case 196:case 193:case 194:case 192:case 195:case 199:case 201:return 1;case 198:switch(t){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function Ee(e){return 198===e.kind?e.operatorToken.kind:196===e.kind||197===e.kind?e.operator:e.kind}function Ne(e,t,r){switch(e){case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 181:case 182:case 190:case 191:case 203:case 253:case 254:case 257:case 12:case 13:case 200:case 189:case 204:return 19;case 187:case 183:case 184:return 18;case 186:return r?18:17;case 185:return 17;case 197:return 16;case 196:case 193:case 194:case 192:case 195:return 15;case 198:switch(t){case 51:case 52:return 15;case 40:case 39:case 41:case 42:return 14;case 37:case 38:return 13;case 45:case 46:case 47:return 12;case 27:case 30:case 29:case 31:case 92:case 93:return 11;case 32:case 34:case 33:case 35:return 10;case 48:return 9;case 50:return 8;case 49:return 7;case 53:return 6;case 54:return 5;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;case 26:return 0;default:return-1}case 199:return 4;case 201:return 2;case 202:return 1;case 296:return 0;default:return-1}}m.isPartOfTypeNode=M,m.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},m.forEachReturnStatement=function(e,r){return function e(t){switch(t.kind){case 223:return r(t);case 239:case 211:case 215:case 216:case 217:case 218:case 219:case 220:case 224:case 225:case 264:case 265:case 226:case 228:case 267:return m.forEachChild(t,e)}}(e)},m.forEachYieldExpression=function(e,n){return function e(t){switch(t.kind){case 201:n(t);var r=t.expression;return void(r&&e(r));case 236:case 234:case 237:case 235:case 233:case 203:return;default:if(m.isFunctionLike(t)){if(t.name&&146===t.name.kind)return void e(t.name.expression)}else M(t)||m.forEachChild(t,e)}}(e)},m.getRestParameterElementType=function(e){return e&&166===e.kind?e.elementType:e&&161===e.kind?m.singleOrUndefined(e.typeArguments):void 0},m.getMembersOfDeclaration=function(e){switch(e.kind){case 234:case 233:case 203:case 165:return e.members;case 182:return e.properties}},m.isVariableLike=L,m.isVariableDeclarationInVariableStatement=R,m.isValidESSymbolDeclaration=function(e){return m.isVariableDeclaration(e)?A(e)&&m.isIdentifier(e.name)&&R(e):m.isPropertyDeclaration(e)?ot(e)&&it(e):m.isPropertySignature(e)&&ot(e)},m.introducesArgumentsExoticObject=function(e){switch(e.kind){case 153:case 152:case 154:case 155:case 156:case 232:case 190:return!0}return!1},m.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),226!==e.statement.kind)return e.statement;e=e.statement}},m.isFunctionBlock=function(e){return e&&211===e.kind&&m.isFunctionLike(e.parent)},m.isObjectLiteralMethod=function(e){return e&&153===e.kind&&182===e.parent.kind},m.isObjectLiteralOrClassExpressionMethod=function(e){return 153===e.kind&&(182===e.parent.kind||203===e.parent.kind)},m.isIdentifierTypePredicate=function(e){return e&&1===e.kind},m.isThisTypePredicate=function(e){return e&&0===e.kind},m.getPropertyAssignment=function(e,r,n){return m.filter(e.properties,function(e){if(268===e.kind){var t=C(e.name);return r===t||n&&n===t}})},m.getContainingFunction=function(e){return m.findAncestor(e.parent,m.isFunctionLike)},m.getContainingClass=function(e){return m.findAncestor(e.parent,m.isClassLike)},m.getThisContainer=B,m.getNewTargetContainer=function(e){var t=B(e,!1);if(t)switch(t.kind){case 154:case 232:case 190:return t}},m.getSuperContainer=function(e,t){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 146:e=e.parent;break;case 232:case 190:case 191:if(!t)continue;case 151:case 150:case 153:case 152:case 154:case 155:case 156:return e;case 149:148===e.parent.kind&&m.isClassElement(e.parent.parent)?e=e.parent.parent:m.isClassElement(e.parent)&&(e=e.parent)}}},m.getImmediatelyInvokedFunctionExpression=function(e){if(190===e.kind||191===e.kind){for(var t=e,r=e.parent;189===r.kind;)r=(t=r).parent;if(185===r.kind&&r.expression===t)return r}},m.isSuperProperty=function(e){var t=e.kind;return(183===t||184===t)&&97===e.expression.kind},m.isThisProperty=function(e){var t=e.kind;return(183===t||184===t)&&99===e.expression.kind},m.getEntityNameFromTypeNode=function(e){switch(e.kind){case 161:return e.typeName;case 205:return mt(e.expression)?e.expression:void 0;case 71:case 145:return e}},m.getInvokedExpression=function(e){switch(e.kind){case 187:return e.tag;case 255:case 254:return e.tagName;default:return e.expression}},m.nodeCanBeDecorated=z,m.nodeIsDecorated=J,m.nodeOrChildIsDecorated=j,m.childIsDecorated=K,m.isJSXTagName=U,m.isExpressionNode=q,m.isInExpressionContext=V,m.isExternalModuleImportEqualsDeclaration=W,m.getExternalModuleImportEqualsDeclarationExpression=function(e){return m.Debug.assert(W(e)),e.moduleReference.expression},m.isInternalModuleImportEqualsDeclaration=function(e){return 241===e.kind&&252!==e.moduleReference.kind},m.isSourceFileJavaScript=H,m.isInJavaScriptFile=G,m.isInJSDoc=function(e){return e&&!!(1048576&e.flags)},m.isJSDocIndexSignature=function(e){return m.isTypeReferenceNode(e)&&m.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(137===e.typeArguments[0].kind||134===e.typeArguments[0].kind)},m.isRequireCall=function(e,t){if(185!==e.kind)return!1;var r=e,n=r.expression,a=r.arguments;if(71!==n.kind||"require"!==n.escapedText)return!1;if(1!==a.length)return!1;var i=a[0];return!t||9===i.kind||13===i.kind},m.isSingleOrDoubleQuote=function(e){return 39===e||34===e},m.isStringDoubleQuoted=function(e,t){return 34===_(t,e).charCodeAt(0)},m.getJSInitializerSymbol=function(e){if(!e||!e.valueDeclaration)return e;var t=e.valueDeclaration,r=X(t)||Q(t);return r&&r.symbol?r.symbol:e},m.getDeclaredJavascriptInitializer=X,m.getAssignedJavascriptInitializer=Q,m.getJavascriptInitializer=Y,m.getOuterNameOfJsInitializer=function(e){if(m.isBinaryExpression(e.parent)){var t=54===e.parent.operatorToken.kind&&m.isBinaryExpression(e.parent.parent)?e.parent.parent:e.parent;if(58===t.operatorToken.kind&&m.isIdentifier(t.left))return t.left}else if(m.isVariableDeclaration(e.parent))return e.parent.name},m.getRightMostAssignedExpression=function(e){for(;pt(e,!0);)e=e.right;return e},m.isExportsIdentifier=function(e){return m.isIdentifier(e)&&"exports"===e.escapedText},m.isModuleExportsPropertyAccessExpression=function(e){return m.isPropertyAccessExpression(e)&&m.isIdentifier(e.expression)&&"module"===e.expression.escapedText&&"exports"===e.name.escapedText},m.getSpecialPropertyAssignmentKind=$,m.isSpecialPropertyDeclaration=function(e){return G(e)&&e.parent&&214===e.parent.kind&&!!m.getJSDocTypeTag(e.parent)},m.getExternalModuleName=function(e){if(242===e.kind)return e.moduleSpecifier;if(241===e.kind){var t=e.moduleReference;if(252===t.kind)return t.expression}return 248===e.kind?e.moduleSpecifier:b(e)?e.name:void 0},m.getNamespaceDeclarationNode=function(e){switch(e.kind){case 242:return e.importClause&&m.tryCast(e.importClause.namedBindings,m.isNamespaceImport);case 241:return e;case 248:return;default:return m.Debug.assertNever(e)}},m.isDefaultImport=function(e){return 242===e.kind&&e.importClause&&!!e.importClause.name},m.hasQuestionToken=function(e){if(e)switch(e.kind){case 148:case 153:case 152:case 269:case 268:case 151:case 150:return void 0!==e.questionToken}return!1},m.isJSDocConstructSignature=function(e){return 280===e.kind&&0<e.parameters.length&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},m.getJSDocCommentsAndTags=function(e){var n;return function e(t){var r=t.parent;r&&(268===r.kind||151===r.kind||ae(r))&&e(r),r&&r.parent&&(ne(r.parent)===t||ee(r.parent))&&e(r.parent),r&&r.parent&&r.parent.parent&&(re(r.parent.parent)===t||te(r.parent.parent))&&e(r.parent.parent),(m.isBinaryExpression(t)&&0!==$(t)||183===t.kind&&t.parent&&214===t.parent.kind)&&e(r),148===t.kind&&(n=m.addRange(n,m.getJSDocParameterTags(t))),L(t)&&m.hasInitializer(t)&&m.hasJSDocNodes(t.initializer)&&(n=m.addRange(n,t.initializer.jsDoc)),m.hasJSDocNodes(t)&&(n=m.addRange(n,t.jsDoc))}(e),n||m.emptyArray},m.getParameterSymbolFromJSDoc=function(e){if(e.symbol)return e.symbol;if(m.isIdentifier(e.name)){var t=e.name.escapedText,r=ie(e);if(r){var n=m.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===t});return n&&n.symbol}}},m.getHostSignatureFromJSDoc=ie,m.getJSDocHost=oe,m.getTypeParameterFromJsDoc=function(e){var t=e.name.escapedText,r=e.parent.parent.parent.typeParameters;return m.find(r,function(e){return e.name.escapedText===t})},m.hasRestParameter=function(e){var t=m.lastOrUndefined(e.parameters);return t&&se(t)},m.isRestParameter=se,(F=m.AssignmentKind||(m.AssignmentKind={}))[F.None=0]="None",F[F.Definite=1]="Definite",F[F.Compound=2]="Compound",m.getAssignmentTargetKind=ce,m.isAssignmentTarget=function(e){return 0!==ce(e)},m.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 211:case 212:case 224:case 215:case 225:case 239:case 264:case 265:case 226:case 218:case 219:case 220:case 216:case 217:case 228:case 267:return!0}return!1},m.walkUpParenthesizedTypes=function(e){return ue(e,172)},m.walkUpParenthesizedExpressions=_e,m.skipParentheses=le,m.isDeleteTarget=function(e){return(183===e.kind||184===e.kind)&&(e=_e(e.parent))&&192===e.kind},m.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},m.isDeclarationName=function(e){return!m.isSourceFile(e)&&!m.isBindingPattern(e)&&m.isDeclaration(e.parent)&&e.parent.name===e},m.isAnyDeclarationName=function(e){switch(e.kind){case 71:case 9:case 8:if(m.isDeclaration(e.parent))return e.parent.name===e;var t=e.parent.parent;return m.isBinaryExpression(t)&&0!==$(t)&&m.getNameOfDeclaration(t)===e;default:return!1}},m.isLiteralComputedPropertyDeclarationName=function(e){return(9===e.kind||8===e.kind)&&146===e.parent.kind&&m.isDeclaration(e.parent.parent)},m.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 271:case 268:case 183:return t.name===e;case 145:if(t.right===e){for(;145===t.kind;)t=t.parent;return 164===t.kind}return!1;case 180:case 246:return t.propertyName===e;case 250:case 260:return!0}return!1},m.isAliasSymbolDeclaration=function(e){return 241===e.kind||240===e.kind||243===e.kind&&!!e.name||244===e.kind||246===e.kind||250===e.kind||247===e.kind&&de(e)},m.exportAssignmentIsAlias=de,m.getClassExtendsHeritageClauseElement=function(e){var t=pe(e.heritageClauses,85);return t&&0<t.types.length?t.types[0]:void 0},m.getClassImplementsHeritageClauseElements=function(e){var t=pe(e.heritageClauses,108);return t?t.types:void 0},m.getInterfaceBaseTypeNodes=function(e){var t=pe(e.heritageClauses,85);return t?t.types:void 0},m.getHeritageClause=pe,m.tryResolveScriptReference=function(e,t,r){if(!e.getCompilerOptions().noResolve){var n=m.isRootedDiskPath(r.fileName)?r.fileName:m.combinePaths(m.getDirectoryPath(t.fileName),r.fileName);return e.getSourceFile(n)}},m.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},m.isKeyword=fe,m.isContextualKeyword=me,m.isNonContextualKeyword=ge,m.isStringANonContextualKeyword=function(e){var t=m.stringToToken(e);return void 0!==t&&ge(t)},m.isTrivia=function(e){return 2<=e&&e<=7},(w=m.FunctionFlags||(m.FunctionFlags={}))[w.Normal=0]="Normal",w[w.Generator=1]="Generator",w[w.Async=2]="Async",w[w.Invalid=4]="Invalid",w[w.AsyncGenerator=3]="AsyncGenerator",m.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 232:case 190:case 153:e.asteriskToken&&(t|=1);case 191:at(e,256)&&(t|=2)}return e.body||(t|=4),t},m.isAsyncFunction=function(e){switch(e.kind){case 232:case 190:case 191:case 153:return void 0!==e.body&&void 0===e.asteriskToken&&at(e,256)}return!1},m.isStringOrNumericLiteral=ye,m.hasDynamicName=ve,m.isDynamicName=he,m.isWellKnownSymbolSyntactically=be,m.getPropertyNameForPropertyNameNode=xe,m.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},m.getTextOfIdentifierOrLiteral=function(e){return 71===e.kind?m.idText(e):e.text},m.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:y(e.text)},m.getPropertyNameForKnownSymbolName=ke,m.isKnownSymbol=function(e){return m.startsWith(e.escapedName,"__@")},m.isESSymbolIdentifier=De,m.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},m.isParameterDeclaration=function(e){return 148===Se(e).kind},m.getRootDeclaration=Se,m.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 154===t||190===t||232===t||191===t||153===t||155===t||156===t||237===t||272===t},m.nodeIsSynthesized=Ce,m.getOriginalSourceFile=function(e){return m.getParseTreeNode(e,m.isSourceFile)||e},(I=m.Associativity||(m.Associativity={}))[I.Left=0]="Left",I[I.Right=1]="Right",m.getExpressionAssociativity=function(e){var t=Ee(e),r=186===e.kind&&void 0!==e.arguments;return Te(e.kind,t,r)},m.getOperatorAssociativity=Te,m.getExpressionPrecedence=function(e){var t=Ee(e),r=186===e.kind&&void 0!==e.arguments;return Ne(e.kind,t,r)},m.getOperator=Ee,m.getOperatorPrecedence=Ne,m.createDiagnosticCollection=function(){var r=[],n=[],a=m.createMap(),i=!1,o=0;return{add:function(e){var t;e.file?(t=a.get(e.file.fileName))||(t=[],a.set(e.file.fileName,t),m.insertSorted(n,e.file.fileName,m.compareStringsCaseSensitive)):(i&&(i=!1,r=r.slice()),t=r),m.insertSorted(t,e,m.compareDiagnostics),o++},getGlobalDiagnostics:function(){return i=!0,r},getDiagnostics:function(e){if(e)return a.get(e)||[];var t=m.flatMap(n,function(e){return a.get(e)});return r.length&&t.unshift.apply(t,r),t},getModificationCount:function(){return o},reattachFileDiagnostics:function(t){m.forEach(a.get(t.fileName),function(e){return e.file=t})}}};var Ae=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Pe=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Fe=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,we=m.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","":"\\u0085"});function Ie(e,t){var r=96===t?Fe:39===t?Pe:Ae;return e.replace(r,Oe)}function Oe(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return 48<=n&&n<=57?"\\x00":"\\0"}return we.get(e)||Me(e.charCodeAt(0))}function Me(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}m.escapeString=Ie,m.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return 97<=t&&t<=122||-1<e.indexOf("-")};var Le=/[^\u0000-\u007F]/g;function Re(e,t){return e=Ie(e,t),Le.test(e)?e.replace(Le,function(e){return Me(e.charCodeAt(0))}):e}m.escapeNonAsciiString=Re;var Be=["","    "];function ze(e){return void 0===Be[e]&&(Be[e]=ze(e-1)+Be[1]),Be[e]}function Je(){return Be[1].length}function je(e,t){return t.moduleName||Ke(e,t.fileName)}function Ke(t,e){var r=function(e){return t.getCanonicalFileName(e)},n=m.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=m.getNormalizedAbsolutePath(e,t.getCurrentDirectory()),i=m.getRelativePathToDirectoryOrUrl(n,a,n,r,!1);return m.removeFileExtension(i)}function Ue(e,t,r){return!(t.noEmitForJsFiles&&H(e)||e.isDeclarationFile||r(e))}function qe(e,t,r){var n=m.getNormalizedAbsolutePath(e.fileName,t.getCurrentDirectory()),a=t.getCommonSourceDirectory();return n=0===t.getCanonicalFileName(n).indexOf(t.getCanonicalFileName(a))?n.substring(a.length):n,m.combinePaths(r,n)}function Ve(e,t){return m.getLineAndCharacterOfPosition(e,t).line}function We(e,t){return m.computeLineAndCharacterOfPosition(e,t).line}function He(e){if(e&&0<e.parameters.length){var t=2===e.parameters.length&&Ge(e.parameters[0]);return e.parameters[t?1:0]}}function Ge(e){return Xe(e.name)}function Xe(e){return e&&71===e.kind&&Qe(e)}function Qe(e){return 99===e.originalKeywordKind}function Ye(e){return e.type||(G(e)?m.getJSDocType(e):void 0)}function Ze(e){var t=m.getJSDocTemplateTag(e);return t&&t.typeParameters}function $e(e,t,r,n){et(e,t,r.pos,n)}function et(e,t,r,n){n&&n.length&&r!==n[0].pos&&We(e,r)!==We(e,n[0].pos)&&t.writeLine()}function tt(e,t,r,n,a,i,o,s){if(n&&0<n.length){a&&r.write(" ");for(var c=!1,u=0,_=n;u<_.length;u++){var l=_[u];c&&(r.write(" "),c=!1),s(e,t,r,l.pos,l.end,o),l.hasTrailingNewLine?r.writeLine():c=!0}c&&i&&r.write(" ")}}function rt(e,t,r,n,a,i){var o=Math.min(t,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(r.write(s),o!==t&&r.writeLine()):r.writeLiteral(n)}function nt(e,t,r){for(var n=0;t<r&&m.isWhiteSpaceSingleLine(e.charCodeAt(t));t++)9===e.charCodeAt(t)?n+=Je()-n%Je():n++;return n}function at(e,t){return!!st(e,t)}function it(e){return at(e,32)}function ot(e){return at(e,64)}function st(e,t){return ct(e)&t}function ct(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=ut(e);return e.modifierFlagsCache=536870912|t,t}function ut(e){var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++){t|=_t(n[r].kind)}return(4&e.flags||71===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function _t(e){switch(e){case 115:return 32;case 114:return 4;case 113:return 16;case 112:return 8;case 117:return 128;case 84:return 1;case 124:return 2;case 76:return 2048;case 79:return 512;case 120:return 256;case 132:return 64}return 0}function lt(e){return 58<=e&&e<=70}function dt(e){if(205===e.kind&&85===e.parent.token&&m.isClassLike(e.parent.parent))return e.parent.parent}function pt(e,t){return m.isBinaryExpression(e)&&(t?58===e.operatorToken.kind:lt(e.operatorToken.kind))&&m.isLeftHandSideExpression(e.left)}function ft(e){return void 0!==dt(e)}function mt(e){return 71===e.kind||183===e.kind&&mt(e.expression)}m.getIndentString=ze,m.getIndentSize=Je,m.createTextWriter=function(e){var r,t,n,a,i;function o(e){e&&e.length&&(n&&(r+=ze(t),n=!1),r+=e)}function s(){r="",n=!(t=0),i=a=0}return s(),{write:o,rawWrite:function(e){void 0!==e&&(n&&(n=!1),r+=e)},writeTextOfNode:function(e,t){o(l(e,t))},writeLiteral:function(e){if(e&&e.length){o(e);var t=m.computeLineStarts(e);1<t.length&&(a=a+t.length-1,i=r.length-e.length+m.lastOrUndefined(t))}},writeLine:function(){n||(a++,i=(r+=e).length,n=!0)},increaseIndent:function(){t++},decreaseIndent:function(){t--},getIndent:function(){return t},getTextPos:function(){return r.length},getLine:function(){return a+1},getColumn:function(){return n?t*Je()+1:r.length-i+1},getText:function(){return r},isAtStartOfLine:function(){return n},clear:s,reportInaccessibleThisError:m.noop,reportPrivateInBaseOfClassExpression:m.noop,reportInaccessibleUniqueSymbolError:m.noop,trackSymbol:m.noop,writeKeyword:o,writeOperator:o,writeParameter:o,writeProperty:o,writePunctuation:o,writeSpace:o,writeStringLiteral:o,writeSymbol:o}},m.getResolvedExternalModuleName=je,m.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return je(e,n)},m.getExternalModuleNameFromPath=Ke,m.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?m.removeFileExtension(qe(e,t,n.outDir)):m.removeFileExtension(e.fileName))+r},m.getDeclarationEmitOutputFilePath=function(e,t){var r=t.getCompilerOptions(),n=r.declarationDir||r.outDir,a=n?qe(e,t,n):e.fileName;return m.removeFileExtension(a)+".d.ts"},m.getSourceFilesToEmit=function(t,e){var r=t.getCompilerOptions(),n=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=m.getEmitModuleKind(r),i=a===m.ModuleKind.AMD||a===m.ModuleKind.System;return m.filter(t.getSourceFiles(),function(e){return(i||!m.isExternalModule(e))&&Ue(e,r,n)})}var o=void 0===e?t.getSourceFiles():[e];return m.filter(o,function(e){return Ue(e,r,n)})},m.sourceFileMayBeEmitted=Ue,m.getSourceFilePathInNewDir=qe,m.writeFile=function(e,t,r,n,a,i){e.writeFile(r,n,a,function(e){t.add(m.createCompilerDiagnostic(m.Diagnostics.Could_not_write_file_0_Colon_1,r,e))},i)},m.getLineOfLocalPosition=Ve,m.getLineOfLocalPositionFromLineMap=We,m.getFirstConstructorWithBody=function(e){return m.forEach(e.members,function(e){if(154===e.kind&&i(e.body))return e})},m.getSetAccessorTypeAnnotationNode=function(e){var t=He(e);return t&&t.type},m.getThisParameter=function(e){if(e.parameters.length){var t=e.parameters[0];if(Ge(t))return t}},m.parameterIsThisKeyword=Ge,m.isThisIdentifier=Xe,m.identifierIsThisKeyword=Qe,m.getAllAccessorDeclarations=function(e,t){var r,n,a,i;return ve(t)?155===(r=t).kind?a=t:156===t.kind?i=t:m.Debug.fail("Accessor has wrong kind"):m.forEach(e,function(e){155!==e.kind&&156!==e.kind||at(e,32)!==at(t,32)||xe(e.name)===xe(t.name)&&(r?n||(n=e):r=e,155!==e.kind||a||(a=e),156!==e.kind||i||(i=e))}),{firstAccessor:r,secondAccessor:n,getAccessor:a,setAccessor:i}},m.getEffectiveTypeAnnotationNode=Ye,m.getEffectiveReturnTypeNode=function(e){return e.type||(G(e)?m.getJSDocReturnType(e):void 0)},m.getEffectiveTypeParameterDeclarations=function(e){return e.typeParameters||(G(e)?Ze(e):void 0)},m.getJSDocTypeParameterDeclarations=Ze,m.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=He(e);return t&&Ye(t)},m.emitNewLineBeforeLeadingComments=$e,m.emitNewLineBeforeLeadingCommentsOfPosition=et,m.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&We(e,r)!==We(e,n)&&t.writeLine()},m.emitComments=tt,m.emitDetachedComments=function(t,e,r,n,a,i,o){var s,c;if(o?0===a.pos&&(s=m.filter(m.getLeadingCommentRanges(t,a.pos),function(e){return f(t,e)})):s=m.getLeadingCommentRanges(t,a.pos),s){for(var u=[],_=void 0,l=0,d=s;l<d.length;l++){var p=d[l];if(_&&We(e,_.end)+2<=We(e,p.pos))break;u.push(p),_=p}u.length&&We(e,m.lastOrUndefined(u).end)+2<=We(e,m.skipTrivia(t,a.pos))&&($e(e,r,a,s),tt(t,e,r,u,!1,!0,i,n),c={nodePos:a.pos,detachedCommentEndPos:m.lastOrUndefined(u).end})}return c},m.writeCommentRange=function(e,t,r,n,a,i){if(42===e.charCodeAt(n+1))for(var o=m.computeLineAndCharacterOfPosition(t,n),s=t.length,c=void 0,u=n,_=o.line;u<a;_++){var l=_+1===s?e.length+1:t[_+1];if(u!==n){void 0===c&&(c=nt(e,t[o.line],n));var d=r.getIndent()*Je()-c+nt(e,u,l);if(0<d){var p=d%Je(),f=ze((d-p)/Je());for(r.rawWrite(f);p;)r.rawWrite(" "),p--}else r.rawWrite("")}rt(e,a,r,i,u,l),u=l}else r.write(e.substring(n,a))},m.hasModifiers=function(e){return 0!==ct(e)},m.hasModifier=at,m.hasStaticModifier=it,m.hasReadonlyModifier=ot,m.getSelectedModifierFlags=st,m.getModifierFlags=ct,m.getModifierFlagsNoCache=ut,m.modifierToFlag=_t,m.isLogicalOperator=function(e){return 54===e||53===e||51===e},m.isAssignmentOperator=lt,m.tryGetClassExtendingExpressionWithTypeArguments=dt,m.isAssignmentExpression=pt,m.isDestructuringAssignment=function(e){if(pt(e,!0)){var t=e.left.kind;return 182===t||181===t}return!1},m.isExpressionWithTypeArgumentsInClassExtendsClause=ft,m.isExpressionWithTypeArgumentsInClassImplementsClause=function(e){return 205===e.kind&&mt(e.expression)&&e.parent&&108===e.parent.token&&e.parent.parent&&m.isClassLike(e.parent.parent)},m.isEntityNameExpression=mt,m.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 145===e.parent.kind&&e.parent.right===e||183===e.parent.kind&&e.parent.name===e},m.isEmptyObjectLiteral=function(e){return 182===e.kind&&0===e.properties.length},m.isEmptyArrayLiteral=function(e){return 181===e.kind&&0===e.elements.length},m.getLocalSymbolForExportDefault=function(e){return(t=e)&&0<m.length(t.declarations)&&at(t.declarations[0],512)?e.declarations[0].localSymbol:void 0;var t},m.tryExtractTypeScriptExtension=function(t){return m.find(m.supportedTypescriptExtensionsForExtractExtension,function(e){return m.fileExtensionIs(t,e)})};var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.convertToBase64=function(e){for(var t,r,n,a,i="",o=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var a=e.charCodeAt(n);a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a<131072?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):m.Debug.assert(!1,"Unexpected code point")}return t}(e),s=0,c=o.length;s<c;)t=o[s]>>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,a=63&o[s+2],c<=s+1?n=a=64:c<=s+2&&(a=64),i+=gt.charAt(t)+gt.charAt(r)+gt.charAt(n)+gt.charAt(a),s+=3;return i};var yt,vt,ht="\r\n",bt="\n";function xt(e,t,r){void 0===e&&(e=0);var n=function(e){var t=[];for(var r in e){var n=e[r];"number"==typeof n&&t.push([n,r])}return m.stableSort(t,function(e,t){return m.compareValues(e[0],t[0])})}(t);if(0===e)return 0<n.length&&0===n[0][0]?n[0][1]:"0";if(r){for(var a="",i=e,o=n.length-1;0<=o&&0!==i;o--){var s=n[o],c=s[0],u=s[1];0!==c&&(i&c)===c&&(i&=~c,a=u+(a?", ":"")+a)}if(0===i)return a}else for(var _=0,l=n;_<l.length;_++){var d=l[_];c=d[0],u=d[1];if(c===e)return u}return e.toString()}function kt(e,t){return{pos:e,end:t}}function Dt(e,t){return kt(t,e.end)}function St(e){return e.decorators&&0<e.decorators.length?Dt(e,e.decorators.end):e}function Ct(e,t,r){return Tt(Et(e,r),t.end,r)}function Tt(e,t,r){return e===t||Ve(r,e)===Ve(r,t)}function Et(e,t){return m.positionIsSynthesized(e.pos)?-1:m.skipTrivia(t.text,e.pos)}function Nt(e){return void 0!==e.initializer}function At(e){return 33554432&e.flags?e.checkFlags:0}function Pt(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 197:case 196:var r=t.operator;return 43===r||44===r?o():0;case 198:var n=t,a=n.left,i=n.operatorToken;return a===e&&lt(i.kind)?o():0;case 183:return t.name!==e?0:Pt(t);default:return 0}function o(){return t.parent&&214===t.parent.kind?1:2}}function Ft(e,t){for(;;){var r=t(e);if(void 0!==r)return r;var n=m.getDirectoryPath(e);if(n===e)return;e=n}}function wt(e){if(32&e.flags){var t=It(e);return!!t&&at(t,128)}return!1}function It(e){return m.find(e.declarations,m.isClassLike)}function Ot(e){return 65536&e.flags?e.objectFlags:0}m.getNewLineCharacter=function(e,t){switch(e.newLine){case 0:return ht;case 1:return bt}return t?t():m.sys?m.sys.newLine:ht},m.formatSyntaxKind=function(e){return xt(e,m.SyntaxKind,!1)},m.formatModifierFlags=function(e){return xt(e,m.ModifierFlags,!0)},m.formatTransformFlags=function(e){return xt(e,m.TransformFlags,!0)},m.formatEmitFlags=function(e){return xt(e,m.EmitFlags,!0)},m.formatSymbolFlags=function(e){return xt(e,m.SymbolFlags,!0)},m.formatTypeFlags=function(e){return xt(e,m.TypeFlags,!0)},m.formatObjectFlags=function(e){return xt(e,m.ObjectFlags,!0)},m.createRange=kt,m.moveRangeEnd=function(e,t){return kt(e.pos,t)},m.moveRangePos=Dt,m.moveRangePastDecorators=St,m.moveRangePastModifiers=function(e){return e.modifiers&&0<e.modifiers.length?Dt(e,e.modifiers.end):St(e)},m.isCollapsedRange=function(e){return e.pos===e.end},m.createTokenRange=function(e,t){return kt(e,e+m.tokenToString(t).length)},m.rangeIsOnSingleLine=function(e,t){return Ct(e,e,t)},m.rangeStartPositionsAreOnSameLine=function(e,t,r){return Tt(Et(e,r),Et(t,r),r)},m.rangeEndPositionsAreOnSameLine=function(e,t,r){return Tt(e.end,t.end,r)},m.rangeStartIsOnSameLineAsRangeEnd=Ct,m.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Tt(e.end,Et(t,r),r)},m.positionsAreOnSameLine=Tt,m.getStartPositionOfRange=Et,m.isDeclarationNameOfEnumOrNamespace=function(e){var t=m.getParseTreeNode(e);if(t)switch(t.parent.kind){case 236:case 237:return t===t.parent.name}return!1},m.getInitializedVariables=function(e){return m.filter(e.declarations,Nt)},m.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},m.getCheckFlags=At,m.getDeclarationModifierFlagsFromSymbol=function(e){if(e.valueDeclaration){var t=m.getCombinedModifierFlags(e.valueDeclaration);return e.parent&&32&e.parent.flags?t:-29&t}if(6&At(e)){var r=e.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&e.flags?36:0},m.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},m.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},m.isWriteOnlyAccess=function(e){return 1===Pt(e)},m.isWriteAccess=function(e){return 0!==Pt(e)},(vt=yt||(yt={}))[vt.Read=0]="Read",vt[vt.Write=1]="Write",vt[vt.ReadWrite=2]="ReadWrite",m.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},m.clearMap=function(e,t){e.forEach(t),e.clear()},m.mutateMap=function(n,a,e){var r=e.createNewValue,i=e.onDeleteValue,o=e.onExistingValue;n.forEach(function(e,t){var r=a.get(t);void 0===r?(n.delete(t),i(e,t)):o&&o(e,r,t)}),a.forEach(function(e,t){n.has(t)||n.set(t,r(t,e))})},m.forEachAncestorDirectory=Ft,m.isAbstractConstructorType=function(e){return!!(16&Ot(e))&&!!e.symbol&&wt(e.symbol)},m.isAbstractConstructorSymbol=wt,m.getClassLikeDeclarationOfSymbol=It,m.getObjectFlags=Ot,m.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},m.forSomeAncestorDirectory=function(e,t){return!!Ft(e,function(e){return!!t(e)||void 0})},m.isUMDExportSymbol=function(e){return e&&e.declarations&&e.declarations[0]&&m.isNamespaceExportDeclaration(e.declarations[0])},m.showModuleSpecifier=function(e){var t=e.moduleSpecifier;return m.isStringLiteral(t)?t.text:d(t)}}(ts||(ts={})),function(p){function f(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function n(e,t,r,n){return r<=e+t&&e<=r+n}function a(e,t){var r=Math.max(e.start,t.start),n=Math.min(f(e),f(t));return r<=n?m(r,n):void 0}function i(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function m(e,t){return i(e,t-e)}function g(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function o(e){return!!p.isBindingPattern(e)&&p.every(e.elements,s)}function s(e){return!!p.isOmittedExpression(e)||o(e.name)}function c(e){for(;e&&(180===e.kind||p.isBindingPattern(e));)e=e.parent;return e}function u(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function _(e){return 0==(8&e.flags)}function l(e){var t=e;return 3<=t.length&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function d(e){var t=v(e);return p.isIdentifier(t)?t:void 0}function y(e){return e.name||function(e){var t=e.parent.parent;if(t){if(p.isDeclaration(t))return d(t);switch(t.kind){case 212:return t.declarationList&&t.declarationList.declarations[0]?d(t.declarationList.declarations[0]):void 0;case 214:var r=t.expression;switch(r.kind){case 183:return r.name;case 184:var n=r.argumentExpression;if(p.isIdentifier(n))return n}return;case 1:return;case 189:return d(t.expression);case 226:return p.isDeclaration(t.statement)||p.isExpression(t.statement)?d(t.statement):void 0;default:p.Debug.assertNever(t,"Found typedef tag attached to node which it should not be!")}}}(e)}function v(e){if(e){switch(e.kind){case 71:return e;case 292:case 287:var t=e.name;if(145===t.kind)return t.right;break;case 198:var r=e;switch(p.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:case 3:return r.left.name;default:return}case 291:return y(e);case 247:var n=e.expression;return p.isIdentifier(n)?n:void 0}return e.name}}function h(e){if(e.name&&p.isIdentifier(e.name)){var t=e.name.escapedText;return x(e.parent).filter(function(e){return p.isJSDocParameterTag(e)&&p.isIdentifier(e.name)&&e.name.escapedText===t})}}function b(e){return k(e,288)}function x(e){var t=e.jsDocCache;return void 0===t&&(e.jsDocCache=t=p.flatMap(p.getJSDocCommentsAndTags(e),function(e){return p.isJSDoc(e)?e.tags:e})),t}function k(e,t){var r=x(e);return p.find(r,function(e){return e.kind===t})}p.getDefaultLibFileName=function(e){switch(e.target){case 6:return"lib.esnext.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"}},p.textSpanEnd=f,p.textSpanIsEmpty=t,p.textSpanContainsPosition=function(e,t){return t>=e.start&&t<f(e)},p.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&f(t)<=f(e)},p.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},p.textSpanOverlap=r,p.textSpanIntersectsWithTextSpan=function(e,t){return n(e.start,e.length,t.start,t.length)},p.textSpanIntersectsWith=function(e,t,r){return n(e.start,e.length,t,r)},p.decodedTextSpanIntersectsWith=n,p.textSpanIntersectsWithPosition=function(e,t){return t<=f(e)&&t>=e.start},p.textSpanIntersection=a,p.createTextSpan=i,p.createTextSpanFromBounds=m,p.textChangeRangeNewSpan=function(e){return i(e.span.start,e.newLength)},p.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},p.createTextChangeRange=g,p.unchangedTextChangeRange=g(i(0,0),0),p.collapseTextChangeRangesAcrossMultipleVersions=function(e){if(0===e.length)return p.unchangedTextChangeRange;if(1===e.length)return e[0];for(var t=e[0],r=t.span.start,n=f(t.span),a=r+t.newLength,i=1;i<e.length;i++){var o=e[i],s=r,c=n,u=a,_=o.span.start,l=f(o.span),d=_+o.newLength;r=Math.min(s,_),n=Math.max(c,c+(l-u)),a=Math.max(d,d+(u-l))}return g(m(r,n),a-r)},p.getTypeParameterOwner=function(e){if(e&&147===e.kind)for(var t=e;t;t=t.parent)if(p.isFunctionLike(t)||p.isClassLike(t)||234===t.kind)return t},p.isParameterPropertyDeclaration=function(e){return p.hasModifier(e,92)&&154===e.parent.kind&&p.isClassLike(e.parent.parent)},p.isEmptyBindingPattern=o,p.isEmptyBindingElement=s,p.getCombinedModifierFlags=function(e){e=c(e);var t=p.getModifierFlags(e);return 230===e.kind&&(e=e.parent),e&&231===e.kind&&(t|=p.getModifierFlags(e),e=e.parent),e&&212===e.kind&&(t|=p.getModifierFlags(e)),t},p.getCombinedNodeFlags=function(e){var t=(e=c(e)).flags;return 230===e.kind&&(e=e.parent),e&&231===e.kind&&(t|=e.flags,e=e.parent),e&&212===e.kind&&(t|=e.flags),t},p.validateLocaleAndSetLanguage=function(e,s,t){var r=/^([a-z]+)([_\-]([a-z]+))?$/.exec(e.toLowerCase());if(r){var n=r[1];a(n,r[3],t)||a(n,void 0,t),p.setUILocale(e)}else t&&t.push(p.createCompilerDiagnostic(p.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function a(e,t,r){var n=p.normalizePath(s.getExecutingFilePath()),a=p.getDirectoryPath(n),i=p.combinePaths(a,e);if(t&&(i=i+"-"+t),i=s.resolvePath(p.combinePaths(i,"diagnosticMessages.generated.json")),!s.fileExists(i))return!1;var o="";try{o=s.readFile(i)}catch(e){return r&&r.push(p.createCompilerDiagnostic(p.Diagnostics.Unable_to_open_file_0,i)),!1}try{p.localizedDiagnosticMessages=JSON.parse(o)}catch(e){return r&&r.push(p.createCompilerDiagnostic(p.Diagnostics.Corrupted_locale_file_0,i)),!1}return!0}},p.getOriginalNode=u,p.isParseTreeNode=_,p.getParseTreeNode=function(e,t){return void 0===e||_(e)?e:!_(e=u(e))||t&&!t(e)?void 0:e},p.unescapeLeadingUnderscores=l,p.idText=function(e){return l(e.escapedText)},p.symbolName=function(e){return l(e.escapedName)},p.unescapeIdentifier=function(e){return e},p.getNameOfJSDocTypedef=y,p.isNamedDeclaration=function(e){return!!e.name},p.getNameOfDeclaration=v,p.getJSDocParameterTags=h,p.hasJSDocParameterTags=function(e){return!!k(e,287)},p.getJSDocAugmentsTag=function(e){return k(e,285)},p.getJSDocClassTag=function(e){return k(e,286)},p.getJSDocReturnTag=b,p.getJSDocTemplateTag=function(e){return k(e,290)},p.getJSDocTypeTag=function(e){var t=k(e,289);if(t&&t.typeExpression&&t.typeExpression.type)return t},p.getJSDocType=function(e){var t=k(e,289);if(!t&&148===e.kind){var r=h(e);r&&(t=p.find(r,function(e){return!!e.typeExpression}))}return t&&t.typeExpression&&t.typeExpression.type},p.getJSDocReturnType=function(e){var t=b(e);return t&&t.typeExpression&&t.typeExpression.type},p.getJSDocTags=x,p.getAllJSDocTagsOfKind=function(e,t){var r=x(e);return p.filter(r,function(e){return e.kind===t})}}(ts||(ts={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isStringLiteral=function(e){return 9===e.kind},e.isJsxText=function(e){return 10===e.kind},e.isRegularExpressionLiteral=function(e){return 12===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 13===e.kind},e.isTemplateHead=function(e){return 14===e.kind},e.isTemplateMiddle=function(e){return 15===e.kind},e.isTemplateTail=function(e){return 16===e.kind},e.isIdentifier=function(e){return 71===e.kind},e.isQualifiedName=function(e){return 145===e.kind},e.isComputedPropertyName=function(e){return 146===e.kind},e.isTypeParameterDeclaration=function(e){return 147===e.kind},e.isParameter=function(e){return 148===e.kind},e.isDecorator=function(e){return 149===e.kind},e.isPropertySignature=function(e){return 150===e.kind},e.isPropertyDeclaration=function(e){return 151===e.kind},e.isMethodSignature=function(e){return 152===e.kind},e.isMethodDeclaration=function(e){return 153===e.kind},e.isConstructorDeclaration=function(e){return 154===e.kind},e.isGetAccessorDeclaration=function(e){return 155===e.kind},e.isSetAccessorDeclaration=function(e){return 156===e.kind},e.isCallSignatureDeclaration=function(e){return 157===e.kind},e.isConstructSignatureDeclaration=function(e){return 158===e.kind},e.isIndexSignatureDeclaration=function(e){return 159===e.kind},e.isTypePredicateNode=function(e){return 160===e.kind},e.isTypeReferenceNode=function(e){return 161===e.kind},e.isFunctionTypeNode=function(e){return 162===e.kind},e.isConstructorTypeNode=function(e){return 163===e.kind},e.isTypeQueryNode=function(e){return 164===e.kind},e.isTypeLiteralNode=function(e){return 165===e.kind},e.isArrayTypeNode=function(e){return 166===e.kind},e.isTupleTypeNode=function(e){return 167===e.kind},e.isUnionTypeNode=function(e){return 168===e.kind},e.isIntersectionTypeNode=function(e){return 169===e.kind},e.isConditionalTypeNode=function(e){return 170===e.kind},e.isInferTypeNode=function(e){return 171===e.kind},e.isParenthesizedTypeNode=function(e){return 172===e.kind},e.isThisTypeNode=function(e){return 173===e.kind},e.isTypeOperatorNode=function(e){return 174===e.kind},e.isIndexedAccessTypeNode=function(e){return 175===e.kind},e.isMappedTypeNode=function(e){return 176===e.kind},e.isLiteralTypeNode=function(e){return 177===e.kind},e.isObjectBindingPattern=function(e){return 178===e.kind},e.isArrayBindingPattern=function(e){return 179===e.kind},e.isBindingElement=function(e){return 180===e.kind},e.isArrayLiteralExpression=function(e){return 181===e.kind},e.isObjectLiteralExpression=function(e){return 182===e.kind},e.isPropertyAccessExpression=function(e){return 183===e.kind},e.isElementAccessExpression=function(e){return 184===e.kind},e.isCallExpression=function(e){return 185===e.kind},e.isNewExpression=function(e){return 186===e.kind},e.isTaggedTemplateExpression=function(e){return 187===e.kind},e.isTypeAssertion=function(e){return 188===e.kind},e.isParenthesizedExpression=function(e){return 189===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;295===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 190===e.kind},e.isArrowFunction=function(e){return 191===e.kind},e.isDeleteExpression=function(e){return 192===e.kind},e.isTypeOfExpression=function(e){return 193===e.kind},e.isVoidExpression=function(e){return 194===e.kind},e.isAwaitExpression=function(e){return 195===e.kind},e.isPrefixUnaryExpression=function(e){return 196===e.kind},e.isPostfixUnaryExpression=function(e){return 197===e.kind},e.isBinaryExpression=function(e){return 198===e.kind},e.isConditionalExpression=function(e){return 199===e.kind},e.isTemplateExpression=function(e){return 200===e.kind},e.isYieldExpression=function(e){return 201===e.kind},e.isSpreadElement=function(e){return 202===e.kind},e.isClassExpression=function(e){return 203===e.kind},e.isOmittedExpression=function(e){return 204===e.kind},e.isExpressionWithTypeArguments=function(e){return 205===e.kind},e.isAsExpression=function(e){return 206===e.kind},e.isNonNullExpression=function(e){return 207===e.kind},e.isMetaProperty=function(e){return 208===e.kind},e.isTemplateSpan=function(e){return 209===e.kind},e.isSemicolonClassElement=function(e){return 210===e.kind},e.isBlock=function(e){return 211===e.kind},e.isVariableStatement=function(e){return 212===e.kind},e.isEmptyStatement=function(e){return 213===e.kind},e.isExpressionStatement=function(e){return 214===e.kind},e.isIfStatement=function(e){return 215===e.kind},e.isDoStatement=function(e){return 216===e.kind},e.isWhileStatement=function(e){return 217===e.kind},e.isForStatement=function(e){return 218===e.kind},e.isForInStatement=function(e){return 219===e.kind},e.isForOfStatement=function(e){return 220===e.kind},e.isContinueStatement=function(e){return 221===e.kind},e.isBreakStatement=function(e){return 222===e.kind},e.isBreakOrContinueStatement=function(e){return 222===e.kind||221===e.kind},e.isReturnStatement=function(e){return 223===e.kind},e.isWithStatement=function(e){return 224===e.kind},e.isSwitchStatement=function(e){return 225===e.kind},e.isLabeledStatement=function(e){return 226===e.kind},e.isThrowStatement=function(e){return 227===e.kind},e.isTryStatement=function(e){return 228===e.kind},e.isDebuggerStatement=function(e){return 229===e.kind},e.isVariableDeclaration=function(e){return 230===e.kind},e.isVariableDeclarationList=function(e){return 231===e.kind},e.isFunctionDeclaration=function(e){return 232===e.kind},e.isClassDeclaration=function(e){return 233===e.kind},e.isInterfaceDeclaration=function(e){return 234===e.kind},e.isTypeAliasDeclaration=function(e){return 235===e.kind},e.isEnumDeclaration=function(e){return 236===e.kind},e.isModuleDeclaration=function(e){return 237===e.kind},e.isModuleBlock=function(e){return 238===e.kind},e.isCaseBlock=function(e){return 239===e.kind},e.isNamespaceExportDeclaration=function(e){return 240===e.kind},e.isImportEqualsDeclaration=function(e){return 241===e.kind},e.isImportDeclaration=function(e){return 242===e.kind},e.isImportClause=function(e){return 243===e.kind},e.isNamespaceImport=function(e){return 244===e.kind},e.isNamedImports=function(e){return 245===e.kind},e.isImportSpecifier=function(e){return 246===e.kind},e.isExportAssignment=function(e){return 247===e.kind},e.isExportDeclaration=function(e){return 248===e.kind},e.isNamedExports=function(e){return 249===e.kind},e.isExportSpecifier=function(e){return 250===e.kind},e.isMissingDeclaration=function(e){return 251===e.kind},e.isExternalModuleReference=function(e){return 252===e.kind},e.isJsxElement=function(e){return 253===e.kind},e.isJsxSelfClosingElement=function(e){return 254===e.kind},e.isJsxOpeningElement=function(e){return 255===e.kind},e.isJsxClosingElement=function(e){return 256===e.kind},e.isJsxFragment=function(e){return 257===e.kind},e.isJsxOpeningFragment=function(e){return 258===e.kind},e.isJsxClosingFragment=function(e){return 259===e.kind},e.isJsxAttribute=function(e){return 260===e.kind},e.isJsxAttributes=function(e){return 261===e.kind},e.isJsxSpreadAttribute=function(e){return 262===e.kind},e.isJsxExpression=function(e){return 263===e.kind},e.isCaseClause=function(e){return 264===e.kind},e.isDefaultClause=function(e){return 265===e.kind},e.isHeritageClause=function(e){return 266===e.kind},e.isCatchClause=function(e){return 267===e.kind},e.isPropertyAssignment=function(e){return 268===e.kind},e.isShorthandPropertyAssignment=function(e){return 269===e.kind},e.isSpreadAssignment=function(e){return 270===e.kind},e.isEnumMember=function(e){return 271===e.kind},e.isSourceFile=function(e){return 272===e.kind},e.isBundle=function(e){return 273===e.kind},e.isJSDocTypeExpression=function(e){return 274===e.kind},e.isJSDocAllType=function(e){return 275===e.kind},e.isJSDocUnknownType=function(e){return 276===e.kind},e.isJSDocNullableType=function(e){return 277===e.kind},e.isJSDocNonNullableType=function(e){return 278===e.kind},e.isJSDocOptionalType=function(e){return 279===e.kind},e.isJSDocFunctionType=function(e){return 280===e.kind},e.isJSDocVariadicType=function(e){return 281===e.kind},e.isJSDoc=function(e){return 282===e.kind},e.isJSDocAugmentsTag=function(e){return 285===e.kind},e.isJSDocParameterTag=function(e){return 287===e.kind},e.isJSDocReturnTag=function(e){return 288===e.kind},e.isJSDocTypeTag=function(e){return 289===e.kind},e.isJSDocTemplateTag=function(e){return 290===e.kind},e.isJSDocTypedefTag=function(e){return 291===e.kind},e.isJSDocPropertyTag=function(e){return 292===e.kind},e.isJSDocPropertyLikeTag=function(e){return 292===e.kind||287===e.kind},e.isJSDocTypeLiteral=function(e){return 283===e.kind}}(ts||(ts={})),function(n){function t(e){return 145<=e}function r(e){return 8<=e&&e<=13}function a(e){return 13<=e&&e<=16}function i(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return!1}}function c(e){switch(e){case 152:case 157:case 158:case 159:case 162:case 280:case 163:return!0;default:return s(e)}}function u(e){switch(e.kind){case 178:case 182:return!0}return!1}function _(e){switch(e.kind){case 179:case 181:return!0}return!1}function l(e){switch(e){case 183:case 184:case 186:case 185:case 253:case 254:case 257:case 187:case 181:case 189:case 182:case 203:case 190:case 71:case 12:case 8:case 9:case 13:case 200:case 86:case 95:case 99:case 101:case 97:case 207:case 208:case 91:return!0;default:return!1}}function d(e){switch(e){case 196:case 197:case 192:case 193:case 194:case 195:case 188:return!0;default:return l(e)}}function p(e){return function(e){switch(e){case 199:case 201:case 191:case 198:case 202:case 206:case 204:case 296:case 295:return!0;default:return d(e)}}(n.skipPartiallyEmittedExpressions(e).kind)}function f(e){return 295===e.kind}function m(e){return 294===e.kind}function g(e){return 232===e||251===e||233===e||234===e||235===e||236===e||237===e||242===e||241===e||248===e||247===e||240===e}function y(e){return 222===e||221===e||229===e||216===e||214===e||213===e||219===e||220===e||218===e||215===e||226===e||223===e||225===e||227===e||228===e||212===e||217===e||224===e||294===e||298===e||297===e}function v(e){return 284<=e.kind&&e.kind<=292}function h(e){return!!e.initializer}n.isSyntaxList=function(e){return 293===e.kind},n.isNode=function(e){return t(e.kind)},n.isNodeKind=t,n.isToken=function(e){return 0<=e.kind&&e.kind<=144},n.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},n.isLiteralKind=r,n.isLiteralExpression=function(e){return r(e.kind)},n.isTemplateLiteralKind=a,n.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},n.isStringTextContainingNode=function(e){return 9===e.kind||a(e.kind)},n.isGeneratedIdentifier=function(e){return n.isIdentifier(e)&&0<(7&e.autoGenerateFlags)},n.isModifierKind=i,n.isModifier=function(e){return i(e.kind)},n.isEntityName=function(e){var t=e.kind;return 145===t||71===t},n.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||146===t},n.isBindingName=function(e){var t=e.kind;return 71===t||178===t||179===t},n.isFunctionLike=o,n.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},n.isFunctionLikeKind=c,n.isFunctionOrModuleBlock=function(e){return n.isSourceFile(e)||n.isModuleBlock(e)||n.isBlock(e)&&o(e.parent)},n.isClassElement=function(e){var t=e.kind;return 154===t||151===t||153===t||155===t||156===t||159===t||210===t||251===t},n.isClassLike=function(e){return e&&(233===e.kind||203===e.kind)},n.isAccessor=function(e){return e&&(155===e.kind||156===e.kind)},n.isMethodOrAccessor=function(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}},n.isTypeElement=function(e){var t=e.kind;return 158===t||157===t||150===t||152===t||159===t||251===t},n.isObjectLiteralElementLike=function(e){var t=e.kind;return 268===t||269===t||270===t||153===t||155===t||156===t||251===t},n.isTypeNode=function(e){return 160<=(t=e.kind)&&t<=177||119===t||134===t||135===t||122===t||137===t||138===t||99===t||105===t||140===t||95===t||131===t||205===t||275===t||276===t||277===t||278===t||279===t||280===t||281===t;var t},n.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 162:case 163:return!0}return!1},n.isBindingPattern=function(e){if(e){var t=e.kind;return 179===t||178===t}return!1},n.isAssignmentPattern=function(e){var t=e.kind;return 181===t||182===t},n.isArrayBindingElement=function(e){var t=e.kind;return 180===t||204===t},n.isDeclarationBindingElement=function(e){switch(e.kind){case 230:case 148:case 180:return!0}return!1},n.isBindingOrAssignmentPattern=function(e){return u(e)||_(e)},n.isObjectBindingOrAssignmentPattern=u,n.isArrayBindingOrAssignmentPattern=_,n.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 183===t||145===t},n.isCallLikeExpression=function(e){switch(e.kind){case 255:case 254:case 185:case 186:case 187:case 149:return!0;default:return!1}},n.isCallOrNewExpression=function(e){return 185===e.kind||186===e.kind},n.isTemplateLiteral=function(e){var t=e.kind;return 200===t||13===t},n.isLeftHandSideExpression=function(e){return l(n.skipPartiallyEmittedExpressions(e).kind)},n.isUnaryExpression=function(e){return d(n.skipPartiallyEmittedExpressions(e).kind)},n.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 197:return!0;case 196:return 43===e.operator||44===e.operator;default:return!1}},n.isExpression=p,n.isAssertionExpression=function(e){var t=e.kind;return 188===t||206===t},n.isPartiallyEmittedExpression=f,n.isNotEmittedStatement=m,n.isNotEmittedOrPartiallyEmittedNode=function(e){return m(e)||f(e)},n.isIterationStatement=function e(t,r){switch(t.kind){case 218:case 219:case 220:case 216:case 217:return!0;case 226:return r&&e(t.statement,r)}return!1},n.isForInOrOfStatement=function(e){return 219===e.kind||220===e.kind},n.isConciseBody=function(e){return n.isBlock(e)||p(e)},n.isFunctionBody=function(e){return n.isBlock(e)},n.isForInitializer=function(e){return n.isVariableDeclarationList(e)||p(e)},n.isModuleBody=function(e){var t=e.kind;return 238===t||237===t||71===t},n.isNamespaceBody=function(e){var t=e.kind;return 238===t||237===t},n.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||237===t},n.isNamedImportBindings=function(e){var t=e.kind;return 245===t||244===t},n.isModuleOrEnumDeclaration=function(e){return 237===e.kind||236===e.kind},n.isDeclaration=function(e){return 147===e.kind?290!==e.parent.kind||n.isInJavaScriptFile(e):191===(t=e.kind)||180===t||233===t||203===t||154===t||236===t||271===t||250===t||232===t||190===t||155===t||243===t||241===t||246===t||234===t||260===t||153===t||152===t||237===t||240===t||244===t||148===t||268===t||151===t||150===t||156===t||269===t||235===t||147===t||230===t||291===t;var t},n.isDeclarationStatement=function(e){return g(e.kind)},n.isStatementButNotDeclaration=function(e){return y(e.kind)},n.isStatement=function(e){var t=e.kind;return y(t)||g(t)||(r=e,211===r.kind&&(void 0===r.parent||228!==r.parent.kind&&267!==r.parent.kind)&&!n.isFunctionBlock(r));var r},n.isModuleReference=function(e){var t=e.kind;return 252===t||145===t||71===t},n.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||183===t},n.isJsxChild=function(e){var t=e.kind;return 253===t||263===t||254===t||10===t||257===t},n.isJsxAttributeLike=function(e){var t=e.kind;return 260===t||262===t},n.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||263===t},n.isJsxOpeningLikeElement=function(e){var t=e.kind;return 255===t||254===t},n.isCaseOrDefaultClause=function(e){var t=e.kind;return 264===t||265===t},n.isJSDocNode=function(e){return 274<=e.kind&&e.kind<=292},n.isJSDocCommentContainingNode=function(e){return 282===e.kind||v(e)||n.isJSDocTypeLiteral(e)},n.isJSDocTag=v,n.isSetAccessor=function(e){return 156===e.kind},n.isGetAccessor=function(e){return 155===e.kind},n.hasJSDocNodes=function(e){return!!e.jsDoc&&0<e.jsDoc.length},n.hasType=function(e){return!!e.type},n.hasInitializer=h,n.hasOnlyExpressionInitializer=function(e){return h(e)&&!n.isForStatement(e)&&!n.isForInStatement(e)&&!n.isForOfStatement(e)&&!n.isJsxAttribute(e)},n.isObjectLiteralElement=function(e){switch(e.kind){case 260:case 262:case 268:case 269:case 153:case 155:case 156:return!0;default:return!1}},n.isTypeReferenceType=function(e){return 161===e.kind||205===e.kind},n.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind}}(ts||(ts={})),function(yn){var e,t,n,a,i,o,d,s;function c(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,a=r;n<a.length;n++){var i=e(a[n]);if(i)return i}}}function vn(e,t,r){if(e&&!(e.kind<=144))switch(e.kind){case 145:return c(t,e.left)||c(t,e.right);case 147:return c(t,e.name)||c(t,e.constraint)||c(t,e.default)||c(t,e.expression);case 269:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.equalsToken)||c(t,e.objectAssignmentInitializer);case 270:return c(t,e.expression);case 148:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.dotDotDotToken)||c(t,e.name)||c(t,e.questionToken)||c(t,e.type)||c(t,e.initializer);case 151:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.exclamationToken)||c(t,e.type)||c(t,e.initializer);case 150:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.type)||c(t,e.initializer);case 268:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.questionToken)||c(t,e.initializer);case 230:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.exclamationToken)||c(t,e.type)||c(t,e.initializer);case 180:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.dotDotDotToken)||c(t,e.propertyName)||c(t,e.name)||c(t,e.initializer);case 162:case 163:case 157:case 158:case 159:return u(t,r,e.decorators)||u(t,r,e.modifiers)||u(t,r,e.typeParameters)||u(t,r,e.parameters)||c(t,e.type);case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.asteriskToken)||c(t,e.name)||c(t,e.questionToken)||u(t,r,e.typeParameters)||u(t,r,e.parameters)||c(t,e.type)||c(t,e.equalsGreaterThanToken)||c(t,e.body);case 161:return c(t,e.typeName)||u(t,r,e.typeArguments);case 160:return c(t,e.parameterName)||c(t,e.type);case 164:return c(t,e.exprName);case 165:return u(t,r,e.members);case 166:return c(t,e.elementType);case 167:return u(t,r,e.elementTypes);case 168:case 169:return u(t,r,e.types);case 170:return c(t,e.checkType)||c(t,e.extendsType)||c(t,e.trueType)||c(t,e.falseType);case 171:return c(t,e.typeParameter);case 172:case 174:return c(t,e.type);case 175:return c(t,e.objectType)||c(t,e.indexType);case 176:return c(t,e.readonlyToken)||c(t,e.typeParameter)||c(t,e.questionToken)||c(t,e.type);case 177:return c(t,e.literal);case 178:case 179:case 181:return u(t,r,e.elements);case 182:return u(t,r,e.properties);case 183:return c(t,e.expression)||c(t,e.name);case 184:return c(t,e.expression)||c(t,e.argumentExpression);case 185:case 186:return c(t,e.expression)||u(t,r,e.typeArguments)||u(t,r,e.arguments);case 187:return c(t,e.tag)||c(t,e.template);case 188:return c(t,e.type)||c(t,e.expression);case 189:case 192:case 193:case 194:return c(t,e.expression);case 196:return c(t,e.operand);case 201:return c(t,e.asteriskToken)||c(t,e.expression);case 195:return c(t,e.expression);case 197:return c(t,e.operand);case 198:return c(t,e.left)||c(t,e.operatorToken)||c(t,e.right);case 206:return c(t,e.expression)||c(t,e.type);case 207:return c(t,e.expression);case 208:return c(t,e.name);case 199:return c(t,e.condition)||c(t,e.questionToken)||c(t,e.whenTrue)||c(t,e.colonToken)||c(t,e.whenFalse);case 202:return c(t,e.expression);case 211:case 238:return u(t,r,e.statements);case 272:return u(t,r,e.statements)||c(t,e.endOfFileToken);case 212:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.declarationList);case 231:return u(t,r,e.declarations);case 214:return c(t,e.expression);case 215:return c(t,e.expression)||c(t,e.thenStatement)||c(t,e.elseStatement);case 216:return c(t,e.statement)||c(t,e.expression);case 217:return c(t,e.expression)||c(t,e.statement);case 218:return c(t,e.initializer)||c(t,e.condition)||c(t,e.incrementor)||c(t,e.statement);case 219:return c(t,e.initializer)||c(t,e.expression)||c(t,e.statement);case 220:return c(t,e.awaitModifier)||c(t,e.initializer)||c(t,e.expression)||c(t,e.statement);case 221:case 222:return c(t,e.label);case 223:return c(t,e.expression);case 224:return c(t,e.expression)||c(t,e.statement);case 225:return c(t,e.expression)||c(t,e.caseBlock);case 239:return u(t,r,e.clauses);case 264:return c(t,e.expression)||u(t,r,e.statements);case 265:return u(t,r,e.statements);case 226:return c(t,e.label)||c(t,e.statement);case 227:return c(t,e.expression);case 228:return c(t,e.tryBlock)||c(t,e.catchClause)||c(t,e.finallyBlock);case 267:return c(t,e.variableDeclaration)||c(t,e.block);case 149:return c(t,e.expression);case 233:case 203:case 234:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||u(t,r,e.typeParameters)||u(t,r,e.heritageClauses)||u(t,r,e.members);case 235:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||u(t,r,e.typeParameters)||c(t,e.type);case 236:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||u(t,r,e.members);case 271:return c(t,e.name)||c(t,e.initializer);case 237:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.body);case 241:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.name)||c(t,e.moduleReference);case 242:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.importClause)||c(t,e.moduleSpecifier);case 243:return c(t,e.name)||c(t,e.namedBindings);case 240:case 244:return c(t,e.name);case 245:case 249:return u(t,r,e.elements);case 248:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.exportClause)||c(t,e.moduleSpecifier);case 246:case 250:return c(t,e.propertyName)||c(t,e.name);case 247:return u(t,r,e.decorators)||u(t,r,e.modifiers)||c(t,e.expression);case 200:return c(t,e.head)||u(t,r,e.templateSpans);case 209:return c(t,e.expression)||c(t,e.literal);case 146:return c(t,e.expression);case 266:return u(t,r,e.types);case 205:return c(t,e.expression)||u(t,r,e.typeArguments);case 252:return c(t,e.expression);case 251:return u(t,r,e.decorators);case 296:return u(t,r,e.elements);case 253:return c(t,e.openingElement)||u(t,r,e.children)||c(t,e.closingElement);case 257:return c(t,e.openingFragment)||u(t,r,e.children)||c(t,e.closingFragment);case 254:case 255:return c(t,e.tagName)||c(t,e.attributes);case 261:return u(t,r,e.properties);case 260:return c(t,e.name)||c(t,e.initializer);case 262:return c(t,e.expression);case 263:return c(t,e.dotDotDotToken)||c(t,e.expression);case 256:return c(t,e.tagName);case 274:case 278:case 277:case 279:return c(t,e.type);case 280:return u(t,r,e.parameters)||c(t,e.type);case 281:return c(t,e.type);case 282:return u(t,r,e.tags);case 287:case 292:return e.isNameFirst?c(t,e.name)||c(t,e.typeExpression):c(t,e.typeExpression)||c(t,e.name);case 288:case 289:return c(t,e.typeExpression);case 285:return c(t,e.class);case 290:return u(t,r,e.typeParameters);case 291:return e.typeExpression&&274===e.typeExpression.kind?c(t,e.typeExpression)||c(t,e.fullName):c(t,e.fullName)||c(t,e.typeExpression);case 283:if(e.jsDocPropertyTags)for(var n=0,a=e.jsDocPropertyTags;n<a.length;n++){c(t,a[n])}return;case 295:return c(t,e.expression)}}function hn(e,t){for(var r=yn.createScanner(e.languageVersion,!1,0,t),n=[];;){var a=r.scan();if(!yn.isTrivia(a))break;var i={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()};_(n,i,t.substring(i.pos,i.end))}e.pragmas=yn.createMap();for(var o=0,s=n;o<s.length;o++){var c=s[o];if(e.pragmas.has(c.name)){var u=e.pragmas.get(c.name);u instanceof Array?u.push(c.args):e.pragmas.set(c.name,[u,c.args])}else e.pragmas.set(c.name,c.args)}}function bn(s,c){s.checkJsDirective=void 0,s.referencedFiles=[],s.typeReferenceDirectives=[],s.amdDependencies=[],s.hasNoDefaultLib=!1,s.pragmas.forEach(function(e,t){switch(t){case"reference":var r=s.referencedFiles,n=s.typeReferenceDirectives;yn.forEach(yn.toArray(e),function(e){e.arguments["no-default-lib"]?s.hasNoDefaultLib=!0:e.arguments.types?n.push({pos:e.arguments.types.pos,end:e.arguments.types.end,fileName:e.arguments.types.value}):e.arguments.path?r.push({pos:e.arguments.path.pos,end:e.arguments.path.end,fileName:e.arguments.path.value}):c(e.range.pos,e.range.end-e.range.pos,yn.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":s.amdDependencies=yn.map(yn.toArray(e),function(e){var t=e.arguments;return{name:t.name,path:t.path}});break;case"amd-module":if(e instanceof Array)for(var a=0,i=e;a<i.length;a++){var o=i[a];s.moduleName&&c(o.range.pos,o.range.end-o.range.pos,yn.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),s.moduleName=o.arguments.name}else s.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":yn.forEach(yn.toArray(e),function(e){(!s.checkJsDirective||e.range.pos>s.checkJsDirective.pos)&&(s.checkJsDirective={enabled:"ts-check"===t,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:yn.Debug.fail("Unhandled pragma kind")}})}(t=e||(e={}))[t.None=0]="None",t[t.Yield=1]="Yield",t[t.Await=2]="Await",t[t.Type=4]="Type",t[t.RequireCompleteParameterList=8]="RequireCompleteParameterList",t[t.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",t[t.JSDoc=32]="JSDoc",yn.createNode=function(e,t,r){return 272===e?new(o||(o=yn.objectAllocator.getSourceFileConstructor()))(e,t,r):71===e?new(i||(i=yn.objectAllocator.getIdentifierConstructor()))(e,t,r):yn.isNodeKind(e)?new(n||(n=yn.objectAllocator.getNodeConstructor()))(e,t,r):new(a||(a=yn.objectAllocator.getTokenConstructor()))(e,t,r)},yn.forEachChild=vn,yn.createSourceFile=function(e,t,r,n,a){void 0===n&&(n=!1),yn.performance.mark("beforeParse");var i=d.parseSourceFile(e,t,r,void 0,n,a);return yn.performance.mark("afterParse"),yn.performance.measure("Parse","beforeParse","afterParse"),i},yn.parseIsolatedEntityName=function(e,t){return d.parseIsolatedEntityName(e,t)},yn.parseJsonText=function(e,t){return d.parseJsonText(e,t)},yn.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},yn.updateSourceFile=function(e,t,r,n){var a=s.updateSourceFile(e,t,r,n);return a.flags|=524288&e.flags,a},yn.parseIsolatedJSDocComment=function(e,t,r){var n=d.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&d.fixupParentReferences(n.jsDoc),n},yn.parseJSDocTypeExpressionForTests=function(e,t,r){return d.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(e){var a,i,o,s,f,m,c,F,w,g,y,v,u,h,t,r,n,_,l,I=yn.createScanner(6,!0),d=10240,p=!1;function b(e){return 4===e||2===e||1===e||6===e?1:0}function x(e,t,r,n){switch(a=yn.objectAllocator.getNodeConstructor(),i=yn.objectAllocator.getTokenConstructor(),o=yn.objectAllocator.getIdentifierConstructor(),s=yn.objectAllocator.getSourceFileConstructor(),w=e,c=r,m=[],u=0,y=yn.createMap(),g=v=0,n){case 1:case 2:case 6:h=65536;break;default:h=0}p=!1,I.setText(w),I.setOnError(V),I.setScriptTarget(t),I.setLanguageVariant(b(n))}function k(){I.setText(""),I.setOnError(void 0),w=c=y=f=m=void 0}function D(e){var t=yn.getJSDocCommentRanges(e,f.text);if(t)for(var r=0,n=t;r<n.length;r++){var a=n[r];e.jsDoc=yn.append(e.jsDoc,l.parseJSDocComment(e,a.pos,a.end-a.pos))}return e}function S(e){var o=e;return void vn(e,function e(t){if(t.parent!==o){var r=t.parent=o;if(vn(o=t,e),yn.hasJSDocNodes(t))for(var n=0,a=t.jsDoc;n<a.length;n++){var i=a[n];i.parent=t,vn(o=i,e)}o=r}})}function C(e,t,r,n){var a=new s(272,0,w.length);return g++,a.text=w,a.bindDiagnostics=[],a.languageVersion=t,a.fileName=yn.normalizePath(e),a.languageVariant=b(r),a.isDeclarationFile=n,a.scriptKind=r,a}function T(e,t){e?h|=t:h&=~t}function E(e){T(e,2048)}function N(e){T(e,4096)}function A(e){T(e,8192)}function P(e){T(e,16384)}function O(e,t){var r=e&h;if(r){T(!1,r);var n=t();return T(!0,r),n}return t()}function M(e,t){var r=e&~h;if(r){T(!0,r);var n=t();return T(!1,r),n}return t()}function L(e){return O(2048,e)}function R(e){return M(16384,e)}function B(e){return 0!=(h&e)}function z(){return B(4096)}function J(){return B(2048)}function j(){return B(8192)}function K(){return B(16384)}function U(e,t){var r=I.getTokenPos();q(r,I.getTextPos()-r,e,t)}function q(e,t,r,n){var a=yn.lastOrUndefined(m);a&&e===a.start||m.push(yn.createFileDiagnostic(f,e,t,r,n)),p=!0}function V(e,t){q(I.getTextPos(),t||0,e)}function W(){return I.getStartPos()}function H(){return F}function G(){return F=I.scan()}function X(){return F=I.reScanGreaterToken()}function Q(){return F=I.scanJsxIdentifier()}function Y(){return F=I.scanJsxToken()}function Z(e,t){var r=F,n=m.length,a=p,i=h,o=t?I.lookAhead(e):I.tryScan(e);return yn.Debug.assert(i===h),o&&!t||(F=r,m.length=n,p=a),o}function $(e){return Z(e,!0)}function ee(e){return Z(e,!1)}function te(){return 71===H()||(116!==H()||!z())&&((121!==H()||!K())&&107<H())}function re(e,t,r){return void 0===r&&(r=!0),H()===e?(r&&G(),!0):(t?U(t):U(yn.Diagnostics._0_expected,yn.tokenToString(e)),!1)}function ne(e){return H()===e&&(G(),!0)}function ae(e){if(H()===e)return oe()}function ie(e,t,r){return ae(e)||pe(e,!1,t||yn.Diagnostics._0_expected,r||yn.tokenToString(e))}function oe(){var e=ue(H());return G(),de(e)}function se(){return 25===H()||(18===H()||1===H()||I.hasPrecedingLineBreak())}function ce(){return se()?(25===H()&&G(),!0):re(25)}function ue(e,t){g++;var r=0<=t?t:I.getStartPos();return yn.isNodeKind(e)||0===e?new a(e,r,r):71===e?new o(e,r,r):new i(e,r,r)}function _e(e){var t=ue(e);return 2&I.getTokenFlags()&&D(t),t}function le(e,t,r){var n=e.length,a=1<=n&&n<=4?e.slice():e;return a.pos=t,a.end=void 0===r?I.getStartPos():r,a}function de(e,t){return e.end=void 0===t?I.getStartPos():t,h&&(e.flags|=h),p&&(p=!1,e.flags|=32768),e}function pe(e,t,r,n){t?q(I.getStartPos(),0,r,n):U(r,n);var a=ue(e);return 71===e?a.escapedText="":(yn.isLiteralKind(e)||yn.isTemplateLiteralKind(e))&&(a.text=""),de(a)}function fe(e){var t=y.get(e);return void 0===t&&y.set(e,t=e),t}function me(e,t){if(v++,e){var r=ue(71);return 71!==H()&&(r.originalKeywordKind=H()),r.escapedText=yn.escapeLeadingUnderscores(fe(I.getTokenValue())),G(),de(r)}return pe(71,1===H(),t||yn.Diagnostics.Identifier_expected)}function ge(e){return me(te(),e)}function ye(e){return me(yn.tokenIsIdentifierOrKeyword(H()),e)}function ve(){return yn.tokenIsIdentifierOrKeyword(H())||9===H()||8===H()}function he(e){if(9===H()||8===H()){var t=He();return t.text=fe(t.text),t}return e&&21===H()?(r=ue(146),re(21),r.expression=L(It),re(22),de(r)):ye();var r}function be(){return he(!0)}function xe(e){return H()===e&&ee(De)}function ke(){return G(),!I.hasPrecedingLineBreak()&&Se()}function De(){return 76===H()?83===G():84===H()?(G(),79===H()?$(Ce):39!==H()&&118!==H()&&17!==H()&&Se()):79===H()?Ce():115===H()?(G(),Se()):ke()}function Se(){return 21===H()||17===H()||39===H()||24===H()||ve()}function Ce(){return G(),75===H()||89===H()||109===H()||117===H()&&$(xr)||120===H()&&$(kr)}function Te(e,t){if(Re(e))return!0;switch(e){case 0:case 1:case 3:return!(25===H()&&t)&&Tr();case 2:return 73===H()||79===H();case 4:return $(ct);case 5:return $(Gr)||25===H()&&!t;case 6:return 21===H()||ve();case 12:return 21===H()||39===H()||24===H()||ve();case 17:return ve();case 9:return 21===H()||24===H()||ve();case 7:return 17===H()?$(Ee):t?te()&&!Fe():Ft()&&!Fe();case 8:return Lr();case 10:return 26===H()||24===H()||Lr();case 18:return te();case 15:if(26===H())return!0;case 11:return 24===H()||wt();case 16:return et();case 19:case 20:return 26===H()||ht();case 21:return on();case 22:return yn.tokenIsIdentifierOrKeyword(H());case 13:return yn.tokenIsIdentifierOrKeyword(H())||17===H();case 14:return!0}yn.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ee(){if(yn.Debug.assert(17===H()),18===G()){var e=G();return 26===e||17===e||85===e||108===e}return!0}function Ne(){return G(),te()}function Ae(){return G(),yn.tokenIsIdentifierOrKeyword(H())}function Pe(){return G(),yn.tokenIsIdentifierOrKeywordOrGreaterThan(H())}function Fe(){return(108===H()||85===H())&&$(we)}function we(){return G(),wt()}function Ie(){return G(),ht()}function Oe(e){if(1===H())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===H();case 3:return 18===H()||73===H()||79===H();case 7:return 17===H()||85===H()||108===H();case 8:return function(){if(se())return!0;if(Ut(H()))return!0;if(36===H())return!0;return!1}();case 18:return 29===H()||19===H()||17===H()||85===H()||108===H();case 11:return 20===H()||25===H();case 15:case 20:case 10:return 22===H();case 16:case 17:return 20===H()||22===H();case 19:return 26!==H();case 21:return 17===H()||18===H();case 13:return 29===H()||41===H();case 14:return 27===H()&&$(ln)}}function Me(e,t){var r=u;u|=1<<e;for(var n=[],a=W();!Oe(e);)if(Te(e,!1)){var i=Le(e,t);n.push(i)}else if(Be(e))break;return u=r,le(n,a)}function Le(e,t){var r,n=Re(e);return n?(r=n,I.setTextPos(r.end),G(),r):t()}function Re(e){if(!p&&c){var t=c.currentNode(I.getStartPos());if(!yn.nodeIsMissing(t))if(!t.intersectsChange)if(!yn.containsParseError(t))if((6387712&t.flags)===h&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 154:case 159:case 155:case 156:case 151:case 210:return!0;case 153:var t=e,r=71===t.name.kind&&123===t.name.originalKeywordKind;return!r}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 264:case 265:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 232:case 212:case 211:case 215:case 214:case 227:case 223:case 225:case 222:case 221:case 219:case 220:case 218:case 217:case 224:case 213:case 228:case 226:case 216:case 229:case 242:case 241:case 248:case 247:case 237:case 233:case 234:case 236:case 235:return!0}return!1}(e);case 6:return 271===e.kind;case 4:return function(e){if(e)switch(e.kind){case 158:case 152:case 159:case 150:case 157:return!0}return!1}(e);case 8:return function(e){if(230!==e.kind)return!1;return void 0===e.initializer}(e);case 16:return function(e){if(148!==e.kind)return!1;return void 0===e.initializer}(e);case 17:return!1}return!1}(t,e))return t.jsDocCache&&(t.jsDocCache=void 0),t}}function Be(e){return U(function(e){switch(e){case 0:case 1:return yn.Diagnostics.Declaration_or_statement_expected;case 2:return yn.Diagnostics.case_or_default_expected;case 3:return yn.Diagnostics.Statement_expected;case 17:case 4:return yn.Diagnostics.Property_or_signature_expected;case 5:return yn.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return yn.Diagnostics.Enum_member_expected;case 7:return yn.Diagnostics.Expression_expected;case 8:return yn.Diagnostics.Variable_declaration_expected;case 9:return yn.Diagnostics.Property_destructuring_pattern_expected;case 10:return yn.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return yn.Diagnostics.Argument_expression_expected;case 12:return yn.Diagnostics.Property_assignment_expected;case 15:return yn.Diagnostics.Expression_or_comma_expected;case 16:return yn.Diagnostics.Parameter_declaration_expected;case 18:return yn.Diagnostics.Type_parameter_declaration_expected;case 19:return yn.Diagnostics.Type_argument_expected;case 20:return yn.Diagnostics.Type_expected;case 21:return yn.Diagnostics.Unexpected_token_expected;case 22:case 13:case 14:return yn.Diagnostics.Identifier_expected}}(e)),!!function(){for(var e=0;e<23;e++)if(u&1<<e&&(Te(e,!0)||Oe(e)))return!0;return!1}()||(G(),!1)}function ze(e,t,r){var n=u;u|=1<<e;for(var a=[],i=W(),o=-1;;)if(Te(e,!1)){var s=I.getStartPos();if(a.push(Le(e,t)),o=I.getTokenPos(),ne(26))continue;if(o=-1,Oe(e))break;re(26),r&&25===H()&&!I.hasPrecedingLineBreak()&&G(),s===I.getStartPos()&&G()}else{if(Oe(e))break;if(Be(e))break}u=n;var c=le(a,i);return 0<=o&&(c.hasTrailingComma=!0),c}function Je(){return le([],W())}function je(e,t,r,n){if(re(r)){var a=ze(e,t);return re(n),a}return Je()}function Ke(e,t){for(var r=e?ye(t):ge(t),n=I.getStartPos();ne(23);){if(27===H()){r.jsdocDotPos=n;break}n=I.getStartPos(),r=Ue(r,qe(e))}return r}function Ue(e,t){var r=ue(145,e.pos);return r.left=e,r.right=t,de(r)}function qe(e){if(I.hasPrecedingLineBreak()&&yn.tokenIsIdentifierOrKeyword(H())&&$(br))return pe(71,!0,yn.Diagnostics.Identifier_expected);return e?ye():ge()}function Ve(){var e,t=ue(200);t.head=(e=Ge(H()),yn.Debug.assert(14===e.kind,"Template head has wrong token kind"),e),yn.Debug.assert(14===t.head.kind,"Template head has wrong token kind");for(var r=[],n=W();r.push(We()),15===yn.lastOrUndefined(r).literal.kind;);return t.templateSpans=le(r,n),de(t)}function We(){var e,t,r=ue(209);return r.expression=L(It),18===H()?(F=I.reScanTemplateToken(),t=Ge(H()),yn.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),e=t):e=ie(16,yn.Diagnostics._0_expected,yn.tokenToString(18)),r.literal=e,de(r)}function He(){return Ge(H())}function Ge(e){var t=ue(e),r=I.getTokenValue();return t.text=r,I.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),I.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&I.getTokenFlags()),G(),de(t),t}function Xe(){var e=ue(161);return e.typeName=Ke(!0,yn.Diagnostics.Type_expected),I.hasPrecedingLineBreak()||27!==H()||(e.typeArguments=je(19,Nt,27,29)),de(e)}function Qe(){var e=ue(148);return 99!==H()&&94!==H()||(e.name=ye(),re(56)),e.type=Nt(),de(e)}function Ye(){var e=ue(147);return e.name=ge(),ne(85)&&(ht()||!wt()?e.constraint=Nt():e.expression=Gt()),ne(58)&&(e.default=Nt()),de(e)}function Ze(){if(27===H())return je(18,Ye,27,29)}function $e(){if(ne(56))return Nt()}function et(){return 24===H()||Lr()||yn.isModifierKind(H())||57===H()||ht(!0)}function tt(){var e=_e(148);return 99===H()?(e.name=me(!0),e.type=$e()):(e.decorators=Xr(),e.modifiers=Qr(),e.dotDotDotToken=ae(24),e.name=Rr(),0===yn.getFullWidth(e.name)&&!yn.hasModifiers(e)&&yn.isModifierKind(H())&&G(),e.questionToken=ae(55),e.type=$e(),e.initializer=Ot()),de(e)}function rt(e,t,r){var n,a;32&t||(r.typeParameters=Ze()),r.parameters=function(e){if(re(19)){var t=z(),r=K();N(!!(1&e)),P(!!(2&e));var n=ze(16,32&e?Qe:tt);if(N(t),P(r),!re(20)&&8&e)return;return n}return 8&e?void 0:Je()}(t),r.type=(a=!!(4&t),(36===(n=e)?(re(n),1):ne(56)||a&&36===H()&&(U(yn.Diagnostics._0_expected,yn.tokenToString(56)),G(),1))?function(){var e=te()&&ee(Et),t=Nt();if(e){var r=ue(160,e.pos);return r.parameterName=e,r.type=t,de(r)}return t}():void 0)}function nt(){ne(26)||ce()}function at(e){var t=_e(e);return 158===e&&re(94),rt(56,4,t),nt(),de(t)}function it(){return 21===H()&&$(ot)}function ot(){if(G(),24===H()||22===H())return!0;if(yn.isModifierKind(H())){if(G(),te())return!0}else{if(!te())return!1;G()}return 56===H()||26===H()||55===H()&&(G(),56===H()||26===H()||22===H())}function st(e){return e.kind=159,e.parameters=je(16,tt,21,22),e.type=Pt(),nt(),de(e)}function ct(){if(19===H()||27===H())return!0;for(var e;yn.isModifierKind(H());)e=!0,G();return 21===H()||(ve()&&(e=!0,G()),!!e&&(19===H()||27===H()||55===H()||56===H()||26===H()||se()))}function ut(){if(19===H()||27===H())return at(157);if(94===H()&&$(_t))return at(158);var e,t=_e(0);return t.modifiers=Qr(),it()?st(t):((e=t).name=be(),e.questionToken=ae(55),19===H()||27===H()?(e.kind=152,rt(56,4,e)):(e.kind=150,e.type=Pt(),58===H()&&(e.initializer=Ot())),nt(),de(e))}function _t(){return G(),19===H()||27===H()}function lt(){var e;return re(17)?(e=Me(4,ut),re(18)):e=Je(),e}function dt(){return G(),37===H()||38===H()?132===G():(132===H()&&G(),21===H()&&Ne()&&92===G())}function pt(){var e,t=ue(176);return re(17),132!==H()&&37!==H()&&38!==H()||(t.readonlyToken=oe(),132!==t.readonlyToken.kind&&ie(132)),re(21),t.typeParameter=((e=ue(147)).name=ge(),re(92),e.constraint=Nt(),de(e)),re(22),55!==H()&&37!==H()&&38!==H()||(t.questionToken=oe(),55!==t.questionToken.kind&&ie(55)),t.type=Pt(),ce(),re(18),de(t)}function ft(e){var t=_e(e);return 163===e&&re(94),rt(36,4,t),de(t)}function mt(){var e=oe();return 23===H()?void 0:e}function gt(e){var t,r=ue(177);e&&((t=ue(196)).operator=38,G());var n=101===H()||86===H()?oe():Ge(H());return e&&(t.operand=n,de(t),n=t),r.literal=n,de(r)}function yt(){return 8===G()}function vt(){switch(H()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return ee(mt)||Xe();case 39:return u=ue(275),G(),de(u);case 55:return c=I.getStartPos(),G(),26===H()||18===H()||20===H()||29===H()||58===H()||49===H()?de(s=ue(276,c)):((s=ue(277,c)).type=Nt(),de(s));case 89:return function(){if($(_n)){var e=_e(280);return G(),rt(56,36,e),de(e)}var t=ue(161);return t.typeName=ye(),de(t)}();case 51:return o=ue(278),G(),o.type=vt(),de(o);case 13:case 9:case 8:case 101:case 86:return gt();case 38:return $(yt)?gt(!0):Xe();case 105:case 95:return oe();case 99:var e=(i=ue(173),G(),de(i));return 127!==H()||I.hasPrecedingLineBreak()?e:function(e){G();var t=ue(160,e.pos);return t.parameterName=e,t.type=Nt(),de(t)}(e);case 103:return a=ue(164),re(103),a.exprName=Ke(!0),de(a);case 17:return $(dt)?pt():((n=ue(165)).members=lt(),de(n));case 21:return(r=ue(167)).elementTypes=je(20,Nt,21,22),de(r);case 19:return t=ue(172),re(19),t.type=Nt(),re(20),de(t);default:return Xe()}var t,r,n,a,i,o,s,c,u}function ht(e){switch(H()){case 119:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:return!0;case 38:return!e&&$(yt);case 19:return!e&&$(bt);default:return te()}}function bt(){return G(),20===H()||et()||ht()}function xt(){for(var e=vt();!I.hasPrecedingLineBreak();)switch(H()){case 58:if(!(1048576&h))return e;e=kt(279,e);break;case 51:e=kt(278,e);break;case 55:if(!(1048576&h)&&$(Ie))return e;e=kt(277,e);break;case 21:var t;if(re(21),ht())(t=ue(175,e.pos)).objectType=e,t.indexType=Nt(),re(22),e=de(t);else(t=ue(166,e.pos)).elementType=e,re(22),e=de(t);break;default:return e}return e}function kt(e,t){G();var r=ue(e,t.pos);return r.type=t,de(r)}function Dt(){var e,t,r=H();switch(r){case 128:case 141:return e=r,t=ue(174),re(e),t.operator=e,t.type=Dt(),de(t);case 126:return function(){var e=ue(171);re(126);var t=ue(147);return t.name=ge(),e.typeParameter=de(t),de(e)}();case 24:var n=ue(281);return G(),n.type=xt(),de(n)}return xt()}function St(e,t,r){ne(r);var n=t();if(H()===r){for(var a=[n];ne(r);)a.push(t());var i=ue(e,n.pos);i.types=le(a,n.pos),n=de(i)}return n}function Ct(){return St(169,Dt,48)}function Tt(){if(G(),20===H()||24===H())return!0;if(function(){if(yn.isModifierKind(H())&&Qr(),te()||99===H())return G(),!0;if(21===H()||17===H()){var e=m.length;return Rr(),e===m.length}return!1}()){if(56===H()||26===H()||55===H()||58===H())return!0;if(20===H()&&(G(),36===H()))return!0}return!1}function Et(){var e=ge();if(127===H()&&!I.hasPrecedingLineBreak())return G(),e}function Nt(){return O(20480,At)}function At(e){if(27===H()||19===H()&&$(Tt))return ft(162);if(94===H())return ft(163);var t=St(168,Ct,49);if(!e&&!I.hasPrecedingLineBreak()&&ne(85)){var r=ue(170,t.pos);return r.checkType=t,r.extendsType=At(!0),re(55),r.trueType=At(),re(56),r.falseType=At(),de(r)}return t}function Pt(){return ne(56)?Nt():void 0}function Ft(){switch(H()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return $(_t);default:return te()}}function wt(){if(Ft())return!0;switch(H()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!function(){if(J()&&92===H())return!1;return 0<Vt()}()||te()}}function It(){var e=j();e&&A(!1);for(var t,r=Mt();t=ae(26);)r=Wt(r,t,Mt());return e&&A(!0),r}function Ot(){return ne(58)?Mt():void 0}function Mt(){if(function(){if(116===H())return!!z()||$(Dr);return!1}())return e=ue(201),G(),I.hasPrecedingLineBreak()||39!==H()&&!wt()||(e.asteriskToken=ae(39),e.expression=Mt()),de(e);var e,t=function(){var e=function(){if(19===H()||27===H()||120===H())return $(Rt);if(36===H())return 1;return 0}();if(0===e)return;var t=1===e?Jt(!0):ee(Bt);if(!t)return;var r=yn.hasModifier(t,256),n=H();return t.equalsGreaterThanToken=ie(36),t.body=36===n||17===n?jt(r):ge(),de(t)}()||function(){if(120===H()&&1===$(zt)){var e=Yr(),t=Kt(0);return Lt(t,e)}return}();if(t)return t;var r=Kt(0);return 71===r.kind&&36===H()?Lt(r):yn.isLeftHandSideExpression(r)&&yn.isAssignmentOperator(X())?Wt(r,oe(),Mt()):function(e){var t=ae(55);if(!t)return e;var r=ue(199,e.pos);return r.condition=e,r.questionToken=t,r.whenTrue=O(d,Mt),r.colonToken=ie(56),r.whenFalse=yn.nodeIsPresent(r.colonToken)?Mt():pe(71,!1,yn.Diagnostics._0_expected,yn.tokenToString(56)),de(r)}(r)}function Lt(e,t){var r;yn.Debug.assert(36===H(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),t?(r=ue(191,t.pos)).modifiers=t:r=ue(191,e.pos);var n=ue(148,e.pos);return n.name=e,de(n),r.parameters=le([n],n.pos,n.end),r.equalsGreaterThanToken=ie(36),r.body=jt(!!t),D(de(r))}function Rt(){if(120===H()){if(G(),I.hasPrecedingLineBreak())return 0;if(19!==H()&&27!==H())return 0}var e=H(),t=G();if(19===e){if(20===t)switch(G()){case 36:case 56:case 17:return 1;default:return 0}if(21===t||17===t)return 2;if(24===t)return 1;if(yn.isModifierKind(t)&&120!==t&&$(Ne))return 1;if(!te())return 0;switch(G()){case 56:return 1;case 55:return G(),56===H()||26===H()||58===H()||20===H()?1:0;case 26:case 58:case 20:return 2}return 0}return yn.Debug.assert(27===e),te()?1===f.languageVariant?$(function(){var e=G();if(85===e)switch(G()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function Bt(){return Jt(!1)}function zt(){if(120===H()){if(G(),I.hasPrecedingLineBreak()||36===H())return 0;var e=Kt(0);if(!I.hasPrecedingLineBreak()&&71===e.kind&&36===H())return 1}return 0}function Jt(e){var t=_e(191);if(t.modifiers=Yr(),rt(56,(yn.hasModifier(t,256)?2:0)|(e?0:8),t),t.parameters&&(e||36===H()||17===H()))return t}function jt(e){return 17===H()?mr(e?2:0):25===H()||89===H()||75===H()||!Tr()||17!==H()&&89!==H()&&75!==H()&&57!==H()&&wt()?e?R(Mt):O(16384,Mt):mr(16|(e?2:0))}function Kt(e){return qt(e,Gt())}function Ut(e){return 92===e||144===e}function qt(e,t){for(;;){X();var r=Vt();if(!(40===H()?e<=r:e<r))break;if(92===H()&&J())break;if(118===H()){if(I.hasPrecedingLineBreak())break;G(),t=Ht(t,Nt())}else t=Wt(t,oe(),Kt(r))}return t}function Vt(){switch(H()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function Wt(e,t,r){var n=ue(198,e.pos);return n.left=e,n.operatorToken=t,n.right=r,de(n)}function Ht(e,t){var r=ue(206,e.pos);return r.expression=e,r.type=t,de(r)}function Gt(){if(function(){switch(H()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==f.languageVariant)return!1;default:return!0}}()){var e=Qt();return 40===H()?qt(Vt(),e):e}var t=H(),r=Xt();if(40===H()){var n=yn.skipTrivia(w,r.pos);188===r.kind?q(n,r.end-n,yn.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):q(n,r.end-n,yn.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,yn.tokenToString(t))}return r}function Xt(){switch(H()){case 37:case 38:case 52:case 51:return(i=ue(196)).operator=H(),G(),i.operand=Xt(),de(i);case 80:return a=ue(192),G(),a.expression=Xt(),de(a);case 103:return n=ue(193),G(),n.expression=Xt(),de(n);case 105:return r=ue(194),G(),r.expression=Xt(),de(r);case 27:return t=ue(188),re(27),t.type=Nt(),re(29),t.expression=Xt(),de(t);case 121:if(121===H()&&(K()||$(Dr)))return e=ue(195),G(),e.expression=Xt(),de(e);default:return Qt()}var e,t,r,n,a,i}function Qt(){if(43===H()||44===H())return(e=ue(196)).operator=H(),G(),e.operand=Yt(),de(e);if(1===f.languageVariant&&27===H()&&$(Pe))return $t(!0);var e,t=Yt();return yn.Debug.assert(yn.isLeftHandSideExpression(t)),43!==H()&&44!==H()||I.hasPrecedingLineBreak()?t:((e=ue(197,t.pos)).operand=t,e.operator=H(),G(),de(e))}function Yt(){var e;return 91===H()&&$(_t)?(f.flags|=524288,e=oe()):e=97===H()?function(){var e=oe();if(19===H()||23===H()||21===H())return e;var t=ue(183,e.pos);return t.expression=e,ie(23,yn.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),t.name=qe(!0),de(t)}():Zt(),function(e){for(;;)if(e=ir(e),27!==H()){if(19!==H())return e;var t=ue(185,e.pos);t.expression=e,t.arguments=or(),e=de(t)}else{var r=ee(sr);if(!r)return e;var t=ue(185,e.pos);t.expression=e,t.typeArguments=r,t.arguments=or(),e=de(t)}}(e)}function Zt(){return ir(function(){switch(H()){case 8:case 9:case 13:return He();case 99:case 97:case 95:case 101:case 86:return oe();case 19:return e=_e(189),re(19),e.expression=L(It),re(20),de(e);case 21:return function(){var e=ue(181);re(21),I.hasPrecedingLineBreak()&&(e.multiLine=!0);return e.elements=ze(15,cr),re(22),de(e)}();case 17:return lr();case 120:if(!$(kr))break;return dr();case 75:return en(_e(0),203);case 89:return dr();case 94:return function(){var e=I.getStartPos();if(re(94),ne(23)){var t=ue(208,e);return t.keywordToken=94,t.name=ye(),de(t)}var r=ue(186,e);r.expression=Zt(),r.typeArguments=ee(sr),(r.typeArguments||19===H())&&(r.arguments=or());return de(r)}();case 41:case 63:if(12===(F=I.reScanSlashToken()))return He();break;case 14:return Ve()}var e;return ge(yn.Diagnostics.Expression_expected)}())}function $t(e){var t,r=function(e){var t=I.getStartPos();if(re(27),29===H()){var r=ue(258,t);return Y(),de(r)}var n,a=rr(),i=(o=ue(261),o.properties=Me(13,ar),de(o));var o;29===H()?(n=ue(255,t),Y()):(re(41),e?re(29):(re(29,void 0,!1),Y()),n=ue(254,t));return n.tagName=a,n.attributes=i,de(n)}(e);if(255===r.kind)(n=ue(253,r.pos)).openingElement=r,n.children=tr(n.openingElement),n.closingElement=function(e){var t=ue(256);re(28),t.tagName=rr(),e?re(29):(re(29,void 0,!1),Y());return de(t)}(e),function e(t,r){return t.kind===r.kind&&(71===t.kind?t.escapedText===r.escapedText:99===t.kind||t.name.escapedText===r.name.escapedText&&e(t.expression,r.expression))}(n.openingElement.tagName,n.closingElement.tagName)||q(n.closingElement.pos,n.closingElement.end-n.closingElement.pos,yn.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,yn.getTextOfNodeFromSourceText(w,n.openingElement.tagName)),t=de(n);else if(258===r.kind){var n;(n=ue(257,r.pos)).openingFragment=r,n.children=tr(n.openingFragment),n.closingFragment=function(e){var t=ue(259);if(re(28),yn.tokenIsIdentifierOrKeyword(H())){var r=rr();q(r.pos,r.end-r.pos,yn.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}e?re(29):(re(29,void 0,!1),Y());return de(t)}(e),t=de(n)}else yn.Debug.assert(254===r.kind),t=r;if(e&&27===H()){var a=ee(function(){return $t(!0)});if(a){U(yn.Diagnostics.JSX_expressions_must_have_one_parent_element);var i=ue(198,t.pos);return i.end=a.end,i.left=t,i.right=a,i.operatorToken=pe(26,!1,void 0),i.operatorToken.pos=i.operatorToken.end=i.right.pos,i}}return t}function er(){switch(H()){case 10:case 11:return(e=ue(10)).containsOnlyWhiteSpaces=11===F,F=I.scanJsxToken(),de(e);case 17:return nr(!1);case 27:return $t(!1)}var e;yn.Debug.fail("Unknown JSX child kind "+H())}function tr(e){var t=[],r=W(),n=u;for(u|=16384;F=I.reScanJsxToken(),28!==H();){if(1===H()){if(yn.isJsxOpeningFragment(e))q(e.pos,e.end-e.pos,yn.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var a=e.tagName;q(a.pos,a.end-a.pos,yn.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,yn.getTextOfNodeFromSourceText(w,a))}break}if(7===H())break;var i=er();i&&t.push(i)}return u=n,le(t,r)}function rr(){Q();for(var e=99===H()?oe():ye();ne(23);){var t=ue(183,e.pos);t.expression=e,t.name=qe(!0),e=de(t)}return e}function nr(e){var t=ue(263);if(re(17))return 18!==H()&&(t.dotDotDotToken=ae(24),t.expression=Mt()),e?re(18):(re(18,void 0,!1),Y()),de(t)}function ar(){if(17===H())return e=ue(262),re(17),re(24),e.expression=It(),re(18),de(e);var e;Q();var t=ue(260);if(t.name=ye(),58===H())switch(F=I.scanJsxAttributeValue()){case 9:t.initializer=He();break;default:t.initializer=nr(!0)}return de(t)}function ir(e){for(;;){if(ae(23)){var t=ue(183,e.pos);t.expression=e,t.name=qe(!0),e=de(t)}else if(51!==H()||I.hasPrecedingLineBreak())if(j()||!ne(21)){if(13!==H()&&14!==H())return e;var r=ue(187,e.pos);r.tag=e,r.template=13===H()?He():Ve(),e=de(r)}else{var n=ue(184,e.pos);if(n.expression=e,22!==H()&&(n.argumentExpression=L(It),9===n.argumentExpression.kind||8===n.argumentExpression.kind)){var a=n.argumentExpression;a.text=fe(a.text)}re(22),e=de(n)}else{G();var i=ue(207,e.pos);i.expression=e,e=de(i)}}}function or(){re(19);var e=ze(11,ur);return re(20),e}function sr(){if(ne(27)){var e=ze(19,Nt);if(re(29))return e&&function(){switch(H()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}()?e:void 0}}function cr(){return 24===H()?(e=ue(202),re(24),e.expression=Mt(),de(e)):26===H()?ue(204):Mt();var e}function ur(){return O(d,cr)}function _r(){var e=_e(0);if(ae(24))return e.kind=270,e.expression=Mt(),de(e);if(e.decorators=Xr(),e.modifiers=Qr(),xe(125))return Wr(e,155);if(xe(136))return Wr(e,156);var t=ae(39),r=te();if(e.name=be(),e.questionToken=ae(55),t||19===H()||27===H())return qr(e,t);if(r&&(26===H()||18===H()||58===H())){e.kind=269;var n=ae(58);n&&(e.equalsToken=n,e.objectAssignmentInitializer=L(Mt))}else e.kind=268,re(56),e.initializer=L(Mt);return de(e)}function lr(){var e=ue(182);return re(17),I.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=ze(12,_r,!0),re(18),de(e)}function dr(){var e=j();e&&A(!1);var t=_e(190);t.modifiers=Qr(),re(89),t.asteriskToken=ae(39);var r=t.asteriskToken?1:0,n=yn.hasModifier(t,256)?2:0;return t.name=r&&n?M(20480,pr):r?M(4096,pr):n?R(pr):pr(),rt(56,r|n,t),t.body=mr(r|n),e&&A(!0),de(t)}function pr(){return te()?ge():void 0}function fr(e,t){var r=ue(211);return re(17,t)||e?(I.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=Me(1,Nr),re(18)):r.statements=Je(),de(r)}function mr(e,t){var r=z();N(!!(1&e));var n=K();P(!!(2&e));var a=j();a&&A(!1);var i=fr(!!(16&e),t);return a&&A(!0),N(r),P(n),i}function gr(){var e=W();re(88);var t,r,n=ae(121);if(re(19),25!==H()&&(t=104===H()||110===H()||76===H()?Jr(!0):M(2048,It)),n?re(144):ne(144)){var a=ue(220,e);a.awaitModifier=n,a.initializer=t,a.expression=L(Mt),re(20),r=a}else if(ne(92)){var i=ue(219,e);i.initializer=t,i.expression=L(It),re(20),r=i}else{var o=ue(218,e);o.initializer=t,re(25),25!==H()&&20!==H()&&(o.condition=L(It)),re(25),20!==H()&&(o.incrementor=L(It)),re(20),r=o}return r.statement=Nr(),de(r)}function yr(e){var t=ue(e);return re(222===e?72:77),se()||(t.label=ge()),ce(),de(t)}function vr(){return 73===H()?(t=ue(264),re(73),t.expression=L(It),re(56),t.statements=Me(3,Nr),de(t)):(e=ue(265),re(79),re(56),e.statements=Me(3,Nr),de(e));var e,t}function hr(){var e=ue(228);return re(102),e.tryBlock=fr(!1),e.catchClause=74===H()?function(){var e=ue(267);re(74),ne(19)?(e.variableDeclaration=zr(),re(20)):e.variableDeclaration=void 0;return e.block=fr(!1),de(e)}():void 0,e.catchClause&&87!==H()||(re(87),e.finallyBlock=fr(!1)),de(e)}function br(){return G(),yn.tokenIsIdentifierOrKeyword(H())&&!I.hasPrecedingLineBreak()}function xr(){return G(),75===H()&&!I.hasPrecedingLineBreak()}function kr(){return G(),89===H()&&!I.hasPrecedingLineBreak()}function Dr(){return G(),(yn.tokenIsIdentifierOrKeyword(H())||8===H()||9===H())&&!I.hasPrecedingLineBreak()}function Sr(){for(;;)switch(H()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return G(),!I.hasPrecedingLineBreak()&&te();case 129:case 130:return wr();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(G(),I.hasPrecedingLineBreak())return!1;continue;case 143:return G(),17===H()||71===H()||84===H();case 91:return G(),9===H()||39===H()||17===H()||yn.tokenIsIdentifierOrKeyword(H());case 84:if(G(),58===H()||39===H()||17===H()||79===H()||118===H())return!0;continue;case 115:G();continue;default:return!1}}function Cr(){return $(Sr)}function Tr(){switch(H()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Cr()||$(_t);case 76:case 84:return Cr();case 120:case 124:case 109:case 129:case 130:case 139:case 143:return!0;case 114:case 112:case 113:case 115:case 132:return Cr()||!$(br);default:return wt()}}function Er(){return G(),te()||17===H()||21===H()}function Nr(){switch(H()){case 25:return s=ue(213),re(25),de(s);case 17:return fr(!1);case 104:return Kr(_e(230));case 110:if($(Er))return Kr(_e(230));break;case 89:return Ur(_e(232));case 75:return $r(_e(233));case 90:return o=ue(215),re(90),re(19),o.expression=L(It),re(20),o.thenStatement=Nr(),o.elseStatement=ne(82)?Nr():void 0,de(o);case 81:return i=ue(216),re(81),i.statement=Nr(),re(106),re(19),i.expression=L(It),re(20),ne(25),de(i);case 106:return a=ue(217),re(106),re(19),a.expression=L(It),re(20),a.statement=Nr(),de(a);case 88:return gr();case 77:return yr(221);case 72:return yr(222);case 96:return n=ue(223),re(96),se()||(n.expression=L(It)),ce(),de(n);case 107:return r=ue(224),re(107),re(19),r.expression=L(It),re(20),r.statement=M(4194304,Nr),de(r);case 98:return function(){var e=ue(225);re(98),re(19),e.expression=L(It),re(20);var t=ue(239);return re(17),t.clauses=Me(2,vr),re(18),e.caseBlock=de(t),de(e)}();case 100:return t=ue(227),re(100),t.expression=I.hasPrecedingLineBreak()?void 0:L(It),ce(),de(t);case 102:case 74:case 87:return hr();case 78:return e=ue(229),re(78),ce(),de(e);case 57:return Pr();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 143:if(Cr())return Pr()}var e,t,r,n,a,i,o,s,c,u;return c=_e(0),71===(u=L(It)).kind&&ne(56)?(c.kind=226,c.label=u,c.statement=Nr()):(c.kind=214,c.expression=u,ce()),de(c)}function Ar(e){return 124===e.kind}function Pr(){var e=_e(0);if(e.decorators=Xr(),e.modifiers=Qr(),yn.some(e.modifiers,Ar)){for(var t=0,r=e.modifiers;t<r.length;t++){r[t].flags|=2097152}return M(2097152,function(){return Fr(e)})}return Fr(e)}function Fr(e){switch(H()){case 104:case 110:case 76:return Kr(e);case 89:return Ur(e);case 75:return $r(e);case 109:return(a=e).kind=234,re(109),a.name=ge(),a.typeParameters=Ze(),a.heritageClauses=tn(),a.members=lt(),de(a);case 139:return(n=e).kind=235,re(139),n.name=ge(),n.typeParameters=Ze(),re(58),n.type=Nt(),ce(),de(n);case 83:return function(e){e.kind=236,re(83),e.name=ge(),re(17)?(e.members=ze(6,sn),re(18)):e.members=Je();return de(e)}(e);case 143:case 129:case 130:return function(e){var t=0;{if(143===H())return un(e);if(ne(130))t|=16;else if(re(129),9===H())return un(e)}return function e(t,r){t.kind=237;var n=16&r;t.flags|=r;t.name=ge();t.body=ne(23)?e(ue(0),4|n):cn();return de(t)}(e,t)}(e);case 91:return function(e){re(91);var t,r=I.getStartPos();if(te()&&(t=ge(),26!==H()&&142!==H()))return a=t,(n=e).kind=241,n.name=a,re(58),n.moduleReference=133===H()&&$(_n)?(i=ue(252),re(133),re(19),i.expression=dn(),re(20),de(i)):Ke(!1),ce(),de(n);var n,a,i;e.kind=242,(t||39===H()||17===H())&&(e.importClause=function(e,t){var r=ue(243,t);e&&(r.name=e);r.name&&!ne(26)||(r.namedBindings=39===H()?(n=ue(244),re(39),re(118),n.name=ge(),de(n)):pn(245));var n;return de(r)}(t,r),re(142));return e.moduleSpecifier=dn(),ce(),de(e)}(e);case 84:switch(G(),H()){case 79:case 58:return function(e){e.kind=247,ne(58)?e.isExportEquals=!0:re(79);return e.expression=Mt(),ce(),de(e)}(e);case 118:return(r=e).kind=240,re(118),re(130),r.name=ge(),ce(),de(r);default:return function(e){e.kind=248,ne(39)?(re(142),e.moduleSpecifier=dn()):(e.exportClause=pn(249),(142===H()||9===H()&&!I.hasPrecedingLineBreak())&&(re(142),e.moduleSpecifier=dn()));return ce(),de(e)}(e)}default:if(e.decorators||e.modifiers){var t=pe(251,!0,yn.Diagnostics.Declaration_expected);return t.pos=e.pos,t.decorators=e.decorators,t.modifiers=e.modifiers,de(t)}}var r,n,a}function wr(){return G(),!I.hasPrecedingLineBreak()&&(te()||9===H())}function Ir(e,t){if(17===H()||!se())return mr(e,t);ce()}function Or(){if(26===H())return ue(204);var e=ue(180);return e.dotDotDotToken=ae(24),e.name=Rr(),e.initializer=Ot(),de(e)}function Mr(){var e=ue(180);e.dotDotDotToken=ae(24);var t=te(),r=be();return t&&56!==H()?e.name=r:(re(56),e.propertyName=r,e.name=Rr()),e.initializer=Ot(),de(e)}function Lr(){return 17===H()||21===H()||te()}function Rr(){return 21===H()?(e=ue(179),re(21),e.elements=ze(10,Or),re(22),de(e)):17===H()?(t=ue(178),re(17),t.elements=ze(9,Mr),re(18),de(t)):ge();var e,t}function Br(){return zr(!0)}function zr(e){var t=ue(230);return t.name=Rr(),e&&71===t.name.kind&&51===H()&&!I.hasPrecedingLineBreak()&&(t.exclamationToken=oe()),t.type=Pt(),Ut(H())||(t.initializer=Ot()),de(t)}function Jr(e){var t=ue(231);switch(H()){case 104:break;case 110:t.flags|=1;break;case 76:t.flags|=2;break;default:yn.Debug.fail()}if(G(),144===H()&&$(jr))t.declarations=Je();else{var r=J();E(e),t.declarations=ze(8,e?zr:Br),E(r)}return de(t)}function jr(){return Ne()&&20===G()}function Kr(e){return e.kind=212,e.declarationList=Jr(!1),ce(),de(e)}function Ur(e){e.kind=232,re(89),e.asteriskToken=ae(39),e.name=yn.hasModifier(e,512)?pr():ge();var t=e.asteriskToken?1:0,r=yn.hasModifier(e,256)?2:0;return rt(56,t|r,e),e.body=Ir(t|r,yn.Diagnostics.or_expected),de(e)}function qr(e,t,r){e.kind=153;var n=(e.asteriskToken=t)?1:0,a=yn.hasModifier(e,256)?2:0;return rt(56,n|a,e),e.body=Ir(n|a,r),de(e)}function Vr(e){return e.kind=151,e.questionToken||51!==H()||I.hasPrecedingLineBreak()||(e.exclamationToken=oe()),e.type=Pt(),e.initializer=yn.hasModifier(e,32)?L(Ot):O(6144,Ot),ce(),de(e)}function Wr(e,t){return e.kind=t,e.name=be(),rt(56,0,e),e.body=Ir(0),de(e)}function Hr(e){switch(e){case 114:case 112:case 113:case 115:case 132:return!0;default:return!1}}function Gr(){var e;if(57===H())return!0;for(;yn.isModifierKind(H());){if(Hr(e=H()))return!0;G()}if(39===H())return!0;if(ve()&&(e=H(),G()),21===H())return!0;if(void 0!==e){if(!yn.isKeyword(e)||136===e||125===e)return!0;switch(H()){case 19:case 27:case 51:case 56:case 58:case 55:return!0;default:return se()}}return!1}function Xr(){for(var e,t=W();;){var r=W();if(!ne(57))break;var n=ue(149,r);n.expression=M(8192,Yt),de(n),(e||(e=[])).push(n)}return e&&le(e,t)}function Qr(e){for(var t,r=W();;){var n=I.getStartPos(),a=H();if(76===H()&&e){if(!ee(ke))break}else if(!yn.isModifierKind(H())||!ee(De))break;var i=de(ue(a,n));(t||(t=[])).push(i)}return t&&le(t,r)}function Yr(){var e;if(120===H()){var t=I.getStartPos(),r=H();G(),e=le([de(ue(r,t))],t)}return e}function Zr(){if(25===H()){var e=ue(210);return G(),de(e)}var t,r,n,a=_e(0);return a.decorators=Xr(),a.modifiers=Qr(!0),xe(125)?Wr(a,155):xe(136)?Wr(a,156):123===H()?((t=a).kind=154,re(123),rt(56,0,t),t.body=Ir(0,yn.Diagnostics.or_expected),de(t)):it()?st(a):yn.tokenIsIdentifierOrKeyword(H())||9===H()||8===H()||39===H()||21===H()?(r=a,n=ae(39),r.name=be(),r.questionToken=ae(55),n||19===H()||27===H()?qr(r,n,yn.Diagnostics.or_expected):Vr(r)):a.decorators||a.modifiers?(a.name=pe(71,!0,yn.Diagnostics.Declaration_expected),Vr(a)):void yn.Debug.fail("Should not have attempted to parse class member declaration.")}function $r(e){return en(e,233)}function en(e,t){return e.kind=t,re(75),e.name=!te()||108===H()&&$(Ae)?void 0:ge(),e.typeParameters=Ze(),e.heritageClauses=tn(),re(17)?(e.members=Me(5,Zr),re(18)):e.members=Je(),de(e)}function tn(){if(on())return Me(21,rn)}function rn(){var e=H();if(85===e||108===e){var t=ue(266);return t.token=e,G(),t.types=ze(7,nn),de(t)}}function nn(){var e=ue(205);return e.expression=Yt(),e.typeArguments=an(),de(e)}function an(){return 27===H()?je(19,Nt,27,29):void 0}function on(){return 85===H()||108===H()}function sn(){var e=_e(271);return e.name=be(),e.initializer=L(Ot),de(e)}function cn(){var e=ue(238);return re(17)?(e.statements=Me(1,Nr),re(18)):e.statements=Je(),de(e)}function un(e){return e.kind=237,143===H()?(e.name=ge(),e.flags|=512):(e.name=He(),e.name.text=fe(e.name.text)),17===H()?e.body=cn():ce(),de(e)}function _n(){return 19===G()}function ln(){return 41===G()}function dn(){if(9===H()){var e=He();return e.text=fe(e.text),e}return It()}function pn(e){var t=ue(e);return t.elements=je(22,245===e?mn:fn,17,18),de(t)}function fn(){return gn(250)}function mn(){return gn(246)}function gn(e){var t=ue(e),r=yn.isKeyword(H())&&!te(),n=I.getTokenPos(),a=I.getTextPos(),i=ye();return 118===H()?(t.propertyName=i,re(118),r=yn.isKeyword(H())&&!te(),n=I.getTokenPos(),a=I.getTextPos(),t.name=ye()):t.name=i,246===e&&r&&q(n,a-n,yn.Diagnostics.Identifier_expected),de(t)}e.parseSourceFile=function(e,t,r,n,a,i){x(t,r,n,i=yn.ensureScriptKind(e,i));var o=(s=e,c=r,u=a,_=i,l=s,p=yn.fileExtensionIs(l,".d.ts"),p&&(h|=2097152),(f=C(s,c,_,p)).flags=h,G(),hn(f,w),bn(f,function(e,t,r){m.push(yn.createFileDiagnostic(f,e,t,r))}),f.statements=Me(0,Nr),yn.Debug.assert(1===H()),f.endOfFileToken=D(oe()),(d=f).externalModuleIndicator=yn.forEach(d.statements,function(e){return yn.hasModifier(e,1)||241===e.kind&&252===e.moduleReference.kind||242===e.kind||247===e.kind||248===e.kind?e:void 0}),f.nodeCount=g,f.identifierCount=v,f.identifiers=y,f.parseDiagnostics=m,u&&S(f),f);var s,c,u,_,l,d,p;return k(),o},e.parseIsolatedEntityName=function(e,t){x(e,t,void 0,1),G();var r=Ke(!0),n=1===H()&&!m.length;return k(),n?r:void 0},e.parseJsonText=function(e,t){x(t,2,void 0,6);var r=f=C(e,2,6,!1);return G(),1===H()?f.endOfFileToken=oe():17===H()||$(function(){return 9===H()})?(r.jsonObject=lr(),f.endOfFileToken=ie(1,yn.Diagnostics.Unexpected_token)):re(17),f.parseDiagnostics=m,k(),r},e.fixupParentReferences=S,(r=t||(t={}))[r.SourceElements=0]="SourceElements",r[r.BlockStatements=1]="BlockStatements",r[r.SwitchClauses=2]="SwitchClauses",r[r.SwitchClauseStatements=3]="SwitchClauseStatements",r[r.TypeMembers=4]="TypeMembers",r[r.ClassMembers=5]="ClassMembers",r[r.EnumMembers=6]="EnumMembers",r[r.HeritageClauseElement=7]="HeritageClauseElement",r[r.VariableDeclarations=8]="VariableDeclarations",r[r.ObjectBindingElements=9]="ObjectBindingElements",r[r.ArrayBindingElements=10]="ArrayBindingElements",r[r.ArgumentExpressions=11]="ArgumentExpressions",r[r.ObjectLiteralMembers=12]="ObjectLiteralMembers",r[r.JsxAttributes=13]="JsxAttributes",r[r.JsxChildren=14]="JsxChildren",r[r.ArrayLiteralMembers=15]="ArrayLiteralMembers",r[r.Parameters=16]="Parameters",r[r.RestProperties=17]="RestProperties",r[r.TypeParameters=18]="TypeParameters",r[r.TypeArguments=19]="TypeArguments",r[r.TupleElementTypes=20]="TupleElementTypes",r[r.HeritageClauses=21]="HeritageClauses",r[r.ImportOrExportSpecifiers=22]="ImportOrExportSpecifiers",r[r.Count=23]="Count",(_=n||(n={}))[_.False=0]="False",_[_.True=1]="True",_[_.Unknown=2]="Unknown",function(e){function s(e){var t=ue(274,I.getTokenPos()),r=(e?ne:re)(17);return t.type=M(1048576,Nt),e&&!r||re(18),S(t),de(t)}var t,r,n,a;function c(c,e){var u=w;c=c||0;var _,l,d,p=void 0===e?u.length:c+e;e=p-c,yn.Debug.assert(0<=c),yn.Debug.assert(c<=p),yn.Debug.assert(p<=u.length);var f,t,r,m=[];return r=c,47!==(t=u).charCodeAt(r)||42!==t.charCodeAt(r+1)||42!==t.charCodeAt(r+2)||42===t.charCodeAt(r+3)||I.scanRange(c+3,e-5,function(){var t,e=1,r=c-Math.max(u.lastIndexOf("\n",c),0)+4;function n(e){t||(t=r),m.push(e),r+=e.length}for(var a,i=A();5===i;)i=A();4===i&&(r=e=0,i=A());e:for(;;){switch(i){case 57:0===e||1===e?(y(m),h(r),t=void(e=0),r++):n(I.getTokenText());break;case 4:m.push(I.getTokenText()),r=e=0;break;case 39:var o=I.getTokenText();1===e||2===e?(e=2,n(o)):(e=1,r+=o.length);break;case 71:n(I.getTokenText()),e=2;break;case 5:var s=I.getTokenText();2===e?m.push(s):void 0!==t&&r+s.length>t&&m.push(s.slice(t-r-1)),r+=s.length;break;case 1:break e;default:e=2,n(I.getTokenText())}i=A()}g(m),y(m),(a=ue(282,c)).tags=_&&le(_,l,d),a.comment=m.length?m.join(""):void 0,f=de(a,p)}),f;function g(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function y(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function v(){for(;5===H()||4===H();)A()}function h(e){yn.Debug.assert(57===H());var t=ue(57,I.getTokenPos());t.end=I.getTextPos(),A();var r=P();if(v(),r){var n,a,i,o,s,c,u;if(r)switch(r.escapedText){case"augments":case"extends":c=r,(u=ue(285,(s=t).pos)).atToken=s,u.tagName=c,u.class=function(){var e=ne(17),t=ue(205);t.expression=function(){for(var e=P(!0);ne(23);){var t=ue(183,e.pos);t.expression=e,t.name=P(),e=de(t)}return e}(),t.typeArguments=an();var r=de(t);return e&&re(18),r}(),n=de(u);break;case"class":case"constructor":i=r,(o=ue(286,(a=t).pos)).atToken=a,o.tagName=i,n=de(o);break;case"arg":case"argument":case"param":n=C(t,r,1);break;case"return":case"returns":n=function(e,t){yn.forEach(_,function(e){return 288===e.kind})&&q(t.pos,I.getTokenPos()-t.pos,yn.Diagnostics._0_tag_already_specified,t.escapedText);var r=ue(288,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=k(),de(r)}(t,r);break;case"template":n=function(e,t){yn.some(_,yn.isJSDocTemplateTag)&&q(t.pos,I.getTokenPos()-t.pos,yn.Diagnostics._0_tag_already_specified,t.escapedText);var r=[],n=W();for(;;){var a=ue(147),i=N();if(v(),!i)return void q(I.getStartPos(),0,yn.Diagnostics.Identifier_expected);if(a.name=i,de(a),r.push(a),26!==H())break;A(),v()}var o=ue(290,e.pos);return o.atToken=e,o.tagName=t,o.typeParameters=le(r,n),de(o),o}(t,r);break;case"type":n=T(t,r);break;case"typedef":n=function(e,t){var r=k();v();var n=ue(291,e.pos);if(n.atToken=e,n.tagName=t,n.fullName=function e(t){var r=I.getTokenPos(),n=P();if(n&&ne(23)){var a=ue(237,r);return a.flags|=t,a.name=n,a.body=e(4),de(a)}return n&&4&t&&(n.isInJSDocNamespace=!0),n}(0),n.fullName)for(var a=n.fullName;;){if(71===a.kind||!a.body){n.name=71===a.kind?a:a.name;break}a=a.body}if(v(),!(n.typeExpression=r)||S(r.type)){for(var i=void 0,o=void 0,s=void 0,c=I.getStartPos();i=ee(function(){return E(0)});)if(o||(o=ue(283,c)),289===i.kind){if(s)break;s=i}else o.jsDocPropertyTags=yn.append(o.jsDocPropertyTags,i);o&&(r&&166===r.type.kind&&(o.isArrayType=!0),n.typeExpression=s&&s.typeExpression&&!S(s.typeExpression.type)?s.typeExpression:de(o))}return de(n)}(t,r);break;default:n=x(t,r)}else n=x(t,r);n&&(n.comment=b(e+n.end-n.pos),function(e){_?_.push(e):(_=[e],l=e.pos);d=e.end}(n))}}function b(t){var r,n=[],e=0;function a(e){r||(r=t),n.push(e),t+=e.length}var i=H();e:for(;;){switch(i){case 4:1<=e&&(e=0,n.push(I.getTokenText())),t=0;break;case 57:I.setTextPos(I.getTextPos()-1);case 1:break e;case 5:if(2===e)a(I.getTokenText());else{var o=I.getTokenText();void 0!==r&&t+o.length>r&&n.push(o.slice(r-t-1)),t+=o.length}break;case 39:if(0===e){t+=e=1;break}default:e=2,a(I.getTokenText())}i=A()}return g(n),y(n),0===n.length?void 0:n.join("")}function x(e,t){var r=ue(284,e.pos);return r.atToken=e,r.tagName=t,de(r)}function k(){return v(),17===H()?s():void 0}function D(){var e=ne(21),t=function(){var e=P(!0);ne(21)&&re(22);for(;ne(23);){var t=P(!0);ne(21)&&re(22),e=Ue(e,t)}return e}();return e&&(v(),ae(58)&&It(),re(22)),{name:t,isBracketed:e}}function S(e){switch(e.kind){case 135:return!0;case 166:return S(e.elementType);default:return yn.isTypeReferenceNode(e)&&yn.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText}}function C(e,t,r){var n=k(),a=!n;v();var i=D(),o=i.name,s=i.isBracketed;v(),a&&(n=k());var c=ue(1===r?287:292,e.pos),u=function(e,t){if(e&&S(e.type)){for(var r=ue(274,I.getTokenPos()),n=void 0,a=void 0,i=I.getStartPos(),o=void 0;n=ee(function(){return E(1,t)});)o=yn.append(o,n);if(o)return(a=ue(283,i)).jsDocPropertyTags=o,166===e.type.kind&&(a.isArrayType=!0),r.type=de(a),de(r)}}(n,o);return u&&(n=u,a=!0),c.atToken=e,c.tagName=t,c.typeExpression=n,c.name=o,c.isNameFirst=a,c.isBracketed=s,de(c)}function T(e,t){yn.forEach(_,function(e){return 289===e.kind})&&q(t.pos,I.getTokenPos()-t.pos,yn.Diagnostics._0_tag_already_specified,t.escapedText);var r=ue(289,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=s(!0),de(r)}function i(e,t){for(;!yn.isIdentifier(e)||!yn.isIdentifier(t);){if(yn.isIdentifier(e)||yn.isIdentifier(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function E(e,t){for(var r=!0,n=!1;;)switch(A()){case 57:if(r){var a=o(e);return!(a&&287===a.kind&&(yn.isIdentifier(a.name)||!i(t,a.name.left)))&&a}n=!1;break;case 4:r=!0,n=!1;break;case 39:n&&(r=!1),n=!0;break;case 71:r=!1;break;case 1:return!1}}function o(e){yn.Debug.assert(57===H());var t=ue(57);t.end=I.getTextPos(),A();var r,n=P();if(v(),!n)return!1;switch(n.escapedText){case"type":return 0===e&&T(t,n);case"prop":case"property":r=0;break;case"arg":case"argument":case"param":r=1;break;default:return!1}if(e!==r)return!1;var a=C(t,n,e);return a.comment=b(a.end-a.pos),a}function N(){var e=ne(17),t=P();return e&&re(18),t}function A(){return F=I.scanJSDocToken()}function P(e){if(void 0===e&&(e=!1),!yn.tokenIsIdentifierOrKeyword(H()))return e?pe(71,!0,yn.Diagnostics.Identifier_expected):void U(yn.Diagnostics.Identifier_expected);var t=I.getTokenPos(),r=I.getTextPos(),n=ue(71,t);return n.escapedText=yn.escapeLeadingUnderscores(u.substring(t,r)),de(n,r),A(),n}}e.parseJSDocTypeExpressionForTests=function(e,t,r){x(e,6,void 0,1),f=C("file.js",6,1,!1),I.setText(e,t,r),F=I.scan();var n=s(),a=m;return k(),n?{jsDocTypeExpression:n,diagnostics:a}:void 0},e.parseJSDocTypeExpression=s,e.parseIsolatedJSDocComment=function(e,t,r){x(e,6,void 0,1),f={languageVariant:0,text:e};var n=c(t,r),a=m;return k(),n?{jsDoc:n,diagnostics:a}:void 0},e.parseJSDocComment=function(e,t,r){var n,a=F,i=m.length,o=p,s=c(t,r);return s&&(s.parent=e),65536&h&&(f.jsDocDiagnostics||(f.jsDocDiagnostics=[]),(n=f.jsDocDiagnostics).push.apply(n,m)),F=a,m.length=i,p=o,s},(r=t||(t={}))[r.BeginningOfLine=0]="BeginningOfLine",r[r.SawAsterisk=1]="SawAsterisk",r[r.SavingComments=2]="SavingComments",(a=n||(n={}))[a.Property=0]="Property",a[a.Parameter=1]="Parameter",e.parseJSDocCommentWorker=c}(l=e.JSDocParser||(e.JSDocParser={}))}(d||(d={})),function(e){function p(e,t,a,i,o,s){return void(t?u(e):c(e));function c(e){var t="";if(s&&_(e)&&(t=i.substring(e.pos,e.end)),e._children&&(e._children=void 0),e.pos+=a,e.end+=a,s&&_(e)&&yn.Debug.assert(t===o.substring(e.pos,e.end)),vn(e,c,u),yn.hasJSDocNodes(e))for(var r=0,n=e.jsDoc;r<n.length;r++){vn(n[r],c,u)}m(e,s)}function u(e){e._children=void 0,e.pos+=a,e.end+=a;for(var t=0,r=e;t<r.length;t++){c(r[t])}}}function _(e){switch(e.kind){case 9:case 8:case 71:return!0}return!1}function f(e,t,r,n,a){yn.Debug.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),yn.Debug.assert(e.pos<=r,"Adjusting an element that was entirely after the change range"),yn.Debug.assert(e.pos<=e.end),e.pos=Math.min(e.pos,n),e.end>=r?e.end+=a:e.end=Math.min(e.end,n),yn.Debug.assert(e.pos<=e.end),e.parent&&(yn.Debug.assert(e.pos>=e.parent.pos),yn.Debug.assert(e.end<=e.parent.end))}function m(e,t){if(t){var r=e.pos;vn(e,function(e){yn.Debug.assert(e.pos>=r),r=e.end}),yn.Debug.assert(r<=e.end)}}function u(e,r){var n,a=e;if(vn(e,function e(t){if(yn.nodeIsMissing(t))return;{if(!(t.pos<=r))return yn.Debug.assert(t.pos>r),!0;if(t.pos>=a.pos&&(a=t),r<t.end)return vn(t,e),!0;yn.Debug.assert(t.end<=r),n=t}}),n){var t=function(e){for(;;){var t=i(e);if(!t)return e;e=t}}(n);t.pos>a.pos&&(a=t)}return a;function i(e){var t;return vn(e,function(e){yn.nodeIsPresent(e)&&(t=e)}),t}}function l(e,t,r,n){var a=e.text;if(r&&(yn.Debug.assert(a.length-r.span.length+r.newLength===t.length),n||yn.Debug.shouldAssert(3))){var i=a.substr(0,r.span.start),o=t.substr(0,r.span.start);yn.Debug.assert(i===o);var s=a.substring(yn.textSpanEnd(r.span),a.length),c=t.substring(yn.textSpanEnd(yn.textChangeRangeNewSpan(r)),t.length);yn.Debug.assert(s===c)}}var t,r;(s||(s={})).updateSourceFile=function(e,t,r,n){if(l(e,t,r,n=n||yn.Debug.shouldAssert(2)),yn.textChangeRangeIsUnchanged(r))return e;if(0===e.statements.length)return d.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind);var a=e;yn.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var i=e.text,o=function(t){var o=t.statements,s=0;yn.Debug.assert(s<o.length);var c=o[s],r=-1;return{currentNode:function(e){return e!==r&&(c&&c.end===e&&s<o.length-1&&(c=o[++s]),c&&c.pos===e||function(n){return s=-1,c=o=void 0,vn(t,a,i);function a(e){return n>=e.pos&&n<e.end&&(vn(e,a,i),!0)}function i(e){if(n>=e.pos&&n<e.end)for(var t=0;t<e.length;t++){var r=e[t];if(r){if(r.pos===n)return o=e,s=t,c=r,!0;if(r.pos<n&&n<r.end)return vn(r,a,i),!0}}return!1}}(e)),r=e,yn.Debug.assert(!c||c.pos===e),c}}}(e),s=function(e,t){for(var r=t.span.start,n=0;0<r&&n<=1;n++){var a=u(e,r);yn.Debug.assert(a.pos<=r);var i=a.pos;r=Math.max(0,i-1)}var o=yn.createTextSpanFromBounds(r,yn.textSpanEnd(t.span)),s=t.newLength+(t.span.start-r);return yn.createTextChangeRange(o,s)}(e,r);l(e,t,s,n),yn.Debug.assert(s.span.start<=r.span.start),yn.Debug.assert(yn.textSpanEnd(s.span)===yn.textSpanEnd(r.span)),yn.Debug.assert(yn.textSpanEnd(yn.textChangeRangeNewSpan(s))===yn.textSpanEnd(yn.textChangeRangeNewSpan(r)));var c=yn.textChangeRangeNewSpan(s).length-s.span.length;return function(e,i,o,s,c,u,_,l){return d(e);function d(e){if(yn.Debug.assert(e.pos<=e.end),e.pos>o)p(e,!1,c,u,_,l);else{var t=e.end;if(i<=t)return e.intersectsChange=!0,e._children=void 0,f(e,i,o,s,c),vn(e,d,r),void m(e,l);yn.Debug.assert(t<i)}}function r(e){if(yn.Debug.assert(e.pos<=e.end),e.pos>o)p(e,!0,c,u,_,l);else{var t=e.end;if(i<=t){e.intersectsChange=!0,e._children=void 0,f(e,i,o,s,c);for(var r=0,n=e;r<n.length;r++){var a=n[r];d(a)}}else yn.Debug.assert(t<i)}}}(a,s.span.start,yn.textSpanEnd(s.span),yn.textSpanEnd(yn.textChangeRangeNewSpan(s)),c,i,t,n),d.parseSourceFile(e.fileName,t,e.languageVersion,o,!0,e.scriptKind)},(r=t||(t={}))[r.Value=-1]="Value"}(),yn.processCommentPragmas=hn,yn.processPragmasIntoFields=bn;var r=yn.createMap();function m(e){if(r.has(e))return r.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return r.set(e,t),t}var g=/^\/\/\/\s*<(\S+)\s.*?\/>/im,y=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function _(e,t,r){var n=g.exec(r);if(n){var a=n[1].toLowerCase(),i=yn.commentPragmas[a];if(!(i&&1&i.kind))return;if(i.args){for(var o={},s=0,c=i.args;s<c.length;s++){var u=c[s],_=m(u.name).exec(r);if(!_&&!u.optional)return;if(_)if(u.captureSpan){var l=t.pos+_.index+_[1].length+_[2].length;o[u.name]={value:_[3],pos:l,end:l+_[3].length}}else o[u.name]=_[3]}e.push({name:a,args:{arguments:o,range:t}})}else e.push({name:a,args:{arguments:{},range:t}})}else{var d=y.exec(r);if(d)return v(e,t,2,d);for(var p,f=/\s*@(\S+)\s*(.*)\s*$/gim;p=f.exec(r);)v(e,t,4,p)}}function v(e,t,r,n){if(n){var a=n[1].toLowerCase(),i=yn.commentPragmas[a];if(i&&i.kind&r){var o=function(e,t){if(!t)return{};if(!e.args)return{};for(var r=t.split(/\s+/),n={},a=0;a<e.args.length;a++){var i=e.args[a];if(!r[a]&&!i.optional)return"fail";if(i.captureSpan)return yn.Debug.fail("Capture spans not yet implemented for non-xml pragmas");n[i.name]=r[a]}return n}(i,n[2]);"fail"!==o&&e.push({name:a,args:{arguments:o,range:t}})}}}}(ts||(ts={})),function(Fe){var e,t,r;function we(e){return e.body?function r(e){switch(e.kind){case 234:case 235:return 0;case 236:if(Fe.isConst(e))return 2;break;case 242:case 241:if(!Fe.hasModifier(e,1))return 0;break;case 238:var n=0;return Fe.forEachChild(e,function(e){var t=r(e);switch(t){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:Fe.Debug.assertNever(t)}}),n;case 237:return we(e);case 71:if(e.isInJSDocNamespace)return 0}return 1}(e.body):1}(e=Fe.ModuleInstanceState||(Fe.ModuleInstanceState={}))[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",Fe.getModuleInstanceState=we,(r=t||(t={}))[r.None=0]="None",r[r.IsContainer=1]="IsContainer",r[r.IsBlockScopedContainer=2]="IsBlockScopedContainer",r[r.IsControlFlowContainer=4]="IsControlFlowContainer",r[r.IsFunctionLike=8]="IsFunctionLike",r[r.IsFunctionExpression=16]="IsFunctionExpression",r[r.HasLocals=32]="HasLocals",r[r.IsInterface=64]="IsInterface",r[r.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";var n=function(){var O,M,a,k,D,l,i,S,L,R,B,z,J,j,K,U,q,C,T,o,E,s,c=0,V={flags:1},W={flags:1},H=0;function G(e,t,r,n,a){return Fe.createDiagnosticForNodeInSourceFile(Fe.getSourceFileOfNode(e)||O,e,t,r,n,a)}return function(e,t){O=e,M=t,a=Fe.getEmitScriptTarget(M),r=O,n=t,T=!(!Fe.getStrictOptionValue(n,"alwaysStrict")||r.isDeclarationFile)||!!r.externalModuleIndicator,E=Fe.createUnderscoreEscapedMap(),c=0,s=O.isDeclarationFile,o=Fe.objectAllocator.getSymbolConstructor(),O.locals||(be(O),O.symbolCount=c,O.classifiableNames=E);var r,n;O=void 0,M=void 0,a=void 0,k=void 0,D=void 0,l=void 0,i=void 0,S=!1,L=void 0,R=void 0,B=void 0,z=void 0,J=void 0,j=void 0,U=void 0,q=!1,H=C=0};function N(e,t){return c++,new o(e,t)}function A(e,t,r){if(e.flags|=r,(t.symbol=e).declarations?e.declarations.push(t):e.declarations=[t],1952&r&&!e.exports&&(e.exports=Fe.createSymbolTable()),6240&r&&!e.members&&(e.members=Fe.createSymbolTable()),67216319&r){var n=e.valueDeclaration;(!n||n.kind!==t.kind&&237===n.kind)&&(e.valueDeclaration=t)}}function P(e){if(247===e.kind)return e.isExportEquals?"export=":"default";var t=Fe.getNameOfDeclaration(e);if(t){if(Fe.isAmbientModule(e)){var r=Fe.getTextOfIdentifierOrLiteral(t);return Fe.isGlobalScopeAugmentation(e)?"__global":'"'+r+'"'}if(146===t.kind){var n=t.expression;return Fe.isStringOrNumericLiteral(n)?Fe.escapeLeadingUnderscores(n.text):(Fe.Debug.assert(Fe.isWellKnownSymbolSyntactically(n)),Fe.getPropertyNameForKnownSymbolName(Fe.idText(n.name)))}return Fe.isPropertyNameLiteral(t)?Fe.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(e.kind){case 154:return"__constructor";case 162:case 157:return"__call";case 163:case 158:return"__new";case 159:return"__index";case 248:return"__export";case 198:if(2===Fe.getSpecialPropertyAssignmentKind(e))return"export=";Fe.Debug.fail("Unknown binary declaration kind");break;case 232:case 233:return Fe.hasModifier(e,512)?"default":void 0;case 280:return Fe.isJSDocConstructSignature(e)?"__new":"__call";case 148:Fe.Debug.assert(280===e.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(Fe.SyntaxKind?Fe.SyntaxKind[e.parent.kind]:e.parent.kind)+", expected JSDocFunctionType"});var a=e.parent,i=a.parameters.indexOf(e);return"arg"+i;case 291:var o=Fe.getNameOfJSDocTypedef(e);return void 0!==o?o.escapedText:void 0}}function _(e){return Fe.isNamedDeclaration(e)?Fe.declarationNameToString(e.name):Fe.unescapeLeadingUnderscores(P(e))}function F(e,t,r,n,a,i){Fe.Debug.assert(!Fe.hasDynamicName(r));var o,s=Fe.hasModifier(r,512),c=s&&t?"default":P(r);if(void 0===c)o=N(0,"__missing");else if(o=e.get(c),2885600&n&&E.set(c,!0),o){if(i&&!o.isReplaceableByMethod)return o;if(o.flags&a)if(o.isReplaceableByMethod)e.set(c,o=N(0,c));else{Fe.isNamedDeclaration(r)&&(r.name.parent=r);var u=2&o.flags?Fe.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Fe.Diagnostics.Duplicate_identifier_0;(384&o.flags||384&n)&&(u=Fe.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations),o.declarations&&o.declarations.length&&(s?u=Fe.Diagnostics.A_module_cannot_have_multiple_default_exports:o.declarations&&o.declarations.length&&(s||247===r.kind&&!r.isExportEquals)&&(u=Fe.Diagnostics.A_module_cannot_have_multiple_default_exports)),Fe.forEach(o.declarations,function(e){O.bindDiagnostics.push(G(Fe.getNameOfDeclaration(e)||e,u,_(e)))}),O.bindDiagnostics.push(G(Fe.getNameOfDeclaration(r)||r,u,_(r))),o=N(0,c)}}else e.set(c,o=N(0,c)),i&&(o.isReplaceableByMethod=!0);return A(o,r,n),o.parent?Fe.Debug.assert(o.parent===t,"Existing symbol parent should match new one"):o.parent=t,o}function u(e,t,r){var n=1&Fe.getCombinedModifierFlags(e);if(2097152&t)return 250===e.kind||241===e.kind&&n?F(D.symbol.exports,D.symbol,e,t,r):F(D.locals,void 0,e,t,r);291===e.kind&&Fe.Debug.assert(Fe.isInJavaScriptFile(e));var a=Fe.isJSDocTypedefTag(e)&&e.name&&71===e.name.kind&&e.name.isInJSDocNamespace;if(!Fe.isAmbientModule(e)&&(n||32&D.flags)||a){var i=67216319&t?1048576:0,o=F(D.locals,void 0,e,i,r);return o.exportSymbol=F(D.symbol.exports,D.symbol,e,t,r),e.localSymbol=o}return F(D.locals,void 0,e,t,r)}function d(e){if(s)r(e);else if(536870912&e.transformFlags)s=!0,r(e),s=!1,H|=e.transformFlags&~Me(e.kind);else{var t=H;H=0,r(e),H=t|x(e,H)}}function X(e){if(void 0!==e)if(s)Fe.forEach(e,be);else{for(var t=H,r=H=0,n=0,a=e;n<a.length;n++){var i=a[n];be(i),r|=-536870913&i.transformFlags}e.transformFlags=536870912|r,H|=t}}function Q(e){Fe.forEachChild(e,be,X)}function r(e){if(Fe.hasJSDocNodes(e))if(Fe.isInJavaScriptFile(e))for(var t=0,r=e.jsDoc;t<r.length;t++){var n=r[t];be(n)}else for(var a=0,i=e.jsDoc;a<i.length;a++){var n=i[a];Le(e,n)}var o,s,c,u,_,l,d,p,f,m,g,y,v,h,b,x,k,D,S,C,T,E,N,A,P,F,w,I;if(function(e){if(!(1&L.flags))return!1;if(L===V){var t=Fe.isStatementButNotDeclaration(e)&&213!==e.kind||233===e.kind||237===e.kind&&(1===(n=we(e))||2===n&&M.preserveConstEnums)||236===e.kind&&(!Fe.isConstEnumDeclaration(e)||M.preserveConstEnums);if(t){L=W;var r=!M.allowUnreachableCode&&!(2097152&e.flags)&&(212!==e.kind||3&Fe.getCombinedNodeFlags(e.declarationList)||Fe.forEach(e.declarationList.declarations,function(e){return e.initializer}));r&&he(e,Fe.Diagnostics.Unreachable_code_detected)}}var n;return!0}(e))Q(e);else switch(e.kind){case 217:P=e,F=$(),w=Z(),I=Z(),ee(F,L),L=F,oe(P.expression,w,I),L=ae(w),se(P.statement,I,F),ee(F,L),L=ae(I);break;case 216:C=e,T=$(),E=226===C.parent.kind?Fe.lastOrUndefined(U):void 0,N=E?E.continueTarget:Z(),A=E?E.breakTarget:Z(),ee(T,L),L=T,se(C.statement,A,N),ee(N,L),L=ae(N),oe(C.expression,T,A),L=ae(A);break;case 218:x=e,k=$(),D=Z(),S=Z(),be(x.initializer),ee(k,L),L=k,oe(x.condition,D,S),L=ae(D),se(x.statement,S,k),be(x.incrementor),ee(k,L),L=ae(S);break;case 219:case 220:!function(e){var t=$(),r=Z();ee(t,L),L=t,220===e.kind&&be(e.awaitModifier);be(e.expression),ee(r,L),be(e.initializer),231!==e.initializer.kind&&ue(e.initializer);se(e.statement,r,t),ee(t,L),L=ae(r)}(e);break;case 215:y=e,v=Z(),h=Z(),b=Z(),oe(y.expression,v,h),L=ae(v),be(y.thenStatement),ee(b,L),L=ae(h),be(y.elseStatement),ee(b,L),L=ae(b);break;case 223:case 227:!function(e){be(e.expression),223===e.kind&&(q=!0,z&&ee(z,L));L=V}(e);break;case 222:case 221:!function(e){if(be(e.label),e.label){var t=function(e){if(U)for(var t=0,r=U;t<r.length;t++){var n=r[t];if(n.name===e)return n}return}(e.label.escapedText);t&&(t.referenced=!0,ce(e,t.breakTarget,t.continueTarget))}else ce(e,R,B)}(e);break;case 228:!function(e){var t=Z(),r=L;be(e.tryBlock),ee(t,L);var n=L,a=V;e.catchClause&&(L=r,be(e.catchClause),ee(t,L),a=L);if(e.finallyBlock){var i={flags:2048,antecedent:r,lock:{}};if(ee(t,i),L=ae(t),be(e.finallyBlock),1&L.flags||1&n.flags&&1&a.flags&&(L=n===W||a===W?W:V),!(1&L.flags)){var o={flags:4096,antecedent:L};i.lock=o,L=o}}else L=ae(t)}(e);break;case 225:!function(e){var t=Z();be(e.expression);var r=R,n=K;R=t,K=L,be(e.caseBlock),ee(t,L);var a=Fe.forEach(e.caseBlock.clauses,function(e){return 265===e.kind});e.possiblyExhaustive=!a&&!t.antecedents,a||ee(t,te(K,e,0,0));R=r,K=n,L=ae(t)}(e);break;case 239:!function(e){var t=H;H=0;for(var r=e.clauses,n=V,a=0;a<r.length;a++){for(var i=a;!r[a].statements.length&&a+1<r.length;)be(r[a]),a++;var o=Z();ee(o,te(K,e.parent,i,a+1)),ee(o,n),L=ae(o);var s=r[a];be(s),1&(n=L).flags||a===r.length-1||!M.noFallthroughCasesInSwitch||he(s,Fe.Diagnostics.Fallthrough_case_in_switch)}r.transformFlags=536870912|H,H|=t}(e);break;case 264:g=L,L=K,be((m=e).expression),L=g,X(m.statements);break;case 226:!function(e){var t=$(),r=Z();be(e.label),ee(t,L);var n=(a=e.label.escapedText,i=r,o=t,s={name:a,breakTarget:i,continueTarget:o,referenced:!1},(U||(U=[])).push(s),s);var a,i,o,s;be(e.statement),U.pop(),n.referenced||M.allowUnusedLabels||O.bindDiagnostics.push(G(e.label,Fe.Diagnostics.Unused_label));e.statement&&216===e.statement.kind||(ee(r,L),L=ae(r))}(e);break;case 196:!function(e){if(51===e.operator){var t=J;J=j,j=t,Q(e),j=J,J=t}else Q(e),43!==e.operator&&44!==e.operator||ue(e.operand)}(e);break;case 197:Q(f=e),(43===f.operator||44===f.operator)&&ue(f.operand);break;case 198:!function(e){var t=e.operatorToken.kind;if(53===t||54===t)if(function(e){for(;189===e.parent.kind||196===e.parent.kind&&51===e.parent.operator;)e=e.parent;return!function(e){var t=e.parent;switch(t.kind){case 215:case 217:case 216:return t.expression===e;case 218:case 199:return t.condition===e}return!1}(e)&&!ie(e.parent)}(e)){var r=Z();_e(e,r,r),L=ae(r)}else _e(e,J,j);else if(Q(e),Fe.isAssignmentOperator(t)&&!Fe.isAssignmentTarget(e)&&(ue(e.left),58===t&&184===e.left.kind)){var n=e.left;Y(n.expression)&&(L=ne(L,e))}}(e);break;case 192:Q(p=e),183===p.expression.kind&&ue(p.expression);break;case 199:u=e,_=Z(),l=Z(),d=Z(),oe(u.condition,_,l),L=ae(_),be(u.questionToken),be(u.whenTrue),ee(d,L),L=ae(l),be(u.colonToken),be(u.whenFalse),ee(d,L),L=ae(d);break;case 230:Q(c=e),(c.initializer||Fe.isForInOrOfStatement(c.parent.parent))&&function e(t){var r=Fe.isOmittedExpression(t)?void 0:t.name;if(Fe.isBindingPattern(r))for(var n=0,a=r.elements;n<a.length;n++){var i=a[n];e(i)}else L=re(L,t)}(c);break;case 185:!function(e){var t=e.expression;for(;189===t.kind;)t=t.expression;190===t.kind||191===t.kind?(X(e.typeArguments),X(e.arguments),be(e.expression)):Q(e);if(183===e.expression.kind){var r=e.expression;Y(r.expression)&&Fe.isPushOrUnshiftIdentifier(r.name)&&(L=ne(L,e))}}(e);break;case 282:s=e,Fe.forEachChild(s,function(e){291!==e.kind&&be(e)});break;case 291:o=e,Fe.forEachChild(o,function(e){o.fullName&&e===o.name&&71!==o.fullName.kind||be(e)});break;default:Q(e)}}function p(e){switch(e.kind){case 71:case 99:case 183:return w(e);case 185:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){var n=r[t];if(w(n))return!0}if(183===e.expression.kind&&w(e.expression.expression))return!0;return!1}(e);case 189:return p(e.expression);case 198:return function(e){switch(e.operatorToken.kind){case 58:return w(e.left);case 32:case 33:case 34:case 35:return Y(e.left)||Y(e.right)||n(e.right,e.left)||n(e.left,e.right);case 93:return Y(e.left);case 92:return t=e.left,r=e.right,Fe.isStringLiteralLike(t)&&p(r);case 26:return p(e.right)}var t,r;return!1}(e);case 196:return 51===e.operator&&p(e.operand)}return!1}function w(e){return 71===e.kind||99===e.kind||97===e.kind||183===e.kind&&w(e.expression)}function n(e,t){return Fe.isTypeOfExpression(e)&&Y(e.expression)&&Fe.isStringLiteralLike(t)}function Y(e){switch(e.kind){case 189:return Y(e.expression);case 198:switch(e.operatorToken.kind){case 58:return Y(e.left);case 26:return Y(e.right)}}return w(e)}function Z(){return{flags:4,antecedents:void 0}}function $(){return{flags:8,antecedents:void 0}}function f(e){e.flags|=512&e.flags?1024:512}function ee(e,t){1&t.flags||Fe.contains(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),f(t))}function m(e,t,r){return 1&t.flags?t:r?101===r.kind&&64&e||86===r.kind&&32&e?V:p(r)?(f(t),{flags:e,expression:r,antecedent:t}):t:32&e?t:V}function te(e,t,r,n){return p(t.expression)?(f(e),{flags:128,switchStatement:t,clauseStart:r,clauseEnd:n,antecedent:e}):e}function re(e,t){return f(e),{flags:16,antecedent:e,node:t}}function ne(e,t){f(e);var r={flags:256,antecedent:e,node:t};return r}function ae(e){var t=e.antecedents;return t?1===t.length?t[0]:e:V}function ie(e){for(;;)if(189===e.kind)e=e.expression;else{if(196!==e.kind||51!==e.operator)return 198===e.kind&&(53===e.operatorToken.kind||54===e.operatorToken.kind);e=e.operand}}function oe(e,t,r){var n=J,a=j;J=t,j=r,be(e),J=n,j=a,e&&ie(e)||(ee(t,m(32,L,e)),ee(r,m(64,L,e)))}function se(e,t,r){var n=R,a=B;R=t,B=r,be(e),R=n,B=a}function ce(e,t,r){var n=222===e.kind?t:r;n&&(ee(n,L),L=V)}function g(e){198===e.kind&&58===e.operatorToken.kind?ue(e.left):ue(e)}function ue(e){if(w(e))L=re(L,e);else if(181===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];202===n.kind?ue(n.expression):g(n)}else if(182===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];268===o.kind?g(o.initializer):269===o.kind?ue(o.name):270===o.kind&&ue(o.expression)}}function _e(e,t,r){var n=Z();53===e.operatorToken.kind?oe(e.left,n,r):oe(e.left,t,n),L=ae(n),be(e.operatorToken),oe(e.right,t,r)}function y(e){i&&(i.nextContainer=e),i=e}function I(e,t,r){switch(D.kind){case 237:return u(e,t,r);case 272:return o=e,s=t,c=r,Fe.isExternalModule(O)?u(o,s,c):F(O.locals,void 0,o,s,c);case 203:case 233:return n=e,a=t,i=r,Fe.hasModifier(n,32)?F(D.symbol.exports,D.symbol,n,a,i):F(D.symbol.members,D.symbol,n,a,i);case 236:return F(D.symbol.exports,D.symbol,e,t,r);case 165:case 283:case 182:case 234:case 261:return F(D.symbol.members,D.symbol,e,t,r);case 162:case 163:case 157:case 158:case 159:case 153:case 152:case 154:case 155:case 156:case 232:case 190:case 191:case 280:case 235:case 176:return F(D.locals,void 0,e,t,r)}var n,a,i,o,s,c}function le(e){2097152&e.flags&&!function(e){var t=272===e.kind?e:e.body;if(t&&(272===t.kind||238===t.kind))for(var r=0,n=t.statements;r<n.length;r++){var a=n[r];if(248===a.kind||247===a.kind)return!0}return!1}(e)?e.flags|=32:e.flags&=-33}function de(e){var t=we(e),r=0!==t;return I(e,r?512:1024,r?67215503:0),t}function pe(e,t,r){var n=N(t,r);106508&t&&(n.parent=D.symbol),A(n,e,t)}function fe(e,t,r){switch(l.kind){case 237:u(e,t,r);break;case 272:if(Fe.isExternalModule(D)){u(e,t,r);break}default:l.locals||(l.locals=Fe.createSymbolTable(),y(l)),F(l.locals,void 0,e,t,r)}}function me(e){!(T&&108<=e.originalKeywordKind&&e.originalKeywordKind<=116)||Fe.isIdentifierName(e)||2097152&e.flags||O.parseDiagnostics.length||O.bindDiagnostics.push(G(e,function(e){if(Fe.getContainingClass(e))return Fe.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(O.externalModuleIndicator)return Fe.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return Fe.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),Fe.declarationNameToString(e)))}function ge(e,t){if(t&&71===t.kind){var r=t;if(a=r,Fe.isIdentifier(a)&&("eval"===a.escapedText||"arguments"===a.escapedText)){var n=Fe.getErrorSpanForNode(O,t);O.bindDiagnostics.push(Fe.createFileDiagnostic(O,n.start,n.length,function(e){if(Fe.getContainingClass(e))return Fe.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(O.externalModuleIndicator)return Fe.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return Fe.Diagnostics.Invalid_use_of_0_in_strict_mode}(e),Fe.idText(r)))}}var a}function ye(e){T&&ge(e,e.name)}function ve(e){if(a<2&&272!==l.kind&&237!==l.kind&&!Fe.isFunctionLike(l)){var t=Fe.getErrorSpanForNode(O,e);O.bindDiagnostics.push(Fe.createFileDiagnostic(O,t.start,t.length,function(e){if(Fe.getContainingClass(e))return Fe.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(O.externalModuleIndicator)return Fe.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return Fe.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(e)))}}function he(e,t,r,n,a){var i=Fe.getSpanOfTokenAtPosition(O,e.pos);O.bindDiagnostics.push(Fe.createFileDiagnostic(O,i.start,i.length,t,r,n,a))}function be(e){if(e){e.parent=k;var t=T;if(Fe.isInJavaScriptFile(e)&&function(e){if(!Fe.hasJSDocNodes(e))return;for(var t=0,r=e.jsDoc;t<r.length;t++){var n=r[t];if(n.tags)for(var a=0,i=n.tags;a<i.length;a++){var o=i[a];if(291===o.kind){var s=k;k=n,be(o),k=s}}}}(e),function(e){switch(e.kind){case 71:if(e.isInJSDocNamespace){for(var t=e.parent;t&&291!==t.kind;)t=t.parent;fe(t,524288,67901928);break}case 99:return L&&(Fe.isExpression(e)||269===k.kind)&&(e.flowNode=L),me(e);case 183:L&&w(e)&&(e.flowNode=L),Fe.isSpecialPropertyDeclaration(e)&&(99===(x=e).expression.kind?Ce(x):Fe.isEntityNameExpression(x)&&272===x.parent.parent.kind&&(Fe.isPropertyAccessExpression(x.expression)&&"prototype"===x.expression.name.escapedText?Te(x,x.parent):Ee(x)));break;case 198:var r=Fe.getSpecialPropertyAssignmentKind(e);switch(r){case 1:Se(e);break;case 2:!function(e){var t=Fe.getRightMostAssignedExpression(e.right);if(Fe.isEmptyObjectLiteral(t)||D===O&&Ie(O,t))return De(e);De(e),F(O.symbol.exports,O.symbol,e,1049092,0)}(e);break;case 3:Te(e.left,e);break;case 6:Ne(b=(((h=e).left.parent=h).right.parent=h).left,b,!1);break;case 4:Ce(e);break;case 5:v=(y=e).left,(y.left.parent=y).right.parent=y,Fe.isIdentifier(v.expression)&&D===O&&Oe(O,v.expression)?Se(y):Ee(v);break;case 0:break;default:Fe.Debug.fail("Unknown special property assignment kind")}return g=e,T&&Fe.isLeftHandSideExpression(g.left)&&Fe.isAssignmentOperator(g.operatorToken.kind)&&ge(g,g.left);case 267:return m=e,T&&m.variableDeclaration&&ge(m,m.variableDeclaration.name);case 192:return function(e){if(T&&71===e.expression.kind){var t=Fe.getErrorSpanForNode(O,e.expression);O.bindDiagnostics.push(Fe.createFileDiagnostic(O,t.start,t.length,Fe.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(e);case 8:return f=e,T&&32&f.numericLiteralFlags&&O.bindDiagnostics.push(G(f,Fe.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));case 197:return p=e,T&&ge(p,p.operand);case 196:return d=e,T&&(43!==d.operator&&44!==d.operator||ge(d,d.operand));case 224:return l=e,T&&he(l,Fe.Diagnostics.with_statements_are_not_allowed_in_strict_mode);case 173:return S=!0;case 160:break;case 147:return function(e){if(171===e.parent.kind){var t=function(e){for(;e;){var t=e.parent;if(t&&170===t.kind&&t.extendsType===e)return t;e=t}return}(e.parent);t?(t.locals||(t.locals=Fe.createSymbolTable()),F(t.locals,void 0,e,262144,67639784)):pe(e,262144,P(e))}else I(e,262144,67639784)}(e);case 148:return function(e){!T||2097152&e.flags||ge(e,e.name);Fe.isBindingPattern(e.name)?pe(e,1,"__"+e.parent.parameters.indexOf(e)):I(e,1,67216319);if(Fe.isParameterPropertyDeclaration(e)){var t=e.parent.parent;F(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}(e);case 230:return Ae(e);case 180:return e.flowNode=L,Ae(e);case 151:case 150:return Pe(_=e,4|(_.questionToken?16777216:0),0);case 268:case 269:return Pe(e,4,0);case 271:return Pe(e,8,68008959);case 157:case 158:case 159:return I(e,131072,0);case 153:case 152:return Pe(e,8192|(e.questionToken?16777216:0),Fe.isObjectLiteralMethod(e)?0:67208127);case 232:return function(e){O.isDeclarationFile||2097152&e.flags||Fe.isAsyncFunction(e)&&(C|=1024);ye(e),T?(ve(e),fe(e,16,67215791)):I(e,16,67215791)}(e);case 154:return I(e,16384,0);case 155:return Pe(e,32768,67150783);case 156:return Pe(e,65536,67183551);case 162:case 280:case 163:return function(e){var t=N(131072,P(e));A(t,e,131072);var r=N(2048,"__type");A(r,e,2048),r.members=Fe.createSymbolTable(),r.members.set(t.escapedName,t)}(e);case 165:case 283:case 176:return pe(e,2048,"__type");case 182:return function(e){var t;if(_=t||(t={}),_[_.Property=1]="Property",_[_.Accessor=2]="Accessor",T)for(var r=Fe.createUnderscoreEscapedMap(),n=0,a=e.properties;n<a.length;n++){var i=a[n];if(270!==i.kind&&71===i.name.kind){var o=i.name,s=268===i.kind||269===i.kind||153===i.kind?1:2,c=r.get(o.escapedText);if(c){if(1===s&&1===c){var u=Fe.getErrorSpanForNode(O,o);O.bindDiagnostics.push(Fe.createFileDiagnostic(O,u.start,u.length,Fe.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else r.set(o.escapedText,s)}}var _;pe(e,4096,"__object")}(e);case 190:case 191:return function(e){O.isDeclarationFile||2097152&e.flags||Fe.isAsyncFunction(e)&&(C|=1024);L&&(e.flowNode=L);ye(e);var t=e.name?e.name.escapedText:"__function";pe(e,16,t)}(e);case 185:Fe.isInJavaScriptFile(e)&&(u=e,!O.commonJsModuleIndicator&&Fe.isRequireCall(u,!1)&&De(u));break;case 203:case 233:return T=!0,function(e){if(233===e.kind)fe(e,32,68008383);else{var t=e.name?e.name.escapedText:"__class";pe(e,32,t),e.name&&E.set(e.name.escapedText,!0)}var r=e.symbol,n=N(4194308,"prototype"),a=r.exports.get(n.escapedName);a&&(e.name&&(e.name.parent=e),O.bindDiagnostics.push(G(a.declarations[0],Fe.Diagnostics.Duplicate_identifier_0,Fe.symbolName(n))));r.exports.set(n.escapedName,n),n.parent=r}(e);case 234:return fe(e,64,67901832);case 235:return fe(e,524288,67901928);case 236:return c=e,Fe.isConst(c)?fe(c,128,68008831):fe(c,256,68008191);case 237:return function(e){if(le(e),Fe.isAmbientModule(e))if(Fe.hasModifier(e,1)&&he(e,Fe.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Fe.isModuleAugmentationExternal(e))de(e);else{var t=void 0;if(9===e.name.kind){var r=e.name.text;Fe.hasZeroOrOneAsteriskCharacter(r)?t=Fe.tryParsePattern(r):he(e.name,Fe.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,r)}var n=I(e,512,67215503);O.patternAmbientModules=Fe.append(O.patternAmbientModules,t&&{pattern:t,symbol:n})}else{var a=de(e);if(0!==a){var n=e.symbol;n.constEnumOnlyModule=!(304&n.flags)&&2===a&&!1!==n.constEnumOnlyModule}}}(e);case 261:return pe(e,4096,"__jsxAttributes");case 260:return I(e,4,0);case 241:case 244:case 246:case 250:return I(e,2097152,2097152);case 240:return function(e){e.modifiers&&e.modifiers.length&&O.bindDiagnostics.push(G(e,Fe.Diagnostics.Modifiers_cannot_appear_here));{if(272!==e.parent.kind)return O.bindDiagnostics.push(G(e,Fe.Diagnostics.Global_module_exports_may_only_appear_at_top_level));var t=e.parent;if(!Fe.isExternalModule(t))return O.bindDiagnostics.push(G(e,Fe.Diagnostics.Global_module_exports_may_only_appear_in_module_files));if(!t.isDeclarationFile)return O.bindDiagnostics.push(G(e,Fe.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files))}O.symbol.globalExports=O.symbol.globalExports||Fe.createSymbolTable(),F(O.symbol.globalExports,O.symbol,e,2097152,2097152)}(e);case 243:return(s=e).name&&I(s,2097152,2097152);case 248:return o=e,D.symbol&&D.symbol.exports?o.exportClause||F(D.symbol.exports,D.symbol,o,8388608,0):pe(o,8388608,P(o));case 247:return function(e){if(D.symbol&&D.symbol.exports){var t=247===e.kind&&Fe.exportAssignmentIsAlias(e)?2097152:4;F(D.symbol.exports,D.symbol,e,t,67108863)}else pe(e,2097152,P(e))}(e);case 272:return xe(e.statements),le(O),Fe.isExternalModule(O)&&ke();case 211:if(!Fe.isFunctionLike(e.parent))return;case 238:return xe(e.statements);case 287:if(283!==e.parent.kind)break;case 292:var n=e,a=n.isBracketed||n.typeExpression&&279===n.typeExpression.type.kind?16777220:4;return I(n,a,0);case 291:var i=e.fullName;if(!i||71===i.kind)return fe(e,524288,67901928)}var o;var s;var c;var u;var _;var l;var d;var p;var f;var m;var g;var y,v;var h,b;var x}(e),144<e.kind){var r=k,n=function(e){switch(e.kind){case 203:case 233:case 236:case 182:case 165:case 283:case 261:return 1;case 234:return 65;case 237:case 235:case 176:return 33;case 272:return 37;case 153:if(Fe.isObjectLiteralOrClassExpressionMethod(e))return 173;case 154:case 232:case 152:case 155:case 156:case 157:case 280:case 162:case 158:case 159:case 163:return 45;case 190:case 191:return 61;case 238:return 4;case 151:return e.initializer?4:0;case 267:case 218:case 219:case 220:case 239:return 2;case 211:return Fe.isFunctionLike(e.parent)?0:2}return 0}(k=e);0===n?d(e):function(e,t){var r=D,n=l;1&t?(D=l=e,32&t&&(D.locals=Fe.createSymbolTable()),y(D)):2&t&&((l=e).locals=void 0);if(4&t){var a=L,i=R,o=B,s=z,c=U,u=q,_=16&t&&!Fe.hasModifier(e,256)&&!!Fe.getImmediatelyInvokedFunctionExpression(e);_||(L={flags:2},144&t&&(L.container=e)),z=_||154===e.kind?Z():void 0,U=B=R=void 0,q=!1,d(e),e.flags&=-1409,!(1&L.flags)&&8&t&&Fe.nodeIsPresent(e.body)&&(e.flags|=128,q&&(e.flags|=256)),272===e.kind&&(e.flags|=C),z&&(ee(z,L),L=ae(z),154===e.kind&&(e.returnFlowNode=L)),_||(L=a),R=i,B=o,z=s,U=c,q=u}else 64&t?(S=!1,d(e),e.flags=S?64|e.flags:-65&e.flags):d(e);D=r,l=n}(e,n),k=r}else s||0!=(536870912&e.transformFlags)||(H|=x(e,0));T=t}}function xe(e){if(!T)for(var t=0,r=e;t<r.length;t++){var n=r[t];if(!Fe.isPrologueDirective(n))return;if(a=n,void 0,'"use strict"'===(i=Fe.getSourceTextOfNodeFromSourceFile(O,a.expression))||"'use strict'"===i)return void(T=!0)}var a,i}function ke(){pe(O,512,'"'+Fe.removeFileExtension(O.fileName)+'"')}function De(e){O.commonJsModuleIndicator||(O.commonJsModuleIndicator=e,O.externalModuleIndicator||ke())}function Se(e){De(e);var t=e.left,r=h(t.expression,function(e,t){if(t){var r=Fe.getJSInitializerSymbol(t);return A(r,e,67110400),r}});r&&F(r.exports,r,t,1048580,0)}function Ce(e){Fe.Debug.assert(Fe.isInJavaScriptFile(e));var t=Fe.getThisContainer(e,!1);switch(t.kind){case 232:case 190:t.symbol.members=t.symbol.members||Fe.createSymbolTable(),F(t.symbol.members,t.symbol,e,4,0);break;case 154:case 151:case 153:case 155:case 156:var r=t.parent,n=Fe.hasModifier(t,32)?r.symbol.exports:r.symbol.members;F(n,r.symbol,e,4,0,!0)}}function Te(e,t){var r=e.expression,n=r.expression;e.parent=t,(n.parent=r).parent=e,Ne(n,e,!0)}function Ee(e){Ne((e.expression.parent=e).expression,e,!1)}function Ne(e,t,r){var n,a=Fe.getJSInitializerSymbol(v(e));if(Fe.isBinaryExpression(t.parent)){var i=Fe.isPropertyAccessExpression(t.parent.left)&&"prototype"===t.parent.left.name.escapedText;n=272===t.parent.parent.parent.kind&&!!Fe.getJavascriptInitializer(t.parent.right,i)}else n=272===t.parent.parent.kind;if(!r&&(!a||!(1920&a.flags))&&n){h(t.expression,function(e,t){return t?(A(t,e,67110400),t):a=F(a?a.exports:D.locals,a,e,67110400,106639)})}if(a&&5168&a.flags){var o=r?a.members||(a.members=Fe.createSymbolTable()):a.exports||(a.exports=Fe.createSymbolTable()),s=4|(n?67108864:0),c=0&~(n?67108864:0);F(o,a,t,s,c)}}function v(e){if(Fe.isIdentifier(e))return b(D,e.escapedText);var t=Fe.getJSInitializerSymbol(v(e.expression));return t&&t.exports&&t.exports.get(e.name.escapedText)}function h(e,t){if(Ie(O,e))return O.symbol;if(Fe.isIdentifier(e))return t(e,v(e));var r=Fe.getJSInitializerSymbol(h(e.expression,t));return Fe.Debug.assert(!!r&&!!r.exports),t(e.name,r.exports.get(e.name.escapedText))}function Ae(e){T&&ge(e,e.name),Fe.isBindingPattern(e.name)||(Fe.isBlockOrCatchScoped(e)?fe(e,2,67216319):Fe.isParameterDeclaration(e)?I(e,1,67216319):I(e,1,67216318))}function Pe(e,t,r){return O.isDeclarationFile||2097152&e.flags||!Fe.isAsyncFunction(e)||(C|=1024),L&&Fe.isObjectLiteralOrClassExpressionMethod(e)&&(e.flowNode=L),Fe.hasDynamicName(e)?pe(e,t,"__computed"):I(e,t,r)}}();function Ie(e,t){return Fe.isExportsIdentifier(t)||Fe.isModuleExportsPropertyAccessExpression(t)||Fe.isIdentifier(t)&&Oe(e,t)}function Oe(e,t){var r=b(e,t.escapedText);return r&&r.valueDeclaration&&Fe.isVariableDeclaration(r.valueDeclaration)&&r.valueDeclaration.initializer&&function e(t,r){return Ie(t,r)||Fe.isAssignmentExpression(r,!0)&&(e(t,r.left)||e(t,r.right))}(e,r.valueDeclaration.initializer)}function b(e,t){var r=e.locals&&e.locals.get(t);return r?r.exportSymbol||r:e.symbol&&e.symbol.exports&&e.symbol.exports.get(t)}function x(e,t){var r=e.kind;switch(r){case 185:return function(e,t){var r=t,n=e.expression;e.typeArguments&&(r|=3);(524288&t||402653184&n.transformFlags)&&(r|=192,268435456&n.transformFlags&&(r|=16384));91===n.kind&&(r|=67108864,16384&t&&(r|=32768));return e.transformFlags=536870912|r,-940049730&r}(e,t);case 186:return function(e,t){var r=t;e.typeArguments&&(r|=3);524288&t&&(r|=192);return e.transformFlags=536870912|r,-940049730&r}(e,t);case 237:return function(e,t){var r=3;0==(2&Fe.getModifierFlags(e))&&(r|=t);return e.transformFlags=536870912|r,-977327426&r}(e,t);case 189:return function(e,t){var r=t,n=e.expression,a=n.kind,i=n.transformFlags;206!==a&&188!==a||(r|=3);1024&i&&(r|=1024);return e.transformFlags=536870912|r,-536872258&r}(e,t);case 198:return function(e,t){var r=t,n=e.operatorToken.kind,a=e.left.kind;58===n&&182===a?r|=3272:58===n&&181===a?r|=3264:40!==n&&62!==n||(r|=32);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 214:return function(e,t){var r=t;1024&e.expression.transformFlags&&(r|=192);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 148:return function(e,t){var r=t,n=e.name,a=e.initializer,i=e.dotDotDotToken;(e.questionToken||e.type||4096&t||Fe.isThisIdentifier(n))&&(r|=3);Fe.hasModifier(e,92)&&(r|=262147);1048576&t&&(r|=8);(8388608&t||a||i)&&(r|=131264);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 191:return function(e,t){var r=192|t;(Fe.hasModifier(e,2270)||e.typeParameters||e.type)&&(r|=3);Fe.hasModifier(e,256)&&(r|=16);1048576&t&&(r|=8);16384&t&&(r|=32768);return e.transformFlags=536870912|r,-1003902274&r}(e,t);case 190:return function(e,t){var r=t;(Fe.hasModifier(e,2270)||e.typeParameters||e.type)&&(r|=3);Fe.hasModifier(e,256)&&(r|=e.asteriskToken?8:16);1048576&t&&(r|=8);163840&t&&(r|=192);e.asteriskToken&&(r|=768);return e.transformFlags=536870912|r,-1003935042&r}(e,t);case 232:return function(e,t){var r,n=Fe.getModifierFlags(e);!e.body||2&n?r=3:(r=33554432|t,(2270&n||e.typeParameters||e.type)&&(r|=3),256&n&&(r|=e.asteriskToken?8:16),1048576&t&&(r|=8),163840&t&&(r|=192),e.asteriskToken&&(r|=768));return e.transformFlags=536870912|r,-1003935042&r}(e,t);case 230:return function(e,t){var r=t;r|=8388800,1048576&t&&(r|=8);e.type&&(r|=3);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 231:return function(e,t){var r=33554432|t;8388608&t&&(r|=192);3&e.flags&&(r|=4194496);return e.transformFlags=536870912|r,-948962626&r}(e,t);case 212:return function(e,t){var r,n=e.declarationList.transformFlags;Fe.hasModifier(e,2)?r=3:(r=t,8388608&n&&(r|=192));return e.transformFlags=536870912|r,-939525442&r}(e,t);case 226:return function(e,t){var r=t;4194304&t&&Fe.isIterationStatement(e,!0)&&(r|=192);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 233:return function(e,t){var r;Fe.hasModifier(e,2)?r=3:(r=192|t,(274432&t||e.typeParameters)&&(r|=3),65536&t&&(r|=16384));return e.transformFlags=536870912|r,-942011714&r}(e,t);case 203:return function(e,t){var r=192|t;(274432&t||e.typeParameters)&&(r|=3);65536&t&&(r|=16384);return e.transformFlags=536870912|r,-942011714&r}(e,t);case 266:return function(e,t){var r=t;switch(e.token){case 85:r|=192;break;case 108:r|=3;break;default:Fe.Debug.fail("Unexpected token for heritage clause")}return e.transformFlags=536870912|r,-939525442&r}(e,t);case 267:return function(e,t){var r=t;e.variableDeclaration?Fe.isBindingPattern(e.variableDeclaration.name)&&(r|=192):r|=8;return e.transformFlags=536870912|r,-940574018&r}(e,t);case 205:return function(e,t){var r=192|t;e.typeArguments&&(r|=3);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 154:return function(e,t){var r=t;!Fe.hasModifier(e,2270)&&e.body||(r|=3);1048576&t&&(r|=8);return e.transformFlags=536870912|r,-1003668802&r}(e,t);case 151:return function(e,t){var r=3|t;e.initializer&&(r|=8192);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 153:return function(e,t){var r=192|t;(e.decorators||Fe.hasModifier(e,2270)||e.typeParameters||e.type||e.name&&Fe.isComputedPropertyName(e.name)||!e.body)&&(r|=3);1048576&t&&(r|=8);Fe.hasModifier(e,256)&&(r|=e.asteriskToken?8:16);e.asteriskToken&&(r|=768);return e.transformFlags=536870912|r,-1003668802&r}(e,t);case 155:case 156:return function(e,t){var r=t;(e.decorators||Fe.hasModifier(e,2270)||e.type||e.name&&Fe.isComputedPropertyName(e.name)||!e.body)&&(r|=3);1048576&t&&(r|=8);return e.transformFlags=536870912|r,-1003668802&r}(e,t);case 241:return function(e,t){var r=t;Fe.isExternalModuleImportEqualsDeclaration(e)||(r|=3);return e.transformFlags=536870912|r,-939525442&r}(e,t);case 183:return function(e,t){var r=t;134217728&r&&(r^=134217728,r|=268435456);return e.transformFlags=536870912|r,-671089986&r}(e,t);case 184:return function(e,t){var r=t;134217728&e.expression.transformFlags&&(r&=-134217729,r|=268435456);return e.transformFlags=536870912|r,-671089986&r}(e,t);default:return function(e,t,r){var n=r,a=939525441;switch(t){case 120:case 195:n|=24;break;case 188:case 206:case 295:n|=3,a=536872257;break;case 114:case 112:case 113:case 117:case 124:case 76:case 236:case 271:case 207:case 132:n|=3;break;case 253:case 254:case 255:case 10:case 256:case 257:case 258:case 259:case 260:case 261:case 262:case 263:n|=4;break;case 13:case 14:case 15:case 16:case 200:case 187:case 269:case 115:case 208:n|=192;break;case 9:e.hasExtendedUnicodeEscape&&(n|=192);break;case 8:384&e.numericLiteralFlags&&(n|=192);break;case 220:e.awaitModifier&&(n|=8),n|=192;break;case 201:n|=16777416;break;case 119:case 134:case 131:case 135:case 137:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 234:case 235:case 173:case 174:case 175:case 176:case 177:case 240:a=-(n=3);break;case 146:n|=2097152,16384&r&&(n|=65536);break;case 202:n|=524480;break;case 270:n|=1048584;break;case 97:n|=134217920,a=536872257;break;case 99:n|=16384;break;case 178:n|=8388800,524288&r&&(n|=1048584),a=940049729;break;case 179:n|=8388800,a=940049729;break;case 180:n|=192,e.dotDotDotToken&&(n|=524288);break;case 149:n|=4099;break;case 182:a=942740801,2097152&r&&(n|=192),65536&r&&(n|=16384),1048576&r&&(n|=8);break;case 181:case 186:a=940049729,524288&r&&(n|=192);break;case 216:case 217:case 218:case 219:4194304&r&&(n|=192);break;case 272:32768&r&&(n|=192);break;case 223:case 221:case 222:n|=33554432}return e.transformFlags=536870912|n,n&~a}(e,r,t)}}function Me(e){if(160<=e&&e<=177)return-3;switch(e){case 185:case 186:case 181:return 940049729;case 237:return 977327425;case 148:return 939525441;case 191:return 1003902273;case 190:case 232:return 1003935041;case 231:return 948962625;case 233:case 203:return 942011713;case 154:return 1003668801;case 153:case 155:case 156:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 234:case 235:return-3;case 182:return 942740801;case 267:return 940574017;case 178:case 179:return 940049729;case 188:case 206:case 295:case 189:case 97:return 536872257;case 183:case 184:return 671089985;default:return 939525441}}function Le(e,t){t.parent=e,Fe.forEachChild(t,function(e){return Le(t,e)})}Fe.bindSourceFile=function(e,t){Fe.performance.mark("beforeBind"),n(e,t),Fe.performance.mark("afterBind"),Fe.performance.measure("Bind","beforeBind","afterBind")},Fe.isExportsOrModuleExportsOrAlias=Ie,Fe.computeTransformFlagsForNode=x,Fe.getTransformFlagsSubtreeExclusions=Me}(ts||(ts={})),function(b){b.createGetSymbolWalker=function(i,o,s,l,m,c,g,y,v,h){return function(n){void 0===n&&(n=function(){return!0});var u=[],a=[];return{walkType:function(e){try{return d(e),{visitedTypes:b.getOwnValues(u),visitedSymbols:b.getOwnValues(a)}}finally{b.clear(u),b.clear(a)}},walkSymbol:function(e){try{return f(e),{visitedTypes:b.getOwnValues(u),visitedSymbols:b.getOwnValues(a)}}finally{b.clear(u),b.clear(a)}}};function d(e){if(e&&!u[e.id]){var t=f((u[e.id]=e).symbol);if(!t){if(65536&e.flags){var r=e,n=r.objectFlags;4&n&&(d((o=e).target),b.forEach(o.typeArguments,d)),32&n&&(d((i=e).typeParameter),d(i.constraintType),d(i.templateType),d(i.modifiersType)),3&n&&(_(a=e),b.forEach(a.typeParameters,d),b.forEach(l(a),d),d(a.thisType)),24&n&&_(r)}var a,i,o,s,c;32768&e.flags&&d(v(e)),393216&e.flags&&(s=e,b.forEach(s.types,d)),524288&e.flags&&d(e.type),1048576&e.flags&&(d((c=e).objectType),d(c.indexType),d(c.constraint))}}}function p(e){var t=o(e);t&&d(t.type),b.forEach(e.typeParameters,d);for(var r=0,n=e.parameters;r<n.length;r++){var a=n[r];f(a)}d(i(e)),d(s(e))}function _(e){var t=y(e,0);d(t);var r=y(e,1);d(r);for(var n=m(e),a=0,i=n.callSignatures;a<i.length;a++){var o=i[a];p(o)}for(var s=0,c=n.constructSignatures;s<c.length;s++){var o=c[s];p(o)}for(var u=0,_=n.properties;u<_.length;u++){var l=_[u];f(l)}}function f(e){if(e){var t=b.getSymbolId(e);if(!a[t]){if(a[t]=e,!n(e))return!0;var r=c(e);d(r),1952&e.flags&&e.exports.forEach(f),b.forEach(e.declarations,function(e){if(e.type&&164===e.type.kind){var t=e.type,r=g(h(t.exprName));f(r)}})}}}}}}(ts||(ts={})),function(x){function k(e){e.trace(x.formatMessage.apply(void 0,arguments))}function v(e,t){return e.traceResolution&&void 0!==t.trace}function p(e,t){return t&&{path:t.path,extension:t.ext,packageId:e}}function _(e){return p(void 0,e)}var h,e;function l(e){if(e)return x.Debug.assert(x.extensionIsTypeScript(e.extension)),{fileName:e.path,packageId:e.packageId}}function c(e,t,r,n){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:t,extension:e.extension,isExternalLibraryImport:r,packageId:e.packageId},failedLookupLocations:n}}function f(e,n,a,i){return e?t("typings")||t("types"):t("main");function t(e){if(x.hasProperty(n,e)){var t=n[e];if(x.isString(t)){var r=x.normalizePath(x.combinePaths(a,t));return i.traceEnabled&&k(i.host,x.Diagnostics.package_json_has_0_field_1_that_references_2,e,t,r),r}i.traceEnabled&&k(i.host,x.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,e,typeof t)}else i.traceEnabled&&k(i.host,x.Diagnostics.package_json_does_not_have_a_0_field,e)}}function m(e,t){try{var r=t.readFile(e);return r?JSON.parse(r):{}}catch(e){return{}}}function d(e,t){return e.typeRoots?e.typeRoots:(e.configFilePath?r=x.getDirectoryPath(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),void 0!==r?function(e,r){if(!r.directoryExists)return[x.combinePaths(e,a)];var n;return x.forEachAncestorDirectory(x.normalizePath(e),function(e){var t=x.combinePaths(e,a);r.directoryExists(t)&&(n||(n=[])).push(t)}),n}(r,t):void 0);var r}x.trace=k,x.isTraceEnabled=v,(e=h||(h={}))[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.DtsOnly=2]="DtsOnly",x.getEffectiveTypeRoots=d;var a=x.combinePaths("node_modules","@types");function r(n,r,c,u){return{getOrCreateCacheForDirectory:function(e){var t=x.toPath(e,c,u),r=n.get(t);r||(r=x.createMap(),n.set(t,r));return r},getOrCreateCacheForModuleName:function(e){if(x.isExternalModuleNameRelative(e))return;var t=r.get(e);t||(s=x.createMap(),t={get:function(e){return s.get(x.toPath(e,c,u))},set:function(e,t){var r=x.toPath(e,c,u);if(!s.has(r)){s.set(r,t);for(var n=t.resolvedModule&&t.resolvedModule.resolvedFileName,a=function(e,t){if(void 0!==t){for(var r=x.toPath(x.getDirectoryPath(t),c,u),n=0;n<Math.min(e.length,r.length)&&e.charCodeAt(n)===r.charCodeAt(n);)n++;var a=e.lastIndexOf(x.directorySeparator,n);if(!(a<0))return e.substr(0,a)}}(r,n),i=r;;){var o=x.getDirectoryPath(i);if(o===i||s.has(o))break;if(s.set(o,t),(i=o)===a)break}}}},r.set(e,t));var s;return t}}}function b(e,t,r,n,a,i){return x.isExternalModuleNameRelative(t)?function(e,t,r,n,a,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&k(i.host,x.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);for(var o,s,c=x.normalizePath(x.combinePaths(r,t)),u=0,_=i.compilerOptions.rootDirs;u<_.length;u++){var l=_[u],d=x.normalizePath(l);x.endsWith(d,x.directorySeparator)||(d+=x.directorySeparator);var p=x.startsWith(c,d)&&(void 0===s||s.length<d.length);i.traceEnabled&&k(i.host,x.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,d,c,p),p&&(s=d,o=l)}if(s){i.traceEnabled&&k(i.host,x.Diagnostics.Longest_matching_prefix_for_0_is_1,c,s);var f=c.substr(s.length);i.traceEnabled&&k(i.host,x.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,f,s,c);var m=n(e,c,a,!T(r,i.host),i);if(m)return m;i.traceEnabled&&k(i.host,x.Diagnostics.Trying_other_entries_in_rootDirs);for(var g=0,y=i.compilerOptions.rootDirs;g<y.length;g++){var l=y[g];if(l!==o){var v=x.combinePaths(x.normalizePath(l),f);i.traceEnabled&&k(i.host,x.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,f,l,v);var h=x.getDirectoryPath(v),b=n(e,v,a,!T(h,i.host),i);if(b)return b}}i.traceEnabled&&k(i.host,x.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(e,t,r,n,a,i):function(i,e,o,s,c){if(!c.compilerOptions.baseUrl)return;c.traceEnabled&&k(c.host,x.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c.compilerOptions.baseUrl,e);var t;c.compilerOptions.paths&&(c.traceEnabled&&k(c.host,x.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,e),t=x.matchPatternOrExact(x.getOwnKeys(c.compilerOptions.paths),e));{if(t){var u=x.isString(t)?void 0:x.matchedText(t,e),r=x.isString(t)?t:x.patternText(t);return c.traceEnabled&&k(c.host,x.Diagnostics.Module_name_0_matched_pattern_1,e,r),x.forEach(c.compilerOptions.paths[r],function(e){var t=u?e.replace("*",u):e,r=x.normalizePath(x.combinePaths(c.compilerOptions.baseUrl,t));c.traceEnabled&&k(c.host,x.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,e,t);var n=x.tryGetExtensionFromPath(r);if(void 0!==n){var a=P(r,s,!1,c);if(void 0!==a)return _({path:a,ext:n})}return o(i,r,s,!T(x.getDirectoryPath(r),c.host),c)})}var n=x.normalizePath(x.combinePaths(c.compilerOptions.baseUrl,e));return c.traceEnabled&&k(c.host,x.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,e,c.compilerOptions.baseUrl,n),o(i,n,s,!T(x.getDirectoryPath(n),c.host),c)}}(e,t,n,a,i)}function g(e,t,r,n,a){return o(e,x.getDirectoryPath(t),r,n,a,!1)}function o(_,l,d,p,f,e){var m=v(d,p),g=[],y={compilerOptions:d,host:p,traceEnabled:m},t=e?n(h.JavaScript):n(h.TypeScript)||n(h.JavaScript);if(t&&t.value){var r=t.value;return c(r.resolved,r.originalPath,r.isExternalLibraryImport,g)}return{resolvedModule:void 0,failedLookupLocations:g};function n(e){var t=b(e,_,l,function(e,t,r,n,a){return S(e,t,r,n,a,!0)},g,y);if(t)return U({resolved:t,isExternalLibraryImport:!1});if(x.isExternalModuleNameRelative(_)){var r=x.normalizePathAndParts(x.combinePaths(l,_)),n=r.path,a=r.parts,i=S(e,n,g,!1,y,!0);return i&&U({resolved:i,isExternalLibraryImport:x.contains(a,"node_modules")})}m&&k(p,x.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,_,h[e]);var o=R(e,_,l,g,y,f);if(o){var s=o.value,c=void 0;if(!d.preserveSymlinks&&s){c=s.path;var u=D(o.value.path,p,m);u===c&&(c=void 0),s=__assign({},s,{path:u})}return{value:s&&{resolved:s,originalPath:c,isExternalLibraryImport:!0}}}}}function D(e,t,r){if(!t.realpath)return e;var n=x.normalizePath(t.realpath(e));return r&&k(t,x.Diagnostics.Resolving_real_path_for_0_result_1,e,n),n}function S(e,t,r,n,a,i){if(a.traceEnabled&&k(a.host,x.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,t,h[e]),!x.pathEndsWithDirectorySeparator(t)){if(!n){var o=x.getDirectoryPath(t);T(o,a.host)||(a.traceEnabled&&k(a.host,x.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),n=!0)}var s=N(e,t,r,n,a);if(s){var c=i?function(e){var t=x.normalizePath(e.path),r=t.lastIndexOf(u);if(-1===r)return;var n=r+u.length,a=y(t,n);64===t.charCodeAt(n)&&(a=y(t,a));var i=t.slice(0,a),o=x.removeExtension(t.slice(a+1),e.ext)+".d.ts";return{packageDirectory:i,subModuleName:o}}(s):void 0;return p(c&&I(c.packageDirectory,c.subModuleName,r,!1,a).packageId,s)}}n||(T(t,a.host)||(a.traceEnabled&&k(a.host,x.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0));return F(e,t,r,n,a,i)}x.resolveTypeReferenceDirective=function(a,n,e,i){var o=v(e,i),s={compilerOptions:e,host:i,traceEnabled:o},t=d(e,i);o&&(void 0===n?void 0===t?k(i,x.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,a):k(i,x.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,a,t):void 0===t?k(i,x.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,a,n):k(i,x.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,a,n,t));var r,c=[],u=function(){if(t&&t.length)return o&&k(i,x.Diagnostics.Resolving_with_primary_search_path_0,t.join(", ")),x.forEach(t,function(e){var t=x.combinePaths(e,a),r=x.getDirectoryPath(t),n=T(r,i);return!n&&o&&k(i,x.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),l(F(h.DtsOnly,t,c,!n,s))});o&&k(i,x.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),_=!0;return u||(u=function(){var e,t=n&&x.getDirectoryPath(n);if(void 0!==t){o&&k(i,x.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,t);var r=R(h.DtsOnly,a,t,c,s,void 0);return!(e=l(r&&r.value))&&o&&k(i,x.Diagnostics.Type_reference_directive_0_was_not_resolved,a),e}o&&k(i,x.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),_=!1),u&&(e.preserveSymlinks||(u=__assign({},u,{fileName:D(u.fileName,i,o)})),o&&k(i,x.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,a,u.fileName,_),r={primary:_,resolvedFileName:u.fileName,packageId:u.packageId}),{resolvedTypeReferenceDirective:r,failedLookupLocations:c}},x.getAutomaticTypeDirectiveNames=function(e,t){if(e.types)return e.types;var r=[];if(t.directoryExists&&t.getDirectories){var n=d(e,t);if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];if(t.directoryExists(o))for(var s=0,c=t.getDirectories(o);s<c.length;s++){var u=c[s],_=x.normalizePath(u),l=O(x.combinePaths(o,_));t.fileExists(l)&&null===m(l,t).typings||r.push(x.getBaseFileName(_))}}}return r},x.createModuleResolutionCache=function(e,t){return r(x.createMap(),x.createMap(),e,t)},x.createModuleResolutionCacheWithMaps=r,x.resolveModuleName=function(e,t,r,n,a){var i=v(r,n);i&&k(n,x.Diagnostics.Resolving_module_0_from_1,e,t);var o=x.getDirectoryPath(t),s=a&&a.getOrCreateCacheForDirectory(o),c=s&&s.get(e);if(c)i&&k(n,x.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,e,o);else{var u=r.moduleResolution;switch(void 0===u?(u=x.getEmitModuleKind(r)===x.ModuleKind.CommonJS?x.ModuleResolutionKind.NodeJs:x.ModuleResolutionKind.Classic,i&&k(n,x.Diagnostics.Module_resolution_kind_is_not_specified_using_0,x.ModuleResolutionKind[u])):i&&k(n,x.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,x.ModuleResolutionKind[u]),u){case x.ModuleResolutionKind.NodeJs:c=g(e,t,r,n,a);break;case x.ModuleResolutionKind.Classic:c=K(e,t,r,n,a);break;default:x.Debug.fail("Unexpected moduleResolution: "+u)}if(s){s.set(e,c);var _=a.getOrCreateCacheForModuleName(e);_&&_.set(o,c)}}return i&&(c.resolvedModule?k(n,x.Diagnostics.Module_name_0_was_successfully_resolved_to_1,e,c.resolvedModule.resolvedFileName):k(n,x.Diagnostics.Module_name_0_was_not_resolved,e)),c},x.nodeModuleNameResolver=g,x.resolveJavaScriptModule=function(e,t,r){var n=o(e,t,{moduleResolution:x.ModuleResolutionKind.NodeJs,allowJs:!0},r,void 0,!0),a=n.resolvedModule,i=n.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+i.join(", "));return a.resolvedFileName};var u="/node_modules/";function y(e,t){var r=e.indexOf(x.directorySeparator,t+1);return-1===r?t:r}function C(e){return""===e?"index.d.ts":x.endsWith(e,".d.ts")?e:x.endsWith(e,"/index")?e+".d.ts":e+"/index.d.ts"}function T(e,t){return!t.directoryExists||t.directoryExists(e)}function E(e,t,r,n,a){return _(N(e,t,r,n,a))}function N(e,t,r,n,a){var i=A(t,e,r,n,a);if(i)return i;if(x.hasJavaScriptFileExtension(t)){var o=x.removeFileExtension(t);if(a.traceEnabled){var s=t.substring(o.length);k(a.host,x.Diagnostics.File_name_0_has_a_1_extension_stripping_it,t,s)}return A(o,e,r,n,a)}}function A(r,e,n,a,i){if(!a){var t=x.getDirectoryPath(r);t&&(a=!T(t,i.host))}switch(e){case h.DtsOnly:return o(".d.ts");case h.TypeScript:return o(".ts")||o(".tsx")||o(".d.ts");case h.JavaScript:return o(".js")||o(".jsx")}function o(e){var t=P(r+e,n,a,i);return t&&{path:t,ext:e}}}function P(e,t,r,n){if(!r){if(n.host.fileExists(e))return n.traceEnabled&&k(n.host,x.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&k(n.host,x.Diagnostics.File_0_does_not_exist,e)}t.push(e)}function F(e,t,r,n,a,i){void 0===i&&(i=!0);var o=i?I(t,"",r,n,a):{packageJsonContent:void 0,packageId:void 0},s=o.packageJsonContent;return p(o.packageId,w(e,t,r,n,a,s))}function w(e,t,r,n,a,i){var o=i&&function(e,t,r,n,a){var i=f(t!==h.JavaScript,e,r,a);if(!i)return;var o=!T(x.getDirectoryPath(i),a.host),s=P(i,n,o,a);if(s){var c=s&&(u=t,_=s,void 0!==(l=x.tryGetExtensionFromPath(_))&&function(e,t){switch(e){case h.JavaScript:return".js"===t||".jsx"===t;case h.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case h.DtsOnly:return".d.ts"===t}}(u,l)?{path:_,ext:l}:void 0);if(c)return c;a.traceEnabled&&k(a.host,x.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var u,_,l;var d=S(t===h.DtsOnly?h.TypeScript:t,i,n,o,a,!1);if(d)return x.Debug.assert(void 0===d.packageId),{path:d.path,ext:d.extension}}(i,e,t,r,a);if(o)return o;var s=!n&&T(t,a.host);return N(e,x.combinePaths(t,"index"),r,!s,a)}function I(e,t,r,n,a){var i=a.host,o=a.traceEnabled,s=!n&&T(e,i),c=O(e);if(s&&i.fileExists(c)){var u=m(c,i);if(""===t){var _=f(!0,u,e,a);if("string"==typeof _)t=C(_.substring(e.length+1));else{var l=f(!1,u,e,a);t="string"==typeof l?x.removeExtension(x.removeExtension(l.substring(e.length+1),".js"),".jsx")+".d.ts":"index.d.ts"}}x.endsWith(t,".d.ts")||(t=C(t));var d="string"==typeof u.name&&"string"==typeof u.version?{name:u.name,subModuleName:t,version:u.version}:void 0;return o&&(d?k(i,x.Diagnostics.Found_package_json_at_0_Package_ID_is_1,c,x.packageIdToString(d)):k(i,x.Diagnostics.Found_package_json_at_0,c)),{found:!0,packageJsonContent:u,packageId:d}}return s&&o&&k(i,x.Diagnostics.File_0_does_not_exist,c),r.push(c),{found:!1,packageJsonContent:void 0,packageId:void 0}}function O(e){return x.combinePaths(e,"package.json")}function M(e,t,r,n,a,i){var o,s,c=x.normalizePath(x.combinePaths(r,t)),u=I(c,"",a,!n,i);if(u.found)o=u.packageJsonContent,s=u.packageId;else{var _=L(t),l=_.packageName,d=_.rest;if(""!==d)s=I(x.combinePaths(r,l),d,a,!n,i).packageId}return p(s,N(e,c,a,!n,i)||w(e,c,a,!n,i,o))}function L(e){var t=e.indexOf(x.directorySeparator);return"@"===e[0]&&(t=e.indexOf(x.directorySeparator,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function R(e,t,r,n,a,i){return B(e,t,r,n,a,!1,i)}function B(r,n,e,a,i,o,t){var s=t&&t.getOrCreateCacheForModuleName(n);return x.forEachAncestorDirectory(x.normalizeSlashes(e),function(e){if("node_modules"!==x.getBaseFileName(e)){var t=j(s,n,e,i.traceEnabled,i.host,a);return t||U(z(r,n,e,a,i,o))}})}function z(e,t,r,n,a,i){void 0===i&&(i=!1);var o=x.combinePaths(r,"node_modules"),s=T(o,a.host);!s&&a.traceEnabled&&k(a.host,x.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o);var c=i?void 0:M(e,t,o,s,n,a);if(c)return c;if(e!==h.JavaScript){var u=x.combinePaths(o,"@types"),_=s;return s&&!T(u,a.host)&&(a.traceEnabled&&k(a.host,x.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),_=!1),M(h.DtsOnly,function(e,t){var r=J(e);t.traceEnabled&&r!==e&&k(t.host,x.Diagnostics.Scoped_package_detected_looking_in_0,r);return r}(t,a),u,_,n,a)}}x.directoryProbablyExists=T,x.getPackageName=L;var n="__";function J(e){if(x.startsWith(e,"@")){var t=e.replace(x.directorySeparator,n);if(t!==e)return t.slice(1)}return e}function i(e){return x.stringContains(e,n)?"@"+e.replace(n,x.directorySeparator):e}function j(e,t,r,n,a,i){var o=e&&e.get(r);if(o)return n&&k(a,x.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),i.push.apply(i,o.failedLookupLocations),{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function K(u,e,t,_,l){var d=v(t,_),p={compilerOptions:t,host:_,traceEnabled:d},f=[],m=x.getDirectoryPath(e),r=n(h.TypeScript)||n(h.JavaScript);return c(r&&r.value,void 0,!1,f);function n(n){var e=b(n,u,m,E,f,p);if(e)return{value:e};var a=l&&l.getOrCreateCacheForModuleName(u);if(x.isExternalModuleNameRelative(u)){var t=x.normalizePath(x.combinePaths(m,u));return U(E(n,t,f,!1,p))}var r,i,o,s,c=x.forEachAncestorDirectory(m,function(e){var t=j(a,u,e,d,_,f);if(t)return t;var r=x.normalizePath(x.combinePaths(e,u));return U(E(n,r,f,!1,p))});return c||(n===h.TypeScript?(r=u,i=m,o=f,s=p,B(h.DtsOnly,r,i,o,s,!0,void 0)):void 0)}}function U(e){return void 0!==e?{value:e}:void 0}x.getTypesPackageName=function(e){return"@types/"+J(e)},x.getMangledNameForScopedPackage=J,x.getPackageNameFromAtTypesDirectory=function(e){var t=x.removePrefix(e,"@types/");return t!==e?i(t):e},x.getUnmangledNameForScopedPackage=i,x.classicNameResolver=K,x.loadModuleFromGlobalCache=function(e,t,r,n,a){var i=v(r,n);i&&k(n,x.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,a);var o={compilerOptions:r,host:n,traceEnabled:i},s=[];return c(z(h.DtsOnly,e,a,s,o),void 0,!0,s)}}(ts||(ts={})),function(Ig){var Og,e,Mg=/^".+"$/,t=1,r=1,Lg=1,Rg=1;function Bg(e){return e.id||(e.id=r,r++),e.id}function zg(e){return e.id||(e.id=t,t++),e.id}function Jg(e,t){var r=Ig.getModuleInstanceState(e);return 1===r||t&&2===r}function jg(e){switch(e.parent.kind){case 246:case 250:return Ig.isIdentifier(e);default:return Ig.isDeclarationName(e)}}function Kg(e){switch(e.kind){case 243:case 241:case 244:case 246:return!0;case 71:return 246===e.parent.kind;default:return!1}}Ig.getNodeId=Bg,Ig.getSymbolId=zg,Ig.isInstantiatedModule=Jg,Ig.createTypeChecker=function(b,L){var D,u,_,a=Ig.objectAllocator.getSymbolConstructor(),r=Ig.objectAllocator.getTypeConstructor(),l=Ig.objectAllocator.getSignatureConstructor(),n=0,i=0,d=0,o=0,x=Ig.createSymbolTable(),k=Ig.identity,O=b.getCompilerOptions(),w=Ig.getEmitScriptTarget(O),S=Ig.getEmitModuleKind(O),A=!!O.noUnusedLocals||!!O.noUnusedParameters,m=Ig.getAllowSyntheticDefaultImports(O),P=Ig.getStrictOptionValue(O,"strictNullChecks"),R=Ig.getStrictOptionValue(O,"strictFunctionTypes"),C=Ig.getStrictOptionValue(O,"strictPropertyInitialization"),T=Ig.getStrictOptionValue(O,"noImplicitAny"),E=Ig.getStrictOptionValue(O,"noImplicitThis"),s=function(){var c,e=b.getResolvedTypeReferenceDirectives();return e&&(c=Ig.createMap(),e.forEach(function(e,t){if(e){var r=b.getSourceFile(e.resolvedFileName);c.set(r.path,t)}})),{getReferencedExportContainer:Mm,getReferencedImportDeclaration:Lm,getReferencedDeclarationWithCollidingName:Bm,isDeclarationWithCollidingName:zm,isValueAliasDeclaration:function(e){return!(e=Ig.getParseTreeNode(e))||Jm(e)},hasGlobalName:tg,isReferencedAliasDeclaration:function(e,t){return!(e=Ig.getParseTreeNode(e))||function t(e,r){if(Ig.isAliasSymbolDeclaration(e)){var n=en(e);if(n&&pr(n).referenced)return!0;var a=pr(n).target;if(a&&1&Ig.getModifierFlags(e)&&67216319&a.flags)return!0}return!!r&&Ig.forEachChild(e,function(e){return t(e,r)})}(e,t)},getNodeCheckFlags:function(e){return(e=Ig.getParseTreeNode(e))?Hm(e):void 0},isTopLevelValueImportEqualsWithEntityName:jm,isDeclarationVisible:Fn,isImplementationOfOverload:qm,isRequiredInitializedParameter:Vm,isOptionalUninitializedParameterProperty:Wm,writeTypeOfDeclaration:Zm,writeReturnTypeOfSignatureDeclaration:$m,writeTypeOfExpression:eg,isSymbolAccessible:vn,isEntityNameVisible:xn,getConstantValue:function(e){return(e=Ig.getParseTreeNode(e,Xm))?Qm(e):void 0},collectLinkedAliases:wn,getReferencedValueDeclaration:ng,getTypeReferenceSerializationKind:Ym,isOptionalParameter:Vi,moduleExportsSomeValue:Om,isArgumentsLocalBinding:Im,getExternalModuleFileFromDeclaration:og,getTypeReferenceDirectivesForEntityName:function(e){if(c){var t=183===e.kind||71===e.kind&&Ku(e)?68264895:67903464,r=zr(e,t,!0);return r&&r!==M?n(r,t):void 0}},getTypeReferenceDirectivesForSymbol:n,isLiteralConstDeclaration:ag,isLateBound:function(e){var t=(e=Ig.getParseTreeNode(e,Ig.isDeclaration))&&en(e);return!!(t&&1024&Ig.getCheckFlags(t))},writeLiteralConstValue:ig,getJsxFactoryEntity:function(e){return e?(nr(e),Ig.getSourceFileOfNode(e).localJsxFactory||Pt):Pt}};function n(e,t){if(c&&function(e){if(!e.declarations)return!1;for(var t=e;;){var r=tn(t);if(!r)break;t=r}if(t.valueDeclaration&&272===t.valueDeclaration.kind&&512&t.flags)return!1;for(var n=0,a=e.declarations;n<a.length;n++){var i=a[n],o=Ig.getSourceFileOfNode(i);if(c.has(o.path))return!0}return!1}(e)){for(var r,n=0,a=e.declarations;n<a.length;n++){var i=a[n];if(i.symbol&&i.symbol.flags&t){var o=Ig.getSourceFileOfNode(i),s=c.get(o.path);if(!s)return;(r||(r=[])).push(s)}}return r}}}(),p=function(){return{typeToTypeNode:function(e,t,r,n){Ig.Debug.assert(void 0===t||0==(8&t.flags));var a=u(t,r,n),i=E(e,a),o=a.encounteredError?void 0:i;return o},indexInfoToIndexSignatureDeclaration:function(e,t,r,n,a){Ig.Debug.assert(void 0===r||0==(8&r.flags));var i=u(r,n,a),o=N(e,t,i),s=i.encounteredError?void 0:o;return s},signatureToSignatureDeclaration:function(e,t,r,n,a){Ig.Debug.assert(void 0===r||0==(8&r.flags));var i=u(r,n,a),o=A(e,t,i),s=i.encounteredError?void 0:o;return s},symbolToEntityName:function(e,t,r,n,a){Ig.Debug.assert(void 0===r||0==(8&r.flags));var i=u(r,n,a),o=F(e,i,t,!1),s=i.encounteredError?void 0:o;return s},symbolToExpression:function(e,t,r,n,a){Ig.Debug.assert(void 0===r||0==(8&r.flags));var _,i,o=u(r,n,a),s=function e(t,r){var n=p(t,r,_),a=t[r];0===r&&(_.flags|=16777216);var i=Pn(a,_);0===r&&(_.flags^=16777216);var o=i.charCodeAt(0),s=Ig.isIdentifierStart(o,w);if(0===r||s){var c=Ig.setEmitFlags(Ig.createIdentifier(i,n),16777216);return c.symbol=a,0<r?Ig.createPropertyAccess(e(t,r-1),c):c}91===o&&(i=i.substring(1,i.length-1),o=i.charCodeAt(0));var u=void 0;return Ig.isSingleOrDoubleQuote(o)?(u=Ig.createLiteral(i.substring(1,i.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===o:""+ +i===i&&(u=Ig.createLiteral(+i)),u||((u=Ig.setEmitFlags(Ig.createIdentifier(i,n),16777216)).symbol=a),Ig.createElementAccess(e(t,r-1),u)}(i=l(e,_=o,t),i.length-1),c=o.encounteredError?void 0:s;return c},symbolToTypeParameterDeclarations:function(e,t,r,n){Ig.Debug.assert(void 0===t||0==(8&t.flags));var a=u(t,r,n),i=_(e,a),o=a.encounteredError?void 0:i;return o},symbolToParameterDeclaration:function(e,t,r,n){Ig.Debug.assert(void 0===t||0==(8&t.flags));var a=u(t,r,n),i=d(e,a),o=a.encounteredError?void 0:i;return o},typeParameterToDeclaration:function(e,t,r,n){Ig.Debug.assert(void 0===t||0==(8&t.flags));var a=u(t,r,n),i=P(e,a),o=a.encounteredError?void 0:i;return o}};function u(e,t,r){return{enclosingDeclaration:e,flags:t,tracker:r&&r.trackSymbol?r:{trackSymbol:Ig.noop},encounteredError:!1,symbolStack:void 0,inferTypeParameters:void 0}}function E(e,T){var t=8388608&T.flags;if(T.flags&=-8388609,e){if(1&e.flags)return Ig.createKeywordTypeNode(119);if(2&e.flags)return Ig.createKeywordTypeNode(137);if(4&e.flags)return Ig.createKeywordTypeNode(134);if(8&e.flags)return Ig.createKeywordTypeNode(122);if(256&e.flags&&!(131072&e.flags)){var r=tn(e.symbol),n=F(r,T,67901928,!1),a=Aa(r)===e?n:Ig.createQualifiedName(n,Ig.symbolName(e.symbol));return Ig.createTypeReferenceNode(a,void 0)}if(272&e.flags){var i=F(e.symbol,T,67901928,!1);return Ig.createTypeReferenceNode(i,void 0)}if(32&e.flags)return Ig.createLiteralTypeNode(Ig.setEmitFlags(Ig.createLiteral(e.value),16777216));if(64&e.flags)return Ig.createLiteralTypeNode(Ig.createLiteral(e.value));if(128&e.flags)return"true"===e.intrinsicName?Ig.createTrue():Ig.createFalse();if(1024&e.flags){if(!(1048576&T.flags)){if(yn(e.symbol,T.enclosingDeclaration))return Ig.createTypeQueryNode(F(e.symbol,T,67216319,!1));T.tracker.reportInaccessibleUniqueSymbolError&&T.tracker.reportInaccessibleUniqueSymbolError()}return Ig.createTypeOperatorNode(141,Ig.createKeywordTypeNode(138))}if(2048&e.flags)return Ig.createKeywordTypeNode(105);if(4096&e.flags)return Ig.createKeywordTypeNode(140);if(8192&e.flags)return Ig.createKeywordTypeNode(95);if(16384&e.flags)return Ig.createKeywordTypeNode(131);if(512&e.flags)return Ig.createKeywordTypeNode(138);if(134217728&e.flags)return Ig.createKeywordTypeNode(135);if(32768&e.flags&&e.isThisType)return 4194304&T.flags&&(T.encounteredError||32768&T.flags||(T.encounteredError=!0),T.tracker.reportInaccessibleThisError&&T.tracker.reportInaccessibleThisError()),Ig.createThis();var o,s,c=Ig.getObjectFlags(e);if(4&c)return Ig.Debug.assert(!!(65536&e.flags)),function(e){var t=e.typeArguments||Ig.emptyArray;if(e.target===he){if(2&T.flags){var r=E(t[0],T);return Ig.createTypeReferenceNode("Array",[r])}var n=E(t[0],T);return Ig.createArrayTypeNode(n)}if(8&e.target.objectFlags){if(0<t.length){var a=C(t.slice(0,ko(e)),T);if(a&&0<a.length)return Ig.createTupleTypeNode(a)}return T.encounteredError||524288&T.flags?Ig.createTupleTypeNode([]):void(T.encounteredError=!0)}if(2048&T.flags&&e.symbol.valueDeclaration&&203===e.symbol.valueDeclaration.kind)return x(e);var i=e.target.outerTypeParameters,o=0,s=void 0;if(i)for(var c=i.length;o<c;){for(var u=o,_=yo(i[o]);++o<c&&yo(i[o])===_;);if(!Ig.rangeEquals(i,t,u,o)){var l=C(t.slice(u,o),T),d=l&&Ig.createNodeArray(l),p=D(_);(71===p.kind?p:p.right).typeArguments=d,s?(Ig.Debug.assert(!s.right),s=S(s,p),s=Ig.createQualifiedName(s,void 0)):s=Ig.createQualifiedName(p,void 0)}}var f=void 0,m=D(e.symbol);s?(Ig.Debug.assert(!s.right),s=S(s,m),f=s):f=m;var g=void 0;if(0<t.length){var y=(e.target.typeParameters||Ig.emptyArray).length;g=C(t.slice(o,y),T)}if(g){var v=71===f.kind?f:f.right;v.typeArguments=void 0}return Ig.createTypeReferenceNode(f,g)}(e);if(32768&e.flags||3&c){if(32768&e.flags&&Ig.contains(T.inferTypeParameters,e))return Ig.createInferTypeNode(Ig.createTypeParameterDeclaration(Pn(e.symbol)));var i=e.symbol?F(e.symbol,T,67901928,!1):Ig.createIdentifier("?");return Ig.createTypeReferenceNode(i,void 0)}if(!t&&e.aliasSymbol&&(16384&T.flags||(o=e.aliasSymbol,s=T.enclosingDeclaration,0===vn(o,s,67901928,!1).accessibility))){var i=D(e.aliasSymbol),u=C(e.aliasTypeArguments,T);return Ig.createTypeReferenceNode(i,u)}if(393216&e.flags){var _=131072&e.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var a=e[n];if(r|=a.flags,!(12288&a.flags)){if(384&a.flags){var i=128&a.flags?Z:Ca(a);if(131072&i.flags){var o=i.types.length;if(n+o<=e.length&&e[n+o-1]===i.types[o-1]){t.push(i),n+=o-1;continue}}}t.push(a)}}return 8192&r&&t.push(W),4096&r&&t.push(q),t||e}(e.types):e.types,l=C(_,T);if(l&&0<l.length){var d=Ig.createUnionOrIntersectionTypeNode(131072&e.flags?168:169,l);return d}T.encounteredError||262144&T.flags||(T.encounteredError=!0)}else{if(48&c)return Ig.Debug.assert(!!(65536&e.flags)),x(e);if(524288&e.flags){var p=e.type,f=E(p,T);return Ig.createTypeOperatorNode(f)}if(1048576&e.flags){var m=E(e.objectType,T),f=E(e.indexType,T);return Ig.createIndexedAccessTypeNode(m,f)}if(2097152&e.flags){var g=E(e.checkType,T),y=T.inferTypeParameters;T.inferTypeParameters=e.root.inferTypeParameters;var v=E(e.extendsType,T);T.inferTypeParameters=y;var h=E(Fs(e),T),b=E(ws(e),T);return Ig.createConditionalTypeNode(g,v,h,b)}if(4194304&e.flags)return E(e.typeVariable,T);Ig.Debug.fail("Should be unreachable.")}}else T.encounteredError=!0;function x(e){var t,r=e.symbol;if(r){if(32&r.flags&&!na(r)&&!(203===r.valueDeclaration.kind&&2048&T.flags)||896&r.flags||function(){var e=!!(8192&r.flags)&&Ig.some(r.declarations,function(e){return Ig.hasModifier(e,32)}),t=!!(16&r.flags)&&(r.parent||Ig.forEach(r.declarations,function(e){return 272===e.parent.kind||238===e.parent.kind}));if(e||t)return(!!(4096&T.flags)||Ig.contains(T.symbolStack,r))&&(!(8&T.flags)||yn(r,T.enclosingDeclaration))}())return t=F(r,T,67216319,!1),Ig.createTypeQueryNode(t);if(Ig.contains(T.symbolStack,r)){var n=function(e){if(e.symbol&&2048&e.symbol.flags){var t=Ig.findAncestor(e.symbol.declarations[0].parent,function(e){return 172!==e.kind});if(235===t.kind)return en(t)}}(e);if(n){var a=F(n,T,67901928,!1);return Ig.createTypeReferenceNode(a,void 0)}return Ig.createKeywordTypeNode(119)}T.symbolStack||(T.symbolStack=[]);var i=16&Ig.getObjectFlags(e)&&e.symbol&&32&e.symbol.flags;if(i)return k(e);T.symbolStack.push(r);var o=k(e);return T.symbolStack.pop(),o}return k(e)}function k(e){if(pi(e))return function(e){Ig.Debug.assert(!!(65536&e.flags));var t=e.declaration.readonlyToken?Ig.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?Ig.createToken(e.declaration.questionToken.kind):void 0,n=P(oi(e),T,si(e)),a=E(ci(e),T),i=Ig.createMappedTypeNode(t,n,r,a);return Ig.setEmitFlags(i,1)}(e);var t=fi(e);if(!t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo){if(!t.callSignatures.length&&!t.constructSignatures.length)return Ig.setEmitFlags(Ig.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length){var r=t.callSignatures[0],n=A(r,162,T);return n}if(1===t.constructSignatures.length&&!t.callSignatures.length){var r=t.constructSignatures[0],n=A(r,163,T);return n}}var a=T.flags;T.flags|=4194304;var i=function(e){for(var t=[],r=0,n=e.callSignatures;r<n.length;r++){var a=n[r];t.push(A(a,157,T))}for(var i=0,o=e.constructSignatures;i<o.length;i++){var a=o[i];t.push(A(a,158,T))}if(e.stringIndexInfo){var s=2048&e.objectFlags?fo(J,e.stringIndexInfo.isReadonly,e.stringIndexInfo.declaration):e.stringIndexInfo;t.push(N(s,0,T))}e.numberIndexInfo&&t.push(N(e.numberIndexInfo,1,T));var c=e.properties;if(!c)return t;for(var u=0,_=c;u<_.length;u++){var l=_[u];if(2048&T.flags){if(4194304&l.flags)continue;24&Ig.getDeclarationModifierFlagsFromSymbol(l)&&T.tracker.reportPrivateInBaseOfClassExpression&&T.tracker.reportPrivateInBaseOfClassExpression(Ig.unescapeLeadingUnderscores(l.escapedName))}var d=2048&Ig.getCheckFlags(l)&&33554432&T.flags?J:oa(l),p=T.enclosingDeclaration;if(T.enclosingDeclaration=void 0,1024&Ig.getCheckFlags(l)){var f=Ig.firstOrUndefined(l.declarations),m=Ja(f)&&zr(f.name.expression,67216319);m&&T.tracker.trackSymbol&&T.tracker.trackSymbol(m,p,67216319)}var g=F(l,T,67216319,!0);T.enclosingDeclaration=p;var y=16777216&l.flags?Ig.createToken(55):void 0;if(8208&l.flags&&!mi(d).length)for(var v=Li(d,0),h=0,b=v;h<b.length;h++){var a=b[h],x=A(a,152,T);x.name=g,x.questionToken=y,t.push(x)}else{var k=T.flags;T.flags|=2048&Ig.getCheckFlags(l)?33554432:0;var D=d?E(d,T):Ig.createKeywordTypeNode(119);T.flags=k;var S=up(l)?[Ig.createToken(132)]:void 0,C=Ig.createPropertySignature(S,g,y,D,void 0);t.push(C)}}return t.length?t:void 0}(t);T.flags=a;var o=Ig.createTypeLiteralNode(i);return Ig.setEmitFlags(o,1024&T.flags?0:1)}function D(e){var t=32&e.flags||!un(e.escapedName)?F(e,T,67901928,!1):Ig.createIdentifier("");return t}function S(e,t){if(Ig.Debug.assert(void 0===e.right),71===t.kind)return e.right=t,e;for(var r=t;71!==r.left.kind;)r=r.left;return e.right=r.left,r.left=e,t}}function C(e,t){if(Ig.some(e)){for(var r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=E(i,t);o&&r.push(o)}return r}}function N(e,t,r){var n=Ig.getNameFromIndexInfo(e)||"x",a=Ig.createKeywordTypeNode(0===t?137:134),i=Ig.createParameter(void 0,void 0,void 0,n,void 0,a,void 0),o=e.type?E(e.type,r):E(J,r);return e.type||2097152&r.flags||(r.encounteredError=!0),Ig.createIndexSignature(void 0,e.isReadonly?[Ig.createToken(132)]:void 0,[i],o)}function A(t,e,r){var n,a;32&r.flags&&t.target&&t.mapper&&t.target.typeParameters?a=t.target.typeParameters.map(function(e){return E(uc(e,t.mapper),r)}):n=t.typeParameters&&t.typeParameters.map(function(e){return P(e,r)});var i,o=t.parameters.map(function(e){return d(e,r)});if(t.thisParameter){var s=d(t.thisParameter,r);o.unshift(s)}var c=to(t);if(c){var u=1===c.kind?Ig.setEmitFlags(Ig.createIdentifier(c.parameterName),16777216):Ig.createThisTypeNode(),_=E(c.type,r);i=Ig.createTypePredicateNode(u,_)}else{var l=ro(t);i=l&&E(l,r)}return 256&r.flags?i&&119===i.kind&&(i=void 0):i||(i=Ig.createKeywordTypeNode(119)),Ig.createSignatureDeclaration(e,n,o,i,a)}function P(e,t,r){void 0===r&&(r=go(e));var n=t.flags;t.flags&=-513;var a=F(e.symbol,t,67901928,!0),i=r&&E(r,t),o=Ai(e),s=o&&E(o,t);return t.flags=n,Ig.createTypeParameterDeclaration(a,i,s)}function d(e,t){var r=Ig.getDeclarationOfKind(e,148);Ig.Debug.assert(!!r||or(e)&&!!e.isRestParameter);var n=oa(e);r&&Vm(r)&&(n=_u(n));var a=E(n,t),i=!(8192&t.flags)&&r&&r.modifiers&&r.modifiers.map(Ig.getSynthesizedClone),o=!r||Ig.isRestParameter(r)?Ig.createToken(24):void 0,s=r&&r.name?71===r.name.kind?Ig.setEmitFlags(Ig.getSynthesizedClone(r.name),16777216):function e(t){var r=Ig.visitEachChild(t,e,Ig.nullTransformationContext,void 0,e),n=Ig.nodeIsSynthesized(r)?r:Ig.getSynthesizedClone(r);return 180===n.kind&&(n.initializer=void 0),Ig.setEmitFlags(n,16777217)}(r.name):Ig.symbolName(e),c=r&&Vi(r)?Ig.createToken(55):void 0,u=Ig.createParameter(void 0,i,o,s,c,a,void 0);return u}function l(e,c,t){var r;c.tracker.trackSymbol(e,c.enclosingDeclaration,t);var n=262144&e.flags;return!n&&(c.enclosingDeclaration||64&c.flags)?(r=function e(t,r,n){var a,i=mn(t,c.enclosingDeclaration,r,!!(128&c.flags));if(!i||gn(i[0],c.enclosingDeclaration,1===i.length?r:fn(r))){var o=tn(i?i[0]:t);if(o){var s=e(o,fn(r),!1);s&&(a=o,i=s.concat(i||[t]))}}return i||(!n&&(!a&&Ig.forEach(t.declarations,hn)||6144&t.flags)?void 0:[t])}(e,t,!0),Ig.Debug.assert(r&&0<r.length)):r=[e],r}function _(e,t){var r,n=tm(e);return 524384&n.flags&&(r=Ig.createNodeArray(Ig.map(pa(e),function(e){return P(e,t)}))),r}function p(e,t,r){Ig.Debug.assert(e&&0<=t&&t<e.length);var n,a,i=e[t];if(512&r.flags&&t<e.length-1){var o=i,s=e[t+1];if(1&Ig.getCheckFlags(s)){var c=(a=2097152&o.flags?Or(o):o,Ig.concatenate(da(a),pa(a)));n=C(Ig.map(c,s.mapper),r)}else n=_(i,r)}return n}function F(e,s,t,r){var n=l(e,s,t);return!r||1===n.length||s.encounteredError||65536&s.flags||(s.encounteredError=!0),function e(t,r){var n=p(t,r,s),a=t[r];0===r&&(s.flags|=16777216);var i=Pn(a,s);0===r&&(s.flags^=16777216);var o=Ig.setEmitFlags(Ig.createIdentifier(i,n),16777216);return o.symbol=a,0<r?Ig.createQualifiedName(e(t,r-1),o):o}(n,n.length-1)}}(),N=ir(4,"undefined");N.declarations=[];var B,e,F=ir(4,"arguments"),f={getNodeCount:function(){return Ig.sum(b.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return Ig.sum(b.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return Ig.sum(b.getSourceFiles(),"symbolCount")+i},getTypeCount:function(){return n},isUndefinedSymbol:function(e){return e===N},isArgumentsSymbol:function(e){return e===F},isUnknownSymbol:function(e){return e===M},getMergedSymbol:$r,getDiagnostics:bm,getGlobalDiagnostics:function(){return xm(),Tt.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(e,t){return(t=Ig.getParseTreeNode(t))?function(e,t){if(e=e.exportSymbol||e,71===t.kind&&(Ig.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ig.isExpressionNode(t)&&!Ig.isAssignmentTarget(t))){var r=Ip(t);if(rn(fr(t).resolvedSymbol)===e)return r}return oa(e)}(e,t):U},getSymbolsOfParameterPropertyDeclaration:function(e,t){return e=Ig.getParseTreeNode(e,Ig.isParameter),Ig.Debug.assert(void 0!==e,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),function(e,t){var r=e.parent,n=e.parent.parent,a=gr(r.locals,t,67216319),i=gr(Va(n.symbol),t,67216319);if(a&&i)return[a,i];Ig.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(e,Ig.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Aa,getPropertiesOfType:vi,getPropertyOfType:function(e,t){return Oi(e,Ig.escapeLeadingUnderscores(t))},getIndexInfoOfType:zi,getSignaturesOfType:Li,getIndexTypeOfType:Ji,getBaseTypes:ba,getBaseTypeOfLiteralType:eu,getWidenedType:vu,getTypeFromTypeNode:function(e){return(e=Ig.getParseTreeNode(e,Ig.isTypeNode))?Hs(e):U},getParameterType:Qd,getReturnTypeOfSignature:ro,getNullableType:uu,getNonNullableType:lu,typeToTypeNode:p.typeToTypeNode,indexInfoToIndexSignatureDeclaration:p.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:p.signatureToSignatureDeclaration,symbolToEntityName:p.symbolToEntityName,symbolToExpression:p.symbolToExpression,symbolToTypeParameterDeclarations:p.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:p.symbolToParameterDeclaration,typeParameterToDeclaration:p.typeParameterToDeclaration,getSymbolsInScope:function(e,t){return(e=Ig.getParseTreeNode(e))?function(r,n){if(4194304&r.flags)return[];var a=Ig.createSymbolTable(),i=!1;return function(){for(;r;){switch(r.locals&&!mr(r)&&s(r.locals,n),r.kind){case 237:s(en(r).exports,2623475&n);break;case 236:s(en(r).exports,8&n);break;case 203:var e=r.name;e&&o(r.symbol,n);case 233:case 234:i||s(Va(en(r)),67901928&n);break;case 190:var t=r.name;t&&o(r.symbol,n)}Ig.introducesArgumentsExoticObject(r)&&o(F,n),i=Ig.hasModifier(r,32),r=r.parent}s(tt,n)}(),Ki(a);function o(e,t){if(Ig.getCombinedLocalAndExportSymbolFlags(e)&t){var r=e.escapedName;a.has(r)||a.set(r,e)}}function s(e,t){t&&e.forEach(function(e){o(e,t)})}}(e,t):[]},getSymbolAtLocation:function(e){return(e=Ig.getParseTreeNode(e))?Nm(e):void 0},getShorthandAssignmentValueSymbol:function(e){return(e=Ig.getParseTreeNode(e))?function(e){if(e&&269===e.kind)return zr(e.name,69313471)}(e):void 0},getExportSpecifierLocalTargetSymbol:function(e){return(e=Ig.getParseTreeNode(e,Ig.isExportSpecifier))?(t=e).parent.parent.moduleSpecifier?Ar(t.parent.parent,t):zr(t.propertyName||t.name,70107135):void 0;var t},getExportSymbolOfSymbol:function(e){return $r(e.exportSymbol||e)},getTypeAtLocation:function(e){return(e=Ig.getParseTreeNode(e))?Am(e):U},getPropertySymbolOfDestructuringAssignment:function(e){return(e=Ig.getParseTreeNode(e,Ig.isIdentifier))?(r=function e(t){if(Ig.Debug.assert(182===t.kind||181===t.kind),220===t.parent.kind){var r=zf(t.parent.expression,t.parent.awaitModifier);return bp(t,r||U)}if(198===t.parent.kind){var r=Ip(t.parent.right);return bp(t,r||U)}if(268===t.parent.kind){var n=e(t.parent.parent);return vp(n||U,t.parent)}Ig.Debug.assert(181===t.parent.kind);var a=e(t.parent),i=Jf(a||U,t.parent,!1,!1)||U;return hp(t.parent,a,t.parent.elements.indexOf(t),i||U)}((t=e).parent.parent))&&Oi(r,t.escapedText):void 0;var t,r},signatureToString:function(e,t,r,n){return Dn(e,Ig.getParseTreeNode(t),r,n)},typeToString:function(e,t,r){return Sn(e,Ig.getParseTreeNode(t),r)},symbolToString:function(e,t,r,n){return kn(e,Ig.getParseTreeNode(t),r,n)},typePredicateToString:function(e,t,r){return Tn(e,Ig.getParseTreeNode(t),r)},writeSignature:function(e,t,r,n,a){return Dn(e,Ig.getParseTreeNode(t),r,n,a)},writeType:function(e,t,r,n){return Sn(e,Ig.getParseTreeNode(t),r,n)},writeSymbol:function(e,t,r,n,a){return kn(e,Ig.getParseTreeNode(t),r,n,a)},writeTypePredicate:function(e,t,r,n){return Tn(e,Ig.getParseTreeNode(t),r,n)},getSymbolDisplayBuilder:function(){return{buildTypeDisplay:function(e,t,r,n){Sn(e,r,n,u(t))},buildSymbolDisplay:function(e,t,r,n,a){kn(e,r,n,4|a,u(t))},buildSignatureDisplay:function(e,t,r,n,a){Dn(e,r,n,a,u(t))},buildIndexSignatureDisplay:function(e,t,r,n,a){var i=p.indexInfoToIndexSignatureDeclaration(e,r,n,3112960|Cn(a),t),o=Ig.createPrinter({removeComments:!0});o.writeNode(4,i,Ig.getSourceFileOfNode(Ig.getParseTreeNode(n)),u(t))},buildParameterDisplay:function(e,t,r,n){var a=p.symbolToParameterDeclaration(e,r,3112960|Cn(n),t),i=Ig.createPrinter({removeComments:!0});i.writeNode(4,a,Ig.getSourceFileOfNode(Ig.getParseTreeNode(r)),u(t))},buildTypeParameterDisplay:function(e,t,r,n){var a=p.typeParameterToDeclaration(e,r,3121152|Cn(n),t),i=Ig.createPrinter({removeComments:!0});i.writeNode(4,a,Ig.getSourceFileOfNode(Ig.getParseTreeNode(r)),u(t))},buildTypePredicateDisplay:function(e,t,r,n){Tn(e,r,n,u(t))},buildTypeParameterDisplayFromSymbol:function(e,t,r,n){var a=p.symbolToTypeParameterDeclarations(e,r,3112960|Cn(n),t),i=Ig.createPrinter({removeComments:!0});i.writeList(26896,a,Ig.getSourceFileOfNode(Ig.getParseTreeNode(r)),u(t))},buildDisplayForParametersAndDelimiters:function(e,t,r,n,a){var i=Ig.createPrinter({removeComments:!0}),o=3121152|Cn(a),s=e?[p.symbolToParameterDeclaration(e,n,o)]:[],c=Ig.createNodeArray(s.concat(Ig.map(t,function(e){return p.symbolToParameterDeclaration(e,n,o)})));i.writeList(1296,c,Ig.getSourceFileOfNode(Ig.getParseTreeNode(n)),u(r))},buildDisplayForTypeParametersAndDelimiters:function(e,t,r,n){var a=Ig.createPrinter({removeComments:!0}),i=Ig.createNodeArray(Ig.map(e,function(e){return p.typeParameterToDeclaration(e,r,Cn(n))}));a.writeList(26896,i,Ig.getSourceFileOfNode(Ig.getParseTreeNode(r)),u(t))},buildReturnTypeDisplay:function(e,t,r,n){t.writePunctuation(":"),t.writeSpace(" ");var a=to(e);if(a)return Tn(a,r,n,u(t));var i=p.typeToTypeNode(ro(e),r,3112960|Cn(n),t),o=Ig.createPrinter({removeComments:!0});o.writeNode(4,i,Ig.getSourceFileOfNode(Ig.getParseTreeNode(r)),u(t))}};function u(n){return{write:Ig.noop,writeTextOfNode:Ig.noop,writeLine:Ig.noop,increaseIndent:function(){return n.increaseIndent()},decreaseIndent:function(){return n.decreaseIndent()},getText:function(){return""},rawWrite:Ig.noop,writeLiteral:function(e){return n.writeStringLiteral(e)},getTextPos:function(){return 0},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},clear:function(){return n.clear()},writeKeyword:function(e){return n.writeKeyword(e)},writeOperator:function(e){return n.writeOperator(e)},writePunctuation:function(e){return n.writePunctuation(e)},writeSpace:function(e){return n.writeSpace(e)},writeStringLiteral:function(e){return n.writeStringLiteral(e)},writeParameter:function(e){return n.writeParameter(e)},writeProperty:function(e){return n.writeProperty(e)},writeSymbol:function(e,t){return n.writeSymbol(e,t)},trackSymbol:function(e,t,r){return n.trackSymbol&&n.trackSymbol(e,t,r)},reportInaccessibleThisError:function(){return n.reportInaccessibleThisError&&n.reportInaccessibleThisError()},reportPrivateInBaseOfClassExpression:function(e){return n.reportPrivateInBaseOfClassExpression&&n.reportPrivateInBaseOfClassExpression(e)},reportInaccessibleUniqueSymbolError:function(){return n.reportInaccessibleUniqueSymbolError&&n.reportInaccessibleUniqueSymbolError()}}}},getAugmentedPropertiesOfType:Fm,getRootSymbols:function e(t){var r=function(t){if(6&Ig.getCheckFlags(t))return Ig.mapDefined(pr(t).containingType.types,function(e){return Oi(e,t.escapedName)});if(33554432&t.flags){var e=t,r=e.leftSpread,n=e.rightSpread,a=e.syntheticOrigin;return r?[r,n]:a?[a]:Ig.singleElementArray(function(e){for(var t,r=e;r=pr(r).target;)t=r;return t}(t))}}(t);return r?Ig.flatMap(r,e):[t]},getContextualType:function(e){return(e=Ig.getParseTreeNode(e,Ig.isExpression))?ol(e):void 0},getContextualTypeForArgumentAtIndex:function(e,t){return(e=Ig.getParseTreeNode(e,Ig.isCallLikeExpression))&&Y_(e,t)},getContextualTypeForJsxAttribute:function(e){return(e=Ig.getParseTreeNode(e,Ig.isJsxAttributeLike))&&al(e)},isContextSensitive:dc,getFullyQualifiedName:Br,getResolvedSignature:function(e,t,r){e=Ig.getParseTreeNode(e,Ig.isCallLikeExpression),B=r;var n=e?Ld(e,t):void 0;return B=void 0,n},getConstantValue:function(e){return(e=Ig.getParseTreeNode(e,Xm))?Qm(e):void 0},isValidPropertyAccess:function(e,t){return!!(e=Ig.getParseTreeNode(e,Ig.isPropertyAccessOrQualifiedName))&&(r=e,n=Ig.escapeLeadingUnderscores(t),a=183===r.kind?r.expression:r.left,ad(r,a,n,vu(Op(a))));var r,n,a},isValidPropertyAccessForCompletions:function(e,t,r){return!!(e=Ig.getParseTreeNode(e,Ig.isPropertyAccessExpression))&&(a=t,i=r,ad(n=e,n.expression,i.escapedName,a)&&(!(8192&i.flags)||(o=a,s=Li(lu(aa(i)),0),Ig.Debug.assert(0!==s.length),s.some(function(e){var t=$i(e);return!t||bc(o,function(e,t,r){if(!e.typeParameters)return t;var n=Du(e.typeParameters,e,0);return wu(n.inferences,r,t),uc(t,oo(e,Ju(n)))}(e,t,o))}))));var n,a,i,o,s},getSignatureFromDeclaration:function(e){return(e=Ig.getParseTreeNode(e,Ig.isFunctionLike))?Qi(e):void 0},isImplementationOfOverload:function(e){var t=Ig.getParseTreeNode(e,Ig.isFunctionLike);return t?qm(t):void 0},getImmediateAliasedSymbol:function(e){Ig.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=pr(e);if(!t.immediateTarget){var r=Tr(e);Ig.Debug.assert(!!r),t.immediateTarget=Fr(r,!0)}return t.immediateTarget},getAliasedSymbol:Or,getEmitResolver:function(e,t){return bm(e,t),s},getExportsOfModule:Hr,getExportsAndPropertiesOfModule:function(e){var t=Hr(e),r=qr(e);return r!==e&&Ig.addRange(t,vi(oa(r))),t},getSymbolWalker:Ig.createGetSymbolWalker(no,to,ro,ba,fi,oa,ju,Bi,go,cm),getAmbientModules:function(){return me||(me=[],tt.forEach(function(e,t){Mg.test(t)&&me.push(e)})),me},getAllAttributesTypeFromJsxOpeningLikeElement:function(e){return(e=Ig.getParseTreeNode(e,Ig.isJsxOpeningLikeElement))?Sl((t=e).tagName)?Ll(t):Rl(t,!0):void 0;var t},getJsxIntrinsicTagNamesAt:function(e){var t=Nl(Og.IntrinsicElements,e);return t?vi(t):Ig.emptyArray},isOptionalParameter:function(e){return!!(e=Ig.getParseTreeNode(e,Ig.isParameter))&&Vi(e)},tryGetMemberInModuleExports:function(e,t){return Gr(Ig.escapeLeadingUnderscores(e),t)},tryGetMemberInModuleExportsAndProperties:function(e,t){return function(e,t){var r=Gr(e,t);if(r)return r;var n=qr(t);if(n!==t){var a=oa(n);return 16382&a.flags?void 0:Oi(a,e)}}(Ig.escapeLeadingUnderscores(e),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return qi(e,!1)},getApparentType:Pi,getUnionType:ds,createAnonymousType:dn,createSignature:Xa,createSymbol:ir,createIndexInfo:fo,getAnyType:function(){return J},getStringType:function(){return G},getNumberType:function(){return X},createPromiseType:$d,createArrayType:rs,getBooleanType:function(){return Z},getVoidType:function(){return ee},getUndefinedType:function(){return q},getNullType:function(){return W},getESSymbolType:function(){return $},getNeverType:function(){return te},isSymbolAccessible:vn,isArrayLikeType:Qc,getAllPossiblePropertiesOfTypes:function(e){var t=ds(e);if(!(131072&t.flags))return Fm(t);for(var r=Ig.createSymbolTable(),n=0,a=e;n<a.length;n++)for(var i=a[n],o=0,s=Fm(i);o<s.length;o++){var c=s[o].escapedName;if(!r.has(c)){var u=Fi(t,c);u&&r.set(c,u)}}return Ig.arrayFrom(r.values())},getSuggestionForNonexistentProperty:function(e,t){return $l(e,t)},getSuggestionForNonexistentSymbol:function(e,t,r){return ed(e,Ig.escapeLeadingUnderscores(t),r)},getBaseConstraintOfType:Si,getDefaultFromTypeParameter:function(e){return e&&32768&e.flags?Ai(e):void 0},resolveName:function(e,t,r,n){return vr(t,Ig.escapeLeadingUnderscores(e),r,void 0,void 0,!1,n)},getJsxNamespace:function(e){return Ig.unescapeLeadingUnderscores(nr(e))},getAccessibleSymbolChain:mn,getTypePredicateOfSignature:to,resolveExternalModuleSymbol:qr,tryGetThisTypeAt:function(e){return(e=Ig.getParseTreeNode(e))&&K_(e)},getTypeArgumentConstraint:function(e){return(e=Ig.getParseTreeNode(e,Ig.isTypeNode))&&function(e){var t=Ig.tryCast(e.parent,Ig.isTypeReferenceType);if(t){var r=Hp(t),n=bi(r[t.typeArguments.indexOf(e)]);return n&&uc(n,Ys(r,Vp(t,r)))}}(e)},getSuggestionDiagnostics:function(e){return Et.get(e.fileName)||Ig.emptyArray}},t=[],c=Ig.createMap(),g=Ig.createMap(),y=Ig.createMap(),v=Ig.createMap(),h=[],I=Ig.createMap(),M=ir(4,"unknown"),z=ir(0,"__resolving__"),J=sn(1,"any"),j=sn(1,"any"),K=sn(1,"any"),U=sn(1,"unknown"),q=sn(4096,"undefined"),V=P?q:sn(16781312,"undefined"),W=sn(8192,"null"),H=P?W:sn(16785408,"null"),G=sn(2,"string"),X=sn(4,"number"),Q=sn(128,"true"),Y=sn(128,"false"),Z=((e=ds([Q,Y])).flags|=8,e.intrinsicName="boolean",e),$=sn(512,"symbol"),ee=sn(2048,"void"),te=sn(16384,"never"),re=sn(16384,"never"),ne=sn(16384,"never"),ae=sn(134217728,"object"),ie=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0),oe=ir(2048,"__type");oe.members=Ig.createSymbolTable();var se=dn(oe,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0),ce=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0);ce.instantiations=Ig.createMap();var ue=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0);ue.flags|=67108864;var _e=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0),le=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0),de=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0),pe=on(32768),fe=on(32768);fe.constraint=pe;var me,ge,ye,ve,he,be,xe,ke,De,Se,Ce,Te,Ee,Ne,Ae,Pe,Fe,we,Ie,Oe,Me,Le,Re,Be,ze,Je,je,Ke,Ue,qe,Ve,We,He=on(32768),Ge=Wi("<<unresolved>>",0,J),Xe=Xa(void 0,void 0,void 0,Ig.emptyArray,J,void 0,0,!1,!1),Qe=Xa(void 0,void 0,void 0,Ig.emptyArray,U,void 0,0,!1,!1),Ye=Xa(void 0,void 0,void 0,Ig.emptyArray,J,void 0,0,!1,!1),Ze=Xa(void 0,void 0,void 0,Ig.emptyArray,re,void 0,0,!1,!1),$e=fo(G,!0),et=fo(J,!1),tt=Ig.createSymbolTable(),rt=Ig.createMap(),nt=0,at=0,it=0,ot=!1,st=qs(""),ct=qs(0),ut=[],_t=[],lt=[],dt=0,pt=10,ft=[],mt=[],gt=[],yt=[],vt=[],ht=[],bt=[],xt=[],kt=[],Dt=[],St=[],Ct=[],Tt=Ig.createDiagnosticCollection(),Et=Ig.createMultiMap();function Nt(e){Et.add(e.file.fileName,__assign({},e,{category:Ig.DiagnosticCategory.Suggestion}))}(We=Ve||(Ve={}))[We.None=0]="None",We[We.TypeofEQString=1]="TypeofEQString",We[We.TypeofEQNumber=2]="TypeofEQNumber",We[We.TypeofEQBoolean=4]="TypeofEQBoolean",We[We.TypeofEQSymbol=8]="TypeofEQSymbol",We[We.TypeofEQObject=16]="TypeofEQObject",We[We.TypeofEQFunction=32]="TypeofEQFunction",We[We.TypeofEQHostObject=64]="TypeofEQHostObject",We[We.TypeofNEString=128]="TypeofNEString",We[We.TypeofNENumber=256]="TypeofNENumber",We[We.TypeofNEBoolean=512]="TypeofNEBoolean",We[We.TypeofNESymbol=1024]="TypeofNESymbol",We[We.TypeofNEObject=2048]="TypeofNEObject",We[We.TypeofNEFunction=4096]="TypeofNEFunction",We[We.TypeofNEHostObject=8192]="TypeofNEHostObject",We[We.EQUndefined=16384]="EQUndefined",We[We.EQNull=32768]="EQNull",We[We.EQUndefinedOrNull=65536]="EQUndefinedOrNull",We[We.NEUndefined=131072]="NEUndefined",We[We.NENull=262144]="NENull",We[We.NEUndefinedOrNull=524288]="NEUndefinedOrNull",We[We.Truthy=1048576]="Truthy",We[We.Falsy=2097152]="Falsy",We[We.All=4194303]="All",We[We.BaseStringStrictFacts=933633]="BaseStringStrictFacts",We[We.BaseStringFacts=3145473]="BaseStringFacts",We[We.StringStrictFacts=4079361]="StringStrictFacts",We[We.StringFacts=4194049]="StringFacts",We[We.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",We[We.EmptyStringFacts=3145473]="EmptyStringFacts",We[We.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",We[We.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",We[We.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",We[We.BaseNumberFacts=3145346]="BaseNumberFacts",We[We.NumberStrictFacts=4079234]="NumberStrictFacts",We[We.NumberFacts=4193922]="NumberFacts",We[We.ZeroStrictFacts=3030658]="ZeroStrictFacts",We[We.ZeroFacts=3145346]="ZeroFacts",We[We.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",We[We.NonZeroFacts=4193922]="NonZeroFacts",We[We.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",We[We.BaseBooleanFacts=3145092]="BaseBooleanFacts",We[We.BooleanStrictFacts=4078980]="BooleanStrictFacts",We[We.BooleanFacts=4193668]="BooleanFacts",We[We.FalseStrictFacts=3030404]="FalseStrictFacts",We[We.FalseFacts=3145092]="FalseFacts",We[We.TrueStrictFacts=1981828]="TrueStrictFacts",We[We.TrueFacts=4193668]="TrueFacts",We[We.SymbolStrictFacts=1981320]="SymbolStrictFacts",We[We.SymbolFacts=4193160]="SymbolFacts",We[We.ObjectStrictFacts=1972176]="ObjectStrictFacts",We[We.ObjectFacts=4184016]="ObjectFacts",We[We.FunctionStrictFacts=1970144]="FunctionStrictFacts",We[We.FunctionFacts=4181984]="FunctionFacts",We[We.UndefinedFacts=2457472]="UndefinedFacts",We[We.NullFacts=2340752]="NullFacts";var At,Pt,Ft,wt,It,Ot,Mt,Lt,Rt,Bt,zt,Jt,jt,Kt,Ut,qt,Vt=Ig.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Wt=Ig.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Ht=Ig.createMapFromTemplate({string:G,number:X,boolean:Z,symbol:$,undefined:q}),Gt=ds(Ig.arrayFrom(Vt.keys(),qs)),Xt=Ig.createMap(),Qt=Ig.createMap(),Yt=Ig.createMap(),Zt=Ig.createMap(),$t=Ig.createMap(),er=Ig.createMap();(wt=Ft||(Ft={}))[wt.Type=0]="Type",wt[wt.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",wt[wt.DeclaredType=2]="DeclaredType",wt[wt.ResolvedReturnType=3]="ResolvedReturnType",wt[wt.ResolvedBaseConstraint=4]="ResolvedBaseConstraint",(Ot=It||(It={}))[Ot.Normal=0]="Normal",Ot[Ot.SkipContextSensitive=1]="SkipContextSensitive",Ot[Ot.Inferential=2]="Inferential",Ot[Ot.Contextual=3]="Contextual",(Lt=Mt||(Mt={}))[Lt.None=0]="None",Lt[Lt.Bivariant=1]="Bivariant",Lt[Lt.Strict=2]="Strict",(Bt=Rt||(Rt={}))[Bt.IncludeReadonly=1]="IncludeReadonly",Bt[Bt.ExcludeReadonly=2]="ExcludeReadonly",Bt[Bt.IncludeOptional=4]="IncludeOptional",Bt[Bt.ExcludeOptional=8]="ExcludeOptional",(Jt=zt||(zt={}))[Jt.None=0]="None",Jt[Jt.Source=1]="Source",Jt[Jt.Target=2]="Target",Jt[Jt.Both=3]="Both",(Kt=jt||(jt={}))[Kt.Any=1]="Any",Kt[Kt.Undefined=2]="Undefined",Kt[Kt.Null=4]="Null",Kt[Kt.Never=8]="Never",Kt[Kt.NonWideningType=16]="NonWideningType",Kt[Kt.String=32]="String",Kt[Kt.Number=64]="Number",Kt[Kt.ESSymbol=128]="ESSymbol",Kt[Kt.LiteralOrUniqueESSymbol=256]="LiteralOrUniqueESSymbol",Kt[Kt.ObjectType=512]="ObjectType",Kt[Kt.EmptyObject=1024]="EmptyObject",Kt[Kt.Union=2048]="Union",Kt[Kt.Wildcard=4096]="Wildcard",(qt=Ut||(Ut={})).resolvedExports="resolvedExports",qt.resolvedMembers="resolvedMembers";var tr=Ig.createSymbolTable();tr.set(N.escapedName,N);var rr=Ig.and(mm,function(e){return!Ig.isAccessor(e)});return function(){for(var e=0,t=b.getSourceFiles();e<t.length;e++){var r=t[e];Ig.bindSourceFile(r,O)}for(var n,a=0,i=b.getSourceFiles();a<i.length;a++){var r=i[a];if(Ig.isExternalOrCommonJsModule(r)||lr(tt,r.locals),r.patternAmbientModules&&r.patternAmbientModules.length&&(ge=Ig.concatenate(ge,r.patternAmbientModules)),r.moduleAugmentations.length&&(n||(n=[])).push(r.moduleAugmentations),r.symbol&&r.symbol.globalExports){var o=r.symbol.globalExports;o.forEach(function(e,t){tt.has(t)||tt.set(t,e)})}}if(n)for(var s=0,c=n;s<c.length;s++)for(var u=c[s],_=0,l=u;_<l.length;_++){var d=l[_];Ig.isGlobalScopeAugmentation(d.parent)&&dr(d)}var p,f,m;if(p=tt,f=tr,m=Ig.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,f.forEach(function(e,t){var r,n,a=p.get(t);a?Ig.forEach(a.declarations,(r=Ig.unescapeLeadingUnderscores(t),n=m,function(e){return Tt.add(Ig.createDiagnosticForNode(e,n,r))})):p.set(t,e)}),pr(N).type=V,pr(F).type=zo("IArguments",0,!0),pr(M).type=U,he=zo("Array",1,!0),ye=zo("Object",0,!0),ve=zo("Function",0,!0),xe=zo("String",0,!0),ke=zo("Number",0,!0),De=zo("Boolean",0,!0),Se=zo("RegExp",0,!0),Te=rs(J),(Ee=rs(j))===ie&&(Ee=dn(void 0,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0)),be=Qo("ReadonlyArray",1),Ne=be?Yo(be,[J]):Te,Ce=Qo("ThisType",1),n)for(var g=0,y=n;g<y.length;g++)for(var u=y[g],v=0,h=u;v<h.length;v++){var d=h[v];Ig.isGlobalScopeAugmentation(d.parent)||dr(d)}}(),f;function nr(e){if(e){var t=Ig.getSourceFileOfNode(e);if(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var n=Ig.isArray(r)?r[0]:r;if(t.localJsxFactory=Ig.parseIsolatedEntityName(n.arguments.factory,w),t.localJsxFactory)return t.localJsxNamespace=cm(t.localJsxFactory).escapedText}}}return At||(At="React",O.jsxFactory?(Pt=Ig.parseIsolatedEntityName(O.jsxFactory,w))&&(At=cm(Pt).escapedText):O.reactNamespace&&(At=Ig.escapeLeadingUnderscores(O.reactNamespace))),At}function ar(e,t,r,n,a,i){var o=e?Ig.createDiagnosticForNode(e,t,r,n,a,i):Ig.createCompilerDiagnostic(t,r,n,a,i);Tt.add(o)}function ir(e,t,r){i++;var n=new a(33554432|e,t);return n.checkFlags=r||0,n}function or(e){return 0!=(33554432&e.flags)}function sr(e){var t=0;return 2&e&&(t|=67216319),1&e&&(t|=67216318),4&e&&(t|=0),8&e&&(t|=68008959),16&e&&(t|=67215791),32&e&&(t|=68008383),64&e&&(t|=67901832),256&e&&(t|=68008191),128&e&&(t|=68008831),512&e&&(t|=67215503),8192&e&&(t|=67208127),32768&e&&(t|=67150783),65536&e&&(t|=67183551),262144&e&&(t|=67639784),524288&e&&(t|=67901928),2097152&e&&(t|=2097152),t}function cr(e,t){t.mergeId||(t.mergeId=Lg,Lg++),ft[t.mergeId]=e}function ur(e){var t=ir(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=Ig.cloneMap(e.members)),e.exports&&(t.exports=Ig.cloneMap(e.exports)),cr(t,e),t}function _r(e,t){if(!(e.flags&sr(t.flags))||67108864&(t.flags|e.flags)){if(512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&(!e.valueDeclaration||237===e.valueDeclaration.kind&&237!==t.valueDeclaration.kind)&&(e.valueDeclaration=t.valueDeclaration),Ig.addRange(e.declarations,t.declarations),t.members&&(e.members||(e.members=Ig.createSymbolTable()),lr(e.members,t.members)),t.exports&&(e.exports||(e.exports=Ig.createSymbolTable()),lr(e.exports,t.exports)),67108864&(t.flags|e.flags)){var r=Ig.getJSInitializerSymbol(t),n=Ig.getJSInitializerSymbol(e);r===t&&n===e||_r(n,r)}cr(e,t)}else if(1024&e.flags)ar(Ig.getNameOfDeclaration(t.declarations[0]),Ig.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,kn(e));else{var a=384&e.flags||384&t.flags?Ig.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:2&e.flags||2&t.flags?Ig.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Ig.Diagnostics.Duplicate_identifier_0;Ig.forEach(t.declarations,function(e){ar((Ig.getJavascriptInitializer(e,!1)?Ig.getOuterNameOfJsInitializer(e):Ig.getNameOfDeclaration(e))||e,a,kn(t))}),Ig.forEach(e.declarations,function(e){ar((Ig.getJavascriptInitializer(e,!1)?Ig.getOuterNameOfJsInitializer(e):Ig.getNameOfDeclaration(e))||e,a,kn(t))})}}function lr(n,e){e.forEach(function(e,t){var r=n.get(t);r?(33554432&r.flags||(r=ur(r),n.set(t,r)),_r(r,e)):n.set(t,e)})}function dr(e){var t=e.parent;if(t.symbol.declarations[0]===t)if(Ig.isGlobalScopeAugmentation(t))lr(tt,t.symbol.exports);else{var r=jr(e,e,2097152&e.parent.parent.flags?void 0:Ig.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!r)return;1920&(r=qr(r)).flags?_r(r=33554432&r.flags?r:ur(r),t.symbol):ar(e,Ig.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Ig.Debug.assert(1<t.symbol.declarations.length)}function pr(e){if(33554432&e.flags)return e;var t=zg(e);return mt[t]||(mt[t]={})}function fr(e){var t=Bg(e);return gt[t]||(gt[t]={flags:0})}function mr(e){return 272===e.kind&&!Ig.isExternalOrCommonJsModule(e)}function gr(e,t,r){if(r){var n=e.get(t);if(n){if(Ig.Debug.assert(0==(1&Ig.getCheckFlags(n)),"Should never get an instantiated symbol here."),n.flags&r)return n;if(2097152&n.flags){var a=Or(n);if(a===M||a.flags&r)return n}}}}function yr(e,t){var r=Ig.getSourceFileOfNode(e),n=Ig.getSourceFileOfNode(t);if(r!==n){if(S&&(r.externalModuleIndicator||n.externalModuleIndicator)||!O.outFile&&!O.out||Ku(t)||2097152&e.flags)return!0;if(s(t,e))return!0;var a=b.getSourceFiles();return a.indexOf(r)<=a.indexOf(n)}if(e.pos<=t.pos){if(180===e.kind){var i=Ig.getAncestor(t,180);return i?Ig.findAncestor(i,Ig.isBindingElement)!==Ig.findAncestor(e,Ig.isBindingElement)||e.pos<i.pos:yr(Ig.getAncestor(e,230),t)}return 230!==e.kind||!function(e,t){var r=Ig.getEnclosingBlockScopeContainer(e);switch(e.parent.parent.kind){case 212:case 218:case 220:if(Sr(t,e,r))return!0}return Ig.isForInOrOfStatement(e.parent.parent)&&Sr(t,e.parent.parent.expression,r)}(e,t)}if(250===t.parent.kind||247===t.parent.kind&&t.parent.isExportEquals)return!0;if(247===t.kind&&t.isExportEquals)return!0;var o=Ig.getEnclosingBlockScopeContainer(e);return Ku(t)||s(t,e,o);function s(t,r,n){return!!Ig.findAncestor(t,function(e){if(e===n)return"quit";if(Ig.isFunctionLike(e))return!0;if(e.parent&&151===e.parent.kind&&e.parent.initializer===e)if(Ig.hasModifier(e.parent,32)){if(153===r.kind)return!0}else if(151!==r.kind||Ig.hasModifier(r,32)||Ig.getContainingClass(t)!==Ig.getContainingClass(r))return!0})}}function vr(e,t,r,n,a,i,o,s){return void 0===o&&(o=!1),hr(e,t,r,n,a,i,o,gr,s)}function hr(e,t,r,n,a,i,o,s,c){var u,_,l,d,p,f=e,m=e,g=!1;e:for(;e;){if(e.locals&&!mr(e)&&(u=s(e.locals,t,r))){var y=!0;if(Ig.isFunctionLike(e)&&_&&_!==e.body?(r&u.flags&67901928&&282!==_.kind&&(y=!!(262144&u.flags)&&(_===e.type||148===_.kind||147===_.kind)),67216319&r&&1&u.flags&&(y=148===_.kind||_===e.type&&148===u.valueDeclaration.kind)):170===e.kind&&(y=_===e.trueType),y)break e;u=void 0}switch(e.kind){case 272:if(!Ig.isExternalOrCommonJsModule(e))break;g=!0;case 237:var v=en(e).exports;if(272===e.kind||Ig.isAmbientModule(e)){if(u=v.get("default")){var h=Ig.getLocalSymbolForExportDefault(u);if(h&&u.flags&r&&h.escapedName===t)break e;u=void 0}var b=v.get(t);if(b&&2097152===b.flags&&Ig.getDeclarationOfKind(b,250))break}if(u=s(v,t,2623475&r))break e;break;case 236:if(u=s(en(e).exports,t,8&r))break e;break;case 151:case 150:if(Ig.isClassLike(e.parent)&&!Ig.hasModifier(e,32)){var x=an(e.parent);x&&x.locals&&s(x.locals,t,67216319&r)&&(d=e)}break;case 233:case 203:case 234:if(u=s(Va(en(e)),t,67901928&r)){if(!kr(u,e)){u=void 0;break}if(_&&Ig.hasModifier(_,32))return void ar(m,Ig.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(203===e.kind&&32&r){var k=e.name;if(k&&t===k.escapedText){u=e.symbol;break e}}break;case 205:if(_===e.expression&&85===e.parent.token){var D=e.parent.parent;if(Ig.isClassLike(D)&&(u=s(en(D).members,t,67901928&r)))return void(n&&ar(m,Ig.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 146:if(p=e.parent.parent,(Ig.isClassLike(p)||234===p.kind)&&(u=s(en(p).members,t,67901928&r)))return void ar(m,Ig.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 153:case 152:case 154:case 155:case 156:case 232:case 191:if(3&r&&"arguments"===t){u=F;break e}break;case 190:if(3&r&&"arguments"===t){u=F;break e}if(16&r){var S=e.name;if(S&&t===S.escapedText){u=e.symbol;break e}}break;case 149:e.parent&&148===e.parent.kind&&(e=e.parent),e.parent&&Ig.isClassElement(e.parent)&&(e=e.parent)}br(e)&&(l=e),e=(_=e).parent}if(i&&u&&n&&A&&(!l||u!==l.symbol)&&(u.isReferenced|=r),!u){if(_&&(Ig.Debug.assert(272===_.kind),_.commonJsModuleIndicator&&"exports"===t))return _.symbol;o||(u=s(tt,t,r))}if(u){if(n){if(d){var C=d.name;return void ar(m,Ig.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ig.declarationNameToString(C),xr(a))}if(m&&(2&r||(32&r||384&r)&&67216319==(67216319&r))){var T=rn(u);(2&T.flags||32&T.flags||384&T.flags)&&function(e,t){Ig.Debug.assert(!!(2&e.flags||32&e.flags||384&e.flags));var r=Ig.forEach(e.declarations,function(e){return Ig.isBlockOrCatchScoped(e)||Ig.isClassLike(e)||236===e.kind?e:void 0});Ig.Debug.assert(void 0!==r,"Declaration to checkResolvedBlockScopedVariable is undefined"),2097152&r.flags||yr(r,t)||(2&e.flags?ar(t,Ig.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,Ig.declarationNameToString(Ig.getNameOfDeclaration(r))):32&e.flags?ar(t,Ig.Diagnostics.Class_0_used_before_its_declaration,Ig.declarationNameToString(Ig.getNameOfDeclaration(r))):256&e.flags&&ar(t,Ig.Diagnostics.Enum_0_used_before_its_declaration,Ig.declarationNameToString(Ig.getNameOfDeclaration(r))))}(T,m)}if(u&&g&&67216319==(67216319&r)){var E=u.declarations;E&&1===E.length&&240===E[0].kind&&ar(m,Ig.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ig.unescapeLeadingUnderscores(t))}}return u}if(n&&(!m||!(function(e,t,r){if(!Ig.isIdentifier(e)||e.escapedText!==t||Dm(e)||Ku(e))return!1;for(var n=Ig.getThisContainer(e,!0),a=n;a;){if(Ig.isClassLike(a.parent)){var i=en(a.parent);if(!i)break;var o=oa(i);if(Oi(o,t))return ar(e,Ig.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,xr(r),kn(i)),!0;if(a===n&&!Ig.hasModifier(a,32)){var s=Aa(i).thisType;if(Oi(s,t))return ar(e,Ig.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,xr(r)),!0}}a=a.parent}return!1}(m,t,a)||Dr(m)||function(e,t,r){var n=1920|(Ig.isInJavaScriptFile(e)?67216319:0);if(r===n){var a=Ir(vr(e,t,67901928&~n,void 0,void 0,!1)),i=e.parent;if(a){if(Ig.isQualifiedName(i)){Ig.Debug.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");var o=i.right.escapedText,s=Oi(Aa(a),o);if(s)return ar(i,Ig.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,Ig.unescapeLeadingUnderscores(t),Ig.unescapeLeadingUnderscores(o)),!0}return ar(e,Ig.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ig.unescapeLeadingUnderscores(t)),!0}}return!1}(m,t,r)||function(e,t,r){if(67216319&r){if("any"===t||"string"===t||"number"===t||"boolean"===t||"never"===t)return ar(e,Ig.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ig.unescapeLeadingUnderscores(t)),!0;var n=Ir(vr(e,t,792640,void 0,void 0,!1));if(n&&!(1024&n.flags))return ar(e,Ig.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ig.unescapeLeadingUnderscores(t)),!0}return!1}(m,t,r)||function(e,t,r){if(107031&r){var n=Ir(vr(e,t,1024,void 0,void 0,!1));if(n)return ar(e,Ig.Diagnostics.Cannot_use_namespace_0_as_a_value,Ig.unescapeLeadingUnderscores(t)),!0}else if(792640&r){var n=Ir(vr(e,t,1536,void 0,void 0,!1));if(n)return ar(e,Ig.Diagnostics.Cannot_use_namespace_0_as_a_type,Ig.unescapeLeadingUnderscores(t)),!0}return!1}(m,t,r)))){var N=void 0;c&&dt<pt&&(N=ed(f,t,r))&&ar(m,c,xr(a),N),N||ar(m,n,xr(a)),dt++}}function br(e){switch(e.kind){case 232:case 233:case 234:case 236:case 235:case 237:return!0;default:return!1}}function xr(e){return Ig.isString(e)?Ig.unescapeLeadingUnderscores(e):Ig.declarationNameToString(e)}function kr(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var a=n[r];if(147===a.kind&&a.parent===t)return!0}return!1}function Dr(e){var t=function e(t){switch(t.kind){case 71:case 183:return t.parent?e(t.parent):void 0;case 205:if(Ig.isEntityNameExpression(t.expression))return t.expression;default:return}}(e),r=!(!t||!zr(t,64,!0));return r&&ar(e,Ig.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,Ig.getTextOfNode(t)),r}function Sr(e,t,r){return t&&!!Ig.findAncestor(e,function(e){return e===r||Ig.isFunctionLike(e)?"quit":e===t})}function Cr(e){switch(e.kind){case 241:return e;case 243:return e.parent;case 244:return e.parent.parent;case 246:return e.parent.parent.parent;default:return}}function Tr(e){return Ig.find(e.declarations,Ig.isAliasSymbolDeclaration)}function Er(e,t,r){var n=e.exports.get("export=");return n?Oi(oa(n),t):Ir(e.exports.get(t),r)}function Nr(e,t,r){return!!m&&(!e||e.isDeclarationFile?!Er(t,"default",r)&&!Er(t,Ig.escapeLeadingUnderscores("__esModule"),r):Ig.isSourceFileJavaScript(e)?!e.externalModuleIndicator&&!Er(t,Ig.escapeLeadingUnderscores("__esModule"),r):Wr(t))}function Ar(e,t,r){var n,a,i,o=Jr(e,e.moduleSpecifier),s=Vr(o,e.moduleSpecifier,r);if(s){var c=t.propertyName||t.name;if(c.escapedText){if(Ig.isShorthandAmbientModuleSymbol(o))return o;var u=void 0;u=Ir(u=o&&o.exports&&o.exports.get("export=")?Oi(oa(s),c.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Ir(Oi(Hs(r),t))}}(s,c.escapedText),r);var _=function(e,t,r){if(1536&e.flags)return Ir(Xr(e).get(t),r)}(s,c.escapedText,r);!_&&m&&"default"===c.escapedText&&(_=qr(o,r)||Ir(o,r));var l=_&&u?function(e,t){if(e===M&&t===M)return M;if(67903464&e.flags)return e;var r=ir(e.flags|t.flags,e.escapedName);return r.declarations=Ig.concatenate(e.declarations,t.declarations),r.parent=e.parent||t.parent,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),t.members&&(r.members=t.members),e.exports&&(r.exports=e.exports),r}(u,_):_||u;if(!l){var d=Br(o),p=Ig.declarationNameToString(c),f=(n=c,(i=(a=s).exports&&td(Ig.idText(n),Hr(a),2623475))&&Ig.symbolName(i));void 0!==f?ar(c,Ig.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,d,p,f):ar(c,Ig.Diagnostics.Module_0_has_no_exported_member_1,d,p)}return l}}}function Pr(e,t,r){return e.parent.parent.moduleSpecifier?Ar(e.parent.parent,e,r):zr(e.propertyName||e.name,t,!1,r)}function Fr(e,t){switch(e.kind){case 241:return _=t,252===(u=e).moduleReference.kind?qr(Jr(u,Ig.getExternalModuleImportEqualsDeclarationExpression(u))):Rr(u.moduleReference,_);case 243:return function(e,t){var r=Jr(e,e.parent.moduleSpecifier);if(r){var n=void 0;n=Ig.isShorthandAmbientModuleSymbol(r)?r:Er(r,"default",t);var a=Nr(Ig.find(r.declarations,Ig.isSourceFile),r,t);if(n||a){if(!n&&a)return qr(r,t)||Ir(r,t)}else ar(e.name,Ig.Diagnostics.Module_0_has_no_default_export,kn(r));return n}}(e,t);case 244:return s=t,c=(o=e).parent.parent.moduleSpecifier,Vr(Jr(o,c),c,s);case 246:return i=t,Ar((a=e).parent.parent.parent,a,i);case 250:return Pr(e,68009983,t);case 247:return n=t,zr(e.expression,68009983,!1,n);case 240:return r=t,qr(e.parent.symbol,r)}var r,n,a,i,o,s,c,u,_}function wr(e,t){return void 0===t&&(t=68009983),e&&2097152==(e.flags&(2097152|t))}function Ir(e,t){return!t&&wr(e)?Or(e):e}function Or(e){Ig.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var t=pr(e);if(t.target)t.target===z&&(t.target=M);else{t.target=z;var r=Tr(e);Ig.Debug.assert(!!r);var n=Fr(r);t.target===z?t.target=n||M:ar(r,Ig.Diagnostics.Circular_definition_of_import_alias_0,kn(e))}return t.target}function Mr(e){var t=en(e),r=Or(t);r&&(r===M||67216319&r.flags&&!Um(r))&&Lr(t)}function Lr(e){var t=pr(e);if(!t.referenced){t.referenced=!0;var r=Tr(e);Ig.Debug.assert(!!r),247===r.kind?Tp(r.expression):250===r.kind?Tp(r.propertyName||r.name):Ig.isInternalModuleImportEqualsDeclaration(r)&&Tp(r.moduleReference)}}function Rr(e,t){return 71===e.kind&&Ig.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),71===e.kind||145===e.parent.kind?zr(e,1920,!1,t):(Ig.Debug.assert(241===e.parent.kind),zr(e,68009983,!1,t))}function Br(e){return e.parent?Br(e.parent)+"."+kn(e):kn(e)}function zr(e,t,r,n,a){if(!Ig.nodeIsMissing(e)){var i,o=1920|(Ig.isInJavaScriptFile(e)?67216319&t:0);if(71===e.kind){var s=t===o?Ig.Diagnostics.Cannot_find_namespace_0:Ig.Diagnostics.Cannot_find_name_0;if(!(i=vr(a||e,e.escapedText,t,r?void 0:s,e,!0)))return}else if(145===e.kind||183===e.kind){var c=145===e.kind?e.left:e.expression,u=145===e.kind?e.right:e.name,_=zr(c,o,r,!1,a);if(!_||Ig.nodeIsMissing(u))return;if(_===M)return _;if(Ig.isInJavaScriptFile(e)){var l=Ig.getDeclaredJavascriptInitializer(_.valueDeclaration)||Ig.getAssignedJavascriptInitializer(_.valueDeclaration);if(l&&(_=en(l)),_.valueDeclaration&&Ig.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&Wd(_.valueDeclaration.initializer)){var d=_.valueDeclaration.initializer.arguments[0],p=Jr(d,d);if(p){var f=qr(p);f&&(_=f)}}}if(!(i=gr(Xr(_),u.escapedText,t)))return void(r||ar(u,Ig.Diagnostics.Namespace_0_has_no_exported_member_1,Br(_),Ig.declarationNameToString(u)))}else Ig.Debug.assertNever(e,"Unknown entity name kind.");return Ig.Debug.assert(0==(1&Ig.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&t||n?i:Or(i)}}function Jr(e,t){return jr(e,t,Ig.Diagnostics.Cannot_find_module_0)}function jr(e,t,r,n){return void 0===n&&(n=!1),Ig.isStringLiteralLike(t)?Kr(e,t.text,r,t,n):void 0}function Kr(e,t,r,n,a){if(void 0===a&&(a=!1),void 0!==t){Ig.startsWith(t,"@types/")&&ar(n,Ig.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Ig.removePrefix(t,"@types/"),t);var i=qi(t,!0);if(i)return i;var o,s,c=Ig.getResolvedModule(Ig.getSourceFileOfNode(e),t),u=c&&Ig.getResolutionDiagnostic(O,c),_=c&&!u&&b.getSourceFile(c.resolvedFileName);if(_)return _.symbol?(c.isExternalLibraryImport&&!Ig.extensionIsTypeScript(c.extension)&&Nt(Ur(n,c,t)),$r(_.symbol)):void(r&&ar(n,Ig.Diagnostics.File_0_is_not_a_module,_.fileName));if(ge){var l=Ig.findBestPatternMatch(ge,function(e){return e.pattern},t);if(l)return $r(l.symbol)}if(c&&!Ig.extensionIsTypeScript(c.extension)&&void 0===u||u===Ig.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)a?ar(n,Ig.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,t,c.resolvedFileName):(o=T&&!!r,s=Ur(n,c,t),o?Tt.add(s):Nt(s));else if(r)if(u)ar(n,u,t,c.resolvedFileName);else{var d=Ig.tryExtractTypeScriptExtension(t);d?ar(n,Ig.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,d,Ig.removeExtension(t,d)):ar(n,r,t)}}}function Ur(e,t,r){var n=t.packageId,a=t.resolvedFileName,i=n&&Ig.chainDiagnosticMessages(void 0,Ig.Diagnostics.Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,Ig.getMangledNameForScopedPackage(n.name));return Ig.createDiagnosticForNodeFromMessageChain(e,Ig.chainDiagnosticMessages(i,Ig.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,a))}function qr(e,t){return e&&$r(Ir(e.exports.get("export="),t))||e}function Vr(e,t,r){var n=qr(e,r);if(!r&&n){if(!(1539&n.flags))return ar(t,Ig.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,kn(e)),n;if(O.esModuleInterop){var a=t.parent;if(Ig.isImportDeclaration(a)&&Ig.getNamespaceDeclarationNode(a)||Ig.isImportCall(a)){var i=oa(n),o=Mi(i,0);if(o&&o.length||(o=Mi(i,1)),o&&o.length){var s=Vd(i,n,e),c=ir(n.flags,n.escapedName);c.declarations=n.declarations?n.declarations.slice():[],c.parent=n.parent,c.target=n,c.originatingImport=a,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(c.constEnumOnlyModule=!0),n.members&&(c.members=Ig.cloneMap(n.members)),n.exports&&(c.exports=Ig.cloneMap(n.exports));var u=fi(s);return c.type=dn(c,u.members,Ig.emptyArray,Ig.emptyArray,u.stringIndexInfo,u.numberIndexInfo),c}}}}return n}function Wr(e){return void 0!==e.exports.get("export=")}function Hr(e){return Ki(Qr(e))}function Gr(e,t){var r=Qr(t);if(r)return r.get(e)}function Xr(e){return 32&e.flags?qa(e,"resolvedExports"):1536&e.flags?Qr(e):e.exports||x}function Qr(e){var t=pr(e);return t.resolvedExports||(t.resolvedExports=Zr(e))}function Yr(a,e,i,o){e&&e.forEach(function(e,t){if("default"!==t){var r=a.get(t);if(r){if(i&&o&&r&&Ir(r)!==Ir(e)){var n=i.get(t);n.exportsWithDuplicate?n.exportsWithDuplicate.push(o):n.exportsWithDuplicate=[o]}}else a.set(t,e),i&&o&&i.set(t,{specifierText:Ig.getTextOfNode(o.moduleSpecifier)})}})}function Zr(e){var l=[];return function e(t){if(t&&1952&t.flags&&Ig.pushIfUnique(l,t)){var o=Ig.cloneMap(t.exports),r=t.exports.get("__export");if(r){for(var n=Ig.createSymbolTable(),s=Ig.createMap(),a=0,i=r.declarations;a<i.length;a++){var c=i[a],u=Jr(c,c.moduleSpecifier),_=e(u);Yr(n,_,s,c)}s.forEach(function(e,t){var r=e.exportsWithDuplicate;if("export="!==t&&r&&r.length&&!o.has(t))for(var n=0,a=r;n<a.length;n++){var i=a[n];Tt.add(Ig.createDiagnosticForNode(i,Ig.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(t).specifierText,Ig.unescapeLeadingUnderscores(t)))}}),Yr(o,n)}return o}}(e=qr(e))||x}function $r(e){var t;return e&&e.mergeId&&(t=ft[e.mergeId])?t:e}function en(e){return $r(e.symbol&&Wa(e.symbol))}function tn(e){return $r(e.parent&&Wa(e.parent))}function rn(e){return e&&0!=(1048576&e.flags)?$r(e.exportSymbol):e}function nn(e){return!!(67216319&e.flags||2097152&e.flags&&67216319&Or(e).flags)}function an(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t];if(154===n.kind&&Ig.nodeIsPresent(n.body))return n}}function on(e){var t=new r(f,e);return n++,t.id=n,t}function sn(e,t){var r=on(e);return r.intrinsicName=t,r}function cn(e,t){var r=on(65536);return r.objectFlags=e,r.symbol=t,r}function un(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function _n(e){var r;return e.forEach(function(e,t){un(t)||(r||(r=[]),nn(e)&&r.push(e))}),r||Ig.emptyArray}function ln(e,t,r,n,a,i){return e.members=t,e.properties=_n(t),e.callSignatures=r,e.constructSignatures=n,a&&(e.stringIndexInfo=a),i&&(e.numberIndexInfo=i),e}function dn(e,t,r,n,a,i){return ln(cn(16,e),t,r,n,a,i)}function pn(e,t){for(var r,n=e;n;n=n.parent){if(n.locals&&!mr(n)&&(r=t(n.locals)))return r;switch(n.kind){case 272:if(!Ig.isExternalOrCommonJsModule(n))break;case 237:if(r=t(en(n).exports))return r}}return t(tt)}function fn(e){return 67216319===e?67216319:1920}function mn(i,o,s,c,r){if(void 0===r&&(r=Ig.createMap()),i&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 151:case 153:case 155:case 156:continue;default:return!1}}return!0}return!1}(i)){var u,e=""+zg(i);return r.has(e)?u=r.get(e):r.set(e,u=[]),pn(o,_)}function _(e,t){if(Ig.pushIfUnique(u,e)){var r=(a=t,d((n=e).get(i.escapedName),void 0,a)?[i]:Ig.forEachEntry(n,function(e){if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(Ig.isUMDExportSymbol(e)&&o&&Ig.isExternalModule(Ig.getSourceFileOfNode(o)))&&(!c||Ig.some(e.declarations,Ig.isExternalModuleImportEqualsDeclaration))){var t=Or(e);if(d(e,t,a))return[e];var r=Xr(t),n=r&&_(r,!0);if(n&&l(e,fn(s)))return[e].concat(n)}}));return u.pop(),r}var n,a}function l(e,t){return!gn(e,o,t)||!!mn(e.parent,o,fn(t),c,r)}function d(e,t,r){return i===(t||e)&&!Ig.some(e.declarations,hn)&&(r||l(e,s))}}function gn(r,e,n){var a=!1;return pn(e,function(e){var t=e.get(r.escapedName);return!!t&&(t===r||!!((t=2097152&t.flags&&!Ig.getDeclarationOfKind(t,250)?Or(t):t).flags&n)&&(a=!0))}),a}function yn(e,t){return 0===vn(e,t,67216319,!1).accessibility}function vn(e,t,r,n){if(e&&t&&!(262144&e.flags)){for(var a=e,i=r;e;){var o=mn(e,t,i,!1);if(o){var s=bn(o[0],n);return s||{accessibility:1,errorSymbolName:kn(a,t,r),errorModuleName:e!==a?kn(e,t,1920):void 0}}i=fn(r),e=tn(e)}var c=Ig.forEach(a.declarations,u);return c&&c!==u(t)?{accessibility:2,errorSymbolName:kn(a,t,r),errorModuleName:kn(c)}:{accessibility:1,errorSymbolName:kn(a,t,r)}}return{accessibility:0};function u(e){var t=Ig.findAncestor(e,hn);return t&&en(t)}}function hn(e){return Ig.isAmbientModule(e)||272===e.kind&&Ig.isExternalOrCommonJsModule(e)}function bn(e,r){var n;if(!Ig.forEach(e.declarations,function(e){return!function(e){if(!Fn(e)){var t=Cr(e);return!(!t||Ig.hasModifier(t,1)||!Fn(t.parent)||(r&&(fr(e).isVisible=!0,n=Ig.appendIfUnique(n,t)),0))}return!0}(e)}))return{accessibility:0,aliasesToMakeVisible:n}}function xn(e,t){var r;r=164===e.parent.kind||Ig.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)||146===e.parent.kind?68264895:145===e.kind||183===e.kind||241===e.parent.kind?1920:67901928;var n=cm(e),a=vr(t,n.escapedText,r,void 0,void 0,!1);return a&&bn(a,!0)||{accessibility:1,errorSymbolName:Ig.getTextOfNode(n),errorNode:n}}function kn(a,i,o,e,t){void 0===e&&(e=4);var s=3112960;2&e&&(s|=128),1&e&&(s|=512),8&e&&(s|=16384);var c=4&e?p.symbolToExpression:p.symbolToEntityName;return t?r(t).getText():Ig.usingSingleLineStringWriter(r);function r(e){var t=c(a,o,i,s),r=Ig.createPrinter({removeComments:!0}),n=i&&Ig.getSourceFileOfNode(i);return r.writeNode(4,t,n,e),e}}function Dn(i,o,s,c,e){return e?t(e).getText():Ig.usingSingleLineStringWriter(t);function t(e){var t;t=262144&s?1===c?163:162:1===c?158:157;var r=p.signatureToSignatureDeclaration(i,t,o,3113472|Cn(s)),n=Ig.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),a=o&&Ig.getSourceFileOfNode(o);return n.writeNode(4,r,a,e),e}}function Sn(e,t,r,n){void 0===r&&(r=1048576),void 0===n&&(n=Ig.createTextWriter(""));var a=p.typeToTypeNode(e,t,3112960|Cn(r),n);Ig.Debug.assert(void 0!==a,"should always get typenode");var i=Ig.createPrinter({removeComments:!0}),o=t&&Ig.getSourceFileOfNode(t);i.writeNode(4,a,o,n);var s=n.getText(),c=O.noErrorTruncation||1&r?void 0:100;return c&&s&&s.length>=c?s.substr(0,c-"...".length)+"...":s}function Cn(e){return 9469291&e}function Tn(a,i,o,e){return e?t(e).getText():Ig.usingSingleLineStringWriter(t);function t(e){var t=Ig.createTypePredicateNode(1===a.kind?Ig.createIdentifier(a.parameterName):Ig.createThisTypeNode(),p.typeToTypeNode(a.type,i,3113472|Cn(o))),r=Ig.createPrinter({removeComments:!0}),n=i&&Ig.getSourceFileOfNode(i);return r.writeNode(4,t,n,e),e}}function En(e){return 8===e?"private":16===e?"protected":"public"}function Nn(e){return e&&e.parent&&238===e.parent.kind&&Ig.isExternalModuleAugmentation(e.parent.parent)}function An(e){return 272===e.kind||Ig.isAmbientModule(e)}function Pn(e,t){if(t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&Ig.findAncestor(e.declarations[0],An)!==Ig.findAncestor(t.enclosingDeclaration,An)))return"default";if(e.declarations&&e.declarations.length){var r=e.declarations[0],n=Ig.getNameOfDeclaration(r);if(n)return Ig.declarationNameToString(n);if(r.parent&&230===r.parent.kind)return Ig.declarationNameToString(r.parent.name);switch(!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),r.kind){case 203:return"(Anonymous class)";case 190:case 191:return"(Anonymous function)"}}if(e.nameType&&32&e.nameType.flags){var a=e.nameType.value;if(!Ig.isIdentifierText(a,O.target))return'"'+Ig.escapeString(a,34)+'"'}return Ig.symbolName(e)}function Fn(t){if(t){var e=fr(t);return void 0===e.isVisible&&(e.isVisible=!!function(){switch(t.kind){case 180:return Fn(t.parent.parent);case 230:if(Ig.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 237:case 233:case 234:case 235:case 232:case 236:case 241:if(Ig.isExternalModuleAugmentation(t))return!0;var e=Rn(t);return 1&Ig.getCombinedModifierFlags(t)||241!==t.kind&&272!==e.kind&&2097152&e.flags?Fn(e):mr(e);case 151:case 150:case 155:case 156:case 153:case 152:if(Ig.hasModifier(t,24))return!1;case 154:case 158:case 157:case 159:case 148:case 238:case 162:case 163:case 165:case 161:case 166:case 167:case 168:case 169:case 172:return Fn(t.parent);case 243:case 244:case 246:return!1;case 147:case 272:case 240:return!0;case 247:default:return!1}}()),e.isVisible}return!1}function wn(e,o){var t,s;return e.parent&&247===e.parent.kind?t=vr(e,e.escapedText,70107135,void 0,e,!1):250===e.parent.kind&&(t=Pr(e.parent,70107135)),t&&function i(e){Ig.forEach(e,function(e){var t=Cr(e)||e;if(o?fr(e).isVisible=!0:(s=s||[],Ig.pushIfUnique(s,t)),Ig.isInternalModuleImportEqualsDeclaration(e)){var r=e.moduleReference,n=cm(r),a=vr(e,n.escapedText,68009983,void 0,void 0,!1);a&&i(a.declarations)}})}(t.declarations),s}function In(e,t){var r=On(e,t);if(0<=r){for(var n=ut.length,a=r;a<n;a++)_t[a]=!1;return!1}return ut.push(e),_t.push(!0),lt.push(t),!0}function On(e,t){for(var r=ut.length-1;0<=r;r--){if(Mn(ut[r],lt[r]))return-1;if(ut[r]===e&&lt[r]===t)return r}return-1}function Mn(e,t){if(0===t)return pr(e).type;if(2===t)return pr(e).declaredType;if(1===t)return e.resolvedBaseConstructorType;if(3===t)return e.resolvedReturnType;if(4===t){var r=e.resolvedBaseConstraint;return r&&r!==le}Ig.Debug.fail("Unhandled TypeSystemPropertyName "+t)}function Ln(){return ut.pop(),lt.pop(),_t.pop()}function Rn(e){return(e=Ig.findAncestor(Ig.getRootDeclaration(e),function(e){switch(e.kind){case 230:case 231:case 246:case 245:case 244:case 243:return!1;default:return!0}}))&&e.parent}function Bn(e,t){var r=Oi(e,t);return r?oa(r):void 0}function zn(e){return e&&0!=(1&e.flags)}function Jn(e){var t=en(e);return t&&pr(t).type||Hn(e,!1)}function jn(e){return 146===e.kind&&!Ig.isStringOrNumericLiteral(e.expression)}function Kn(e,t,r){if(16384&(e=p_(e,function(e){return!(12288&e.flags)})).flags)return ie;if(131072&e.flags)return f_(e,function(e){return Kn(e,t,r)});for(var n=Ig.createSymbolTable(),a=Ig.createUnderscoreEscapedMap(),i=0,o=t;i<o.length;i++){var s=o[i];a.set(Ig.getTextOfPropertyName(s),!0)}for(var c=0,u=vi(e);c<u.length;c++){var _=u[c],l=a.has(_.escapedName),d=24&Ig.getDeclarationModifierFlagsFromSymbol(_),p=65536&_.flags&&!(32768&_.flags);l||d||Js(_)||p||n.set(_.escapedName,_)}var f=zi(e,0),m=zi(e,1);return dn(r,n,Ig.emptyArray,Ig.emptyArray,f,m)}function Un(e){var t,r=e.parent,n=Jn(r.parent);if(n===U)return U;if(!n)return e.initializer?Np(e):n;if(zn(n))return n;if(178===r.kind)if(e.dotDotDotToken){if(!kl(n))return ar(e,Ig.Diagnostics.Rest_types_may_only_be_created_from_object_types),U;for(var a=[],i=0,o=r.elements;i<o.length;i++){var s=o[i];s.dotDotDotToken||a.push(s.propertyName||s.name)}t=Kn(n,a,e.symbol)}else{var c=e.propertyName||e.name;if(jn(c))return J;var u=Ig.getTextOfPropertyName(c);P&&2097152&e.flags&&Ig.isParameterDeclaration(e)&&(n=lu(n));var _=Bn(n,u),l=_&&O_(_,e.name);if(!(t=l&&N_(e,l)||vl(u)&&Ji(n,1)||Ji(n,0)))return ar(c,Ig.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Sn(n),Ig.declarationNameToString(c)),U}else{var d=Jf(n,r,!1,!1);if(e.dotDotDotToken)t=rs(d);else{var p=""+r.elements.indexOf(e);if(!(t=Yc(n)?Bn(n,p):d))return au(n)?ar(e,Ig.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Sn(n),ko(n),r.elements.length):ar(e,Ig.Diagnostics.Type_0_has_no_property_1,Sn(n),p),U}}return!P||!e.initializer||4096&ou(Tp(e.initializer))||(t=Yu(t,131072)),e.initializer?ds([t,Tp(e.initializer)],2):t}function qn(e){var t=Ig.getJSDocType(e);if(t)return Hs(t)}function Vn(e){var t=Ig.skipParentheses(e);return 181===t.kind&&0===t.elements.length}function Wn(e,t){return void 0===t&&(t=!0),P&&t?_u(e):e}function Hn(e,t){if(Ig.isVariableDeclaration(e)&&219===e.parent.parent.kind){var r=vs(Hl(e.parent.parent.expression));return 557056&r.flags?r:G}if(Ig.isVariableDeclaration(e)&&220===e.parent.parent.kind){var n=e.parent.parent;return zf(n.expression,n.awaitModifier)||J}if(Ig.isBindingPattern(e.parent))return Un(e);var a=!1;if(t){if(Ig.isInJavaScriptFile(e)&&Ig.isParameter(e)){var i=Ig.getJSDocParameterTags(e);a=!!(i&&0<i.length&&Ig.find(i,function(e){return e.isBracketed}))}Ig.isBindingElement(e)||Ig.isVariableDeclaration(e)||!e.questionToken||(a=!0)}var o,s,c=Zn(e);if(c)return Wn(c,a);if((T||Ig.isInJavaScriptFile(e))&&230===e.kind&&!Ig.isBindingPattern(e.name)&&!(1&Ig.getCombinedModifierFlags(e))&&!(2097152&e.flags)){if(!(2&Ig.getCombinedNodeFlags(e)||e.initializer&&(o=e.initializer,95!==(s=Ig.skipParentheses(o)).kind&&(71!==s.kind||ju(s)!==N))))return j;if(e.initializer&&Vn(e.initializer))return Ee}if(148===e.kind){var u=e.parent;if(156===u.kind&&!ja(u)){var _=Ig.getDeclarationOfKind(en(e.parent),155);if(_){var l=Qi(_),d=kg(u);return d&&e===d?(Ig.Debug.assert(!d.type),oa(l.thisParameter)):ro(l)}}var p=void 0;if(p="this"===e.symbol.escapedName?W_(u):H_(e))return Wn(p,a)}return e.initializer?Wn(p=Np(e),a):Ig.isJsxAttribute(e)?Q:Ig.isBindingPattern(e.name)?Xn(e.name,!1,!0):void 0}function Gn(e,t,r){return e.initializer?Np(e):Ig.isBindingPattern(e.name)?Xn(e.name,t,r):(r&&T&&!Yn(e)&&bu(e,J),J)}function Xn(e,t,r){return 178===e.kind?function(e,a,i){var o,s=Ig.createSymbolTable(),c=!1;Ig.forEach(e.elements,function(e){var t=e.propertyName||e.name;if(jn(t))c=!0;else if(e.dotDotDotToken)o=fo(J,!1);else{var r=Ig.getTextOfPropertyName(t),n=ir(4|(e.initializer?16777216:0),r);n.type=Gn(e,a,i),n.bindingElement=e,s.set(n.escapedName,n)}});var t=dn(void 0,s,Ig.emptyArray,Ig.emptyArray,o,void 0);return a&&(t.pattern=e),c&&(t.objectFlags|=512),t}(e,t,r):function(e,t,r){var n=e.elements,a=Ig.lastOrUndefined(n);if(0===n.length||!Ig.isOmittedExpression(a)&&a.dotDotDotToken)return 2<=w?es(J):Te;var i=as(Ig.map(n,function(e){return Ig.isOmittedExpression(e)?J:Gn(e,t,r)}));return t&&((i=xo(i)).pattern=e),i}(e,t,r)}function Qn(e,t){var r=Hn(e,!0);return r?(t&&xu(e,r),1024&r.flags&&(Ig.isBindingElement(e)||!e.type)&&r.symbol!==en(e)&&(r=$),vu(r)):(r=Ig.isParameter(e)&&e.dotDotDotToken?Te:J,t&&T&&(Yn(e)||bu(e,r)),r)}function Yn(e){var t=Ig.getRootDeclaration(e);return Yp(148===t.kind?t.parent:t)}function Zn(e){var t=Ig.getEffectiveTypeAnnotationNode(e);if(t)return Hs(t)}function $n(e){var t,r=pr(e);if(!r.type){if(4194304&e.flags)return r.type=(t=Aa(tn(e))).typeParameters?bo(t,Ig.map(t.typeParameters,function(e){return J})):t;var n=e.valueDeclaration;if(Ig.isCatchClauseVariableDeclarationOrBindingElement(n))return r.type=J;if(247===n.kind)return r.type=Op(n.expression);if(Ig.isInJavaScriptFile(n)&&Ig.isJSDocPropertyLikeTag(n)&&n.typeExpression)return r.type=Hs(n.typeExpression.type);if(!In(e,0))return U;var a=void 0;if(198===n.kind||183===n.kind&&198===n.parent.kind)a=function(e){var t=Ig.getAssignedJavascriptInitializer(e.valueDeclaration);if(t)return tu(Tp(t));for(var r,n=[],a=!1,i=!1,o=0,s=e.declarations;o<s.length;o++){var c=s[o],u=198===c.kind?c:183===c.kind?Ig.getAncestor(c,198):void 0;if(!u)return U;Ig.isPropertyAccessExpression(u.left)&&99===u.left.expression.kind&&(154===Ig.getThisContainer(u,!1).kind?a=!0:i=!0);var _=qn(u.parent);if(_){var l=vu(_);r?r===U||l===U||gc(r,l)||67108864&e.flags||If(r,c,l):r=l}else r||n.push(tu(Tp(u.right)))}return vu(Wn(r||ds(n,2),i&&!a))}(e);else if(Ig.isJSDocPropertyTag(n)||Ig.isPropertyAccessExpression(n)||Ig.isIdentifier(n)||Ig.isMethodDeclaration(n)&&!Ig.isObjectLiteralMethod(n)||Ig.isMethodSignature(n)){if(9136&e.flags)return aa(e);a=Zn(n)||J}else Ig.isPropertyAssignment(n)?a=Zn(n)||Pp(n):Ig.isJsxAttribute(n)?a=Zn(n)||Cl(n):Ig.isShorthandPropertyAssignment(n)?a=Zn(n)||Ap(n.name,0):Ig.isObjectLiteralMethod(n)?a=Zn(n)||Fp(n,0):Ig.isParameter(n)||Ig.isPropertyDeclaration(n)||Ig.isPropertySignature(n)||Ig.isVariableDeclaration(n)||Ig.isBindingElement(n)?a=Qn(n,!0):Ig.Debug.fail("Unhandled declaration kind! "+Ig.Debug.showSyntaxKind(n));Ln()||(a=ia(e)),r.type=a}return r.type}function ea(e){if(e){if(155===e.kind){var t=Ig.getEffectiveReturnTypeNode(e);return t&&Hs(t)}var r=Ig.getEffectiveSetAccessorTypeAnnotationNode(e);return r&&Hs(r)}}function ta(e){return $i(Qi(e))}function ra(e){var t=pr(e);if(!t.type){var r=Ig.getDeclarationOfKind(e,155),n=Ig.getDeclarationOfKind(e,156);if(r&&Ig.isInJavaScriptFile(r)){var a=qn(r);if(a)return t.type=a}if(!In(e,0))return U;var i=void 0,o=ea(r);if(o)i=o;else{var s=ea(n);s?i=s:r&&r.body?i=tp(r):(T&&(n?ar(n,Ig.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,kn(e)):(Ig.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),ar(r,Ig.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,kn(e)))),i=J)}Ln()||(i=J,T&&ar(Ig.getDeclarationOfKind(e,155),Ig.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,kn(e))),t.type=i}return t.type}function na(e){var t=ha(ka(e));return 1081344&t.flags?t:void 0}function aa(e){var t=pr(e);if(!t.type)if(1536&e.flags&&Ig.isShorthandAmbientModuleSymbol(e))t.type=J;else{var r=cn(16,e);if(32&e.flags){var n=na(e);t.type=n?gs([r,n]):r}else t.type=P&&16777216&e.flags?_u(r):r}return t.type}function ia(e){return Ig.getEffectiveTypeAnnotationNode(e.valueDeclaration)?(ar(e.valueDeclaration,Ig.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,kn(e)),U):(T&&ar(e.valueDeclaration,Ig.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,kn(e)),J)}function oa(e){return 1&Ig.getCheckFlags(e)?function(e){var t=pr(e);if(!t.type)if(100===o)ar(e.valueDeclaration,Ig.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),t.type=U;else{if(!In(e,0))return U;o++;var r=uc(oa(t.target),t.mapper);o--,Ln()||(r=ia(e)),t.type=r}return t.type}(e):2048&Ig.getCheckFlags(e)?Au((t=e).propertyType,t.mappedType):7&e.flags?$n(e):9136&e.flags?aa(e):8&e.flags?((n=pr(r=e)).type||(n.type=Ea(r)),n.type):98304&e.flags?ra(e):2097152&e.flags?function(e){var t=pr(e);if(!t.type){var r=Or(e);t.type=67216319&r.flags?oa(r):U}return t.type}(e):U;var t,r,n}function sa(e,t){return void 0!==e&&void 0!==t&&0!=(4&Ig.getObjectFlags(e))&&e.target===t}function ca(e){return 4&Ig.getObjectFlags(e)?e.target:e}function ua(e,n){return function e(t){if(7&Ig.getObjectFlags(t)){var r=ca(t);return r===n||Ig.forEach(ba(r),e)}if(262144&t.flags)return Ig.forEach(t.types,e)}(e)}function _a(e,t){for(var r=0,n=t;r<n.length;r++){var a=Na(en(n[r]));e=Ig.appendIfUnique(e,a)}return e}function la(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 233:case 203:case 234:case 157:case 158:case 152:case 162:case 163:case 280:case 232:case 153:case 190:case 191:case 235:case 290:case 176:case 170:var r=la(e,t);if(176===e.kind)return Ig.append(r,Na(en(e.typeParameter)));if(170===e.kind)return Ig.concatenate(r,Is(e));var n=_a(r,Ig.getEffectiveTypeParameterDeclarations(e)||Ig.emptyArray),a=t&&(233===e.kind||203===e.kind||234===e.kind)&&ka(en(e)).thisType;return a?Ig.append(n,a):n}}}function da(e){return la(32&e.flags?e.valueDeclaration:Ig.getDeclarationOfKind(e,234))}function pa(e){for(var t,r=0,n=e.declarations;r<n.length;r++){var a=n[r];if(234===a.kind||233===a.kind||203===a.kind||235===a.kind){var i=a;i.typeParameters&&(t=_a(t,i.typeParameters))}}return t}function fa(e){var t=Li(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&r.hasRestParameter&&Xd(r.parameters[0])===Te}return!1}function ma(e){if(xa(e)&&0<Li(e,1).length)return!0;if(1081344&e.flags){var t=Si(e);return t&&xa(t)&&fa(t)}return!1}function ga(e){var t=e.symbol.valueDeclaration;if(Ig.isInJavaScriptFile(t)){var r=Ig.getJSDocAugmentsTag(t);if(r)return r.class}return Ig.getClassExtendsHeritageClauseElement(t)}function ya(e,t,r){var n=Ig.length(t),a=Ig.isInJavaScriptFile(r);return Ig.filter(Li(e,1),function(e){return(a||n>=Gi(e.typeParameters))&&n<=Ig.length(e.typeParameters)})}function va(e,t,r){var n=ya(e,t,r),a=Ig.map(t,Hs);return Ig.sameMap(n,function(e){return Ig.some(e.typeParameters)?ao(e,a,Ig.isInJavaScriptFile(r)):e})}function ha(e){if(!e.resolvedBaseConstructorType){var t=e.symbol.valueDeclaration,r=Ig.getClassExtendsHeritageClauseElement(t),n=ga(e);if(!n)return e.resolvedBaseConstructorType=q;if(!In(e,1))return U;var a=Op(n.expression);if(r&&n!==r&&(Ig.Debug.assert(!r.typeArguments),Op(r.expression)),327680&a.flags&&fi(a),!Ln())return ar(e.symbol.valueDeclaration,Ig.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,kn(e.symbol)),e.resolvedBaseConstructorType=U;if(!(1&a.flags||a===H||ma(a)))return ar(n.expression,Ig.Diagnostics.Type_0_is_not_a_constructor_function_type,Sn(a)),e.resolvedBaseConstructorType=U;e.resolvedBaseConstructorType=a}return e.resolvedBaseConstructorType}function ba(e){return e.resolvedBaseTypes||(8&e.objectFlags?e.resolvedBaseTypes=[rs(ds(e.typeParameters))]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=Ig.resolvingEmptyArray;var t=Pi(ha(e));if(!(327681&t.flags))return e.resolvedBaseTypes=Ig.emptyArray;var r,n=ga(e),a=Oo(n),i=t&&t.symbol?Aa(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}(i))r=Do(n,t.symbol,a);else if(1&t.flags)r=t;else{var o=va(t,n.typeArguments,n);if(!o.length)return ar(n.expression,Ig.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=Ig.emptyArray;r=ro(o[0])}r===U?e.resolvedBaseTypes=Ig.emptyArray:xa(r)?e===r||ua(r,e)?(ar(e.symbol.valueDeclaration,Ig.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Sn(e,void 0,2)),e.resolvedBaseTypes=Ig.emptyArray):(e.resolvedBaseTypes===Ig.resolvingEmptyArray&&(e.members=void 0),e.resolvedBaseTypes=[r]):(ar(n.expression,Ig.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Sn(r)),e.resolvedBaseTypes=Ig.emptyArray)}(e),64&e.symbol.flags&&function(e){e.resolvedBaseTypes=e.resolvedBaseTypes||Ig.emptyArray;for(var t=0,r=e.symbol.declarations;t<r.length;t++){var n=r[t];if(234===n.kind&&Ig.getInterfaceBaseTypeNodes(n))for(var a=0,i=Ig.getInterfaceBaseTypeNodes(n);a<i.length;a++){var o=i[a],s=Hs(o);s!==U&&(xa(s)?e===s||ua(s,e)?ar(n,Ig.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Sn(e,void 0,2)):e.resolvedBaseTypes===Ig.emptyArray?e.resolvedBaseTypes=[s]:e.resolvedBaseTypes.push(s):ar(o,Ig.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}(e)):Ig.Debug.fail("type must be class or interface")),e.resolvedBaseTypes}function xa(e){return 134283265&e.flags&&!pi(e)||262144&e.flags&&!Ig.forEach(e.types,function(e){return!xa(e)})}function ka(e){var t=pr(e);if(!t.declaredType){var r=32&e.flags?1:2,n=t.declaredType=cn(r,e),a=da(e),i=pa(e);(a||i||1===r||!function(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if(234===n.kind){if(64&n.flags)return!1;var a=Ig.getInterfaceBaseTypeNodes(n);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(Ig.isEntityNameExpression(s.expression)){var c=zr(s.expression,67901928,!0);if(!c||!(64&c.flags)||ka(c).thisType)return!1}}}}return!0}(e))&&(n.objectFlags|=4,n.typeParameters=Ig.concatenate(a,i),n.outerTypeParameters=a,n.localTypeParameters=i,n.instantiations=Ig.createMap(),n.instantiations.set(vo(n.typeParameters),n),(n.target=n).typeArguments=n.typeParameters,n.thisType=on(32768),n.thisType.isThisType=!0,n.thisType.symbol=e,n.thisType.constraint=n)}return t.declaredType}function Da(e){var t=e.initializer;if(!t)return!(2097152&e.flags);switch(t.kind){case 9:case 8:return!0;case 196:return 38===t.operator&&8===t.operand.kind;case 71:return Ig.nodeIsMissing(t)||!!en(e.parent).exports.get(t.escapedText);default:return!1}}function Sa(e){var t=pr(e);if(void 0!==t.enumKind)return t.enumKind;for(var r=!1,n=0,a=e.declarations;n<a.length;n++){var i=a[n];if(236===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o];if(c.initializer&&9===c.initializer.kind)return t.enumKind=1;Da(c)||(r=!0)}}return t.enumKind=r?0:1}function Ca(e){return 256&e.flags&&!(131072&e.flags)?Aa(tn(e.symbol)):e}function Ta(e){var t=pr(e);if(t.declaredType)return t.declaredType;if(1===Sa(e)){d++;for(var r=[],n=0,a=e.declarations;n<a.length;n++){var i=a[n];if(236===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o],u=qs(Gm(c),d,en(c));pr(en(c)).declaredType=u,r.push(u)}}if(r.length){var _=ds(r,1,e,void 0);return 131072&_.flags&&(_.flags|=256,_.symbol=e),t.declaredType=_}}var l=on(16);return l.symbol=e,t.declaredType=l}function Ea(e){var t=pr(e);if(!t.declaredType){var r=Ta(tn(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Na(e){var t=pr(e);if(!t.declaredType){var r=on(32768);r.symbol=e,t.declaredType=r}return t.declaredType}function Aa(e){return Pa(e)||U}function Pa(e){return 96&e.flags?ka(e):524288&e.flags?function(e){var t=pr(e);if(!t.declaredType){if(!In(e,2))return U;var r=Ig.find(e.declarations,function(e){return 291===e.kind||235===e.kind}),n=291===r.kind?r.typeExpression:r.type,a=n?Hs(n):U;if(Ln()){var i=pa(e);i&&(t.typeParameters=i,t.instantiations=Ig.createMap(),t.instantiations.set(vo(i),a))}else a=U,ar(r.name,Ig.Diagnostics.Type_alias_0_circularly_references_itself,kn(e));t.declaredType=a}return t.declaredType}(e):262144&e.flags?Na(e):384&e.flags?Ta(e):8&e.flags?Ea(e):2097152&e.flags?((r=pr(t=e)).declaredType||(r.declaredType=Aa(Or(t))),r.declaredType):void 0;var t,r}function Fa(e){switch(e.kind){case 119:case 137:case 134:case 122:case 138:case 135:case 105:case 140:case 95:case 131:case 177:return!0;case 166:return Fa(e.elementType);case 161:return!e.typeArguments||e.typeArguments.every(Fa)}return!1}function wa(e){return!e.constraint||Fa(e.constraint)}function Ia(e){var t=Ig.getEffectiveTypeAnnotationNode(e);return t?Fa(t):!Ig.hasInitializer(e)}function Oa(e){if(e.declarations&&1===e.declarations.length){var t=e.declarations[0];if(t)switch(t.kind){case 151:case 150:return Ia(t);case 153:case 152:case 154:return r=t,n=Ig.getEffectiveReturnTypeNode(r),(154===r.kind||n&&Fa(n))&&r.parameters.every(Ia)&&(!r.typeParameters||r.typeParameters.every(wa))}}var r,n;return!1}function Ma(e,t,r){for(var n=Ig.createSymbolTable(),a=0,i=e;a<i.length;a++){var o=i[a];n.set(o.escapedName,r&&Oa(o)?o:ac(o,t))}return n}function La(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];e.has(a.escapedName)||e.set(a.escapedName,a)}}function Ra(e){if(!e.declaredProperties){var t=e.symbol,r=Va(t);e.declaredProperties=_n(r),e.declaredCallSignatures=Zi(r.get("__call")),e.declaredConstructSignatures=Zi(r.get("__new")),e.declaredStringIndexInfo=mo(t,0),e.declaredNumberIndexInfo=mo(t,1)}return e}function Ba(e){return!!(1120&e.flags)}function za(e){return Ig.isComputedPropertyName(e)&&Ig.isEntityNameExpression(e.expression)&&Ba(hl(e))}function Ja(e){var t=Ig.getNameOfDeclaration(e);return t&&za(t)}function ja(e){return Ig.hasDynamicName(e)&&!Ja(e)}function Ka(e){return 1024&e.flags?"__@"+e.symbol.escapedName+"@"+zg(e.symbol):96&e.flags?Ig.escapeLeadingUnderscores(""+e.value):void 0}function Ua(e,t,r,n){Ig.Debug.assert(!!n.symbol,"The member is expected to have a symbol.");var a=fr(n);if(!a.resolvedSymbol){a.resolvedSymbol=n.symbol;var i=hl(n.name);if(Ba(i)){var o=Ka(i),s=n.symbol.flags,c=r.get(o);c||r.set(o,c=ir(0,o,1024));var u=t&&t.get(o);if(c.flags&sr(s)||u){var _=u?Ig.concatenate(u.declarations,c.declarations):c.declarations,l=Ig.declarationNameToString(n.name);Ig.forEach(_,function(e){return ar(Ig.getNameOfDeclaration(e)||e,Ig.Diagnostics.Duplicate_declaration_0,l)}),ar(n.name||n,Ig.Diagnostics.Duplicate_declaration_0,l),c=ir(0,o,1024)}var d=pr(c);return d.nameType||(d.nameType=i),function(e,t,r){if(Ig.Debug.assert(!!(1024&Ig.getCheckFlags(e)),"Expected a late-bound symbol."),e.flags|=r,(pr(t.symbol).lateSymbol=e).declarations?e.declarations.push(t):e.declarations=[t],67216319&r){var n=e.valueDeclaration;n&&n.kind===t.kind||(e.valueDeclaration=t)}}(c,n,s),c.parent?Ig.Debug.assert(c.parent===e,"Existing symbol parent should match new one"):c.parent=e,a.resolvedSymbol=c}}return a.resolvedSymbol}function qa(e,t){var r=pr(e);if(!r[t]){var n="resolvedExports"===t,a=n?1536&e.flags?Zr(e):e.exports:e.members;r[t]=a||x;for(var i=Ig.createSymbolTable(),o=0,s=e.declarations;o<s.length;o++){var c=s[o],u=Ig.getMembersOfDeclaration(c);if(u)for(var _=0,l=u;_<l.length;_++){var d=l[_];n===Ig.hasStaticModifier(d)&&Ja(d)&&Ua(e,a,i,d)}}r[t]=function(e,t){if(!e||0===e.size)return t;if(!t||0===t.size)return e;var r=Ig.createSymbolTable();return lr(r,e),lr(r,t),r}(a,i)||x}return r[t]}function Va(e){return 6240&e.flags?qa(e,"resolvedMembers"):e.members||x}function Wa(e){if(106500&e.flags&&"__computed"===e.escapedName){var t=pr(e);return!t.lateSymbol&&Ig.some(e.declarations,Ja)&&(Ig.some(e.declarations,Ig.hasStaticModifier)?Xr(e.parent):Va(e.parent)),t.lateSymbol||(t.lateSymbol=e)}return e}function Ha(e,t,r){if(4&Ig.getObjectFlags(e)){var n=e.target,a=e.typeArguments;if(Ig.length(n.typeParameters)===Ig.length(a)){var i=bo(n,Ig.concatenate(a,[t||n.thisType]));return r?Pi(i):i}}else if(262144&e.flags)return gs(Ig.map(e.types,function(e){return Ha(e,t,r)}));return r?Pi(e):e}function Ga(e,t,r,n){var a,i,o,s,c,u;Ig.rangeEquals(r,n,0,r.length)?(a=k,i=t.symbol?Va(t.symbol):Ig.createSymbolTable(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredStringIndexInfo,u=t.declaredNumberIndexInfo):(a=Ys(r,n),i=Ma(t.declaredProperties,a,1===r.length),o=Qs(t.declaredCallSignatures,a),s=Qs(t.declaredConstructSignatures,a),c=lc(t.declaredStringIndexInfo,a),u=lc(t.declaredNumberIndexInfo,a));var _=ba(t);if(_.length){t.symbol&&i===Va(t.symbol)&&(i=Ig.createSymbolTable(t.declaredProperties)),ln(e,i,o,s,c,u);for(var l=Ig.lastOrUndefined(n),d=0,p=_;d<p.length;d++){var f=p[d],m=l?Ha(uc(f,a),l):f;La(i,vi(m)),o=Ig.concatenate(o,Li(m,0)),s=Ig.concatenate(s,Li(m,1)),c||(c=m===J?fo(J,!1):zi(m,0)),u=u||zi(m,1)}}ln(e,i,o,s,c,u)}function Xa(e,t,r,n,a,i,o,s,c){var u=new l(f);return u.declaration=e,u.typeParameters=t,u.parameters=n,u.thisParameter=r,u.resolvedReturnType=a,u.resolvedTypePredicate=i,u.minArgumentCount=o,u.hasRestParameter=s,u.hasLiteralTypes=c,u.target=void 0,u.mapper=void 0,u}function Qa(e){return Xa(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function Ya(e,t,r,n,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if(Wc(s,t,r,n,a,yc))return s}}function Za(e,t,r){if(t.typeParameters){if(0<r)return;for(var n=1;n<e.length;n++)if(!Ya(e[n],t,!1,!1,!1))return;return[t]}var a;for(n=0;n<e.length;n++){var i=n===r?t:Ya(e[n],t,!0,!0,!0);if(!i)return;a=Ig.appendIfUnique(a,i)}return a}function $a(e,t){for(var r,n=Ig.map(e,function(e){return Li(e,t)}),a=0;a<n.length;a++)for(var i=0,o=n[a];i<o.length;i++){var s=o[i];if(!r||!Ya(r,s,!1,!0,!0)){var c=Za(n,s,a);if(c){var u=s;if(1<c.length){var _=s.thisParameter;if(Ig.forEach(c,function(e){return e.thisParameter})){var l=ds(Ig.map(c,function(e){return e.thisParameter?oa(e.thisParameter):J}),2);_=pu(s.thisParameter,l)}(u=Qa(s)).thisParameter=_,u.unionSignatures=c}(r||(r=[])).push(u)}}}return r||Ig.emptyArray}function ei(e,t){for(var r=[],n=!1,a=0,i=e;a<i.length;a++){var o=zi(i[a],t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return fo(ds(r,2),n)}function ti(e,t){return e?t?gs([e,t]):e:t}function ri(e,t){return e?t?fo(gs([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function ni(e,t){return e&&t&&fo(ds([e.type,t.type]),e.isReadonly||t.isReadonly)}function ai(n){for(var a,i,o=Ig.emptyArray,s=Ig.emptyArray,c=n.types,u=Ig.countWhere(c,fa),e=function(r){var e=n.types[r];if(0===u||u===c.length&&0===r||!fa(e)){var t=Li(e,1);t.length&&0<u&&(t=Ig.map(t,function(e){var t=Qa(e);return t.resolvedReturnType=function(e,t,r){for(var n=[],a=0;a<t.length;a++)a===r?n.push(e):fa(t[a])&&n.push(ro(Li(t[a],1)[0]));return gs(n)}(ro(e),c,r),t})),s=Ig.concatenate(s,t)}o=Ig.concatenate(o,Li(e,0)),a=ri(a,zi(e,0)),i=ri(i,zi(e,1))},t=0;t<c.length;t++)e(t);ln(n,x,o,s,a,i)}function ii(e){var t=e.symbol;if(e.target)ln(e,r=Ma(mi(e.target),e.mapper,!1),Qs(Li(e.target,0),e.mapper),o=Qs(Li(e.target,1),e.mapper),n=lc(zi(e.target,0),e.mapper),i=lc(zi(e.target,1),e.mapper));else if(2048&t.flags)ln(e,r=Va(t),Zi(r.get("__call")),o=Zi(r.get("__new")),n=mo(t,0),i=mo(t,1));else{var r=x,n=void 0;if(t.exports&&(r=Xr(t)),ln(e,r,Ig.emptyArray,Ig.emptyArray,void 0,void 0),32&t.flags){var a=ha(s=ka(t));1409024&a.flags?La(r=Ig.createSymbolTable(_n(r)),vi(a)):a===J&&(n=fo(J,!1))}var i=384&t.flags?$e:void 0;if(ln(e,r,Ig.emptyArray,Ig.emptyArray,n,i),8208&t.flags&&(e.callSignatures=Zi(t)),32&t.flags){var o,s=ka(t);(o=Zi(t.members.get("__constructor"))).length||(o=function(e){var t=Li(ha(e),1);if(0===t.length)return[Xa(void 0,e.localTypeParameters,void 0,Ig.emptyArray,e,void 0,0,!1,!1)];for(var r=ga(e),n=Ig.isInJavaScriptFile(r),a=Oo(r),i=Ig.length(a),o=[],s=0,c=t;s<c.length;s++){var u=c[s],_=Gi(u.typeParameters),l=Ig.length(u.typeParameters);if(n||_<=i&&i<=l){var d=l?io(u,Xi(a,u.typeParameters,_,n)):Qa(u);d.typeParameters=e.localTypeParameters,d.resolvedReturnType=e,o.push(d)}}return o}(s)),e.constructSignatures=o}}}function oi(e){return e.typeParameter||(e.typeParameter=Na(en(e.declaration.typeParameter)))}function si(e){return e.constraintType||(e.constraintType=uc(bi(oi(e)),e.mapper||k)||U)}function ci(e){return e.templateType||(e.templateType=e.declaration.type?uc(Wn(Hs(e.declaration.type),!!(4&_i(e))),e.mapper||k):U)}function ui(e){if(!e.modifiersType){var t=e.declaration.typeParameter.constraint;if(174===t.kind&&128===t.operator)e.modifiersType=uc(Hs(t.type),e.mapper||k);else{var r=si(Ns(e.declaration)),n=r&&32768&r.flags?bi(r):r;e.modifiersType=n&&524288&n.flags?uc(n.type,e.mapper||k):ie}}return e.modifiersType}function _i(e){var t=e.declaration;return(t.readonlyToken?38===t.readonlyToken.kind?2:1:0)|(t.questionToken?38===t.questionToken.kind?8:4:0)}function li(e){var t=_i(e);return 8&t?-1:4&t?1:0}function di(e){var t=li(e),r=ui(e);return t||(pi(r)?li(r):0)}function pi(e){return 32&Ig.getObjectFlags(e)&&xs(si(e))}function fi(e){var t,r,n,a,i,o,s,c,u;return e.members||(65536&e.flags?4&e.objectFlags?(c=Ra((s=e).target),u=Ig.concatenate(c.typeParameters,[c.thisType]),Ga(s,c,u,s.typeArguments&&s.typeArguments.length===u.length?s.typeArguments:Ig.concatenate(s.typeArguments,[s]))):3&e.objectFlags?Ga(o=e,Ra(o),Ig.emptyArray,Ig.emptyArray):2048&e.objectFlags?function(e){for(var t=zi(e.source,0),r=_i(e.mappedType),n=!(1&r),a=4&r?0:16777216,i=t&&fo(Au(t.type,e.mappedType),n&&t.isReadonly),o=Ig.createSymbolTable(),s=0,c=vi(e.source);s<c.length;s++){var u=c[s],_=2048|(n&&up(u)?8:0),l=ir(4|u.flags&a,u.escapedName,_);l.declarations=u.declarations,l.propertyType=oa(u),l.mappedType=e.mappedType,o.set(u.escapedName,l)}ln(e,o,Ig.emptyArray,Ig.emptyArray,i,void 0)}(e):16&e.objectFlags?ii(e):32&e.objectFlags&&function(u){var _,l=Ig.createSymbolTable();ln(u,x,Ig.emptyArray,Ig.emptyArray,void 0,void 0);var d=oi(u),e=si(u),p=ci(u.target||u),f=Pi(ui(u)),m=_i(u),t=u.declaration.typeParameter.constraint;if(174===t.kind&&128===t.operator){for(var r=0,n=vi(f);r<n.length;r++){var a=n[r];o(ys(a),a)}(1&f.flags||zi(f,0))&&o(G)}else{var i=7372800&e.flags?Pi(e):e;d_(524288&i.flags?vs(Pi(i.type)):i,o)}function o(e,t){var r;"object"==typeof t&&(r=t);var n=$s(u.mapper,Ys([d],[e])),a=uc(p,n);if(32&e.flags){var i=Ka(e),o=Oi(f,i),s=!!(4&m||!(8&m)&&o&&16777216&o.flags),c=ir(4|(s?16777216:0),i,1&m||!(2&m)&&o&&up(o)?8:0);c.type=P&&s&&!bc(q,a)?_u(a):P&&!s&&o&&16777216&o.flags?Yu(a,131072):a,r&&(c.syntheticOrigin=r,c.declarations=r.declarations),c.nameType=e,l.set(i,c)}else 3&e.flags&&(_=fo(a,!!(1&m)))}ln(u,l,Ig.emptyArray,Ig.emptyArray,_,void 0)}(e):131072&e.flags?(r=$a((t=e).types,0),n=$a(t.types,1),a=ei(t.types,0),i=ei(t.types,1),ln(t,x,r,n,a,i)):262144&e.flags&&ai(e)),e}function mi(e){return 65536&e.flags?fi(e).properties:Ig.emptyArray}function gi(e,t){if(65536&e.flags){var r=fi(e).members.get(t);if(r&&nn(r))return r}}function yi(e){if(!e.resolvedProperties){for(var t=Ig.createSymbolTable(),r=0,n=e.types;r<n.length;r++){for(var a=0,i=vi(n[r]);a<i.length;a++){var o=i[a];if(!t.has(o.escapedName)){var s=Ii(e,o.escapedName);s&&t.set(o.escapedName,s)}}if(131072&e.flags)break}e.resolvedProperties=_n(t)}return e.resolvedProperties}function vi(e){return 393216&(e=Pi(e)).flags?yi(e):mi(e)}function hi(e){return 32768&e.flags?bi(e):1048576&e.flags?function(e){var t=Ss(e);if(t)return t;var r=Si(e.objectType),n=Si(e.indexType);return(n!==G||zi(r||e.objectType,0))&&(r||n)?Ts(r||e.objectType,n||e.indexType):void 0}(e):2097152&e.flags?Di(e):Si(e)}function bi(e){return Ti(e)?go(e):void 0}function xi(e){return ds([Fs(e),ws(e)])}function ki(e){if(e.root.isDistributive){var t=hi(e.checkType);if(t)return cc(e,$s(Ys([e.root.checkType],[t]),e.mapper))}}function Di(e){return ki(e)||xi(e)}function Si(e){var t=function(e){if(7766016&e.flags){var t=Ei(e);if(t!==_e&&t!==le)return t}}(e);return!t&&524288&e.flags?G:t}function Ci(e){return Si(e)||e}function Ti(e){return Ei(e)!==le}function Ei(e){var r;if(!e.resolvedBaseConstraint){var t=d(e);e.resolvedBaseConstraint=r?le:Ha(t||_e,e)}return e.resolvedBaseConstraint;function d(e){if(In(e,4)){var t=function(e){if(32768&e.flags){var t=go(e);return e.isThisType||!t?t:d(t)}if(393216&e.flags){for(var r=e.types,n=[],a=0,i=r;a<i.length;a++){var o=i[a],s=d(o);s&&n.push(s)}return 131072&e.flags&&n.length===r.length?ds(n):262144&e.flags&&n.length?gs(n):void 0}if(524288&e.flags)return G;if(1048576&e.flags){var c=Ss(e);if(c)return d(c);var u=d(e.objectType),_=d(e.indexType),l=u&&_?Ts(u,_):void 0;return l&&l!==U?d(l):void 0}if(2097152&e.flags){var t=Di(e);return t&&d(t)}return 4194304&e.flags?d(e.substitute):pi(e)?ie:e}(e);if(Ln())return t;r=!0}else r=!0}}function Ni(e){if(e.default)e.default===de&&(e.default=le);else if(e.target){var t=Ni(e.target);e.default=t?uc(t,e.mapper):_e}else{e.default=de;var r=e.symbol&&Ig.forEach(e.symbol.declarations,function(e){return Ig.isTypeParameterDeclaration(e)&&e.default}),n=r?Hs(r):_e;e.default===de&&(e.default=n)}return e.default}function Ai(e){var t=Ni(e);return t!==_e&&t!==le?t:void 0}function Pi(e){var t,r=7897088&e.flags?Si(e)||ie:e;return 262144&r.flags?(t=r).resolvedApparentType||(t.resolvedApparentType=Ha(t,t,!0)):524322&r.flags?xe:84&r.flags?ke:136&r.flags?De:1536&r.flags?jo(2<=w):134217728&r.flags?ie:r}function Fi(e,t){for(var r,n=131072&e.flags,a=n?24:0,i=n?0:16777216,o=4,s=0,c=0,u=e.types;c<u.length;c++)if((y=Pi(u[c]))!==U){var _=(g=Oi(y,t))?Ig.getDeclarationModifierFlagsFromSymbol(g):0;!g||_&a?n&&(s|=16):(i&=g.flags,r=Ig.appendIfUnique(r,g),s|=(up(g)?8:0)|(24&_?0:64)|(16&_?128:0)|(8&_?256:0)|(32&_?512:0),ql(g)||(o=2))}if(r){if(1===r.length&&!(16&s))return r[0];for(var l,d=[],p=[],f=0,m=r;f<m.length;f++){var g;(g=m[f]).declarations&&Ig.addRange(p,g.declarations);var y=oa(g);l?y!==l&&(s|=32):l=y,d.push(y)}var v=ir(4|i,t,o|s);return v.containingType=e,v.declarations=p,v.type=n?ds(d):gs(d),v}}function wi(e,t){var r=e.propertyCache||(e.propertyCache=Ig.createSymbolTable()),n=r.get(t);return n||(n=Fi(e,t))&&r.set(t,n),n}function Ii(e,t){var r=wi(e,t);return!r||16&Ig.getCheckFlags(r)?void 0:r}function Oi(e,t){if(65536&(e=Pi(e)).flags){var r=fi(e),n=r.members.get(t);if(n&&nn(n))return n;if(r===ue||r.callSignatures.length||r.constructSignatures.length){var a=gi(ve,t);if(a)return a}return gi(ye,t)}if(393216&e.flags)return Ii(e,t)}function Mi(e,t){if(458752&e.flags){var r=fi(e);return 0===t?r.callSignatures:r.constructSignatures}return Ig.emptyArray}function Li(e,t){return Mi(Pi(e),t)}function Ri(e,t){if(458752&e.flags){var r=fi(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Bi(e,t){var r=Ri(e,t);return r&&r.type}function zi(e,t){return Ri(Pi(e),t)}function Ji(e,t){return Bi(Pi(e),t)}function ji(e,t){if(du(e)){for(var r=[],n=0,a=vi(e);n<a.length;n++){var i=a[n];(0===t||vl(i.escapedName))&&r.push(oa(i))}if(r.length)return ds(r,2)}}function Ki(e){var r=[];return e.forEach(function(e,t){un(t)||r.push(e)}),r}function Ui(e){if(Ig.isInJavaScriptFile(e)){if(e.type&&279===e.type.kind)return!0;var t=Ig.getJSDocParameterTags(e);if(t)for(var r=0,n=t;r<n.length;r++){var a=n[r];if(a.isBracketed)return!0;if(a.typeExpression)return 279===a.typeExpression.type.kind}}}function qi(e,t){if(!Ig.isExternalModuleNameRelative(e)){var r=gr(tt,'"'+e+'"',512);return r&&t?$r(r):r}}function Vi(e){if(Ig.hasQuestionToken(e)||Ui(e))return!0;if(e.initializer){var t=Qi(e.parent),r=e.parent.parameters.indexOf(e);return Ig.Debug.assert(0<=r),r>=t.minArgumentCount}var n=Ig.getImmediatelyInvokedFunctionExpression(e.parent);return!!n&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=n.arguments.length}function Wi(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function Hi(e){return{kind:0,type:e}}function Gi(e){var t,r=0;if(e)for(var n=0;n<e.length;n++)(t=e[n]).symbol&&Ig.forEach(t.symbol.declarations,function(e){return Ig.isTypeParameterDeclaration(e)&&e.default})||(r=n+1);return r}function Xi(e,t,r,n){var a=Ig.length(t);if(a){var i=Ig.length(e);if(n||r<=i&&i<=a){e||(e=[]);for(var o=i;o<a;o++)e[o]=zu(n);for(o=i;o<a;o++){var s=Ys(t,e),c=Ai(t[o]);c&&gc(c,ie)&&n&&(c=J),e[o]=c?uc(c,s):zu(n)}e.length=t.length}}return e}function Qi(e){var t,r,n,a=fr(e);if(!a.resolvedSignature){for(var i=[],o=!1,s=0,c=void 0,u=void 0,_=Ig.getImmediatelyInvokedFunctionExpression(e),l=Ig.isJSDocConstructSignature(e),d=!_&&!l&&Ig.isInJavaScriptFile(e)&&!Ig.hasJSDocParameterTags(e),p=l?1:0;p<e.parameters.length;p++){var f=e.parameters[p],m=f.symbol;m&&4&m.flags&&!Ig.isBindingPattern(f.name)&&(m=vr(f,m.escapedName,67216319,void 0,void 0,!1)),0===p&&"this"===m.escapedName?(u=!0,c=f.symbol):i.push(m),f.type&&177===f.type.kind&&(o=!0),f.initializer||f.questionToken||f.dotDotDotToken||_&&i.length>_.arguments.length&&!f.type||Ui(f)||d||(s=i.length)}if(!(155!==e.kind&&156!==e.kind||ja(e)||u&&c)){var g=155===e.kind?156:155,y=Ig.getDeclarationOfKind(en(e),g);y&&(c=(n=kg(y))&&n.symbol)}var v=154===e.kind?ka($r(e.parent.symbol)):void 0,h=v?v.localTypeParameters:(t=e,Ig.forEach(Ig.getEffectiveTypeParameterDeclarations(t),function(e){var t=Na(e.symbol);r=Ig.appendIfUnique(r,t)}),r),b=function(e,t,r){if(t)return Hs(e.parameters[0].type);if(r)return r;var n=Ig.getEffectiveReturnTypeNode(e);if(n)return Hs(n);if(155===e.kind&&!ja(e)){var a=Ig.getDeclarationOfKind(en(e),156);return ea(a)}return Ig.nodeIsMissing(e.body)?J:void 0}(e,l,v),x=Ig.hasRestParameter(e)||Ig.isInJavaScriptFile(e)&&function(e,t){if(!Yi(e))return!1;var r=Ig.lastOrUndefined(e.parameters),n=r?Ig.getJSDocParameterTags(r):Ig.getJSDocTags(e).filter(Ig.isJSDocParameterTag),a=Ig.firstDefined(n,function(e){return e.typeExpression&&Ig.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:void 0}),i=ir(3,"args");return i.type=a?rs(Hs(a.type)):Te,i.isRestParameter=!0,a&&t.pop(),t.push(i),!0}(e,i);a.resolvedSignature=Xa(e,h,c,i,b,void 0,s,x,o)}return a.resolvedSignature}function Yi(e){var t=fr(e);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&Ig.isExpressionNode(t);case 151:case 153:case 155:case 156:return 146===t.name.kind&&e(t.name);default:return!Ig.nodeStartsNewLexicalEnvironment(t)&&!Ig.isPartOfTypeNode(t)&&Ig.forEachChild(t,e)}}(e.body)),t.containsArgumentsReference}function Zi(e){if(!e)return Ig.emptyArray;for(var t=[],r=0;r<e.declarations.length;r++){var n=e.declarations[r];switch(n.kind){case 162:case 163:case 232:case 153:case 152:case 154:case 157:case 158:case 159:case 155:case 156:case 190:case 191:case 280:if(0<r&&n.body){var a=e.declarations[r-1];if(n.parent===a.parent&&n.kind===a.kind&&n.pos===a.end)break}t.push(Qi(n))}}return t}function $i(e){if(e.thisParameter)return oa(e.thisParameter)}function eo(e){return void 0!==to(e)}function to(e){if(!e.resolvedTypePredicate){if(e.target){var t=to(e.target);e.resolvedTypePredicate=t?(o=t,s=e.mapper,Ig.isIdentifierTypePredicate(o)?{kind:1,parameterName:o.parameterName,parameterIndex:o.parameterIndex,type:uc(o.type,s)}:{kind:0,type:uc(o.type,s)}):Ge}else if(e.unionSignatures)e.resolvedTypePredicate=function(e){for(var t,r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=to(i);if(o){if(t){if(!ps(t,o))return}else t=o;r.push(o.type)}}if(t){var s=ds(r);return Ig.isIdentifierTypePredicate(t)?Wi(t.parameterName,t.parameterIndex,s):Hi(s)}}(e.unionSignatures)||Ge;else{var r=e.declaration;e.resolvedTypePredicate=r&&r.type&&160===r.type.kind?(n=r.type,a=n.parameterName,i=Hs(n.type),71===a.kind?Wi(a&&a.escapedText,a&&function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r];if(71===n.name.kind&&n.name.escapedText===t.escapedText)return r}return-1}(n.parent.parameters,a),i):Hi(i)):Ge}Ig.Debug.assert(!!e.resolvedTypePredicate)}var n,a,i,o,s;return e.resolvedTypePredicate===Ge?void 0:e.resolvedTypePredicate}function ro(e){if(!e.resolvedReturnType){if(!In(e,3))return U;var t=void 0;if(t=e.target?uc(ro(e.target),e.mapper):e.unionSignatures?ds(Ig.map(e.unionSignatures,ro),2):tp(e.declaration),!Ln()&&(t=J,T)){var r=e.declaration,n=Ig.getNameOfDeclaration(r);n?ar(n,Ig.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,Ig.declarationNameToString(n)):ar(r,Ig.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}e.resolvedReturnType=t}return e.resolvedReturnType}function no(e){if(e.hasRestParameter){var t=oa(Ig.lastOrUndefined(e.parameters));if(4&Ig.getObjectFlags(t)&&t.target===he)return t.typeArguments[0]}return J}function ao(e,t,r){t=Xi(t,e.typeParameters,Gi(e.typeParameters),r);var n=e.instantiations||(e.instantiations=Ig.createMap()),a=vo(t),i=n.get(a);return i||n.set(a,i=io(e,t)),i}function io(e,t){return nc(e,oo(e,t),!0)}function oo(e,t){return Ys(e.typeParameters,t)}function so(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=nc(t=e,Zs(t.typeParameters),!0)):e;var t}function co(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=ao(t=e,Ig.map(t.typeParameters,function(e){return e.target&&!bi(e.target)?e.target:e}),Ig.isInJavaScriptFile(t.declaration))):e;var t}function uo(e){var t=e.typeParameters;if(t){var r=Zs(t);return nc(e,Ys(t,Ig.map(t,function(e){return uc(Si(e),r)||ie})),!0)}return e}function _o(e){if(!e.isolatedSignatureType){var t=154===e.declaration.kind||158===e.declaration.kind,r=cn(16);r.members=x,r.properties=Ig.emptyArray,r.callSignatures=t?Ig.emptyArray:[e],r.constructSignatures=t?[e]:Ig.emptyArray,e.isolatedSignatureType=r}return e.isolatedSignatureType}function lo(e){return e.members.get("__index")}function po(e,t){var r=1===t?134:137,n=lo(e);if(n)for(var a=0,i=n.declarations;a<i.length;a++){var o=i[a];if(1===o.parameters.length){var s=o.parameters[0];if(s&&s.type&&s.type.kind===r)return o}}}function fo(e,t,r){return{type:e,isReadonly:t,declaration:r}}function mo(e,t){var r=po(e,t);if(r)return fo(r.type?Hs(r.type):J,Ig.hasModifier(r,64),r)}function go(e){if(!e.constraint)if(e.target){var t=bi(e.target);e.constraint=t?uc(t,e.mapper):_e}else{var r=(n=e).symbol&&Ig.getDeclarationOfKind(n.symbol,147).constraint;e.constraint=r?Hs(r):function(e){var t;if(e.symbol)for(var r=0,n=e.symbol.declarations;r<n.length;r++){var a=n[r];if(171===a.parent.kind&&161===a.parent.parent.kind){var i=a.parent.parent,o=Hp(i);if(o){var s=i.typeArguments.indexOf(a.parent);if(s<o.length){var c=bi(o[s]);if(c){var u=uc(c,Ys(o,Vp(i,o)));u!==e&&(t=Ig.append(t,u))}}}}}return t&&gs(t)}(e)||_e}var n;return e.constraint===_e?void 0:e.constraint}function yo(e){return en(Ig.getDeclarationOfKind(e.symbol,147).parent)}function vo(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var a=e[n].id,i=1;n+i<r&&e[n+i].id===a+i;)i++;t.length&&(t+=","),t+=a,1<i&&(t+=":"+i),n+=i}return t}function ho(e,t){for(var r=0,n=0,a=e;n<a.length;n++){var i=a[n];i.flags&t||(r|=i.flags)}return 117440512&r}function bo(e,t){var r=vo(t),n=e.instantiations.get(r);return n||(n=cn(4,e.symbol),e.instantiations.set(r,n),n.flags|=t?ho(t,0):0,n.target=e,n.typeArguments=t),n}function xo(e){var t=on(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function ko(e){return Ig.length(e.target.typeParameters)}function Do(e,t,r){var n=Aa($r(t)),a=n.localTypeParameters;if(a){var i=Ig.length(e.typeArguments),o=Gi(a),s=Ig.isInJavaScriptFile(e);if((T||!s)&&(i<o||i>a.length)){var c=s&&285!==e.parent.kind;if(ar(e,o===a.length?c?Ig.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:Ig.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?Ig.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Ig.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Sn(n,void 0,2),o,a.length),!s)return U}return bo(n,Ig.concatenate(n.outerTypeParameters,Xi(r,a,o,s)))}return wo(e,t)?n:U}function So(e,t){var r=Aa(e),n=pr(e),a=n.typeParameters,i=vo(t),o=n.instantiations.get(i);return o||n.instantiations.set(i,o=uc(r,Ys(a,Xi(t,a,Gi(a),Ig.isInJavaScriptFile(e.valueDeclaration))))),o}function Co(e){switch(e.kind){case 161:return e.typeName;case 205:var t=e.expression;if(Ig.isEntityNameExpression(t))return t}}function To(e,t){return e&&zr(e,t)||M}function Eo(e,t,r){return 96&t.flags?Do(e,t,r):524288&t.flags?function(e,t,r){var n=Aa(t),a=pr(t).typeParameters;if(a){var i=Ig.length(e.typeArguments),o=Gi(a);return i<o||i>a.length?(ar(e,o===a.length?Ig.Diagnostics.Generic_type_0_requires_1_type_argument_s:Ig.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,kn(t),o,a.length),U):So(t,r)}return wo(e,t)?n:U}(e,t,r):16&t.flags&&Fo(e)&&(t.members||Ig.getJSDocClassTag(t.valueDeclaration))?Jd(t):void 0}function No(e){return 167===e.kind&&1===e.elementTypes.length}function Ao(e,t,r){return No(t)&&No(r)?Ao(e,t.elementTypes[0],r.elementTypes[0]):As(Hs(t))===e?Hs(r):void 0}function Po(e,t){for(var r,n,a,i;Ig.isPartOfTypeNode(t);){var o=t.parent;if(170===o.kind&&t===o.trueType){var s=Ao(e,o.checkType,o.extendsType);s&&(r=Ig.append(r,s))}t=o}return r?(n=e,a=gs(Ig.append(r,e)),(i=on(4194304)).typeVariable=n,i.substitute=a,i):e}function Fo(e){return 1048576&e.flags&&161===e.kind}function wo(e,t){return!e.typeArguments||(ar(e,Ig.Diagnostics.Type_0_is_not_generic,t?kn(t):Ig.declarationNameToString(e.typeName)),!1)}function Io(e){var t=fr(e);if(!t.resolvedType){var r=void 0,n=void 0,a=67901928;Fo(e)&&(n=function(e){if(Ig.isIdentifier(e.typeName)){var t=e.typeArguments;switch(e.typeName.escapedText){case"String":return wo(e),G;case"Number":return wo(e),X;case"Boolean":return wo(e),Z;case"Void":return wo(e),ee;case"Undefined":return wo(e),q;case"Null":return wo(e),W;case"Function":case"function":return wo(e),ve;case"Array":case"array":return t&&t.length?void 0:Te;case"Promise":case"promise":return t&&t.length?void 0:$d(J);case"Object":if(t&&2===t.length){if(Ig.isJSDocIndexSignature(e)){var r=Hs(t[0]),n=fo(Hs(t[1]),!1);return dn(void 0,x,Ig.emptyArray,Ig.emptyArray,r===G&&n,r===X&&n)}return J}return wo(e),J}}}(e),a|=67216319),n||(n=function(e,t){var r=Oo(e);if(t===M)return U;var n=Eo(e,t,r);if(n)return n;var a=Pa(t);if(a)return wo(e,t)?32768&a.flags?Po(a,e):a:U;if(!(67216319&t.flags&&Fo(e)))return U;var i=Bd(t),o=oa(t),s=o.symbol&&!jd(o)&&Eo(e,o.symbol,r);return s||i?s&&i?gs([i,s]):s||i:(To(Co(e),67901928),o)}(e,r=To(Co(e),a))),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function Oo(e){return Ig.map(e.typeArguments,Hs)}function Mo(e){var t=fr(e);return t.resolvedType||(t.resolvedType=vu(Op(e.exprName))),t.resolvedType}function Lo(e,t){function r(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 233:case 234:case 236:return n}}}if(!e)return t?ce:ie;var n=Aa(e);return 65536&n.flags?Ig.length(n.typeParameters)!==t?(ar(r(e),Ig.Diagnostics.Global_type_0_must_have_1_type_parameter_s,Ig.symbolName(e),t),t?ce:ie):n:(ar(r(e),Ig.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,Ig.symbolName(e)),t?ce:ie)}function Ro(e,t){return Bo(e,67216319,t?Ig.Diagnostics.Cannot_find_global_value_0:void 0)}function Bo(e,t,r){return vr(void 0,e,t,r,e,!1)}function zo(e,t,r){var n=Bo(e,67901928,r?Ig.Diagnostics.Cannot_find_global_type_0:void 0);return n||r?Lo(n,t):void 0}function Jo(e){return Pe||(Pe=Ro("Symbol",e))}function jo(e){return Fe||(Fe=zo("Symbol",0,e))||ie}function Ko(e){return Ie||(Ie=zo("Promise",1,e))||ce}function Uo(e){return Oe||(Oe=Ro("Promise",e))}function qo(e){return ze||(ze=zo("AsyncIterable",1,e))||ce}function Vo(e){return Je||(Je=zo("AsyncIterator",1,e))||ce}function Wo(e){return je||(je=zo("AsyncIterableIterator",1,e))||ce}function Ho(e){return Le||(Le=zo("Iterable",1,e))||ce}function Go(e){return Re||(Re=zo("Iterator",1,e))||ce}function Xo(e){return Be||(Be=zo("IterableIterator",1,e))||ce}function Qo(e,t){void 0===t&&(t=0);var r=Bo(e,67901928,void 0);return r&&Lo(r,t)}function Yo(e,t){return e!==ce?bo(e,t):ie}function Zo(e){return Yo(we||(we=zo("TypedPropertyDescriptor",1,!0))||ce,[e])}function $o(e){return Yo(Wo(!0),[e])}function es(e){return Yo(Ho(!0),[e])}function ts(e){return Yo(Xo(!0),[e])}function rs(e){return Yo(he,[e])}function ns(e){return t[e]||(t[e]=function(e){for(var t=[],r=[],n=0;n<e;n++){var a=on(32768);t.push(a);var i=ir(4,""+n);i.type=a,r.push(i)}var o=ir(4,"length");o.type=qs(e),r.push(o);var s=cn(12);return s.typeParameters=t,s.outerTypeParameters=void 0,s.localTypeParameters=t,s.instantiations=Ig.createMap(),s.instantiations.set(vo(s.typeParameters),s),(s.target=s).typeArguments=s.typeParameters,s.thisType=on(32768),s.thisType.isThisType=!0,(s.thisType.constraint=s).declaredProperties=r,s.declaredCallSignatures=Ig.emptyArray,s.declaredConstructSignatures=Ig.emptyArray,s.declaredStringIndexInfo=void 0,s.declaredNumberIndexInfo=void 0,s}(e))}function as(e){return bo(ns(e.length),e)}function is(e){return e.id}function os(e,t){return 0<=Ig.binarySearch(e,t,is,Ig.compareValues)}function ss(e,t,r){var n=r.flags;if(131072&n)t=cs(e,t,r.types);else if(1&n)t|=1,r===K&&(t|=4096);else if(!P&&12288&n)4096&n&&(t|=2),8192&n&&(t|=4),16777216&n||(t|=16);else if(!(16384&n||262144&n&&function(e){for(var t=0,r=0,n=e.types;r<n.length;r++){var a=n[r];if(13536&a.flags&&13536&t)return!0;if(12288&(t|=a.flags)&&134283264&t)return!0}return!1}(r))){2&n&&(t|=32),4&n&&(t|=64),512&n&&(t|=128),1120&n&&(t|=256);var a=e.length,i=a&&r.id>e[a-1].id?~a:Ig.binarySearch(e,r,is,Ig.compareValues);i<0&&(65536&n&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&us(e,r)||e.splice(~i,0,r))}return t}function cs(e,t,r){for(var n=0,a=r;n<a.length;n++)t=ss(e,t,a[n]);return t}function us(e,t){for(var r=0,n=e;r<n.length;r++)if(gc(n[r],t))return!0;return!1}function _s(e,t){for(var r=0,n=t;r<n.length;r++){var a=n[r];if(e!==a&&hc(e,a)&&(!(1&Ig.getObjectFlags(ca(e)))||!(1&Ig.getObjectFlags(ca(a)))||xc(e,a)))return!0}return!1}function ls(e){if(0!==e.length&&!function(e){var t=e[0];if(256&t.flags){for(var r=tn(t.symbol),n=1;n<e.length;n++){var a=e[n];if(!(256&a.flags)||r!==tn(a.symbol))return!1}return!0}return!1}(e))for(var t=e.length;0<t;)_s(e[--t],e)&&Ig.orderedRemoveItemAt(e,t)}function ds(e,t,r,n){if(void 0===t&&(t=1),0===e.length)return te;if(1===e.length)return e[0];var a=[],i=cs(a,0,e);if(1&i)return 4096&i?K:J;switch(t){case 1:256&i&&function(e,t){for(var r=e.length;0<r;){var n=e[--r];(32&n.flags&&32&t||64&n.flags&&64&t||1024&n.flags&&128&t||96&n.flags&&8388608&n.flags&&os(e,n.regularType))&&Ig.orderedRemoveItemAt(e,r)}}(a,i);break;case 2:ls(a)}return 0===a.length?4&i?16&i?W:H:2&i?16&i?q:V:te:fs(a,r,n)}function ps(e,t){return Ig.isIdentifierTypePredicate(e)?Ig.isIdentifierTypePredicate(t)&&e.parameterIndex===t.parameterIndex:!Ig.isIdentifierTypePredicate(t)}function fs(e,t,r){if(0===e.length)return te;if(1===e.length)return e[0];var n=vo(e),a=c.get(n);return a||(a=on(131072|ho(e,12288)),c.set(n,a),a.types=e,a.aliasSymbol=t,a.aliasTypeArguments=r),a}function ms(e,t,r){for(var n=0,a=r;n<a.length;n++){var i=a[n];o=e,s=t,c=Us(i),262144&(u=c.flags)?s=ms(o,s,c.types):1&u?(s|=1,c===K&&(s|=4096)):16384&u?s|=8:16&Ig.getObjectFlags(c)&&Ac(c)?s|=1024:!P&&12288&u||Ig.contains(o,c)||(65536&u&&(s|=512),131072&u&&(s|=2048),65536&u&&16&c.objectFlags&&c.symbol&&8208&c.symbol.flags&&us(o,c)||o.push(c)),t=s}var o,s,c,u;return t}function gs(e,t,r){if(0===e.length)return ie;var n=[],a=ms(n,0,e);if(8&a)return te;if(1&a)return 4096&a?K:J;if(1024&a&&!(512&a)&&n.push(ie),1===n.length)return n[0];if(2048&a){var i=Ig.findIndex(n,function(e){return 0!=(131072&e.flags)}),o=n[i];return ds(Ig.map(o.types,function(e){return gs(Ig.replaceElement(n,i,e))}),1,t,r)}var s=vo(n),c=g.get(s);return c||(c=on(262144|ho(n,12288)),g.set(s,c),c.types=n,c.aliasSymbol=t,c.aliasTypeArguments=r),c}function ys(e){var t=pr(Wa(e));return t.nameType||(t.target&&t.target!==M&&t.target!==z?(Ig.Debug.assert(t.target.escapedName===e.escapedName||"__computed"===t.target.escapedName,"Target symbol and symbol do not have the same name"),t.nameType=ys(t.target)):t.nameType=24&Ig.getDeclarationModifierFlagsFromSymbol(e)||Ig.isKnownSymbol(e)?te:qs(Ig.symbolName(e))),t.nameType}function vs(e){return 262144&e.flags?ds(Ig.map(e.types,function(e){return vs(e)})):pp(e,7372800)?((r=e).resolvedIndexType||(r.resolvedIndexType=on(524288),r.resolvedIndexType.type=r),r.resolvedIndexType):32&Ig.getObjectFlags(e)?si(e):e===K?K:1&e.flags||zi(e,0)?G:(t=e,ds(Ig.map(vi(t),ys)));var t,r}function hs(e,t,r,n){var a=r&&184===r.kind?r:void 0,i=Ba(t)?Ka(t):a&&sd(a.argumentExpression,t,!1)?Ig.getPropertyNameForKnownSymbolName(Ig.idText(a.argumentExpression.name)):void 0;if(void 0!==i){var o=Oi(e,i);if(o){if(a){if(nd(o,a,99===a.expression.kind),Ig.isAssignmentTarget(a)&&(_p(a,o)||lp(a)))return ar(a.argumentExpression,Ig.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,kn(o)),U;n&&(fr(r).resolvedSymbol=o)}return oa(o)}}if(!(12288&t.flags)&&fp(t,525942)){if(zn(e))return e;var s=fp(t,84)&&zi(e,1)||zi(e,0)||void 0;if(s)return a&&s.isReadonly&&(Ig.isAssignmentTarget(a)||Ig.isDeleteTarget(a))&&ar(a,Ig.Diagnostics.Index_signature_in_type_0_only_permits_reading,Sn(e)),s.type;if(a&&!gp(e))return T&&!O.suppressImplicitAnyIndexErrors&&(Ji(e,1)?ar(a.argumentExpression,Ig.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):ar(a,Ig.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Sn(e))),J}if(r){var c=184===r.kind?r.argumentExpression:r.indexType;return 96&t.flags?ar(c,Ig.Diagnostics.Property_0_does_not_exist_on_type_1,""+t.value,Sn(e)):6&t.flags?ar(c,Ig.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Sn(e),Sn(t)):ar(c,Ig.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Sn(t)),U}return J}function bs(e){return pp(e,544243712)}function xs(e){return pp(e,7897088)}function ks(e){if(65536&e.flags&&!pi(e)){var t=fi(e);return 0===t.properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&t.stringIndexInfo&&!t.numberIndexInfo}return!1}function Ds(e){return 32&Ig.getObjectFlags(e)&&ci(e)===te}function Ss(e){var t=e.objectType;if(262144&t.flags&&bs(t)){if(Ig.some(t.types,ks)){for(var r=[],n=[],a=0,i=t.types;a<i.length;a++){var o=i[a];ks(o)?n.push(Ji(o,0)):r.push(o)}return ds([Ts(gs(r),e.indexType),gs(n)])}if(Ig.some(t.types,Ds))return Ts(gs(Ig.filter(t.types,function(e){return!Ds(e)})),e.indexType)}if(pi(t))return Cs(t,e);if(32768&t.flags){var s=go(t);if(s&&pi(s))return Cs(s,e)}}function Cs(e,t){var r=Ys([oi(e)],[t.indexType]),n=$s(e.mapper,r);return uc(ci(e),n)}function Ts(e,t,r){if(e===K||t===K)return K;if(xs(t)||(!r||184!==r.kind)&&bs(e)){if(1&e.flags)return e;var n=e.id+","+t.id,a=v.get(n);return a||v.set(n,(i=e,o=t,(s=on(1048576)).objectType=i,s.indexType=o,a=s)),a}var i,o,s,c=Pi(e);if(131072&t.flags&&!(8&t.flags)){for(var u=[],_=0,l=t.types;_<l.length;_++){var d=hs(c,l[_],r,!1);if(d===U)return U;u.push(d)}return ds(u)}return hs(c,t,r,!0)}function Es(e){var t=fr(e);if(!t.resolvedType){var r=Hs(e.objectType),n=Hs(e.indexType),a=Ts(r,n,e);t.resolvedType=1048576&a.flags&&a.objectType===r&&a.indexType===n?Po(a,e):a}return t.resolvedType}function Ns(e){var t=fr(e);if(!t.resolvedType){var r=cn(32,e.symbol);r.declaration=e,r.aliasSymbol=Ms(e),r.aliasTypeArguments=Ls(e),si(t.resolvedType=r)}return t.resolvedType}function As(e){return 4194304&e.flags?e.typeVariable:e}function Ps(e,t){var r=uc(e.checkType,t),n=uc(e.extendsType,t);if(r===K||n===K)return K;if(!e.isDistributive||!pp(r,7897088)){var a=void 0;if(e.inferTypeParameters){var i=Du(e.inferTypeParameters,void 0,0);wu(i.inferences,r,n,96),a=$s(t,i)}if(1&r.flags)return ds([uc(e.trueType,a||t),uc(e.falseType,t)]);var o=a?uc(e.extendsType,a):n;if(!bc(_c(r),_c(o)))return uc(e.falseType,t);if(Oc(r,o,Yt,void 0))return uc(e.trueType,a||t)}var s=As(r),c=on(2097152);return c.root=e,c.checkType=s,c.extendsType=n,c.mapper=t,c.aliasSymbol=e.aliasSymbol,c.aliasTypeArguments=Xs(e.aliasTypeArguments,t),c}function Fs(e){return e.resolvedTrueType||(e.resolvedTrueType=uc(e.root.trueType,e.mapper))}function ws(e){return e.resolvedFalseType||(e.resolvedFalseType=uc(e.root.falseType,e.mapper))}function Is(e){var t;return e.locals&&e.locals.forEach(function(e){262144&e.flags&&(t=Ig.append(t,Aa(e)))}),t}function Os(e){var t=fr(e);if(!t.resolvedType){var r=Ms(e);if(0!==Va(e.symbol).size||r){var n=cn(16,e.symbol);n.aliasSymbol=r,n.aliasTypeArguments=Ls(e),Ig.isJSDocTypeLiteral(e)&&e.isArrayType&&(n=rs(n)),t.resolvedType=n}else t.resolvedType=se}return t.resolvedType}function Ms(e){return 235===e.parent.kind?en(e.parent):void 0}function Ls(e){var t=Ms(e);return t?pa(t):void 0}function Rs(t,r,n,a,i){if(1&t.flags||1&r.flags)return J;if(16384&t.flags)return r;if(16384&r.flags)return t;if(131072&t.flags)return f_(t,function(e){return Rs(e,r,n,a,i)});if(131072&r.flags)return f_(r,function(e){return Rs(t,e,n,a,i)});if(134742526&r.flags)return t;var e,o,s=Ig.createSymbolTable(),c=Ig.createUnderscoreEscapedMap();t===ie?(e=zi(r,0),o=zi(r,1)):(e=ni(zi(t,0),zi(r,0)),o=ni(zi(t,1),zi(r,1)));for(var u=0,_=vi(r);u<_.length;u++){var l=65536&(m=_[u]).flags&&!(32768&m.flags);24&Ig.getDeclarationModifierFlagsFromSymbol(m)?c.set(m.escapedName,!0):Js(m)||l||s.set(m.escapedName,Bs(m))}for(var d=0,p=vi(t);d<p.length;d++){var f=p[d];if(!(65536&f.flags&&!(32768&f.flags)||c.has(f.escapedName)||Js(f)))if(s.has(f.escapedName)){var m,g=oa(m=s.get(f.escapedName));if(16777216&m.flags){var y=Ig.concatenate(f.declarations,m.declarations),v=ir(4|16777216&f.flags,f.escapedName);v.type=ds([oa(f),Yu(g,131072)]),v.leftSpread=f,v.rightSpread=m,v.declarations=y,s.set(f.escapedName,v)}}else s.set(f.escapedName,Bs(f))}var h=dn(n,s,Ig.emptyArray,Ig.emptyArray,zs(e),zs(o));return h.flags|=33554432|a,h.objectFlags|=1152|i,h}function Bs(e){if(!up(e))return e;var t=ir(4|16777216&e.flags,e.escapedName);return t.type=oa(e),t.declarations=e.declarations,t.syntheticOrigin=e,t}function zs(e){return e&&e.isReadonly?fo(e.type,!1,e.declaration):e}function Js(e){return 8192&e.flags&&Ig.find(e.declarations,function(e){return Ig.isClassLike(e.parent)})}function js(e,t,r){var n=on(e);return n.symbol=r,n.value=t,n}function Ks(e){if(96&e.flags&&!(8388608&e.flags)){if(!e.freshType){var t=js(8388608|e.flags,e.value,e.symbol);(t.regularType=e).freshType=t}return e.freshType}return e}function Us(e){return 96&e.flags&&8388608&e.flags?e.regularType:e}function qs(e,t,r){var n="number"==typeof e?"#":"@",a=t?t+n+e:n+e,i=y.get(a);if(!i){var o=("number"==typeof e?64:32)|(t?256:0);y.set(a,i=js(o,e,r))}return i}function Vs(e){if(Ig.isValidESSymbolDeclaration(e)){var t=en(e),r=pr(t);return r.uniqueESSymbolType||(r.uniqueESSymbolType=(n=t,(a=on(1024)).symbol=n,a))}var n,a;return $}function Ws(e){var t,r,n,a=fr(e);return a.resolvedType||(a.resolvedType=(t=e,r=Ig.getThisContainer(t,!1),!(n=r&&r.parent)||!Ig.isClassLike(n)&&234!==n.kind||Ig.hasModifier(r,32)||154===r.kind&&!Ig.isNodeDescendantOf(t,r.body)?(ar(t,Ig.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),U):ka(en(n)).thisType)),a.resolvedType}function Hs(e){switch(e.kind){case 119:case 275:case 276:return J;case 137:return G;case 134:return X;case 122:return Z;case 138:return $;case 105:return ee;case 140:return q;case 95:return W;case 131:return te;case 135:return 65536&e.flags?J:ae;case 173:case 99:return Ws(e);case 177:return(f=fr(p=e)).resolvedType||(f.resolvedType=Us(Op(p.literal))),f.resolvedType;case 161:return Io(e);case 160:return Z;case 205:return Io(e);case 164:return Mo(e);case 166:return(d=fr(l=e)).resolvedType||(d.resolvedType=rs(Hs(l.elementType))),d.resolvedType;case 167:return(_=fr(u=e)).resolvedType||(_.resolvedType=as(Ig.map(u.elementTypes,Hs))),_.resolvedType;case 168:return(c=fr(s=e)).resolvedType||(c.resolvedType=ds(Ig.map(s.types,Hs),1,Ms(s),Ls(s))),c.resolvedType;case 169:return(o=fr(i=e)).resolvedType||(o.resolvedType=gs(Ig.map(i.types,Hs),Ms(i),Ls(i))),o.resolvedType;case 277:return a=Hs(e.type),P?uu(a,8192):a;case 279:return Wn(Hs(e.type));case 172:case 278:case 274:return Hs(e.type);case 281:return function(e){var t=Hs(e.type),r=e.parent,n=r.parent;if(Ig.isJSDocTypeExpression(r)&&Ig.isJSDocParameterTag(n)){var a=Ig.getHostSignatureFromJSDoc(n);if(a){var i=Ig.lastOrUndefined(a.parameters),o=Ig.getParameterSymbolFromJSDoc(n);if(!i||o&&i.symbol===o&&Ig.isRestParameter(i))return rs(t)}}return Wn(t)}(e);case 162:case 163:case 165:case 283:case 280:return Os(e);case 174:return function(e){var t=fr(e);if(!t.resolvedType)switch(e.operator){case 128:t.resolvedType=vs(Hs(e.type));break;case 141:t.resolvedType=138===e.type.kind?Vs(Ig.walkUpParenthesizedTypes(e.parent)):U}return t.resolvedType}(e);case 175:return Es(e);case 176:return Ns(e);case 170:return function(t){var e=fr(t);if(!e.resolvedType){var r=Hs(t.checkType),n=Ls(t),a=la(t,!0),i=n?a:Ig.filter(a,function(e){return oc(e,t)}),o={node:t,checkType:r,extendsType:Hs(t.extendsType),trueType:Hs(t.trueType),falseType:Hs(t.falseType),isDistributive:!!(32768&r.flags),inferTypeParameters:Is(t),outerTypeParameters:i,instantiations:void 0,aliasSymbol:Ms(t),aliasTypeArguments:n};e.resolvedType=Ps(o,void 0),i&&(o.instantiations=Ig.createMap(),o.instantiations.set(vo(i),e.resolvedType))}return e.resolvedType}(e);case 171:return(n=fr(r=e)).resolvedType||(n.resolvedType=Na(en(r.typeParameter))),n.resolvedType;case 71:case 145:var t=Nm(e);return t&&Aa(t);default:return U}var r,n,a,i,o,s,c,u,_,l,d,p,f}function Gs(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var a=e[n],i=r(a,t);if(a!==i){var o=0===n?[]:e.slice(0,n);for(o.push(i),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function Xs(e,t){return Gs(e,t,uc)}function Qs(e,t){return Gs(e,t,nc)}function Ys(e,t){return Ig.Debug.assert(void 0===t||e.length===t.length),1===e.length?(c=e[0],u=t?t[0]:J,function(e){return e===c?u:e}):2===e.length?(a=e[0],i=t?t[0]:J,o=e[1],s=t?t[1]:J,function(e){return e===a?i:e===o?s:e}):(r=e,n=t,function(e){for(var t=0;t<r.length;t++)if(e===r[t])return n?n[t]:J;return e});var r,n,a,i,o,s,c,u}function Zs(e){return Ys(e,void 0)}function $s(t,r){return t?r?function(e){return uc(t(e),r)}:t:r}function ec(t,r,n){return function(e){return e===t?r:n(e)}}function tc(e){return 32768&e.flags?K:e}function rc(e){var t=on(32768);return t.symbol=e.symbol,t.target=e,t}function nc(e,t,r){var n;if(e.typeParameters&&!r){n=Ig.map(e.typeParameters,rc),t=$s(Ys(e.typeParameters,n),t);for(var a=0,i=n;a<i.length;a++)i[a].mapper=t}var o=Xa(e.declaration,n,e.thisParameter&&ac(e.thisParameter,t),Gs(e.parameters,t,ac),void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes);return o.target=e,o.mapper=t,o}function ac(e,t){var r=pr(e);if(r.type&&!pp(r.type,7962624))return e;1&Ig.getCheckFlags(e)&&(e=r.target,t=$s(r.mapper,t));var n=ir(e.flags,e.escapedName,1);return n.declarations=e.declarations,n.parent=e.parent,n.target=e,n.mapper=t,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.isRestParameter&&(n.isRestParameter=e.isRestParameter),n}function ic(e,t){var r=64&e.objectFlags?e.target:e,n=r.symbol,a=pr(n),i=a.outerTypeParameters;if(!i){var o=n.declarations[0],s=la(o,!0)||Ig.emptyArray;i=2048&n.flags&&!r.aliasTypeArguments?Ig.filter(s,function(e){return oc(e,o)}):s,(a.outerTypeParameters=i).length&&(a.instantiations=Ig.createMap(),a.instantiations.set(vo(i),r))}if(i.length){var c=64&e.objectFlags?$s(e.mapper,t):t,u=Ig.map(i,c),_=vo(u),l=a.instantiations.get(_);if(!l){var d=Ys(i,u);l=32&r.objectFlags?function(t,r){var e=si(t);if(524288&e.flags){var n=e.type;if(32768&n.flags){var a=uc(n,r);if(n!==a)return f_(a,function(e){return 7700481&e.flags?sc(t,ec(n,e,r)):e})}}return sc(t,r)}(r,d):sc(r,d),a.instantiations.set(_,l)}return l}return e}function oc(r,e){if(r.symbol&&r.symbol.declarations&&1===r.symbol.declarations.length){var t=r.symbol.declarations[0].parent;if(Ig.findAncestor(e,function(e){return 211===e.kind?"quit":e===t}))return Ig.forEachChild(e,function e(t){switch(t.kind){case 173:return r.isThisType;case 71:return!r.isThisType&&Ig.isPartOfTypeNode(t)&&Hs(t)===r;case 164:return!0}return Ig.forEachChild(t,e)})}return!0}function sc(e,t){var r=cn(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(r.declaration=e.declaration),r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=Xs(e.aliasTypeArguments,t),r}function cc(e,t){var r=e.root;if(r.outerTypeParameters){var n=Ig.map(r.outerTypeParameters,t),a=vo(n),i=r.instantiations.get(a);return i||(i=function(t,r){if(t.isDistributive){var n=t.checkType,e=r(n);if(n!==e&&147456&e.flags)return f_(e,function(e){return Ps(t,ec(n,e,r))})}return Ps(t,r)}(r,Ys(r.outerTypeParameters,n)),r.instantiations.set(a,i)),i}return e}function uc(e,t){if(e&&t&&t!==k){if(32768&e.flags)return t(e);if(65536&e.flags){if(16&e.objectFlags)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?ic(e,t):e;if(32&e.objectFlags)return ic(e,t);if(4&e.objectFlags){var r=e.typeArguments,n=Xs(r,t);return n!==r?bo(e.target,n):e}}var a,i;if(131072&e.flags&&!(16382&e.flags))return(i=Xs(a=e.types,t))!==a?ds(i,1,e.aliasSymbol,Xs(e.aliasTypeArguments,t)):e;if(262144&e.flags)return(i=Xs(a=e.types,t))!==a?gs(i,e.aliasSymbol,Xs(e.aliasTypeArguments,t)):e;if(524288&e.flags)return vs(uc(e.type,t));if(1048576&e.flags)return Ts(uc(e.objectType,t),uc(e.indexType,t));if(2097152&e.flags)return cc(e,$s(e.mapper,t));if(4194304&e.flags)return uc(e.typeVariable,t)}return e}function _c(e){return 32767&e.flags?e:e.wildcardInstantiation||(e.wildcardInstantiation=uc(e,tc))}function lc(e,t){return e&&fo(uc(e.type,t),e.isReadonly,e.declaration)}function dc(e){switch(Ig.Debug.assert(153!==e.kind||Ig.isObjectLiteralMethod(e)),e.kind){case 190:case 191:case 153:return pc(e);case 182:return Ig.forEach(e.properties,dc);case 181:return Ig.forEach(e.elements,dc);case 199:return dc(e.whenTrue)||dc(e.whenFalse);case 198:return 54===e.operatorToken.kind&&(dc(e.left)||dc(e.right));case 268:return dc(e.initializer);case 189:return dc(e.expression);case 261:return Ig.forEach(e.properties,dc);case 260:return e.initializer&&dc(e.initializer);case 263:return e.expression&&dc(e.expression)}return!1}function pc(e){if(e.typeParameters)return!1;if(Ig.forEach(e.parameters,function(e){return!Ig.getEffectiveTypeAnnotationNode(e)}))return!0;if(191!==e.kind){var t=Ig.firstOrUndefined(e.parameters);if(!t||!Ig.parameterIsThisKeyword(t))return!0}return 211!==e.body.kind&&dc(e.body)}function fc(e){return(ll(e)||Ig.isObjectLiteralMethod(e))&&pc(e)}function mc(e){if(65536&e.flags){var t=fi(e);if(t.constructSignatures.length){var r=cn(16,e.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=Ig.emptyArray,r.constructSignatures=Ig.emptyArray,r}}else if(262144&e.flags)return gs(Ig.map(e.types,mc));return e}function gc(e,t){return wc(e,t,$t)}function yc(e,t){return wc(e,t,$t)?-1:0}function vc(e,t){return wc(e,t,Qt)?-1:0}function hc(e,t){return wc(e,t,Xt)}function bc(e,t){return wc(e,t,Qt)}function xc(t,r){return 131072&t.flags?Ig.every(t.types,function(e){return xc(e,r)}):131072&r.flags?Ig.some(r.types,function(e){return xc(t,e)}):7372800&t.flags?xc(Si(t)||ie,r):r===ye||r===ve?hc(t,r):ua(t,ca(r))}function kc(e,t){return wc(e,t,Zt)}function Dc(e,t){return kc(e,t)||kc(t,e)}function Sc(e,t,r,n,a){return Oc(e,t,Qt,r,n,a)}function Cc(e,t,r,n,a){return Oc(e,t,Zt,r,n,a)}function Tc(e,t,r,n,a,i,o){if(e===t)return-1;if(!t.hasRestParameter&&e.minArgumentCount>t.parameters.length)return 0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=fd(e,t=co(t),void 0,o));var s=t.declaration?t.declaration.kind:0,c=!r&&R&&153!==s&&152!==s&&154!==s,u=-1,_=$i(e);if(_&&_!==ee){var l=$i(t);if(l){if(!(k=!c&&o(_,l,!1)||o(l,_,a)))return a&&i(Ig.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;u&=k}}for(var d,p,f,m,g=Nc(e),y=Nc(t),v=(p=g,f=t,m=y,(d=e).hasRestParameter===f.hasRestParameter?d.hasRestParameter?Math.max(p,m)+1:Math.min(p,m):d.hasRestParameter?m:p),h=e.parameters,b=t.parameters,x=0;x<v;x++){var k,D=x<g?Xd(h[x]):no(e),S=x<y?Xd(b[x]):no(t),C=r?void 0:pd(lu(D)),T=r?void 0:pd(lu(S));if(!(k=C&&T&&!eo(C)&&!eo(T)&&(12288&ou(D))==(12288&ou(S))?Tc(T,C,c?2:1,!1,a,i,o):!r&&!c&&o(D,S,!1)||o(S,D,a)))return a&&i(Ig.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,Ig.symbolName(h[x<g?x:g]),Ig.symbolName(b[x<y?x:y])),0;u&=k}if(!n){var E=ro(t);if(E===ee)return u;var N=ro(e),A=to(t);if(A){var P=to(e);if(P)u&=function(e,t,r,n,a,i,o){if(e.kind!==t.kind)return a&&(i(Ig.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(Ig.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Tn(e),Tn(t))),0;if(1===e.kind){var s=t,c=e.parameterIndex-(Ig.getThisParameter(r)?1:0),u=s.parameterIndex-(Ig.getThisParameter(n)?1:0);if(c!==u)return a&&(i(Ig.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,s.parameterName),i(Ig.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Tn(e),Tn(t))),0}var _=o(e.type,t.type,a);return 0===_&&a&&i(Ig.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Tn(e),Tn(t)),_}(P,A,e.declaration,t.declaration,a,i,o);else if(Ig.isIdentifierTypePredicate(A))return a&&i(Ig.Diagnostics.Signature_0_must_be_a_type_predicate,Dn(e)),0}else u&=1===r&&o(E,N,!1)||o(N,E,a)}return u}function Ec(e,t){var r=so(e),n=so(t),a=ro(r),i=ro(n);return!(i!==ee&&!wc(i,a,Qt)&&!wc(a,i,Qt))&&0!==Tc(r,n,0,!0,!1,void 0,vc)}function Nc(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function Ac(e){return 65536&e.flags?0===(t=fi(e)).properties.length&&0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo:!!(134217728&e.flags)||(131072&e.flags?Ig.forEach(e.types,Ac):!!(262144&e.flags)&&!Ig.forEach(e.types,function(e){return!Ac(e)}));var t}function Pc(e,t,r){if(e===t)return!0;var n=zg(e)+","+zg(t),a=er.get(n);if(void 0!==a)return a;if(!(e.escapedName===t.escapedName&&256&e.flags&&256&t.flags))return er.set(n,!1),!1;for(var i=oa(t),o=0,s=vi(oa(e));o<s.length;o++){var c=s[o];if(8&c.flags){var u=Oi(i,c.escapedName);if(!(u&&8&u.flags))return r&&r(Ig.Diagnostics.Property_0_is_missing_in_type_1,Ig.symbolName(c),Sn(Aa(t),void 0,64)),er.set(n,!1),!1}}return er.set(n,!0),!0}function Fc(e,t,r,n){var a=e.flags,i=t.flags;if(1&i||16384&a||e===K)return!0;if(16384&i)return!1;if(524322&a&&2&i)return!0;if(32&a&&256&a&&32&i&&!(256&i)&&e.value===t.value)return!0;if(84&a&&4&i)return!0;if(64&a&&256&a&&64&i&&!(256&i)&&e.value===t.value)return!0;if(136&a&&8&i)return!0;if(1536&a&&512&i)return!0;if(16&a&&16&i&&Pc(e.symbol,t.symbol,n))return!0;if(256&a&&256&i){if(131072&a&&131072&i&&Pc(e.symbol,t.symbol,n))return!0;if(224&a&&224&i&&e.value===t.value&&Pc(tn(e.symbol),tn(t.symbol),n))return!0}if(4096&a&&(!P||6144&i))return!0;if(8192&a&&(!P||8192&i))return!0;if(65536&a&&134217728&i)return!0;if(1024&a||1024&i)return!1;if(r===Qt||r===Yt||r===Zt){if(1&a)return!0;if(68&a&&!(256&a)&&(16&i||64&i&&256&i))return!0}return!1}function wc(e,t,r){if(96&e.flags&&8388608&e.flags&&(e=e.regularType),96&t.flags&&8388608&t.flags&&(t=t.regularType),e===t||r===Zt&&!(16384&t.flags)&&Fc(t,e,r)||r!==$t&&Fc(e,t,r))return!0;if(65536&e.flags&&65536&t.flags){var n=r.get(Jc(e,t,r));if(void 0!==n)return 1===n}return!!(8355840&e.flags||8355840&t.flags)&&Oc(e,t,r,void 0)}function Ic(e,t,r){return 4096&Ig.getObjectFlags(e)&&!(Dl(t.escapedName)||r)}function Oc(e,t,h,v,r,n){var b,u,_,l,d=0,p=0,f=0,m=!1,x=!1;Ig.Debug.assert(h!==$t||!v,"no error reporting in identity checking");var a=S(e,t,!!v,r);if(m)ar(v,Ig.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Sn(e),Sn(t));else if(b){if(n){var i=n();i&&(b=Ig.concatenateDiagnosticMessageChains(i,b))}Tt.add(Ig.createDiagnosticForNodeFromMessageChain(v,b))}if(r&&v&&!a&&e.symbol){var o=pr(e.symbol);o.originatingImport&&!Ig.isImportCall(o.originatingImport)&&Oc(oa(o.target),t,h,void 0)&&Tt.add(Ig.createDiagnosticForNode(o.originatingImport,Ig.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime))}return 0!==a;function k(e,t,r,n){Ig.Debug.assert(!!v),b=Ig.chainDiagnosticMessages(b,e,t,r,n)}function D(e,t,r){var n=Sn(t),a=Sn(r);n===a&&(n=Sn(t,void 0,64),a=Sn(r,void 0,64)),e||(e=h===Zt?Ig.Diagnostics.Type_0_is_not_comparable_to_type_1:n===a?Ig.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Ig.Diagnostics.Type_0_is_not_assignable_to_type_1),k(e,n,a)}function S(e,t,r,n){if(96&e.flags&&8388608&e.flags&&(e=e.regularType),96&t.flags&&8388608&t.flags&&(t=t.regularType),4194304&e.flags&&(e=h===Yt?e.typeVariable:e.substitute),4194304&t.flags&&(t=t.typeVariable),e===t)return-1;if(h===$t)return i=t,65536&(s=(a=e).flags&i.flags)?A(a,i,!1):393216&s&&(o=C(a,i))&&(o&=C(i,a))?o:524288&s?S(a.type,i.type,!1):1048576&s&&(o=S(a.objectType,i.objectType,!1))&&(o&=S(a.indexType,i.indexType,!1))?o:2097152&s&&a.root.isDistributive===i.root.isDistributive&&(o=S(a.checkType,i.checkType,!1))&&(o&=S(a.extendsType,i.extendsType,!1))&&(o&=S(Fs(a),Fs(i),!1))&&(o&=S(ws(a),ws(i),!1))?o:4194304&s?S(a.substitute,i.substitute,!1):0;var a,i,o,s;if(h===Zt&&!(16384&t.flags)&&Fc(t,e,h)||Fc(e,t,h,r?k:void 0))return-1;if(Mu(e)&&8388608&e.flags){var c=131072&t.flags?E(e,t):void 0;if(function e(a,i,t,o){if(pp(i,65536)&&!(512&Ig.getObjectFlags(i))){var s=!!(4096&Ig.getObjectFlags(a));if((h===Qt||h===Yt||h===Zt)&&(l_(ye,i)||!s&&Ac(i)))return!1;if(t)return e(a,t,void 0,o);for(var r=function(e){if(!Kl(i,e.escapedName,s)){if(o)if(Ig.Debug.assert(!!v),Ig.isJsxAttributes(v)||Ig.isJsxOpeningLikeElement(v))k(Ig.Diagnostics.Property_0_does_not_exist_on_type_1,kn(e),Sn(i));else{var t=a.symbol&&Ig.firstOrUndefined(a.symbol.declarations),r=void 0;if(e.valueDeclaration&&Ig.findAncestor(e.valueDeclaration,function(e){return e===t})){var n=e.valueDeclaration;Ig.Debug.assertNode(n,Ig.isObjectLiteralElementLike),v=n,Ig.isIdentifier(n.name)&&(r=$l(n.name,i))}void 0!==r?k(Ig.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,kn(e),Sn(i),r):k(Ig.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,kn(e),Sn(i))}return{value:!0}}},n=0,c=mi(a);n<c.length;n++){var u=c[n],_=r(u);if("object"==typeof _)return _.value}}return!1}(e,t,c,r))return r&&D(n,e,t),0;(function(e){if(!(393216&e.flags))return!1;for(var t=!1,r=0,n=e.types;r<n.length;r++)if(!(12288&n[r].flags)){if(t)return!0;t=!0}return!1})(t)&&!c&&(e=fu(e))}if(h!==Zt&&!(393216&e.flags)&&!(131072&t.flags)&&!x&&e!==ye&&(0<vi(e).length||wm(e))&&F(t)&&!function(e,t){for(var r=!!(4096&Ig.getObjectFlags(e)),n=0,a=vi(e);n<a.length;n++){var i=a[n];if(Kl(t,i.escapedName,r))return!0}return!1}(e,t)){if(r){var u=Li(e,0),_=Li(e,1);0<u.length&&S(ro(u[0]),t,!1)||0<_.length&&S(ro(_[0]),t,!1)?k(Ig.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Sn(e),Sn(t)):k(Ig.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Sn(e),Sn(t))}return 0}var l,d,p,f,m=0,g=b,y=x;return x=!1,131072&e.flags?m=h===Zt?N(e,t,r&&!(16382&e.flags)):function(e,t,r){for(var n=-1,a=e.types,i=0,o=a;i<o.length;i++){var s=o[i],c=S(s,t,r);if(!c)return 0;n&=c}return n}(e,t,r&&!(16382&e.flags)):(131072&t.flags?m=T(e,t,r&&!(16382&e.flags)&&!(16382&t.flags)):262144&t.flags?(x=!0,m=function(e,t,r){for(var n=-1,a=t.types,i=0,o=a;i<o.length;i++){var s=o[i],c=S(e,s,r);if(!c)return 0;n&=c}return n}(e,t,r)):262144&e.flags&&(m=N(e,t,!1)),!m&&(8355840&e.flags||8355840&t.flags)&&(m=A(e,t,r))&&(b=g)),x=y,!m&&r&&(65536&e.flags&&16382&t.flags?(d=t,p=Sn(l=e),f=Sn(d),(xe===l&&G===d||ke===l&&X===d||De===l&&Z===d||jo(!1)===l&&$===d)&&k(Ig.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,f,p)):e.symbol&&65536&e.flags&&ye===e&&k(Ig.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),D(n,e,t)),m}function C(e,t){for(var r=-1,n=0,a=e.types;n<a.length;n++){var i=T(a[n],t,!1);if(!i)return 0;r&=i}return r}function T(e,t,r){var n=t.types;if(131072&t.flags&&os(n,e))return-1;for(var a=0,i=n;a<i.length;a++){var o=S(e,i[a],!1);if(o)return o}return r&&S(e,E(e,t)||n[n.length-1],!0),0}function E(e,t){var r,n=mi(e);if(n){var a=function(e,t){for(var r,n=0,a=e;n<a.length;n++){var i=a[n];if(Hu(t,i.escapedName)){if(r){r.push(i);continue}r=[i]}}return r}(n,t);if(a)for(var i=0,o=a;i<o.length;i++)for(var s=o[i],c=oa(s),u=0,_=t.types;u<_.length;u++){var l=_[u],d=Bn(l,s.escapedName);if(d&&S(c,d)){if(l===r)continue;if(r)return;r=l}}}return r}function N(e,t,r){var n=e.types;if(131072&e.flags&&os(n,t))return-1;for(var a=n.length,i=0;i<a;i++){var o=S(n[i],t,r&&i===a-1);if(o)return o}return 0}function A(e,t,r){if(m)return 0;var n=Jc(e,t,h),a=h.get(n);if(void 0!==a){if(!r||2!==a)return 1===a?-1:0;h.set(n,3)}if(u){for(var i=0;i<d;i++)if(n===u[i])return 1;if(100===p)return m=!0,0}else u=[],_=[],l=[];var o=d;u[d]=n,d++,_[p]=e,l[p]=t,p++;var s=f;1&f||!qc(e,_,p)||(f|=1),2&f||!qc(t,l,p)||(f|=2);var c=3!==f?function(e,t,r){var n,a,i,o=b;if(32768&t.flags){if(32&Ig.getObjectFlags(e)&&si(e)===vs(t)&&!(4&_i(e))){var s=ci(e),c=Ts(t,oi(e));if(n=S(s,c,r))return n}}else if(524288&t.flags){if(524288&e.flags&&(n=S(t.type,e.type,!1)))return n;var u=P(t.type);if(u&&(n=S(e,vs(u),r)))return n}else if(1048576&t.flags){var u=P(t);if(u&&(n=S(e,u,r)))return b=o,n}else if(pi(t)){var _=ci(t),l=_i(t);if(!(8&l)){if(1048576&_.flags&&_.objectType===e&&_.indexType===oi(t))return-1;if(!pi(e)&&si(t)===vs(e)){var c=Ts(e,oi(t)),s=ci(t);if(n=S(c,s,r))return b=o,n}}}if(32768&e.flags){var u=P(e);if(u||!(134217728&t.flags)){(!u||1&u.flags)&&(u=ie);var d=r&&u!==ie;if(n=S(u,t,d))return b=o,n}}else if(1048576&e.flags){var u=P(e);if(u){if(n=S(u,t,r))return b=o,n}else if(1048576&t.flags&&((n=S(e.objectType,t.objectType,r))&&(n&=S(e.indexType,t.indexType,r)),n))return b=o,n}else if(2097152&e.flags){if(2097152&t.flags){if(gc(e.checkType,t.checkType)&&gc(e.extendsType,t.extendsType)&&((n=S(Fs(e),Fs(t),r))&&(n&=S(ws(e),ws(t),r)),n))return b=o,n}else if(h!==Yt){var p=ki(e);if(p&&(n=S(p,t,r)))return b=o,n;var f=xi(e);if(f&&(n=S(f,t,r)))return b=o,n}}else{if(4&Ig.getObjectFlags(e)&&4&Ig.getObjectFlags(t)&&e.target===t.target&&!(8192&Ig.getObjectFlags(e)||8192&Ig.getObjectFlags(t))){var m=Lc(e.target);if(n=function(e,t,r,n){var a=e.typeArguments||Ig.emptyArray,i=t.typeArguments||Ig.emptyArray;if(a.length!==i.length&&h===$t)return 0;for(var o=a.length<=i.length?a.length:i.length,s=-1,c=0;c<o;c++){var u=c<r.length?r[c]:1;if(4!==u){var _=a[c],l=i[c],d=-1;if(1===u?d=S(_,l,n):2===u?d=S(l,_,n):3===u?(d=S(l,_,!1))||(d=S(_,l,n)):(d=S(_,l,n))&&(d&=S(l,_,n)),!d)return 0;s&=d}}return s}(e,t,m,r))return n;if(m!==Ig.emptyArray&&!function(e,t){for(var r=0;r<t.length;r++)if(1===t[r]&&2048&e.typeArguments[r].flags)return!0;return!1}(t,m)){if(!r||!Ig.some(m,function(e){return 0===e}))return 0;a=b,b=o}}var g=!!(16382&e.flags);if(h!==$t&&(e=Pi(e)),327680&e.flags&&65536&t.flags){var y=r&&b===o&&!g;if(i=t,32&Ig.getObjectFlags(i)&&4&_i(i)&&!pi(e)&&Ac(e)?n=-1:pi(t)?n=pi(e)?function(e,t,r){var n;if((h===Zt||(h===$t?_i(e)===_i(t):di(e)<=di(t)))&&(n=S(si(t),si(e),r))){var a=Ys([oi(e)],[oi(t)]);return n&S(uc(ci(e),a),ci(t),r)}return 0}(e,t,y):0:(n=function(e,t,r){if(h===$t)return function(e,t){if(!(65536&e.flags&&65536&t.flags))return 0;var r=mi(e),n=mi(t);if(r.length!==n.length)return 0;for(var a=-1,i=0,o=r;i<o.length;i++){var s=o[i],c=gi(t,s.escapedName);if(!c)return 0;var u=Vc(s,c,S);if(!u)return 0;a&=u}return a}(e,t);var n,a,i=!(h!==Xt||Mu(e)||((a=Xc(n=e)?n.typeArguments[0]:void 0)===V||a===ne)),o=Pu(e,t,i);if(o)return r&&k(Ig.Diagnostics.Property_0_is_missing_in_type_1,kn(o),Sn(e)),0;if(Mu(t))for(var s=0,c=vi(e);s<c.length;s++){var u=c[s];if(!gi(t,u.escapedName)){var _=oa(u);if(_!==q&&_!==V)return r&&k(Ig.Diagnostics.Property_0_does_not_exist_on_type_1,kn(u),Sn(t)),0}}for(var l=-1,d=mi(t),p=0,f=d;p<f.length;p++){var m=f[p];if(!(4194304&m.flags)){var u=Oi(e,m.escapedName);if(u&&u!==m){if(Ic(e,u,oa(m)))continue;var g=Ig.getDeclarationModifierFlagsFromSymbol(u),y=Ig.getDeclarationModifierFlagsFromSymbol(m);if(8&g||8&y){if(256&Ig.getCheckFlags(u))return r&&k(Ig.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,kn(u),Sn(e)),0;if(u.valueDeclaration!==m.valueDeclaration)return r&&(8&g&&8&y?k(Ig.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,kn(m)):k(Ig.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,kn(m),Sn(8&g?e:t),Sn(8&g?t:e))),0}else if(16&y){if(!Uc(u,m))return r&&k(Ig.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,kn(m),Sn(Kc(u)||e),Sn(Kc(m)||t)),0}else if(16&g)return r&&k(Ig.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,kn(m),Sn(e),Sn(t)),0;var v=S(oa(u),oa(m),r);if(!v)return r&&k(Ig.Diagnostics.Types_of_property_0_are_incompatible,kn(m)),0;if(l&=v,h!==Zt&&16777216&u.flags&&!(16777216&m.flags))return r&&k(Ig.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,kn(m),Sn(e),Sn(t)),0}}}return l}(e,t,y))&&(n&=w(e,t,0,y))&&(n&=w(e,t,1,y))&&(n&=I(e,t,0,g,y))&&(n&=I(e,t,1,g,y)),n){if(!a)return b=o,n;b=a}}}return 0}(e,t,r):1;if(f=s,p--,c){if(-1===c||0===p){for(i=o;i<d;i++)h.set(u[i],1);d=o}}else h.set(n,r?3:2),d=o;return c}function P(e){return h===Yt?void 0:hi(e)}function F(e){if(65536&e.flags){var t=fi(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&!t.stringIndexInfo&&!t.numberIndexInfo&&0<t.properties.length&&Ig.every(t.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&e.flags)&&Ig.every(e.types,F)}function w(e,t,r,n){if(h===$t)return function(e,t,r){var n=Li(e,r),a=Li(t,r);if(n.length!==a.length)return 0;for(var i=-1,o=0;o<n.length;o++){var s=Wc(n[o],a[o],!1,!1,!1,S);if(!s)return 0;i&=s}return i}(e,t,r);if(t===ue||e===ue)return-1;var a=Li(e,r),i=Li(t,r);if(1===r&&a.length&&i.length){if(Ig.isAbstractConstructorType(e)&&!Ig.isAbstractConstructorType(t))return n&&k(Ig.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,r){if(!e.declaration||!t.declaration)return!0;var n=Ig.getSelectedModifierFlags(e.declaration,24),a=Ig.getSelectedModifierFlags(t.declaration,24);return 8===a||(16===a&&8!==n||(16!==a&&!n||(r&&k(Ig.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,En(n),En(a)),!1)))}(a[0],i[0],n))return 0}var o=-1,s=b;if(64&Ig.getObjectFlags(e)&&64&Ig.getObjectFlags(t)&&e.symbol===t.symbol)for(var c=0;c<i.length;c++){if(!(g=y(a[c],i[c],!0,n)))return 0;o&=g}else if(1===a.length&&1===i.length){var u=h===Zt||O.noStrictGenericChecks;o=y(a[0],i[0],u,n)}else e:for(var _=0,l=i;_<l.length;_++){for(var d=l[_],p=n,f=0,m=a;f<m.length;f++){var g;if(g=y(m[f],d,!0,p)){o&=g,b=s;continue e}p=!1}return p&&k(Ig.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Sn(e),Dn(d,void 0,void 0,r)),0}return o}function y(e,t,r,n){return Tc(r?so(e):e,r?so(t):t,0,!1,n,k,S)}function g(e,t,r){var n=S(e.type,t.type,r);return!n&&r&&k(Ig.Diagnostics.Index_signatures_are_incompatible),n}function I(e,t,r,n,a){if(h===$t)return i=e,s=zi(t,o=r),(c=zi(i,o))||s?c&&s&&c.isReadonly===s.isReadonly?S(c.type,s.type):0:-1;var i,o,s,c,u=zi(t,r);if(!u||1&u.type.flags&&!n)return-1;var _=zi(e,r)||1===r&&zi(e,0);if(_)return g(_,u,a);if(pi(e))return 0===r&&S(ci(e),u.type,a);if(du(e)){var l=-1;if(0===r){var d=zi(e,1);d&&(l=g(d,u,a))}return l&&(l&=function(e,t,r,n){for(var a=-1,i=0,o=mi(e);i<o.length;i++){var s=o[i];if(!Ic(e,s,void 0)){var c=ys(s);if((void 0===c||S(c,G)||S(c,X))&&(0===r||vl(s.escapedName))){var u=S(oa(s),t,n);if(!u)return n&&k(Ig.Diagnostics.Property_0_is_incompatible_with_index_signature,kn(s)),0;a&=u}}}return a}(e,u.type,r,a)),l}return a&&k(Ig.Diagnostics.Index_signature_is_missing_in_type_0,Sn(e)),0}}function Mc(e,t,r){var n=bo(e,Ig.map(e.typeParameters,function(e){return e===t?r:e}));return n.objectFlags|=8192,n}function Lc(e){if(!R)return Ig.emptyArray;var t=e.typeParameters||Ig.emptyArray,r=e.variances;if(!r){if(e===he||e===be)r=[1];else{e.variances=Ig.emptyArray,r=[];for(var n=0,a=t;n<a.length;n++){var i=a[n],o=Mc(e,i,pe),s=Mc(e,i,fe),c=(bc(s,o)?1:0)|(bc(o,s)?2:0);3===c&&bc(Mc(e,i,He),o)&&(c=4),r.push(c)}}e.variances=r}return r}function Rc(e){return 32768&e.flags&&!go(e)}function Bc(e){return 4&Ig.getObjectFlags(e)&&Ig.some(e.typeArguments,function(e){return Rc(e)||Bc(e)})}function zc(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,a=0,i=e.typeArguments;a<i.length;a++){var o=i[a];if(Rc(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&Bc(o)?n+="<"+zc(o,t,r+1)+">":n+="-"+o.id}return n}function Jc(e,t,r){if(r===$t&&e.id>t.id){var n=e;e=t,t=n}if(Bc(e)&&Bc(t)){var a=[];return zc(e,a)+","+zc(t,a)}return e.id+","+t.id}function jc(e,t){if(!(6&Ig.getCheckFlags(e)))return t(e);for(var r=0,n=e.containingType.types;r<n.length;r++){var a=Oi(n[r],e.escapedName),i=a&&jc(a,t);if(i)return i}}function Kc(e){return e.parent&&32&e.parent.flags?Aa(tn(e)):void 0}function Uc(n,e){return!jc(e,function(e){return!!(16&Ig.getDeclarationModifierFlagsFromSymbol(e))&&(t=n,r=Kc(e),!jc(t,function(e){var t=Kc(e);return!!t&&ua(t,r)}));var t,r})}function qc(e,t,r){if(5<=r&&65536&e.flags){var n=e.symbol;if(n)for(var a=0,i=0;i<r;i++){var o=t[i];if(65536&o.flags&&o.symbol===n&&5<=++a)return!0}}return!1}function Vc(e,t,r){if(e===t)return-1;var n=24&Ig.getDeclarationModifierFlagsFromSymbol(e);if(n!==(24&Ig.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(n){if(tm(e)!==tm(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return up(e)!==up(t)?0:r(oa(e),oa(t))}function Wc(e,t,r,n,a,i){if(e===t)return-1;if(!function(e,t,r){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var n=e.hasRestParameter?1:0,a=t.hasRestParameter?1:0;return!!(r&&e.minArgumentCount<=t.minArgumentCount&&(a<n||n===a&&e.parameters.length>=t.parameters.length))}(e,t,r))return 0;if(Ig.length(e.typeParameters)!==Ig.length(t.typeParameters))return 0;e=so(e),t=so(t);var o=-1;if(!n){var s=$i(e);if(s){var c=$i(t);if(c){if(!(f=i(s,c)))return 0;o&=f}}}for(var u,_,l,d=t.parameters.length,p=0;p<d;p++){var f;if(!(f=i(Hc(e,p)?no(e):Xd(e.parameters[p]),Hc(t,p)?no(t):Xd(t.parameters[p]))))return 0;o&=f}if(!a){var m=to(e),g=to(t);o&=void 0!==m||void 0!==g?(_=g,l=i,void 0!==(u=m)&&void 0!==_&&ps(u,_)?l(u.type,_.type):0):i(ro(e),ro(t))}return o}function Hc(e,t){return e.hasRestParameter&&t>=e.parameters.length-1}function Gc(e){return function(e){for(var t,r=0,n=e;r<n.length;r++){var a=n[r],i=eu(a);if(t||(t=i),i===a||i!==t)return!1}return!0}(e)?ds(e):Ig.reduceLeft(e,function(e,t){return hc(e,t)?t:e})}function Xc(e){return 4&Ig.getObjectFlags(e)&&e.target===he}function Qc(e){return 4&Ig.getObjectFlags(e)&&(e.target===he||e.target===be)||!(12288&e.flags)&&bc(e,Ne)}function Yc(e){return!!Oi(e,"0")}function Zc(e){return!!(13536&e.flags)}function $c(e){return!!(8&e.flags)||(131072&e.flags?!!(256&e.flags)||!Ig.forEach(e.types,function(e){return!Zc(e)}):Zc(e))}function eu(e){return 256&e.flags?Ca(e):32&e.flags?G:64&e.flags?X:128&e.flags?Z:131072&e.flags?ds(Ig.sameMap(e.types,eu)):e}function tu(e){return 256&e.flags?Ca(e):32&e.flags&&8388608&e.flags?G:64&e.flags&&8388608&e.flags?X:128&e.flags?Z:131072&e.flags?ds(Ig.sameMap(e.types,tu)):e}function ru(e){return 1024&e.flags?$:131072&e.flags?ds(Ig.sameMap(e.types,ru)):e}function nu(e,t){return function t(r,e){if(e){if(393216&e.flags){var n=e.types;return Ig.some(n,function(e){return t(r,e)})}if(7372800&e.flags){var a=Si(e)||ie;return 2&a.flags&&pp(r,32)||4&a.flags&&pp(r,64)||8&a.flags&&pp(r,128)||512&a.flags&&pp(r,1024)||t(r,a)}return 524320&e.flags&&pp(r,32)||64&e.flags&&pp(r,64)||128&e.flags&&pp(r,128)||1024&e.flags&&pp(r,1024)}return!1}(e,t)||(e=ru(tu(e))),e}function au(e){return!!(4&Ig.getObjectFlags(e)&&8&e.target.objectFlags)}function iu(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=ou(n[r]);return t}function ou(e){return 131072&e.flags?iu(e.types):32&e.flags?""===e.value?32:0:64&e.flags?0===e.value?64:0:128&e.flags?e===Y?128:0:14574&e.flags}function su(e){return 14560&ou(e)?p_(e,function(e){return!(14560&ou(e))}):e}function cu(e){return 2&e.flags?st:4&e.flags?ct:8&e.flags||e===Y?Y:14336&e.flags||32&e.flags&&""===e.value||64&e.flags&&0===e.value?e:te}function uu(e,t){var r=t&~e.flags&12288;return 0===r?e:ds(4096===r?[e,q]:8192===r?[e,W]:[e,q,W])}function _u(e){return Ig.Debug.assert(P),4096&e.flags?e:ds([e,q])}function lu(e){return P?(t=e,Ae||(Ae=Bo("NonNullable",524288,void 0)||M),Ae!==M?So(Ae,[t]):Yu(t,524288)):e;var t}function du(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!wm(e)}function pu(e,t){var r=ir(e.flags,e.escapedName);return r.declarations=e.declarations,r.parent=e.parent,r.type=t,(r.target=e).valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),r}function fu(e){if(!(Mu(e)&&8388608&e.flags))return e;var t=e.regularType;if(t)return t;var r=e,n=function(e,t){for(var r=Ig.createSymbolTable(),n=0,a=mi(e);n<a.length;n++){var i=a[n],o=oa(i),s=t(o);r.set(i.escapedName,s===o?i:pu(i,s))}return r}(e,fu),a=dn(r.symbol,n,r.callSignatures,r.constructSignatures,r.stringIndexInfo,r.numberIndexInfo);return a.flags=-8388609&r.flags,a.objectFlags|=128,e.regularType=a}function mu(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedPropertyNames:void 0}}function gu(e){if(!e.resolvedPropertyNames){for(var t=Ig.createMap(),r=0,n=function e(t){if(!t.siblings){for(var r=[],n=0,a=e(t.parent);n<a.length;n++){var i=a[n];if(Mu(i)){var o=gi(i,t.propertyName);o&&d_(oa(o),function(e){r.push(e)})}}t.siblings=r}return t.siblings}(e);r<n.length;r++){var a=n[r];if(Mu(a)&&!(1024&Ig.getObjectFlags(a)))for(var i=0,o=vi(a);i<o.length;i++){var s=o[i];t.set(s.escapedName,!0)}}e.resolvedPropertyNames=Ig.arrayFrom(t.keys())}return e.resolvedPropertyNames}function yu(e){var t=I.get(e);if(t)return t;var r=ir(16777220,e);r.type=q;var n=qs(Ig.unescapeLeadingUnderscores(e));return 32&n.flags&&(r.nameType=n),I.set(e,r),r}function vu(e){return hu(e,void 0)}function hu(e,t){if(50331648&e.flags){if(12288&e.flags)return J;if(Mu(e))return function(e,t){for(var r,n,a,i,o=Ig.createSymbolTable(),s=0,c=mi(e);s<c.length;s++){var u=c[s];o.set(u.escapedName,4&u.flags?(n=t,a=oa(r=u),(i=hu(a,n&&mu(n,r.escapedName,void 0)))===a?r:pu(r,i)):u)}if(t)for(var _=0,l=gu(t);_<l.length;_++){var d=l[_];o.has(d)||o.set(d,yu(d))}var p=zi(e,0),f=zi(e,1);return dn(e.symbol,o,Ig.emptyArray,Ig.emptyArray,p&&fo(vu(p.type),p.isReadonly),f&&fo(vu(f.type),f.isReadonly))}(e,t);if(131072&e.flags){var r=t||mu(void 0,void 0,e.types),n=Ig.sameMap(e.types,function(e){return 12288&e.flags?e:hu(e,r)});return ds(n,Ig.some(n,Ac)?2:1)}if(Xc(e)||au(e))return bo(e.target,Ig.sameMap(e.typeArguments,vu))}return e}function bu(e,t){var r,n=Sn(vu(t));switch(e.kind){case 151:case 150:r=Ig.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 148:r=e.dotDotDotToken?Ig.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:Ig.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 180:r=Ig.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 232:case 153:case 152:case 155:case 156:case 190:case 191:if(!e.name)return void ar(e,Ig.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);r=Ig.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;case 176:return void ar(e,Ig.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);default:r=Ig.Diagnostics.Variable_0_implicitly_has_an_1_type}ar(e,r,Ig.declarationNameToString(Ig.getNameOfDeclaration(e)),n)}function xu(e,t){L&&T&&16777216&t.flags&&(function e(t){var r=!1;if(16777216&t.flags){if(131072&t.flags)if(Ig.some(t.types,Ac))r=!0;else for(var n=0,a=t.types;n<a.length;n++)e(u=a[n])&&(r=!0);if(Xc(t)||au(t))for(var i=0,o=t.typeArguments;i<o.length;i++)e(u=o[i])&&(r=!0);if(Mu(t))for(var s=0,c=mi(t);s<c.length;s++){var u,_=c[s];16777216&(u=oa(_)).flags&&(e(u)||ar(_.valueDeclaration,Ig.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,kn(_),Sn(vu(u))),r=!0)}}return r}(t)||bu(e,t))}function ku(e,t,r){var n,a=e.parameters.length,i=t.parameters.length;n=e.hasRestParameter&&t.hasRestParameter?Math.max(a,i):e.hasRestParameter?i:t.hasRestParameter?a:Math.min(a,i);for(var o=0;o<n;o++)r(Qd(e,o),Qd(t,o))}function Du(e,t,r,n,a){var i=a?a.map(Cu):e.map(Su),o=function(e){for(var t=0;t<i.length;t++)if(e===i[t].typeParameter)return i[t].isFixed=!0,Bu(o,t);return e};return o.typeParameters=e,o.signature=t,o.inferences=i,o.flags=r,o.compareTypes=n||vc,o}function Su(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Cu(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function Tu(e){var t,r=Ig.getObjectFlags(e);return!!(7897088&e.flags||4&r&&Ig.forEach(e.typeArguments,Tu)||16&r&&e.symbol&&10288&e.symbol.flags||32&r||393216&e.flags&&(void 0===(t=e).couldContainTypeVariables&&(t.couldContainTypeVariables=Ig.forEach(t.types,Tu)),t.couldContainTypeVariables))}function Eu(e,t){return e===t||393216&e.flags&&Ig.forEach(e.types,function(e){return Eu(e,t)})}function Nu(e,t){var r=e.id+","+t.id;if(rt.has(r))return rt.get(r);rt.set(r,void 0);var n=function(e,t){var r=vi(e);if(0!==r.length||zi(e,0)){for(var n=0,a=r;n<a.length;n++){var i=a[n];if(67108864&oa(i).flags)return}var o=cn(2064,void 0);return o.source=e,o.mappedType=t,o}}(e,t);return rt.set(r,n),n}function Au(e,t){var r=Ts(si(t).type,oi(t)),n=ci(t),a=Su(r);return wu([a],e,n),Fu(a)}function Pu(e,t,r){for(var n=0,a=262144&t.flags?yi(t):mi(t);n<a.length;n++){var i=a[n];if((r||!(16777216&i.flags))&&!Oi(e,i.escapedName))return i}}function Fu(e){return e.candidates?ds(e.candidates,2):e.contraCandidates?gs(e.contraCandidates):ie}function wu(a,e,E,N){var A,P;void 0===N&&(N=0);var F,w=!1;function I(e,t){if(Tu(t)){if(e===K){var r=F;return F=e,I(t,t),void(F=r)}if(e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)for(var n=e.aliasTypeArguments,a=t.aliasTypeArguments,i=0;i<n.length;i++)I(n[i],a[i]);else{if(131072&e.flags&&131072&t.flags&&!(256&e.flags&&256&t.flags)||262144&e.flags&&262144&t.flags){if(e===t){for(var o=0,s=e.types;o<s.length;o++)I(k=s[o],k);return}for(var c=void 0,u=0,_=e.types;u<_.length;u++)if(Iu(k=_[u],t.types))(c||(c=[])).push(k),I(k,k);else if(96&k.flags){var l=eu(k);Iu(l,t.types)&&(c||(c=[])).push(k,l)}c&&(e=Ou(e,c),t=Ou(t,c))}if(1081344&t.flags){if(67108864&e.flags||e===re)return;var d=M(t);if(d){if(!d.isFixed){if((void 0===d.priority||N<d.priority)&&(d.candidates=void 0,d.contraCandidates=void 0,d.priority=N),N===d.priority){var p=F||e;w?d.contraCandidates=Ig.append(d.contraCandidates,p):d.candidates=Ig.append(d.candidates,p)}8&N||!(32768&t.flags)||Eu(E,t)||(d.topLevel=!1)}return}}if(4&Ig.getObjectFlags(e)&&4&Ig.getObjectFlags(t)&&e.target===t.target){n=e.typeArguments||Ig.emptyArray,a=t.typeArguments||Ig.emptyArray;var f=n.length<a.length?n.length:a.length,m=Lc(e.target);for(i=0;i<f;i++)i<m.length&&2===m[i]?O(n[i],a[i]):I(n[i],a[i])}else if(524288&e.flags&&524288&t.flags)w=!w,I(e.type,t.type),w=!w;else if(($c(e)||2&e.flags)&&524288&t.flags){var g=function(e){var n=Ig.createSymbolTable();d_(e,function(e){if(32&e.flags){var t=Ig.escapeLeadingUnderscores(e.value),r=ir(4,t);r.type=J,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),n.set(t,r)}});var t=2&e.flags?fo(ie,!1):void 0;return dn(void 0,n,Ig.emptyArray,Ig.emptyArray,t,void 0)}(e);w=!w;var y=N;N|=16,I(g,t.type),N=y,w=!w}else if(1048576&e.flags&&1048576&t.flags)I(e.objectType,t.objectType),I(e.indexType,t.indexType);else if(2097152&e.flags&&2097152&t.flags)I(e.checkType,t.checkType),I(e.extendsType,t.extendsType),I(Fs(e),Fs(t)),I(ws(e),ws(t));else if(393216&t.flags){for(var v=0,h=void 0,b=0,x=a=t.types;b<x.length;b++){var k;M(k=x[b])?(h=k,v++):I(e,k)}1===v&&(y=N,N|=1,I(e,h),N=y)}else if(131072&e.flags)for(var D=0,S=n=e.types;D<S.length;D++)I(S[D],t);else if(32&N&&8159232&e.flags||(e=Pi(e)),327680&e.flags){var C=e.id+","+t.id;if(P&&P.get(C))return;(P||(P=Ig.createMap())).set(C,!0);var T=65536&t.flags&&!(16&Ig.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)?t.symbol:void 0;if(T){if(Ig.contains(A,T))return;(A||(A=[])).push(T),L(e,t),A.pop()}else L(e,t)}}}}function O(e,t){R||64&N?(w=!w,I(e,t),w=!w):I(e,t)}function M(e){if(1081344&e.flags)for(var t=0,r=a;t<r.length;t++){var n=r[t];if(e===n.typeParameter)return n}}function L(e,t){if(pi(e)&&pi(t)&&(I(si(e),si(t)),I(ci(e),ci(t))),32&Ig.getObjectFlags(t)){var r=si(t);if(524288&r.flags){var n=M(r.type);if(n&&!n.isFixed){var a=Nu(e,t);if(a){var i=N;N|=2,I(a,n.typeParameter),N=i}}return}if(32768&r.flags)return i=N,N|=4,I(vs(e),r),N=i,void I(ds(Ig.map(vi(e),oa)),ci(t))}Pu(e,t,!1)&&Pu(t,e,!1)||(function(e,t){for(var r=mi(t),n=0,a=r;n<a.length;n++){var i=a[n],o=Oi(e,i.escapedName);o&&I(oa(o),oa(i))}}(e,t),o(e,t,0),o(e,t,1),function(e,t){var r=Ji(t,0);if(r){var n=Ji(e,0)||ji(e,0);n&&I(n,r)}var a=Ji(t,1);if(a){var n=Ji(e,1)||Ji(e,0)||ji(e,1);n&&I(n,a)}}(e,t))}function o(e,t,r){for(var n=Li(e,r),a=Li(t,r),i=n.length,o=a.length,s=i<o?i:o,c=0;c<s;c++)u(uo(n[i-s+c]),uo(a[o-s+c]))}function u(e,t){ku(e,t,O);var r=to(e),n=to(t);r&&n&&r.kind===n.kind?I(r.type,n.type):I(ro(e),ro(t))}I(e,E)}function Iu(e,t){for(var r=0,n=t;r<n.length;r++)if(gc(n[r],e))return!0;return!1}function Ou(e,t){for(var r=[],n=0,a=e.types;n<a.length;n++){var i=a[n];Iu(i,t)||r.push(i)}return 131072&e.flags?ds(r):gs(r)}function Mu(e){return!!(128&Ig.getObjectFlags(e))}function Lu(e){return 28&e.priority?gs(e.contraCandidates):(t=e.contraCandidates,Ig.reduceLeft(t,function(e,t){return hc(t,e)?t:e}));var t}function Ru(e,t,r){var n,a,i=function(e){if(1<e.length){var t=Ig.filter(e,Mu);if(t.length){var r=vu(ds(t,2));return Ig.concatenate(Ig.filter(e,function(e){return!Mu(e)}),[r])}}return e}(e.candidates),o=!e.topLevel||(n=e.typeParameter,(a=bi(n))&&pp(a,540670))||!e.isFixed&&Eu(ro(r),e.typeParameter)?i:Ig.sameMap(i,tu);return vu(1&t.flags||28&e.priority?ds(o,2):function(e){if(!P)return Gc(e);var t=Ig.filter(e,function(e){return!(12288&e.flags)});return t.length?uu(Gc(t),12288&iu(e)):ds(e,2)}(o))}function Bu(e,t){var r,n,a=e.inferences[t],i=a.inferredType;if(!i){var o=e.signature;if(o)if(a.candidates)16384&(i=Ru(a,e,o)).flags&&a.contraCandidates&&(i=Lu(a));else if(a.contraCandidates)i=Lu(a);else if(2&e.flags)i=re;else{var s=Ai(a.typeParameter);i=s?uc(s,$s((r=e.signature.typeParameters,n=t,function(e){return r.indexOf(e)>=n?ie:e}),e)):zu(!!(4&e.flags))}else i=Fu(a);i=ru(i),a.inferredType=i;var c=bi(a.typeParameter);if(c){var u=uc(c,e);e.compareTypes(i,Ha(u,i))||(a.inferredType=i=ru(u))}}return i}function zu(e){return e?J:ie}function Ju(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Bu(e,r));return t}function ju(e){var t=fr(e);return t.resolvedSymbol||(t.resolvedSymbol=!Ig.nodeIsMissing(e)&&vr(e,e.escapedText,68264895,Ig.Diagnostics.Cannot_find_name_0,e,!Ig.isWriteOnlyAccess(e),!1,Ig.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||M),t.resolvedSymbol}function Ku(e){return!!Ig.findAncestor(e,function(e){return 164===e.kind||71!==e.kind&&145!==e.kind&&"quit"})}function Uu(e){if(178!==e.parent.kind)return""+e.parent.elements.indexOf(e);var t=e.propertyName||e.name;switch(t.kind){case 71:return Ig.idText(t);case 146:return Ig.isStringOrNumericLiteral(t.expression)?t.expression.text:void 0;case 9:case 8:return t.text;default:Ig.Debug.fail("Unexpected name kind for binding element name")}}function qu(e,t){switch(e.kind){case 71:return 71===t.kind&&ju(e)===ju(t)||(230===t.kind||180===t.kind)&&rn(ju(e))===en(t);case 99:return 99===t.kind;case 97:return 97===t.kind;case 183:return 183===t.kind&&e.name.escapedText===t.name.escapedText&&qu(e.expression,t.expression);case 180:if(183!==t.kind)return!1;var r=t;if(r.name.escapedText!==Uu(e))return!1;if(180===e.parent.parent.kind&&qu(e.parent.parent,r.expression))return!0;if(230===e.parent.parent.kind){var n=e.parent.parent.initializer;return n&&qu(n,r.expression)}}return!1}function Vu(e,t){for(;183===e.kind;)if(qu(e=e.expression,t))return!0;return!1}function Wu(e,t){return 183===t.kind&&Vu(e,t.expression)&&Hu(function e(t){if(71===t.kind)return oa(ju(t));if(183===t.kind){var r=e(t.expression);return r&&Bn(r,t.name.escapedText)}}(t.expression),t.name.escapedText)}function Hu(e,t){if(e&&131072&e.flags){var r=wi(e,t);if(r&&2&Ig.getCheckFlags(r))return void 0===r.isDiscriminantProperty&&(r.isDiscriminantProperty=32&r.checkFlags&&$c(oa(r))),r.isDiscriminantProperty}return!1}function Gu(e,t){return qu(e,t)||Vu(e,t)}function Xu(e,t){if(e!==t){if(16384&t.flags)return t;var r=p_(e,function(e){return function(e,t){if(!(131072&e.flags))return bc(e,t);for(var r=0,n=e.types;r<n.length;r++)if(bc(n[r],t))return!0;return!1}(t,e)});if(!(16384&r.flags))return r}return e}function Qu(e){var t,r,n=e.flags;if(2&n)return P?4079361:4194049;if(32&n){var a=""===e.value;return P?a?3030785:1982209:a?3145473:4194049}if(20&n)return P?4079234:4193922;if(64&n){var i=0===e.value;return P?i?3030658:1982082:i?3145346:4193922}return 8&n?P?4078980:4193668:136&n?P?e===Y?3030404:1981828:e===Y?3145092:4193668:65536&n?(r=fi(t=e)).callSignatures.length||r.constructSignatures.length||r.members.get("bind")&&hc(t,ve)?P?1970144:4181984:P?1972176:4184016:6144&n?2457472:8192&n?2340752:1536&n?P?1981320:4193160:134217728&n?P?1972176:4184016:7897088&n?Qu(Si(e)||ie):393216&n?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Qu(n[r]);return t}(e.types):4194303}function Yu(e,t){return p_(e,function(e){return 0!=(Qu(e)&t)})}function Zu(e,t){if(t){var r=Ip(t);return ds([Yu(e,131072),r])}return e}function $u(e,t){var r=Ig.getTextOfPropertyName(t);return Bn(e,r)||vl(r)&&Ji(e,1)||Ji(e,0)||U}function e_(e,t){return Yc(e)&&Bn(e,""+t)||Jf(e,void 0,!1,!1)||U}function t_(e){return rs(Jf(e,void 0,!1,!1)||U)}function r_(e){return 198===e.parent.kind&&e.parent.left===e||220===e.parent.kind&&e.parent.initializer===e}function n_(e){return $u(a_(e.parent),e.name)}function a_(e){var t,r,n,a,i=e.parent;switch(i.kind){case 219:return G;case 220:return zf(i.expression,i.awaitModifier)||U;case 198:return 181===(a=i).parent.kind&&r_(a.parent)||268===a.parent.kind&&r_(a.parent.parent)?Zu(a_(a),a.right):Ip(a.right);case 192:return q;case 181:return n=e,e_(a_(r=i),r.elements.indexOf(n));case 202:return t_(a_(i.parent));case 268:return n_(i);case 269:return Zu(n_(t=i),t.objectAssignmentInitializer)}return U}function i_(e){return e.initializer?fr(t=e.initializer).resolvedType||Ip(t):219===e.parent.parent.kind?G:220===e.parent.parent.kind&&zf(e.parent.parent.expression,e.parent.parent.awaitModifier)||U;var t}function o_(e){return 230===e.kind?i_(e):(r=(t=e).parent,n=o_(r.parent),Zu(178===r.kind?$u(n,t.propertyName||t.name):t.dotDotDotToken?t_(n):e_(n,r.elements.indexOf(t)),t.initializer));var t,r,n}function s_(e){return 230===e.kind||180===e.kind?o_(e):a_(e)}function c_(e){switch(e.kind){case 189:return c_(e.expression);case 198:switch(e.operatorToken.kind){case 58:return c_(e.left);case 26:return c_(e.right)}}return e}function u_(e){if(264===e.kind){var t=Us(Ip(e.expression));return Zc(t)?t:void 0}return te}function __(e){var t=fr(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var a=u_(n[r]);if(void 0===a)return t.switchTypes=Ig.emptyArray;t.switchTypes.push(a)}}return t.switchTypes}function l_(e,t){return e===t||131072&t.flags&&function(e,t){if(131072&e.flags){for(var r=0,n=e.types;r<n.length;r++){var a=n[r];if(!os(t.types,a))return!1}return!0}return!!(256&e.flags&&Ca(e)===t)||os(t.types,e)}(e,t)}function d_(e,t){return 131072&e.flags?Ig.forEach(e.types,t):t(e)}function p_(e,t){if(131072&e.flags){var r=e.types,n=Ig.filter(r,t);return n===r?e:fs(n)}return t(e)?e:te}function f_(e,t,r){if(16384&e.flags)return e;if(!(131072&e.flags))return t(e);for(var n,a,i=0,o=e.types;i<o.length;i++){var s=t(o[i]);s&&(n?a?a.push(s):a=[n,s]:n=s)}return a?ds(a,r?0:1):n}function m_(e,t){return p_(e,function(e){return 0!=(e.flags&t)})}function g_(e,t){return l_(G,e)&&pp(t,32)||l_(X,e)&&pp(t,64)?f_(e,function(e){return 2&e.flags?m_(t,34):4&e.flags?m_(t,68):e}):e}function y_(e){return 0===e.flags}function v_(e){return 0===e.flags?e.type:e}function h_(e,t){return t?{flags:0,type:e}:e}function b_(e){return h[e.id]||(h[e.id]=(t=e,(r=cn(256)).elementType=t,r));var t,r}function x_(e,t){var r=eu(function(e){var t=e.contextualType;e.contextualType=J;var r=Ip(e);return e.contextualType=t,r}(t));return l_(r,e.elementType)?e:b_(ds([e.elementType,r]))}function k_(e){return e.finalArrayType||(e.finalArrayType=16384&(t=e.elementType).flags?Ee:rs(131072&t.flags?ds(t.types,2):t));var t}function D_(e){return 256&Ig.getObjectFlags(e)?k_(e):e}function S_(e){return 256&Ig.getObjectFlags(e)?e.elementType:te}function C_(e,t){return function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var a=n[r];if(!(16384&a.flags)){if(!(256&Ig.getObjectFlags(a)))return!1;t=!0}}return t}(e)?b_(ds(Ig.map(e,S_))):ds(Ig.sameMap(e,D_),t)}function T_(e){var t=function e(t){var r=t.parent;return 189===r.kind||198===r.kind&&58===r.operatorToken.kind&&r.left===t||198===r.kind&&26===r.operatorToken.kind&&r.right===t?e(r):t}(e),r=t.parent,n=183===r.kind&&("length"===r.name.escapedText||185===r.parent.kind&&Ig.isPushOrUnshiftIdentifier(r.name)),a=184===r.kind&&r.expression===t&&198===r.parent.kind&&58===r.parent.operatorToken.kind&&r.parent.left===r&&!Ig.isAssignmentTarget(r.parent)&&fp(Ip(r.argumentExpression),84);return n||a}function E_(e){var t=fr(e);return void 0===t.maybeTypePredicate&&(t.maybeTypePredicate=function(e){if(97!==e.expression.kind){var t=Hl(e.expression);if(t!==re){var r=Pi(t);return r!==U&&Ig.some(Li(r,0),eo)}}return!1}(e)),t.maybeTypePredicate}function N_(g,y,u,_,e){var v;void 0===u&&(u=y);var l=0;if(ot)return U;if(!g.flowNode||!e&&!(142575359&y.flags))return y;var d=it,t=v_(h(g.flowNode));it=d;var r=256&Ig.getObjectFlags(t)&&T_(g)?Te:D_(t);return g.parent&&207===g.parent.kind&&16384&Yu(r,524288).flags?y:r;function h(e){if(2500===l)return ot=!0,t=g,r=Ig.findAncestor(t,Ig.isFunctionOrModuleBlock),n=Ig.getSourceFileOfNode(t),a=Ig.getSpanOfTokenAtPosition(n,r.statements.pos),Tt.add(Ig.createFileDiagnostic(n,a.start,a.length,Ig.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),U;var t,r,n,a;for(l++;;){var i=e.flags;if(1024&i)for(var o=d;o<it;o++)if(xt[o]===e)return l--,kt[o];var s=void 0;if(4096&i)e.locked=!0,s=h(e.antecedent),e.locked=!1;else{if(2048&i){e=e.antecedent;continue}if(16&i){if(!(s=p(e))){e=e.antecedent;continue}}else if(96&i)s=m(e);else if(128&i)s=b(e);else if(12&i){if(1===e.antecedents.length){e=e.antecedents[0];continue}s=4&i?x(e):k(e)}else if(256&i){if(!(s=f(e))){e=e.antecedent;continue}}else if(2&i){var c=e.container;if(c&&c!==_&&183!==g.kind&&99!==g.kind){e=c.flowNode;continue}s=u}else s=Ff(y)}return 1024&i&&(xt[it]=e,kt[it]=s,it++),l--,s}}function p(e){var t,r=e.node;if(qu(g,r)){if(2===Ig.getAssignmentTargetKind(r)){var n=h(e.antecedent);return h_(eu(v_(n)),y_(n))}if(y===j||y===Ee){if(230===(t=r).kind&&t.initializer&&Vn(t.initializer)||180!==t.kind&&198===t.parent.kind&&Vn(t.parent.right))return b_(te);var a=eu(s_(r));return bc(a,y)?a:Te}return 131072&y.flags?Xu(y,s_(r)):y}if(Vu(g,r))return y}function f(e){if(y===j||y===Ee){var t=e.node,r=185===t.kind?t.expression.expression:t.left.expression;if(qu(g,c_(r))){var n=h(e.antecedent),a=v_(n);if(256&Ig.getObjectFlags(a)){var i=a;if(185===t.kind)for(var o=0,s=t.arguments;o<s.length;o++)i=x_(i,s[o]);else fp(Ip(t.left.argumentExpression),84)&&(i=x_(i,t.right));return i===a?n:h_(i,y_(n))}return n}}}function m(e){var t=h(e.antecedent),r=v_(t);if(16384&r.flags)return t;var n=0!=(32&e.flags),a=D_(r),i=N(a,e.expression,n);if(i===a)return t;var o=y_(t);return h_(o&&16384&i.flags?re:i,o)}function b(t){var e=h(t.antecedent),r=v_(e),n=t.switchStatement.expression;return qu(g,n)?r=a(r,t.switchStatement,t.clauseStart,t.clauseEnd):s(n,r)&&(r=c(r,n,function(e){return a(e,t.switchStatement,t.clauseStart,t.clauseEnd)})),h_(r,y_(e))}function x(e){for(var t=[],r=!1,n=!1,a=0,i=e.antecedents;a<i.length;a++){var o=i[a];if(!(2048&o.flags&&o.lock.locked)){var s=h(o),c=v_(s);if(c===y&&y===u)return c;Ig.pushIfUnique(t,c),l_(c,y)||(r=!0),y_(s)&&(n=!0)}}return h_(C_(t,r?2:1),n)}function k(e){var t,r=((t=e).id||(t.id=Rg,Rg++),t.id),n=yt[r]||(yt[r]=Ig.createMap());if(!v&&!(v=function e(t){if(71===t.kind){var r=ju(t);return r!==M?(w_(t)?"@":"")+zg(r):void 0}if(99===t.kind)return"0";if(183===t.kind)return(a=e(t.expression))&&a+"."+Ig.idText(t.name);if(180===t.kind){var n=t.parent.parent,a=180===n.kind?e(n):n.initializer&&e(n.initializer),i=Uu(t);return a&&i&&a+"."+i}}(g)))return y;var a=n.get(v);if(a)return a;for(var i=nt;i<at;i++)if(vt[i]===e&&ht[i]===v&&bt[i].length)return h_(C_(bt[i],1),!0);var o,s=[],c=!1;vt[at]=e,ht[at]=v,bt[at]=s;for(var u=0,_=e.antecedents;u<_.length;u++){var l=_[u];at++;var d=h(l);at--,o||(o=d);var p=v_(d),f=n.get(v);if(f)return f;if(Ig.pushIfUnique(s,p),l_(p,y)||(c=!0),p===y)break}var m=C_(s,c?2:1);return y_(o)?h_(m,!0):(n.set(v,m),m)}function s(e,t){return 183===e.kind&&131072&t.flags&&qu(g,e.expression)&&Hu(t,e.name.escapedText)}function c(e,t,r){var n=t.name.escapedText,a=Bn(e,n),i=a&&r(a);return a===i?e:p_(e,function(e){return kc(Bn(e,n),i)})}function D(e,t,r){return qu(g,t)?Yu(e,r?1048576:2097152):s(t,y)?c(e,t,function(e){return Yu(e,r?1048576:2097152)}):Wu(g,t)?y:e}function S(e,t,r){if(196608&e.flags||32768&e.flags&&e.isThisType){var n=Ig.escapeLeadingUnderscores(t.text);return p_(e,function(e){return function(e,t,r){if(zi(e,0))return!0;var n=Oi(e,t);return n?!!(16777216&n.flags)||r:!r}(e,n,r)})}return e}function n(e,t,r){switch(t.operatorToken.kind){case 58:return D(e,t.left,r);case 32:case 33:case 34:case 35:var n=t.operatorToken.kind,a=c_(t.left),i=c_(t.right);if(193===a.kind&&Ig.isStringLiteralLike(i))return T(e,a,n,i,r);if(193===i.kind&&Ig.isStringLiteralLike(a))return T(e,i,n,a,r);if(qu(g,a))return C(e,n,i,r);if(qu(g,i))return C(e,n,a,r);if(s(a,y))return c(e,a,function(e){return C(e,n,i,r)});if(s(i,y))return c(e,i,function(e){return C(e,n,a,r)});if(Wu(g,a)||Wu(g,i))return y;break;case 93:return function(e,t,r){var n=c_(t.left);if(!qu(g,n))return Vu(g,n)?y:e;var a,i=Ip(t.right);if(!hc(i,ve))return e;var o=Oi(i,"prototype");if(o){var s=oa(o);zn(s)||(a=s)}if(zn(e)&&(a===ye||a===ve))return e;if(!a){var c=void 0;2&Ig.getObjectFlags(i)?c=Ra(i).declaredConstructSignatures:16&Ig.getObjectFlags(i)&&(c=Li(i,1)),c&&c.length&&(a=ds(Ig.map(c,function(e){return ro(so(e))})))}return a?E(e,a,r,xc):e}(e,t,r);case 92:var o=c_(t.right);if(Ig.isStringLiteralLike(t.left)&&qu(g,o))return S(e,t.left,r);break;case 26:return N(e,t.right,r)}return e}function C(e,t,r,n){if(1&e.flags)return e;33!==t&&35!==t||(n=!n);var a=Ip(r);if(12288&a.flags)return P?Yu(e,32===t||33===t?n?65536:524288:95===r.kind?n?32768:262144:n?16384:131072):e;if(134283777&e.flags)return e;if(n){var i=p_(e,function(e){return Dc(e,a)});return 16384&i.flags?e:g_(i,a)}if(Zc(a)){var o=Us(a);return p_(e,function(e){return Us(e)!==o})}return e}function T(e,t,r,n,a){var i=c_(t.expression);if(!qu(g,i))return Vu(g,i)?y:e;if(33!==r&&35!==r||(a=!a),a&&!(131072&e.flags)){var o=Ht.get(n.text);if(o){if(hc(o,e))return o;if(7897088&e.flags&&hc(o,Si(e)||J))return gs([e,o])}}return Yu(e,a?Vt.get(n.text)||64:Wt.get(n.text)||8192)}function a(e,t,r,n){var a=__(t);if(!a.length)return e;var i=a.slice(r,n),o=r===n||Ig.contains(i,te),s=ds(i),c=16384&s.flags?te:g_(p_(e,function(e){return Dc(s,e)}),s);if(!o)return c;var u=p_(e,function(e){return!(Zc(e)&&Ig.contains(a,Us(e)))});return 16384&c.flags?u:ds([c,u])}function E(e,t,r,n){if(!r)return p_(e,function(e){return!n(e,t)});if(131072&e.flags){var a=p_(e,function(e){return n(e,t)});if(!(16384&a.flags))return a}return hc(t,e)?t:bc(e,t)?e:bc(t,e)?t:gs([e,t])}function i(e,t,r){if(!function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(Gu(t,n[r]))return!0;return!(183!==e.expression.kind||!Gu(t,e.expression.expression))}(t,g)||!E_(t))return e;var n=Ld(t),a=to(n);if(!a)return e;if(zn(e)&&(a.type===ye||a.type===ve))return e;if(Ig.isIdentifierTypePredicate(a)){var i=t.arguments[a.parameterIndex-(n.thisParameter?1:0)];if(i){if(qu(g,i))return E(e,a.type,r,hc);if(Vu(g,i))return y}}else{var o=Ig.skipParentheses(t.expression);if(184===o.kind||183===o.kind){var s=o,c=Ig.skipParentheses(s.expression);if(qu(g,c))return E(e,a.type,r,hc);if(Vu(g,c))return y}}return e}function N(e,t,r){switch(t.kind){case 71:case 99:case 97:case 183:return D(e,t,r);case 185:return i(e,t,r);case 189:return N(e,t.expression,r);case 198:return n(e,t,r);case 196:if(51===t.operator)return N(e,t.operand,!r)}return e}}function A_(e){return Ig.findAncestor(e.parent,function(e){return Ig.isFunctionLike(e)&&!Ig.getImmediatelyInvokedFunctionExpression(e)||238===e.kind||272===e.kind||151===e.kind})}function P_(e){var t,r=Ig.getRootDeclaration(e.valueDeclaration).parent,n=fr(r);return 4194304&n.flags||(n.flags|=4194304,t=r,Ig.findAncestor(t.parent,function(e){return Ig.isFunctionLike(e)&&!!(4194304&fr(e).flags)})||F_(r)),e.isAssigned||!1}function F_(e){if(71===e.kind){if(Ig.isAssignmentTarget(e)){var t=ju(e);t.valueDeclaration&&148===Ig.getRootDeclaration(t.valueDeclaration).kind&&(t.isAssigned=!0)}}else Ig.forEachChild(e,F_)}function w_(e){var t=e.parent;return 183===t.kind||185===t.kind&&t.expression===e||184===t.kind&&t.expression===e||180===t.kind&&t.name===e&&!!t.initializer}function I_(e){return 7372800&e.flags&&pp(Si(e)||ie,12288)}function O_(e,t){return w_(t)&&d_(e,I_)?f_(vu(e),Ci):e}function M_(e,t){!wr(e,67216319)||Ku(t)||Um(Or(e))||Lr(e)}function L_(e){var t=ju(e);if(t===M)return U;if(t===F){var r=Ig.getContainingFunction(e);return w<2&&(191===r.kind?ar(e,Ig.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Ig.hasModifier(r,256)&&ar(e,Ig.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),fr(r).flags|=8192,oa(t)}e.parent&&Ig.isPropertyAccessExpression(e.parent)&&e.parent.expression===e||M_(t,e);var n=rn(t),a=n.valueDeclaration;if(32&n.flags)if(233===a.kind&&Ig.nodeIsDecorated(a))for(r=Ig.getContainingClass(e);void 0!==r;){if(r===a&&r.name!==e){fr(a).flags|=8388608,fr(e).flags|=16777216;break}r=Ig.getContainingClass(r)}else if(203===a.kind)for(r=Ig.getThisContainer(e,!1);void 0!==r;){if(r.parent===a){151===r.kind&&Ig.hasModifier(r,32)&&(fr(a).flags|=8388608,fr(e).flags|=16777216);break}r=Ig.getThisContainer(r,!1)}Ef(e,e),Df(e,e),Sf(e,e),function(e,t){if(!(2<=w||0==(34&t.flags)||267===t.valueDeclaration.parent.kind)){for(var r,n,a=Ig.getEnclosingBlockScopeContainer(t.valueDeclaration),i=(r=e.parent,n=a,!!Ig.findAncestor(r,function(e){return e===n?"quit":Ig.isFunctionLike(e)})),o=a,s=!1;o&&!Ig.nodeStartsNewLexicalEnvironment(o);){if(Ig.isIterationStatement(o,!1)){s=!0;break}o=o.parent}s&&(i&&(fr(o).flags|=65536),218===a.kind&&Ig.getAncestor(t.valueDeclaration,231).parent===a&&function(e,t){for(var r=e;189===r.parent.kind;)r=r.parent;var n=!1;if(Ig.isAssignmentTarget(r))n=!0;else if(196===r.parent.kind||197===r.parent.kind){var a=r.parent;n=43===a.operator||44===a.operator}return!!n&&!!Ig.findAncestor(r,function(e){return e===t?"quit":e===t.statement})}(e,a)&&(fr(t.valueDeclaration).flags|=2097152),fr(t.valueDeclaration).flags|=262144),i&&(fr(t.valueDeclaration).flags|=131072)}}(e,t);var i=O_(oa(n),e),o=Ig.getAssignmentTargetKind(e);if(o){if(!(3&n.flags))return ar(e,Ig.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,kn(t)),U;if(up(n))return ar(e,Ig.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,kn(t)),U}var s=2097152&n.flags;if(3&n.flags){if(1===o)return i}else{if(!s)return i;a=Ig.find(t.declarations,Kg)}if(!a)return i;for(var c,u=148===Ig.getRootDeclaration(a).kind,_=A_(a),l=A_(e),d=l!==_,p=e.parent&&e.parent.parent&&Ig.isSpreadAssignment(e.parent)&&r_(e.parent.parent);l!==_&&(190===l.kind||191===l.kind||Ig.isObjectLiteralOrClassExpressionMethod(l))&&(3&(c=n).flags&&0!=(2&Ul(c))&&oa(c)!==Ee||u&&!P_(n));)l=A_(l);var f,m,g=u||s||d||p||i!==j&&i!==Ee&&(!P||0!=(1&i.flags)||Ku(e)||250===e.parent.kind)||207===e.parent.kind||230===a.kind&&a.exclamationToken||2097152&a.flags,y=N_(e,i,g?u?(f=i,m=a,P&&148===m.kind&&m.initializer&&4096&ou(f)&&!(4096&ou(Op(m.initializer)))?Yu(f,131072):f):i:i===j||i===Ee?q:_u(i),l,!g);if(i===j||i===Ee){if(y===j||y===Ee)return T&&(ar(Ig.getNameOfDeclaration(a),Ig.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,kn(t),Sn(y)),ar(e,Ig.Diagnostics.Variable_0_implicitly_has_an_1_type,kn(t),Sn(y))),Ff(y)}else if(!g&&!(4096&ou(i))&&4096&ou(y))return ar(e,Ig.Diagnostics.Variable_0_is_used_before_being_assigned,kn(t)),i;return o?eu(y):y}function R_(e,t){fr(e).flags|=2,151===t.kind||154===t.kind?fr(t.parent).flags|=4:fr(t).flags|=4}function B_(e){return Ig.isSuperCall(e)?e:Ig.isFunctionLike(e)?void 0:Ig.forEachChild(e,B_)}function z_(e){var t=fr(e);return void 0===t.hasSuperCall&&(t.superCall=B_(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function J_(e){return ha(Aa(en(e)))===H}function j_(e,t,r){var n=t.parent;if(Ig.getClassExtendsHeritageClauseElement(n)&&!J_(n)){var a=z_(t);(!a||a.end>e.pos)&&ar(e,r)}}function K_(e,t){if(void 0===t&&(t=Ig.getThisContainer(e,!1)),Ig.isFunctionLike(t)&&(!G_(e)||Ig.getThisParameter(t))){if(190===t.kind&&198===t.parent.kind&&3===Ig.getSpecialPropertyAssignmentKind(t.parent)){var r=Op(t.parent.left.expression.expression).symbol;if(r&&r.members&&16&r.flags)return N_(e,Jd(r))}var n=ta(t)||W_(t);if(n)return N_(e,n)}if(Ig.isClassLike(t.parent)){var a=en(t.parent);return N_(e,i=Ig.hasModifier(t,32)?oa(a):Aa(a).thisType)}var i;if(Ig.isInJavaScriptFile(e)&&(i=function(e){var t=Ig.getJSDocType(e);if(t&&280===t.kind){var r=t;if(0<r.parameters.length&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Hs(r.parameters[0].type)}}(t))&&i!==U)return N_(e,i)}function U_(e,t){return!!Ig.findAncestor(e,function(e){return e===t?"quit":148===e.kind})}function q_(e){var t=185===e.parent.kind&&e.parent.expression===e,r=Ig.getSuperContainer(e,!0),n=!1;if(!t)for(;r&&191===r.kind;)r=Ig.getSuperContainer(r,!0),n=w<2;var a,i=0;if(!(a=r)||(t?154!==a.kind:!Ig.isClassLike(a.parent)&&182!==a.parent.kind||(Ig.hasModifier(a,32)?153!==a.kind&&152!==a.kind&&155!==a.kind&&156!==a.kind:153!==a.kind&&152!==a.kind&&155!==a.kind&&156!==a.kind&&151!==a.kind&&150!==a.kind&&154!==a.kind))){var o=Ig.findAncestor(e,function(e){return e===r?"quit":146===e.kind});return o&&146===o.kind?ar(e,Ig.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?ar(e,Ig.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(Ig.isClassLike(r.parent)||182===r.parent.kind)?ar(e,Ig.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):ar(e,Ig.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),U}if(t||154!==r.kind||j_(e,r,Ig.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=Ig.hasModifier(r,32)||t?512:256,fr(e).flags|=i,153===r.kind&&Ig.hasModifier(r,256)&&(Ig.isSuperProperty(e.parent)&&Ig.isAssignmentTarget(e.parent)?fr(r).flags|=4096:fr(r).flags|=2048),n&&R_(e.parent,r),182===r.parent.kind)return w<2?(ar(e,Ig.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),U):J;var s=r.parent;if(!Ig.getClassExtendsHeritageClauseElement(s))return ar(e,Ig.Diagnostics.super_can_only_be_referenced_in_a_derived_class),U;var c=Aa(en(s)),u=c&&ba(c)[0];return u?154===r.kind&&U_(e,r)?(ar(e,Ig.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),U):512===i?ha(c):Ha(u,c.thisType):U}function V_(e){return 4&Ig.getObjectFlags(e)&&e.target===Ce?e.typeArguments[0]:void 0}function W_(e){if(191!==e.kind){if(fc(e)){var t=fl(e);if(t){var r=t.thisParameter;if(r)return oa(r)}}var n,a=Ig.isInJavaScriptFile(e);if(E||a){var i=153!==(n=e).kind&&155!==n.kind&&156!==n.kind||182!==n.parent.kind?190===n.kind&&268===n.parent.kind?n.parent.parent:void 0:n.parent;if(i){for(var o=il(i),s=i,c=o;c;){var u=f_(c,function(e){return 262144&e.flags?Ig.forEach(e.types,V_):V_(e)});if(u)return uc(u,sl(i));if(268!==s.parent.kind)break;c=il(s=s.parent.parent)}return o?lu(o):Tp(i)}var _=e.parent;if(198===_.kind&&58===_.operatorToken.kind){var l=_.left;if(183===l.kind||184===l.kind){var d=l.expression;if(a&&Ig.isIdentifier(d)){var p=Ig.getSourceFileOfNode(_);if(p.commonJsModuleIndicator&&ju(d)===p.symbol)return}return Tp(d)}}}}}function H_(e){var t=e.parent;if(fc(t)){var r=Ig.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var n=t.parameters.indexOf(e);if(e.dotDotDotToken){for(var a=[],i=n;i<r.arguments.length;i++)a.push(tu(Op(r.arguments[i])));return a.length?rs(ds(a)):void 0}var o=fr(r),s=o.resolvedSignature;o.resolvedSignature=Xe;var c=n<r.arguments.length?tu(Op(r.arguments[n])):e.initializer?void 0:V;return o.resolvedSignature=s,c}var u=fl(t);if(u){var _=Ig.hasRestParameter(t),l=t.parameters.length-(_?1:0);if(n=t.parameters.indexOf(e),void 0===Ig.getThisParameter(t)||u.thisParameter||(Ig.Debug.assert(0!==n),n-=1),n<l)return Qd(u,n);if(_&&n===t.parameters.length-1&&Hc(u,t.parameters.length-1))return oa(Ig.lastOrUndefined(u.parameters))}}}function G_(e){for(var t=!1;e.parent&&!Ig.isFunctionLike(e.parent);){if(Ig.isParameter(e.parent)&&(t||e.parent.initializer===e))return!0;Ig.isBindingElement(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}return!1}function X_(e){if(154===e.kind||Ig.getEffectiveReturnTypeNode(e)||Wf(e))return ro(Qi(e));var t,r=dl(e);return!r||!(t=r).resolvedReturnType&&0<=On(t,3)?void 0:ro(r)}function Q_(e,t){var r=bd(e).indexOf(t);return-1===r?void 0:Y_(e,r)}function Y_(e,t){return Qd(fr(e).resolvedSignature===Ye?Ye:Ld(e),t)}function Z_(e){var t=e.parent,r=t.left,n=t.operatorToken,a=t.right;switch(n.kind){case 58:return e===a&&function(e){var t=Ig.getSpecialPropertyAssignmentKind(e);switch(t){case 0:return!0;case 5:return!e.left.symbol;case 1:case 2:case 3:case 4:case 6:return!1;default:Ig.Debug.assertNever(t)}}(t)?Ip(r):void 0;case 54:var i=ol(t);return i||e!==a||Ig.getDeclaredJavascriptInitializer(t.parent)||Ig.getAssignedJavascriptInitializer(t)?i:Ip(r,!0);case 53:case 26:return e===a?ol(t):void 0;default:return}}function $_(e,r){return f_(e,function(e){var t=458752&e.flags?Oi(e,r):void 0;return t?oa(t):void 0},!0)}function el(e,t){return f_(e,function(e){return Bi(e,t)},!0)}function tl(e){var t=il(e.parent);if(t){if(!ja(e)){var r=$_(t,en(e).escapedName);if(r)return r}return yl(e.name)&&el(t,1)||el(t,0)}}function rl(e,t){return e&&($_(e,""+t)||el(e,1)||jf(e,void 0,!1,!1,!1))}function nl(e){var t,r,n,a=e.parent;return Ig.isJsxAttributeLike(a)?ol(e):Ig.isJsxElement(a)?(r=il((t=a).openingElement.tagName),n=Il(Pl(t)),r&&!zn(r)&&n&&""!==n?$_(r,n):void 0):void 0}function al(e){if(Ig.isJsxAttribute(e)){var t=il(e.parent);if(!t||zn(t))return;return $_(t,e.name.escapedText)}return ol(e.parent)}function il(e){var t,r=ol(e);if(!((r=r&&f_(r,Pi))&&131072&r.flags&&Ig.isObjectLiteralExpression(e)))return r;e:for(var n=0,a=e.properties;n<a.length;n++){var i=a[n];if(i.symbol&&268===i.kind&&Hu(r,i.symbol.escapedName))for(var o=Am(i.initializer),s=0,c=r.types;s<c.length;s++){var u=c[s],_=Bn(u,i.symbol.escapedName);if(_&&Sc(o,_,void 0)){if(t){if(u===t)continue;t=void 0;break e}t=u}}}return t||r}function ol(e){if(!(4194304&e.flags)){if(e.contextualType)return e.contextualType;var t,r,n=e.parent;switch(n.kind){case 230:case 148:case 151:case 150:case 180:return function(e){var t=e.parent;if(Ig.hasInitializer(t)&&e===t.initializer){var r=Ig.getEffectiveTypeAnnotationNode(t);if(r)return Hs(r);if(148===t.kind){var n=H_(t);if(n)return n}if(Ig.isBindingPattern(t.name))return Xn(t.name,!0,!1);if(Ig.isBindingPattern(t.parent)){var a=t.parent.parent,i=t.propertyName||t.name;if(180!==a.kind){var o=Ig.getEffectiveTypeAnnotationNode(a);if(o&&!Ig.isBindingPattern(i)){var s=Ig.getTextOfPropertyName(i);if(s)return Bn(Hs(o),s)}}}}}(e);case 191:case 223:return function(e){var t=Ig.getContainingFunction(e);if(t){var r=Ig.getFunctionFlags(t);if(1&r)return;var n=X_(t);return 2&r?n&&tf(n):n}}(e);case 201:return function(e){var t=Ig.getContainingFunction(e);if(t){var r=Ig.getFunctionFlags(t),n=X_(t);if(n)return e.asteriskToken?n:qf(n,0!=(2&r))}}(n);case 185:case 186:return Q_(n,e);case 188:case 206:return Hs(n.type);case 198:return Z_(e);case 268:case 269:return tl(n);case 270:return il(n.parent);case 181:var a=n;return rl(il(a),Ig.indexOfNode(a.elements,e));case 199:return r=(t=e).parent,t===r.whenTrue||t===r.whenFalse?ol(r):void 0;case 209:return Ig.Debug.assert(200===n.parent.kind),function(e,t){if(187===e.parent.kind)return Q_(e.parent,t)}(n.parent,e);case 189:var i=Ig.isInJavaScriptFile(n)?Ig.getJSDocTypeTag(n):void 0;return i?Hs(i.typeExpression.type):ol(n);case 263:return nl(n);case 260:case 262:return al(n);case 255:case 254:return function(t){if(Sl(t.tagName))return Ll(t);var e=Op(t.tagName);if(zn(e))return J;var r=Ig.isInJavaScriptFile(t);return f_(e,function(e){return function(e,i,o){if(2&e.flags)return J;if(32&e.flags){var t=Nl(Og.IntrinsicElements,o);if(t!==U){var r=e.value,n=Oi(t,Ig.escapeLeadingUnderscores(r));if(n)return oa(n);var a=Ji(t,0);if(a)return a}return J}var s=Li(e,1),c=!0;return 0===s.length&&(s=Li(e,0),c=!1,0===s.length)?U:ds(Ig.map(s,c?function(e){return r=i,n=o,(a=ro(t=e))?ul(a,r,n):cl(t,n);var t,r,n,a}:function(e){return cl(e,o)}),0)}(e,r,t)})}(n)}}}function sl(e){return(e=Ig.findAncestor(e,function(e){return!!e.contextualMapper}))?e.contextualMapper:k}function cl(e,t){var r=Yd(e),n=Nl(Og.IntrinsicAttributes,t);return n!==U&&(r=ti(n,r)),r}function ul(e,t,r){if(zn(e))return e;var n=wl(Pl(r));if(void 0===n)return J;if(""===n)return e;var a=Bn(e,n);if(a){if(zn(a))return a;var i=a,o=Nl(Og.IntrinsicClassAttributes,r);if(o!==U){var s=pa(o.symbol);i=ti(s?bo(o,Xi([e],s,Gi(s),t)):o,i)}var c=Nl(Og.IntrinsicAttributes,r);return c!==U&&(i=ti(c,i)),i}return ie}function _l(e,t){var r=Li(e,0);if(1===r.length){var n=r[0];if(!function(e,t){for(var r=0;r<t.parameters.length;r++){var n=t.parameters[r];if(n.initializer||n.questionToken||n.dotDotDotToken||Ui(n))break}return t.parameters.length&&Ig.parameterIsThisKeyword(t.parameters[0])&&r--,(e.hasRestParameter?Number.MAX_VALUE:e.parameters.length)<r}(n,t))return n}}function ll(e){return 190===e.kind||191===e.kind}function dl(e){return ll(e)||Ig.isObjectLiteralMethod(e)?fl(e):void 0}function pl(e){return Ig.isObjectLiteralMethod(e)?function(e){if(Ig.Debug.assert(Ig.isObjectLiteralMethod(e)),!(4194304&e.flags))return tl(e)}(e):il(e)}function fl(e){Ig.Debug.assert(153!==e.kind||Ig.isObjectLiteralMethod(e));var t=pl(e);if(t){if(!(131072&t.flags))return _l(t,e);for(var r,n,a=0,i=t.types;a<i.length;a++){var o=_l(i[a],e);if(o)if(r){if(!Wc(r[0],o,!1,!0,!0,yc))return;r.push(o)}else r=[o]}return r&&((n=Qa(r[0])).unionSignatures=r),n}}function ml(e){return 180===e.kind&&!!e.initializer||198===e.kind&&58===e.operatorToken.kind}function gl(e,t){for(var r,n=e.elements,a=!1,i=[],o=Ig.isAssignmentTarget(e),s=il(e),c=0;c<n.length;c++){var u=n[c];if(o&&202===u.kind){var _=Op(u.expression,t),l=Ji(_,1)||jf(_,void 0,!1,!1,!1);l&&i.push(l)}else{var d=Ap(u,t,rl(s,c));i.push(d)}a=a||202===u.kind}if(!a){if(o&&i.length)return(d=xo(as(i))).pattern=e,d;if(s&&(131072&(r=s).flags?Ig.forEach(r.types,Yc):Yc(r))){var p=s.pattern;if(p&&(179===p.kind||181===p.kind))for(var f=p.elements,m=i.length;m<f.length;m++){var g=f[m];ml(g)?i.push(s.typeArguments[m]):(204!==g.kind&&ar(g,Ig.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.push(P?ne:V))}if(i.length)return as(i)}}return rs(i.length?ds(i,2):P?ne:V)}function yl(e){switch(e.kind){case 146:return fp(hl(e),84);case 71:return vl(e.escapedText);case 8:case 9:return vl(e.text);default:return!1}}function vl(e){return(+e).toString()===e}function hl(e){var t=fr(e.expression);return t.resolvedType||(t.resolvedType=Op(e.expression),12288&t.resolvedType.flags||!fp(t.resolvedType,525942)&&!bc(t.resolvedType,ds([G,X,$]))?ar(e,Ig.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):sd(e.expression,t.resolvedType,!0)),t.resolvedType}function bl(e,t,r,n){for(var a=[],i=0;i<r.length;i++)(0===n||yl(e[i+t].name))&&a.push(oa(r[i]));return fo(a.length?ds(a,2):q,!1)}function xl(a,e){var i,o=Ig.isAssignmentTarget(a);!function(e,t){var r,n;(n=r||(r={}))[n.Property=1]="Property",n[n.GetAccessor=2]="GetAccessor",n[n.SetAccessor=4]="SetAccessor",n[n.GetOrSetAccessor=6]="GetOrSetAccessor";for(var a=Ig.createUnderscoreEscapedMap(),i=0,o=e.properties;i<o.length;i++){var s=o[i];if(270!==s.kind){var c=s.name;if(146===c.kind&&vg(c),269===s.kind&&!t&&s.objectAssignmentInitializer)return Pg(s.equalsToken,Ig.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(s.modifiers)for(var u=0,_=s.modifiers;u<_.length;u++){var l=_[u];120===l.kind&&153===s.kind||Pg(l,Ig.Diagnostics._0_modifier_cannot_be_used_here,Ig.getTextOfNode(l))}var d=void 0;switch(s.kind){case 268:case 269:bg(s.questionToken,Ig.Diagnostics.An_object_member_cannot_be_declared_optional),8===c.kind&&wg(c);case 153:d=1;break;case 155:d=2;break;case 156:d=4;break;default:Ig.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var p=Ig.getPropertyNameForPropertyNameNode(c);if(void 0!==p){var f=a.get(p);if(f)if(1===d&&1===f)Pg(c,Ig.Diagnostics.Duplicate_identifier_0,Ig.getTextOfNode(c));else{if(!(6&d&&6&f))return Pg(c,Ig.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===f||d===f)return Pg(c,Ig.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);a.set(p,d|f)}else a.set(p,d)}}}}(a,o);var s=[],t=ie,c=8388608,r=il(a),n=r&&r.pattern&&(178===r.pattern.kind||182===r.pattern.kind),u=Ig.isInJavaScriptFile(a),_=!r&&u,l=0,d=!1,p=!1,f=!1;if(u&&0===a.properties.length){var m=en(a);if(m.exports)return i=m.exports,m.exports.forEach(function(e){return s.push($r(e))}),P()}i=Ig.createSymbolTable();for(var g=0,y=0;y<a.properties.length;y++){var v=a.properties[y],h=en(v),b=void 0;if(268===v.kind||269===v.kind||Ig.isObjectLiteralMethod(v)){var x=void 0;u&&(x=qn(v));var k=void 0;if(268===v.kind){if(146===v.name.kind){var D=hl(v.name);224&D.flags&&(b=Ig.escapeLeadingUnderscores(""+D.value))}k=Pp(v,e)}else 153===v.kind?k=Fp(v,e):(Ig.Debug.assert(269===v.kind),k=Ap(v.name,e));x&&(Sc(k,x,v),k=x),l|=k.flags;var S=Ja(v)?hl(v.name):void 0,C=S&&Ba(S),T=C?ir(4|h.flags,Ka(S),1024):ir(4|h.flags,b||h.escapedName);if(C&&(T.nameType=S),o)(268===v.kind&&ml(v.initializer)||269===v.kind&&v.objectAssignmentInitializer)&&(T.flags|=16777216),!b&&Ig.hasDynamicName(v)&&(d=!0);else if(n&&!(512&Ig.getObjectFlags(r))){var E=Oi(r,h.escapedName);E?T.flags|=16777216&E.flags:O.suppressExcessPropertyErrors||zi(r,0)||ar(v.name,Ig.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,kn(h),Sn(r))}T.declarations=h.declarations,T.parent=h.parent,h.valueDeclaration&&(T.valueDeclaration=h.valueDeclaration),T.type=k,T.target=h,h=T}else{if(270===v.kind){if(w<2&&sg(v,2),0<s.length&&(t=Rs(t,P(),a.symbol,c,0),s=[],i=Ig.createSymbolTable(),f=p=!1,l=0),!kl(k=Op(v.expression)))return ar(v,Ig.Diagnostics.Spread_types_may_only_be_created_from_object_types),U;t=Rs(t,k,a.symbol,c,0),g=y+1;continue}Ig.Debug.assert(155===v.kind||156===v.kind),vm(v)}!b&&ja(v)?yl(v.name)?f=!0:p=!0:i.set(h.escapedName,h),s.push(h)}if(n)for(var N=0,A=vi(r);N<A.length;N++)T=A[N],i.get(T.escapedName)||t&&Oi(t,T.escapedName)||(16777216&T.flags||ar(T.valueDeclaration||T.bindingElement,Ig.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(T.escapedName,T),s.push(T));return t!==ie?(0<s.length&&(t=Rs(t,P(),a.symbol,c,0)),t):P();function P(){var e=_?et:p?bl(a.properties,g,s,0):void 0,t=f&&!_?bl(a.properties,g,s,1):void 0,r=dn(a.symbol,i,Ig.emptyArray,Ig.emptyArray,e,t),n=O.suppressExcessPropertyErrors?0:8388608;return r.flags|=33554432|n|117440512&l,r.objectFlags|=128,d&&(r.objectFlags|=512),o&&(r.pattern=a),12288&r.flags||(c|=117440512&r.flags),r}}function kl(e){return!!(134217729&e.flags||14560&ou(e)&&kl(su(e))||65536&e.flags&&!pi(e)||393216&e.flags&&!Ig.forEach(e.types,function(e){return!kl(e)}))}function Dl(e){return!Ig.stringContains(e,"-")}function Sl(e){switch(e.kind){case 183:case 99:return!1;case 71:return Ig.isIntrinsicJsxName(e.escapedText);default:Ig.Debug.fail()}}function Cl(e,t){return e.initializer?Ap(e.initializer,t):Q}function Tl(e,t){for(var r,n=e.attributes,a=Ig.createSymbolTable(),i=ie,o=!1,s=!1,c=Il(Pl(e)),u=0,_=n.properties;u<_.length;u++){var l=_[u],d=l.symbol;if(Ig.isJsxAttribute(l)){var p=Cl(l,t),f=ir(33554436|d.flags,d.escapedName);f.declarations=d.declarations,f.parent=d.parent,d.valueDeclaration&&(f.valueDeclaration=d.valueDeclaration),f.type=p,f.target=d,a.set(f.escapedName,f),l.name.escapedText===c&&(s=!0)}else Ig.Debug.assert(262===l.kind),0<a.size&&(i=Rs(i,h(),n.symbol,0,4096),a=Ig.createSymbolTable()),zn(p=Tp(l.expression,t))&&(o=!0),kl(p)?i=Rs(i,p,e.symbol,0,4096):r=r?gs([r,p]):p}o||0<a.size&&(i=Rs(i,h(),n.symbol,0,4096));var m=253===e.parent.kind?e.parent:void 0;if(m&&m.openingElement===e&&0<m.children.length){var g=El(m,t);if(!o&&c&&""!==c){s&&ar(n,Ig.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ig.unescapeLeadingUnderscores(c));var y=ir(33554436,c);y.type=1===g.length?g[0]:rs(ds(g));var v=Ig.createSymbolTable();v.set(c,y),i=Rs(i,dn(n.symbol,v,Ig.emptyArray,Ig.emptyArray,void 0,void 0),n.symbol,0,4096)}}return o?J:r&&i!==ie?gs([r,i]):r||i;function h(){var e=dn(n.symbol,a,Ig.emptyArray,Ig.emptyArray,void 0,void 0);return e.flags|=33554432,e.objectFlags|=4224,e}}function El(e,t){for(var r=[],n=0,a=e.children;n<a.length;n++){var i=a[n];10===i.kind?i.containsOnlyWhiteSpaces||r.push(G):r.push(Ap(i,t))}return r}function Nl(e,t){var r=Pl(t),n=r&&Xr(r),a=n&&gr(n,e,67901928);return a?Aa(a):U}function Al(e){var t=fr(e);if(!t.resolvedSymbol){var r=Nl(Og.IntrinsicElements,e);if(r!==U){if(!Ig.isIdentifier(e.tagName))return Ig.Debug.fail();var n=Oi(r,e.tagName.escapedText);return n?(t.jsxFlags|=1,t.resolvedSymbol=n):Ji(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(ar(e,Ig.Diagnostics.Property_0_does_not_exist_on_type_1,Ig.idText(e.tagName),"JSX."+Og.IntrinsicElements),t.resolvedSymbol=M)}return T&&ar(e,Ig.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ig.unescapeLeadingUnderscores(Og.IntrinsicElements)),t.resolvedSymbol=M}return t.resolvedSymbol}function Pl(e){var t=nr(e),r=vr(e,t,1920,void 0,t,!1);if(r){var n=gr(Xr(Ir(r)),Og.JSX,1920);if(n)return n}return Bo(Og.JSX,1920,void 0)}function Fl(e,t){var r=t&&gr(t.exports,e,67901928),n=r&&Aa(r),a=n&&vi(n);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;1<a.length&&ar(r.declarations[0],Ig.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,Ig.unescapeLeadingUnderscores(e))}}function wl(e){return Fl(Og.ElementAttributesPropertyNameContainer,e)}function Il(e){return Fl(Og.ElementChildrenAttributeNameContainer,e)}function Ol(e){if(e){if(262144&e.flags){for(var t=[],r=0,n=e.types;r<n.length;r++){var a=n[r];t.push(Pi(a))}return gs(t)}return Pi(e)}}function Ml(t,r,e,n){if(131072&e.flags)return ds(e.types.map(function(e){return Ml(t,r,e,n)}),2);if(2&e.flags)return J;if(32&e.flags){var a=Nl(Og.IntrinsicElements,t);if(a!==U){var i=e.value,o=Oi(a,Ig.escapeLeadingUnderscores(i));if(o)return oa(o);var s=Ji(a,0);if(s)return s;ar(t,Ig.Diagnostics.Property_0_does_not_exist_on_type_1,i,"JSX."+Og.IntrinsicElements)}return J}var c=function(e,t){if(Ig.Debug.assert(!(131072&t.flags)),zn(t))return J;var r=Li(t,1);if(0===r.length&&0===(r=Li(t,0)).length)return ar(e.tagName,Ig.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Ig.getTextOfNode(e.tagName)),U;for(var n=[],a=0,i=r;a<i.length;a++){var o=i[a];if(o.typeParameters){var s=Ig.isInJavaScriptFile(e),c=md(o,e,Du(o.typeParameters,o,s?4:0));n.push(ao(o,c,s))}else n.push(o)}return ds(Ig.map(n,ro),2)}(t,e),u=r?function(e,t,r,n){if(Ig.Debug.assert(!(131072&t.flags)),!n||!bc(r,n)){var a=Jl(e);if(a){var i=[];Id(e,t,i);for(var o=void 0,s=void 0,c=0,u=i;c<u.length;c++){var _=u[c],l=ro(_),d=l&&(0===_.parameters.length?ie:oa(_.parameters[0]));if(d=Ol(d),l&&bc(l,a)){for(var p=!0,f=0,m=e.attributes.properties;f<m.length;f++){var g=m[f];if(Ig.isJsxAttribute(g)&&Dl(g.name.escapedText)&&!Oi(d,g.name.escapedText)){p=!1;break}}p&&(o=ti(o,d)),s=ti(s,d)}}o||(o=s);var y=Nl(Og.IntrinsicAttributes,e);return y!==U&&(o=ti(y,o)),o}}}(t,e,c,n):function(e,t,r,n){if(Ig.Debug.assert(!(131072&t.flags)),!n||!bc(r,n)){var a=Jl(e);if(a){var i=Id(e,t,void 0);if(i!==Qe){var o=i&&ro(i),s=o&&(0===i.parameters.length?ie:oa(i.parameters[0]));if(s=Ol(s),o&&bc(o,a)){var c=Nl(Og.IntrinsicAttributes,e);return c!==U&&(s=ti(c,s)),s}}}}}(t,e,c,n);return u||(n&&Oc(c,n,Qt,t,Ig.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements),ul(c,Ig.isInJavaScriptFile(t),t))}function Ll(e){Ig.Debug.assert(Sl(e.tagName));var t=fr(e);if(!t.resolvedJsxElementAttributesType){var r=Al(e);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=oa(r):2&t.jsxFlags?t.resolvedJsxElementAttributesType=mo(r,0).type:t.resolvedJsxElementAttributesType=U}return t.resolvedJsxElementAttributesType}function Rl(e,t){return Ml(e,t,Op(e.tagName),(r=e,(n=Nl(Og.ElementClass,r))===U?void 0:n));var r,n}function Bl(e){var t;return Oi(Sl((t=e.parent.parent).tagName)?Ll(t):Rl(t,!1),e.name.escapedText)||M}function zl(e){return Nl(Og.Element,e)}function Jl(e){var t=zl(e);if(t)return ds([t,W])}function jl(e,t){var r,n=Ig.isJsxOpeningLikeElement(e);n&&function(e){for(var t=Ig.createUnderscoreEscapedMap(),r=0,n=e.attributes.properties;r<n.length;r++){var a=n[r];if(262!==a.kind){var i=a.name,o=a.initializer;if(t.get(i.escapedText))return Pg(i,Ig.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i.escapedText,!0),o&&263===o.kind&&!o.expression)return Pg(o,Ig.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(e),r=e,0===(O.jsx||0)&&ar(r,Ig.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===zl(r)&&T&&ar(r,Ig.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var a=Tt&&2===O.jsx?Ig.Diagnostics.Cannot_find_name_0:void 0,i=nr(e),o=vr(n?e.tagName:e,i,67216319,a,i,!0);o&&(o.isReferenced=67108863,2097152&o.flags&&!Um(Or(o))&&Lr(o)),n?function(e,t){var r=Sl(e.tagName)?Ll(e):Rl(e,!1),n=Tl(e,t);if(r===ie&&(zn(n)||0<vi(n).length))ar(e,Ig.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ig.unescapeLeadingUnderscores(wl(Pl(e))));else{var a=Sc(n,r,0<e.attributes.properties.length?e.attributes:e);if(a&&!zn(n)&&!zn(r))for(var i=0,o=e.attributes.properties;i<o.length;i++){var s=o[i];if(Ig.isJsxAttribute(s)){var c=s.name,u=Dl(Ig.idText(c))||!!Oi(r,c.escapedText);if(u&&!Kl(r,c.escapedText,!0)){ar(s,Ig.Diagnostics.Property_0_does_not_exist_on_type_1,Ig.idText(c),Sn(r));break}}}}}(e,t):El(e.parent)}function Kl(e,t,r){if(65536&e.flags){var n=fi(e);if(n.stringIndexInfo||n.numberIndexInfo&&vl(t)||gi(e,t)||r&&!Dl(t))return!0}else if(393216&e.flags)for(var a=0,i=e.types;a<i.length;a++)if(Kl(i[a],t,r))return!0;return!1}function Ul(e){return e.valueDeclaration?Ig.getCombinedNodeFlags(e.valueDeclaration):0}function ql(e){return!!(8192&e.flags||4&Ig.getCheckFlags(e))}function Vl(e,t,r,n){var a,i,o,s=Ig.getDeclarationModifierFlagsFromSymbol(n),c=183===e.kind||230===e.kind?e.name:e.right;if(256&Ig.getCheckFlags(n))return ar(c,Ig.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,kn(n),Sn(r)),!1;if(97===t.kind){if(w<2&&Wl(n))return ar(c,Ig.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&s)return ar(c,Ig.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,kn(n),Sn(Kc(n))),!1}if(128&s&&Ig.isThisProperty(e)&&Wl(n)&&(o=Ig.getClassLikeDeclarationOfSymbol(tn(n)))&&(a=e,i=o,Ig.findAncestor(a,function(e){return!(!Ig.isConstructorDeclaration(e)||!Ig.nodeIsPresent(e.body)||e.parent!==i)||!(e!==i&&!Ig.isFunctionLikeDeclaration(e))&&"quit"})))return ar(c,Ig.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,kn(n),Ig.getTextOfIdentifierOrLiteral(o.name)),!1;if(!(24&s))return!0;if(8&s)return!!Cm(e,o=Ig.getClassLikeDeclarationOfSymbol(tn(n)))||(ar(c,Ig.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,kn(n),Sn(Kc(n))),!1);if(97===t.kind)return!0;var u=Sm(e,function(e){var t,r=Aa(en(e));return t=r,(jc(n,function(e){return!!(16&Ig.getDeclarationModifierFlagsFromSymbol(e))&&!ua(t,Kc(e))})?void 0:t)?r:void 0});return u?!!(32&s)||(32768&r.flags&&(r=r.isThisType?bi(r):Si(r)),!(!r||!ua(r,u))||(ar(c,Ig.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,kn(n),Sn(u)),!1)):(ar(c,Ig.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,kn(n),Sn(Kc(n)||r)),!1)}function Wl(e){return jc(e,function(e){var t,r=(t=e).valueDeclaration?t.valueDeclaration.kind:151;return 153!==r&&152!==r})}function Hl(e,t,r,n){return Gl(Op(e),e,t,r,n)}function Gl(e,t,r,n,a){var i=12288&(P?ou(e):e.flags);if(i){ar(t,4096&i?8192&i?a||Ig.Diagnostics.Object_is_possibly_null_or_undefined:n||Ig.Diagnostics.Object_is_possibly_undefined:r||Ig.Diagnostics.Object_is_possibly_null);var o=lu(e);return 28672&o.flags?U:o}return e}function Xl(e){return Yl(e,e.expression,e.name)}function Ql(e){return Yl(e,e.left,e.right)}function Yl(e,t,r){var n,a=Hl(t),i=fr(t).resolvedSymbol,o=Pi(vu(a));if(zn(o)||o===re)return Ig.isIdentifier(t)&&i&&M_(i,e),o;var s,c,u,_,l,d=Ig.getAssignmentTargetKind(e),p=Oi(o,r.escapedText);if(!Ig.isIdentifier(t)||!i||p&&Um(p)||M_(i,e),p){if(c=e,u=r,(l=(s=p).valueDeclaration)&&(_=c,!Ig.findAncestor(_,function(e){switch(e.kind){case 151:return!0;case 268:return!1;default:return!Ig.isExpressionNode(e)&&"quit"}})||yr(l,u)||function(e){if(!(32&e.parent.flags))return!1;for(var t=oa(e.parent);;){if(!(t=Zl(t)))return!1;var r=gi(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(s)?233!==l.kind||161===c.parent.kind||2097152&l.flags||yr(l,u)||ar(u,Ig.Diagnostics.Class_0_used_before_its_declaration,Ig.idText(u)):ar(u,Ig.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,Ig.idText(u))),nd(p,e,99===t.kind),Vl(e,t,o,fr(e).resolvedSymbol=p),d&&(_p(e,p)||lp(e)))return ar(r,Ig.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ig.idText(r)),U;n=O_(oa(p),e)}else{var f=zi(o,0);if(!f||!f.type)return r.escapedText&&!Dr(e)&&function(e,t){var r;if(131072&t.flags&&!(16382&t.flags))for(var n=0,a=t.types;n<a.length;n++){var i=a[n];if(!Oi(i,e.escapedText)){r=Ig.chainDiagnosticMessages(r,Ig.Diagnostics.Property_0_does_not_exist_on_type_1,Ig.declarationNameToString(e),Sn(i));break}}var o=$l(e,t);r=void 0!==o?Ig.chainDiagnosticMessages(r,Ig.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ig.declarationNameToString(e),Sn(t),o):Ig.chainDiagnosticMessages(r,Ig.Diagnostics.Property_0_does_not_exist_on_type_1,Ig.declarationNameToString(e),Sn(t)),Tt.add(Ig.createDiagnosticForNodeFromMessageChain(e,r))}(r,32768&a.flags&&a.isThisType?o:a),U;f.isReadonly&&(Ig.isAssignmentTarget(e)||Ig.isDeleteTarget(e))&&ar(e,Ig.Diagnostics.Index_signature_in_type_0_only_permits_reading,Sn(o)),n=f.type}if(183!==e.kind||1===d||p&&!(98311&p.flags)&&!(8192&p.flags&&131072&n.flags))return n;var m=!1;if(P&&C&&99===t.kind){var g=p&&p.valueDeclaration;if(g&&rm(g)){var y=A_(e);154===y.kind&&y.parent===g.parent&&(m=!0)}}var v=N_(e,n,m?_u(n):n);return m&&!(4096&ou(n))&&4096&ou(v)?(ar(r,Ig.Diagnostics.Property_0_is_used_before_being_assigned,kn(p)),n):d?eu(v):v}function Zl(e){var t=ba(e);if(0!==t.length)return Ig.Debug.assert(1===t.length),t[0]}function $l(e,t){var r=td(Ig.idText(e),vi(t),67216319);return r&&Ig.symbolName(r)}function ed(e,n,t){Ig.Debug.assert(void 0!==n,"outername should always be defined");var r=hr(e,n,t,void 0,n,!1,!1,function(e,t,r){return Ig.Debug.assertEqual(n,t,"name should equal outerName"),gr(e,t,r)||td(Ig.unescapeLeadingUnderscores(t),Ig.arrayFrom(e.values()),r)});return r&&Ig.symbolName(r)}function td(e,t,r){for(var n,a=Math.min(2,Math.floor(.34*e.length)),i=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;c<u.length;c++){var _=u[c],l=Ig.symbolName(_);if(_.flags&r&&Math.abs(l.length-s.length)<=a){var d=l.toLowerCase();if(d===s)return _;if(!(o||l.length<3)){var p=rd(s,d,i-1);void 0!==p&&(p<3?o=!0:(Ig.Debug.assert(p<i),i=p),n=_)}}}return n}function rd(e,t,r){for(var n=new Array(t.length+1),a=new Array(t.length+1),i=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){for(var s=e.charCodeAt(o-1),c=r<o?o-r:1,u=t.length>r+o?r+o:t.length,_=a[0]=o,l=1;l<c;l++)a[l]=i;for(l=c;l<=u;l++){var d=s===t.charCodeAt(l-1)?n[l-1]:Math.min(n[l]+1,a[l-1]+1,n[l-1]+2);a[l]=d,_=Math.min(_,d)}for(l=u+1;l<=t.length;l++)a[l]=i;if(r<_)return;var p=n;n=a,a=p}var f=n[t.length];return r<f?void 0:f}function nd(e,t,r){if(e&&A&&106500&e.flags&&e.valueDeclaration&&Ig.hasModifier(e.valueDeclaration,8)&&(!t||!Ig.isWriteOnlyAccess(t)||65536&e.flags&&!(32768&e.flags))){if(r){var n=Ig.findAncestor(t,Ig.isFunctionLikeDeclaration);if(n&&n.symbol===e)return}(1&Ig.getCheckFlags(e)?pr(e).target:e).isReferenced=67108863}}function ad(t,r,n,e){if(e===U||zn(e))return!0;var a=Oi(e,n);return a?Vl(t,r,e,a):Ig.isInJavaScriptFile(t)&&131072&e.flags&&e.types.some(function(e){return ad(t,r,n,e)})}function id(e){var t=e.initializer;if(231===t.kind){var r=t.declarations[0];if(r&&!Ig.isBindingPattern(r.name))return en(r)}else if(71===t.kind)return ju(t)}function od(e){var t=Hl(e.expression),r=e.argumentExpression;if(!r){var n,a=Ig.getSourceFileOfNode(e);return 186===e.parent.kind&&e.parent.expression===e?Ag(a,n=Ig.skipTrivia(a.text,e.expression.end),e.end-n,Ig.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):Ag(a,n=e.end-"]".length,e.end-n,Ig.Diagnostics.Expression_expected),U}var i=function(e){var t,r=Ig.skipParentheses(e);if(71===r.kind){var n=ju(r);if(3&n.flags)for(var a=e,i=e.parent;i;){if(219===i.kind&&a===i.statement&&id(i)===n&&Ji(t=Ip(i.expression),1)&&!Ji(t,0))return!0;i=(a=i).parent}}return!1}(r)?X:Op(r);return t===U||t===re?t:gp(t)&&9!==r.kind?(ar(r,Ig.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),U):Xp(Ts(t,i,e),e)}function sd(e,t,r){if(t===U)return!1;if(!Ig.isWellKnownSymbolSyntactically(e))return!1;if(0==(1536&t.flags))return r&&ar(e,Ig.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,Ig.getTextOfNode(e)),!1;var n=e.expression,a=ju(n);if(!a)return!1;var i=Jo(!0);return!(!i||a!==i&&(r&&ar(n,Ig.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function cd(e){return Ig.isCallOrNewExpression(e)}function ud(e){return cd(e)&&Ig.forEach(e.typeArguments,gm),187===e.kind?Op(e.template):149!==e.kind&&Ig.forEach(e.arguments,function(e){Op(e)}),Xe}function _d(e){return ud(e),Qe}function ld(e){for(var t=0;t<e.length;t++){var r=e[t];if(r&&202===r.kind)return t}return-1}function dd(e,t,r,n){var a,i,o;void 0===n&&(n=!1);var s=-1;if(Ig.isJsxOpeningLikeElement(e))return!0;if(187===e.kind)if(a=t.length,i=void 0,200===e.template.kind){var c=Ig.lastOrUndefined(e.template.templateSpans);Ig.Debug.assert(void 0!==c),o=Ig.nodeIsMissing(c.literal)||!!c.literal.isUnterminated}else{var u=e.template;Ig.Debug.assert(13===u.kind),o=!!u.isUnterminated}else if(149===e.kind)a=xd(e,i=void 0,r);else{if(!e.arguments)return Ig.Debug.assert(186===e.kind),0===r.minArgumentCount;a=n?t.length+1:t.length,o=e.arguments.end===e.end,i=e.typeArguments,s=ld(t)}var _=Ig.length(r.typeParameters),l=Gi(r.typeParameters);if(i&&!(i.length>=l&&i.length<=_))return!1;if(0<=s)return Hc(r,s)||r.minArgumentCount<=s&&s<r.parameters.length;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var d=a>=r.minArgumentCount;return o||d}function pd(e){if(65536&e.flags){var t=fi(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function fd(e,t,r,n){var a=Du(e.typeParameters,e,1,n);return ku(t,e,function(e,t){wu(a.inferences,uc(e,r||k),t)}),r||wu(a.inferences,ro(t),ro(e),8),ao(e,Ju(a),Ig.isInJavaScriptFile(t.declaration))}function md(e,t,r){var n=Qd(e,0),a=Cp(t.attributes,n,k);wu(r.inferences,a,n);var i=Qd(e,0),o=Cp(t.attributes,i,r);return wu(r.inferences,o,i),Ju(r)}function gd(e,t,r,n,a){for(var i=0,o=a.inferences;i<o.length;i++){var s=o[i];s.isFixed||(s.inferredType=void 0)}if(149!==e.kind){var c=ol(e);if(c){var u=uc(c,(p=sl(e))&&p.typeParameters?Du(p.typeParameters,p.signature,2|p.flags,p.compareTypes,p.inferences):p),_=pd(u),l=_&&_.typeParameters?_o(ao(_,_.typeParameters,Ig.isInJavaScriptFile(e))):u,d=ro(t);wu(a.inferences,l,d,8)}}var p,f=$i(t);if(f){var m=hd(e),g=m?Op(m):ee;wu(a.inferences,g,f)}for(var y=xd(e,r,t),v=0;v<y;v++)if(void 0===(x=Cd(e,r,v))||204!==x.kind){var h=Qd(t,v),b=Sd(e,v);void 0===b&&(b=Cp(x,h,n&&void 0!==n[v]?k:a)),wu(a.inferences,b,h)}if(n)for(v=0;v<y;v++)if(!1===n[v]){var x=r[v];h=Qd(t,v),wu(a.inferences,Cp(x,h,a),h)}return Ju(a)}function yd(e,t,r,n){for(var a,i=Ig.isInJavaScriptFile(e.declaration),o=e.typeParameters,s=Xi(Ig.map(t,Hs),o,Gi(o),i),c=0;c<t.length;c++){Ig.Debug.assert(void 0!==o[c],"Should not call checkTypeArguments with too many type arguments");var u=bi(o[c]);if(u){var _=r&&n&&function(){return Ig.chainDiagnosticMessages(void 0,Ig.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)},l=n||Ig.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=Ys(o,s));var d=s[c];if(!Sc(d,Ha(uc(u,a),d),r?t[c]:void 0,l,_))return!1}}return s}function vd(e,t,r,n,a,i){if(Ig.isJsxOpeningLikeElement(e))return function(e,t,r){if(e.attributes.end===e.end)return!0;for(var n=Ig.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,a=Qd(t,0),i=Cp(e.attributes,a,void 0),o=0,s=vi(i);o<s.length;o++){var c=s[o];if(!Oi(a,c.escapedName)&&Dl(c.escapedName))return!1}return Oc(i,a,r,void 0,n)}(e,r,n);var o,s,c,u=$i(r);if(u&&u!==ee&&186!==e.kind){var _=hd(e),l=_?Op(_):ee,d=i?_||e:void 0,p=Ig.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!Oc(l,$i(r),n,d,p))return!1}for(var f=Ig.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,m=xd(e,t,r),g=0;g<m;g++){var y=Cd(e,t,g);if(void 0===y||204!==y.kind){var v=Qd(r,g),h=Sd(e,g)||Cp(y,v,a&&a[g]?k:void 0);if(!Oc(a?fu(h):h,v,n,d=i?(s=g,c=y,149===(o=e).kind?o.expression:0===s&&187===o.kind?o.template:c):void 0,f))return!1}}return!0}function hd(e){if(185===e.kind){var t=e.expression;if(183===t.kind)return t.expression;if(184===t.kind)return t.expression}}function bd(e){if(187===e.kind){var t=e.template,r=[void 0];return 200===t.kind&&Ig.forEach(t.templateSpans,function(e){r.push(e.expression)}),r}return 149===e.kind?void 0:Ig.isJsxOpeningLikeElement(e)?0<e.attributes.properties.length?[e.attributes]:Ig.emptyArray:e.arguments||Ig.emptyArray}function xd(e,t,r){if(149!==e.kind)return t.length;switch(e.parent.kind){case 233:case 203:return 1;case 151:return 2;case 153:case 155:case 156:return 0===w?2:3<=r.parameters.length?3:2;case 148:return 3}}function kd(e){var t,r;return 233===e.kind?oa(en(e)):148===e.kind&&154===(e=e.parent).kind?oa(en(e)):151===e.kind||153===e.kind||155===e.kind||156===e.kind?(r=en((t=e).parent),Ig.hasModifier(t,32)?oa(r):Aa(r)):(Ig.Debug.fail("Unsupported decorator target."),U)}function Dd(e,t){return 0===t?kd(e.parent):1===t?function(e){if(233===e.kind)return Ig.Debug.fail("Class decorators should not have a second synthetic argument."),U;if(148===e.kind&&154===(e=e.parent).kind)return J;if(151===e.kind||153===e.kind||155===e.kind||156===e.kind){var t=e;switch(t.name.kind){case 71:return qs(Ig.idText(t.name));case 8:case 9:return qs(t.name.text);case 146:var r=hl(t.name);return fp(r,1536)?r:G;default:return Ig.Debug.fail("Unsupported property name."),U}}return Ig.Debug.fail("Unsupported decorator target."),U}(e.parent):2===t?233===(r=e.parent).kind?(Ig.Debug.fail("Class decorators should not have a third synthetic argument."),U):148===r.kind?X:151===r.kind?(Ig.Debug.fail("Property decorators should not have a third synthetic argument."),U):153===r.kind||155===r.kind||156===r.kind?Zo(Am(r)):(Ig.Debug.fail("Unsupported decorator target."),U):(Ig.Debug.fail("Decorators should not have a fourth synthetic argument."),U);var r}function Sd(e,t){return 149===e.kind?Dd(e,t):0===t&&187===e.kind?Ke||(Ke=zo("TemplateStringsArray",0,!0))||ie:void 0}function Cd(e,t,r){if(149!==e.kind&&(0!==r||187!==e.kind))return t[r]}function Td(u,e,t,r){var _,n=187===u.kind,a=149===u.kind,i=Ig.isJsxOpeningLikeElement(u);n||a||i||(_=u.typeArguments,97!==u.expression.kind&&Ig.forEach(_,gm));var o=t||[];if(function(e,t){var r,n,a,i,o=0,s=-1;Ig.Debug.assert(!t.length);for(var c=0,u=e;c<u.length;c++){var _=u[c],l=_.declaration&&en(_.declaration),d=_.declaration&&_.declaration.parent;n&&l!==n?(a=o=t.length,r=d):r&&d===r?a++:(r=d,a=o),n=l,_.hasLiteralTypes?(i=++s,o++):i=a,t.splice(i,0,_)}}(e,o),!o.length)return Tt.add(Ig.createDiagnosticForNode(u,Ig.Diagnostics.Call_target_does_not_contain_any_signatures)),_d(u);var l,d,p,s,f=bd(u),m=1===o.length&&!o[0].typeParameters,g=0;if(!a&&!m)for(var c=n?1:0;c<f.length;c++)dc(f[c])&&(l||(l=new Array(f.length)),l[c]=!0,g++);var y=t&&185===u.kind&&u.arguments.hasTrailingComma;if(1<o.length&&(s=M(o,Xt,y)),s||(s=M(o,Qt,y)),s)return s;if(d){if(i)return d;vd(u,f,d,Qt,void 0,!0)}else if(p)yd(p,u.typeArguments,!0,r);else if(_&&Ig.every(e,function(e){return Ig.length(e.typeParameters)!==_.length})){for(var v=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,b=0,x=e;b<x.length;b++){var k=x[b];v=Math.min(v,Gi(k.typeParameters)),h=Math.max(h,Ig.length(k.typeParameters))}var D=v<h?v+"-"+h:v;Tt.add(Ig.createDiagnosticForNodeArray(Ig.getSourceFileOfNode(u),_,Ig.Diagnostics.Expected_0_type_arguments_but_got_1,D,_.length))}else if(f){v=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY;for(var S=0,C=e;S<C.length;S++)k=C[S],v=Math.min(v,k.minArgumentCount),h=Math.max(h,k.parameters.length);var T=Ig.some(e,function(e){return e.hasRestParameter}),E=-1<ld(f),N=(D=T?v:v<h?v+"-"+h:v,f.length);N<=h&&E&&N--;var A=T&&E?Ig.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:T?Ig.Diagnostics.Expected_at_least_0_arguments_but_got_1:E?Ig.Diagnostics.Expected_0_arguments_but_got_1_or_more:Ig.Diagnostics.Expected_0_arguments_but_got_1;Tt.add(Ig.createDiagnosticForNode(u,A,D,N))}else r&&Tt.add(Ig.createDiagnosticForNode(u,r));if(!L){Ig.Debug.assert(0<o.length);var P=function(e,t){for(var r=-1,n=-1,a=0;a<e.length;a++){var i=e[a];if(i.hasRestParameter||i.parameters.length>=t)return a;i.parameters.length>n&&(n=i.parameters.length,r=a)}return r}(o,void 0===B?f.length:B),F=o[P],w=F.typeParameters;if(w&&cd(u)&&u.typeArguments){for(var I=u.typeArguments.map(Am);I.length>w.length;)I.pop();for(;I.length<w.length;)I.push(zu(Ig.isInJavaScriptFile(u)));var O=io(F,I);return o[P]=O}return F}return _d(u);function M(e,t,r){if(void 0===r&&(r=!1),p=d=void 0,m){var n=e[0];if(!dd(u,f,n,r))return;return vd(u,f,n,t,l,!1)?n:void(d=n)}for(var a=0;a<e.length;a++){var i=e[a];if(dd(u,f,i,r)){n=void 0;for(var o=i.typeParameters?Du(i.typeParameters,i,Ig.isInJavaScriptFile(u)?4:0):void 0;;){if((n=i).typeParameters){var s=void 0;if(_){var c=yd(n,_,!1);if(!c){p=i;break}s=c}else s=gd(u,n,f,l,o);n=ao(n,s,Ig.isInJavaScriptFile(n.declaration))}if(!vd(u,f,n,t,l,!1)){d=n;break}if(0===g)return e[a]=n;0<--g?l[l.indexOf(!0)]=!1:l=void 0}}}}}function Ed(e,t,r,n){return zn(e)||zn(t)&&32768&e.flags||!r&&!n&&!(147456&t.flags)&&bc(e,ve)}function Nd(e,t){if(e.arguments&&w<1){var r=ld(e.arguments);0<=r&&ar(e.arguments[r],Ig.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var n=Hl(e.expression);if(n===re)return Ze;if((n=Pi(n))===U)return _d(e);if(zn(n))return e.typeArguments&&ar(e,Ig.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ud(e);var a=Li(n,1);if(a.length){if(!function(e,t){if(!t||!t.declaration)return!0;var r=t.declaration,n=Ig.getSelectedModifierFlags(r,24);if(!n)return!0;var a=Ig.getClassLikeDeclarationOfSymbol(r.parent.symbol),i=Aa(r.parent.symbol);if(!Cm(e,a)){var o=Ig.getContainingClass(e);if(o)for(var s=Am(o),c=ba(s);c.length;){var u=c[0];if(16&n&&u.symbol===r.parent.symbol)return!0;c=ba(u)}return 8&n&&ar(e,Ig.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Sn(i)),16&n&&ar(e,Ig.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Sn(i)),!1}return!0}(e,a[0]))return _d(e);var i=n.symbol&&Ig.getClassLikeDeclarationOfSymbol(n.symbol);return i&&Ig.hasModifier(i,128)?(ar(e,Ig.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),_d(e)):Td(e,a,t)}var o=Li(n,0);if(o.length){var s=Td(e,o,t);return Rd(s.declaration)||ro(s)===ee||ar(e,Ig.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),$i(s)===ee&&ar(e,Ig.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),s}return Ad(e,n,1),_d(e)}function Ad(e,t,r){ar(e,0===r?Ig.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:Ig.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,Sn(t)),Pd(t,r)}function Pd(e,t){if(e.symbol){var r=pr(e.symbol).originatingImport;if(r&&!Ig.isImportCall(r)){var n=Li(oa(pr(e.symbol).target),t);if(!n||!n.length)return;ar(r,Ig.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function Fd(e){switch(e.parent.kind){case 233:case 203:return Ig.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 148:return Ig.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 151:return Ig.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 153:case 155:case 156:return Ig.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function wd(e,t){var r=Op(e.expression),n=Pi(r);if(n===U)return _d(e);var a,i,o=Li(n,0),s=Li(n,1);if(Ed(r,n,o.length,s.length))return ud(e);if(a=e,(i=o).length&&Ig.every(i,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<xd(a,void 0,e)})){var c=Ig.getTextOfNode(e.expression,!1);return ar(e,Ig.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,c),_d(e)}var u=Fd(e);if(!o.length){var _=void 0;return _=Ig.chainDiagnosticMessages(_,Ig.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Sn(n)),_=Ig.chainDiagnosticMessages(_,u),Tt.add(Ig.createDiagnosticForNodeFromMessageChain(e,_)),Pd(n,0),_d(e)}return Td(e,o,t,u)}function Id(e,t,r){return Ig.Debug.assert(!(131072&t.flags)),Od(e,t,r)}function Od(e,t,r){if(131072&t.flags){for(var n=void 0,a=0,i=t.types;a<i.length;a++){var o=i[a];n=n||Od(e,o,r)}return n}var s=t&&Li(t,0);if(s&&0<s.length)return Td(e,s,r)}function Md(e,t){switch(e.kind){case 185:return function(e,t){if(97===e.expression.kind){var r=q_(e.expression);if(r!==U){var n=Ig.getClassExtendsHeritageClauseElement(Ig.getContainingClass(e));if(n)return Td(e,va(r,n.typeArguments,n),t)}return ud(e)}var a=Hl(e.expression,Ig.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,Ig.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,Ig.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(a===re)return Ze;var i=Pi(a);if(i===U)return _d(e);var o=Li(i,0),s=Li(i,1);return Ed(a,i,o.length,s.length)?(a!==U&&e.typeArguments&&ar(e,Ig.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),ud(e)):o.length?Td(e,o,t):(s.length?ar(e,Ig.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Sn(a)):Ad(e,i,0),_d(e))}(e,t);case 186:return Nd(e,t);case 187:return function(e,t){var r=Op(e.tag),n=Pi(r);if(n===U)return _d(e);var a=Li(n,0),i=Li(n,1);return Ed(r,n,a.length,i.length)?ud(e):a.length?Td(e,a,t):(Ad(e,n,0),_d(e))}(e,t);case 149:return wd(e,t);case 255:case 254:return Od(e,Op(e.tagName),t)||Qe}Ig.Debug.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function Ld(e,t){var r=fr(e),n=r.resolvedSignature;if(n&&n!==Ye&&!t)return n;r.resolvedSignature=Ye;var a=Md(e,t);return r.resolvedSignature=nt===at?a:n,a}function Rd(e){if(e&&Ig.isInJavaScriptFile(e)){if(Ig.getJSDocClassTag(e))return!0;var t=Ig.isFunctionDeclaration(e)||Ig.isFunctionExpression(e)?en(e):Ig.isVariableDeclaration(e)&&e.initializer&&Ig.isFunctionExpression(e.initializer)?en(e.initializer):void 0;return t&&void 0!==t.members}return!1}function Bd(e){var t=e.valueDeclaration,r=t&&t.parent&&(Ig.isBinaryExpression(t.parent)&&en(t.parent.left)||Ig.isVariableDeclaration(t.parent)&&en(t.parent));if(r){var n=Ig.forEach(r.declarations,zd);if(n)return Op(n)}}function zd(e){if(!e.parent)return!1;for(var t=e.parent;t&&183===t.kind;)t=t.parent;return t&&Ig.isBinaryExpression(t)&&Ig.isPropertyAccessExpression(t.left)&&"prototype"===t.left.name.escapedText&&58===t.operatorToken.kind&&Ig.isObjectLiteralExpression(t.right)&&t.right}function Jd(e){var t=pr(e);return t.inferredClassType||(t.inferredClassType=dn(e,Va(e)||x,Ig.emptyArray,Ig.emptyArray,void 0,void 0)),t.inferredClassType}function jd(e){return e.symbol&&16&Ig.getObjectFlags(e)&&pr(e.symbol).inferredClassType===e}function Kd(e){fg(e,e.typeArguments)||mg(e.arguments);var t=Ld(e);if(97===e.expression.kind)return ee;if(186===e.kind){var r=t.declaration;if(r&&154!==r.kind&&158!==r.kind&&163!==r.kind&&!Ig.isJSDocConstructSignature(r)){var n=Op(e.expression).symbol;n||71!==e.expression.kind||(n=ju(e.expression));var a=n&&function(e){var t,r=Ig.getDeclaredJavascriptInitializer(e.valueDeclaration);r&&(e=en(r)),Rd(e.valueDeclaration)&&(t=Jd(e));var n=Bd(e),a=oa(e);return a.symbol&&!jd(a)&&Rd(a.symbol.valueDeclaration)&&(t=Jd(a.symbol)),n&&t?gs([t,n]):n||t}(n);return a||(T&&ar(e,Ig.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),J)}}if(Ig.isInJavaScriptFile(e)&&Wd(e))return function(e){var t=Jr(e,e);if(t){var r=qr(t);if(r)return oa(r)}return J}(e.arguments[0]);var i=ro(t);return 1536&i.flags&&Ud(e)?Vs(Ig.walkUpParenthesizedExpressions(e.parent)):i}function Ud(e){if(!Ig.isCallExpression(e))return!1;var t=e.expression;if(Ig.isPropertyAccessExpression(t)&&"for"===t.name.escapedText&&(t=t.expression),!Ig.isIdentifier(t)||"Symbol"!==t.escapedText)return!1;var r=Jo(!1);return!!r&&r===vr(t,"Symbol",67216319,void 0,void 0,!1)}function qd(e){if(mg(e.arguments)||function(e){if(S===Ig.ModuleKind.ES2015)return Pg(e,Ig.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(e.typeArguments)return Pg(e,Ig.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=e.arguments;if(1!==t.length)return Pg(e,Ig.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);Ig.isSpreadElement(t[0])&&Pg(t[0],Ig.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return ep(e,J);for(var t=e.arguments[0],r=Tp(t),n=1;n<e.arguments.length;++n)Tp(e.arguments[n]);(4096&r.flags||8192&r.flags||!bc(r,G))&&ar(t,Ig.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Sn(r));var a=Jr(e,t);if(a){var i=Vr(a,t,!0);if(i)return ep(e,Vd(oa(i),i,a))}return ep(e,J)}function Vd(e,t,r){if(m&&e&&e!==U){var n=e;if(!n.syntheticType)if(Nr(Ig.find(r.declarations,Ig.isSourceFile),r,!1)){var a=Ig.createSymbolTable(),i=ir(2097152,"default");i.target=Ir(t),a.set("default",i);var o=ir(2048,"__type"),s=dn(o,a,Ig.emptyArray,Ig.emptyArray,void 0,void 0);o.type=s,n.syntheticType=kl(e)?Rs(e,s,o,0,0):s}else n.syntheticType=e;return n.syntheticType}return e}function Wd(e){if(!Ig.isRequireCall(e,!0))return!1;if(!Ig.isIdentifier(e.expression))return Ig.Debug.fail();var t=vr(e.expression,e.expression.escapedText,67216319,void 0,void 0,!0);if(!t)return!0;if(2097152&t.flags)return!1;var r=16&t.flags?232:3&t.flags?230:0;if(0!==r){var n=Ig.getDeclarationOfKind(t,r);return!!n&&!!(2097152&n.flags)}return!1}function Hd(e,t,r,n){var a=fu(eu(Op(r,n)));gm(t);var i=Hs(t);return L&&i!==U&&(kc(i,vu(a))||Cc(a,i,e,Ig.Diagnostics.Type_0_cannot_be_converted_to_type_1)),i}function Gd(e){var t;94===(t=e).keywordToken&&"target"!==t.name.escapedText&&Pg(t.name,Ig.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,Ig.tokenToString(t.keywordToken),"target");var r=Ig.getNewTargetContainer(e);return r?154===r.kind?oa(en(r.parent)):oa(en(r)):(ar(e,Ig.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),U)}function Xd(e){var t=oa(e);if(P){var r=e.valueDeclaration;if(r&&Ig.hasInitializer(r))return _u(t)}return t}function Qd(e,t){return e.hasRestParameter?t<e.parameters.length-1?Xd(e.parameters[t]):no(e):t<e.parameters.length?Xd(e.parameters[t]):J}function Yd(e){return 0<e.parameters.length?Qd(e,0):te}function Zd(e,t){var r=pr(e);if(!r.type){r.type=t;var n=e.valueDeclaration;71!==n.name.kind&&(r.type===ie&&(r.type=Xn(n.name)),function e(t){for(var r=0,n=t.elements;r<n.length;r++){var a=n[r];Ig.isOmittedExpression(a)||(71===a.name.kind?pr(en(a)).type=Un(a):e(a.name))}}(n.name))}}function $d(e){var t=Ko(!0);return t!==ce?bo(t,[e=af(e)||ie]):ie}function ep(e,t){var r=$d(t);return r===ie?(ar(e,Ig.isImportCall(e)?Ig.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Ig.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),U):(Uo(!0)||ar(e,Ig.isImportCall(e)?Ig.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ig.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),r)}function tp(e,t){if(!e.body)return U;var r,n,a,i,o,s=Ig.getFunctionFlags(e);if(211!==e.body.kind)r=Tp(e.body,t),2&s&&(r=nf(r,e,Ig.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else{var c=function(n,a){var i=Ig.getFunctionFlags(n),o=[],s=ap(n),c=!1;if(Ig.forEachReturnStatement(n.body,function(e){var t=e.expression;if(t){var r=Tp(t,a);2&i&&(r=nf(r,n,Ig.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),16384&r.flags&&(c=!0),Ig.pushIfUnique(o,r)}else s=!0}),0!==o.length||s||!c&&!function(e){switch(e.kind){case 190:case 191:return!0;case 153:return 182===e.parent.kind;default:return!1}}(n))return P&&o.length&&s&&Ig.pushIfUnique(o,q),o}(e,t);if(1&s){if(!(c=Ig.concatenate((n=e,a=t,i=[],o=0!=(2&Ig.getFunctionFlags(n)),Ig.forEachYieldExpression(n.body,function(e){Ig.pushIfUnique(i,rp(e,o,a))}),i),c))||0===c.length){var u=2&s?$o(J):ts(J);return T&&ar(e.asteriskToken,Ig.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,Sn(u)),u}}else{if(!c)return 2&s?ep(e,te):te;if(0===c.length)return 2&s?ep(e,ee):ee}r=ds(c,2)}var _=dl(e);if(_||xu(e,r),Zc(r)){var l=_?_===Qi(e)?r:ro(_):void 0;if(l)switch(3&s){case 3:l=qf(l,!0);break;case 1:l=qf(l,!1);break;case 2:l=rf(l)}r=nu(r,l)}var d=vu(r);switch(3&s){case 3:return $o(d);case 1:return ts(d);case 2:return $d(d);default:return d}}function rp(e,t,r){var n=e.expression||e,a=e.expression?Tp(e.expression,r):V,i=e.asteriskToken?Jf(a,n,!1,t):a;return t?af(i,n,e.asteriskToken?Ig.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ig.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i}function np(e){if(!e.possiblyExhaustive)return!1;var t=Ip(e.expression);if(!$c(t))return!1;var r,n,a=__(e);return!!a.length&&(r=f_(t,Us),n=a,131072&r.flags?!Ig.forEach(r.types,function(e){return!Ig.contains(n,e)}):Ig.contains(n,r))}function ap(e){return!!(128&e.flags)&&!Ig.some(e.body.statements,function(e){return 225===e.kind&&np(e)})}function ip(e,t){if(L&&(!t||!pp(t,2049))&&152!==e.kind&&!Ig.nodeIsMissing(e.body)&&211===e.body.kind&&ap(e)){var r=256&e.flags;if(t&&16384&t.flags)ar(Ig.getEffectiveReturnTypeNode(e),Ig.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(t&&!r)ar(Ig.getEffectiveReturnTypeNode(e),Ig.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(t&&P&&!bc(q,t))ar(Ig.getEffectiveReturnTypeNode(e),Ig.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(O.noImplicitReturns){if(!t){if(!r)return;if(Hf(e,ro(Qi(e))))return}ar(Ig.getEffectiveReturnTypeNode(e)||e,Ig.Diagnostics.Not_all_code_paths_return_a_value)}}}function op(e,t){if(Ig.Debug.assert(153!==e.kind||Ig.isObjectLiteralMethod(e)),1===t&&dc(e))return vm(e),ue;pg(e)||190!==e.kind||hg(e);var r=fr(e),n=oa(e.symbol);if(!(1024&r.flags)){var a=fl(e);if(!(1024&r.flags)){if(r.flags|=1024,a){var i=Li(n,0)[0];if(dc(e)){var o=sl(e);2===t&&function(e,t,r){for(var n=e.parameters.length-(e.hasRestParameter?1:0),a=0;a<n;a++){var i=e.parameters[a].valueDeclaration;if(i.type){var o=Ig.getEffectiveTypeAnnotationNode(i);o&&wu(r.inferences,Hs(o),Qd(t,a))}}}(i,a,o),function(e,t){e.typeParameters=t.typeParameters,t.thisParameter&&(!(a=e.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(e.thisParameter=pu(t.thisParameter,void 0)),Zd(e.thisParameter,oa(t.thisParameter)));for(var r=e.parameters.length-(e.hasRestParameter?1:0),n=0;n<r;n++){var a=e.parameters[n];Ig.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Zd(a,Qd(t,n))}e.hasRestParameter&&Hc(t,e.parameters.length-1)&&(!or(a=Ig.lastOrUndefined(e.parameters))&&Ig.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Zd(a,oa(Ig.lastOrUndefined(t.parameters))))}(i,o===k?a:nc(a,o))}if(!Ig.getEffectiveReturnTypeNode(e)&&!i.resolvedReturnType){var s=tp(e,t);i.resolvedReturnType||(i.resolvedReturnType=s)}}Bp(e),vm(e)}}return L&&153!==e.kind&&(Ef(e,e.name),Df(e,e.name),Sf(e,e.name)),n}function sp(e){Ig.Debug.assert(153!==e.kind||Ig.isObjectLiteralMethod(e));var t=Ig.getFunctionFlags(e),r=Ig.getEffectiveReturnTypeNode(e),n=r&&(2==(3&t)?of(e):Hs(r));if(0==(1&t)&&ip(e,n),e.body){if(r||ro(Qi(e)),211===e.body.kind)gm(e.body);else{var a=Op(e.body);n&&Sc(2==(3&t)?nf(a,e.body,Ig.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,n,e.body)}ff(e)}}function cp(e,t,r){return!!fp(t,84)||(ar(e,r),!1)}function up(e){return!!(8&Ig.getCheckFlags(e)||4&e.flags&&64&Ig.getDeclarationModifierFlagsFromSymbol(e)||3&e.flags&&2&Ul(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags)}function _p(e,t){if(up(t)){if(4&t.flags&&(183===e.kind||184===e.kind)&&99===e.expression.kind){var r=Ig.getContainingFunction(e);return!r||154!==r.kind||!(r.parent===t.valueDeclaration.parent||r===t.valueDeclaration.parent)}return!0}return!1}function lp(e){if(183===e.kind||184===e.kind){var t=Ig.skipParentheses(e.expression);if(71===t.kind){var r=fr(t).resolvedSymbol;if(2097152&r.flags){var n=Tr(r);return n&&244===n.kind}}}return!1}function dp(e,t){var r=Ig.skipOuterExpressions(e,3);return 71===r.kind||183===r.kind||184===r.kind||(ar(e,t),!1)}function pp(e,t){if(e.flags&t||536870912&t&&pi(e))return!0;if(393216&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(pp(n[r],t))return!0;return!1}function fp(e,t,r){return!!(e.flags&t)||!(r&&14337&e.flags)&&(84&t&&bc(e,X)||524322&t&&bc(e,G)||136&t&&bc(e,Z)||2048&t&&bc(e,ee)||16384&t&&bc(e,te)||8192&t&&bc(e,W)||4096&t&&bc(e,q)||512&t&&bc(e,$)||134217728&t&&bc(e,ae))}function mp(e,t,r){return 131072&e.flags?Ig.every(e.types,function(e){return mp(e,t,r)}):fp(e,t,r)}function gp(e){return 16&Ig.getObjectFlags(e)&&e.symbol&&yp(e.symbol)}function yp(e){return 0!=(128&e.flags)}function vp(e,t,r){if(268===t.kind||269===t.kind){var n=t.name;if(146===n.kind&&hl(n),jn(n))return;var a=Ig.getTextOfPropertyName(n);if(s=zn(e)?e:Bn(e,a)||vl(a)&&Ji(e,1)||Ji(e,0))return 269===t.kind?bp(t,s):bp(t.initializer,s);ar(n,Ig.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,Sn(e),Ig.declarationNameToString(n))}else{if(270===t.kind){w<6&&sg(t,4);var i=[];if(r)for(var o=0;o<r.length-1;o++)i.push(r[o].name);var s=Kn(e,i,e.symbol);return bp(t.expression,s)}ar(t,Ig.Diagnostics.Property_assignment_expected)}}function hp(e,t,r,n,a){var i=e.elements,o=i[r];if(204!==o.kind)if(202!==o.kind){var s=""+r,c=zn(t)?t:Yc(t)?Bn(t,s):n;if(c)return bp(o,c,a);Op(o),au(t)?ar(o,Ig.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,Sn(t),ko(t),i.length):ar(o,Ig.Diagnostics.Type_0_has_no_property_1,Sn(t),s)}else if(r<i.length-1)ar(o,Ig.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=o.expression;if(198!==u.kind||58!==u.operatorToken.kind)return bp(u,rs(n),a);ar(u.operatorToken,Ig.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function bp(e,t,r){var n,a,i,o,s;if(269===e.kind){var c=e;c.objectAssignmentInitializer&&(!P||4096&ou(Op(c.objectAssignmentInitializer))||(t=Yu(t,131072)),Dp(c.name,c.equalsToken,c.objectAssignmentInitializer,r)),n=e.name}else n=e;return 198===n.kind&&58===n.operatorToken.kind&&(kp(n,r),n=n.left),182===n.kind?function(e,t){var r=e.properties;if(P&&0===r.length)return Gl(t,e);for(var n=0,a=r;n<a.length;n++)vp(t,a[n],r);return t}(n,t):181===n.kind?function(e,t,r){w<2&&O.downlevelIteration&&sg(e,512);for(var n=Jf(t,e,!1,!1)||U,a=e.elements,i=0;i<a.length;i++)hp(e,t,i,n,r);return t}(n,t,r):(i=t,o=Op(a=n,r),s=270===a.parent.kind?Ig.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Ig.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,dp(a,s)&&Sc(i,o,a,void 0),i)}function xp(e,t){return 0!=(12288&t.flags)||kc(e,t)}function kp(e,t){return Ig.isInJavaScriptFile(e)&&Ig.getAssignedJavascriptInitializer(e)?Op(e.right,t):Dp(e.left,e.operatorToken,e.right,t,e)}function Dp(r,e,n,t,a){var i=e.kind;if(58===i&&(182===r.kind||181===r.kind))return bp(r,Op(n,t),t);var o,s,c,u,_,l,d,p,f,m,g=Op(r,t),y=Op(n,t);switch(i){case 39:case 40:case 61:case 62:case 41:case 63:case 42:case 64:case 38:case 60:case 45:case 65:case 46:case 66:case 47:case 67:case 49:case 69:case 50:case 70:case 48:case 68:if(g===re||y===re)return re;g=Gl(g,r),y=Gl(y,n);var v=void 0;if(136&g.flags&&136&y.flags&&void 0!==(v=function(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}(e.kind)))ar(a||e,Ig.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Ig.tokenToString(e.kind),Ig.tokenToString(v));else{var h=cp(r,g,Ig.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),b=cp(n,y,Ig.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);h&&b&&C(X)}return X;case 37:case 59:if(g===re||y===re)return re;fp(g,524322)||fp(y,524322)||(g=Gl(g,r),y=Gl(y,n));var x=void 0;return fp(g,84,!0)&&fp(y,84,!0)?x=X:fp(g,524322,!0)||fp(y,524322,!0)?x=G:(zn(g)||zn(y))&&(x=g===U||y===U?U:J),x&&!S(i)?x:x?(59===i&&C(x),x):(T(),J);case 27:case 29:case 30:case 31:return S(i)&&(g=eu(Gl(g,r)),y=eu(Gl(y,n)),kc(g,y)||kc(y,g)||T()),Z;case 32:case 33:case 34:case 35:var k=$c(g),D=$c(y);return k&&D||(g=k?eu(g):g,y=D?eu(y):y),xp(g,y)||xp(y,g)||T(),Z;case 93:return d=r,p=n,m=y,(f=g)===re||m===re?re:(!zn(f)&&mp(f,16382)&&ar(d,Ig.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),zn(m)||wm(m)||hc(m,ve)||ar(p,Ig.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Z);case 92:return c=r,u=n,l=y,(_=g)===re||l===re?re:(_=Gl(_,c),l=Gl(l,u),kc(_,G)||fp(_,1620)||ar(c,Ig.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),fp(l,141590528)||ar(u,Ig.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Z);case 53:return 1048576&Qu(g)?ds([(s=P?g:eu(y),f_(s,cu)),y]):g;case 54:return 2097152&Qu(g)?ds([su(g),y],2):g;case 58:return C(y),fu(y);case 26:return!O.allowUnreachableCode&&function e(t){switch((t=Ig.skipParentheses(t)).kind){case 71:case 9:case 12:case 187:case 200:case 13:case 8:case 101:case 86:case 95:case 140:case 190:case 203:case 191:case 181:case 182:case 193:case 207:case 254:case 253:return!0;case 199:return e(t.whenTrue)&&e(t.whenFalse);case 198:return!Ig.isAssignmentOperator(t.operatorToken.kind)&&e(t.left)&&e(t.right);case 196:case 197:switch(t.operator){case 51:case 37:case 38:case 52:return!0}return!1;case 194:case 188:case 206:default:return!1}}(r)&&(71!==(o=n).kind||"eval"!==o.escapedText)&&ar(r,Ig.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),y}function S(e){var t=pp(g,1536)?r:pp(y,1536)?n:void 0;return!t||(ar(t,Ig.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Ig.tokenToString(e)),!1)}function C(e){L&&Ig.isAssignmentOperator(i)&&dp(r,Ig.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)&&Sc(e,g,r,void 0)}function T(){ar(a||e,Ig.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,Ig.tokenToString(e.kind),Sn(g),Sn(y))}}function Sp(e){L&&(4096&e.flags&&!function(e){for(var t=e,r=e.parent;r;){if(Ig.isFunctionLike(r)&&t===r.body)return!1;if(Ig.isClassLike(t))return!0;r=(t=r).parent}return!1}(e)||Ng(e,Ig.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),G_(e)&&ar(e,Ig.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=Ig.getContainingFunction(e),r=t?Ig.getFunctionFlags(t):0;if(!(1&r))return J;e.asteriskToken&&(3==(3&r)&&w<6&&sg(e,26624),1==(3&r)&&w<2&&O.downlevelIteration&&sg(e,256));var n=0!=(2&r),a=rp(e,n),i=Ig.getEffectiveReturnTypeNode(t);return i&&Sc(a,qf(Hs(i),n)||J,e.expression||e,void 0),J}function Cp(e,t,r){var n,a=261===(n=e).kind?n.parent.parent:n,i=a.contextualType,o=a.contextualMapper;a.contextualType=t;var s=Op(e,(a.contextualMapper=r)===k?1:r?2:3);return a.contextualType=i,a.contextualMapper=o,s}function Tp(e,t){var r=fr(e);if(!r.resolvedType){if(t)return Op(e,t);var n=nt;nt=at,r.resolvedType=Op(e,t),nt=n}return r.resolvedType}function Ep(e){return 188===(e=Ig.skipParentheses(e)).kind||206===e.kind}function Np(e){var t=Ig.isInJavaScriptFile(e)&&Ig.getDeclaredJavascriptInitializer(e)||e.initializer,r=Ip(t,!0);return 2&Ig.getCombinedNodeFlags(e)||64&Ig.getCombinedModifierFlags(e)&&!Ig.isParameterPropertyDeclaration(e)||Ep(t)?r:tu(r)}function Ap(e,t,r){2===arguments.length&&(r=ol(e));var n=Op(e,t);return Ep(e)?n:nu(n,r)}function Pp(e,t){return 146===e.name.kind&&hl(e.name),Ap(e.initializer,t)}function Fp(e,t){return Sg(e),146===e.name.kind&&hl(e.name),wp(e,op(e,t),t)}function wp(e,t,r){if(2===r){var n=pd(t);if(n&&n.typeParameters){var a=il(e);if(a){var i=pd(lu(a));if(i&&!i.typeParameters)return _o(fd(n,i,sl(e)))}}}return t}function Ip(e,t){if(185===e.kind&&97!==e.expression.kind&&!Ig.isRequireCall(e,!0)&&!Ud(e)){var r=pd(Hl(e.expression));if(r&&!r.typeParameters)return ro(r)}return t?Tp(e):Op(e)}function Op(e,t){var r;return gp(r=145===e.kind?Ql(e):wp(e,function(e,t){switch(e.kind){case 71:return L_(e);case 99:return function(e){var t=Ig.getThisContainer(e,!0),r=!1;switch(154===t.kind&&j_(e,t,Ig.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),191===t.kind&&(t=Ig.getThisContainer(t,!1),r=w<2),t.kind){case 237:ar(e,Ig.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 236:ar(e,Ig.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:U_(e,t)&&ar(e,Ig.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:Ig.hasModifier(t,32)&&ar(e,Ig.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:ar(e,Ig.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&R_(e,t);var n=K_(e,t);return!n&&E&&ar(e,Ig.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),n||J}(e);case 97:return q_(e);case 95:return H;case 13:case 9:return Ks(qs(e.text));case 8:return wg(e),Ks(qs(+e.text));case 101:return Q;case 86:return Y;case 200:return x=e,Ig.forEach(x.templateSpans,function(e){Op(e.expression)}),G;case 12:return Se;case 181:return gl(e,t);case 182:return xl(e,t);case 183:return Xl(e);case 184:return od(e);case 185:if(91===e.expression.kind)return qd(e);case 186:return Kd(e);case 187:return b=e,w<2&&sg(b,65536),ro(Ld(b));case 189:return r=e,n=t,(a=Ig.isInJavaScriptFile(r)?Ig.getJSDocTypeTag(r):void 0)?Hd(a,a.typeExpression.type,r.expression,n):Op(r.expression,n);case 203:return $f(h=e),vm(h),oa(en(h));case 190:case 191:return op(e,t);case 193:return Op(e.expression),Gt;case 188:case 206:return Hd(v=e,v.type,v.expression);case 207:return lu(Op(e.expression));case 208:return Gd(e);case 192:return function(e){Op(e.expression);var t=Ig.skipParentheses(e.expression);if(183!==t.kind&&184!==t.kind)return ar(t,Ig.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),Z;var r=rn(fr(t).resolvedSymbol);return r&&up(r)&&ar(t,Ig.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),Z}(e);case 194:return Op(e.expression),V;case 195:return y=e,L&&(16384&y.flags||Ng(y,Ig.Diagnostics.await_expression_is_only_allowed_within_an_async_function),G_(y)&&ar(y,Ig.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),nf(Op(y.expression),y,Ig.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);case 196:return function(e){var t=Op(e.operand);if(t===re)return re;if(8===e.operand.kind){if(38===e.operator)return Ks(qs(-e.operand.text));if(37===e.operator)return Ks(qs(+e.operand.text))}switch(e.operator){case 37:case 38:case 52:return Gl(t,e.operand),pp(t,1536)&&ar(e.operand,Ig.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Ig.tokenToString(e.operator)),X;case 51:var r=3145728&Qu(t);return 1048576===r?Y:2097152===r?Q:Z;case 43:case 44:return cp(e.operand,Gl(t,e.operand),Ig.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&dp(e.operand,Ig.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),X}return U}(e);case 197:return(g=Op((m=e).operand))===re?re:(cp(m.operand,Gl(g,m.operand),Ig.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&dp(m.operand,Ig.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),X);case 198:return kp(e,t);case 199:return f=t,Op((p=e).condition),ds([Op(p.whenTrue,f),Op(p.whenFalse,f)],2);case 202:return l=e,d=t,w<2&&O.downlevelIteration&&sg(l,1536),Jf(Op(l.expression,d),l.expression,!1,!1);case 204:return V;case 201:return Sp(e);case 263:return function(e,t){if(e.expression){var r=Op(e.expression,t);return e.dotDotDotToken&&r!==J&&!Xc(r)&&ar(e,Ig.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return U}(e,t);case 253:return _=t,jl((u=e).openingElement,_),Sl(u.closingElement.tagName)?Al(u.closingElement):Op(u.closingElement.tagName),zl(u)||J;case 254:return jl(c=e,t),zl(c)||J;case 257:return s=t,jl((o=e).openingFragment,s),2===O.jsx&&(O.jsxFactory||Ig.getSourceFileOfNode(o).pragmas.has("jsx"))&&ar(o,O.jsxFactory?Ig.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:Ig.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),zl(o)||J;case 261:return i=t,Tl(e.parent,i);case 255:Ig.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}var r,n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h,b,x;return U}(e,t),t))&&(183===e.parent.kind&&e.parent.expression===e||184===e.parent.kind&&e.parent.expression===e||(71===e.kind||145===e.kind)&&Tm(e)||164===e.parent.kind&&e.parent.exprName===e||ar(e,Ig.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)),r}function Mp(e){e.expression&&Ng(e.expression,Ig.Diagnostics.Type_expected),gm(e.constraint),gm(e.default);var t=Na(en(e));Ti(t)||ar(e.constraint,Ig.Diagnostics.Type_parameter_0_has_a_circular_constraint,Sn(t)),Ni(t)===le&&ar(e.default,Ig.Diagnostics.Type_parameter_0_has_a_circular_default,Sn(t));var r=bi(t),n=Ai(t);r&&n&&Sc(n,Ha(r,n),e.default,Ig.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),L&&Qf(e.name,Ig.Diagnostics.Type_parameter_name_cannot_be_0)}function Lp(e){ug(e),wf(e);var t=Ig.getContainingFunction(e);Ig.hasModifier(e,92)&&(154===t.kind&&Ig.nodeIsPresent(t.body)||ar(e,Ig.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),e.questionToken&&Ig.isBindingPattern(e.name)&&t.body&&ar(e,Ig.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Ig.isIdentifier(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&ar(e,Ig.Diagnostics.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),154!==t.kind&&158!==t.kind&&163!==t.kind||ar(e,Ig.Diagnostics.A_constructor_cannot_have_a_this_parameter)),!e.dotDotDotToken||Ig.isBindingPattern(e.name)||Xc(oa(e.symbol))||ar(e,Ig.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function Rp(e,t,r){for(var n=0,a=e.elements;n<a.length;n++){var i=a[n];if(!Ig.isOmittedExpression(i)){var o=i.name;if(71===o.kind&&o.escapedText===r)return ar(t,Ig.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,r),!0;if((179===o.kind||178===o.kind)&&Rp(o,t,r))return!0}}}function Bp(e){var t;159===e.kind?ug(t=e)||function(e){var t=e.parameters[0];if(1!==e.parameters.length)return Pg(t?t.name:e,Ig.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(t.dotDotDotToken)return Pg(t.dotDotDotToken,Ig.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(Ig.hasModifiers(t))return Pg(t.name,Ig.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Pg(t.questionToken,Ig.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Pg(t.name,Ig.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Pg(t.name,Ig.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(137!==t.type.kind&&134!==t.type.kind){var r=Hs(t.type);return 2&r.flags||4&r.flags?Pg(t.name,Ig.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,Ig.getTextOfNode(t.name),Sn(r),Sn(Hs(e.type))):mp(r,32,!0)?Pg(t.name,Ig.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Pg(t.name,Ig.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}e.type||Pg(e,Ig.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t):162!==e.kind&&232!==e.kind&&163!==e.kind&&157!==e.kind&&154!==e.kind&&158!==e.kind||pg(e);var r,n=Ig.getFunctionFlags(e);if(4&n||(3==(3&n)&&w<6&&sg(e,6144),2==(3&n)&&w<4&&sg(e,64),0!=(3&n)&&w<2&&sg(e,128)),Yf(e.typeParameters),Ig.forEach(e.parameters,Lp),e.type&&gm(e.type),L){r=e,!Ig.hasRestParameter(r)||2097152&r.flags||Ig.nodeIsMissing(r.body)||Ig.forEach(r.parameters,function(e){e.name&&!Ig.isBindingPattern(e.name)&&e.name.escapedText===F.escapedName&&ar(e,Ig.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)});var a=Ig.getEffectiveReturnTypeNode(e);if(T&&!a)switch(e.kind){case 158:ar(e,Ig.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 157:ar(e,Ig.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(a){var i=Ig.getFunctionFlags(e);if(1==(5&i)){var o=Hs(a);if(o===ee)ar(a,Ig.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=qf(o,0!=(2&i))||J;Sc(2&i?$o(s):ts(s),o,a)}}else 2==(3&i)&&of(e)}A&&!e.body&&hf(e)}}function zp(e){for(var t=Ig.createMap(),r=0,n=e.members;r<n.length;r++){var a=n[r];if(150===a.kind){var i=void 0;switch(a.name.kind){case 9:case 8:i=a.name.text;break;case 71:i=Ig.idText(a.name);break;default:continue}t.get(i)?(ar(Ig.getNameOfDeclaration(a.symbol.valueDeclaration),Ig.Diagnostics.Duplicate_identifier_0,i),ar(a.name,Ig.Diagnostics.Duplicate_identifier_0,i)):t.set(i,!0)}}}function Jp(e){if(234===e.kind){var t=en(e);if(0<t.declarations.length&&t.declarations[0]!==e)return}var r=lo(en(e));if(r)for(var n=!1,a=!1,i=0,o=r.declarations;i<o.length;i++){var s=o[i];if(1===s.parameters.length&&s.parameters[0].type)switch(s.parameters[0].type.kind){case 137:a?ar(s,Ig.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 134:n?ar(s,Ig.Diagnostics.Duplicate_number_index_signature):n=!0}}}function jp(e){ug(e)||function(e){if(Ig.isClassLike(e.parent)){if(Dg(e.name,Ig.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(234===e.parent.kind){if(Dg(e.name,Ig.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(e.initializer)return Pg(e.initializer,Ig.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(165===e.parent.kind){if(Dg(e.name,Ig.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(e.initializer)return Pg(e.initializer,Ig.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}return 2097152&e.flags&&e.initializer?Ng(e.initializer,Ig.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts):Ig.isPropertyDeclaration(e)&&e.exclamationToken&&(!Ig.isClassLike(e.parent)||!e.type||e.initializer||2097152&e.flags||Ig.hasModifier(e,160))?Pg(e.exclamationToken,Ig.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context):void 0}(e)||vg(e.name),wf(e)}function Kp(e){var t,r;Bp(e),function(e){var t=Ig.getEffectiveTypeParameterDeclarations(e);if(t){var r=Ig.isNodeArray(t)?t:Ig.first(t),n=r.pos,a=r.end;return Ag(e,n,a-n,Ig.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||(t=e,(r=Ig.getEffectiveReturnTypeNode(t))&&Pg(r,Ig.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)),gm(e.body),ff(e);var n=en(e);if(e===Ig.getDeclarationOfKind(n,e.kind)&&$p(n),!Ig.nodeIsMissing(e.body)&&L){var a=e.parent;if(Ig.getClassExtendsHeritageClauseElement(a)){R_(e.parent,a);var i=J_(a),o=z_(e);if(o){if(i&&ar(o,Ig.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),Ig.some(e.parent.members,function(e){return 151===e.kind&&!Ig.hasModifier(e,32)&&!!e.initializer})||Ig.some(e.parameters,function(e){return Ig.hasModifier(e,92)})){for(var s=void 0,c=0,u=e.body.statements;c<u.length;c++){var _=u[c];if(214===_.kind&&Ig.isSuperCall(_.expression)){s=_;break}if(!Ig.isPrologueDirective(_))break}s||ar(e,Ig.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else i||ar(e,Ig.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Up(e){if(L){if(pg(e)||function(e){var t,r=e.kind;if(w<1)return Pg(e.name,Ig.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(2097152&e.flags)return Pg(e.name,Ig.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===e.body&&!Ig.hasModifier(e,128))return Ag(e,e.end-1,";".length,Ig.Diagnostics._0_expected,"{");if(e.body&&Ig.hasModifier(e,128))return Pg(e,Ig.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(e.typeParameters)return Pg(e.name,Ig.Diagnostics.An_accessor_cannot_have_type_parameters);if(!kg(t=e)&&t.parameters.length!==(155===t.kind?0:1))return Pg(e.name,155===r?Ig.Diagnostics.A_get_accessor_cannot_have_parameters:Ig.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(156===r){if(e.type)return Pg(e.name,Ig.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=e.parameters[0];if(n.dotDotDotToken)return Pg(n.dotDotDotToken,Ig.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return Pg(n.questionToken,Ig.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return Pg(e.name,Ig.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}(e)||vg(e.name),lf(e),Bp(e),155===e.kind&&!(2097152&e.flags)&&Ig.nodeIsPresent(e.body)&&128&e.flags&&(256&e.flags||ar(e.name,Ig.Diagnostics.A_get_accessor_must_return_a_value)),146===e.name.kind&&hl(e.name),!ja(e)){var t=155===e.kind?156:155,r=Ig.getDeclarationOfKind(en(e),t);if(r){var n=Ig.getModifierFlags(e),a=Ig.getModifierFlags(r);(28&n)!=(28&a)&&ar(e.name,Ig.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&n)!=(128&a)&&ar(e.name,Ig.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),qp(e,r,ea,Ig.Diagnostics.get_and_set_accessor_must_have_the_same_type),qp(e,r,ta,Ig.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var i=ra(en(e));155===e.kind&&ip(e,i)}gm(e.body),ff(e)}function qp(e,t,r,n){var a=r(e),i=r(t);a&&i&&!gc(a,i)&&ar(e,n)}function Vp(e,t){return Xi(Ig.map(e.typeArguments,Hs),t,Gi(t),Ig.isInJavaScriptFile(e))}function Wp(e,t){for(var r,n,a=!0,i=0;i<t.length;i++){var o=bi(t[i]);o&&(r||(n=Ys(t,r=Vp(e,t))),a=a&&Sc(r[i],uc(o,n),e.typeArguments[i],Ig.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function Hp(e){var t=Io(e);if(t!==U){var r=fr(e).resolvedSymbol;if(r)return 524288&r.flags&&pr(r).typeParameters||(4&Ig.getObjectFlags(t)?t.target.localTypeParameters:void 0)}}function Gp(e){fg(e,e.typeArguments),161!==e.kind||void 0===e.typeName.jsdocDotPos||Ig.isInJavaScriptFile(e)||Ig.isInJSDoc(e)||Ag(e,e.typeName.jsdocDotPos,1,Ig.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var t=Io(e);if(t!==U){if(e.typeArguments&&(Ig.forEach(e.typeArguments,gm),L)){var r=Hp(e);r&&Wp(e,r)}16&t.flags&&8&fr(e).resolvedSymbol.flags&&ar(e,Ig.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Sn(t))}}function Xp(e,t){if(!(1048576&e.flags))return e;var r=e.objectType,n=e.indexType;return bc(n,vs(r))?184===t.kind&&Ig.isAssignmentTarget(t)&&32&Ig.getObjectFlags(r)&&1&_i(r)&&ar(t,Ig.Diagnostics.Index_signature_in_type_0_only_permits_reading,Sn(r)):zi(Pi(r),1)&&fp(n,84)||ar(t,Ig.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Sn(n),Sn(r)),e}function Qp(e){!function(e){if(141===e.operator){if(138!==e.type.kind)return Pg(e.type,Ig.Diagnostics._0_expected,Ig.tokenToString(138));var t=Ig.walkUpParenthesizedTypes(e.parent);switch(t.kind){case 230:var r=t;if(71!==r.name.kind)return Pg(e,Ig.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Ig.isVariableDeclarationInVariableStatement(r))return Pg(e,Ig.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return Pg(t.name,Ig.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 151:if(!Ig.hasModifier(t,32)||!Ig.hasModifier(t,64))return Pg(t.name,Ig.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 150:if(!Ig.hasModifier(t,64))return Pg(t.name,Ig.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Pg(e,Ig.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}(e),gm(e.type)}function Yp(e){return Ig.hasModifier(e,8)&&!!(2097152&e.flags)}function Zp(e,t){var r=Ig.getCombinedModifierFlags(e);return 234!==e.parent.kind&&233!==e.parent.kind&&203!==e.parent.kind&&2097152&e.flags&&(2&r||(r|=1),r|=2),r&t}function $p(e){if(L){for(var t,r,n,a=0,i=155,o=!1,s=!0,c=!1,u=e.declarations,_=0!=(16384&e.flags),l=!1,d=!1,p=0,f=u;p<f.length;p++){var m=f[p],g=2097152&m.flags,y=234===m.parent.kind||165===m.parent.kind||g;if(y&&(n=void 0),232===m.kind||153===m.kind||152===m.kind||154===m.kind){var v=Zp(m,155);a|=v,i&=v,o=o||Ig.hasQuestionToken(m),s=s&&Ig.hasQuestionToken(m),Ig.nodeIsPresent(m.body)&&t?_?d=!0:l=!0:n&&n.parent===m.parent&&n.end!==m.pos&&C(n),Ig.nodeIsPresent(m.body)?t||(t=m):c=!0,n=m,y||(r=m)}}if(d&&Ig.forEach(u,function(e){ar(e,Ig.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),l&&Ig.forEach(u,function(e){ar(Ig.getNameOfDeclaration(e),Ig.Diagnostics.Duplicate_function_implementation)}),!r||r.body||Ig.hasModifier(r,128)||r.questionToken||C(r),c&&(function(e,t,r,n,a){if(0!=(n^a)){var i=Zp(S(e,t),r);Ig.forEach(e,function(e){var t=Zp(e,r)^i;1&t?ar(Ig.getNameOfDeclaration(e),Ig.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&t?ar(Ig.getNameOfDeclaration(e),Ig.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&t?ar(Ig.getNameOfDeclaration(e)||e,Ig.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&t&&ar(Ig.getNameOfDeclaration(e),Ig.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(u,t,155,a,i),function(e,t,r,n){if(r!==n){var a=Ig.hasQuestionToken(S(e,t));Ig.forEach(e,function(e){Ig.hasQuestionToken(e)!==a&&ar(Ig.getNameOfDeclaration(e),Ig.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(u,t,o,s),t))for(var h=Zi(e),b=Qi(t),x=0,k=h;x<k.length;x++){var D=k[x];if(!Ec(b,D)){ar(D.declaration,Ig.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}function S(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function C(t){if(!t.name||!Ig.nodeIsMissing(t.name)){var r=!1,e=Ig.forEachChild(t.parent,function(e){if(r)return e;r=e===t});if(e&&e.pos===t.end&&e.kind===t.kind){var n=e.name||e,a=e.name;if(t.name&&a&&(Ig.isComputedPropertyName(t.name)&&Ig.isComputedPropertyName(a)||!Ig.isComputedPropertyName(t.name)&&!Ig.isComputedPropertyName(a)&&Ig.getEscapedTextOfIdentifierOrLiteral(t.name)===Ig.getEscapedTextOfIdentifierOrLiteral(a)))return void(153!==t.kind&&152!==t.kind||Ig.hasModifier(t,32)===Ig.hasModifier(e,32)||ar(n,Ig.hasModifier(t,32)?Ig.Diagnostics.Function_overload_must_be_static:Ig.Diagnostics.Function_overload_must_not_be_static));if(Ig.nodeIsPresent(e.body))return void ar(n,Ig.Diagnostics.Function_implementation_name_must_be_0,Ig.declarationNameToString(t.name))}var i=t.name||t;_?ar(i,Ig.Diagnostics.Constructor_implementation_is_missing):Ig.hasModifier(t,128)?ar(i,Ig.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):ar(i,Ig.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function ef(e){if(L){var t=e.localSymbol;if((t||(t=en(e)).exportSymbol)&&Ig.getDeclarationOfKind(t,e.kind)===e){for(var r=0,n=0,a=0,i=0,o=t.declarations;i<o.length;i++){var s=y(m=o[i]),c=Zp(m,513);1&c?512&c?a|=s:r|=s:n|=s}var u,_,l=r&n,d=a&(r|n);if(l||d)for(var p=0,f=t.declarations;p<f.length;p++){s=y(m=f[p]);var m,g=Ig.getNameOfDeclaration(m);s&d?ar(g,Ig.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ig.declarationNameToString(g)):s&l&&ar(g,Ig.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ig.declarationNameToString(g))}(_=u||(u={}))[_.None=0]="None",_[_.ExportValue=1]="ExportValue",_[_.ExportType=2]="ExportType",_[_.ExportNamespace=4]="ExportNamespace"}}function y(e){switch(e.kind){case 234:case 235:case 291:return 2;case 237:return Ig.isAmbientModule(e)||0!==Ig.getModuleInstanceState(e)?5:4;case 233:case 236:return 3;case 272:return 7;case 241:case 244:case 243:var t=0,r=Or(en(e));return Ig.forEach(r.declarations,function(e){t|=y(e)}),t;case 230:case 180:case 232:case 246:return 1;default:Ig.Debug.fail(Ig.Debug.showSyntaxKind(e))}}}function tf(e,t,r){var n=rf(e,t);return n&&af(n,t,r)}function rf(e,t){if(!zn(e)){var r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(sa(e,Ko(!1)))return r.promisedTypeOfPromise=e.typeArguments[0];var n=Bn(e,"then");if(!zn(n)){var a=n?Li(n,0):Ig.emptyArray;if(0!==a.length){var i=Yu(ds(Ig.map(a,Yd)),524288);if(!zn(i)){var o=Li(i,0);if(0!==o.length)return r.promisedTypeOfPromise=ds(Ig.map(o,Yd),2);t&&ar(t,Ig.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else t&&ar(t,Ig.Diagnostics.A_promise_must_have_a_then_method)}}}function nf(e,t,r){return af(e,t,r)||U}function af(e,t,r){var n=e;if(n.awaitedTypeOfType)return n.awaitedTypeOfType;if(zn(e))return n.awaitedTypeOfType=e;if(131072&e.flags){for(var a=void 0,i=0,o=e.types;i<o.length;i++){var s=o[i];a=Ig.append(a,af(s,t,r))}if(!a)return;return n.awaitedTypeOfType=ds(a)}var c=rf(e);if(c){if(e.id===c.id||0<=Ct.indexOf(c.id))return void(t&&ar(t,Ig.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Ct.push(e.id);var u=af(c,t,r);if(Ct.pop(),!u)return;return n.awaitedTypeOfType=u}var _=Bn(e,"then");if(!(_&&0<Li(_,0).length))return n.awaitedTypeOfType=e;t&&(Ig.Debug.assert(!!r),ar(t,r))}function of(e){var t,r,n=Ig.getEffectiveReturnTypeNode(e),a=Hs(n);if(2<=w){if(a===U)return U;var i=Ko(!0);if(i!==ce&&!sa(a,i))return ar(n,Ig.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),U}else{if(cf((r=n)&&Ig.getEntityNameFromTypeNode(r)),a===U)return U;var o=Ig.getEntityNameFromTypeNode(n);if(void 0===o)return ar(n,Ig.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,Sn(a)),U;var s=zr(o,67216319,!0),c=s?oa(s):U;if(c===U)return 71===o.kind&&"Promise"===o.escapedText&&ca(a)===Ko(!1)?ar(n,Ig.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):ar(n,Ig.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,Ig.entityNameToString(o)),U;var u=(t=!0,Me||(Me=zo("PromiseConstructorLike",0,t))||ie);if(u===ie)return ar(n,Ig.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,Ig.entityNameToString(o)),U;if(!Sc(c,u,n,Ig.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 U;var _=o&&cm(o),l=gr(e.locals,_.escapedText,67216319);if(l)return ar(l.valueDeclaration,Ig.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Ig.idText(_),Ig.entityNameToString(o)),U}return nf(a,e,Ig.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function sf(e){var t=ro(Ld(e));if(!(1&t.flags)){var r,n,a=Fd(e);switch(e.parent.kind){case 233:r=ds([oa(en(e.parent)),ee]);break;case 148:r=ee,n=Ig.chainDiagnosticMessages(n,Ig.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:r=ee,n=Ig.chainDiagnosticMessages(n,Ig.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:r=ds([Zo(Am(e.parent)),ee])}Sc(t,r,e,a,function(){return n})}}function cf(e){if(e){var t=cm(e),r=2097152|(71===e.kind?67901928:1920),n=vr(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&nn(n)&&!Um(Or(n))&&Lr(n)}}function uf(e){var t=function e(t){if(t)switch(t.kind){case 169:case 168:for(var r=void 0,n=0,a=t.types;n<a.length;n++){for(var i=a[n];172===i.kind;)i=i.type;if(131!==i.kind&&(P||95!==i.kind&&140!==i.kind)){var o=e(i);if(!o)return;if(r){if(!Ig.isIdentifier(r)||!Ig.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r;case 172:return e(t.type);case 161:return t.typeName}}(e);t&&Ig.isEntityName(t)&&cf(t)}function _f(e){var t=Ig.getEffectiveTypeAnnotationNode(e);return Ig.isRestParameter(e)?Ig.getRestParameterElementType(t):t}function lf(e){if(e.decorators&&Ig.nodeCanBeDecorated(e,e.parent,e.parent.parent)){O.experimentalDecorators||ar(e,Ig.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning);var t=e.decorators[0];if(sg(t,8),148===e.kind&&sg(t,32),O.emitDecoratorMetadata)switch(sg(t,16),e.kind){case 233:var r=Ig.getFirstConstructorWithBody(e);if(r)for(var n=0,a=r.parameters;n<a.length;n++)uf(_f(a[n]));break;case 153:case 155:case 156:for(var i=0,o=e.parameters;i<o.length;i++)uf(_f(o[i]));uf(Ig.getEffectiveReturnTypeNode(e));break;case 151:uf(Ig.getEffectiveTypeAnnotationNode(e));break;case 148:uf(_f(e));for(var s=0,c=e.parent.parameters;s<c.length;s++)uf(_f(c[s]))}Ig.forEach(e.decorators,sf)}}function df(e){switch(e.kind){case 71:return e;case 183:return e.name;default:return}}function pf(t){lf(t),Bp(t);var e=Ig.getFunctionFlags(t);if(t.name&&146===t.name.kind&&hl(t.name),!ja(t)){var r=en(t),n=t.localSymbol||r,a=Ig.find(n.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===a&&$p(n),r.parent&&Ig.getDeclarationOfKind(r,t.kind)===t&&$p(r)}var i=152===t.kind?void 0:t.body;gm(i);var o=Ig.getEffectiveReturnTypeNode(t);if(0==(1&e)){var s=o&&(2&e?of(t):Hs(o));ip(t,s)}L&&!o&&(T&&Ig.nodeIsMissing(i)&&!Yp(t)&&bu(t,J),1&e&&Ig.nodeIsPresent(i)&&ro(Qi(t))),ff(t)}function ff(e){qe&&qe.push(e)}function mf(e){!A||2097152&e.flags||e.locals.forEach(function(t){if(262144&t.flags?3&t.flags&&!(3&t.isReferenced):!t.isReferenced)if(t.valueDeclaration&&148===Ig.getRootDeclaration(t.valueDeclaration).kind){var e=Ig.getRootDeclaration(t.valueDeclaration),r=Ig.getNameOfDeclaration(t.valueDeclaration);!O.noUnusedParameters||Ig.isParameterPropertyDeclaration(e)||Ig.parameterIsThisKeyword(e)||(n=r)&&yf(n)||ar(r,Ig.Diagnostics._0_is_declared_but_its_value_is_never_read,Ig.symbolName(t))}else O.noUnusedLocals&&Ig.forEach(t.declarations,function(e){return gf(e,Ig.symbolName(t))});var n})}function gf(e,t){var r=Ig.getNameOfDeclaration(e)||e;if(yf(r)){var n=Ig.getRootDeclaration(r.parent);if(230===n.kind&&Ig.isForInOrOfStatement(n.parent.parent)||147===n.kind)return}(function(e){if(Ig.isBindingElement(e)&&Ig.isObjectBindingPattern(e.parent)){var t=Ig.lastOrUndefined(e.parent.elements);return t!==e&&!!t.dotDotDotToken}return!1})(71===r.kind?r.parent:r)||Tt.add(Ig.createDiagnosticForNodeSpan(Ig.getSourceFileOfNode(e),e,r,Ig.Diagnostics._0_is_declared_but_its_value_is_never_read,t))}function yf(e){return Ig.isIdentifier(e)&&95===Ig.idText(e).charCodeAt(0)}function vf(e){if(O.noUnusedLocals&&!(2097152&e.flags))for(var t=0,r=e.members;t<r.length;t++){var n=r[t];switch(n.kind){case 153:case 151:case 155:case 156:if(156===n.kind&&32768&n.symbol.flags)break;var a=en(n);!a.isReferenced&&Ig.hasModifier(n,8)&&ar(n.name,Ig.Diagnostics._0_is_declared_but_its_value_is_never_read,kn(a));break;case 154:for(var i=0,o=n.parameters;i<o.length;i++){var s=o[i];!s.symbol.isReferenced&&Ig.hasModifier(s,8)&&ar(s.name,Ig.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,Ig.symbolName(s.symbol))}break;case 159:case 210:break;default:Ig.Debug.fail()}}}function hf(e){if(O.noUnusedParameters&&!(2097152&e.flags)&&e.typeParameters){var t=en(e);if((t&&t.declarations&&Ig.lastOrUndefined(t.declarations))!==e)return;for(var r=0,n=e.typeParameters;r<n.length;r++){var a=n[r];262144&$r(a.symbol).isReferenced||yf(a.name)||ar(a.name,Ig.Diagnostics._0_is_declared_but_its_value_is_never_read,Ig.symbolName(a.symbol))}}}function bf(e){if(O.noUnusedLocals&&!(2097152&e.flags)){var u=Ig.createMap();e.locals.forEach(function(e){var t,r;if(!e.isReferenced&&!e.exportSymbol)for(var n=0,a=e.declarations;n<a.length;n++){var i=a[n];if(!Ig.isAmbientModule(i))if(243===(r=i).kind||246===r.kind||244===r.kind){var o=243===(t=i).kind?t:244===t.kind?t.parent:t.parent.parent,s=String(Bg(o)),c=u.get(s);c?c[1].push(i):u.set(s,[o,[i]])}else gf(i,Ig.symbolName(e))}}),u.forEach(function(e){var t,r,n,a,i=e[0],o=e[1],s=i.parent;if(r=function(e){return!Ig.contains(o,e)},n=(t=i).name,a=t.namedBindings,n&&r(t)||a&&(244===a.kind?r(a):Ig.forEach(a.elements,r)))for(var c=0,u=o;c<u.length;c++){var _=u[c];gf(_,Ig.idText(_.name))}else 1===o.length?ar(s,Ig.Diagnostics._0_is_declared_but_its_value_is_never_read,Ig.idText(Ig.first(o).name)):ar(s,Ig.Diagnostics.All_imports_in_import_declaration_are_unused,Ig.showModuleSpecifier(s))})}}function xf(e){if(211===e.kind&&Fg(e),Ig.isFunctionOrModuleBlock(e)){var t=ot;Ig.forEach(e.statements,gm),ot=t}else Ig.forEach(e.statements,gm);e.locals&&ff(e)}function kf(e,t,r){if(!t||t.escapedText!==r)return!1;if(151===e.kind||150===e.kind||153===e.kind||152===e.kind||155===e.kind||156===e.kind)return!1;if(2097152&e.flags)return!1;var n=Ig.getRootDeclaration(e);return 148!==n.kind||!Ig.nodeIsMissing(n.parent.body)}function Df(e,t){kf(e,t,"_this")&&Dt.push(e)}function Sf(e,t){kf(e,t,"_newTarget")&&St.push(e)}function Cf(t){Ig.findAncestor(t,function(e){if(4&Hm(e))return 71!==t.kind?ar(Ig.getNameOfDeclaration(t),Ig.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):ar(t,Ig.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0})}function Tf(t){Ig.findAncestor(t,function(e){if(8&Hm(e))return 71!==t.kind?ar(Ig.getNameOfDeclaration(t),Ig.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):ar(t,Ig.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0})}function Ef(e,t){if(kf(e,t,"_super")){var r=Ig.getContainingClass(e);!r||2097152&r.flags||Ig.getClassExtendsHeritageClauseElement(r)&&ar(e,71!==e.kind?Ig.Diagnostics.Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:Ig.Diagnostics.Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference)}}function Nf(e,t){if(!(S>=Ig.ModuleKind.ES2015)&&(kf(e,t,"require")||kf(e,t,"exports"))&&(!Ig.isModuleDeclaration(e)||1===Ig.getModuleInstanceState(e))){var r=Rn(e);272===r.kind&&Ig.isExternalOrCommonJsModule(r)&&ar(t,Ig.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ig.declarationNameToString(t),Ig.declarationNameToString(t))}}function Af(e,t){if(!(4<=w)&&kf(e,t,"Promise")&&(!Ig.isModuleDeclaration(e)||1===Ig.getModuleInstanceState(e))){var r=Rn(e);272===r.kind&&Ig.isExternalOrCommonJsModule(r)&&1024&r.flags&&ar(t,Ig.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ig.declarationNameToString(t),Ig.declarationNameToString(t))}}function Pf(a){if(148===Ig.getRootDeclaration(a).kind){var i=Ig.getContainingFunction(a);!function e(t){if(!Ig.isTypeNode(t)&&!Ig.isDeclarationName(t)){if(183===t.kind)return e(t.expression);if(71!==t.kind)return Ig.forEachChild(t,e);var r=vr(t,t.escapedText,69313471,void 0,void 0,!1);if(r&&r!==M&&r.valueDeclaration)if(r.valueDeclaration!==a){var n=Ig.getEnclosingBlockScopeContainer(r.valueDeclaration);if(n===i){if(148===r.valueDeclaration.kind||180===r.valueDeclaration.kind){if(r.valueDeclaration.pos<a.pos)return;if(Ig.findAncestor(t,function(e){return e===a.initializer?"quit":Ig.isFunctionLike(e.parent)||151===e.parent.kind&&!Ig.hasModifier(e.parent,32)&&Ig.isClassLike(e.parent.parent)}))return}ar(t,Ig.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,Ig.declarationNameToString(a.name),Ig.declarationNameToString(t))}}else ar(t,Ig.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,Ig.declarationNameToString(a.name))}}(a.initializer)}}function Ff(e){return e===j?J:e===Ee?Te:e}function wf(e){if(lf(e),Ig.isBindingElement(e)||gm(e.type),e.name){if(146===e.name.kind&&(hl(e.name),e.initializer&&Tp(e.initializer)),180===e.kind){178===e.parent.kind&&w<6&&sg(e,4),e.propertyName&&146===e.propertyName.kind&&hl(e.propertyName);var t=e.parent.parent,r=Jn(t),n=e.propertyName||e.name;if(!Ig.isBindingPattern(n)){var a=Oi(r,Ig.getTextOfPropertyName(n));nd(a,void 0,!1),t.initializer&&a&&Vl(t,t.initializer,r,a)}}if(Ig.isBindingPattern(e.name)&&(179===e.name.kind&&w<2&&O.downlevelIteration&&sg(e,512),Ig.forEach(e.name.elements,gm)),e.initializer&&148===Ig.getRootDeclaration(e).kind&&Ig.nodeIsMissing(Ig.getContainingFunction(e).body))ar(e,Ig.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(Ig.isBindingPattern(e.name)){if(e.initializer&&219!==e.parent.parent.kind){var i=Tp(e.initializer);P&&0===e.name.elements.length?Gl(i,e):Sc(i,Qn(e),e,void 0),Pf(e)}}else{var o=en(e),s=Ff(oa(o));if(e===o.valueDeclaration)e.initializer&&219!==e.parent.parent.kind&&(Sc(Tp(Ig.isInJavaScriptFile(e)&&Ig.getDeclaredJavascriptInitializer(e)||e.initializer),s,e,void 0),Pf(e));else{var c=Ff(Qn(e));s===U||c===U||gc(s,c)||67108864&o.flags||If(s,e,c),e.initializer&&Sc(Tp(e.initializer),c,e,void 0),u=e,_=o.valueDeclaration,148===u.kind&&230===_.kind||230===u.kind&&148===_.kind||Ig.hasQuestionToken(u)===Ig.hasQuestionToken(_)&&Ig.getSelectedModifierFlags(u,504)===Ig.getSelectedModifierFlags(_,504)||(ar(Ig.getNameOfDeclaration(o.valueDeclaration),Ig.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Ig.declarationNameToString(e.name)),ar(e.name,Ig.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Ig.declarationNameToString(e.name)))}151!==e.kind&&150!==e.kind&&(ef(e),230!==e.kind&&180!==e.kind||function(e){if(0==(3&Ig.getCombinedNodeFlags(e))&&!Ig.isParameterDeclaration(e)&&(230!==e.kind||e.initializer)){var t=en(e);if(1&t.flags){if(!Ig.isIdentifier(e.name))return Ig.Debug.fail();var r=vr(e,e.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&Ul(r)){var n=Ig.getAncestor(r.valueDeclaration,231),a=212===n.parent.kind&&n.parent.parent?n.parent.parent:void 0;if(!a||!(211===a.kind&&Ig.isFunctionLike(a.parent)||238===a.kind||237===a.kind||272===a.kind)){var i=kn(r);ar(e,Ig.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,i,i)}}}}}(e),Ef(e,e.name),Df(e,e.name),Sf(e,e.name),Nf(e,e.name),Af(e,e.name))}}var u,_}function If(e,t,r){var n=Ig.getNameOfDeclaration(t);ar(n,151===t.kind||150===t.kind?Ig.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Ig.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,Ig.declarationNameToString(n),Sn(e),Sn(r))}function Of(e){return function(e){if(219!==e.parent.parent.kind&&220!==e.parent.parent.kind)if(2097152&e.flags){if(e.initializer){if(!Ig.isConst(e)||e.type){var t="=".length;return Ag(e,e.initializer.pos-t,t,Ig.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!Cg(e.initializer))return Pg(e.initializer,Ig.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(e.initializer&&(!Ig.isConst(e)||!Cg(e.initializer))){var t="=".length;return Ag(e,e.initializer.pos-t,t,Ig.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!e.initializer){if(Ig.isBindingPattern(e.name)&&!Ig.isBindingPattern(e.parent))return Pg(e,Ig.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(Ig.isConst(e))return Pg(e,Ig.Diagnostics.const_declarations_must_be_initialized)}if(e.exclamationToken&&(212!==e.parent.parent.kind||!e.type||e.initializer||2097152&e.flags))return Pg(e.exclamationToken,Ig.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);O.module===Ig.ModuleKind.ES2015||O.module===Ig.ModuleKind.ESNext||O.module===Ig.ModuleKind.System||O.noEmit||2097152&e.parent.parent.flags||!Ig.hasModifier(e.parent.parent,1)||function e(t){if(71===t.kind){if("__esModule"===Ig.idText(t))return Pg(t,Ig.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,n=0,a=r;n<a.length;n++){var i=a[n];if(!Ig.isOmittedExpression(i))return e(i.name)}}(e.name),(Ig.isLet(e)||Ig.isConst(e))&&function e(t){if(71===t.kind){if(110===t.originalKeywordKind)return Pg(t,Ig.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=t.elements,n=0,a=r;n<a.length;n++){var i=a[n];Ig.isOmittedExpression(i)||e(i.name)}}(e.name)}(e),wf(e)}function Mf(e){return function(e){if(e.dotDotDotToken){var t=e.parent.elements;if(e!==Ig.last(t))return Pg(e,Ig.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(179===e.name.kind||178===e.name.kind)return Pg(e.name,Ig.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(e.propertyName)return Pg(e.name,Ig.Diagnostics.A_rest_element_cannot_have_a_property_name);e.initializer&&Ag(e,e.initializer.pos-1,1,Ig.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(e),wf(e)}function Lf(e){ug(e)||Tg(e.declarationList)||function(e){if(!function e(t){switch(t.kind){case 215:case 216:case 217:case 224:case 218:case 219:case 220:return!1;case 226:return e(t.parent)}return!0}(e.parent)){if(Ig.isLet(e.declarationList))return Pg(e,Ig.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);Ig.isConst(e.declarationList)&&Pg(e,Ig.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(e),Ig.forEach(e.declarationList.declarations,gm)}function Rf(e){xg(e);var t,r=Hl(e.expression);if(231===e.initializer.kind){var n=e.initializer.declarations[0];n&&Ig.isBindingPattern(n.name)&&ar(n.name,Ig.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Bf(e)}else{var a=e.initializer,i=Op(a);181===a.kind||182===a.kind?ar(a,Ig.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):bc(16384&(t=vs(r)).flags?G:t,i)?dp(a,Ig.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):ar(a,Ig.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}fp(r,141590528)||ar(e.expression,Ig.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),gm(e.statement),e.locals&&ff(e)}function Bf(e){var t=e.initializer;1<=t.declarations.length&&Of(t.declarations[0])}function zf(e,t){return Jf(Hl(e),e,!0,void 0!==t)}function Jf(e,t,r,n){return zn(e)?e:jf(e,t,r,n,!0)||J}function jf(e,t,r,n,a){var i=2<=w,o=!i&&O.downlevelIteration;if(i||o||n){var s=Kf(e,i?t:void 0,n,!0,a);if(s||i)return s}var c=e,u=!1,_=!1;if(r){if(131072&c.flags){var l=e.types,d=Ig.filter(l,function(e){return!(524322&e.flags)});d!==l&&(c=ds(d,2))}else 524322&c.flags&&(c=te);if((_=c!==e)&&(w<1&&t&&(ar(t,Ig.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),u=!0),16384&c.flags))return G}if(!Qc(c))return t&&!u&&ar(t,!r||_?o?Ig.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Ig.Diagnostics.Type_0_is_not_an_array_type:o?Ig.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:Ig.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Sn(c)),_?G:void 0;var p=Ji(c,1);return _&&p?524322&p.flags?G:ds([p,G],2):p}function Kf(e,s,c,u,_){if(!zn(e))return f_(e,function(e){var t=e;if(c){if(t.iteratedTypeOfAsyncIterable)return t.iteratedTypeOfAsyncIterable;if(sa(e,qo(!1))||sa(e,Wo(!1)))return t.iteratedTypeOfAsyncIterable=e.typeArguments[0]}if(u){if(t.iteratedTypeOfIterable)return t.iteratedTypeOfIterable;if(sa(e,Ho(!1))||sa(e,Xo(!1)))return t.iteratedTypeOfIterable=e.typeArguments[0]}var r=c&&Bn(e,Ig.getPropertyNameForKnownSymbolName("asyncIterator")),n=r||u&&Bn(e,Ig.getPropertyNameForKnownSymbolName("iterator"));if(!zn(n)){var a=n&&Li(n,0);if(Ig.some(a)){var i,o=Uf(ds(Ig.map(a,ro),2),s,!!r);return _&&s&&o&&Sc(e,r?(i=o,Yo(qo(!0),[i])):es(o),s),r?t.iteratedTypeOfAsyncIterable=o:t.iteratedTypeOfIterable=o}s&&(ar(s,c?Ig.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ig.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),s=void 0)}})}function Uf(e,t,r){if(!zn(e)){var n=e;if(r?n.iteratedTypeOfAsyncIterator:n.iteratedTypeOfIterator)return r?n.iteratedTypeOfAsyncIterator:n.iteratedTypeOfIterator;if(sa(e,(r?Vo:Go)(!1)))return r?n.iteratedTypeOfAsyncIterator=e.typeArguments[0]:n.iteratedTypeOfIterator=e.typeArguments[0];var a=Bn(e,"next");if(!zn(a)){var i=a?Li(a,0):Ig.emptyArray;if(0!==i.length){var o=ds(Ig.map(i,ro),2);if(!(zn(o)||r&&zn(o=tf(o,t,Ig.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))){var s=o&&Bn(o,"value");if(s)return r?n.iteratedTypeOfAsyncIterator=s:n.iteratedTypeOfIterator=s;t&&ar(t,r?Ig.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Ig.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else t&&ar(t,r?Ig.Diagnostics.An_async_iterator_must_have_a_next_method:Ig.Diagnostics.An_iterator_must_have_a_next_method)}}}function qf(e,t){if(!zn(e))return Kf(e,void 0,t,!t,!1)||Uf(e,void 0,t)}function Vf(e){Fg(e)||function(e){for(var t=e;t;){if(Ig.isFunctionLike(t))return Pg(e,Ig.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 226:if(e.label&&t.label.escapedText===e.label.escapedText){var r=221===e.kind&&!Ig.isIterationStatement(t.statement,!0);return!!r&&Pg(e,Ig.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 225:if(222===e.kind&&!e.label)return;break;default:if(Ig.isIterationStatement(t,!1)&&!e.label)return}t=t.parent}if(e.label){var n=222===e.kind?Ig.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Ig.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Pg(e,n)}var n=222===e.kind?Ig.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Ig.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;Pg(e,n)}(e)}function Wf(e){return 155===e.kind&&void 0!==Ig.getEffectiveSetAccessorTypeAnnotationNode(Ig.getDeclarationOfKind(e.symbol,156))}function Hf(e,t){var r=2==(3&Ig.getFunctionFlags(e))?rf(t):t;return r&&pp(r,2049)}function Gf(e){Fg(e)||void 0===e.expression&&function(e,t,r,n,a){var i=Ig.getSourceFileOfNode(e);if(!Eg(i)){var o=Ig.getSpanOfTokenAtPosition(i,e.pos);Tt.add(Ig.createFileDiagnostic(i,Ig.textSpanEnd(o),0,t,r,n,a))}}(e,Ig.Diagnostics.Line_break_not_permitted_here),e.expression&&Op(e.expression)}function Xf(r){var e,n=po(r.symbol,1),a=po(r.symbol,0),i=Ji(r,0),o=Ji(r,1);if((i||o)&&(Ig.forEach(mi(r),function(e){var t=oa(e);l(e,t,r,a,i,0),l(e,t,r,n,o,1)}),1&Ig.getObjectFlags(r)&&Ig.isClassLike(r.symbol.valueDeclaration)))for(var t=0,s=r.symbol.valueDeclaration.members;t<s.length;t++){var c=s[t];if(!Ig.hasModifier(c,32)&&ja(c)){var u=en(c),_=oa(u);l(u,_,r,a,i,0),l(u,_,r,n,o,1)}}function l(t,e,r,n,a,i){if(a&&!Ig.isKnownSymbol(t)){var o,s=t.valueDeclaration;if(1!==i||(s?yl(Ig.getNameOfDeclaration(s)):vl(t.escapedName)))!s||198!==s.kind&&146!==Ig.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?n?o=n:2&Ig.getObjectFlags(r)&&(o=Ig.forEach(ba(r),function(e){return gi(e,t.escapedName)&&Ji(e,i)})?void 0:r.symbol.declarations[0]):o=s,o&&!bc(e,a)&&ar(o,0===i?Ig.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:Ig.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,kn(t),Sn(e),Sn(a))}}i&&o&&!(e=n||a)&&2&Ig.getObjectFlags(r)&&(e=Ig.forEach(ba(r),function(e){return Ji(e,0)&&Ji(e,1)})?void 0:r.symbol.declarations[0]),e&&!bc(o,i)&&ar(e,Ig.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,Sn(o),Sn(i))}function Qf(e,t){switch(e.escapedText){case"any":case"number":case"boolean":case"string":case"symbol":case"void":case"object":ar(e,t,e.escapedText)}}function Yf(e){if(e)for(var t=!1,r=0;r<e.length;r++){var n=e[r];if(Mp(n),L){n.default?t=!0:t&&ar(n,Ig.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var a=0;a<r;a++)e[a].symbol===n.symbol&&ar(n.name,Ig.Diagnostics.Duplicate_identifier_0,Ig.declarationNameToString(n.name))}}}function Zf(e){if(1!==e.declarations.length){var t,r=pr(e);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=(t=e,Ig.filter(t.declarations,function(e){return 233===e.kind||234===e.kind}));if(n.length<=1)return;if(!function(e,t){for(var r=Ig.length(t),n=Gi(t),a=0,i=e;a<i.length;a++){var o=i[a],s=Ig.length(o.typeParameters);if(s<n||r<s)return!1;for(var c=0;c<s;c++){var u=o.typeParameters[c],_=t[c];if(u.name.escapedText!==_.symbol.escapedName)return!1;var l=u.constraint&&Hs(u.constraint),d=go(_);if(l&&(!d||!gc(l,d)))return!1;var p=u.default&&Hs(u.default),f=Ai(_);if(p&&f&&!gc(p,f))return!1}}return!0}(n,Aa(e).localTypeParameters))for(var a=kn(e),i=0,o=n;i<o.length;i++)ar(o[i].name,Ig.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,a)}}}function $f(e){var t,r;t=e,r=Ig.getSourceFileOfNode(t),function(e){var t=!1,r=!1;if(!ug(e)&&e.heritageClauses)for(var n=0,a=e.heritageClauses;n<a.length;n++){var i=a[n];if(85===i.token){if(t)return Ng(i,Ig.Diagnostics.extends_clause_already_seen);if(r)return Ng(i,Ig.Diagnostics.extends_clause_must_precede_implements_clause);if(1<i.types.length)return Ng(i.types[1],Ig.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(Ig.Debug.assert(108===i.token),r)return Ng(i,Ig.Diagnostics.implements_clause_already_seen);r=!0}gg(i)}}(t)||dg(t.typeParameters,r),lf(e),e.name&&(Qf(e.name,Ig.Diagnostics.Class_name_cannot_be_0),Df(e,e.name),Sf(e,e.name),Nf(e,e.name),Af(e,e.name)),Yf(e.typeParameters),ef(e);var n=en(e),a=Aa(n),i=Ha(a),o=oa(n);Zf(n),function(e){var t,r;(r=t||(t={}))[r.Getter=1]="Getter",r[r.Setter=2]="Setter",r[r.Method=4]="Method",r[r.Property=3]="Property";for(var n=Ig.createUnderscoreEscapedMap(),a=Ig.createUnderscoreEscapedMap(),i=0,o=e.members;i<o.length;i++){var s=o[i];if(154===s.kind)for(var c=0,u=s.parameters;c<u.length;c++){var _=u[c];Ig.isParameterPropertyDeclaration(_)&&!Ig.isBindingPattern(_.name)&&p(n,_.name,_.name.escapedText,3)}else{var l=Ig.hasModifier(s,32)?a:n,d=s.name&&Ig.getPropertyNameForPropertyNameNode(s.name);if(d)switch(s.kind){case 155:p(l,s.name,d,1);break;case 156:p(l,s.name,d,2);break;case 151:p(l,s.name,d,3);break;case 153:p(l,s.name,d,4)}}}function p(e,t,r,n){var a=e.get(r);a?4&a?4!==n&&ar(t,Ig.Diagnostics.Duplicate_identifier_0,Ig.getTextOfNode(t)):a&n?ar(t,Ig.Diagnostics.Duplicate_identifier_0,Ig.getTextOfNode(t)):e.set(r,a|n):e.set(r,n)}}(e),2097152&e.flags||function(e){for(var t=0,r=e.members;t<r.length;t++){var n=r[t],a=n.name;if(Ig.hasModifier(n,32)&&a){var i=Ig.getPropertyNameForPropertyNameNode(a);switch(i){case"name":case"length":case"caller":case"arguments":case"prototype":ar(a,Ig.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,i,Pn(en(e)))}}}}(e);var s=Ig.getClassExtendsHeritageClauseElement(e);if(s){w<2&&sg(s.parent,1);var c=ba(a);if(c.length&&L){var u=c[0],_=ha(a),l=Pi(_);if(function(e,t){var r=Li(e,1);if(r.length){var n=r[0].declaration;if(n&&Ig.hasModifier(n,8)){var a=Ig.getClassLikeDeclarationOfSymbol(e.symbol);Cm(t,a)||ar(t,Ig.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Br(e.symbol))}}}(l,s),gm(s.expression),Ig.some(s.typeArguments)){Ig.forEach(s.typeArguments,gm);for(var d=0,p=ya(l,s.typeArguments,s);d<p.length&&Wp(s,p[d].typeParameters);d++);}if(Sc(i,b=Ha(u,a.thisType),void 0)||em(e,i,b,Ig.Diagnostics.Class_0_incorrectly_extends_base_class_1),Sc(o,mc(l),e.name||e,Ig.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),1081344&_.flags&&!fa(o)&&ar(e.name||e,Ig.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(l.symbol&&32&l.symbol.flags||1081344&_.flags)){var f=va(l,s.typeArguments,s);Ig.forEach(f,function(e){return ro(e)!==u})&&ar(s.expression,Ig.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(e,t){for(var r=vi(t),n=0,a=r;n<a.length;n++){var i=a[n],o=tm(i);if(!(4194304&o.flags)){var s=tm(gi(e,o.escapedName)),c=Ig.getDeclarationModifierFlagsFromSymbol(o);if(Ig.Debug.assert(!!s,"derived should point to something, even if it is the base class' declaration."),s)if(s===o){var u=Ig.getClassLikeDeclarationOfSymbol(e.symbol);!(128&c)||u&&Ig.hasModifier(u,128)||(203===u.kind?ar(u,Ig.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,kn(i),Sn(t)):ar(u,Ig.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Sn(e),kn(i),Sn(t)))}else{var _=Ig.getDeclarationModifierFlagsFromSymbol(s);if(8&c||8&_)continue;if(ql(o)&&ql(s)||98308&o.flags&&98308&s.flags)continue;var l=void 0;l=ql(o)?98304&s.flags?Ig.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Ig.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:4&o.flags?Ig.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:Ig.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function,ar(Ig.getNameOfDeclaration(s.valueDeclaration)||s.valueDeclaration,l,Sn(t),kn(o),Sn(e))}}}}(a,u)}}var m=Ig.getClassImplementsHeritageClauseElements(e);if(m)for(var g=0,y=m;g<y.length;g++){var v=y[g];if(Ig.isEntityNameExpression(v.expression)||ar(v.expression,Ig.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Gp(v),L){var h=Hs(v);if(h!==U)if(xa(h)){var b,x=h.symbol&&32&h.symbol.flags?Ig.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Ig.Diagnostics.Class_0_incorrectly_implements_interface_1;Sc(i,b=Ha(h,a.thisType),void 0)||em(e,i,b,x)}else ar(v,Ig.Diagnostics.A_class_may_only_implement_another_class_or_interface)}}L&&(Xf(a),Jp(e),function(e){var t,r,n,a;if(P&&C&&!(2097152&e.flags))for(var i=an(e),o=0,s=e.members;o<s.length;o++){var c=s[o];if(rm(c)){var u=c.name;if(Ig.isIdentifier(u)){var _=oa(en(c));1&_.flags||4096&ou(_)||i&&(t=u,r=_,n=i,a=void 0,(a=Ig.createPropertyAccess(Ig.createThis(),t)).flowNode=n.returnFlowNode,!(4096&ou(N_(a,r,_u(r)))))||ar(c.name,Ig.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ig.declarationNameToString(u))}}}}(e))}function em(e,a,i,t){for(var o=!1,r=function(e){if(Ig.hasStaticModifier(e))return"continue";var t=e.name&&Nm(e.name)||Nm(e);if(t){var r=Oi(a,t.escapedName),n=Oi(i,t.escapedName);r&&n&&(Sc(oa(r),oa(n),e.name||e,void 0,function(){return Ig.chainDiagnosticMessages(void 0,Ig.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,kn(t),Sn(a),Sn(i))})||(o=!0))}},n=0,s=e.members;n<s.length;n++)r(s[n]);o||Sc(a,i,e.name||e,t)}function tm(e){return 1&Ig.getCheckFlags(e)?e.target:e}function rm(e){return 151===e.kind&&!Ig.hasModifier(e,160)&&!e.exclamationToken&&!e.initializer}function nm(e){if(ug(e)||function(e){var t=!1;if(e.heritageClauses)for(var r=0,n=e.heritageClauses;r<n.length;r++){var a=n[r];if(85!==a.token)return Ig.Debug.assert(108===a.token),Ng(a,Ig.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(t)return Ng(a,Ig.Diagnostics.extends_clause_already_seen);t=!0,gg(a)}}(e),Yf(e.typeParameters),L){Qf(e.name,Ig.Diagnostics.Interface_name_cannot_be_0),ef(e);var t=en(e);if(Zf(t),e===Ig.getDeclarationOfKind(t,234)){var r=Aa(t),n=Ha(r);if(function(t,e){var r=ba(t);if(r.length<2)return!0;var n=Ig.createUnderscoreEscapedMap();Ig.forEach(Ra(t).declaredProperties,function(e){n.set(e.escapedName,{prop:e,containingType:t})});for(var a=!0,i=0,o=r;i<o.length;i++)for(var s=o[i],c=0,u=vi(Ha(s,t.thisType));c<u.length;c++){var _=u[c],l=n.get(_.escapedName);if(l){if(l.containingType!==t&&0===Vc(l.prop,_,yc)){a=!1;var d=Sn(l.containingType),p=Sn(s),f=Ig.chainDiagnosticMessages(void 0,Ig.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,kn(_),d,p);f=Ig.chainDiagnosticMessages(f,Ig.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Sn(t),d,p),Tt.add(Ig.createDiagnosticForNodeFromMessageChain(e,f))}}else n.set(_.escapedName,{prop:_,containingType:s})}return a}(r,e.name)){for(var a=0,i=ba(r);a<i.length;a++)Sc(n,Ha(i[a],r.thisType),e.name,Ig.Diagnostics.Interface_0_incorrectly_extends_interface_1);Xf(r)}}zp(e)}Ig.forEach(Ig.getInterfaceBaseTypeNodes(e),function(e){Ig.isEntityNameExpression(e.expression)||ar(e.expression,Ig.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Gp(e)}),Ig.forEach(e.members,gm),L&&(Jp(e),ff(e))}function am(e){var t=fr(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,a=e.members;n<a.length;n++){var i=a[n],o=im(i,r);r="number"==typeof(fr(i).enumMemberValue=o)?o+1:void 0}}}function im(e,t){if(jn(e.name))ar(e.name,Ig.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var r=Ig.getTextOfPropertyName(e.name);vl(r)&&"Infinity"!==(n=r)&&"-Infinity"!==n&&"NaN"!==n&&ar(e.name,Ig.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}var n;return e.initializer?function(u){var e=Sa(en(u.parent)),t=Ig.isConst(u.parent),r=u.initializer,n=1!==e||Da(u)?function e(t){switch(t.kind){case 196:var r=e(t.operand);if("number"==typeof r)switch(t.operator){case 37:return r;case 38:return-r;case 52:return~r}break;case 198:var n=e(t.left),a=e(t.right);if("number"==typeof n&&"number"==typeof a)switch(t.operatorToken.kind){case 49:return n|a;case 48:return n&a;case 46:return n>>a;case 47:return n>>>a;case 45:return n<<a;case 50:return n^a;case 39:return n*a;case 41:return n/a;case 37:return n+a;case 38:return n-a;case 42:return n%a;case 40:return Math.pow(n,a)}break;case 9:return t.text;case 8:return wg(t),+t.text;case 189:return e(t.expression);case 71:return Ig.nodeIsMissing(t)?0:_(t,en(u.parent),t.escapedText);case 184:case 183:var i=t;if(function e(t){return 71===t.kind||183===t.kind&&e(t.expression)||184===t.kind&&e(t.expression)&&9===t.argumentExpression.kind}(i)){var o=Ip(i.expression);if(o.symbol&&384&o.symbol.flags){var s=void 0;if(183===i.kind)s=i.name.escapedText;else{var c=i.argumentExpression;Ig.Debug.assert(Ig.isLiteralExpression(c)),s=Ig.escapeLeadingUnderscores(c.text)}return _(t,o.symbol,s)}}}}(r):void 0;if(void 0!==n)t&&"number"==typeof n&&!isFinite(n)&&ar(r,isNaN(n)?Ig.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Ig.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===e)return ar(r,Ig.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;t?ar(r,Ig.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):2097152&u.parent.flags?ar(r,Ig.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Sc(Op(r),Aa(en(u.parent)),r,void 0)}return n;function _(e,t,r){var n=t.exports.get(r);if(n){var a=n.valueDeclaration;if(a!==u)return yr(a,u)?Gm(a):(ar(e,Ig.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(e):2097152&e.parent.flags&&!Ig.isConst(e.parent)?void 0:void 0!==t?t:void ar(e.name,Ig.Diagnostics.Enum_member_must_have_initializer)}function om(e){if(L){var t=Ig.isGlobalScopeAugmentation(e),r=2097152&e.flags;t&&!r&&ar(e.name,Ig.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var n=Ig.isAmbientModule(e);if(dm(e,n?Ig.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Ig.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;ug(e)||r||9!==e.name.kind||Pg(e.name,Ig.Diagnostics.Only_ambient_modules_can_use_quoted_names),Ig.isIdentifier(e.name)&&(Df(e,e.name),Nf(e,e.name),Af(e,e.name)),ef(e);var a=en(e);if(512&a.flags&&1<a.declarations.length&&!r&&Jg(e,O.preserveConstEnums||O.isolatedModules)){var i=function(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];if((233===n.kind||232===n.kind&&Ig.nodeIsPresent(n.body))&&!(2097152&n.flags))return n}}(a);i&&(Ig.getSourceFileOfNode(e)!==Ig.getSourceFileOfNode(i)?ar(e.name,Ig.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<i.pos&&ar(e.name,Ig.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var o=Ig.getDeclarationOfKind(a,233);o&&(u=e,_=o,l=Ig.getEnclosingBlockScopeContainer(u),d=Ig.getEnclosingBlockScopeContainer(_),mr(l)?mr(d):!mr(d)&&l===d)&&(fr(e).flags|=32768)}if(n)if(Ig.isExternalModuleAugmentation(e)){if((t||33554432&en(e).flags)&&e.body)for(var s=0,c=e.body.statements;s<c.length;s++)sm(c[s],t)}else mr(e.parent)?t?ar(e.name,Ig.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ig.isExternalModuleNameRelative(Ig.getTextOfIdentifierOrLiteral(e.name))&&ar(e.name,Ig.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):ar(e.name,t?Ig.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Ig.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var u,_,l,d;e.body&&(gm(e.body),Ig.isGlobalScopeAugmentation(e)||ff(e))}function sm(e,t){switch(e.kind){case 212:for(var r=0,n=e.declarationList.declarations;r<n.length;r++)sm(n[r],t);break;case 247:case 248:Ng(e,Ig.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 241:case 242:Ng(e,Ig.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 180:case 230:var a=e.name;if(Ig.isBindingPattern(a)){for(var i=0,o=a.elements;i<o.length;i++)sm(o[i],t);break}case 233:case 236:case 232:case 234:case 237:case 235:if(t)return;var s=en(e);if(s){var c=!(33554432&s.flags);c||(c=Ig.isExternalModuleAugmentation(s.parent.declarations[0]))}}}function cm(e){switch(e.kind){case 71:return e;case 145:for(;71!==(e=e.left).kind;);return e;case 183:for(;71!==(e=e.expression).kind;);return e}}function um(e){var t=Ig.getExternalModuleName(e);if(Ig.nodeIsMissing(t))return!1;if(!Ig.isStringLiteral(t))return ar(t,Ig.Diagnostics.String_literal_expected),!1;var r=238===e.parent.kind&&Ig.isAmbientModule(e.parent.parent);return 272===e.parent.kind||r?!(r&&Ig.isExternalModuleNameRelative(t.text)&&!Nn(e)&&(ar(e,Ig.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(ar(t,248===e.kind?Ig.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:Ig.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function _m(e){var t=en(e),r=Or(t);if(r!==M){var n=(68264895&t.flags?67216319:0)|(67901928&t.flags?67901928:0)|(1920&t.flags?1920:0);r.flags&n&&ar(e,250===e.kind?Ig.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:Ig.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,kn(t)),!O.isolatedModules||250!==e.kind||67216319&r.flags||2097152&e.flags||ar(e,Ig.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function lm(e){Df(e,e.name),Nf(e,e.name),Af(e,e.name),_m(e)}function dm(e,t){var r=272===e.parent.kind||238===e.parent.kind||237===e.parent.kind;return r||Ng(e,t),!r}function pm(e){if(_m(e),O.declaration&&wn(e.propertyName||e.name,!0),!e.parent.parent.moduleSpecifier){var t=e.propertyName||e.name,r=vr(t,t.escapedText,70107135,void 0,void 0,!0);r&&(r===N||mr(Rn(r.declarations[0])))?ar(t,Ig.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Ig.idText(t)):Mr(e)}}function fm(e){var t,r=en(e),n=pr(r);if(!n.exportsChecked){var a=r.exports.get("export=");if(a&&(t=r,Ig.forEachEntry(t.exports,function(e,t){return"export="!==t}))){var i=Tr(a)||a.valueDeclaration;Nn(i)||ar(i,Ig.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=Qr(r);o&&o.forEach(function(e,t){var r=e.declarations,n=e.flags;if("__export"!==t&&!(1984&n)){var a=Ig.countWhere(r,rr);if(!(524288&n&&a<=2)&&1<a)for(var i=0,o=r;i<o.length;i++){var s=o[i];mm(s)&&Tt.add(Ig.createDiagnosticForNode(s,Ig.Diagnostics.Cannot_redeclare_exported_variable_0,Ig.unescapeLeadingUnderscores(t)))}}}),n.exportsChecked=!0}}function mm(e){return 232!==e.kind&&153!==e.kind||!!e.body}function gm(e){if(e){if(Ig.isInJavaScriptFile(e)&&e.jsDoc)for(var t=0,r=e.jsDoc;t<r.length;t++){var n=r[t].tags;Ig.forEach(n,gm)}var a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h,b,x,k=e.kind;if(D)switch(k){case 237:case 233:case 234:case 232:D.throwIfCancellationRequested()}switch(k){case 147:return Mp(e);case 148:return Lp(e);case 151:case 150:return jp(e);case 162:case 163:case 157:case 158:case 159:return Bp(e);case 153:case 152:return Sg(x=e)||vg(x.name),pf(x),void(Ig.hasModifier(x,128)&&153===x.kind&&x.body&&ar(x,Ig.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ig.declarationNameToString(x.name)));case 154:return Kp(e);case 155:case 156:return Up(e);case 161:return Gp(e);case 160:return function(e){var t=function(e){switch(e.parent.kind){case 191:case 157:case 232:case 190:case 162:case 153:case 152:var t=e.parent;if(e===t.type)return t}}(e);if(t){var r=to(Qi(t));if(r){gm(e.type);var n=e.parameterName;if(Ig.isThisTypePredicate(r))Ws(n);else if(0<=r.parameterIndex)t.parameters[r.parameterIndex].dotDotDotToken?ar(n,Ig.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):Sc(r.type,Am(t.parameters[r.parameterIndex]),e.type,void 0,function(){return Ig.chainDiagnosticMessages(void 0,Ig.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(n){for(var a=!1,i=0,o=t.parameters;i<o.length;i++){var s=o[i].name;if(Ig.isBindingPattern(s)&&Rp(s,n,r.parameterName)){a=!0;break}}a||ar(e.parameterName,Ig.Diagnostics.Cannot_find_parameter_0,r.parameterName)}}}else ar(e,Ig.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(e);case 164:return void Mo(e);case 165:return b=e,Ig.forEach(b.members,gm),void(L&&(Xf(Os(b)),Jp(b),zp(b)));case 166:return void gm(e.elementType);case 167:return lg((h=e).elementTypes)||0!==h.elementTypes.length||Pg(h,Ig.Diagnostics.A_tuple_type_element_list_cannot_be_empty),void Ig.forEach(h.elementTypes,gm);case 168:case 169:return v=e,void Ig.forEach(v.types,gm);case 172:return gm(e.type);case 174:return Qp(e);case 170:return y=e,void Ig.forEachChild(y,gm);case 171:return g=e,Ig.findAncestor(g,function(e){return e.parent&&170===e.parent.kind&&e.parent.extendsType===e})||Pg(g,Ig.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),void gm(g.typeParameter);case 285:return function(e){var t=Ig.getJSDocHost(e);if(Ig.isClassDeclaration(t)||Ig.isClassExpression(t)){var r=Ig.getAllJSDocTagsOfKind(t,285);Ig.Debug.assert(0<r.length),1<r.length&&ar(r[1],Ig.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var n=df(e.class.expression),a=Ig.getClassExtendsHeritageClauseElement(t);if(a){var i=df(a.expression);i&&n.escapedText!==i.escapedText&&ar(n,Ig.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,Ig.idText(e.tagName),Ig.idText(n),Ig.idText(i))}}else ar(t,Ig.Diagnostics.JSDoc_0_is_not_attached_to_a_class,Ig.idText(e.tagName))}(e);case 291:return void((m=e).typeExpression||ar(m.name,Ig.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags));case 287:return function(e){if(gm(e.typeExpression),!Ig.getParameterSymbolFromJSDoc(e)){var t=Ig.getHostSignatureFromJSDoc(e);t&&(Yi(t)?Ig.findLast(Ig.getJSDocTags(t),Ig.isJSDocParameterTag)===e&&e.typeExpression&&e.typeExpression.type&&!Xc(Hs(e.typeExpression.type))&&ar(e.name,Ig.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Ig.idText(145===e.name.kind?e.name.right:e.name)):ar(e.name,Ig.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Ig.idText(145===e.name.kind?e.name.right:e.name)))}}(e);case 280:Bp(e);case 278:case 277:case 275:case 276:return ym(e),void Ig.forEachChild(e,gm);case 281:return void function(e){ym(e),gm(e.type);var t=e.parent;Ig.isJSDocTypeExpression(t)||ar(e,Ig.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=t.parent;if(!Ig.isJSDocParameterTag(r))return ar(e,Ig.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=Ig.getParameterSymbolFromJSDoc(r);if(n){var a=Ig.getHostSignatureFromJSDoc(r);a&&Ig.last(a.parameters).symbol===n||ar(e,Ig.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}(e);case 274:return gm(e.type);case 175:return gm((f=e).objectType),gm(f.indexType),void Xp(Es(f),f);case 176:return gm((p=e).typeParameter),gm(p.type),T&&!p.type&&bu(p,J),void Sc(si(Ns(p)),G,p.typeParameter.constraint);case 232:return d=e,void(L&&(pf(d),hg(d),Ef(d,d.name),Df(d,d.name),Sf(d,d.name),Nf(d,d.name),Af(d,d.name)));case 211:case 238:return xf(e);case 212:return Lf(e);case 214:return Fg(l=e),void Op(l.expression);case 215:return Fg(_=e),Op(_.expression),gm(_.thenStatement),213===_.thenStatement.kind&&ar(_.thenStatement,Ig.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),void gm(_.elseStatement);case 216:return Fg(u=e),gm(u.statement),void Op(u.expression);case 217:return Fg(c=e),Op(c.expression),void gm(c.statement);case 218:return Fg(s=e)||s.initializer&&231===s.initializer.kind&&Tg(s.initializer),s.initializer&&(231===s.initializer.kind?Ig.forEach(s.initializer.declarations,Of):Op(s.initializer)),s.condition&&Op(s.condition),s.incrementor&&Op(s.incrementor),gm(s.statement),void(s.locals&&ff(s));case 219:return Rf(e);case 220:return function(e){if(xg(e),220===e.kind&&(e.awaitModifier?2==(6&Ig.getFunctionFlags(Ig.getContainingFunction(e)))&&w<6&&sg(e,16384):O.downlevelIteration&&w<2&&sg(e,256)),231===e.initializer.kind)Bf(e);else{var t=e.initializer,r=zf(e.expression,e.awaitModifier);if(181===t.kind||182===t.kind)bp(t,r||U);else{var n=Op(t);dp(t,Ig.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&Sc(r,n,t,void 0)}}gm(e.statement),e.locals&&ff(e)}(e);case 221:case 222:return Vf(e);case 223:return function(e){if(!Fg(e)){var t=Ig.getContainingFunction(e);if(t){var r=ro(Qi(t)),n=Ig.getFunctionFlags(t),a=1&n;if(P||e.expression||16384&r.flags){var i=e.expression?Tp(e.expression):q;if(a)return;if(156===t.kind)e.expression&&ar(e,Ig.Diagnostics.Setters_cannot_return_a_value);else if(154===t.kind)e.expression&&!Sc(i,r,e)&&ar(e,Ig.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Ig.getEffectiveReturnTypeNode(t)||Wf(t))if(2&n){var o=rf(r),s=nf(i,e,Ig.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&Sc(s,o,e)}else Sc(i,r,e)}else 154===t.kind||!O.noImplicitReturns||Hf(t,r)||a||ar(e,Ig.Diagnostics.Not_all_code_paths_return_a_value)}else Ng(e,Ig.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(e);case 224:return function(e){Fg(e)||16384&e.flags&&Ng(e,Ig.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Op(e.expression);var t=Ig.getSourceFileOfNode(e);if(!Eg(t)){var r=Ig.getSpanOfTokenAtPosition(t,e.pos).start;Ag(t,r,e.statement.pos-r,Ig.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(e);case 225:return function(o){var s;Fg(o);var c=!1,u=Op(o.expression),_=$c(u);Ig.forEach(o.caseBlock.clauses,function(e){if(265===e.kind&&!c)if(void 0===s)s=e;else{var t=Ig.getSourceFileOfNode(o),r=Ig.skipTrivia(t.text,e.pos);Ag(t,r,(0<e.statements.length?e.statements[0].pos:e.end)-r,Ig.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0}if(L&&264===e.kind){var n=Op(e.expression),a=$c(n),i=u;a&&_||(n=a?eu(n):n,i=eu(u)),xp(i,n)||Cc(n,i,e.expression,void 0)}Ig.forEach(e.statements,gm)}),o.caseBlock.locals&&ff(o.caseBlock)}(e);case 226:return Fg(o=e)||Ig.findAncestor(o.parent,function(e){return Ig.isFunctionLike(e)?"quit":226===e.kind&&e.label.escapedText===o.label.escapedText?(Pg(o.label,Ig.Diagnostics.Duplicate_label_0,Ig.getTextOfNode(o.label)),!0):void 0}),void gm(o.statement);case 227:return Gf(e);case 228:return function(e){Fg(e),xf(e.tryBlock);var t=e.catchClause;if(t){if(t.variableDeclaration)if(t.variableDeclaration.type)Ng(t.variableDeclaration.type,Ig.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(t.variableDeclaration.initializer)Ng(t.variableDeclaration.initializer,Ig.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=t.block.locals;r&&Ig.forEachKey(t.locals,function(e){var t=r.get(e);t&&0!=(2&t.flags)&&Pg(t.valueDeclaration,Ig.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,e)})}xf(t.block)}e.finallyBlock&&xf(e.finallyBlock)}(e);case 230:return Of(e);case 180:return Mf(e);case 233:return(i=e).name||Ig.hasModifier(i,512)||Ng(i,Ig.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),$f(i),Ig.forEach(i.members,gm),void ff(i);case 234:return nm(e);case 235:return ug(a=e),Qf(a.name,Ig.Diagnostics.Type_alias_name_cannot_be_0),Yf(a.typeParameters),gm(a.type),void ff(a);case 236:return function(e){if(L){ug(e),Qf(e.name,Ig.Diagnostics.Enum_name_cannot_be_0),Df(e,e.name),Sf(e,e.name),Nf(e,e.name),Af(e,e.name),ef(e),am(e);var t=Ig.isConst(e);O.isolatedModules&&t&&2097152&e.flags&&ar(e.name,Ig.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var r=en(e);if(e===Ig.getDeclarationOfKind(r,e.kind)){1<r.declarations.length&&Ig.forEach(r.declarations,function(e){Ig.isConstEnumDeclaration(e)!==t&&ar(Ig.getNameOfDeclaration(e),Ig.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var n=!1;Ig.forEach(r.declarations,function(e){if(236!==e.kind)return!1;var t=e;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(n?ar(r.name,Ig.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)})}}}(e);case 237:return om(e);case 242:return function(e){if(!dm(e,Ig.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!ug(e)&&Ig.hasModifiers(e)&&Ng(e,Ig.Diagnostics.An_import_declaration_cannot_have_modifiers),um(e))){var t=e.importClause;t&&(t.name&&lm(t),t.namedBindings&&(244===t.namedBindings.kind?lm(t.namedBindings):Ig.forEach(t.namedBindings.elements,lm)))}}(e);case 241:return function(e){if(!dm(e,Ig.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(ug(e),Ig.isInternalModuleImportEqualsDeclaration(e)||um(e)))if(lm(e),Ig.hasModifier(e,1)&&Mr(e),252!==e.moduleReference.kind){var t=Or(en(e));if(t!==M){if(67216319&t.flags){var r=cm(e.moduleReference);1920&zr(r,67217343).flags||ar(r,Ig.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ig.declarationNameToString(r))}67901928&t.flags&&Qf(e.name,Ig.Diagnostics.Import_name_cannot_be_0)}}else S>=Ig.ModuleKind.ES2015&&!(2097152&e.flags)&&Pg(e,Ig.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)}(e);case 248:return function(e){if(!dm(e,Ig.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!ug(e)&&Ig.hasModifiers(e)&&Ng(e,Ig.Diagnostics.An_export_declaration_cannot_have_modifiers),!e.moduleSpecifier||um(e)))if(e.exportClause){Ig.forEach(e.exportClause.elements,pm);var t=238===e.parent.kind&&Ig.isAmbientModule(e.parent.parent),r=!t&&238===e.parent.kind&&!e.moduleSpecifier&&2097152&e.flags;272===e.parent.kind||t||r||ar(e,Ig.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var n=Jr(e,e.moduleSpecifier);n&&Wr(n)&&ar(e.moduleSpecifier,Ig.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,kn(n)),S!==Ig.ModuleKind.System&&S!==Ig.ModuleKind.ES2015&&S!==Ig.ModuleKind.ESNext&&sg(e,32768)}}(e);case 247:return function(e){if(!dm(e,Ig.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var t=272===e.parent.kind?e.parent:e.parent.parent;237!==t.kind||Ig.isAmbientModule(t)?(!ug(e)&&Ig.hasModifiers(e)&&Ng(e,Ig.Diagnostics.An_export_assignment_cannot_have_modifiers),71===e.expression.kind?(Mr(e),O.declaration&&wn(e.expression,!0)):Tp(e.expression),fm(t),2097152&e.flags&&!Ig.isEntityNameExpression(e.expression)&&Pg(e.expression,Ig.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||2097152&e.flags||(S>=Ig.ModuleKind.ES2015?Pg(e,Ig.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):S===Ig.ModuleKind.System&&Pg(e,Ig.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?ar(e,Ig.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):ar(e,Ig.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(e);case 213:case 229:return void Fg(e);case 251:return void lf(e)}}}function ym(e){Ig.isInJavaScriptFile(e)||Pg(e,Ig.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function vm(e){Ue&&Ue.push(e)}function hm(e){Ig.performance.mark("beforeCheck"),function(e){var t,r=fr(e);if(!(1&r.flags)){if(O.skipLibCheck&&e.isDeclarationFile||O.skipDefaultLibCheck&&e.hasNoDefaultLib)return;2097152&(t=e).flags&&function(e){for(var t=0,r=e.statements;t<r.length;t++){var n=r[t];if((Ig.isDeclaration(n)||212===n.kind)&&(234!==(a=n).kind&&235!==a.kind&&242!==a.kind&&241!==a.kind&&248!==a.kind&&247!==a.kind&&240!==a.kind&&!Ig.hasModifier(a,515)&&Ng(a,Ig.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)))return}var a}(t),Ig.clear(Dt),Ig.clear(St),Ue=[],qe=L&&A?[]:void 0,ot=!1,Ig.forEach(e.statements,gm),function(){for(var e=0,t=Ue;e<t.length;e++){var r=t[e];switch(r.kind){case 190:case 191:case 153:case 152:sp(r);break;case 155:case 156:Up(r);break;case 203:n=r,Ig.forEach(n.members,gm),ff(n)}}var n}(),Ig.isExternalOrCommonJsModule(e)&&ff(e),e.isDeclarationFile||function(){if(qe)for(var e=0,t=qe;e<t.length;e++){var r=t[e];switch(r.kind){case 272:case 237:bf(r);break;case 233:case 203:vf(r),hf(r);break;case 234:hf(r);break;case 211:case 239:case 218:case 219:case 220:mf(r);break;case 154:case 190:case 232:case 191:case 153:case 155:case 156:r.body&&mf(r),hf(r);break;case 152:case 157:case 158:case 162:case 163:case 235:hf(r);break;default:Ig.Debug.fail("Node should not have been registered for unused identifiers check")}}}(),qe=Ue=void 0,Ig.isExternalOrCommonJsModule(e)&&fm(e),Dt.length&&(Ig.forEach(Dt,Cf),Ig.clear(Dt)),St.length&&(Ig.forEach(St,Tf),Ig.clear(St)),r.flags|=1}}(e),Ig.performance.mark("afterCheck"),Ig.performance.measure("Check","beforeCheck","afterCheck")}function bm(e,t){try{return D=t,function(e){if(xm(),e){var t=Tt.getGlobalDiagnostics(),r=t.length;hm(e);var n=Tt.getDiagnostics(e.fileName),a=Tt.getGlobalDiagnostics();if(a!==t){var i=Ig.relativeComplement(t,a,Ig.compareDiagnostics);return Ig.concatenate(i,n)}return 0===r&&0<a.length?Ig.concatenate(a,n):n}return Ig.forEach(b.getSourceFiles(),hm),Tt.getDiagnostics()}(e)}finally{D=void 0}}function xm(){if(!L)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function km(e){switch(e.kind){case 147:case 233:case 234:case 235:case 236:return!0}}function Dm(e){for(var t=e;t.parent&&145===t.parent.kind;)t=t.parent;return t.parent&&161===t.parent.kind}function Sm(e,t){for(var r;(e=Ig.getContainingClass(e))&&!(r=t(e)););return r}function Cm(e,t){return!!Sm(e,function(e){return e===t})}function Tm(e){return void 0!==function(e){for(;145===e.parent.kind;)e=e.parent;return 241===e.parent.kind?e.parent.moduleReference===e&&e.parent:247===e.parent.kind?e.parent.expression===e&&e.parent:void 0}(e)}function Em(e){if(Ig.isDeclarationName(e))return en(e.parent);if(Ig.isInJavaScriptFile(e)&&183===e.parent.kind&&e.parent===e.parent.parent.left){var t=function(e){switch(Ig.getSpecialPropertyAssignmentKind(e.parent.parent)){case 1:case 3:return en(e.parent);case 4:case 2:case 5:return en(e.parent.parent)}}(e);if(t)return t}if(247===e.parent.kind&&Ig.isEntityNameExpression(e))return zr(e,70107135);if(183!==e.kind&&Tm(e)){var r=Ig.getAncestor(e,241);return Ig.Debug.assert(void 0!==r),Rr(e,!0)}if(Ig.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),function(e){for(var t=e;t.parent&&183===t.parent.kind;)t=t.parent;return t.parent&&205===t.parent.kind}(e)){var n=0;205===e.parent.kind?(n=67901928,Ig.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)&&(n|=67216319)):n=1920,n|=2097152;var a=Ig.isEntityNameExpression(e)?zr(e,n):void 0;if(a)return a}if(287===e.parent.kind)return Ig.getParameterSymbolFromJSDoc(e.parent);if(147===e.parent.kind&&290===e.parent.parent.kind){Ig.Debug.assert(!Ig.isInJavaScriptFile(e));var i=Ig.getTypeParameterFromJsDoc(e.parent);return i&&i.symbol}if(Ig.isExpressionNode(e)){if(Ig.nodeIsMissing(e))return;if(71===e.kind){if(Ig.isJSXTagName(e)&&Sl(e)){var o=Al(e.parent);return o===M?void 0:o}return zr(e,67216319,!1,!0)}if(183===e.kind||145===e.kind){var s=fr(e);return s.resolvedSymbol||(183===e.kind?Xl(e):Ql(e)),s.resolvedSymbol}}else{if(Dm(e))return zr(e,n=161===e.parent.kind?67901928:1920,!1,!0);if(260===e.parent.kind)return Bl(e.parent)}return 160===e.parent.kind?zr(e,1):void 0}function Nm(e){if(272===e.kind)return Ig.isExternalModule(e)?$r(e.symbol):void 0;if(!(4194304&e.flags)){if(jg(e))return en(e.parent);if(Ig.isLiteralComputedPropertyDeclarationName(e))return en(e.parent.parent);if(71===e.kind){if(Tm(e))return Em(e);if(180===e.parent.kind&&178===e.parent.parent.kind&&e===e.parent.propertyName){var t=Am(e.parent.parent),r=t&&Oi(t,e.escapedText);if(r)return r}}switch(e.kind){case 71:case 183:case 145:return Em(e);case 99:var n=Ig.getThisContainer(e,!1);if(Ig.isFunctionLike(n)){var a=Qi(n);if(a.thisParameter)return a.thisParameter}if(Ig.isInExpressionContext(e))return Op(e).symbol;case 173:return Ws(e).symbol;case 97:return Op(e).symbol;case 123:var i=e.parent;return i&&154===i.kind?i.parent.symbol:void 0;case 9:case 13:if(Ig.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&Ig.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e||(242===e.parent.kind||248===e.parent.kind)&&e.parent.moduleSpecifier===e||Ig.isInJavaScriptFile(e)&&Ig.isRequireCall(e.parent,!1)||Ig.isImportCall(e.parent))return Jr(e,e);case 8:var o=Ig.isElementAccessExpression(e.parent)?e.parent.argumentExpression===e?Ip(e.parent.expression):void 0:Ig.isLiteralTypeNode(e.parent)&&Ig.isIndexedAccessTypeNode(e.parent.parent)?Hs(e.parent.parent.objectType):void 0;return o&&Oi(o,Ig.escapeLeadingUnderscores(e.text));case 79:case 89:case 36:return en(e.parent);default:return}}}function Am(e){if(4194304&e.flags)return U;if(Ig.isPartOfTypeNode(e)){var t=Hs(e);return t&&Ig.isExpressionWithTypeArgumentsInClassImplementsClause(e)&&(t=Ha(t,(r=Am(Ig.getContainingClass(e))).thisType)),t}if(Ig.isExpressionNode(e))return Pm(e);if(Ig.isExpressionWithTypeArgumentsInClassExtendsClause(e)){var r,n=ba(r=Aa(en(Ig.getContainingClass(e))))[0];return n&&Ha(n,r.thisType)}var a,i;if(km(e))return Aa(i=en(e));if(71===(a=e).kind&&km(a.parent)&&a.parent.name===a)return(i=Nm(e))&&Aa(i);if(Ig.isDeclaration(e))return oa(i=en(e));if(jg(e))return(i=Nm(e))&&oa(i);if(Ig.isBindingPattern(e))return Hn(e.parent,!0);if(Tm(e)&&(i=Nm(e))){var o=Aa(i);return o!==U?o:oa(i)}return U}function Pm(e){return Ig.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),Us(Ip(e))}function Fm(e){e=Pi(e);var t=Ig.createSymbolTable(vi(e));return wm(e)&&Ig.forEach(vi(ve),function(e){t.has(e.escapedName)||t.set(e.escapedName,e)}),_n(t)}function wm(e){return Ig.typeHasCallOrConstructSignatures(e,f)}function Im(e){return!(Ig.isGeneratedIdentifier(e)||!(e=Ig.getParseTreeNode(e,Ig.isIdentifier)))&&(!(183===e.parent.kind&&e.parent.name===e)&&rg(e)===F)}function Om(e){var t=Jr(e.parent,e);if(!t||Ig.isShorthandAmbientModuleSymbol(t))return!0;var r=Wr(t),n=pr(t=qr(t));return void 0===n.exportsSomeValue&&(n.exportsSomeValue=r?!!(67216319&t.flags):Ig.forEachEntry(Qr(t),function(e){return(e=Ir(e))&&!!(67216319&e.flags)})),n.exportsSomeValue}function Mm(e,t){if(e=Ig.getParseTreeNode(e,Ig.isIdentifier)){var r=rg(e,(s=(o=e).parent)&&Ig.isModuleOrEnumDeclaration(s)&&o===s.name);if(r){if(1048576&r.flags){var n=$r(r.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;r=n}var a=tn(r);if(a){if(512&a.flags&&272===a.valueDeclaration.kind){var i=a.valueDeclaration;return i!==Ig.getSourceFileOfNode(e)?void 0:i}return Ig.findAncestor(e.parent,function(e){return Ig.isModuleOrEnumDeclaration(e)&&en(e)===a})}}}var o,s}function Lm(e){if(e=Ig.getParseTreeNode(e,Ig.isIdentifier)){var t=rg(e);if(wr(t,67216319))return Tr(t)}}function Rm(e){if(418&e.flags){var t=pr(e);if(void 0===t.isDeclarationWithCollidingName){var r=Ig.getEnclosingBlockScopeContainer(e.valueDeclaration);if(Ig.isStatementWithLocals(r)){var n=fr(e.valueDeclaration);if(vr(r.parent,e.escapedName,67216319,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(131072&n.flags){var a=262144&n.flags,i=Ig.isIterationStatement(r,!1),o=211===r.kind&&Ig.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!(Ig.isBlockScopedContainerTopLevel(r)||a&&(i||o))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function Bm(e){if(!Ig.isGeneratedIdentifier(e)&&(e=Ig.getParseTreeNode(e,Ig.isIdentifier))){var t=rg(e);if(t&&Rm(t))return t.valueDeclaration}}function zm(e){if(e=Ig.getParseTreeNode(e,Ig.isDeclaration)){var t=en(e);if(t)return Rm(t)}return!1}function Jm(e){switch(e.kind){case 241:case 243:case 244:case 246:case 250:return Km(en(e)||M);case 248:var t=e.exportClause;return t&&Ig.forEach(t.elements,Jm);case 247:return!e.expression||71!==e.expression.kind||Km(en(e)||M)}return!1}function jm(e){return!(void 0===(e=Ig.getParseTreeNode(e,Ig.isImportEqualsDeclaration))||272!==e.parent.kind||!Ig.isInternalModuleImportEqualsDeclaration(e))&&Km(en(e))&&e.moduleReference&&!Ig.nodeIsMissing(e.moduleReference)}function Km(e){var t=Or(e);return t===M||67216319&t.flags&&(O.preserveConstEnums||!Um(t))}function Um(e){return yp(e)||e.constEnumOnlyModule}function qm(e){if(Ig.nodeIsPresent(e.body)){var t=Zi(en(e));return 1<t.length||1===t.length&&t[0].declaration!==e}return!1}function Vm(e){return P&&!Vi(e)&&e.initializer&&!Ig.hasModifier(e,92)}function Wm(e){return P&&Vi(e)&&!e.initializer&&Ig.hasModifier(e,92)}function Hm(e){return fr(e).flags}function Gm(e){return am(e.parent),fr(e).enumMemberValue}function Xm(e){switch(e.kind){case 271:case 183:case 184:return!0}return!1}function Qm(e){if(271===e.kind)return Gm(e);var t=fr(e).resolvedSymbol;return t&&8&t.flags&&Ig.isConstEnumDeclaration(t.valueDeclaration.parent)?Gm(t.valueDeclaration):void 0}function Ym(e,t){if(!(e=Ig.getParseTreeNode(e,Ig.isEntityName)))return Ig.TypeReferenceSerializationKind.Unknown;if(t&&!(t=Ig.getParseTreeNode(t)))return Ig.TypeReferenceSerializationKind.Unknown;var r=zr(e,67216319,!0,!1,t),n=zr(e,67901928,!0,!1,t);if(r&&r===n){var a=Uo(!1);if(a&&r===a)return Ig.TypeReferenceSerializationKind.Promise;var i=oa(r);if(i&&ma(i))return Ig.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!n)return Ig.TypeReferenceSerializationKind.ObjectType;var o,s=Aa(n);return s===U?Ig.TypeReferenceSerializationKind.Unknown:1&s.flags?Ig.TypeReferenceSerializationKind.ObjectType:fp(s,30720)?Ig.TypeReferenceSerializationKind.VoidNullableOrNeverType:fp(s,136)?Ig.TypeReferenceSerializationKind.BooleanType:fp(s,84)?Ig.TypeReferenceSerializationKind.NumberLikeType:fp(s,524322)?Ig.TypeReferenceSerializationKind.StringLikeType:au(s)?Ig.TypeReferenceSerializationKind.ArrayLikeType:fp(s,1536)?Ig.TypeReferenceSerializationKind.ESSymbolType:65536&(o=s).flags&&0<Li(o,0).length?Ig.TypeReferenceSerializationKind.TypeWithCallSignature:Xc(s)?Ig.TypeReferenceSerializationKind.ArrayLikeType:Ig.TypeReferenceSerializationKind.ObjectType}function Zm(e,t,r,n){var a=en(e),i=!a||133120&a.flags?U:tu(oa(a));1024&i.flags&&i.symbol===a&&(r|=1048576),131072&r&&(i=_u(i)),Sn(i,t,1024|r,n)}function $m(e,t,r,n){Sn(ro(Qi(e)),t,1024|r,n)}function eg(e,t,r,n){Sn(vu(Pm(e)),t,1024|r,n)}function tg(e){return tt.has(Ig.escapeLeadingUnderscores(e))}function rg(e,t){var r=fr(e).resolvedSymbol;if(r)return r;var n=e;if(t){var a=e.parent;Ig.isDeclaration(a)&&e===a.name&&(n=Rn(a))}return vr(n,e.escapedText,70362047,void 0,void 0,!0)}function ng(e){if(!Ig.isGeneratedIdentifier(e)&&(e=Ig.getParseTreeNode(e,Ig.isIdentifier))){var t=rg(e);if(t)return rn(t).valueDeclaration}}function ag(e){if(Ig.isConst(e)){var t=oa(en(e));return!!(96&t.flags&&8388608&t.flags)}return!1}function ig(e,t){var r,n=oa(en(e));t.writeStringLiteral(32&(r=n).flags?'"'+Ig.escapeString(r.value)+'"':""+r.value)}function og(e){var t=Ig.getExternalModuleName(e),r=jr(t,t,void 0);if(r)return Ig.getDeclarationOfKind(r,272)}function sg(e,t){if((u&t)!==t&&O.importHelpers){var r=Ig.getSourceFileOfNode(e);if(Ig.isEffectiveExternalModule(r,O)&&!(2097152&e.flags)){var n=(s=r,c=e,_||(_=Kr(s,Ig.externalHelpersModuleNameText,Ig.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||M),_);if(n!==M)for(var a=t&~u,i=1;i<=65536;i<<=1)if(a&i){var o=cg(i);gr(n.exports,Ig.escapeLeadingUnderscores(o),67216319)||ar(e,Ig.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,Ig.externalHelpersModuleNameText,o)}u|=t}}var s,c}function cg(e){switch(e){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"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:Ig.Debug.fail("Unrecognized helper")}}function ug(e){return function(e){if(!e.decorators)return!1;if(!Ig.nodeCanBeDecorated(e,e.parent,e.parent.parent))return 153!==e.kind||Ig.nodeIsPresent(e.body)?Ng(e,Ig.Diagnostics.Decorators_are_not_valid_here):Ng(e,Ig.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(155===e.kind||156===e.kind){var t=Ig.getAllAccessorDeclarations(e.parent.members,e);if(t.firstAccessor.decorators&&e===t.secondAccessor)return Ng(e,Ig.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(e)||function(e){var t,r,n,a,i,o=!!(i=e).modifiers&&(function(e){switch(e.kind){case 155:case 156:case 154:case 151:case 150:case 153:case 152:case 159:case 237:case 242:case 241:case 248:case 247:case 190:case 191:case 148:return!1;default:if(238===e.parent.kind||272===e.parent.kind)return!1;switch(e.kind){case 232:return _g(e,120);case 233:return _g(e,117);case 234:case 212:case 235:return!0;case 236:return _g(e,76);default:return Ig.Debug.fail(),!1}}}(i)?Ng(i,Ig.Diagnostics.Modifiers_cannot_appear_here):void 0);if(void 0!==o)return o;for(var s=0,c=0,u=e.modifiers;c<u.length;c++){var _=u[c];if(132!==_.kind){if(150===e.kind||152===e.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_type_member,Ig.tokenToString(_.kind));if(159===e.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,Ig.tokenToString(_.kind))}switch(_.kind){case 76:if(236!==e.kind&&233===e.parent.kind)return Pg(e,Ig.Diagnostics.A_class_member_cannot_have_the_0_keyword,Ig.tokenToString(76));break;case 114:case 113:case 112:var l=En(Ig.modifierToFlag(_.kind));if(28&s)return Pg(_,Ig.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,l,"static");if(64&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,l,"readonly");if(256&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,l,"async");if(238===e.parent.kind||272===e.parent.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,l);if(128&s)return 112===_.kind?Pg(_,Ig.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,l,"abstract"):Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,l,"abstract");s|=Ig.modifierToFlag(_.kind);break;case 115:if(32&s)return Pg(_,Ig.Diagnostics._0_modifier_already_seen,"static");if(64&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(238===e.parent.kind||272===e.parent.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(148===e.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return Pg(_,Ig.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,t=_;break;case 132:if(64&s)return Pg(_,Ig.Diagnostics._0_modifier_already_seen,"readonly");if(151!==e.kind&&150!==e.kind&&159!==e.kind&&148!==e.kind)return Pg(_,Ig.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=_;break;case 84:if(1&s)return Pg(_,Ig.Diagnostics._0_modifier_already_seen,"export");if(2&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return Pg(_,Ig.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(233===e.parent.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(148===e.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 79:var d=272===e.parent.kind?e.parent:e.parent.parent;if(237===d.kind&&!Ig.isAmbientModule(d))return Pg(_,Ig.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 124:if(2&s)return Pg(_,Ig.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return Pg(_,Ig.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(233===e.parent.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(148===e.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(2097152&e.parent.flags&&238===e.parent.kind)return Pg(_,Ig.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,r=_;break;case 117:if(128&s)return Pg(_,Ig.Diagnostics._0_modifier_already_seen,"abstract");if(233!==e.kind){if(153!==e.kind&&151!==e.kind&&155!==e.kind&&156!==e.kind)return Pg(_,Ig.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(233!==e.parent.kind||!Ig.hasModifier(e.parent,128))return Pg(_,Ig.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return Pg(_,Ig.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return Pg(_,Ig.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 120:if(256&s)return Pg(_,Ig.Diagnostics._0_modifier_already_seen,"async");if(2&s||2097152&e.parent.flags)return Pg(_,Ig.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(148===e.kind)return Pg(_,Ig.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,n=_}}return 154===e.kind?32&s?Pg(t,Ig.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?Pg(t,Ig.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?Pg(n,Ig.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):64&s?Pg(a,Ig.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):void 0:(242===e.kind||241===e.kind)&&2&s?Pg(r,Ig.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):148===e.kind&&92&s&&Ig.isBindingPattern(e.name)?Pg(e,Ig.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):148===e.kind&&92&s&&e.dotDotDotToken?Pg(e,Ig.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):256&s?function(e,t){switch(e.kind){case 153:case 232:case 190:case 191:return!1}return Pg(t,Ig.Diagnostics._0_modifier_cannot_be_used_here,"async")}(e,n):void 0}(e)}function _g(e,t){return 1<e.modifiers.length||e.modifiers[0].kind!==t}function lg(e){if(e&&e.hasTrailingComma){var t=e.end-",".length,r=e.end;return Ag(e[0],t,r-t,Ig.Diagnostics.Trailing_comma_not_allowed)}}function dg(e,t){if(e&&0===e.length){var r=e.pos-"<".length;return Ag(t,r,Ig.skipTrivia(t.text,e.end)+">".length-r,Ig.Diagnostics.Type_parameter_list_cannot_be_empty)}}function pg(e){var t=Ig.getSourceFileOfNode(e);return ug(e)||dg(e.typeParameters,t)||function(e){for(var t=!1,r=e.length,n=0;n<r;n++){var a=e[n];if(a.dotDotDotToken){if(n!==r-1)return Pg(a.dotDotDotToken,Ig.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(Ig.isBindingPattern(a.name))return Pg(a.name,Ig.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(a.questionToken)return Pg(a.questionToken,Ig.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return Pg(a.name,Ig.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(t=!0,a.initializer)return Pg(a.name,Ig.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!a.initializer)return Pg(a.name,Ig.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!Ig.isArrowFunction(e))return!1;var r=e.equalsGreaterThanToken,n=Ig.getLineAndCharacterOfPosition(t,r.pos).line,a=Ig.getLineAndCharacterOfPosition(t,r.end).line;return n!==a&&Pg(r,Ig.Diagnostics.Line_terminator_not_permitted_before_arrow)}(e,t)}function fg(e,t){return lg(t)||function(e,t){if(t&&0===t.length){var r=Ig.getSourceFileOfNode(e),n=t.pos-"<".length;return Ag(r,n,Ig.skipTrivia(r.text,t.end)+">".length-n,Ig.Diagnostics.Type_argument_list_cannot_be_empty)}}(e,t)}function mg(e){return function(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];if(204===n.kind)return Ag(n,n.pos,0,Ig.Diagnostics.Argument_expression_expected)}}(e)}function gg(e){var t=e.types;if(lg(t))return!0;if(t&&0===t.length){var r=Ig.tokenToString(e.token);return Ag(e,t.pos,0,Ig.Diagnostics._0_list_cannot_be_empty,r)}return Ig.forEach(t,yg)}function yg(e){return fg(e,e.typeArguments)}function vg(e){if(146!==e.kind)return!1;var t=e;return 198===t.expression.kind&&26===t.expression.operatorToken.kind?Pg(t.expression,Ig.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):void 0}function hg(e){if(e.asteriskToken){if(Ig.Debug.assert(232===e.kind||190===e.kind||153===e.kind),2097152&e.flags)return Pg(e.asteriskToken,Ig.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return Pg(e.asteriskToken,Ig.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function bg(e,t){if(e)return Pg(e,t)}function xg(e){if(Fg(e))return!0;if(220===e.kind&&e.awaitModifier&&0==(16384&e.flags))return Pg(e.awaitModifier,Ig.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(231===e.initializer.kind){var t=e.initializer;if(!Tg(t)){var r=t.declarations;if(!r.length)return!1;if(1<r.length){var n=219===e.kind?Ig.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Ig.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Ng(t.declarations[1],n)}var a=r[0];if(a.initializer){var n=219===e.kind?Ig.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Ig.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Pg(a.name,n)}if(a.type)return Pg(a,n=219===e.kind?Ig.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Ig.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function kg(e){if(e.parameters.length===(155===e.kind?1:2))return Ig.getThisParameter(e)}function Dg(e,t){if(r=e,Ig.isDynamicName(r)&&!za(r))return Pg(e,t);var r}function Sg(e){if(pg(e))return!0;if(153===e.kind){if(182===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||120!==Ig.first(e.modifiers).kind))return Ng(e,Ig.Diagnostics.Modifiers_cannot_appear_here);if(bg(e.questionToken,Ig.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===e.body)return Ag(e,e.end-1,";".length,Ig.Diagnostics._0_expected,"{")}if(hg(e))return!0}if(Ig.isClassLike(e.parent)){if(2097152&e.flags)return Dg(e.name,Ig.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(153===e.kind&&!e.body)return Dg(e.name,Ig.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(234===e.parent.kind)return Dg(e.name,Ig.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(165===e.parent.kind)return Dg(e.name,Ig.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 Cg(e){return 9===e.kind||8===e.kind||196===e.kind&&38===e.operator&&8===e.operand.kind}function Tg(e){var t=e.declarations;return!!lg(e.declarations)||(e.declarations.length?void 0:Ag(e,t.pos,t.end-t.pos,Ig.Diagnostics.Variable_declaration_list_cannot_be_empty))}function Eg(e){return 0<e.parseDiagnostics.length}function Ng(e,t,r,n,a){var i=Ig.getSourceFileOfNode(e);if(!Eg(i)){var o=Ig.getSpanOfTokenAtPosition(i,e.pos);return Tt.add(Ig.createFileDiagnostic(i,o.start,o.length,t,r,n,a)),!0}}function Ag(e,t,r,n,a,i,o){var s=Ig.getSourceFileOfNode(e);if(!Eg(s))return Tt.add(Ig.createFileDiagnostic(s,t,r,n,a,i,o)),!0}function Pg(e,t,r,n,a){if(!Eg(Ig.getSourceFileOfNode(e)))return Tt.add(Ig.createDiagnosticForNode(e,t,r,n,a)),!0}function Fg(e){if(2097152&e.flags){if(Ig.isAccessor(e.parent))return fr(e).hasReportedStatementInAmbientContext=!0;if(!fr(e).hasReportedStatementInAmbientContext&&Ig.isFunctionLike(e.parent))return fr(e).hasReportedStatementInAmbientContext=Ng(e,Ig.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(211===e.parent.kind||238===e.parent.kind||272===e.parent.kind){var t=fr(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Ng(e,Ig.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function wg(e){if(32&e.numericLiteralFlags){var t=void 0;if(1<=w?t=Ig.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Ig.isChildOfNodeWithKind(e,177)?t=Ig.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Ig.isChildOfNodeWithKind(e,271)&&(t=Ig.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=Ig.isPrefixUnaryExpression(e.parent)&&38===e.parent.operator,n=(r?"-":"")+"0o"+e.text;return Pg(r?e.parent:e,t,n)}}}},(e=Og||(Og={})).JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes"}(ts||(ts={})),function(l){function _(e){var t=l.createNode(e,-1,-1);return t.flags|=8,t}function d(e,t){return e!==t&&(Bt(e,t),wt(e,t),l.aggregateTransformFlags(e)),e}function p(e,t){if(e){if(l.isNodeArray(e))return e}else e=[];var r=e;return r.pos=-1,r.end=-1,r.hasTrailingComma=t,r}function r(e){if(void 0!==e){var t=_(e.kind);for(var r in t.flags|=e.flags,Bt(t,e),e)!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(t[r]=e[r]);return t}}function a(e){return"number"==typeof e?n(e+""):"boolean"==typeof e?e?f():m():l.isString(e)?i(e):(t=e,(r=i(l.getTextOfIdentifierOrLiteral(t))).textSourceNode=t,r);var t,r}function n(e){var t=_(8);return t.text=e,t.numericLiteralFlags=0,t}function i(e){var t=_(9);return t.text=e,t}function o(e,t){var r=_(71);return r.escapedText=l.escapeLeadingUnderscores(e),r.originalKeywordKind=e?l.stringToToken(e):0,r.autoGenerateFlags=0,r.autoGenerateId=0,t&&(r.typeArguments=p(t)),r}l.updateNode=d,l.createNodeArray=p,l.getSynthesizedClone=r,l.createLiteral=a,l.createNumericLiteral=n,l.createIdentifier=o,l.updateIdentifier=function(e,t){return e.typeArguments!==t?d(o(l.idText(e),t),e):e};var s,c=0;function u(e){return _(e)}function f(){return _(101)}function m(){return _(86)}function g(e,t){var r=_(145);return r.left=e,r.right=At(t),r}function y(e){var t,r=_(146);return r.expression=(t=e,l.isBinaryExpression(t)&&26===t.operatorToken.kind||296===t.kind?ne(t):t),r}function v(e,t,r){var n=_(147);return n.name=At(e),n.constraint=t,n.default=r,n}function h(e,t,r,n,a,i,o){var s=_(148);return s.decorators=Pt(e),s.modifiers=Pt(t),s.dotDotDotToken=r,s.name=At(n),s.questionToken=a,s.type=i,s.initializer=o?l.parenthesizeExpressionForList(o):void 0,s}function b(e){var t=_(149);return t.expression=l.parenthesizeForAccess(e),t}function x(e,t,r,n,a){var i=_(150);return i.modifiers=Pt(e),i.name=At(t),i.questionToken=r,i.type=n,i.initializer=a,i}function k(e,t,r,n,a,i){var o=_(151);return o.decorators=Pt(e),o.modifiers=Pt(t),o.name=At(r),o.questionToken=void 0!==n&&55===n.kind?n:void 0,o.exclamationToken=void 0!==n&&51===n.kind?n:void 0,o.type=a,o.initializer=i,o}function D(e,t,r,n,a){var i=A(152,e,t,r);return i.name=At(n),i.questionToken=a,i}function S(e,t,r,n,a,i,o,s,c){var u=_(153);return u.decorators=Pt(e),u.modifiers=Pt(t),u.asteriskToken=r,u.name=At(n),u.questionToken=a,u.typeParameters=Pt(i),u.parameters=p(o),u.type=s,u.body=c,u}function C(e,t,r,n){var a=_(154);return a.decorators=Pt(e),a.modifiers=Pt(t),a.typeParameters=void 0,a.parameters=p(r),a.type=void 0,a.body=n,a}function T(e,t,r,n,a,i){var o=_(155);return o.decorators=Pt(e),o.modifiers=Pt(t),o.name=At(r),o.typeParameters=void 0,o.parameters=p(n),o.type=a,o.body=i,o}function E(e,t,r,n,a){var i=_(156);return i.decorators=Pt(e),i.modifiers=Pt(t),i.name=At(r),i.typeParameters=void 0,i.parameters=p(n),i.body=a,i}function N(e,t,r,n){var a=_(159);return a.decorators=Pt(e),a.modifiers=Pt(t),a.parameters=p(r),a.type=n,a}function A(e,t,r,n,a){var i=_(e);return i.typeParameters=Pt(t),i.parameters=Pt(r),i.type=n,i.typeArguments=Pt(a),i}function P(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?d(A(e.kind,t,r,n),e):e}function F(e,t){var r=_(160);return r.parameterName=At(e),r.type=t,r}function w(e,t){var r=_(161);return r.typeName=At(e),r.typeArguments=t&&l.parenthesizeTypeParameters(t),r}function I(e){var t=_(164);return t.exprName=e,t}function O(e){var t=_(165);return t.members=p(e),t}function M(e){var t=_(166);return t.elementType=l.parenthesizeArrayTypeMember(e),t}function L(e){var t=_(167);return t.elementTypes=p(e),t}function R(e,t){var r=_(e);return r.types=l.parenthesizeElementTypeMembers(t),r}function B(e,t){return e.types!==t?d(R(e.kind,t),e):e}function z(e,t,r,n){var a=_(170);return a.checkType=l.parenthesizeConditionalTypeMember(e),a.extendsType=l.parenthesizeConditionalTypeMember(t),a.trueType=r,a.falseType=n,a}function J(e){var t=_(171);return t.typeParameter=e,t}function j(e){var t=_(172);return t.type=e,t}function K(e,t){var r=_(174);return r.operator="number"==typeof e?e:128,r.type=l.parenthesizeElementTypeMember("number"==typeof e?t:e),r}function U(e,t){var r=_(175);return r.objectType=l.parenthesizeElementTypeMember(e),r.indexType=t,r}function q(e,t,r,n){var a=_(176);return a.readonlyToken=e,a.typeParameter=t,a.questionToken=r,a.type=n,a}function V(e){var t=_(177);return t.literal=e,t}function W(e){var t=_(178);return t.elements=p(e),t}function H(e){var t=_(179);return t.elements=p(e),t}function G(e,t,r,n){var a=_(180);return a.dotDotDotToken=e,a.propertyName=At(t),a.name=At(r),a.initializer=n,a}function X(e,t){var r=_(181);return r.elements=l.parenthesizeListElements(p(e)),t&&(r.multiLine=!0),r}function Q(e,t){var r=_(182);return r.properties=p(e),t&&(r.multiLine=!0),r}function Y(e,t){var r=_(183);return r.expression=l.parenthesizeForAccess(e),r.name=At(t),It(r,131072),r}function Z(e,t){var r,n=_(184);return n.expression=l.parenthesizeForAccess(e),n.argumentExpression=(r=t,l.isString(r)||"number"==typeof r?a(r):r),n}function $(e,t,r){var n=_(185);return n.expression=l.parenthesizeForAccess(e),n.typeArguments=Pt(t),n.arguments=l.parenthesizeListElements(p(r)),n}function ee(e,t,r){var n=_(186);return n.expression=l.parenthesizeForNew(e),n.typeArguments=Pt(t),n.arguments=r?l.parenthesizeListElements(p(r)):void 0,n}function te(e,t){var r=_(187);return r.tag=l.parenthesizeForAccess(e),r.template=t,r}function re(e,t){var r=_(188);return r.type=e,r.expression=l.parenthesizePrefixOperand(t),r}function ne(e){var t=_(189);return t.expression=e,t}function ae(e,t,r,n,a,i,o){var s=_(190);return s.modifiers=Pt(e),s.asteriskToken=t,s.name=At(r),s.typeParameters=Pt(n),s.parameters=p(a),s.type=i,s.body=o,s}function ie(e,t,r,n,a,i){var o=_(191);return o.modifiers=Pt(e),o.typeParameters=Pt(t),o.parameters=p(r),o.type=n,o.equalsGreaterThanToken=a||u(36),o.body=l.parenthesizeConciseBody(i),o}function oe(e){var t=_(192);return t.expression=l.parenthesizePrefixOperand(e),t}function se(e){var t=_(193);return t.expression=l.parenthesizePrefixOperand(e),t}function ce(e){var t=_(194);return t.expression=l.parenthesizePrefixOperand(e),t}function ue(e){var t=_(195);return t.expression=l.parenthesizePrefixOperand(e),t}function _e(e,t){var r=_(196);return r.operator=e,r.operand=l.parenthesizePrefixOperand(t),r}function le(e,t){var r=_(197);return r.operand=l.parenthesizePostfixOperand(e),r.operator=t,r}function de(e,t,r){var n,a=_(198),i="number"==typeof(n=t)?u(n):n,o=i.kind;return a.left=l.parenthesizeBinaryOperand(o,e,!0,void 0),a.operatorToken=i,a.right=l.parenthesizeBinaryOperand(o,r,!1,a.left),a}function pe(e,t,r,n,a){var i=_(199);return i.condition=l.parenthesizeForConditionalHead(e),i.questionToken=a?t:u(55),i.whenTrue=l.parenthesizeSubexpressionOfConditionalExpression(a?r:t),i.colonToken=a?n:u(56),i.whenFalse=l.parenthesizeSubexpressionOfConditionalExpression(a||r),i}function fe(e,t){var r=_(200);return r.head=e,r.templateSpans=p(t),r}function me(e,t){var r=_(201);return r.asteriskToken=e&&39===e.kind?e:void 0,r.expression=e&&39!==e.kind?e:t,r}function ge(e){var t=_(202);return t.expression=l.parenthesizeExpressionForList(e),t}function ye(e,t,r,n,a){var i=_(203);return i.decorators=void 0,i.modifiers=Pt(e),i.name=At(t),i.typeParameters=Pt(r),i.heritageClauses=Pt(n),i.members=p(a),i}function ve(e,t){var r=_(205);return r.expression=l.parenthesizeForAccess(t),r.typeArguments=Pt(e),r}function he(e,t){var r=_(206);return r.expression=e,r.type=t,r}function be(e){var t=_(207);return t.expression=l.parenthesizeForAccess(e),t}function xe(e,t){var r=_(208);return r.keywordToken=e,r.name=t,r}function ke(e,t){var r=_(209);return r.expression=e,r.literal=t,r}function De(e,t){var r=_(211);return r.statements=p(e),t&&(r.multiLine=t),r}function Se(e,t){var r=_(212);return r.decorators=void 0,r.modifiers=Pt(e),r.declarationList=l.isArray(t)?je(t):t,r}function Ce(e){var t=_(214);return t.expression=l.parenthesizeExpressionForExpressionStatement(e),t}function Te(e,t,r){var n=_(215);return n.expression=e,n.thenStatement=t,n.elseStatement=r,n}function Ee(e,t){var r=_(216);return r.statement=e,r.expression=t,r}function Ne(e,t){var r=_(217);return r.expression=e,r.statement=t,r}function Ae(e,t,r,n){var a=_(218);return a.initializer=e,a.condition=t,a.incrementor=r,a.statement=n,a}function Pe(e,t,r){var n=_(219);return n.initializer=e,n.expression=t,n.statement=r,n}function Fe(e,t,r,n){var a=_(220);return a.awaitModifier=e,a.initializer=t,a.expression=r,a.statement=n,a}function we(e){var t=_(221);return t.label=At(e),t}function Ie(e){var t=_(222);return t.label=At(e),t}function Oe(e){var t=_(223);return t.expression=e,t}function Me(e,t){var r=_(224);return r.expression=e,r.statement=t,r}function Le(e,t){var r=_(225);return r.expression=l.parenthesizeExpressionForList(e),r.caseBlock=t,r}function Re(e,t){var r=_(226);return r.label=At(e),r.statement=t,r}function Be(e){var t=_(227);return t.expression=e,t}function ze(e,t,r){var n=_(228);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n}function Je(e,t,r){var n=_(230);return n.name=At(e),n.type=t,n.initializer=void 0!==r?l.parenthesizeExpressionForList(r):void 0,n}function je(e,t){var r=_(231);return r.flags|=3&t,r.declarations=p(e),r}function Ke(e,t,r,n,a,i,o,s){var c=_(232);return c.decorators=Pt(e),c.modifiers=Pt(t),c.asteriskToken=r,c.name=At(n),c.typeParameters=Pt(a),c.parameters=p(i),c.type=o,c.body=s,c}function Ue(e,t,r,n,a,i){var o=_(233);return o.decorators=Pt(e),o.modifiers=Pt(t),o.name=At(r),o.typeParameters=Pt(n),o.heritageClauses=Pt(a),o.members=p(i),o}function qe(e,t,r,n,a,i){var o=_(234);return o.decorators=Pt(e),o.modifiers=Pt(t),o.name=At(r),o.typeParameters=Pt(n),o.heritageClauses=Pt(a),o.members=p(i),o}function Ve(e,t,r,n,a){var i=_(235);return i.decorators=Pt(e),i.modifiers=Pt(t),i.name=At(r),i.typeParameters=Pt(n),i.type=a,i}function We(e,t,r,n){var a=_(236);return a.decorators=Pt(e),a.modifiers=Pt(t),a.name=At(r),a.members=p(n),a}function He(e,t,r,n,a){var i=_(237);return i.flags|=532&a,i.decorators=Pt(e),i.modifiers=Pt(t),i.name=r,i.body=n,i}function Ge(e){var t=_(238);return t.statements=p(e),t}function Xe(e){var t=_(239);return t.clauses=p(e),t}function Qe(e){var t=_(240);return t.name=At(e),t}function Ye(e,t,r,n){var a=_(241);return a.decorators=Pt(e),a.modifiers=Pt(t),a.name=At(r),a.moduleReference=n,a}function Ze(e,t,r,n){var a=_(242);return a.decorators=Pt(e),a.modifiers=Pt(t),a.importClause=r,a.moduleSpecifier=n,a}function $e(e,t){var r=_(243);return r.name=e,r.namedBindings=t,r}function et(e){var t=_(244);return t.name=e,t}function tt(e){var t=_(245);return t.elements=p(e),t}function rt(e,t){var r=_(246);return r.propertyName=e,r.name=t,r}function nt(e,t,r,n){var a=_(247);return a.decorators=Pt(e),a.modifiers=Pt(t),a.isExportEquals=r,a.expression=r?l.parenthesizeBinaryOperand(58,n,!1,void 0):l.parenthesizeDefaultExpression(n),a}function at(e,t,r,n){var a=_(248);return a.decorators=Pt(e),a.modifiers=Pt(t),a.exportClause=r,a.moduleSpecifier=n,a}function it(e){var t=_(249);return t.elements=p(e),t}function ot(e,t){var r=_(250);return r.propertyName=At(e),r.name=At(t),r}function st(e){var t=_(252);return t.expression=e,t}function ct(e,t,r){var n=_(253);return n.openingElement=e,n.children=p(t),n.closingElement=r,n}function ut(e,t){var r=_(254);return r.tagName=e,r.attributes=t,r}function _t(e,t){var r=_(255);return r.tagName=e,r.attributes=t,r}function lt(e){var t=_(256);return t.tagName=e,t}function dt(e,t,r){var n=_(257);return n.openingFragment=e,n.children=p(t),n.closingFragment=r,n}function pt(e,t){var r=_(260);return r.name=e,r.initializer=t,r}function ft(e){var t=_(261);return t.properties=p(e),t}function mt(e){var t=_(262);return t.expression=e,t}function gt(e,t){var r=_(263);return r.dotDotDotToken=e,r.expression=t,r}function yt(e,t){var r=_(264);return r.expression=l.parenthesizeExpressionForList(e),r.statements=p(t),r}function vt(e){var t=_(265);return t.statements=p(e),t}function ht(e,t){var r=_(266);return r.token=e,r.types=p(t),r}function bt(e,t){var r=_(267);return r.variableDeclaration=l.isString(e)?Je(e):e,r.block=t,r}function xt(e,t){var r=_(268);return r.name=At(e),r.questionToken=void 0,r.initializer=l.parenthesizeExpressionForList(t),r}function kt(e,t){var r=_(269);return r.name=At(e),r.objectAssignmentInitializer=void 0!==t?l.parenthesizeExpressionForList(t):void 0,r}function Dt(e){var t=_(270);return t.expression=void 0!==e?l.parenthesizeExpressionForList(e):void 0,t}function St(e,t){var r=_(271);return r.name=At(e),r.initializer=t&&l.parenthesizeExpressionForList(t),r}function Ct(e,t){var r=_(295);return r.expression=e,r.original=t,wt(r,t),r}function Tt(e){if(l.nodeIsSynthesized(e)&&!l.isParseTreeNode(e)&&!e.original&&!e.emitNode&&!e.id){if(296===e.kind)return e.elements;if(l.isBinaryExpression(e)&&26===e.operatorToken.kind)return[e.left,e.right]}return e}function Et(e){var t=_(296);return t.elements=p(l.sameFlatMap(e,Tt)),t}function Nt(e){var t=l.createNode(273);return t.sourceFiles=e,t}function At(e){return l.isString(e)?o(e):e}function Pt(e){return e?p(e):void 0}function Ft(e){if(!e.emitNode){if(l.isParseTreeNode(e)){if(272===e.kind)return e.emitNode={annotatedNodes:[e]};Ft(l.getSourceFileOfNode(e)).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function wt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function It(e,t){return Ft(e).flags=t,e}function Ot(e){var t=e.emitNode;return t&&t.leadingComments}function Mt(e,t){return Ft(e).leadingComments=t,e}function Lt(e){var t=e.emitNode;return t&&t.trailingComments}function Rt(e,t){return Ft(e).trailingComments=t,e}function Bt(e,t){if(e.original=t){var r=t.emitNode;r&&(e.emitNode=function(e,t){var r=e.flags,n=e.leadingComments,a=e.trailingComments,i=e.commentRange,o=e.sourceMapRange,s=e.tokenSourceMapRanges,c=e.constantValue,u=e.helpers,_=e.startsOnNewLine;t||(t={});n&&(t.leadingComments=l.addRange(n.slice(),t.leadingComments));a&&(t.trailingComments=l.addRange(a.slice(),t.trailingComments));r&&(t.flags=r);i&&(t.commentRange=i);o&&(t.sourceMapRange=o);s&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(s,t.tokenSourceMapRanges));void 0!==c&&(t.constantValue=c);u&&(t.helpers=l.addRange(t.helpers,u));void 0!==_&&(t.startsOnNewLine=_);return t}(r,e.emitNode))}return e}l.createTempVariable=function(e,t){var r=o("");return r.autoGenerateFlags=1,r.autoGenerateId=c,c++,e&&e(r),t&&(r.autoGenerateFlags|=16),r},l.createLoopVariable=function(){var e=o("");return e.autoGenerateFlags=2,e.autoGenerateId=c,c++,e},l.createUniqueName=function(e){var t=o(e);return t.autoGenerateFlags=3,t.autoGenerateId=c,c++,t},l.getGeneratedNameForNode=function(e,t){var r=o("");return r.autoGenerateFlags=4,r.autoGenerateId=c,r.original=e,t&&(r.autoGenerateFlags|=8),c++,r},l.createToken=u,l.createSuper=function(){return _(97)},l.createThis=function(){return _(99)},l.createNull=function(){return _(95)},l.createTrue=f,l.createFalse=m,l.createQualifiedName=g,l.updateQualifiedName=function(e,t,r){return e.left!==t||e.right!==r?d(g(t,r),e):e},l.createComputedPropertyName=y,l.updateComputedPropertyName=function(e,t){return e.expression!==t?d(y(t),e):e},l.createTypeParameterDeclaration=v,l.updateTypeParameterDeclaration=function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?d(v(t,r,n),e):e},l.createParameter=h,l.updateParameter=function(e,t,r,n,a,i,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==a||e.questionToken!==i||e.type!==o||e.initializer!==s?d(h(t,r,n,a,i,o,s),e):e},l.createDecorator=b,l.updateDecorator=function(e,t){return e.expression!==t?d(b(t),e):e},l.createPropertySignature=x,l.updatePropertySignature=function(e,t,r,n,a,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==a||e.initializer!==i?d(x(t,r,n,a,i),e):e},l.createProperty=k,l.updateProperty=function(e,t,r,n,a,i,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==i||e.initializer!==o?d(k(t,r,n,a,i,o),e):e},l.createMethodSignature=D,l.updateMethodSignature=function(e,t,r,n,a,i){return e.typeParameters!==t||e.parameters!==r||e.type!==n||e.name!==a||e.questionToken!==i?d(D(t,r,n,a,i),e):e},l.createMethod=S,l.updateMethod=function(e,t,r,n,a,i,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==a||e.questionToken!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?d(S(t,r,n,a,i,o,s,c,u),e):e},l.createConstructor=C,l.updateConstructor=function(e,t,r,n,a){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==a?d(C(t,r,n,a),e):e},l.createGetAccessor=T,l.updateGetAccessor=function(e,t,r,n,a,i,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==a||e.type!==i||e.body!==o?d(T(t,r,n,a,i,o),e):e},l.createSetAccessor=E,l.updateSetAccessor=function(e,t,r,n,a,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==a||e.body!==i?d(E(t,r,n,a,i),e):e},l.createCallSignature=function(e,t,r){return A(157,e,t,r)},l.updateCallSignature=function(e,t,r,n){return P(e,t,r,n)},l.createConstructSignature=function(e,t,r){return A(158,e,t,r)},l.updateConstructSignature=function(e,t,r,n){return P(e,t,r,n)},l.createIndexSignature=N,l.updateIndexSignature=function(e,t,r,n,a){return e.parameters!==n||e.type!==a||e.decorators!==t||e.modifiers!==r?d(N(t,r,n,a),e):e},l.createSignatureDeclaration=A,l.createKeywordTypeNode=function(e){return _(e)},l.createTypePredicateNode=F,l.updateTypePredicateNode=function(e,t,r){return e.parameterName!==t||e.type!==r?d(F(t,r),e):e},l.createTypeReferenceNode=w,l.updateTypeReferenceNode=function(e,t,r){return e.typeName!==t||e.typeArguments!==r?d(w(t,r),e):e},l.createFunctionTypeNode=function(e,t,r){return A(162,e,t,r)},l.updateFunctionTypeNode=function(e,t,r,n){return P(e,t,r,n)},l.createConstructorTypeNode=function(e,t,r){return A(163,e,t,r)},l.updateConstructorTypeNode=function(e,t,r,n){return P(e,t,r,n)},l.createTypeQueryNode=I,l.updateTypeQueryNode=function(e,t){return e.exprName!==t?d(I(t),e):e},l.createTypeLiteralNode=O,l.updateTypeLiteralNode=function(e,t){return e.members!==t?d(O(t),e):e},l.createArrayTypeNode=M,l.updateArrayTypeNode=function(e,t){return e.elementType!==t?d(M(t),e):e},l.createTupleTypeNode=L,l.updateTypleTypeNode=function(e,t){return e.elementTypes!==t?d(L(t),e):e},l.createUnionTypeNode=function(e){return R(168,e)},l.updateUnionTypeNode=function(e,t){return B(e,t)},l.createIntersectionTypeNode=function(e){return R(169,e)},l.updateIntersectionTypeNode=function(e,t){return B(e,t)},l.createUnionOrIntersectionTypeNode=R,l.createConditionalTypeNode=z,l.updateConditionalTypeNode=function(e,t,r,n,a){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==a?d(z(t,r,n,a),e):e},l.createInferTypeNode=J,l.updateInferTypeNode=function(e,t){return e.typeParameter!==t?d(J(t),e):e},l.createParenthesizedType=j,l.updateParenthesizedType=function(e,t){return e.type!==t?d(j(t),e):e},l.createThisTypeNode=function(){return _(173)},l.createTypeOperatorNode=K,l.updateTypeOperatorNode=function(e,t){return e.type!==t?d(K(e.operator,t),e):e},l.createIndexedAccessTypeNode=U,l.updateIndexedAccessTypeNode=function(e,t,r){return e.objectType!==t||e.indexType!==r?d(U(t,r),e):e},l.createMappedTypeNode=q,l.updateMappedTypeNode=function(e,t,r,n,a){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==n||e.type!==a?d(q(t,r,n,a),e):e},l.createLiteralTypeNode=V,l.updateLiteralTypeNode=function(e,t){return e.literal!==t?d(V(t),e):e},l.createObjectBindingPattern=W,l.updateObjectBindingPattern=function(e,t){return e.elements!==t?d(W(t),e):e},l.createArrayBindingPattern=H,l.updateArrayBindingPattern=function(e,t){return e.elements!==t?d(H(t),e):e},l.createBindingElement=G,l.updateBindingElement=function(e,t,r,n,a){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==a?d(G(t,r,n,a),e):e},l.createArrayLiteral=X,l.updateArrayLiteral=function(e,t){return e.elements!==t?d(X(t,e.multiLine),e):e},l.createObjectLiteral=Q,l.updateObjectLiteral=function(e,t){return e.properties!==t?d(Q(t,e.multiLine),e):e},l.createPropertyAccess=Y,l.updatePropertyAccess=function(e,t,r){return e.expression!==t||e.name!==r?d(It(Y(t,r),l.getEmitFlags(e)),e):e},l.createElementAccess=Z,l.updateElementAccess=function(e,t,r){return e.expression!==t||e.argumentExpression!==r?d(Z(t,r),e):e},l.createCall=$,l.updateCall=function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?d($(t,r,n),e):e},l.createNew=ee,l.updateNew=function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?d(ee(t,r,n),e):e},l.createTaggedTemplate=te,l.updateTaggedTemplate=function(e,t,r){return e.tag!==t||e.template!==r?d(te(t,r),e):e},l.createTypeAssertion=re,l.updateTypeAssertion=function(e,t,r){return e.type!==t||e.expression!==r?d(re(t,r),e):e},l.createParen=ne,l.updateParen=function(e,t){return e.expression!==t?d(ne(t),e):e},l.createFunctionExpression=ae,l.updateFunctionExpression=function(e,t,r,n,a,i,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==a||e.parameters!==i||e.type!==o||e.body!==s?d(ae(t,r,n,a,i,o,s),e):e},l.createArrowFunction=ie,l.updateArrowFunction=function(e,t,r,n,a,i,o){var s,c;return void 0===o?(s=e.equalsGreaterThanToken,c=l.cast(i,l.isConciseBody)):(s=l.cast(i,function(e){return 36===e.kind}),c=o),e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==a||e.equalsGreaterThanToken!==s||e.body!==c?d(ie(t,r,n,a,s,c),e):e},l.createDelete=oe,l.updateDelete=function(e,t){return e.expression!==t?d(oe(t),e):e},l.createTypeOf=se,l.updateTypeOf=function(e,t){return e.expression!==t?d(se(t),e):e},l.createVoid=ce,l.updateVoid=function(e,t){return e.expression!==t?d(ce(t),e):e},l.createAwait=ue,l.updateAwait=function(e,t){return e.expression!==t?d(ue(t),e):e},l.createPrefix=_e,l.updatePrefix=function(e,t){return e.operand!==t?d(_e(e.operator,t),e):e},l.createPostfix=le,l.updatePostfix=function(e,t){return e.operand!==t?d(le(t,e.operator),e):e},l.createBinary=de,l.updateBinary=function(e,t,r,n){return e.left!==t||e.right!==r?d(de(t,n||e.operatorToken,r),e):e},l.createConditional=pe,l.updateConditional=function e(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];if(2===n.length){var i=n[0],o=n[1];return e(t,r,t.questionToken,i,t.colonToken,o)}l.Debug.assert(4===n.length);var s=n[0],c=n[1],u=n[2],_=n[3];return t.condition!==r||t.questionToken!==s||t.whenTrue!==c||t.colonToken!==u||t.whenFalse!==_?d(pe(r,s,c,u,_),t):t},l.createTemplateExpression=fe,l.updateTemplateExpression=function(e,t,r){return e.head!==t||e.templateSpans!==r?d(fe(t,r),e):e},l.createTemplateHead=function(e){var t=_(14);return t.text=e,t},l.createTemplateMiddle=function(e){var t=_(15);return t.text=e,t},l.createTemplateTail=function(e){var t=_(16);return t.text=e,t},l.createNoSubstitutionTemplateLiteral=function(e){var t=_(13);return t.text=e,t},l.createYield=me,l.updateYield=function(e,t,r){return e.expression!==r||e.asteriskToken!==t?d(me(t,r),e):e},l.createSpread=ge,l.updateSpread=function(e,t){return e.expression!==t?d(ge(t),e):e},l.createClassExpression=ye,l.updateClassExpression=function(e,t,r,n,a,i){return e.modifiers!==t||e.name!==r||e.typeParameters!==n||e.heritageClauses!==a||e.members!==i?d(ye(t,r,n,a,i),e):e},l.createOmittedExpression=function(){return _(204)},l.createExpressionWithTypeArguments=ve,l.updateExpressionWithTypeArguments=function(e,t,r){return e.typeArguments!==t||e.expression!==r?d(ve(t,r),e):e},l.createAsExpression=he,l.updateAsExpression=function(e,t,r){return e.expression!==t||e.type!==r?d(he(t,r),e):e},l.createNonNullExpression=be,l.updateNonNullExpression=function(e,t){return e.expression!==t?d(be(t),e):e},l.createMetaProperty=xe,l.updateMetaProperty=function(e,t){return e.name!==t?d(xe(e.keywordToken,t),e):e},l.createTemplateSpan=ke,l.updateTemplateSpan=function(e,t,r){return e.expression!==t||e.literal!==r?d(ke(t,r),e):e},l.createSemicolonClassElement=function(){return _(210)},l.createBlock=De,l.updateBlock=function(e,t){return e.statements!==t?d(De(t,e.multiLine),e):e},l.createVariableStatement=Se,l.updateVariableStatement=function(e,t,r){return e.modifiers!==t||e.declarationList!==r?d(Se(t,r),e):e},l.createEmptyStatement=function(){return _(213)},l.createStatement=Ce,l.updateStatement=function(e,t){return e.expression!==t?d(Ce(t),e):e},l.createIf=Te,l.updateIf=function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?d(Te(t,r,n),e):e},l.createDo=Ee,l.updateDo=function(e,t,r){return e.statement!==t||e.expression!==r?d(Ee(t,r),e):e},l.createWhile=Ne,l.updateWhile=function(e,t,r){return e.expression!==t||e.statement!==r?d(Ne(t,r),e):e},l.createFor=Ae,l.updateFor=function(e,t,r,n,a){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==a?d(Ae(t,r,n,a),e):e},l.createForIn=Pe,l.updateForIn=function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?d(Pe(t,r,n),e):e},l.createForOf=Fe,l.updateForOf=function(e,t,r,n,a){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==a?d(Fe(t,r,n,a),e):e},l.createContinue=we,l.updateContinue=function(e,t){return e.label!==t?d(we(t),e):e},l.createBreak=Ie,l.updateBreak=function(e,t){return e.label!==t?d(Ie(t),e):e},l.createReturn=Oe,l.updateReturn=function(e,t){return e.expression!==t?d(Oe(t),e):e},l.createWith=Me,l.updateWith=function(e,t,r){return e.expression!==t||e.statement!==r?d(Me(t,r),e):e},l.createSwitch=Le,l.updateSwitch=function(e,t,r){return e.expression!==t||e.caseBlock!==r?d(Le(t,r),e):e},l.createLabel=Re,l.updateLabel=function(e,t,r){return e.label!==t||e.statement!==r?d(Re(t,r),e):e},l.createThrow=Be,l.updateThrow=function(e,t){return e.expression!==t?d(Be(t),e):e},l.createTry=ze,l.updateTry=function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?d(ze(t,r,n),e):e},l.createDebuggerStatement=function(){return _(229)},l.createVariableDeclaration=Je,l.updateVariableDeclaration=function(e,t,r,n){return e.name!==t||e.type!==r||e.initializer!==n?d(Je(t,r,n),e):e},l.createVariableDeclarationList=je,l.updateVariableDeclarationList=function(e,t){return e.declarations!==t?d(je(t,e.flags),e):e},l.createFunctionDeclaration=Ke,l.updateFunctionDeclaration=function(e,t,r,n,a,i,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==a||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?d(Ke(t,r,n,a,i,o,s,c),e):e},l.createClassDeclaration=Ue,l.updateClassDeclaration=function(e,t,r,n,a,i,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?d(Ue(t,r,n,a,i,o),e):e},l.createInterfaceDeclaration=qe,l.updateInterfaceDeclaration=function(e,t,r,n,a,i,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?d(qe(t,r,n,a,i,o),e):e},l.createTypeAliasDeclaration=Ve,l.updateTypeAliasDeclaration=function(e,t,r,n,a,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==a||e.type!==i?d(Ve(t,r,n,a,i),e):e},l.createEnumDeclaration=We,l.updateEnumDeclaration=function(e,t,r,n,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==a?d(We(t,r,n,a),e):e},l.createModuleDeclaration=He,l.updateModuleDeclaration=function(e,t,r,n,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==a?d(He(t,r,n,a,e.flags),e):e},l.createModuleBlock=Ge,l.updateModuleBlock=function(e,t){return e.statements!==t?d(Ge(t),e):e},l.createCaseBlock=Xe,l.updateCaseBlock=function(e,t){return e.clauses!==t?d(Xe(t),e):e},l.createNamespaceExportDeclaration=Qe,l.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?d(Qe(t),e):e},l.createImportEqualsDeclaration=Ye,l.updateImportEqualsDeclaration=function(e,t,r,n,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.moduleReference!==a?d(Ye(t,r,n,a),e):e},l.createImportDeclaration=Ze,l.updateImportDeclaration=function(e,t,r,n,a){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==a?d(Ze(t,r,n,a),e):e},l.createImportClause=$e,l.updateImportClause=function(e,t,r){return e.name!==t||e.namedBindings!==r?d($e(t,r),e):e},l.createNamespaceImport=et,l.updateNamespaceImport=function(e,t){return e.name!==t?d(et(t),e):e},l.createNamedImports=tt,l.updateNamedImports=function(e,t){return e.elements!==t?d(tt(t),e):e},l.createImportSpecifier=rt,l.updateImportSpecifier=function(e,t,r){return e.propertyName!==t||e.name!==r?d(rt(t,r),e):e},l.createExportAssignment=nt,l.updateExportAssignment=function(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?d(nt(t,r,e.isExportEquals,n),e):e},l.createExportDeclaration=at,l.updateExportDeclaration=function(e,t,r,n,a){return e.decorators!==t||e.modifiers!==r||e.exportClause!==n||e.moduleSpecifier!==a?d(at(t,r,n,a),e):e},l.createNamedExports=it,l.updateNamedExports=function(e,t){return e.elements!==t?d(it(t),e):e},l.createExportSpecifier=ot,l.updateExportSpecifier=function(e,t,r){return e.propertyName!==t||e.name!==r?d(ot(t,r),e):e},l.createExternalModuleReference=st,l.updateExternalModuleReference=function(e,t){return e.expression!==t?d(st(t),e):e},l.createJsxElement=ct,l.updateJsxElement=function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?d(ct(t,r,n),e):e},l.createJsxSelfClosingElement=ut,l.updateJsxSelfClosingElement=function(e,t,r){return e.tagName!==t||e.attributes!==r?d(ut(t,r),e):e},l.createJsxOpeningElement=_t,l.updateJsxOpeningElement=function(e,t,r){return e.tagName!==t||e.attributes!==r?d(_t(t,r),e):e},l.createJsxClosingElement=lt,l.updateJsxClosingElement=function(e,t){return e.tagName!==t?d(lt(t),e):e},l.createJsxFragment=dt,l.updateJsxFragment=function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?d(dt(t,r,n),e):e},l.createJsxAttribute=pt,l.updateJsxAttribute=function(e,t,r){return e.name!==t||e.initializer!==r?d(pt(t,r),e):e},l.createJsxAttributes=ft,l.updateJsxAttributes=function(e,t){return e.properties!==t?d(ft(t),e):e},l.createJsxSpreadAttribute=mt,l.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?d(mt(t),e):e},l.createJsxExpression=gt,l.updateJsxExpression=function(e,t){return e.expression!==t?d(gt(e.dotDotDotToken,t),e):e},l.createCaseClause=yt,l.updateCaseClause=function(e,t,r){return e.expression!==t||e.statements!==r?d(yt(t,r),e):e},l.createDefaultClause=vt,l.updateDefaultClause=function(e,t){return e.statements!==t?d(vt(t),e):e},l.createHeritageClause=ht,l.updateHeritageClause=function(e,t){return e.types!==t?d(ht(e.token,t),e):e},l.createCatchClause=bt,l.updateCatchClause=function(e,t,r){return e.variableDeclaration!==t||e.block!==r?d(bt(t,r),e):e},l.createPropertyAssignment=xt,l.updatePropertyAssignment=function(e,t,r){return e.name!==t||e.initializer!==r?d(xt(t,r),e):e},l.createShorthandPropertyAssignment=kt,l.updateShorthandPropertyAssignment=function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?d(kt(t,r),e):e},l.createSpreadAssignment=Dt,l.updateSpreadAssignment=function(e,t){return e.expression!==t?d(Dt(t),e):e},l.createEnumMember=St,l.updateEnumMember=function(e,t,r){return e.name!==t||e.initializer!==r?d(St(t,r),e):e},l.updateSourceFileNode=function(e,t){if(e.statements!==t){var r=_(272);return r.flags|=e.flags,r.statements=p(t),r.endOfFileToken=e.endOfFileToken,r.fileName=e.fileName,r.path=e.path,r.text=e.text,void 0!==e.amdDependencies&&(r.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(r.moduleName=e.moduleName),void 0!==e.referencedFiles&&(r.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(r.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(r.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(r.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(r.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(r.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(r.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(r.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(r.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(r.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(r.identifiers=e.identifiers),void 0!==e.nodeCount&&(r.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(r.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(r.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(r.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(r.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(r.lineMap=e.lineMap),void 0!==e.classifiableNames&&(r.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(r.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(r.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(r.imports=e.imports),void 0!==e.moduleAugmentations&&(r.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(r.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(r.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(r.localJsxNamespace=e.localJsxNamespace),d(r,e)}return e},l.getMutableClone=function(e){var t=r(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},l.createNotEmittedStatement=function(e){var t=_(294);return t.original=e,wt(t,e),t},l.createEndOfDeclarationMarker=function(e){var t=_(298);return t.emitNode={},t.original=e,t},l.createMergeDeclarationMarker=function(e){var t=_(297);return t.emitNode={},t.original=e,t},l.createPartiallyEmittedExpression=Ct,l.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?d(Ct(t,e.original),e):e},l.createCommaList=Et,l.updateCommaList=function(e,t){return e.elements!==t?d(Et(t),e):e},l.createBundle=Nt,l.updateBundle=function(e,t){return e.sourceFiles!==t?Nt(t):e},l.createImmediatelyInvokedFunctionExpression=function(e,t,r){return $(ae(void 0,void 0,void 0,void 0,t?[t]:[],void 0,De(e,!0)),void 0,r?[r]:[])},l.createImmediatelyInvokedArrowFunction=function(e,t,r){return $(ie(void 0,void 0,t?[t]:[],void 0,void 0,De(e,!0)),void 0,r?[r]:[])},l.createComma=function(e,t){return de(e,26,t)},l.createLessThan=function(e,t){return de(e,27,t)},l.createAssignment=function(e,t){return de(e,58,t)},l.createStrictEquality=function(e,t){return de(e,34,t)},l.createStrictInequality=function(e,t){return de(e,35,t)},l.createAdd=function(e,t){return de(e,37,t)},l.createSubtract=function(e,t){return de(e,38,t)},l.createPostfixIncrement=function(e){return le(e,43)},l.createLogicalAnd=function(e,t){return de(e,53,t)},l.createLogicalOr=function(e,t){return de(e,54,t)},l.createLogicalNot=function(e){return _e(51,e)},l.createVoidZero=function(){return ce(a(0))},l.createExportDefault=function(e){return nt(void 0,void 0,!1,e)},l.createExternalModuleExport=function(e){return at(void 0,void 0,it([ot(void 0,e)]))},l.disposeEmitNodes=function(e){var t=(e=l.getSourceFileOfNode(l.getParseTreeNode(e)))&&e.emitNode,r=t&&t.annotatedNodes;if(r)for(var n=0,a=r;n<a.length;n++)a[n].emitNode=void 0},l.getOrCreateEmitNode=Ft,l.setTextRange=wt,l.setEmitFlags=It,l.addEmitFlags=function(e,t){var r=Ft(e);return r.flags=r.flags|t,e},l.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},l.setSourceMapRange=function(e,t){return Ft(e).sourceMapRange=t,e},l.createSourceMapSource=function(e,t,r){return new(s||(s=l.objectAllocator.getSourceMapSourceConstructor()))(e,t,r)},l.getTokenSourceMapRange=function(e,t){var r=e.emitNode,n=r&&r.tokenSourceMapRanges;return n&&n[t]},l.setTokenSourceMapRange=function(e,t,r){var n=Ft(e);return(n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]))[t]=r,e},l.getStartsOnNewLine=function(e){var t=e.emitNode;return t&&t.startsOnNewLine},l.setStartsOnNewLine=function(e,t){return Ft(e).startsOnNewLine=t,e},l.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},l.setCommentRange=function(e,t){return Ft(e).commentRange=t,e},l.getSyntheticLeadingComments=Ot,l.setSyntheticLeadingComments=Mt,l.addSyntheticLeadingComment=function(e,t,r,n){return Mt(e,l.append(Ot(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))},l.getSyntheticTrailingComments=Lt,l.setSyntheticTrailingComments=Rt,l.addSyntheticTrailingComment=function(e,t,r,n){return Rt(e,l.append(Lt(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:n,text:r}))},l.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},l.setConstantValue=function(e,t){return Ft(e).constantValue=t,e},l.addEmitHelper=function(e,t){var r=Ft(e);return r.helpers=l.append(r.helpers,t),e},l.addEmitHelpers=function(e,t){if(l.some(t))for(var r=Ft(e),n=0,a=t;n<a.length;n++){var i=a[n];r.helpers=l.appendIfUnique(r.helpers,i)}return e},l.removeEmitHelper=function(e,t){var r=e.emitNode;if(r){var n=r.helpers;if(n)return l.orderedRemoveItem(n,t)}return!1},l.getEmitHelpers=function(e){var t=e.emitNode;return t&&t.helpers},l.moveEmitHelpers=function(e,t,r){var n=e.emitNode,a=n&&n.helpers;if(l.some(a)){for(var i=Ft(t),o=0,s=0;s<a.length;s++){var c=a[s];r(c)?(o++,i.helpers=l.appendIfUnique(i.helpers,c)):0<o&&(a[s-o]=c)}0<o&&(a.length-=o)}},l.compareEmitHelpers=function(e,t){return e===t?0:e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:l.compareValues(e.priority,t.priority)},l.setOriginalNode=Bt}(ts||(ts={})),function(f){function u(e,t,r){if(f.isComputedPropertyName(t))return f.setTextRange(f.createElementAccess(e,t.expression),r);var n=f.setTextRange(f.isIdentifier(t)?f.createPropertyAccess(e,t):f.createElementAccess(e,t),t);return f.getOrCreateEmitNode(n).flags|=64,n}function _(e,t){var r=f.createIdentifier(e||"React");return r.flags&=-9,r.parent=f.getParseTreeNode(t),r}function l(e,t,r){return e?function e(t,r){if(f.isQualifiedName(t)){var n=e(t.left,r),a=f.createIdentifier(f.idText(t.right));return a.escapedText=t.right.escapedText,f.createPropertyAccess(n,a)}return _(f.idText(t),r)}(e,r):f.createPropertyAccess(_(t,r),"createElement")}function a(e){return f.setEmitFlags(f.createIdentifier(e),4098)}f.nullTransformationContext={enableEmitNotification:f.noop,enableSubstitution:f.noop,endLexicalEnvironment:function(){},getCompilerOptions:f.notImplemented,getEmitHost:f.notImplemented,getEmitResolver:f.notImplemented,hoistFunctionDeclaration:f.noop,hoistVariableDeclaration:f.noop,isEmitNotificationEnabled:f.notImplemented,isSubstitutionEnabled:f.notImplemented,onEmitNode:f.noop,onSubstituteNode:f.notImplemented,readEmitHelpers:f.notImplemented,requestEmitHelper:f.noop,resumeLexicalEnvironment:f.noop,startLexicalEnvironment:f.noop,suspendLexicalEnvironment:f.noop},f.createTypeCheck=function(e,t){return"undefined"===t?f.createStrictEquality(e,f.createVoidZero()):f.createStrictEquality(f.createTypeOf(e),f.createLiteral(t))},f.createMemberAccessForPropertyName=u,f.createFunctionCall=function(e,t,r,n){return f.setTextRange(f.createCall(f.createPropertyAccess(e,"call"),void 0,[t].concat(r)),n)},f.createFunctionApply=function(e,t,r,n){return f.setTextRange(f.createCall(f.createPropertyAccess(e,"apply"),void 0,[t,r]),n)},f.createArraySlice=function(e,t){var r=[];return void 0!==t&&r.push("number"==typeof t?f.createLiteral(t):t),f.createCall(f.createPropertyAccess(e,"slice"),void 0,r)},f.createArrayConcat=function(e,t){return f.createCall(f.createPropertyAccess(e,"concat"),void 0,t)},f.createMathPow=function(e,t,r){return f.setTextRange(f.createCall(f.createPropertyAccess(f.createIdentifier("Math"),"pow"),void 0,[e,t]),r)},f.createExpressionForJsxElement=function(e,t,r,n,a,i,o){var s=[r];if(n&&s.push(n),a&&0<a.length)if(n||s.push(f.createNull()),1<a.length)for(var c=0,u=a;c<u.length;c++){var _=u[c];E(_),s.push(_)}else s.push(a[0]);return f.setTextRange(f.createCall(l(e,t,i),void 0,s),o)},f.createExpressionForJsxFragment=function(e,t,r,n,a){var i=[f.createPropertyAccess(_(t,n),"Fragment")];if(i.push(f.createNull()),r&&0<r.length)if(1<r.length)for(var o=0,s=r;o<s.length;o++){var c=s[o];E(c),i.push(c)}else i.push(r[0]);return f.setTextRange(f.createCall(l(e,t,n),void 0,i),a)},f.getHelperName=a;var n={name:"typescript:values",scoped:!1,text:'\n            var __values = (this && this.__values) || function (o) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n                if (m) return m.call(o);\n                return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n            };\n        '};f.createValuesHelper=function(e,t,r){return e.requestEmitHelper(n),f.setTextRange(f.createCall(a("__values"),void 0,[t]),r)};var i={name:"typescript: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            };\n        '};f.createReadHelper=function(e,t,r,n){return e.requestEmitHelper(i),f.setTextRange(f.createCall(a("__read"),void 0,void 0!==r?[t,f.createLiteral(r)]:[t]),n)};var e,o={name:"typescript: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            };"};function s(e,t){var r=f.skipParentheses(e);switch(r.kind){case 71:return t;case 99:case 8:case 9:return!1;case 181:return 0!==r.elements.length;case 182:return 0<r.properties.length;default:return!0}}function m(e){return f.isIdentifier(e)?f.createLiteral(e):f.isComputedPropertyName(e)?f.getMutableClone(e.expression):f.getMutableClone(e)}function c(e,t,r){return d(e,t,r,8192)}function d(e,t,r,n){var a=f.getNameOfDeclaration(e);if(a&&f.isIdentifier(a)&&!f.isGeneratedIdentifier(a)){var i=f.getMutableClone(a);return n|=f.getEmitFlags(a),r||(n|=48),t||(n|=1536),n&&f.setEmitFlags(i,n),i}return f.getGeneratedNameForNode(e)}function p(e,t,r,n){var a,i=f.createPropertyAccess(e,f.nodeIsSynthesized(t)?t:f.getSynthesizedClone(t));return f.setTextRange(i,t),n||(a|=48),r||(a|=1536),a&&f.setEmitFlags(i,a),i}function g(e){return f.isStringLiteral(e.expression)&&"use strict"===e.expression.text}function y(e,t,r){f.Debug.assert(0===e.length,"Prologue directives should be at the first statement in the target statements array");for(var n=!1,a=0,i=t.length;a<i;){var o=t[a];if(!f.isPrologueDirective(o))break;g(o)&&(n=!0),e.push(o),a++}return r&&!n&&e.push(E(f.createStatement(f.createLiteral("use strict")))),a}function v(e,t,r,n){for(var a=t.length;r<a;){var i=t[r];if(!(1048576&f.getEmitFlags(i)))break;f.append(e,n?f.visitNode(i,n,f.isStatement):i),r++}return r}function h(e){if(e=f.skipPartiallyEmittedExpressions(e),f.isLiteralKind(e.kind))return e.kind;if(198===e.kind&&37===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;var t=h(e.left),r=f.isLiteralKind(t)&&t===h(e.right)?t:0;return e.cachedLiteralKind=r}return 0}function b(e){var t=f.skipPartiallyEmittedExpressions(e);return f.isLeftHandSideExpression(t)&&(186!==t.kind||t.arguments)?e:f.setTextRange(f.createParen(e),e)}function x(e){var t=f.skipPartiallyEmittedExpressions(e),r=f.getExpressionPrecedence(t);return f.getOperatorPrecedence(198,26)<r?e:f.setTextRange(f.createParen(e),e)}function t(e){return 170===e.kind?f.createParenthesizedType(e):e}function r(e){switch(e.kind){case 168:case 169:case 162:case 163:return f.createParenthesizedType(e)}return t(e)}function k(e,t){for(;;){switch(e.kind){case 197:e=e.operand;continue;case 198:e=e.left;continue;case 199:e=e.condition;continue;case 185:if(t)return e;case 184:case 183:case 295:e=e.expression;continue}return e}}function D(e,t){switch(void 0===t&&(t=7),e.kind){case 189:return 0!=(1&t);case 188:case 206:case 207:return 0!=(2&t);case 295:return 0!=(4&t)}return!1}function S(e,t){var r;for(void 0===t&&(t=7);r=e,1&t&&(e=f.skipParentheses(e)),2&t&&(e=C(e)),4&t&&(e=f.skipPartiallyEmittedExpressions(e)),r!==e;);return e}function C(e){for(;f.isAssertionExpression(e)||207===e.kind;)e=e.expression;return e}function T(e,t,r){return void 0===r&&(r=7),e&&D(e,r)&&(!(189===(n=e).kind&&f.nodeIsSynthesized(n)&&f.nodeIsSynthesized(f.getSourceMapRange(n))&&f.nodeIsSynthesized(f.getCommentRange(n)))||f.some(f.getSyntheticLeadingComments(n))||f.some(f.getSyntheticTrailingComments(n)))?function(e,t){switch(e.kind){case 189:return f.updateParen(e,t);case 188:return f.updateTypeAssertion(e,e.type,t);case 206:return f.updateAsExpression(e,t,e.type);case 207:return f.updateNonNullExpression(e,t);case 295:return f.updatePartiallyEmittedExpression(e,t)}}(e,T(e.expression,t)):t;var n}function E(e){return f.setStartsOnNewLine(e,!0)}function N(e){var t=f.getOriginalNode(e,f.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function A(e,t,r){if(e)return e.moduleName?f.createLiteral(e.moduleName):e.isDeclarationFile||!r.out&&!r.outFile?void 0:f.createLiteral(f.getExternalModuleNameFromPath(t,e.fileName))}function P(e){if(f.isDeclarationBindingElement(e))return e.name;if(!f.isObjectLiteralElementLike(e))return f.isAssignmentExpression(e,!0)?P(e.left):f.isSpreadElement(e)?P(e.expression):e;switch(e.kind){case 268:return P(e.initializer);case 269:return e.name;case 270:return P(e.expression)}}function F(e){if(f.isBindingElement(e)){if(e.dotDotDotToken)return f.Debug.assertNode(e.name,f.isIdentifier),f.setOriginalNode(f.setTextRange(f.createSpread(e.name),e),e);var t=L(e.name);return e.initializer?f.setOriginalNode(f.setTextRange(f.createAssignment(t,e.initializer),e),e):t}return f.Debug.assertNode(e,f.isExpression),e}function w(e){if(f.isBindingElement(e)){if(e.dotDotDotToken)return f.Debug.assertNode(e.name,f.isIdentifier),f.setOriginalNode(f.setTextRange(f.createSpreadAssignment(e.name),e),e);if(e.propertyName){var t=L(e.name);return f.setOriginalNode(f.setTextRange(f.createPropertyAssignment(e.propertyName,e.initializer?f.createAssignment(t,e.initializer):t),e),e)}return f.Debug.assertNode(e.name,f.isIdentifier),f.setOriginalNode(f.setTextRange(f.createShorthandPropertyAssignment(e.name,e.initializer),e),e)}return f.Debug.assertNode(e,f.isObjectLiteralElementLike),e}function I(e){switch(e.kind){case 179:case 181:return M(e);case 178:case 182:return O(e)}}function O(e){return f.isObjectBindingPattern(e)?f.setOriginalNode(f.setTextRange(f.createObjectLiteral(f.map(e.elements,w)),e),e):(f.Debug.assertNode(e,f.isObjectLiteralExpression),e)}function M(e){return f.isArrayBindingPattern(e)?f.setOriginalNode(f.setTextRange(f.createArrayLiteral(f.map(e.elements,F)),e),e):(f.Debug.assertNode(e,f.isArrayLiteralExpression),e)}function L(e){return f.isBindingPattern(e)?I(e):(f.Debug.assertNode(e,f.isExpression),e)}f.createSpreadHelper=function(e,t,r){return e.requestEmitHelper(i),e.requestEmitHelper(o),f.setTextRange(f.createCall(a("__spread"),void 0,t),r)},f.createForOfBindingStatement=function(e,t){if(f.isVariableDeclarationList(e)){var r=f.firstOrUndefined(e.declarations),n=f.updateVariableDeclaration(r,r.name,void 0,t);return f.setTextRange(f.createVariableStatement(void 0,f.updateVariableDeclarationList(e,[n])),e)}var a=f.setTextRange(f.createAssignment(e,t),e);return f.setTextRange(f.createStatement(a),e)},f.insertLeadingStatement=function(e,t){return f.isBlock(e)?f.updateBlock(e,f.setTextRange(f.createNodeArray([t].concat(e.statements)),e.statements)):f.createBlock(f.createNodeArray([e,t]),!0)},f.restoreEnclosingLabel=function e(t,r,n){if(!r)return t;var a=f.updateLabel(r,r.label,226===r.statement.kind?e(t,r.statement):t);return n&&n(r),a},f.createCallBinding=function(e,t,r,n){var a,i,o=S(e,7);if(f.isSuperProperty(o))a=f.createThis(),i=o;else if(97===o.kind)a=f.createThis(),i=r<2?f.setTextRange(f.createIdentifier("_super"),o):o;else if(4096&f.getEmitFlags(o))a=f.createVoidZero(),i=b(o);else switch(o.kind){case 183:s(o.expression,n)?(a=f.createTempVariable(t),i=f.createPropertyAccess(f.setTextRange(f.createAssignment(a,o.expression),o.expression),o.name),f.setTextRange(i,o)):(a=o.expression,i=o);break;case 184:s(o.expression,n)?(a=f.createTempVariable(t),i=f.createElementAccess(f.setTextRange(f.createAssignment(a,o.expression),o.expression),o.argumentExpression),f.setTextRange(i,o)):(a=o.expression,i=o);break;default:a=f.createVoidZero(),i=b(e)}return{target:i,thisArg:a}},f.inlineExpressions=function(e){return 10<e.length?f.createCommaList(e):f.reduceLeft(e,f.createComma)},f.createExpressionFromEntityName=function e(t){if(f.isQualifiedName(t)){var r=e(t.left),n=f.getMutableClone(t.right);return f.setTextRange(f.createPropertyAccess(r,n),t)}return f.getMutableClone(t)},f.createExpressionForPropertyName=m,f.createExpressionForObjectLiteralElementLike=function(e,t,r){switch(t.kind){case 155:case 156:return function(e,t,r,n){var a=f.getAllAccessorDeclarations(e,t),i=a.firstAccessor,o=a.getAccessor,s=a.setAccessor;if(t===i){var c=[];if(o){var u=f.createFunctionExpression(o.modifiers,void 0,void 0,void 0,o.parameters,void 0,o.body);f.setTextRange(u,o),f.setOriginalNode(u,o);var _=f.createPropertyAssignment("get",u);c.push(_)}if(s){var l=f.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);f.setTextRange(l,s),f.setOriginalNode(l,s);var d=f.createPropertyAssignment("set",l);c.push(d)}c.push(f.createPropertyAssignment("enumerable",f.createTrue())),c.push(f.createPropertyAssignment("configurable",f.createTrue()));var p=f.setTextRange(f.createCall(f.createPropertyAccess(f.createIdentifier("Object"),"defineProperty"),void 0,[r,m(t.name),f.createObjectLiteral(c,n)]),i);return f.aggregateTransformFlags(p)}}(e.properties,t,r,e.multiLine);case 268:return s=t,c=r,f.aggregateTransformFlags(f.setOriginalNode(f.setTextRange(f.createAssignment(u(c,s.name,s.name),s.initializer),s),s));case 269:return i=t,o=r,f.aggregateTransformFlags(f.setOriginalNode(f.setTextRange(f.createAssignment(u(o,i.name,i.name),f.getSynthesizedClone(i.name)),i),i));case 153:return n=t,a=r,f.aggregateTransformFlags(f.setOriginalNode(f.setTextRange(f.createAssignment(u(a,n.name,n.name),f.setOriginalNode(f.setTextRange(f.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))}var n,a,i,o,s,c},f.getInternalName=function(e,t,r){return d(e,t,r,49152)},f.isInternalName=function(e){return 0!=(32768&f.getEmitFlags(e))},f.getLocalName=function(e,t,r){return d(e,t,r,16384)},f.isLocalName=function(e){return 0!=(16384&f.getEmitFlags(e))},f.getExportName=c,f.isExportName=function(e){return 0!=(8192&f.getEmitFlags(e))},f.getDeclarationName=function(e,t,r){return d(e,t,r)},f.getExternalModuleOrNamespaceExportName=function(e,t,r,n){return e&&f.hasModifier(t,1)?p(e,d(t),r,n):c(t,r,n)},f.getNamespaceMemberName=p,f.convertToFunctionBody=function(e,t){return f.isBlock(e)?e:f.setTextRange(f.createBlock([f.setTextRange(f.createReturn(e),e)],t),e)},f.convertFunctionDeclarationToExpression=function(e){f.Debug.assert(!!e.body);var t=f.createFunctionExpression(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);return f.setOriginalNode(t,e),f.setTextRange(t,e),f.getStartsOnNewLine(e)&&f.setStartsOnNewLine(t,!0),f.aggregateTransformFlags(t),t},f.addPrologue=function(e,t,r,n){return v(e,t,y(e,t,r),n)},f.addStandardPrologue=y,f.addCustomPrologue=v,f.startsWithUseStrict=function(e){var t=f.firstOrUndefined(e);return void 0!==t&&f.isPrologueDirective(t)&&g(t)},f.ensureUseStrict=function(e){for(var t=!1,r=0,n=e;r<n.length;r++){var a=n[r];if(!f.isPrologueDirective(a))break;if(g(a)){t=!0;break}}return t?e:f.setTextRange(f.createNodeArray([E(f.createStatement(f.createLiteral("use strict")))].concat(e)),e)},f.parenthesizeBinaryOperand=function(e,t,r,n){return 189===f.skipPartiallyEmittedExpressions(t).kind?t:function(e,t,r,n){var a,i=f.getOperatorPrecedence(198,e),o=f.getOperatorAssociativity(198,e),s=f.skipPartiallyEmittedExpressions(t),c=f.getExpressionPrecedence(s);switch(f.compareValues(c,i)){case-1:return!(!r&&1===o&&201===t.kind);case 1:return!1;case 0:if(r)return 1===o;if(f.isBinaryExpression(s)&&s.operatorToken.kind===e){if(39===(a=e)||49===a||48===a||50===a)return!1;if(37===e){var u=n?h(n):0;if(f.isLiteralKind(u)&&u===h(s))return!1}}var _=f.getExpressionAssociativity(s);return 0===_}}(e,t,r,n)?f.createParen(t):t},f.parenthesizeForConditionalHead=function(e){var t=f.getOperatorPrecedence(199,55),r=f.skipPartiallyEmittedExpressions(e),n=f.getExpressionPrecedence(r);return-1===f.compareValues(n,t)?f.createParen(e):e},f.parenthesizeSubexpressionOfConditionalExpression=function(e){var t=f.skipPartiallyEmittedExpressions(e);return 198===t.kind&&26===t.operatorToken.kind||296===t.kind?f.createParen(e):e},f.parenthesizeDefaultExpression=function(e){var t=f.skipPartiallyEmittedExpressions(e);return 203===t.kind||190===t.kind||296===t.kind||f.isBinaryExpression(t)&&26===t.operatorToken.kind?f.createParen(e):e},f.parenthesizeForNew=function(e){var t=k(e,!0);switch(t.kind){case 185:return f.createParen(e);case 186:return t.arguments?e:f.createParen(e)}return b(e)},f.parenthesizeForAccess=b,f.parenthesizePostfixOperand=function(e){return f.isLeftHandSideExpression(e)?e:f.setTextRange(f.createParen(e),e)},f.parenthesizePrefixOperand=function(e){return f.isUnaryExpression(e)?e:f.setTextRange(f.createParen(e),e)},f.parenthesizeListElements=function(e){for(var t,r=0;r<e.length;r++){var n=x(e[r]);void 0===t&&n===e[r]||(void 0===t&&(t=e.slice(0,r)),t.push(n))}return void 0!==t?f.setTextRange(f.createNodeArray(t,e.hasTrailingComma),e):e},f.parenthesizeExpressionForList=x,f.parenthesizeExpressionForExpressionStatement=function(e){var t=f.skipPartiallyEmittedExpressions(e);if(f.isCallExpression(t)){var r=t.expression,n=f.skipPartiallyEmittedExpressions(r).kind;if(190===n||191===n){var a=f.getMutableClone(t);return a.expression=f.setTextRange(f.createParen(r),r),T(e,a,4)}}var i=k(t,!1).kind;return 182===i||190===i?f.setTextRange(f.createParen(e),e):e},f.parenthesizeConditionalTypeMember=t,f.parenthesizeElementTypeMember=r,f.parenthesizeArrayTypeMember=function(e){switch(e.kind){case 164:case 174:return f.createParenthesizedType(e)}return r(e)},f.parenthesizeElementTypeMembers=function(e){return f.createNodeArray(f.sameMap(e,r))},f.parenthesizeTypeParameters=function(e){if(f.some(e)){for(var t=[],r=0;r<e.length;++r){var n=e[r];t.push(0===r&&f.isFunctionOrConstructorTypeNode(n)&&n.typeParameters?f.createParenthesizedType(n):n)}return f.createNodeArray(t)}},f.parenthesizeConciseBody=function(e){return f.isBlock(e)||182!==k(e,!1).kind?e:f.setTextRange(f.createParen(e),e)},(e=f.OuterExpressionKinds||(f.OuterExpressionKinds={}))[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All",f.isOuterExpression=D,f.skipOuterExpressions=S,f.skipAssertions=C,f.recreateOuterExpressions=T,f.startOnNewLine=E,f.getExternalHelpersModuleName=N,f.getOrCreateExternalHelpersModuleNameIfNeeded=function(e,t,r,n){if(t.importHelpers&&f.isEffectiveExternalModule(e,t)){var a=N(e);if(a)return a;var i=f.getEmitModuleKind(t),o=(r||t.esModuleInterop&&n)&&i!==f.ModuleKind.System&&i!==f.ModuleKind.ES2015&&i!==f.ModuleKind.ESNext;if(!o){var s=f.getEmitHelpers(e);if(s)for(var c=0,u=s;c<u.length;c++)if(!u[c].scoped){o=!0;break}}if(o){var _=f.getOriginalNode(e,f.isSourceFile),l=f.getOrCreateEmitNode(_);return l.externalHelpersModuleName||(l.externalHelpersModuleName=f.createUniqueName(f.externalHelpersModuleNameText))}}},f.getLocalNameForExternalImport=function(e,t){var r=f.getNamespaceDeclarationNode(e);if(r&&!f.isDefaultImport(e)){var n=r.name;return f.isGeneratedIdentifier(n)?n:f.createIdentifier(f.getSourceTextOfNodeFromSourceFile(t,n)||f.idText(n))}return 242===e.kind&&e.importClause?f.getGeneratedNameForNode(e):248===e.kind&&e.moduleSpecifier?f.getGeneratedNameForNode(e):void 0},f.getExternalModuleNameLiteral=function(e,t,r,n,a){var i,o,s,c,u,_,l=f.getExternalModuleName(e);if(9===l.kind)return c=e,u=r,_=a,A(n.getExternalModuleFileFromDeclaration(c),u,_)||(i=l,(s=(o=t).renamedDependencies&&o.renamedDependencies.get(i.text))&&f.createLiteral(s))||f.getSynthesizedClone(l)},f.tryGetModuleNameFromFile=A,f.getInitializerOfBindingOrAssignmentElement=function e(t){return f.isDeclarationBindingElement(t)?t.initializer:f.isPropertyAssignment(t)?f.isAssignmentExpression(t.initializer,!0)?t.initializer.right:void 0:f.isShorthandPropertyAssignment(t)?t.objectAssignmentInitializer:f.isAssignmentExpression(t,!0)?t.right:f.isSpreadElement(t)?e(t.expression):void 0},f.getTargetOfBindingOrAssignmentElement=P,f.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 148:case 180:return e.dotDotDotToken;case 202:case 270:return e}},f.getPropertyNameOfBindingOrAssignmentElement=function(e){switch(e.kind){case 180:if(e.propertyName){var t=e.propertyName;return f.isComputedPropertyName(t)&&f.isStringOrNumericLiteral(t.expression)?t.expression:t}break;case 268:if(e.name)return t=e.name,f.isComputedPropertyName(t)&&f.isStringOrNumericLiteral(t.expression)?t.expression:t;break;case 270:return e.name}var r=P(e);if(r&&f.isPropertyName(r))return f.isComputedPropertyName(r)&&f.isStringOrNumericLiteral(r.expression)?r.expression:r;f.Debug.fail("Invalid property name for binding element.")},f.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 178:case 179:case 181:return e.elements;case 182:return e.properties}},f.convertToArrayAssignmentElement=F,f.convertToObjectAssignmentElement=w,f.convertToAssignmentPattern=I,f.convertToObjectAssignmentPattern=O,f.convertToArrayAssignmentPattern=M,f.convertToAssignmentElementTarget=L}(ts||(ts={})),function(p){var o=p.or(p.isTypeNode,p.isTypeParameterDeclaration);function s(e,t,r,n){if(void 0===e||void 0===t)return e;p.aggregateTransformFlags(e);var a,i=t(e);return i===e?e:void 0!==i?(a=p.isArray(i)?(n||function(e){return p.Debug.assert(e.length<=1,"Too many nodes written to output."),p.singleOrUndefined(e)})(i):i,p.Debug.assertNode(a,r),p.aggregateTransformFlags(a),a):void 0}function c(e,t,r,n,a){if(void 0===e||void 0===t)return e;var i,o=e.length;(void 0===n||n<0)&&(n=0),(void 0===a||o-n<a)&&(a=o-n),(0<n||a<o)&&(i=p.createNodeArray([],e.hasTrailingComma&&n+a===o));for(var s=0;s<a;s++){var c=e[s+n];p.aggregateTransformFlags(c);var u=void 0!==c?t(c):void 0;if((void 0!==i||void 0===u||u!==c)&&(void 0===i&&(i=p.createNodeArray(e.slice(0,s),e.hasTrailingComma),p.setTextRange(i,e)),u))if(p.isArray(u))for(var _=0,l=u;_<l.length;_++){var d=l[_];p.Debug.assertNode(d,r),p.aggregateTransformFlags(d),i.push(d)}else p.Debug.assertNode(u,r),p.aggregateTransformFlags(u),i.push(u)}return i||e}function u(e,t,r,n,a){r.startLexicalEnvironment(),e=c(e,t,p.isStatement,n),a&&!p.startsWithUseStrict(e)&&(e=p.setTextRange(p.createNodeArray([p.createStatement(p.createLiteral("use strict"))].concat(e)),e));var i=r.endLexicalEnvironment();return p.setTextRange(p.createNodeArray(p.concatenate(e,i)),e)}function _(e,t,r,n){void 0===n&&(n=c),r.startLexicalEnvironment();var a=n(e,t,p.isParameterDeclaration);return r.suspendLexicalEnvironment(),a}function l(e,t,r){r.resumeLexicalEnvironment();var n=s(e,t,p.isConciseBody),a=r.endLexicalEnvironment();if(p.some(a)){var i=p.convertToFunctionBody(n),o=p.mergeLexicalEnvironment(i.statements,a);return p.updateBlock(i,o)}return n}p.visitNode=s,p.visitNodes=c,p.visitLexicalEnvironment=u,p.visitParameterList=_,p.visitFunctionBody=l,p.visitEachChild=function(e,t,r,n,a){if(void 0===n&&(n=c),void 0!==e){var i=e.kind;if(0<i&&i<=144||173===i)return e;switch(i){case 71:return p.updateIdentifier(e,n(e.typeArguments,t,o));case 145:return p.updateQualifiedName(e,s(e.left,t,p.isEntityName),s(e.right,t,p.isIdentifier));case 146:return p.updateComputedPropertyName(e,s(e.expression,t,p.isExpression));case 147:return p.updateTypeParameterDeclaration(e,s(e.name,t,p.isIdentifier),s(e.constraint,t,p.isTypeNode),s(e.default,t,p.isTypeNode));case 148:return p.updateParameter(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.dotDotDotToken,a,p.isToken),s(e.name,t,p.isBindingName),s(e.questionToken,a,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 149:return p.updateDecorator(e,s(e.expression,t,p.isExpression));case 150:return p.updatePropertySignature(e,n(e.modifiers,t,p.isToken),s(e.name,t,p.isPropertyName),s(e.questionToken,a,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 151:return p.updateProperty(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isPropertyName),s(e.questionToken,a,p.isToken),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 152:return p.updateMethodSignature(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode),s(e.name,t,p.isPropertyName),s(e.questionToken,a,p.isToken));case 153:return p.updateMethod(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.asteriskToken,a,p.isToken),s(e.name,t,p.isPropertyName),s(e.questionToken,a,p.isToken),n(e.typeParameters,t,p.isTypeParameterDeclaration),_(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),l(e.body,t,r));case 154:return p.updateConstructor(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),_(e.parameters,t,r,n),l(e.body,t,r));case 155:return p.updateGetAccessor(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isPropertyName),_(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),l(e.body,t,r));case 156:return p.updateSetAccessor(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isPropertyName),_(e.parameters,t,r,n),l(e.body,t,r));case 157:return p.updateCallSignature(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 158:return p.updateConstructSignature(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 159:return p.updateIndexSignature(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 160:return p.updateTypePredicateNode(e,s(e.parameterName,t),s(e.type,t,p.isTypeNode));case 161:return p.updateTypeReferenceNode(e,s(e.typeName,t,p.isEntityName),n(e.typeArguments,t,p.isTypeNode));case 162:return p.updateFunctionTypeNode(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 163:return p.updateConstructorTypeNode(e,n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.parameters,t,p.isParameterDeclaration),s(e.type,t,p.isTypeNode));case 164:return p.updateTypeQueryNode(e,s(e.exprName,t,p.isEntityName));case 165:return p.updateTypeLiteralNode(e,n(e.members,t,p.isTypeElement));case 166:return p.updateArrayTypeNode(e,s(e.elementType,t,p.isTypeNode));case 167:return p.updateTypleTypeNode(e,n(e.elementTypes,t,p.isTypeNode));case 168:return p.updateUnionTypeNode(e,n(e.types,t,p.isTypeNode));case 169:return p.updateIntersectionTypeNode(e,n(e.types,t,p.isTypeNode));case 170:return p.updateConditionalTypeNode(e,s(e.checkType,t,p.isTypeNode),s(e.extendsType,t,p.isTypeNode),s(e.trueType,t,p.isTypeNode),s(e.falseType,t,p.isTypeNode));case 171:return p.updateInferTypeNode(e,s(e.typeParameter,t,p.isTypeParameterDeclaration));case 172:return p.updateParenthesizedType(e,s(e.type,t,p.isTypeNode));case 174:return p.updateTypeOperatorNode(e,s(e.type,t,p.isTypeNode));case 175:return p.updateIndexedAccessTypeNode(e,s(e.objectType,t,p.isTypeNode),s(e.indexType,t,p.isTypeNode));case 176:return p.updateMappedTypeNode(e,s(e.readonlyToken,a,p.isToken),s(e.typeParameter,t,p.isTypeParameterDeclaration),s(e.questionToken,a,p.isToken),s(e.type,t,p.isTypeNode));case 177:return p.updateLiteralTypeNode(e,s(e.literal,t,p.isExpression));case 178:return p.updateObjectBindingPattern(e,n(e.elements,t,p.isBindingElement));case 179:return p.updateArrayBindingPattern(e,n(e.elements,t,p.isArrayBindingElement));case 180:return p.updateBindingElement(e,s(e.dotDotDotToken,a,p.isToken),s(e.propertyName,t,p.isPropertyName),s(e.name,t,p.isBindingName),s(e.initializer,t,p.isExpression));case 181:return p.updateArrayLiteral(e,n(e.elements,t,p.isExpression));case 182:return p.updateObjectLiteral(e,n(e.properties,t,p.isObjectLiteralElementLike));case 183:return p.updatePropertyAccess(e,s(e.expression,t,p.isExpression),s(e.name,t,p.isIdentifier));case 184:return p.updateElementAccess(e,s(e.expression,t,p.isExpression),s(e.argumentExpression,t,p.isExpression));case 185:return p.updateCall(e,s(e.expression,t,p.isExpression),n(e.typeArguments,t,p.isTypeNode),n(e.arguments,t,p.isExpression));case 186:return p.updateNew(e,s(e.expression,t,p.isExpression),n(e.typeArguments,t,p.isTypeNode),n(e.arguments,t,p.isExpression));case 187:return p.updateTaggedTemplate(e,s(e.tag,t,p.isExpression),s(e.template,t,p.isTemplateLiteral));case 188:return p.updateTypeAssertion(e,s(e.type,t,p.isTypeNode),s(e.expression,t,p.isExpression));case 189:return p.updateParen(e,s(e.expression,t,p.isExpression));case 190:return p.updateFunctionExpression(e,n(e.modifiers,t,p.isModifier),s(e.asteriskToken,a,p.isToken),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),_(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),l(e.body,t,r));case 191:return p.updateArrowFunction(e,n(e.modifiers,t,p.isModifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),_(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),s(e.equalsGreaterThanToken,t,p.isToken),l(e.body,t,r));case 192:return p.updateDelete(e,s(e.expression,t,p.isExpression));case 193:return p.updateTypeOf(e,s(e.expression,t,p.isExpression));case 194:return p.updateVoid(e,s(e.expression,t,p.isExpression));case 195:return p.updateAwait(e,s(e.expression,t,p.isExpression));case 196:return p.updatePrefix(e,s(e.operand,t,p.isExpression));case 197:return p.updatePostfix(e,s(e.operand,t,p.isExpression));case 198:return p.updateBinary(e,s(e.left,t,p.isExpression),s(e.right,t,p.isExpression),s(e.operatorToken,t,p.isToken));case 199:return p.updateConditional(e,s(e.condition,t,p.isExpression),s(e.questionToken,t,p.isToken),s(e.whenTrue,t,p.isExpression),s(e.colonToken,t,p.isToken),s(e.whenFalse,t,p.isExpression));case 200:return p.updateTemplateExpression(e,s(e.head,t,p.isTemplateHead),n(e.templateSpans,t,p.isTemplateSpan));case 201:return p.updateYield(e,s(e.asteriskToken,a,p.isToken),s(e.expression,t,p.isExpression));case 202:return p.updateSpread(e,s(e.expression,t,p.isExpression));case 203:return p.updateClassExpression(e,n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.heritageClauses,t,p.isHeritageClause),n(e.members,t,p.isClassElement));case 205:return p.updateExpressionWithTypeArguments(e,n(e.typeArguments,t,p.isTypeNode),s(e.expression,t,p.isExpression));case 206:return p.updateAsExpression(e,s(e.expression,t,p.isExpression),s(e.type,t,p.isTypeNode));case 207:return p.updateNonNullExpression(e,s(e.expression,t,p.isExpression));case 208:return p.updateMetaProperty(e,s(e.name,t,p.isIdentifier));case 209:return p.updateTemplateSpan(e,s(e.expression,t,p.isExpression),s(e.literal,t,p.isTemplateMiddleOrTemplateTail));case 211:return p.updateBlock(e,n(e.statements,t,p.isStatement));case 212:return p.updateVariableStatement(e,n(e.modifiers,t,p.isModifier),s(e.declarationList,t,p.isVariableDeclarationList));case 214:return p.updateStatement(e,s(e.expression,t,p.isExpression));case 215:return p.updateIf(e,s(e.expression,t,p.isExpression),s(e.thenStatement,t,p.isStatement,p.liftToBlock),s(e.elseStatement,t,p.isStatement,p.liftToBlock));case 216:return p.updateDo(e,s(e.statement,t,p.isStatement,p.liftToBlock),s(e.expression,t,p.isExpression));case 217:return p.updateWhile(e,s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 218:return p.updateFor(e,s(e.initializer,t,p.isForInitializer),s(e.condition,t,p.isExpression),s(e.incrementor,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 219:return p.updateForIn(e,s(e.initializer,t,p.isForInitializer),s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 220:return p.updateForOf(e,s(e.awaitModifier,t,p.isToken),s(e.initializer,t,p.isForInitializer),s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 221:return p.updateContinue(e,s(e.label,t,p.isIdentifier));case 222:return p.updateBreak(e,s(e.label,t,p.isIdentifier));case 223:return p.updateReturn(e,s(e.expression,t,p.isExpression));case 224:return p.updateWith(e,s(e.expression,t,p.isExpression),s(e.statement,t,p.isStatement,p.liftToBlock));case 225:return p.updateSwitch(e,s(e.expression,t,p.isExpression),s(e.caseBlock,t,p.isCaseBlock));case 226:return p.updateLabel(e,s(e.label,t,p.isIdentifier),s(e.statement,t,p.isStatement,p.liftToBlock));case 227:return p.updateThrow(e,s(e.expression,t,p.isExpression));case 228:return p.updateTry(e,s(e.tryBlock,t,p.isBlock),s(e.catchClause,t,p.isCatchClause),s(e.finallyBlock,t,p.isBlock));case 230:return p.updateVariableDeclaration(e,s(e.name,t,p.isBindingName),s(e.type,t,p.isTypeNode),s(e.initializer,t,p.isExpression));case 231:return p.updateVariableDeclarationList(e,n(e.declarations,t,p.isVariableDeclaration));case 232:return p.updateFunctionDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.asteriskToken,a,p.isToken),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),_(e.parameters,t,r,n),s(e.type,t,p.isTypeNode),l(e.body,t,r));case 233:return p.updateClassDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.heritageClauses,t,p.isHeritageClause),n(e.members,t,p.isClassElement));case 234:return p.updateInterfaceDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),n(e.heritageClauses,t,p.isHeritageClause),n(e.members,t,p.isTypeElement));case 235:return p.updateTypeAliasDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.typeParameters,t,p.isTypeParameterDeclaration),s(e.type,t,p.isTypeNode));case 236:return p.updateEnumDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),n(e.members,t,p.isEnumMember));case 237:return p.updateModuleDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),s(e.body,t,p.isModuleBody));case 238:return p.updateModuleBlock(e,n(e.statements,t,p.isStatement));case 239:return p.updateCaseBlock(e,n(e.clauses,t,p.isCaseOrDefaultClause));case 240:return p.updateNamespaceExportDeclaration(e,s(e.name,t,p.isIdentifier));case 241:return p.updateImportEqualsDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.name,t,p.isIdentifier),s(e.moduleReference,t,p.isModuleReference));case 242:return p.updateImportDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.importClause,t,p.isImportClause),s(e.moduleSpecifier,t,p.isExpression));case 243:return p.updateImportClause(e,s(e.name,t,p.isIdentifier),s(e.namedBindings,t,p.isNamedImportBindings));case 244:return p.updateNamespaceImport(e,s(e.name,t,p.isIdentifier));case 245:return p.updateNamedImports(e,n(e.elements,t,p.isImportSpecifier));case 246:return p.updateImportSpecifier(e,s(e.propertyName,t,p.isIdentifier),s(e.name,t,p.isIdentifier));case 247:return p.updateExportAssignment(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.expression,t,p.isExpression));case 248:return p.updateExportDeclaration(e,n(e.decorators,t,p.isDecorator),n(e.modifiers,t,p.isModifier),s(e.exportClause,t,p.isNamedExports),s(e.moduleSpecifier,t,p.isExpression));case 249:return p.updateNamedExports(e,n(e.elements,t,p.isExportSpecifier));case 250:return p.updateExportSpecifier(e,s(e.propertyName,t,p.isIdentifier),s(e.name,t,p.isIdentifier));case 252:return p.updateExternalModuleReference(e,s(e.expression,t,p.isExpression));case 253:return p.updateJsxElement(e,s(e.openingElement,t,p.isJsxOpeningElement),n(e.children,t,p.isJsxChild),s(e.closingElement,t,p.isJsxClosingElement));case 254:return p.updateJsxSelfClosingElement(e,s(e.tagName,t,p.isJsxTagNameExpression),s(e.attributes,t,p.isJsxAttributes));case 255:return p.updateJsxOpeningElement(e,s(e.tagName,t,p.isJsxTagNameExpression),s(e.attributes,t,p.isJsxAttributes));case 256:return p.updateJsxClosingElement(e,s(e.tagName,t,p.isJsxTagNameExpression));case 257:return p.updateJsxFragment(e,s(e.openingFragment,t,p.isJsxOpeningFragment),n(e.children,t,p.isJsxChild),s(e.closingFragment,t,p.isJsxClosingFragment));case 260:return p.updateJsxAttribute(e,s(e.name,t,p.isIdentifier),s(e.initializer,t,p.isStringLiteralOrJsxExpression));case 261:return p.updateJsxAttributes(e,n(e.properties,t,p.isJsxAttributeLike));case 262:return p.updateJsxSpreadAttribute(e,s(e.expression,t,p.isExpression));case 263:return p.updateJsxExpression(e,s(e.expression,t,p.isExpression));case 264:return p.updateCaseClause(e,s(e.expression,t,p.isExpression),n(e.statements,t,p.isStatement));case 265:return p.updateDefaultClause(e,n(e.statements,t,p.isStatement));case 266:return p.updateHeritageClause(e,n(e.types,t,p.isExpressionWithTypeArguments));case 267:return p.updateCatchClause(e,s(e.variableDeclaration,t,p.isVariableDeclaration),s(e.block,t,p.isBlock));case 268:return p.updatePropertyAssignment(e,s(e.name,t,p.isPropertyName),s(e.initializer,t,p.isExpression));case 269:return p.updateShorthandPropertyAssignment(e,s(e.name,t,p.isIdentifier),s(e.objectAssignmentInitializer,t,p.isExpression));case 270:return p.updateSpreadAssignment(e,s(e.expression,t,p.isExpression));case 271:return p.updateEnumMember(e,s(e.name,t,p.isPropertyName),s(e.initializer,t,p.isExpression));case 272:return p.updateSourceFileNode(e,u(e.statements,t,r));case 295:return p.updatePartiallyEmittedExpression(e,s(e.expression,t,p.isExpression));case 296:return p.updateCommaList(e,n(e.elements,t,p.isExpression));default:return e}}}}(ts||(ts={})),function(c){function u(e,t,r){return e?t(r,e):r}function _(e,t,r){return e?t(r,e):r}function r(e,t,r,n){if(void 0===e)return t;var a=n?_:c.reduceLeft,i=n||r,o=e.kind;if(0<o&&o<=144)return t;if(160<=o&&o<=177)return t;var s=t;switch(e.kind){case 210:case 213:case 204:case 229:case 294:break;case 145:s=u(e.left,r,s),s=u(e.right,r,s);break;case 146:s=u(e.expression,r,s);break;case 148:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=u(e.type,r,s),s=u(e.initializer,r,s);break;case 149:s=u(e.expression,r,s);break;case 150:s=a(e.modifiers,i,s),s=u(e.name,r,s),s=u(e.questionToken,r,s),s=u(e.type,r,s),s=u(e.initializer,r,s);break;case 151:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=u(e.type,r,s),s=u(e.initializer,r,s);break;case 153:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=u(e.type,r,s),s=u(e.body,r,s);break;case 154:s=a(e.modifiers,i,s),s=a(e.parameters,i,s),s=u(e.body,r,s);break;case 155:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.parameters,i,s),s=u(e.type,r,s),s=u(e.body,r,s);break;case 156:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.parameters,i,s),s=u(e.body,r,s);break;case 178:case 179:s=a(e.elements,i,s);break;case 180:s=u(e.propertyName,r,s),s=u(e.name,r,s),s=u(e.initializer,r,s);break;case 181:s=a(e.elements,i,s);break;case 182:s=a(e.properties,i,s);break;case 183:s=u(e.expression,r,s),s=u(e.name,r,s);break;case 184:s=u(e.expression,r,s),s=u(e.argumentExpression,r,s);break;case 185:case 186:s=u(e.expression,r,s),s=a(e.typeArguments,i,s),s=a(e.arguments,i,s);break;case 187:s=u(e.tag,r,s),s=u(e.template,r,s);break;case 188:s=u(e.type,r,s),s=u(e.expression,r,s);break;case 190:s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=u(e.type,r,s),s=u(e.body,r,s);break;case 191:s=a(e.modifiers,i,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=u(e.type,r,s),s=u(e.body,r,s);break;case 189:case 192:case 193:case 194:case 195:case 201:case 202:case 207:s=u(e.expression,r,s);break;case 196:case 197:s=u(e.operand,r,s);break;case 198:s=u(e.left,r,s),s=u(e.right,r,s);break;case 199:s=u(e.condition,r,s),s=u(e.whenTrue,r,s),s=u(e.whenFalse,r,s);break;case 200:s=u(e.head,r,s),s=a(e.templateSpans,i,s);break;case 203:s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.typeParameters,i,s),s=a(e.heritageClauses,i,s),s=a(e.members,i,s);break;case 205:s=u(e.expression,r,s),s=a(e.typeArguments,i,s);break;case 206:s=u(e.expression,r,s),s=u(e.type,r,s);break;case 209:s=u(e.expression,r,s),s=u(e.literal,r,s);break;case 211:s=a(e.statements,i,s);break;case 212:s=a(e.modifiers,i,s),s=u(e.declarationList,r,s);break;case 214:s=u(e.expression,r,s);break;case 215:s=u(e.expression,r,s),s=u(e.thenStatement,r,s),s=u(e.elseStatement,r,s);break;case 216:s=u(e.statement,r,s),s=u(e.expression,r,s);break;case 217:case 224:s=u(e.expression,r,s),s=u(e.statement,r,s);break;case 218:s=u(e.initializer,r,s),s=u(e.condition,r,s),s=u(e.incrementor,r,s),s=u(e.statement,r,s);break;case 219:case 220:s=u(e.initializer,r,s),s=u(e.expression,r,s),s=u(e.statement,r,s);break;case 223:case 227:s=u(e.expression,r,s);break;case 225:s=u(e.expression,r,s),s=u(e.caseBlock,r,s);break;case 226:s=u(e.label,r,s),s=u(e.statement,r,s);break;case 228:s=u(e.tryBlock,r,s),s=u(e.catchClause,r,s),s=u(e.finallyBlock,r,s);break;case 230:s=u(e.name,r,s),s=u(e.type,r,s),s=u(e.initializer,r,s);break;case 231:s=a(e.declarations,i,s);break;case 232:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=u(e.type,r,s),s=u(e.body,r,s);break;case 233:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.typeParameters,i,s),s=a(e.heritageClauses,i,s),s=a(e.members,i,s);break;case 236:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=a(e.members,i,s);break;case 237:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=u(e.body,r,s);break;case 238:s=a(e.statements,i,s);break;case 239:s=a(e.clauses,i,s);break;case 241:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.name,r,s),s=u(e.moduleReference,r,s);break;case 242:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=u(e.importClause,r,s),s=u(e.moduleSpecifier,r,s);break;case 243:s=u(e.name,r,s),s=u(e.namedBindings,r,s);break;case 244:s=u(e.name,r,s);break;case 245:case 249:s=a(e.elements,i,s);break;case 246:case 250:s=u(e.propertyName,r,s),s=u(e.name,r,s);break;case 247:s=c.reduceLeft(e.decorators,r,s),s=c.reduceLeft(e.modifiers,r,s),s=u(e.expression,r,s);break;case 248:s=c.reduceLeft(e.decorators,r,s),s=c.reduceLeft(e.modifiers,r,s),s=u(e.exportClause,r,s),s=u(e.moduleSpecifier,r,s);break;case 252:s=u(e.expression,r,s);break;case 253:s=u(e.openingElement,r,s),s=c.reduceLeft(e.children,r,s),s=u(e.closingElement,r,s);break;case 257:s=u(e.openingFragment,r,s),s=c.reduceLeft(e.children,r,s),s=u(e.closingFragment,r,s);break;case 254:case 255:s=u(e.tagName,r,s),s=u(e.attributes,r,s);break;case 261:s=a(e.properties,i,s);break;case 256:s=u(e.tagName,r,s);break;case 260:s=u(e.name,r,s),s=u(e.initializer,r,s);break;case 262:case 263:s=u(e.expression,r,s);break;case 264:s=u(e.expression,r,s);case 265:s=a(e.statements,i,s);break;case 266:s=a(e.types,i,s);break;case 267:s=u(e.variableDeclaration,r,s),s=u(e.block,r,s);break;case 268:s=u(e.name,r,s),s=u(e.initializer,r,s);break;case 269:s=u(e.name,r,s),s=u(e.objectAssignmentInitializer,r,s);break;case 270:s=u(e.expression,r,s);break;case 271:s=u(e.name,r,s),s=u(e.initializer,r,s);break;case 272:s=a(e.statements,i,s);break;case 295:s=u(e.expression,r,s);break;case 296:s=a(e.elements,i,s)}return s}function o(e){if(void 0===e)return 0;if(536870912&e.transformFlags)return e.transformFlags&~c.getTransformFlagsSubtreeExclusions(e.kind);var t=function(e){if(c.hasModifier(e,2)||c.isTypeNode(e)&&205!==e.kind)return 0;return r(e,0,n,a)}(e);return c.computeTransformFlagsForNode(e,t)}function n(e,t){return e|o(t)}function a(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n<a.length;n++){var i=a[n];t|=o(i),r|=-536870913&i.transformFlags}return e.transformFlags=536870912|r,t}(t)}var t,i,s;c.reduceEachChild=r,c.mergeLexicalEnvironment=function(e,t){return c.some(t)?c.isNodeArray(e)?c.setTextRange(c.createNodeArray(c.concatenate(e,t)),e):c.addRange(e,t):e},c.liftToBlock=function(e){return t.assert(c.every(e,c.isStatement),"Cannot lift nodes to a Block."),c.singleOrUndefined(e)||c.createBlock(e)},c.aggregateTransformFlags=function(e){return o(e),e},i=t=c.Debug||(c.Debug={}),s=!1,i.failBadSyntaxKind=i.shouldAssert(1)?function(e,t){return i.fail((t||"Unexpected node.")+"\r\nNode "+c.formatSyntaxKind(e.kind)+" was unexpected.",i.failBadSyntaxKind)}:c.noop,i.assertEachNode=i.shouldAssert(1)?function(e,t,r){return i.assert(void 0===t||c.every(e,t),r||"Unexpected node.",function(){return"Node array did not pass test '"+i.getFunctionName(t)+"'."},i.assertEachNode)}:c.noop,i.assertNode=i.shouldAssert(1)?function(e,t,r){return i.assert(void 0===t||t(e),r||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" did not pass test '"+i.getFunctionName(t)+"'."},i.assertNode)}:c.noop,i.assertOptionalNode=i.shouldAssert(1)?function(e,t,r){return i.assert(void 0===t||void 0===e||t(e),r||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" did not pass test '"+i.getFunctionName(t)+"'."},i.assertOptionalNode)}:c.noop,i.assertOptionalToken=i.shouldAssert(1)?function(e,t,r){return i.assert(void 0===t||void 0===e||e.kind===t,r||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" was not a '"+c.formatSyntaxKind(t)+"' token."},i.assertOptionalToken)}:c.noop,i.assertMissingNode=i.shouldAssert(1)?function(e,t){return i.assert(void 0===e,t||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" was unexpected'."},i.assertMissingNode)}:c.noop,i.enableDebugInfo=function(){if(!s){Object.defineProperties(c.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return c.formatSymbolFlags(this.flags)}}}),Object.defineProperties(c.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return c.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return 65536&this.flags?c.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var e=0,t=[c.objectAllocator.getNodeConstructor(),c.objectAllocator.getIdentifierConstructor(),c.objectAllocator.getTokenConstructor(),c.objectAllocator.getSourceFileConstructor()];e<t.length;e++){var r=t[e];r.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(r.prototype,{__debugKind:{get:function(){return c.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return c.formatModifierFlags(c.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return c.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return c.formatEmitFlags(c.getEmitFlags(this))}},__debugGetText:{value:function(e){if(c.nodeIsSynthesized(this))return"";var t=c.getParseTreeNode(this),r=t&&c.getSourceFileOfNode(t);return r?c.getSourceTextOfNodeFromSourceFile(r,t,e):""}}})}s=!0}}}(ts||(ts={})),function(S){function C(e){return(e=S.getOriginalNode(e))?S.getNodeId(e):0}function t(e){if(!e.importClause||!e.importClause.namedBindings)return 0;var t=e.importClause.namedBindings;return t&&S.isNamedImports(t)?t.elements.length:0}function r(e){return!!e&&(!!S.isNamedImports(e)&&S.some(e.elements,n))}function n(e){return e.propertyName&&"default"===e.propertyName.escapedText}function T(e){return!!S.getNamespaceDeclarationNode(e)||1<t(e)&&r(e.importClause.namedBindings)}function E(e){return S.isDefaultImport(e)||1===t(e)&&r(e.importClause.namedBindings)}function N(e,t,r){if(S.isBindingPattern(e.name))for(var n=0,a=e.name.elements;n<a.length;n++){var i=a[n];S.isOmittedExpression(i)||(r=N(i,t,r))}else if(!S.isGeneratedIdentifier(e.name)){var o=S.idText(e.name);t.get(o)||(t.set(o,!0),r=S.append(r,e.name))}return r}function A(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}S.getOriginalNodeId=C,S.getImportNeedsImportStarHelper=T,S.getImportNeedsImportDefaultHelper=E,S.collectExternalModuleInfo=function(e,t,r){for(var n,a,i=[],o=S.createMultiMap(),s=[],c=S.createMap(),u=!1,_=!1,l=!1,d=0,p=e.statements;d<p.length;d++){var f=p[d];switch(f.kind){case 242:i.push(f),l=T(f)||E(f);break;case 241:252===f.moduleReference.kind&&i.push(f);break;case 248:if(f.moduleSpecifier)f.exportClause?i.push(f):(i.push(f),_=!0);else for(var m=0,g=f.exportClause.elements;m<g.length;m++){var y=g[m];if(!c.get(S.idText(y.name))){var v=y.propertyName||y.name;o.add(S.idText(v),y),(x=t.getReferencedImportDeclaration(v)||t.getReferencedValueDeclaration(v))&&A(s,C(x),y.name),c.set(S.idText(y.name),!0),n=S.append(n,y.name)}}break;case 247:f.isExportEquals&&!a&&(a=f);break;case 212:if(S.hasModifier(f,1))for(var h=0,b=f.declarationList.declarations;h<b.length;h++){var x;n=N(x=b[h],c,n)}break;case 232:S.hasModifier(f,1)&&(S.hasModifier(f,512)?u||(A(s,C(f),S.getDeclarationName(f)),u=!0):(v=f.name,c.get(S.idText(v))||(A(s,C(f),v),c.set(S.idText(v),!0),n=S.append(n,v))));break;case 233:S.hasModifier(f,1)&&(S.hasModifier(f,512)?u||(A(s,C(f),S.getDeclarationName(f)),u=!0):(v=f.name)&&!c.get(S.idText(v))&&(A(s,C(f),v),c.set(S.idText(v),!0),n=S.append(n,v)))}}var k=S.getOrCreateExternalHelpersModuleNameIfNeeded(e,r,_,l),D=k&&S.createImportDeclaration(void 0,void 0,S.createImportClause(void 0,S.createNamespaceImport(k)),S.createLiteral(S.externalHelpersModuleNameText));return D&&(S.addEmitFlags(D,67108864),i.unshift(D)),{externalImports:i,exportSpecifiers:o,exportEquals:a,hasExportStarsToExportValues:_,exportedBindings:s,exportedNames:n,externalHelpersImportDeclaration:D}},S.isSimpleCopiableExpression=function(e){return S.isStringLiteralLike(e)||8===e.kind||S.isKeyword(e.kind)||S.isIdentifier(e)}}(ts||(ts={})),function(S){var e;function C(e,t){var r=S.getTargetOfBindingOrAssignmentElement(e);return S.isBindingOrAssignmentPattern(r)?function(e,t){for(var r=S.getElementsOfBindingOrAssignmentPattern(e),n=0,a=r;n<a.length;n++){var i=a[n];if(C(i,t))return!0}return!1}(r,t):!!S.isIdentifier(r)&&r.escapedText===t}function T(e,t,r,n,a){if(!a){var i=S.visitNode(S.getInitializerOfBindingOrAssignmentElement(t),e.visitor,S.isExpression);i?r=r?(s=i,o=E(e,o=r,!0,n),S.createConditional(S.createTypeCheck(o,"undefined"),s,o)):i:r||(r=S.createVoidZero())}var o,s,c=S.getTargetOfBindingOrAssignmentElement(t);S.isObjectBindingOrAssignmentPattern(c)?function(e,t,r,n,a){var i,o,s=S.getElementsOfBindingOrAssignmentPattern(r),c=s.length;if(1!==c){var u=!S.isDeclarationBindingElement(t)||0!==c;n=E(e,n,u,a)}for(var _=0;_<c;_++){var l=s[_];if(S.getRestIndicatorOfBindingOrAssignmentElement(l)){if(_===c-1){i&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(i),n,a,r),i=void 0);var d=m(e.context,n,s,o,r);T(e,l,d,l)}}else{var p=S.getPropertyNameOfBindingOrAssignmentElement(l);if(!(1<=e.level)||1572864&l.transformFlags||1572864&S.getTargetOfBindingOrAssignmentElement(l).transformFlags||S.isComputedPropertyName(p)){i&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(i),n,a,r),i=void 0);var d=f(e,n,p);S.isComputedPropertyName(p)&&(o=S.append(o,d.argumentExpression)),T(e,l,d,l)}else i=S.append(i,l)}}i&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(i),n,a,r)}(e,t,c,r,n):S.isArrayBindingOrAssignmentPattern(c)?function(e,t,r,n,a){var i,o,s=S.getElementsOfBindingOrAssignmentPattern(r),c=s.length;if(e.level<1&&e.downlevelIteration)n=E(e,S.createReadHelper(e.context,n,0<c&&S.getRestIndicatorOfBindingOrAssignmentElement(s[c-1])?void 0:c,a),!1,a);else if(1!==c&&(e.level<1||0===c)||S.every(s,S.isOmittedExpression)){var u=!S.isDeclarationBindingElement(t)||0!==c;n=E(e,n,u,a)}for(var _=0;_<c;_++){var l=s[_];if(1<=e.level)if(1048576&l.transformFlags){var d=S.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(d),o=S.append(o,[d,l]),i=S.append(i,e.createArrayBindingOrAssignmentElement(d))}else i=S.append(i,l);else{if(S.isOmittedExpression(l))continue;if(S.getRestIndicatorOfBindingOrAssignmentElement(l)){if(_===c-1){var p=S.createArraySlice(n,_);T(e,l,p,l)}}else{var p=S.createElementAccess(n,_);T(e,l,p,l)}}}i&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(i),n,a,r);if(o)for(var f=0,m=o;f<m.length;f++){var g=m[f],y=g[0],l=g[1];T(e,l,y,l)}}(e,t,c,r,n):e.emitBindingOrAssignment(c,r,n,t)}function f(e,t,r){if(S.isComputedPropertyName(r)){var n=E(e,S.visitNode(r.expression,e.visitor),!1,r);return S.createElementAccess(t,n)}if(S.isStringOrNumericLiteral(r))return(n=S.getSynthesizedClone(r)).text=n.text,S.createElementAccess(t,n);var a=S.createIdentifier(S.idText(r));return S.createPropertyAccess(t,a)}function E(e,t,r,n){if(S.isIdentifier(t)&&r)return t;var a=S.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(a),e.emitExpression(S.setTextRange(S.createAssignment(a,t),n))):e.emitBindingOrAssignment(a,t,n,void 0),a}function N(e){return S.Debug.assertEachNode(e,S.isArrayBindingElement),S.createArrayBindingPattern(e)}function l(e){return S.createArrayLiteral(S.map(e,S.convertToArrayAssignmentElement))}function A(e){return S.Debug.assertEachNode(e,S.isBindingElement),S.createObjectBindingPattern(e)}function d(e){return S.createObjectLiteral(S.map(e,S.convertToObjectAssignmentElement))}function P(e){return S.createBindingElement(void 0,void 0,e)}function p(e){return e}(e=S.FlattenLevel||(S.FlattenLevel={}))[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",S.flattenDestructuringAssignment=function(e,i,t,r,n,o){var a,s,c=e;if(S.isDestructuringAssignment(e))for(a=e.right;S.isEmptyArrayLiteral(e.left)||S.isEmptyObjectLiteral(e.left);){if(!S.isDestructuringAssignment(a))return a;c=e=a,a=e.right}var u={context:t,level:r,downlevelIteration:t.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,t,r,n){S.Debug.assertNode(e,o?S.isIdentifier:S.isExpression);var a=o?o(e,t,r):S.setTextRange(S.createAssignment(S.visitNode(e,i,S.isExpression),t),r);a.original=n,_(a)},createArrayBindingOrAssignmentPattern:l,createObjectBindingOrAssignmentPattern:d,createArrayBindingOrAssignmentElement:p,visitor:i};if(a&&(a=S.visitNode(a,i,S.isExpression),S.isIdentifier(a)&&C(e,a.escapedText)?a=E(u,a,!1,c):n?a=E(u,a,!0,c):S.nodeIsSynthesized(e)&&(c=a)),T(u,e,a,c,S.isDestructuringAssignment(e)),a&&n){if(!S.some(s))return a;s.push(a)}return S.aggregateTransformFlags(S.inlineExpressions(s))||S.createOmittedExpression();function _(e){S.setEmitFlags(e,64),S.aggregateTransformFlags(e),s=S.append(s,e)}},S.flattenDestructuringBinding=function(e,t,r,n,a,i,o){var s,c=[],u=[],_={context:r,level:n,downlevelIteration:r.getCompilerOptions().downlevelIteration,hoistTempVariables:i,emitExpression:function(e){s=S.append(s,e)},emitBindingOrAssignment:D,createArrayBindingOrAssignmentPattern:N,createObjectBindingOrAssignmentPattern:A,createArrayBindingOrAssignmentElement:P,visitor:t};if(S.isVariableDeclaration(e)){var l=S.getInitializerOfBindingOrAssignmentElement(e);l&&S.isIdentifier(l)&&C(e,l.escapedText)&&(l=E(_,l,!1,l),e=S.updateVariableDeclaration(e,e.name,e.type,l))}if(T(_,e,a,e,o),s){var d=S.createTempVariable(void 0);if(i)D(d,h=S.inlineExpressions(s),s=void 0,void 0);else{r.hoistVariableDeclaration(d);var p=S.lastOrUndefined(c);p.pendingExpressions=S.append(p.pendingExpressions,S.createAssignment(d,p.value)),S.addRange(p.pendingExpressions,s),p.value=d}}for(var f=0,m=c;f<m.length;f++){var g=m[f],y=g.pendingExpressions,v=g.name,h=g.value,b=g.location,x=g.original,k=S.createVariableDeclaration(v,void 0,y?S.inlineExpressions(S.append(y,h)):h);k.original=x,S.setTextRange(k,b),S.isIdentifier(v)&&S.setEmitFlags(k,64),S.aggregateTransformFlags(k),u.push(k)}return u;function D(e,t,r,n){S.Debug.assertNode(e,S.isBindingName),s&&(t=S.inlineExpressions(S.append(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:n})}};var _={name:"typescript:rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n                        t[p[i]] = s[p[i]];\n                return t;\n            };'};function m(e,t,r,n,a){e.requestEmitHelper(_);for(var i=[],o=0,s=0;s<r.length-1;s++){var c=S.getPropertyNameOfBindingOrAssignmentElement(r[s]);if(c)if(S.isComputedPropertyName(c)){var u=n[o];o++,i.push(S.createConditional(S.createTypeCheck(u,"symbol"),u,S.createAdd(u,S.createLiteral(""))))}else i.push(S.createLiteral(c))}return S.createCall(S.getHelperName("__rest"),void 0,[t,S.setTextRange(S.createArrayLiteral(i),a)])}}(ts||(ts={})),function(ze){var e,t,r,n,Je=!1;function je(e,t,r,n,a,i){var o=[];return o.push(ze.createArrayLiteral(t,!0)),o.push(r),n&&(o.push(n),a&&o.push(a)),e.requestEmitHelper(s),ze.setTextRange(ze.createCall(ze.getHelperName("__decorate"),void 0,o),i)}(t=e||(e={}))[t.ClassAliases=1]="ClassAliases",t[t.NamespaceExports=2]="NamespaceExports",t[t.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers",(n=r||(r={}))[n.None=0]="None",n[n.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",n[n.HasConstructorDecorators=2]="HasConstructorDecorators",n[n.HasMemberDecorators=4]="HasMemberDecorators",n[n.IsExportOfNamespace=8]="IsExportOfNamespace",n[n.IsNamedExternalExport=16]="IsNamedExternalExport",n[n.IsDefaultExternalExport=32]="IsDefaultExternalExport",n[n.IsDerivedClass=64]="IsDerivedClass",n[n.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",n[n.HasAnyDecorators=6]="HasAnyDecorators",n[n.NeedsName=5]="NeedsName",n[n.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",n[n.IsExported=56]="IsExported",ze.transformTypeScript=function(k){var D,p,f,m,d,_,S,s,C,g=k.startLexicalEnvironment,c=k.resumeLexicalEnvironment,y=k.endLexicalEnvironment,T=k.hoistVariableDeclaration,E=k.getEmitResolver(),v=k.getCompilerOptions(),o=ze.getStrictOptionValue(v,"strictNullChecks"),N=ze.getEmitScriptTarget(v),h=ze.getEmitModuleKind(v),u=k.onEmitNode,r=k.onSubstituteNode;return k.onEmitNode=function(e,t,r){var n,a,i=s,o=D;ze.isSourceFile(t)&&(D=t),2&_&&(n=t,237===ze.getOriginalNode(n).kind)&&(s|=2),8&_&&(a=t,236===ze.getOriginalNode(a).kind)&&(s|=8),u(e,t,r),s=i,D=o},k.onSubstituteNode=function(e,t){return t=r(e,t),1===e?function(e){switch(e.kind){case 71:return function(e){if(1&_&&16777216&E.getNodeCheckFlags(e)){var t=E.getReferencedValueDeclaration(e);if(t){var r=S[t.id];if(r){var n=ze.getSynthesizedClone(r);return ze.setSourceMapRange(n,e),ze.setCommentRange(n,e),n}}}}(t=e)||Re(t)||t;case 183:case 184:return Be(e)}var t;return e}(t):ze.isShorthandPropertyAssignment(t)?function(e){if(2&_){var t=e.name,r=Re(t);if(r){if(e.objectAssignmentInitializer){var n=ze.createAssignment(r,e.objectAssignmentInitializer);return ze.setTextRange(ze.createPropertyAssignment(t,n),e)}return ze.setTextRange(ze.createPropertyAssignment(t,r),e)}}return e}(t):t},k.enableSubstitution(183),k.enableSubstitution(184),function(e){if(e.isDeclarationFile)return e;var t=b(D=e,I);return ze.addEmitHelpers(t,k.readEmitHelpers()),D=void 0,t};function b(e,t){var r=m,n=d;!function(e){switch(e.kind){case 272:case 239:case 238:case 211:m=e,d=void 0;break;case 233:case 232:if(ze.hasModifier(e,2))break;e.name?ye(e):ze.Debug.assert(233===e.kind||ze.hasModifier(e,512))}}(e);var a=t(e);return m!==r&&(d=n),m=r,a}function A(e){return b(e,t)}function t(e){return 1&e.transformFlags?w(e):2&e.transformFlags?ze.visitEachChild(e,A,k):e}function n(e){return b(e,a)}function a(e){switch(e.kind){case 242:case 241:case 247:case 248:return function(e){if(ze.getParseTreeNode(e)!==e)return 2&e.transformFlags?ze.visitEachChild(e,A,k):e;switch(e.kind){case 242:return function(e){if(!e.importClause)return e;var t=ze.visitNode(e.importClause,xe,ze.isImportClause);return t?ze.updateImportDeclaration(e,void 0,void 0,t,e.moduleSpecifier):void 0}(e);case 241:return Te(e);case 247:return t=e,E.isValueAliasDeclaration(t)?ze.visitEachChild(t,A,k):void 0;case 248:return function(e){if(!e.exportClause)return v.isolatedModules||E.moduleExportsSomeValue(e.moduleSpecifier)?e:void 0;if(E.isValueAliasDeclaration(e)){var t=ze.visitNode(e.exportClause,Se,ze.isNamedExports);return t?ze.updateExportDeclaration(e,void 0,void 0,t,e.moduleSpecifier):void 0}}(e);default:ze.Debug.fail("Unhandled ellided statement")}var t}(e);default:return t(e)}}function x(e){return b(e,i)}function i(e){if(248!==e.kind&&242!==e.kind&&243!==e.kind&&(241!==e.kind||252!==e.moduleReference.kind))return 1&e.transformFlags||ze.hasModifier(e,1)?w(e):2&e.transformFlags?ze.visitEachChild(e,A,k):e}function l(e){return b(e,P)}function P(e){switch(e.kind){case 154:return;case 151:case 159:case 155:case 156:case 153:return t(e);case 210:return e;default:return void ze.Debug.failBadSyntaxKind(e)}}function F(e){if(!(2270&ze.modifierToFlag(e.kind)||p&&84===e.kind))return e}function w(e){if(ze.hasModifier(e,2)&&ze.isStatement(e))return ze.createNotEmittedStatement(e);switch(e.kind){case 84:case 79:return p?void 0:e;case 114:case 112:case 113:case 117:case 76:case 124:case 132:case 166:case 167:case 165:case 160:case 147:case 119:case 122:case 137:case 134:case 131:case 105:case 138:case 163:case 162:case 164:case 161:case 168:case 169:case 170:case 172:case 173:case 174:case 175:case 176:case 177:case 159:case 149:case 235:return;case 151:return void((n=_e((r=e).name,ze.some(r.decorators)||!!r.initializer,!0))&&!ce(n)&&(C||(C=[])).push(n));case 240:return;case 154:return function(e){if(de(e))return ze.updateConstructor(e,ze.visitNodes(e.decorators,A,ze.isDecorator),ze.visitNodes(e.modifiers,A,ze.isModifier),ze.visitParameterList(e.parameters,A,k),ze.visitFunctionBody(e.body,A,k))}(e);case 234:return ze.createNotEmittedStatement(e);case 233:return function(e){var t=C;C=void 0;var r=B(e,!0),n=function(e,t){var r=0;ze.some(t)&&(r|=1);var n,a=ze.getClassExtendsHeritageClauseElement(e);return a&&95!==ze.skipOuterExpressions(a.expression).kind&&(r|=64),function(e){if(e.decorators&&0<e.decorators.length)return!0;var t=ze.getFirstConstructorWithBody(e);return!!t&&ze.forEach(t.parameters,O)}(e)&&(r|=2),ze.childIsDecorated(e)&&(r|=4),Ee(e)?r|=8:Ne(n=e)&&ze.hasModifier(n,512)?r|=32:Ae(e)&&(r|=16),N<=1&&7&r&&(r|=128),r}(e,r);128&n&&k.startLexicalEnvironment();var a,i,o,s,c,u,_,l,d,p=e.name||(5&n?ze.getGeneratedNameForNode(e):void 0),f=2&n?function(e,t,r){var n=ze.moveRangePastDecorators(e),a=function(e){if(8388608&E.getNodeCheckFlags(e)){Le();var t=ze.createUniqueName(e.name&&!ze.isGeneratedIdentifier(e.name)?ze.idText(e.name):"default");return S[ze.getOriginalNodeId(e)]=t,T(t),t}}(e),i=ze.getLocalName(e,!1,!0),o=ze.visitNodes(e.heritageClauses,A,ze.isHeritageClause),s=M(e,0!=(64&r)),c=ze.createClassExpression(void 0,t,void 0,o,s);ze.setOriginalNode(c,e),ze.setTextRange(c,n);var u=ze.createVariableStatement(void 0,ze.createVariableDeclarationList([ze.createVariableDeclaration(i,void 0,a?ze.createAssignment(a,c):c)],1));return ze.setOriginalNode(u,e),ze.setTextRange(u,n),ze.setCommentRange(u,e),u}(e,p,n):(a=e,i=p,s=128&(o=n)?void 0:ze.visitNodes(a.modifiers,F,ze.isModifier),c=ze.createClassDeclaration(void 0,s,i,void 0,ze.visitNodes(a.heritageClauses,A,ze.isHeritageClause),M(a,0!=(64&o))),u=ze.getEmitFlags(a),1&o&&(u|=32),ze.setTextRange(c,a),ze.setOriginalNode(c,a),ze.setEmitFlags(c,u),c),m=[f];if(ze.some(C)&&m.push(ze.createStatement(ze.inlineExpressions(C))),C=t,1&n&&K(m,r,128&n?ze.getInternalName(e):ze.getLocalName(e)),X(m,e,!1),X(m,e,!0),_=m,(d=function(e){var t=function(e){var t=e.decorators,r=W(ze.getFirstConstructorWithBody(e));if(t||r)return{decorators:t,parameters:r}}(e),r=G(e,e,t);if(r){var n=S&&S[ze.getOriginalNodeId(e)],a=ze.getLocalName(e,!1,!0),i=je(k,r,a),o=ze.createAssignment(a,n?ze.createAssignment(n,i):i);return ze.setEmitFlags(o,1536),ze.setSourceMapRange(o,ze.moveRangePastDecorators(e)),o}}(l=e))&&_.push(ze.setOriginalNode(ze.createStatement(d),l)),128&n){var g=ze.createTokenRange(ze.skipTrivia(D.text,e.members.end),18),y=ze.getInternalName(e),v=ze.createPartiallyEmittedExpression(y);v.end=g.end,ze.setEmitFlags(v,1536);var h=ze.createReturn(v);h.pos=g.pos,ze.setEmitFlags(h,1920),m.push(h),ze.addRange(m,k.endLexicalEnvironment());var b=ze.createImmediatelyInvokedArrowFunction(m);ze.setEmitFlags(b,33554432);var x=ze.createVariableStatement(void 0,ze.createVariableDeclarationList([ze.createVariableDeclaration(ze.getLocalName(e,!1,!1),void 0,b)]));ze.setOriginalNode(x,e),ze.setCommentRange(x,e),ze.setSourceMapRange(x,ze.moveRangePastDecorators(e)),ze.startOnNewLine(x),m=[x]}return 8&n?Fe(m,e):(128&n||2&n)&&(32&n?m.push(ze.createExportDefault(ze.getLocalName(e,!1,!0))):16&n&&m.push(ze.createExternalModuleExport(ze.getLocalName(e,!1,!0)))),1<m.length&&(m.push(ze.createEndOfDeclarationMarker(e)),ze.setEmitFlags(f,4194304|ze.getEmitFlags(f))),ze.singleOrMany(m)}(e);case 203:return function(e){var t=C;C=void 0;var r=B(e,!0),n=ze.visitNodes(e.heritageClauses,A,ze.isHeritageClause),a=M(e,ze.some(n,function(e){return 85===e.token})),i=ze.createClassExpression(void 0,e.name,void 0,n,a);if(ze.setOriginalNode(i,e),ze.setTextRange(i,e),ze.some(r)||ze.some(C)){var o=[],s=8388608&E.getNodeCheckFlags(e),c=ze.createTempVariable(T,!!s);if(s){Le();var u=ze.getSynthesizedClone(c);u.autoGenerateFlags&=-17,S[ze.getOriginalNodeId(e)]=u}return ze.setEmitFlags(i,65536|ze.getEmitFlags(i)),o.push(ze.startOnNewLine(ze.createAssignment(c,i))),ze.addRange(o,ze.map(C,ze.startOnNewLine)),C=t,ze.addRange(o,function(e,t){for(var r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=U(i,t);ze.startOnNewLine(o),ze.setSourceMapRange(o,ze.moveRangePastModifiers(i)),ze.setCommentRange(o,i),r.push(o)}return r}(r,c)),o.push(ze.startOnNewLine(c)),ze.inlineExpressions(o)}return C=t,i}(e);case 266:return function(e){if(85===e.token){var t=ze.visitNodes(e.types,A,ze.isExpressionWithTypeArguments,0,1);return ze.setTextRange(ze.createHeritageClause(85,t),e)}}(e);case 205:return d=e,ze.updateExpressionWithTypeArguments(d,void 0,ze.visitNode(d.expression,A,ze.isLeftHandSideExpression));case 153:return function(e){if(de(e)){var t=ze.updateMethod(e,void 0,ze.visitNodes(e.modifiers,F,ze.isModifier),e.asteriskToken,le(e),void 0,void 0,ze.visitParameterList(e.parameters,A,k),void 0,ze.visitFunctionBody(e.body,A,k));return t!==e&&(ze.setCommentRange(t,e),ze.setSourceMapRange(t,ze.moveRangePastDecorators(e))),t}}(e);case 155:return function(e){if(pe(e)){var t=ze.updateGetAccessor(e,void 0,ze.visitNodes(e.modifiers,F,ze.isModifier),le(e),ze.visitParameterList(e.parameters,A,k),void 0,ze.visitFunctionBody(e.body,A,k)||ze.createBlock([]));return t!==e&&(ze.setCommentRange(t,e),ze.setSourceMapRange(t,ze.moveRangePastDecorators(e))),t}}(e);case 156:return function(e){if(pe(e)){var t=ze.updateSetAccessor(e,void 0,ze.visitNodes(e.modifiers,F,ze.isModifier),le(e),ze.visitParameterList(e.parameters,A,k),ze.visitFunctionBody(e.body,A,k)||ze.createBlock([]));return t!==e&&(ze.setCommentRange(t,e),ze.setSourceMapRange(t,ze.moveRangePastDecorators(e))),t}}(e);case 232:return function(e){if(!de(e))return ze.createNotEmittedStatement(e);var t=ze.updateFunctionDeclaration(e,void 0,ze.visitNodes(e.modifiers,F,ze.isModifier),e.asteriskToken,e.name,void 0,ze.visitParameterList(e.parameters,A,k),void 0,ze.visitFunctionBody(e.body,A,k)||ze.createBlock([]));if(Ee(e)){var r=[t];return Fe(r,e),r}return t}(e);case 190:return de(t=e)?ze.updateFunctionExpression(t,ze.visitNodes(t.modifiers,F,ze.isModifier),t.asteriskToken,t.name,void 0,ze.visitParameterList(t.parameters,A,k),void 0,ze.visitFunctionBody(t.body,A,k)||ze.createBlock([])):ze.createOmittedExpression();case 191:return l=e,ze.updateArrowFunction(l,ze.visitNodes(l.modifiers,F,ze.isModifier),void 0,ze.visitParameterList(l.parameters,A,k),void 0,l.equalsGreaterThanToken,ze.visitFunctionBody(l.body,A,k));case 148:return function(e){if(!ze.parameterIsThisKeyword(e)){var t=ze.createParameter(void 0,void 0,e.dotDotDotToken,ze.visitNode(e.name,A,ze.isBindingName),void 0,void 0,ze.visitNode(e.initializer,A,ze.isExpression));return ze.setOriginalNode(t,e),ze.setTextRange(t,ze.moveRangePastModifiers(e)),ze.setCommentRange(t,e),ze.setSourceMapRange(t,ze.moveRangePastModifiers(e)),ze.setEmitFlags(t.name,32),t}}(e);case 189:return function(e){var t=ze.skipOuterExpressions(e.expression,-3);if(ze.isAssertionExpression(t)){var r=ze.visitNode(e.expression,A,ze.isExpression);return ze.createPartiallyEmittedExpression(r,e)}return ze.visitEachChild(e,A,k)}(e);case 188:case 206:return u=e,_=ze.visitNode(u.expression,A,ze.isExpression),ze.createPartiallyEmittedExpression(_,u);case 185:return c=e,ze.updateCall(c,ze.visitNode(c.expression,A,ze.isExpression),void 0,ze.visitNodes(c.arguments,A,ze.isExpression));case 186:return s=e,ze.updateNew(s,ze.visitNode(s.expression,A,ze.isExpression),void 0,ze.visitNodes(s.arguments,A,ze.isExpression));case 207:return i=e,o=ze.visitNode(i.expression,A,ze.isLeftHandSideExpression),ze.createPartiallyEmittedExpression(o,i);case 236:return function(e){if(t=e,!ze.isConst(t)||v.preserveConstEnums||v.isolatedModules){var t,r=[],n=2;he(r,e)&&(h===ze.ModuleKind.System&&m===D||(n|=512));var a=Oe(e),i=Me(e),o=ze.hasModifier(e,1)?ze.getExternalModuleOrNamespaceExportName(f,e,!1,!0):ze.getLocalName(e,!1,!0),s=ze.createLogicalOr(o,ze.createAssignment(o,ze.createObjectLiteral()));if(ge(e)){var c=ze.getLocalName(e,!1,!0);s=ze.createAssignment(c,s)}var u=ze.createStatement(ze.createCall(ze.createFunctionExpression(void 0,void 0,void 0,void 0,[ze.createParameter(void 0,void 0,void 0,a)],void 0,function(e,t){var r=f;f=t;var n=[];return g(),ze.addRange(n,ze.map(e.members,me)),ze.addRange(n,y()),f=r,ze.createBlock(ze.setTextRange(ze.createNodeArray(n),e.members),!0)}(e,i)),void 0,[s]));return ze.setOriginalNode(u,e),ze.setTextRange(u,e),ze.setEmitFlags(u,n),r.push(u),r.push(ze.createEndOfDeclarationMarker(e)),r}}(e);case 212:return function(e){if(Ee(e)){var t=ze.getInitializedVariables(e.declarationList);if(0===t.length)return;return ze.setTextRange(ze.createStatement(ze.inlineExpressions(ze.map(t,fe))),e)}return ze.visitEachChild(e,A,k)}(e);case 230:return a=e,ze.updateVariableDeclaration(a,ze.visitNode(a.name,A,ze.isBindingName),void 0,ze.visitNode(a.initializer,A,ze.isExpression));case 237:return be(e);case 241:return Te(e);default:return ze.Debug.failBadSyntaxKind(e),ze.visitEachChild(e,A,k)}var t,r,n,a,i,o,s,c,u,_,l,d}function I(e){var t=ze.getStrictOptionValue(v,"alwaysStrict")&&!(ze.isExternalModule(e)&&h>=ze.ModuleKind.ES2015);return ze.updateSourceFileNode(e,ze.visitLexicalEnvironment(e.statements,n,k,0,t))}function O(e){return void 0!==e.decorators&&0<e.decorators.length}function M(e,t){var r=[],n=function(e,t){var r=ze.forEach(e.members,J),n=262144&e.transformFlags,a=ze.getFirstConstructorWithBody(e);if(!r&&!n)return ze.visitEachChild(a,A,k);var i,o=(i=a,ze.visitParameterList(i&&i.parameters,A,k)||[]),s=function(e,t,r){var n,a=[],i=0;if(c(),t){i=function(e,t){if(e.body){var r=e.body.statements,n=ze.addPrologue(t,r,!1,A);if(n===r.length)return n;var a=r[n];return 214===a.kind&&ze.isSuperCall(a.expression)?(t.push(ze.visitNode(a,A,ze.isStatement)),n+1):n}return 0}(t,a);var o=(n=t,ze.filter(n.parameters,L));ze.addRange(a,ze.map(o,R))}else r&&a.push(ze.createStatement(ze.createCall(ze.createSuper(),void 0,[ze.createSpread(ze.createIdentifier("arguments"))])));var s=B(e,!1);return K(a,s,ze.createThis()),t&&ze.addRange(a,ze.visitNodes(t.body.statements,A,ze.isStatement,i)),a=ze.mergeLexicalEnvironment(a,y()),ze.setTextRange(ze.createBlock(ze.setTextRange(ze.createNodeArray(a),t?t.body.statements:e.members),!0),t?t.body:void 0)}(e,a,t);return ze.startOnNewLine(ze.setOriginalNode(ze.setTextRange(ze.createConstructor(void 0,void 0,o,s),a||e),a))}(e,t);return n&&r.push(n),ze.addRange(r,ze.visitNodes(e.members,l,ze.isClassElement)),ze.setTextRange(ze.createNodeArray(r),e.members)}function L(e){return ze.hasModifier(e,92)&&ze.isIdentifier(e.name)}function R(e){ze.Debug.assert(ze.isIdentifier(e.name));var t=e.name,r=ze.getMutableClone(t);ze.setEmitFlags(r,1584);var n=ze.getMutableClone(t);return ze.setEmitFlags(n,1536),ze.startOnNewLine(ze.setEmitFlags(ze.setTextRange(ze.createStatement(ze.createAssignment(ze.setTextRange(ze.createPropertyAccess(ze.createThis(),r),e.name),n)),ze.moveRangePos(e,-1)),1536))}function B(e,t){return ze.filter(e.members,t?z:J)}function z(e){return j(e,!0)}function J(e){return j(e,!1)}function j(e,t){return 151===e.kind&&t===ze.hasModifier(e,32)&&void 0!==e.initializer}function K(e,t,r){for(var n=0,a=t;n<a.length;n++){var i=a[n],o=ze.createStatement(U(i,r));ze.setSourceMapRange(o,ze.moveRangePastModifiers(i)),ze.setCommentRange(o,i),e.push(o)}}function U(e,t){var r=ze.isComputedPropertyName(e.name)&&!ce(e.name.expression)?ze.updateComputedPropertyName(e.name,ze.getGeneratedNameForNode(e.name,!ze.hasModifier(e,32))):e.name,n=ze.visitNode(e.initializer,A,ze.isExpression),a=ze.createMemberAccessForPropertyName(t,r,r);return ze.createAssignment(a,n)}function q(t,e){return ze.filter(t.members,e?function(e){return V(e,!0,t)}:function(e){return V(e,!1,t)})}function V(e,t,r){return ze.nodeOrChildIsDecorated(e,r)&&t===ze.hasModifier(e,32)}function W(e){var t;if(e)for(var r=e.parameters,n=0;n<r.length;n++){var a=r[n];(t||a.decorators)&&(t||(t=new Array(r.length)),t[n]=a.decorators)}return t}function H(e,t){switch(t.kind){case 155:case 156:return function(e,t){if(t.body){var r=ze.getAllAccessorDeclarations(e.members,t),n=r.firstAccessor,a=r.secondAccessor,i=r.setAccessor,o=n.decorators?n:a&&a.decorators?a:void 0;if(o&&t===o){var s=o.decorators,c=W(i);if(s||c)return{decorators:s,parameters:c}}}}(e,t);case 153:return function(e){if(e.body){var t=e.decorators,r=W(e);if(t||r)return{decorators:t,parameters:r}}}(t);case 151:return function(e){var t=e.decorators;if(t)return{decorators:t}}(t);default:return}}function G(e,t,r){if(r){var n,a,i,o,s,c,u=[];return ze.addRange(u,ze.map(r.decorators,Y)),ze.addRange(u,ze.flatMap(r.parameters,Z)),n=e,a=t,i=u,Je?function(e,t,r){if(v.emitDecoratorMetadata){var n=void 0;$(e)&&(n||(n=[])).push(ze.createPropertyAssignment("type",ze.createArrowFunction(void 0,void 0,[],void 0,ze.createToken(36),re(e)))),te(e)&&(n||(n=[])).push(ze.createPropertyAssignment("paramTypes",ze.createArrowFunction(void 0,void 0,[],void 0,ze.createToken(36),ne(e,t)))),ee(e)&&(n||(n=[])).push(ze.createPropertyAssignment("returnType",ze.createArrowFunction(void 0,void 0,[],void 0,ze.createToken(36),ae(e)))),n&&r.push(Ke(k,"design:typeinfo",ze.createObjectLiteral(n,!0)))}}(n,a,i):(o=n,s=a,c=i,v.emitDecoratorMetadata&&($(o)&&c.push(Ke(k,"design:type",re(o))),te(o)&&c.push(Ke(k,"design:paramtypes",ne(o,s))),ee(o)&&c.push(Ke(k,"design:returntype",ae(o))))),u}}function X(e,t,r){ze.addRange(e,ze.map(function(e,t){for(var r,n=q(e,t),a=0,i=n;a<i.length;a++){var o=i[a],s=Q(e,o);s&&(r?r.push(s):r=[s])}return r}(t,r),Pe))}function Q(e,t){var r=G(t,e,H(e,t));if(r){var n,a,i,o=(n=e,a=t,ze.hasModifier(a,32)?ze.getDeclarationName(n):(i=n,ze.createPropertyAccess(ze.getDeclarationName(i),"prototype"))),s=ue(t,!0),c=0<N?151===t.kind?ze.createVoidZero():ze.createNull():void 0,u=je(k,r,o,s,c,ze.moveRangePastDecorators(t));return ze.setEmitFlags(u,1536),u}}function Y(e){return ze.visitNode(e.expression,A,ze.isExpression)}function Z(e,t){var r;if(e){r=[];for(var n=0,a=e;n<a.length;n++){var i=a[n],o=Ue(k,Y(i),t,i.expression);ze.setEmitFlags(o,1536),r.push(o)}}return r}function $(e){var t=e.kind;return 153===t||155===t||156===t||151===t}function ee(e){return 153===e.kind}function te(e){switch(e.kind){case 233:case 203:return void 0!==ze.getFirstConstructorWithBody(e);case 153:case 155:case 156:return!0}return!1}function re(e){switch(e.kind){case 151:case 148:case 155:return ie(e.type);case 156:return ie(ze.getSetAccessorTypeAnnotationNode(e));case 233:case 203:case 153:return ze.createIdentifier("Function");default:return ze.createVoidZero()}}function ne(e,t){var r=ze.isClassLike(e)?ze.getFirstConstructorWithBody(e):ze.isFunctionLike(e)&&ze.nodeIsPresent(e.body)?e:void 0,n=[];if(r)for(var a=function(e,t){if(t&&155===e.kind){var r=ze.getAllAccessorDeclarations(t.members,e).setAccessor;if(r)return r.parameters}return e.parameters}(r,t),i=a.length,o=0;o<i;o++){var s=a[o];0===o&&ze.isIdentifier(s.name)&&"this"===s.name.escapedText||(s.dotDotDotToken?n.push(ie(ze.getRestParameterElementType(s.type))):n.push(re(s)))}return ze.createArrayLiteral(n)}function ae(e){return ze.isFunctionLike(e)&&e.type?ie(e.type):ze.isAsyncFunction(e)?ze.createIdentifier("Promise"):ze.createVoidZero()}function ie(e){if(void 0===e)return ze.createIdentifier("Object");switch(e.kind){case 105:case 140:case 95:case 131:return ze.createVoidZero();case 172:return ie(e.type);case 162:case 163:return ze.createIdentifier("Function");case 166:case 167:return ze.createIdentifier("Array");case 160:case 122:return ze.createIdentifier("Boolean");case 137:return ze.createIdentifier("String");case 135:return ze.createIdentifier("Object");case 177:switch(e.literal.kind){case 9:return ze.createIdentifier("String");case 8:return ze.createIdentifier("Number");case 101:case 86:return ze.createIdentifier("Boolean");default:ze.Debug.failBadSyntaxKind(e.literal)}break;case 134:return ze.createIdentifier("Number");case 138:return N<2?se():ze.createIdentifier("Symbol");case 161:return function(e){switch(E.getTypeReferenceSerializationKind(e.typeName,m)){case ze.TypeReferenceSerializationKind.Unknown:var t=oe(e.typeName,!0),r=ze.createTempVariable(T);return ze.createLogicalOr(ze.createLogicalAnd(ze.createTypeCheck(ze.createAssignment(r,t),"function"),r),ze.createIdentifier("Object"));case ze.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return oe(e.typeName,!1);case ze.TypeReferenceSerializationKind.VoidNullableOrNeverType:return ze.createVoidZero();case ze.TypeReferenceSerializationKind.BooleanType:return ze.createIdentifier("Boolean");case ze.TypeReferenceSerializationKind.NumberLikeType:return ze.createIdentifier("Number");case ze.TypeReferenceSerializationKind.StringLikeType:return ze.createIdentifier("String");case ze.TypeReferenceSerializationKind.ArrayLikeType:return ze.createIdentifier("Array");case ze.TypeReferenceSerializationKind.ESSymbolType:return N<2?se():ze.createIdentifier("Symbol");case ze.TypeReferenceSerializationKind.TypeWithCallSignature:return ze.createIdentifier("Function");case ze.TypeReferenceSerializationKind.Promise:return ze.createIdentifier("Promise");case ze.TypeReferenceSerializationKind.ObjectType:default:return ze.createIdentifier("Object")}}(e);case 169:case 168:return function(e){for(var t,r=0,n=e.types;r<n.length;r++){for(var a=n[r];172===a.kind;)a=a.type;if(131!==a.kind&&(o||95!==a.kind&&140!==a.kind)){var i=ie(a);if(ze.isIdentifier(i)&&"Object"===i.escapedText)return i;if(t){if(!ze.isIdentifier(t)||!ze.isIdentifier(i)||t.escapedText!==i.escapedText)return ze.createIdentifier("Object")}else t=i}}return t||ze.createVoidZero()}(e);case 164:case 174:case 175:case 176:case 165:case 119:case 173:break;default:ze.Debug.failBadSyntaxKind(e)}return ze.createIdentifier("Object")}function oe(e,t){switch(e.kind){case 71:var r=ze.getMutableClone(e);return r.flags&=-9,r.original=void 0,r.parent=ze.getParseTreeNode(m),t?ze.createLogicalAnd(ze.createStrictInequality(ze.createTypeOf(r),ze.createLiteral("undefined")),r):r;case 145:return function(e,t){var r;if(71===e.left.kind)r=oe(e.left,t);else if(t){var n=ze.createTempVariable(T);r=ze.createLogicalAnd(ze.createAssignment(n,oe(e.left,!0)),n)}else r=oe(e.left,!1);return ze.createPropertyAccess(r,e.right)}(e,t)}}function se(){return ze.createConditional(ze.createTypeCheck(ze.createIdentifier("Symbol"),"function"),ze.createIdentifier("Symbol"),ze.createIdentifier("Object"))}function ce(e){return!ze.isIdentifier(e)&&ze.isSimpleCopiableExpression(e)||ze.isWellKnownSymbolSyntactically(e)}function ue(e,t){var r=e.name;return ze.isComputedPropertyName(r)?t&&!ce(r.expression)?ze.getGeneratedNameForNode(r):r.expression:ze.isIdentifier(r)?ze.createLiteral(ze.idText(r)):ze.getSynthesizedClone(r)}function _e(e,t,r){if(ze.isComputedPropertyName(e)){var n=ze.visitNode(e.expression,A,ze.isExpression),a=ze.skipPartiallyEmittedExpressions(n),i=ce(a);if(!i&&t){var o=ze.getGeneratedNameForNode(e);return T(o),ze.createAssignment(o,n)}return r&&(i||ze.isIdentifier(a))?void 0:n}}function le(e){var t=e.name,r=_e(t,ze.some(e.decorators),!1);return r?(ze.some(C)&&(r=ze.inlineExpressions(C.concat([r])),C.length=0),ze.updateComputedPropertyName(t,r)):t}function de(e){return!ze.nodeIsMissing(e.body)}function pe(e){return!(ze.nodeIsMissing(e.body)&&ze.hasModifier(e,128))}function fe(e){var t=e.name;return ze.isBindingPattern(t)?ze.flattenDestructuringAssignment(e,A,k,0,!1,we):ze.setTextRange(ze.createAssignment(Ie(t),ze.visitNode(e.initializer,A,ze.isExpression)),e)}function me(e){var t,r,n=ue(e,!1),a=(t=e,void 0!==(r=E.getConstantValue(t))?ze.createLiteral(r):(0==(8&_)&&(_|=8,k.enableSubstitution(71)),t.initializer?ze.visitNode(t.initializer,A,ze.isExpression):ze.createVoidZero())),i=ze.createAssignment(ze.createElementAccess(f,n),a),o=9===a.kind?i:ze.createAssignment(ze.createElementAccess(f,i),n);return ze.setTextRange(ze.createStatement(ze.setTextRange(o,e)),e)}function ge(e){return Ee(e)||Ne(e)&&h!==ze.ModuleKind.ES2015&&h!==ze.ModuleKind.ESNext&&h!==ze.ModuleKind.System}function ye(e){d||(d=ze.createUnderscoreEscapedMap());var t=ve(e);d.has(t)||d.set(t,e)}function ve(e){return ze.Debug.assertNode(e.name,ze.isIdentifier),e.name.escapedText}function he(e,t){var r=ze.createVariableStatement(ze.visitNodes(t.modifiers,F,ze.isModifier),ze.createVariableDeclarationList([ze.createVariableDeclaration(ze.getLocalName(t,!1,!0))],272===m.kind?0:1));if(ze.setOriginalNode(r,t),ye(t),function(e){if(d){var t=ve(e);return d.get(t)===e}return!0}(t))return 236===t.kind?ze.setSourceMapRange(r.declarationList,t):ze.setSourceMapRange(r,t),ze.setCommentRange(r,t),ze.setEmitFlags(r,4195328),e.push(r),!0;var n=ze.createMergeDeclarationMarker(r);return ze.setEmitFlags(n,4195840),e.push(n),!1}function be(e){if(t=e,!ze.isInstantiatedModule(t,v.preserveConstEnums||v.isolatedModules))return ze.createNotEmittedStatement(e);var t;ze.Debug.assertNode(e.name,ze.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&_)&&(_|=2,k.enableSubstitution(71),k.enableSubstitution(269),k.enableEmitNotification(237));var r=[],n=2;he(r,e)&&(h===ze.ModuleKind.System&&m===D||(n|=512));var a=Oe(e),i=Me(e),o=ze.hasModifier(e,1)?ze.getExternalModuleOrNamespaceExportName(f,e,!1,!0):ze.getLocalName(e,!1,!0),s=ze.createLogicalOr(o,ze.createAssignment(o,ze.createObjectLiteral()));if(ge(e)){var c=ze.getLocalName(e,!1,!0);s=ze.createAssignment(c,s)}var u=ze.createStatement(ze.createCall(ze.createFunctionExpression(void 0,void 0,void 0,void 0,[ze.createParameter(void 0,void 0,void 0,a)],void 0,function(e,t){var r=f,n=p,a=d;f=t,p=e,d=void 0;var i,o,s=[];g();var c=e.body;if(238===c.kind)b(c,function(e){return ze.addRange(s,ze.visitNodes(e.statements,x,ze.isStatement))}),i=c.statements,o=c;else{var u=be(c);u&&(ze.isArray(u)?ze.addRange(s,u):s.push(u));var _=function e(t){if(237===t.body.kind){var r=e(t.body);return r||t.body}}(e).body;i=ze.moveRangePos(_.statements,-1)}ze.addRange(s,y()),f=r,p=n,d=a;var l=ze.createBlock(ze.setTextRange(ze.createNodeArray(s),i),!0);return ze.setTextRange(l,o),238!==c.kind&&ze.setEmitFlags(l,1536|ze.getEmitFlags(l)),l}(e,i)),void 0,[s]));return ze.setOriginalNode(u,e),ze.setTextRange(u,e),ze.setEmitFlags(u,n),r.push(u),r.push(ze.createEndOfDeclarationMarker(e)),r}function xe(e){var t=E.isReferencedAliasDeclaration(e)?e.name:void 0,r=ze.visitNode(e.namedBindings,ke,ze.isNamedImportBindings);return t||r?ze.updateImportClause(e,t,r):void 0}function ke(e){if(244===e.kind)return E.isReferencedAliasDeclaration(e)?e:void 0;var t=ze.visitNodes(e.elements,De,ze.isImportSpecifier);return ze.some(t)?ze.updateNamedImports(e,t):void 0}function De(e){return E.isReferencedAliasDeclaration(e)?e:void 0}function Se(e){var t=ze.visitNodes(e.elements,Ce,ze.isExportSpecifier);return ze.some(t)?ze.updateNamedExports(e,t):void 0}function Ce(e){return E.isValueAliasDeclaration(e)?e:void 0}function Te(e){if(ze.isExternalModuleImportEqualsDeclaration(e))return E.isReferencedAliasDeclaration(e)?ze.visitEachChild(e,A,k):void 0;if(t=e,E.isReferencedAliasDeclaration(t)||!ze.isExternalModule(D)&&E.isTopLevelValueImportEqualsWithEntityName(t)){var t,r,n,a,i=ze.createExpressionFromEntityName(e.moduleReference);return ze.setEmitFlags(i,3584),Ae(e)||!Ee(e)?ze.setOriginalNode(ze.setTextRange(ze.createVariableStatement(ze.visitNodes(e.modifiers,F,ze.isModifier),ze.createVariableDeclarationList([ze.setOriginalNode(ze.createVariableDeclaration(e.name,void 0,i),e)])),e),e):ze.setOriginalNode((r=e.name,n=i,a=e,ze.setTextRange(ze.createStatement(ze.createAssignment(ze.getNamespaceMemberName(f,r,!1,!0),n)),a)),e)}}function Ee(e){return void 0!==p&&ze.hasModifier(e,1)}function Ne(e){return void 0===p&&ze.hasModifier(e,1)}function Ae(e){return Ne(e)&&!ze.hasModifier(e,512)}function Pe(e){return ze.createStatement(e)}function Fe(e,t){var r=ze.createAssignment(ze.getExternalModuleOrNamespaceExportName(f,t,!1,!0),ze.getLocalName(t));ze.setSourceMapRange(r,ze.createRange(t.name?t.name.pos:t.pos,t.end));var n=ze.createStatement(r);ze.setSourceMapRange(n,ze.createRange(-1,t.end)),e.push(n)}function we(e,t,r){return ze.setTextRange(ze.createAssignment(Ie(e),t),r)}function Ie(e){return ze.getNamespaceMemberName(f,e,!1,!0)}function Oe(e){var t=ze.getGeneratedNameForNode(e);return ze.setSourceMapRange(t,e.name),t}function Me(e){return ze.getGeneratedNameForNode(e)}function Le(){0==(1&_)&&(_|=1,k.enableSubstitution(71),S=[])}function Re(e){if(_&s&&!ze.isGeneratedIdentifier(e)&&!ze.isLocalName(e)){var t=E.getReferencedExportContainer(e,!1);if(t&&272!==t.kind&&(2&s&&237===t.kind||8&s&&236===t.kind))return ze.setTextRange(ze.createPropertyAccess(ze.getGeneratedNameForNode(t),e),e)}}function Be(e){var t=function(e){if(!v.isolatedModules)return ze.isPropertyAccessExpression(e)||ze.isElementAccessExpression(e)?E.getConstantValue(e):void 0}(e);if(void 0!==t){ze.setConstantValue(e,t);var r=ze.createLiteral(t);if(!v.removeComments){var n=ze.isPropertyAccessExpression(e)?ze.declarationNameToString(e.name):ze.getTextOfNode(e.argumentExpression);ze.addSyntheticTrailingComment(r,3," "+n+" ")}return r}return e}};var s={name:"typescript:decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'};function Ke(e,t,r){return e.requestEmitHelper(a),ze.createCall(ze.getHelperName("__metadata"),void 0,[ze.createLiteral(t),r])}var a={name:"typescript: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            };'};function Ue(e,t,r,n){return e.requestEmitHelper(i),ze.setTextRange(ze.createCall(ze.getHelperName("__param"),void 0,[ze.createLiteral(r),t]),n)}var i={name:"typescript: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            };"}}(ts||(ts={})),function(T){var e,t;(t=e||(e={}))[t.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",T.transformES2017=function(f){var o,m,g=f.resumeLexicalEnvironment,y=f.endLexicalEnvironment,i=f.hoistVariableDeclaration,v=f.getEmitResolver(),e=f.getCompilerOptions(),h=T.getEmitScriptTarget(e),s=0,c=f.onEmitNode,r=f.onSubstituteNode;return f.onEmitNode=function(e,t,r){if(1&o&&(233===(i=t.kind)||154===i||153===i||155===i||156===i)){var n=6144&v.getNodeCheckFlags(t);if(n!==s){var a=s;return s=n,c(e,t,r),void(s=a)}}var i;c(e,t,r)},f.onSubstituteNode=function(e,t){return t=r(e,t),1===e&&s?function(e){switch(e.kind){case 183:return n(e);case 184:return C(e);case 185:return function(e){var t=e.expression;if(T.isSuperProperty(t)){var r=T.isPropertyAccessExpression(t)?n(t):C(t);return T.createCall(T.createPropertyAccess(r,"call"),void 0,[T.createThis()].concat(e.arguments))}return e}(e)}return e}(t):t},function(e){if(e.isDeclarationFile)return e;var t=T.visitEachChild(e,b,f);return T.addEmitHelpers(t,f.readEmitHelpers()),t};function b(e){if(0==(16&e.transformFlags))return e;switch(e.kind){case 120:return;case 195:return i=e,T.setOriginalNode(T.setTextRange(T.createYield(void 0,T.visitNode(i.expression,b,T.isExpression)),i),i);case 153:return a=e,T.updateMethod(a,void 0,T.visitNodes(a.modifiers,b,T.isModifier),a.asteriskToken,a.name,void 0,void 0,T.visitParameterList(a.parameters,b,f),void 0,2&T.getFunctionFlags(a)?k(a):T.visitFunctionBody(a.body,b,f));case 232:return n=e,T.updateFunctionDeclaration(n,void 0,T.visitNodes(n.modifiers,b,T.isModifier),n.asteriskToken,n.name,void 0,T.visitParameterList(n.parameters,b,f),void 0,2&T.getFunctionFlags(n)?k(n):T.visitFunctionBody(n.body,b,f));case 190:return r=e,T.updateFunctionExpression(r,T.visitNodes(r.modifiers,b,T.isModifier),r.asteriskToken,r.name,void 0,T.visitParameterList(r.parameters,b,f),void 0,2&T.getFunctionFlags(r)?k(r):T.visitFunctionBody(r.body,b,f));case 191:return t=e,T.updateArrowFunction(t,T.visitNodes(t.modifiers,b,T.isModifier),void 0,T.visitParameterList(t.parameters,b,f),void 0,t.equalsGreaterThanToken,2&T.getFunctionFlags(t)?k(t):T.visitFunctionBody(t.body,b,f));default:return T.visitEachChild(e,b,f)}var t,r,n,a,i}function u(e){if(T.isNodeWithPossibleHoistedDeclaration(e))switch(e.kind){case 212:return function(e){if(a(e.declarationList)){var t=_(e.declarationList,!1);return t?T.createStatement(t):void 0}return T.visitEachChild(e,b,f)}(e);case 218:return n=e,T.updateFor(n,a(n.initializer)?_(n.initializer,!1):T.visitNode(n.initializer,b,T.isForInitializer),T.visitNode(n.condition,b,T.isExpression),T.visitNode(n.incrementor,b,T.isExpression),T.visitNode(n.statement,u,T.isStatement,T.liftToBlock));case 219:return r=e,T.updateForIn(r,a(r.initializer)?_(r.initializer,!0):T.visitNode(r.initializer,b,T.isForInitializer),T.visitNode(r.expression,b,T.isExpression),T.visitNode(r.statement,u,T.isStatement,T.liftToBlock));case 220:return t=e,T.updateForOf(t,T.visitNode(t.awaitModifier,b,T.isToken),a(t.initializer)?_(t.initializer,!0):T.visitNode(t.initializer,b,T.isForInitializer),T.visitNode(t.expression,b,T.isExpression),T.visitNode(t.statement,u,T.isStatement,T.liftToBlock));case 267:return function(e){var r,t=T.createUnderscoreEscapedMap();if(x(e.variableDeclaration,t),t.forEach(function(e,t){m.has(t)&&(r||(r=T.cloneMap(m)),r.delete(t))}),r){var n=m;m=r;var a=T.visitEachChild(e,u,f);return m=n,a}return T.visitEachChild(e,u,f)}(e);case 211:case 225:case 239:case 264:case 265:case 228:case 216:case 217:case 215:case 224:case 226:return T.visitEachChild(e,u,f);default:return T.Debug.assertNever(e,"Unhandled node.")}var t,r,n;return b(e)}function x(e,t){var r=e.name;if(T.isIdentifier(r))t.set(r.escapedText,!0);else for(var n=0,a=r.elements;n<a.length;n++){var i=a[n];T.isOmittedExpression(i)||x(i,t)}}function a(e){return e&&T.isVariableDeclarationList(e)&&!(3&e.flags)&&T.forEach(e.declarations,p)}function _(e,t){var r;r=e,T.forEach(r.declarations,l);var n=T.getInitializedVariables(e);return 0===n.length?t?T.visitNode(T.convertToAssignmentElementTarget(e.declarations[0].name),b,T.isExpression):void 0:T.inlineExpressions(T.map(n,d))}function l(e){var t=e.name;if(T.isIdentifier(t))i(t);else for(var r=0,n=t.elements;r<n.length;r++){var a=n[r];T.isOmittedExpression(a)||l(a)}}function d(e){var t=T.setSourceMapRange(T.createAssignment(T.convertToAssignmentElementTarget(e.name),e.initializer),e);return T.visitNode(t,b,T.isExpression)}function p(e){var t=e.name;if(T.isIdentifier(t))return m.has(t.escapedText);for(var r=0,n=t.elements;r<n.length;r++){var a=n[r];if(!T.isOmittedExpression(a)&&p(a))return!0}return!1}function k(e){g();var t,r=T.getOriginalNode(e,T.isFunctionLike).type,n=h<2?function(e){var t=e&&T.getEntityNameFromTypeNode(e);if(t&&T.isEntityName(t)){var r=v.getTypeReferenceSerializationKind(t);if(r===T.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===T.TypeReferenceSerializationKind.Unknown)return t}}(r):void 0,a=191===e.kind,i=0!=(8192&v.getNodeCheckFlags(e)),o=m;m=T.createUnderscoreEscapedMap();for(var s=0,c=e.parameters;s<c.length;s++)x(c[s],m);if(a){var u=E(f,i,n,D(e.body)),_=y();T.some(_)?(p=T.convertToFunctionBody(u),t=T.updateBlock(p,T.setTextRange(T.createNodeArray(T.concatenate(p.statements,_)),p.statements))):t=u}else{var l=[],d=T.addPrologue(l,e.body.statements,!1,b);l.push(T.createReturn(E(f,i,n,D(e.body,d)))),T.addRange(l,y());var p=T.createBlock(l,!0);T.setTextRange(p,e.body),2<=h&&(4096&v.getNodeCheckFlags(e)?(S(),T.addEmitHelper(p,T.advancedAsyncSuperHelper)):2048&v.getNodeCheckFlags(e)&&(S(),T.addEmitHelper(p,T.asyncSuperHelper))),t=p}return m=o,t}function D(e,t){return T.isBlock(e)?T.updateBlock(e,T.visitNodes(e.statements,u,T.isStatement,t)):T.convertToFunctionBody(T.visitNode(e,u,T.isConciseBody))}function S(){0==(1&o)&&(o|=1,f.enableSubstitution(185),f.enableSubstitution(183),f.enableSubstitution(184),f.enableEmitNotification(233),f.enableEmitNotification(153),f.enableEmitNotification(155),f.enableEmitNotification(156),f.enableEmitNotification(154))}function n(e){return 97===e.expression.kind?t(T.createLiteral(T.idText(e.name)),e):e}function C(e){return 97===e.expression.kind?t(e.argumentExpression,e):e}function t(e,t){return 4096&s?T.setTextRange(T.createPropertyAccess(T.createCall(T.createIdentifier("_super"),void 0,[e]),"value"),t):T.setTextRange(T.createCall(T.createIdentifier("_super"),void 0,[e]),t)}};var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\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) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n                    step((generator = generator.apply(thisArg, _arguments || [])).next());\n                });\n            };'};function E(e,t,r,n){e.requestEmitHelper(i);var a=T.createFunctionExpression(void 0,T.createToken(39),void 0,void 0,[],void 0,n);return(a.emitNode||(a.emitNode={})).flags|=786432,T.createCall(T.getHelperName("__awaiter"),void 0,[T.createThis(),t?T.createIdentifier("arguments"):T.createVoidZero(),r?T.createExpressionFromEntityName(r):T.createVoidZero(),a])}T.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n            const _super = name => super[name];\n        "},T.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n            const _super = (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        "}}(ts||(ts={})),function(C){var e,t;(t=e||(e={}))[t.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper",C.transformESNext=function(x){var o=x.resumeLexicalEnvironment,s=x.endLexicalEnvironment,k=x.hoistVariableDeclaration,c=x.getEmitResolver(),e=x.getCompilerOptions(),u=C.getEmitScriptTarget(e),_=x.onEmitNode;x.onEmitNode=function(e,t,r){if(1&l&&(233===(i=t.kind)||154===i||153===i||155===i||156===i)){var n=6144&c.getNodeCheckFlags(t);if(n!==d){var a=d;return d=n,_(e,t,r),void(d=a)}}var i;_(e,t,r)};var l,p,r=x.onSubstituteNode;x.onSubstituteNode=function(e,t){return t=r(e,t),1===e&&d?function(e){switch(e.kind){case 183:return n(e);case 184:return a(e);case 185:return function(e){var t=e.expression;if(C.isSuperProperty(t)){var r=C.isPropertyAccessExpression(t)?n(t):a(t);return C.createCall(C.createPropertyAccess(r,"call"),void 0,[C.createThis()].concat(e.arguments))}return e}(e)}return e}(t):t};var d=0;return function(e){if(e.isDeclarationFile)return e;var t=C.visitEachChild(e,D,x);return C.addEmitHelpers(t,x.readEmitHelpers()),t};function D(e){return t(e,!1)}function f(e){return t(e,!0)}function m(e){if(120!==e.kind)return e}function t(e,t){if(0==(8&e.transformFlags))return e;switch(e.kind){case 195:return s=e,2&p&&1&p?C.setOriginalNode(C.setTextRange(C.createYield(N(x,C.visitNode(s.expression,D,C.isExpression))),s),s):C.visitEachChild(s,D,x);case 201:return function(e){if(2&p&&1&p&&e.asteriskToken){var t=C.visitNode(e.expression,D,C.isExpression);return C.setOriginalNode(C.setTextRange(C.createYield(N(x,C.updateYield(e,e.asteriskToken,(n=F(r=x,t,t),a=t,r.requestEmitHelper(E),r.requestEmitHelper(P),C.setTextRange(C.createCall(C.getHelperName("__asyncDelegator"),void 0,[n]),a))))),e),e)}var r,n,a;return C.visitEachChild(e,D,x)}(e);case 226:return function(e){if(2&p){var t=C.unwrapInnermostStatementOfLabel(e);return 220===t.kind&&t.awaitModifier?g(t,e):C.restoreEnclosingLabel(C.visitEachChild(t,D,x),e)}return C.visitEachChild(e,D,x)}(e);case 182:return function(e){if(1048576&e.transformFlags){var t=function(e){for(var t,r=[],n=0,a=e;n<a.length;n++){var i=a[n];if(270===i.kind){t&&(r.push(C.createObjectLiteral(t)),t=void 0);var o=i.expression;r.push(C.visitNode(o,D,C.isExpression))}else t=C.append(t,268===i.kind?C.createPropertyAssignment(i.name,C.visitNode(i.initializer,D,C.isExpression)):C.visitNode(i,D,C.isObjectLiteralElementLike))}return t&&r.push(C.createObjectLiteral(t)),r}(e.properties);return t.length&&182!==t[0].kind&&t.unshift(C.createObjectLiteral()),T(x,t)}return C.visitEachChild(e,D,x)}(e);case 198:return i=e,o=t,C.isDestructuringAssignment(i)&&1048576&i.left.transformFlags?C.flattenDestructuringAssignment(i,D,x,1,!o):26===i.operatorToken.kind?C.updateBinary(i,C.visitNode(i.left,f,C.isExpression),C.visitNode(i.right,o?f:D,C.isExpression)):C.visitEachChild(i,D,x);case 230:return a=e,C.isBindingPattern(a.name)&&1048576&a.name.transformFlags?C.flattenDestructuringBinding(a,D,x,1):C.visitEachChild(a,D,x);case 220:return g(e,void 0);case 218:return d=e,C.updateFor(d,C.visitNode(d.initializer,f,C.isForInitializer),C.visitNode(d.condition,D,C.isExpression),C.visitNode(d.incrementor,D,C.isExpression),C.visitNode(d.statement,D,C.isStatement));case 194:return l=e,C.visitEachChild(l,f,x);case 154:return function(e){var t=p;p=0;var r=C.updateConstructor(e,void 0,e.modifiers,C.visitParameterList(e.parameters,D,x),v(e));return p=t,r}(e);case 153:return function(e){var t=p;p=C.getFunctionFlags(e);var r=C.updateMethod(e,void 0,1&p?C.visitNodes(e.modifiers,m,C.isModifier):e.modifiers,2&p?void 0:e.asteriskToken,C.visitNode(e.name,D,C.isPropertyName),C.visitNode(void 0,D,C.isToken),void 0,C.visitParameterList(e.parameters,D,x),void 0,2&p&&1&p?y(e):v(e));return p=t,r}(e);case 155:return function(e){var t=p;p=0;var r=C.updateGetAccessor(e,void 0,e.modifiers,C.visitNode(e.name,D,C.isPropertyName),C.visitParameterList(e.parameters,D,x),void 0,v(e));return p=t,r}(e);case 156:return function(e){var t=p;p=0;var r=C.updateSetAccessor(e,void 0,e.modifiers,C.visitNode(e.name,D,C.isPropertyName),C.visitParameterList(e.parameters,D,x),v(e));return p=t,r}(e);case 232:return function(e){var t=p;p=C.getFunctionFlags(e);var r=C.updateFunctionDeclaration(e,void 0,1&p?C.visitNodes(e.modifiers,m,C.isModifier):e.modifiers,2&p?void 0:e.asteriskToken,e.name,void 0,C.visitParameterList(e.parameters,D,x),void 0,2&p&&1&p?y(e):v(e));return p=t,r}(e);case 190:return function(e){var t=p;p=C.getFunctionFlags(e);var r=C.updateFunctionExpression(e,1&p?C.visitNodes(e.modifiers,m,C.isModifier):e.modifiers,2&p?void 0:e.asteriskToken,e.name,void 0,C.visitParameterList(e.parameters,D,x),void 0,2&p&&1&p?y(e):v(e));return p=t,r}(e);case 191:return function(e){var t=p;p=C.getFunctionFlags(e);var r=C.updateArrowFunction(e,e.modifiers,void 0,C.visitParameterList(e.parameters,D,x),void 0,e.equalsGreaterThanToken,v(e));return p=t,r}(e);case 148:return 1048576&(n=e).transformFlags?C.updateParameter(n,void 0,void 0,n.dotDotDotToken,C.getGeneratedNameForNode(n),void 0,void 0,C.visitNode(n.initializer,D,C.isExpression)):C.visitEachChild(n,D,x);case 214:return _=e,C.visitEachChild(_,f,x);case 189:return c=e,u=t,C.visitEachChild(c,u?f:D,x);case 267:return(r=e).variableDeclaration?C.visitEachChild(r,D,x):C.updateCatchClause(r,C.createVariableDeclaration(C.createTempVariable(void 0)),C.visitNode(r.block,D,C.isBlock));default:return C.visitEachChild(e,D,x)}var r,n,a,i,o,s,c,u,_,l,d}function g(e,t){return 1048576&e.initializer.transformFlags&&(e=function(e){var t=C.skipParentheses(e.initializer);if(C.isVariableDeclarationList(t)||C.isAssignmentPattern(t)){var r=void 0,n=void 0,a=C.createTempVariable(void 0),i=[C.createForOfBindingStatement(t,a)];return C.isBlock(e.statement)&&(C.addRange(i,e.statement.statements),r=e.statement,n=e.statement.statements),C.updateForOf(e,e.awaitModifier,C.setTextRange(C.createVariableDeclarationList([C.setTextRange(C.createVariableDeclaration(a),e.initializer)],1),e.initializer),e.expression,C.setTextRange(C.createBlock(C.setTextRange(C.createNodeArray(i),n),!0),r))}return e}(e)),e.awaitModifier?function(e,t){var r=C.visitNode(e.expression,D,C.isExpression),n=C.isIdentifier(r)?C.getGeneratedNameForNode(r):C.createTempVariable(void 0),a=C.isIdentifier(r)?C.getGeneratedNameForNode(n):C.createTempVariable(void 0),i=C.createUniqueName("e"),o=C.getGeneratedNameForNode(i),s=C.createTempVariable(void 0),c=F(x,r,e.expression),u=C.createCall(C.createPropertyAccess(n,"next"),void 0,[]),_=C.createPropertyAccess(a,"done"),l=C.createPropertyAccess(a,"value"),d=C.createFunctionCall(s,n,[]);k(i),k(s);var p,f,m,g,y,v,h,b=C.setEmitFlags(C.setTextRange(C.createFor(C.setEmitFlags(C.setTextRange(C.createVariableDeclarationList([C.setTextRange(C.createVariableDeclaration(n,void 0,c),e.expression),C.createVariableDeclaration(a)]),e.expression),2097152),C.createComma(C.createAssignment(a,S(u)),C.createLogicalNot(_)),void 0,(p=e,f=S(l),y=C.createForOfBindingStatement(p.initializer,f),v=[C.visitNode(y,D,C.isStatement)],h=C.visitNode(p.statement,D,C.isStatement),C.isBlock(h)?(C.addRange(v,h.statements),g=(m=h).statements):v.push(h),C.setEmitFlags(C.setTextRange(C.createBlock(C.setTextRange(C.createNodeArray(v),g),!0),m),432))),e),256);return C.createTry(C.createBlock([C.restoreEnclosingLabel(b,t)]),C.createCatchClause(C.createVariableDeclaration(o),C.setEmitFlags(C.createBlock([C.createStatement(C.createAssignment(i,C.createObjectLiteral([C.createPropertyAssignment("error",o)])))]),1)),C.createBlock([C.createTry(C.createBlock([C.setEmitFlags(C.createIf(C.createLogicalAnd(C.createLogicalAnd(a,C.createLogicalNot(_)),C.createAssignment(s,C.createPropertyAccess(n,"return"))),C.createStatement(S(d))),1)]),void 0,C.setEmitFlags(C.createBlock([C.setEmitFlags(C.createIf(i,C.createThrow(C.createPropertyAccess(i,"error"))),1)]),1))]))}(e,t):C.restoreEnclosingLabel(C.visitEachChild(e,D,x),t)}function S(e){return 1&p?C.createYield(void 0,N(x,e)):C.createAwait(e)}function y(e){o();var t,r,n=[],a=C.addPrologue(n,e.body.statements,!1,D);h(n,e),n.push(C.createReturn((t=x,r=C.createFunctionExpression(void 0,C.createToken(39),e.name&&C.getGeneratedNameForNode(e.name),void 0,[],void 0,C.updateBlock(e.body,C.visitLexicalEnvironment(e.body.statements,D,x,a))),t.requestEmitHelper(E),t.requestEmitHelper(A),(r.emitNode||(r.emitNode={})).flags|=262144,C.createCall(C.getHelperName("__asyncGenerator"),void 0,[C.createThis(),C.createIdentifier("arguments"),r])))),C.addRange(n,s());var i=C.updateBlock(e.body,n);return 2<=u&&(4096&c.getNodeCheckFlags(e)?(b(),C.addEmitHelper(i,C.advancedAsyncSuperHelper)):2048&c.getNodeCheckFlags(e)&&(b(),C.addEmitHelper(i,C.asyncSuperHelper))),i}function v(e){o();var t=0,r=[],n=C.visitNode(e.body,D,C.isConciseBody);C.isBlock(n)&&(t=C.addPrologue(r,n.statements,!1,D)),C.addRange(r,h(void 0,e));var a=s();if(0<t||C.some(r)||C.some(a)){var i=C.convertToFunctionBody(n,!0);return C.addRange(r,i.statements.slice(t)),C.addRange(r,a),C.updateBlock(i,C.setTextRange(C.createNodeArray(r),i.statements))}return n}function h(e,t){for(var r=0,n=t.parameters;r<n.length;r++){var a=n[r];if(1048576&a.transformFlags){var i=C.getGeneratedNameForNode(a),o=C.flattenDestructuringBinding(a,D,x,1,i,!1,!0);if(C.some(o)){var s=C.createVariableStatement(void 0,C.createVariableDeclarationList(o));C.setEmitFlags(s,1048576),e=C.append(e,s)}}}return e}function b(){0==(1&l)&&(l|=1,x.enableSubstitution(185),x.enableSubstitution(183),x.enableSubstitution(184),x.enableEmitNotification(233),x.enableEmitNotification(153),x.enableEmitNotification(155),x.enableEmitNotification(156),x.enableEmitNotification(154))}function n(e){return 97===e.expression.kind?i(C.createLiteral(C.idText(e.name)),e):e}function a(e){return 97===e.expression.kind?i(e.argumentExpression,e):e}function i(e,t){return 4096&d?C.setTextRange(C.createPropertyAccess(C.createCall(C.createIdentifier("_super"),void 0,[e]),"value"),t):C.setTextRange(C.createCall(C.createIdentifier("_super"),void 0,[e]),t)}};var r={name:"typescript:assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || Object.assign || function(t) {\n                for (var s, i = 1, n = arguments.length; i < n; i++) {\n                    s = arguments[i];\n                    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                        t[p] = s[p];\n                }\n                return t;\n            };"};function T(e,t){return 2<=e.getCompilerOptions().target?C.createCall(C.createPropertyAccess(C.createIdentifier("Object"),"assign"),void 0,t):(e.requestEmitHelper(r),C.createCall(C.getHelperName("__assign"),void 0,t))}C.createAssignHelper=T;var E={name:"typescript:await",scoped:!1,text:"\n            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n        "};function N(e,t){return e.requestEmitHelper(E),C.createCall(C.getHelperName("__await"),void 0,[t])}var A={name:"typescript:asyncGenerator",scoped:!1,text:'\n            var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var g = generator.apply(thisArg, _arguments || []), i, q = [];\n                return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n                function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n                function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n                function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);  }\n                function fulfill(value) { resume("next", value); }\n                function reject(value) { resume("throw", value); }\n                function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n            };\n        '};var P={name:"typescript: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) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n            };\n        '};var n={name:"typescript: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];\n                return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n            };\n        '};function F(e,t,r){return e.requestEmitHelper(n),C.setTextRange(C.createCall(C.getHelperName("__asyncValues"),void 0,[t]),r)}}(ts||(ts={})),function(g){g.transformJsx=function(u){var _,l=u.getCompilerOptions();return function(e){if(e.isDeclarationFile)return e;_=e;var t=g.visitEachChild(e,r,u);return g.addEmitHelpers(t,u.readEmitHelpers()),t};function r(e){return 4&e.transformFlags?function(e){switch(e.kind){case 253:return n(e,!1);case 254:return a(e,!1);case 257:return i(e,!1);case 263:return m(e);default:return g.visitEachChild(e,r,u)}}(e):e}function d(e){switch(e.kind){case 10:return t=e,void 0===(r=function(e){for(var t,r=0,n=-1,a=0;a<e.length;a++){var i=e.charCodeAt(a);g.isLineBreak(i)?(-1!==r&&-1!==n&&(t=s(t,e.substr(r,n-r+1))),r=-1):g.isWhiteSpaceSingleLine(i)||(n=a,-1===r&&(r=a))}return-1!==r?s(t,e.substr(r)):t}(g.getTextOfNode(t,!0)))?void 0:g.createLiteral(r);case 263:return m(e);case 253:return n(e,!0);case 254:return a(e,!0);case 257:return i(e,!0);default:return void g.Debug.failBadSyntaxKind(e)}var t,r}function n(e,t){return o(e.openingElement,e.children,t,e)}function a(e,t){return o(e,void 0,t,e)}function i(e,t){return r=e.openingFragment,n=e.children,a=t,i=e,o=g.createExpressionForJsxFragment(u.getEmitResolver().getJsxFactoryEntity(_),l.reactNamespace,g.mapDefined(n,d),r,i),a&&g.startOnNewLine(o),o;var r,n,a,i,o}function o(e,t,r,n){var a,i=function e(t){if(253===t.kind)return e(t.openingElement);var r=t.tagName;return g.isIdentifier(r)&&g.isIntrinsicJsxName(r.escapedText)?g.createLiteral(g.idText(r)):g.createExpressionFromEntityName(r)}(e),o=e.attributes.properties;if(0===o.length)a=g.createNull();else{var s=g.flatten(g.spanMap(o,g.isJsxSpreadAttribute,function(e,t){return t?g.map(e,p):g.createObjectLiteral(g.map(e,f))}));g.isJsxSpreadAttribute(o[0])&&s.unshift(g.createObjectLiteral()),(a=g.singleOrUndefined(s))||(a=g.createAssignHelper(u,s))}var c=g.createExpressionForJsxElement(u.getEmitResolver().getJsxFactoryEntity(_),l.reactNamespace,i,a,g.mapDefined(t,d),e,n);return r&&g.startOnNewLine(c),c}function p(e){return g.visitNode(e.expression,r,g.isExpression)}function f(e){var t,r,n=(t=e.name,r=g.idText(t),/^[A-Za-z_]\w*$/.test(r)?t:g.createLiteral(r)),a=function(e){if(void 0===e)return g.createTrue();if(9===e.kind){var t=g.createLiteral((r=e.text,((n=c(r))===r?void 0:n)||e.text));return t.singleQuote=void 0!==e.singleQuote?e.singleQuote:!g.isStringDoubleQuoted(e,_),g.setTextRange(t,e)}if(263===e.kind)return void 0===e.expression?g.createTrue():m(e);var r,n;g.Debug.failBadSyntaxKind(e)}(e.initializer);return g.createPropertyAssignment(n,a)}function s(e,t){var r=c(t);return void 0===e?r:e+" "+r}function c(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,t,r,n,a,i,o){if(a)return String.fromCharCode(parseInt(a,10));if(i)return String.fromCharCode(parseInt(i,16));var s=y.get(o);return s?String.fromCharCode(s):e})}function m(e){return g.visitNode(e.expression,r,g.isExpression)}};var y=g.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})}(ts||(ts={})),function(u){u.transformES2016=function(a){var s=a.hoistVariableDeclaration;return function(e){return e.isDeclarationFile?e:u.visitEachChild(e,c,a)};function c(e){if(0==(32&e.transformFlags))return e;switch(e.kind){case 198:return function(e){switch(e.operatorToken.kind){case 62:return function(e){var t,r,n=u.visitNode(e.left,c,u.isExpression),a=u.visitNode(e.right,c,u.isExpression);if(u.isElementAccessExpression(n)){var i=u.createTempVariable(s),o=u.createTempVariable(s);t=u.setTextRange(u.createElementAccess(u.setTextRange(u.createAssignment(i,n.expression),n.expression),u.setTextRange(u.createAssignment(o,n.argumentExpression),n.argumentExpression)),n),r=u.setTextRange(u.createElementAccess(i,o),n)}else if(u.isPropertyAccessExpression(n)){var i=u.createTempVariable(s);t=u.setTextRange(u.createPropertyAccess(u.setTextRange(u.createAssignment(i,n.expression),n.expression),n.name),n),r=u.setTextRange(u.createPropertyAccess(i,n.name),n)}else r=t=n;return u.setTextRange(u.createAssignment(t,u.createMathPow(r,a,e)),e)}(e);case 40:return t=e,r=u.visitNode(t.left,c,u.isExpression),n=u.visitNode(t.right,c,u.isExpression),u.createMathPow(r,n,t);default:return u.visitEachChild(e,c,a)}var t,r,n}(e);default:return u.visitEachChild(e,c,a)}}}}(ts||(ts={})),function(ge){var e,t,r,n,a,i,o,s,c,u;(t=e||(e={}))[t.CapturedThis=1]="CapturedThis",t[t.BlockScopedBindings=2]="BlockScopedBindings",(n=r||(r={}))[n.ToOriginal=0]="ToOriginal",n[n.ToOutParameter=1]="ToOutParameter",(i=a||(a={}))[i.Break=2]="Break",i[i.Continue=4]="Continue",i[i.Return=8]="Return",(s=o||(o={}))[s.NoReplacement=0]="NoReplacement",s[s.ReplaceSuperCapture=1]="ReplaceSuperCapture",s[s.ReplaceWithReturn=2]="ReplaceWithReturn",(u=c||(c={}))[u.None=0]="None",u[u.Function=1]="Function",u[u.ArrowFunction=2]="ArrowFunction",u[u.AsyncFunctionBody=4]="AsyncFunctionBody",u[u.NonStaticClassElement=8]="NonStaticClassElement",u[u.CapturesThis=16]="CapturesThis",u[u.ExportedVariableStatement=32]="ExportedVariableStatement",u[u.TopLevel=64]="TopLevel",u[u.Block=128]="Block",u[u.IterationStatement=256]="IterationStatement",u[u.IterationStatementBlock=512]="IterationStatementBlock",u[u.ForStatement=1024]="ForStatement",u[u.ForInOrForOfStatement=2048]="ForInOrForOfStatement",u[u.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",u[u.ComputedPropertyName=8192]="ComputedPropertyName",u[u.AncestorFactsMask=16383]="AncestorFactsMask",u[u.BlockScopeIncludes=0]="BlockScopeIncludes",u[u.BlockScopeExcludes=4032]="BlockScopeExcludes",u[u.SourceFileIncludes=64]="SourceFileIncludes",u[u.SourceFileExcludes=3968]="SourceFileExcludes",u[u.FunctionIncludes=65]="FunctionIncludes",u[u.FunctionExcludes=16286]="FunctionExcludes",u[u.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",u[u.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",u[u.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",u[u.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",u[u.ConstructorIncludes=73]="ConstructorIncludes",u[u.ConstructorExcludes=16278]="ConstructorExcludes",u[u.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",u[u.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",u[u.ForStatementIncludes=1280]="ForStatementIncludes",u[u.ForStatementExcludes=3008]="ForStatementExcludes",u[u.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",u[u.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",u[u.BlockIncludes=128]="BlockIncludes",u[u.BlockExcludes=3904]="BlockExcludes",u[u.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",u[u.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",u[u.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",u[u.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",u[u.NewTarget=16384]="NewTarget",u[u.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",u[u.SubtreeFactsMask=-16384]="SubtreeFactsMask",u[u.PropagateNewTargetMask=49152]="PropagateNewTargetMask",ge.transformES2015=function(w){var b,p,I,x,O,a,M=w.startLexicalEnvironment,f=w.resumeLexicalEnvironment,L=w.endLexicalEnvironment,k=w.hoistVariableDeclaration,c=w.getCompilerOptions(),D=w.getEmitResolver(),r=w.onSubstituteNode,i=w.onEmitNode;return w.onEmitNode=function(e,t,r){if(1&a&&ge.isFunctionLike(t)){var n=S(16286,8&ge.getEmitFlags(t)?81:65);return i(e,t,r),void C(n,0,0)}i(e,t,r)},w.onSubstituteNode=function(e,t){return t=r(e,t),1===e?function(e){switch(e.kind){case 71:return function(e){if(2&a&&!ge.isInternalName(e)){var t=D.getReferencedDeclarationWithCollidingName(e);if(t&&(!ge.isClassLike(t)||!function(e,t){var r=ge.getParseTreeNode(t);if(!r||r===e||r.end<=e.pos||r.pos>=e.end)return!1;for(var n=ge.getEnclosingBlockScopeContainer(e);r;){if(r===n||r===e)return!1;if(ge.isClassElement(r)&&r.parent===e)return!0;r=r.parent}return!1}(t,e)))return ge.setTextRange(ge.getGeneratedNameForNode(ge.getNameOfDeclaration(t)),e)}return e}(e);case 99:return t=e,1&a&&16&I?ge.setTextRange(ge.createIdentifier("_this"),t):t}var t;return e}(t):ge.isIdentifier(t)?function(e){if(2&a&&!ge.isInternalName(e)){var t=ge.getParseTreeNode(e,ge.isIdentifier);if(t&&function(e){var t=e.parent;switch(t.kind){case 180:case 233:case 236:case 230:return t.name===e&&D.isDeclarationWithCollidingName(t)}return!1}(t))return ge.setTextRange(ge.getGeneratedNameForNode(t),e)}return e}(t):t},function(e){if(e.isDeclarationFile)return e;p=(b=e).text;var t=function(e){var t=S(3968,64),r=[];M();var n=ge.addStandardPrologue(r,e.statements,!1);return h(r,e),n=ge.addCustomPrologue(r,e.statements,n,R),ge.addRange(r,ge.visitNodes(e.statements,R,ge.isStatement,n)),x&&r.push(ge.createVariableStatement(void 0,ge.createVariableDeclarationList(x))),ge.addRange(r,L()),C(t,0,0),ge.updateSourceFileNode(e,ge.setTextRange(ge.createNodeArray(r),e.statements))}(e);return ge.addEmitHelpers(t,w.readEmitHelpers()),x=p=b=void 0,I=0,t};function S(e,t){var r=I;return I=16383&(I&~e|t),r}function C(e,t,r){I=-16384&(I&~t|r)|e}function T(e){return 4096&I&&223===e.kind&&!e.expression}function t(e){return 0!=(128&e.transformFlags)||void 0!==O||4096&I&&(ge.isStatement(e)||211===e.kind)||ge.isIterationStatement(e,!1)&&te(e)||0!=(33554432&ge.getEmitFlags(e))}function R(e){return t(e)?function(e){switch(e.kind){case 115:return;case 233:return function(e){var t=ge.createVariableDeclaration(ge.getLocalName(e,!0),void 0,A(e));ge.setOriginalNode(t,e);var r=[],n=ge.createVariableStatement(void 0,ge.createVariableDeclarationList([t]));if(ge.setOriginalNode(n,e),ge.setTextRange(n,e),ge.startOnNewLine(n),r.push(n),ge.hasModifier(e,1)){var a=ge.hasModifier(e,512)?ge.createExportDefault(ge.getLocalName(e)):ge.createExternalModuleExport(ge.getLocalName(e));ge.setOriginalNode(a,n),r.push(a)}var i=ge.getEmitFlags(e);return 0==(4194304&i)&&(r.push(ge.createEndOfDeclarationMarker(e)),ge.setEmitFlags(n,4194304|i)),ge.singleOrMany(r)}(e);case 203:return A(e);case 148:return(h=e).dotDotDotToken?void 0:ge.isBindingPattern(h.name)?ge.setOriginalNode(ge.setTextRange(ge.createParameter(void 0,void 0,void 0,ge.getGeneratedNameForNode(h),void 0,void 0,void 0),h),h):h.initializer?ge.setOriginalNode(ge.setTextRange(ge.createParameter(void 0,void 0,void 0,h.name,void 0,void 0,void 0),h),h):h;case 232:return function(e){var t=O;O=void 0;var r=S(16286,65),n=ge.visitParameterList(e.parameters,R,w),a=64&e.transformFlags?j(e):K(e),i=16384&I?ge.getLocalName(e):e.name;return C(r,49152,0),O=t,ge.updateFunctionDeclaration(e,void 0,ge.visitNodes(e.modifiers,R,ge.isModifier),e.asteriskToken,i,void 0,n,void 0,a)}(e);case 191:return function(e){16384&e.transformFlags&&fe();var t=O;O=void 0;var r=S(16256,66),n=ge.createFunctionExpression(void 0,void 0,void 0,void 0,ge.visitParameterList(e.parameters,R,w),void 0,j(e));return ge.setTextRange(n,e),ge.setOriginalNode(n,e),ge.setEmitFlags(n,8),C(r,0,0),O=t,n}(e);case 190:return function(e){var t=262144&ge.getEmitFlags(e)?S(16278,69):S(16286,65),r=O;O=void 0;var n=ge.visitParameterList(e.parameters,R,w),a=64&e.transformFlags?j(e):K(e),i=16384&I?ge.getLocalName(e):e.name;return C(t,49152,0),O=r,ge.updateFunctionExpression(e,void 0,e.asteriskToken,i,void 0,n,void 0,a)}(e);case 230:return H(e);case 71:return c=e,O?ge.isGeneratedIdentifier(c)?c:"arguments"===c.escapedText&&D.isArgumentsLocalBinding(c)?O.argumentsName||(O.argumentsName=ge.createUniqueName("arguments")):c:c;case 231:return function(e){if(64&e.transformFlags){3&e.flags&&pe();var t=ge.flatMap(e.declarations,1&e.flags?W:H),r=ge.createVariableDeclarationList(t);if(ge.setOriginalNode(r,e),ge.setTextRange(r,e),ge.setCommentRange(r,e),8388608&e.transformFlags&&(ge.isBindingPattern(e.declarations[0].name)||ge.isBindingPattern(ge.lastOrUndefined(e.declarations).name))){var n=ge.firstOrUndefined(t);if(n){var a=ge.lastOrUndefined(t);ge.setSourceMapRange(r,ge.createRange(n.pos,a.end))}}return r}return ge.visitEachChild(e,R,w)}(e);case 225:return function(e){if(void 0!==O){var t=O.allowedNonLabeledJumps;O.allowedNonLabeledJumps|=2;var r=ge.visitEachChild(e,R,w);return O.allowedNonLabeledJumps=t,r}return ge.visitEachChild(e,R,w)}(e);case 239:return g=e,y=S(4032,0),v=ge.visitEachChild(g,R,w),C(y,0,0),v;case 211:return U(e,!1);case 222:case 221:return function(e){if(O){var t=222===e.kind?2:4,r=e.label&&O.labels&&O.labels.get(ge.idText(e.label))||!e.label&&O.allowedNonLabeledJumps&t;if(!r){var n=void 0;e.label?222===e.kind?(n="break-"+e.label.escapedText,ae(O,!0,ge.idText(e.label),n)):(n="continue-"+e.label.escapedText,ae(O,!1,ge.idText(e.label),n)):222===e.kind?(O.nonLocalJumps|=2,n="break"):(O.nonLocalJumps|=4,n="continue");var a=ge.createLiteral(n);if(O.loopOutParameters.length){for(var i=O.loopOutParameters,o=void 0,s=0;s<i.length;s++){var c=re(i[s],1);o=0===s?c:ge.createBinary(o,26,c)}a=ge.createBinary(o,26,a)}return ge.createReturn(a)}}return ge.visitEachChild(e,R,w)}(e);case 226:return function(e){O&&!O.labels&&(O.labels=ge.createMap());var t=ge.unwrapInnermostStatementOfLabel(e,O&&G);return ge.isIterationStatement(t,!1)?function(e,t){switch(e.kind){case 216:case 217:return Q(e,t);case 218:return Y(e,t);case 219:return Z(e,t);case 220:return $(e,t)}}(t,e):ge.restoreEnclosingLabel(ge.visitNode(t,R,ge.isStatement),e,O&&X)}(e);case 216:case 217:return Q(e,void 0);case 218:return Y(e,void 0);case 219:return Z(e,void 0);case 220:return $(e,void 0);case 214:return function(e){switch(e.expression.kind){case 189:return ge.updateStatement(e,q(e.expression,!1));case 198:return ge.updateStatement(e,V(e.expression,!1))}return ge.visitEachChild(e,R,w)}(e);case 182:return function(e){for(var t=e.properties,r=t.length,n=r,a=r,i=0;i<r;i++){var o=t[i];if(16777216&o.transformFlags&&4&I&&i<a&&(a=i),146===o.name.kind){n=i;break}}if(n!==r){a<n&&(n=a);var s=ge.createTempVariable(k),c=[],u=ge.createAssignment(s,ge.setEmitFlags(ge.createObjectLiteral(ge.visitNodes(t,R,ge.isObjectLiteralElementLike,0,n),e.multiLine),65536));return e.multiLine&&ge.startOnNewLine(u),c.push(u),function(e,t,r,n){for(var a=t.properties,i=a.length,o=n;o<i;o++){var s=a[o];switch(s.kind){case 155:case 156:var c=ge.getAllAccessorDeclarations(t.properties,s);s===c.firstAccessor&&e.push(z(r,c,t,t.multiLine));break;case 153:e.push((y=s,v=r,b=(h=t).multiLine,void 0,x=S(0,0),k=ge.createAssignment(ge.createMemberAccessForPropertyName(v,ge.visitNode(y.name,R,ge.isPropertyName)),J(y,y,void 0,h)),ge.setTextRange(k,y),b&&ge.startOnNewLine(k),C(x,49152,49152&I?16384:0),k));break;case 268:e.push((p=s,f=r,m=t.multiLine,void 0,g=ge.createAssignment(ge.createMemberAccessForPropertyName(f,ge.visitNode(p.name,R,ge.isPropertyName)),ge.visitNode(p.initializer,R,ge.isExpression)),ge.setTextRange(g,p),m&&ge.startOnNewLine(g),g));break;case 269:e.push((u=s,_=r,l=t.multiLine,void 0,d=ge.createAssignment(ge.createMemberAccessForPropertyName(_,ge.visitNode(u.name,R,ge.isPropertyName)),ge.getSynthesizedClone(u.name)),ge.setTextRange(d,u),l&&ge.startOnNewLine(d),d));break;default:ge.Debug.failBadSyntaxKind(t)}}var u,_,l,d,p,f,m,g,y,v,h,b,x,k}(c,e,s,n),c.push(e.multiLine?ge.startOnNewLine(ge.getMutableClone(s)):s),ge.inlineExpressions(c)}return ge.visitEachChild(e,R,w)}(e);case 267:return function(e){var t,r,n,a,i=S(4032,0);if(ge.Debug.assert(!!e.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),ge.isBindingPattern(e.variableDeclaration.name)){var o=ge.createTempVariable(void 0),s=ge.createVariableDeclaration(o);ge.setTextRange(s,e.variableDeclaration);var c=ge.flattenDestructuringBinding(e.variableDeclaration,R,w,0,o),u=ge.createVariableDeclarationList(c);ge.setTextRange(u,e.variableDeclaration);var _=ge.createVariableStatement(void 0,u);t=ge.updateCatchClause(e,s,(r=e.block,n=_,a=ge.visitNodes(r.statements,R,ge.isStatement),ge.updateBlock(r,[n].concat(a))))}else t=ge.visitEachChild(e,R,w);return C(i,0,0),t}(e);case 269:return m=e,ge.setTextRange(ge.createPropertyAssignment(m.name,ge.getSynthesizedClone(m.name)),m);case 146:return d=e,p=S(0,8192),f=ge.visitEachChild(d,R,w),C(p,49152,49152&I?32768:0),f;case 181:return 64&(s=e).transformFlags?ce(s.elements,!0,s.multiLine,s.elements.hasTrailingComma):ge.visitEachChild(s,R,w);case 185:return o=e,33554432&ge.getEmitFlags(o)?function(e){var t=ge.cast(ge.cast(ge.skipOuterExpressions(e.expression),ge.isArrowFunction).body,ge.isBlock),r=ge.visitNodes(t.statements,R,ge.isStatement,0,1),n=ge.visitNodes(t.statements,R,ge.isStatement,1,t.statements.length-1),a=ge.cast(ge.firstOrUndefined(r),ge.isVariableStatement).declarationList.declarations[0],i=ge.skipOuterExpressions(a.initializer),o=ge.tryCast(i,ge.isAssignmentExpression),s=ge.cast(o?ge.skipOuterExpressions(o.right):i,ge.isCallExpression),c=ge.cast(ge.skipOuterExpressions(s.expression),ge.isFunctionExpression),u=c.body.statements,_=0,l=-1,d=[];if(o){var p=ge.tryCast(u[_],ge.isExpressionStatement);p&&(d.push(p),_++),d.push(u[_]),_++,d.push(ge.createStatement(ge.createAssignment(o.left,ge.cast(a.name,ge.isIdentifier))))}for(;!ge.isReturnStatement(ge.elementAt(u,l));)l--;return ge.addRange(d,u,_,l),l<-1&&ge.addRange(d,u,l+1),ge.addRange(d,n),ge.addRange(d,r,1),ge.recreateOuterExpressions(e.expression,ge.recreateOuterExpressions(a.initializer,ge.recreateOuterExpressions(o&&o.right,ge.updateCall(s,ge.recreateOuterExpressions(s.expression,ge.updateFunctionExpression(c,void 0,void 0,void 0,void 0,c.parameters,void 0,ge.updateBlock(c.body,d))),void 0,s.arguments))))}(o):64&o.transformFlags?se(o,!0):ge.updateCall(o,ge.visitNode(o.expression,E,ge.isExpression),void 0,ge.visitNodes(o.arguments,R,ge.isExpression));case 186:return function(e){if(524288&e.transformFlags){var t=ge.createCallBinding(ge.createPropertyAccess(e.expression,"bind"),k),r=t.target,n=t.thisArg;return ge.createNew(ge.createFunctionApply(ge.visitNode(r,R,ge.isExpression),n,ce(ge.createNodeArray([ge.createVoidZero()].concat(e.arguments)),!1,!1,!1)),void 0,[])}return ge.visitEachChild(e,R,w)}(e);case 189:return q(e,!0);case 198:return V(e,!0);case 13:case 14:case 15:case 16:return l=e,ge.setTextRange(ge.createLiteral(l.text),l);case 9:return(i=e).hasExtendedUnicodeEscape?ge.setTextRange(ge.createLiteral(i.text),i):i;case 8:return 384&(a=e).numericLiteralFlags?ge.setTextRange(ge.createNumericLiteral(a.text),a):a;case 187:return function(e){var t=ge.visitNode(e.tag,R,ge.isExpression),r=[void 0],n=[],a=[],i=e.template;if(ge.isNoSubstitutionTemplateLiteral(i))n.push(ge.createLiteral(i.text)),a.push(le(i));else{n.push(ge.createLiteral(i.head.text)),a.push(le(i.head));for(var o=0,s=i.templateSpans;o<s.length;o++){var c=s[o];n.push(ge.createLiteral(c.literal.text)),a.push(le(c.literal)),r.push(ge.visitNode(c.expression,R,ge.isExpression))}}var u,_,l,d,p=(u=w,_=ge.createArrayLiteral(n),l=ge.createArrayLiteral(a),u.requestEmitHelper(ve),ge.createCall(ge.getHelperName("__makeTemplateObject"),void 0,[_,l]));if(ge.isExternalModule(b)){var f=ge.createUniqueName("templateObject");d=f,x=ge.append(x,ge.createVariableDeclaration(d)),r[0]=ge.createLogicalOr(f,ge.createAssignment(f,p))}else r[0]=p;return ge.createCall(t,void 0,r)}(e);case 200:return function(e){var t,r,n,a=[];t=a,n=r=e,ge.Debug.assert(0!==n.templateSpans.length),(0!==n.head.text.length||0===n.templateSpans[0].literal.text.length)&&t.push(ge.createLiteral(r.head.text)),function(e,t){for(var r=0,n=t.templateSpans;r<n.length;r++){var a=n[r];e.push(ge.visitNode(a.expression,R,ge.isExpression)),0!==a.literal.text.length&&e.push(ge.createLiteral(a.literal.text))}}(a,e);var i=ge.reduceLeft(a,ge.createAdd);return ge.nodeIsSynthesized(i)&&(i.pos=e.pos,i.end=e.end),i}(e);case 201:return _=e,ge.visitEachChild(_,R,w);case 202:return u=e,ge.visitNode(u.expression,R,ge.isExpression);case 97:return de(!1);case 99:return n=e,O?2&I?(O.containsLexicalThis=!0,n):O.thisName||(O.thisName=ge.createUniqueName("this")):n;case 208:return 94===(r=e).keywordToken&&"target"===r.name.escapedText?(I|=8192&I?32768:16384,ge.createIdentifier("_newTarget")):r;case 153:return function(e){ge.Debug.assert(!ge.isComputedPropertyName(e.name));var t=J(e,ge.moveRangePos(e,-1),void 0,void 0);return ge.setEmitFlags(t,512|ge.getEmitFlags(t)),ge.setTextRange(ge.createPropertyAssignment(e.name,t),e)}(e);case 155:case 156:return function(e){ge.Debug.assert(!ge.isComputedPropertyName(e.name));var t=O;O=void 0;var r,n=S(16286,65);if(32768&e.transformFlags){var a=ge.visitParameterList(e.parameters,R,w),i=j(e);r=155===e.kind?ge.updateGetAccessor(e,e.decorators,e.modifiers,e.name,a,e.type,i):ge.updateSetAccessor(e,e.decorators,e.modifiers,e.name,a,i)}else r=ge.visitEachChild(e,R,w);return C(n,49152,0),O=t,r}(e);case 212:return function(e){var t,i,r,n=S(0,ge.hasModifier(e,1)?32:0);if(O&&0==(3&e.declarationList.flags)){for(var a=void 0,o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];if(r=c,(i=O).hoistedLocalVariables||(i.hoistedLocalVariables=[]),function e(t){if(71===t.kind)i.hoistedLocalVariables.push(t);else for(var r=0,n=t.elements;r<n.length;r++){var a=n[r];ge.isOmittedExpression(a)||e(a.name)}}(r.name),c.initializer){var u=void 0;ge.isBindingPattern(c.name)?u=ge.flattenDestructuringAssignment(c,R,w,0):(u=ge.createBinary(c.name,58,ge.visitNode(c.initializer,R,ge.isExpression)),ge.setTextRange(u,c)),a=ge.append(a,u)}}t=a?ge.setTextRange(ge.createStatement(ge.inlineExpressions(a)),e):void 0}else t=ge.visitEachChild(e,R,w);return C(n,0,0),t}(e);case 223:return t=e,O?(O.nonLocalJumps|=8,T(t)&&(t=N(t)),ge.createReturn(ge.createObjectLiteral([ge.createPropertyAssignment(ge.createIdentifier("value"),t.expression?ge.visitNode(t.expression,R,ge.isExpression):ge.createVoidZero())]))):T(t)?N(t):ge.visitEachChild(t,R,w);default:return ge.visitEachChild(e,R,w)}var t,r,n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h}(e):e}function n(e){return t(e)?U(e,!0):e}function E(e){return 97===e.kind?de(!0):R(e)}function N(e){return ge.setOriginalNode(ge.createReturn(ge.createIdentifier("_this")),e)}function A(e){e.name&&pe();var t=ge.getClassExtendsHeritageClauseElement(e),r=ge.createFunctionExpression(void 0,void 0,void 0,void 0,t?[ge.createParameter(void 0,void 0,void 0,"_super")]:[],void 0,function(e,t){var r,n,a,i,o,s=[];M(),r=s,n=e,(a=t)&&r.push(ge.setTextRange(ge.createStatement((i=w,o=ge.getInternalName(n),i.requestEmitHelper(ye),ge.createCall(ge.getHelperName("__extends"),void 0,[o,ge.createIdentifier("_super")]))),a)),function(e,t,r){var n=O;O=void 0;var a,i,o=S(16278,73),s=ge.getFirstConstructorWithBody(t),c=function(e,t){if(!e||!t)return!1;if(ge.some(e.parameters))return!1;var r=ge.firstOrUndefined(e.body.statements);if(!r||!ge.nodeIsSynthesized(r)||214!==r.kind)return!1;var n=r.expression;if(!ge.nodeIsSynthesized(n)||185!==n.kind)return!1;var a=n.expression;if(!ge.nodeIsSynthesized(a)||97!==a.kind)return!1;var i=ge.singleOrUndefined(n.arguments);if(!i||!ge.nodeIsSynthesized(i)||202!==i.kind)return!1;var o=i.expression;return ge.isIdentifier(o)&&"arguments"===o.escapedText}(s,void 0!==r),u=ge.createFunctionDeclaration(void 0,void 0,void 0,ge.getInternalName(t),void 0,(a=s,i=c,ge.visitParameterList(a&&!i&&a.parameters,R,w)||[]),void 0,function(e,t,r,n){var a=[];f();var i=-1;n?i=0:e&&(i=ge.addStandardPrologue(a,e.body.statements,!1)),e&&(y(a,e),v(a,e,n),n||(i=ge.addCustomPrologue(a,e.body.statements,i,R)),ge.Debug.assert(0<=i,"statementOffset not initialized correctly!"));var o=r&&95!==ge.skipOuterExpressions(r.expression).kind,s=function(e,t,r,n,a){if(!r)return t&&h(e,t),0;if(!t)return e.push(ge.createReturn(g())),2;if(n)return P(e,t,g()),fe(),1;var i,o,s,c=t.body.statements;if(a<c.length&&214===(i=c[a]).kind&&ge.isSuperCall(i.expression)&&(s=i.expression,o=se(s,!1)),o&&a===c.length-1&&!(49152&t.transformFlags)){var u=ge.createReturn(o);return 198===o.kind&&185===o.left.kind||ge.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),ge.setCommentRange(u,ge.getCommentRange(ge.setEmitFlags(o.left,1536))),e.push(u),2}return P(e,t,o||m(),i),o?1:0}(a,e,o,n,i);1!==s&&2!==s||i++,e&&(1===s&&(I|=4096),ge.addRange(a,ge.visitNodes(e.body.statements,R,ge.isStatement,i))),!o||2===s||e&&function e(t){if(223===t.kind)return!0;if(215===t.kind){var r=t;if(r.elseStatement)return e(r.thenStatement)&&e(r.elseStatement)}else if(211===t.kind){var n=ge.lastOrUndefined(t.statements);if(n&&e(n))return!0}return!1}(e.body)||a.push(ge.createReturn(ge.createIdentifier("_this"))),ge.addRange(a,L()),e&&F(a,e,!1);var c=ge.createBlock(ge.setTextRange(ge.createNodeArray(a),e?e.body.statements:t.members),!0);return ge.setTextRange(c,e?e.body:t),e||ge.setEmitFlags(c,1536),c}(s,t,r,c));ge.setTextRange(u,s||t),r&&ge.setEmitFlags(u,8),e.push(u),C(o,49152,0),O=n}(s,e,t),function(e,t){for(var r=0,n=t.members;r<n.length;r++){var a=n[r];switch(a.kind){case 210:e.push((_=a,ge.setTextRange(ge.createEmptyStatement(),_)));break;case 153:e.push(B(me(t,a),a,t));break;case 155:case 156:var i=ge.getAllAccessorDeclarations(t.members,a);a===i.firstAccessor&&e.push((o=me(t,a),s=i,c=t,void 0,u=ge.createStatement(z(o,s,c,!1)),ge.setEmitFlags(u,1536),ge.setSourceMapRange(u,ge.getSourceMapRange(s.firstAccessor)),u));break;case 154:break;default:ge.Debug.failBadSyntaxKind(t)}}var o,s,c,u,_}(s,e);var c=ge.createTokenRange(ge.skipTrivia(p,e.members.end),18),u=ge.getInternalName(e),_=ge.createPartiallyEmittedExpression(u);_.end=c.end,ge.setEmitFlags(_,1536);var l=ge.createReturn(_);l.pos=c.pos,ge.setEmitFlags(l,1920),s.push(l),ge.addRange(s,L());var d=ge.createBlock(ge.setTextRange(ge.createNodeArray(s),e.members),!0);return ge.setEmitFlags(d,1536),d}(e,t));ge.setEmitFlags(r,65536&ge.getEmitFlags(e)|524288);var n=ge.createPartiallyEmittedExpression(r);n.end=e.end,ge.setEmitFlags(n,1536);var a=ge.createPartiallyEmittedExpression(n);a.end=ge.skipTrivia(p,e.pos),ge.setEmitFlags(a,1536);var i=ge.createParen(ge.createCall(a,void 0,t?[ge.visitNode(t.expression,R,ge.isExpression)]:[]));return ge.addSyntheticLeadingComment(i,3,"* @class "),i}function m(){return ge.setEmitFlags(ge.createThis(),4)}function g(){return ge.createLogicalOr(ge.createLogicalAnd(ge.createStrictInequality(ge.createIdentifier("_super"),ge.createNull()),ge.createFunctionApply(ge.createIdentifier("_super"),m(),ge.createIdentifier("arguments"))),m())}function y(e,t){if(0!=(131072&t.transformFlags))for(var r=0,n=t.parameters;r<n.length;r++){var a=n[r],i=a.name,o=a.initializer;a.dotDotDotToken||(ge.isBindingPattern(i)?(s=e,c=a,u=i,_=o,void 0,l=ge.getGeneratedNameForNode(c),0<u.elements.length?s.push(ge.setEmitFlags(ge.createVariableStatement(void 0,ge.createVariableDeclarationList(ge.flattenDestructuringBinding(c,R,w,0,l))),1048576)):_&&s.push(ge.setEmitFlags(ge.createStatement(ge.createAssignment(l,ge.visitNode(_,R,ge.isExpression))),1048576))):o&&d(e,a,i,o))}var s,c,u,_,l}function d(e,t,r,n){n=ge.visitNode(n,R,ge.isExpression);var a=ge.createIf(ge.createTypeCheck(ge.getSynthesizedClone(r),"undefined"),ge.setEmitFlags(ge.setTextRange(ge.createBlock([ge.createStatement(ge.setEmitFlags(ge.setTextRange(ge.createAssignment(ge.setEmitFlags(ge.getMutableClone(r),48),ge.setEmitFlags(n,1584|ge.getEmitFlags(n))),t),1536))]),t),1953));ge.startOnNewLine(a),ge.setTextRange(a,t),ge.setEmitFlags(a,1050528),e.push(a)}function v(e,t,r){var n=ge.lastOrUndefined(t.parameters);if(i=r,(a=n)&&a.dotDotDotToken&&71===a.name.kind&&!i){var a,i,o=ge.getMutableClone(n.name);ge.setEmitFlags(o,48);var s=ge.getSynthesizedClone(n.name),c=t.parameters.length-1,u=ge.createLoopVariable();e.push(ge.setEmitFlags(ge.setTextRange(ge.createVariableStatement(void 0,ge.createVariableDeclarationList([ge.createVariableDeclaration(o,void 0,ge.createArrayLiteral([]))])),n),1048576));var _=ge.createFor(ge.setTextRange(ge.createVariableDeclarationList([ge.createVariableDeclaration(u,void 0,ge.createLiteral(c))]),n),ge.setTextRange(ge.createLessThan(u,ge.createPropertyAccess(ge.createIdentifier("arguments"),"length")),n),ge.setTextRange(ge.createPostfixIncrement(u),n),ge.createBlock([ge.startOnNewLine(ge.setTextRange(ge.createStatement(ge.createAssignment(ge.createElementAccess(s,0===c?u:ge.createSubtract(u,ge.createLiteral(c))),ge.createElementAccess(ge.createIdentifier("arguments"),u))),n))]));ge.setEmitFlags(_,1048576),ge.startOnNewLine(_),e.push(_)}}function h(e,t){32768&t.transformFlags&&191!==t.kind&&P(e,t,ge.createThis())}function P(e,t,r,n){fe();var a=ge.createVariableStatement(void 0,ge.createVariableDeclarationList([ge.createVariableDeclaration("_this",void 0,r)]));ge.setEmitFlags(a,1050112),ge.setTextRange(a,n),ge.setSourceMapRange(a,t),e.push(a)}function F(e,t,r){if(16384&I){var n=void 0;switch(t.kind){case 191:return e;case 153:case 155:case 156:n=ge.createVoidZero();break;case 154:n=ge.createPropertyAccess(ge.setEmitFlags(ge.createThis(),4),"constructor");break;case 232:case 190:n=ge.createConditional(ge.createLogicalAnd(ge.setEmitFlags(ge.createThis(),4),ge.createBinary(ge.setEmitFlags(ge.createThis(),4),93,ge.getLocalName(t))),ge.createPropertyAccess(ge.setEmitFlags(ge.createThis(),4),"constructor"),ge.createVoidZero());break;default:ge.Debug.failBadSyntaxKind(t)}var a=ge.createVariableStatement(void 0,ge.createVariableDeclarationList([ge.createVariableDeclaration("_newTarget",void 0,n)]));if(r)return[a].concat(e);e.unshift(a)}return e}function B(e,t,r){var n=S(0,0),a=ge.getCommentRange(t),i=ge.getSourceMapRange(t),o=ge.createMemberAccessForPropertyName(e,ge.visitNode(t.name,R,ge.isPropertyName),t.name),s=J(t,t,void 0,r);ge.setEmitFlags(s,1536),ge.setSourceMapRange(s,i);var c=ge.setTextRange(ge.createStatement(ge.createAssignment(o,s)),t);return ge.setOriginalNode(c,t),ge.setCommentRange(c,a),ge.setEmitFlags(c,48),C(n,49152,49152&I?16384:0),c}function z(e,t,r,n){var a=t.firstAccessor,i=t.getAccessor,o=t.setAccessor,s=S(0,0),c=ge.getMutableClone(e);ge.setEmitFlags(c,1568),ge.setSourceMapRange(c,a.name);var u=ge.createExpressionForPropertyName(ge.visitNode(a.name,R,ge.isPropertyName));ge.setEmitFlags(u,1552),ge.setSourceMapRange(u,a.name);var _=[];if(i){var l=J(i,void 0,void 0,r);ge.setSourceMapRange(l,ge.getSourceMapRange(i)),ge.setEmitFlags(l,512);var d=ge.createPropertyAssignment("get",l);ge.setCommentRange(d,ge.getCommentRange(i)),_.push(d)}if(o){var p=J(o,void 0,void 0,r);ge.setSourceMapRange(p,ge.getSourceMapRange(o)),ge.setEmitFlags(p,512);var f=ge.createPropertyAssignment("set",p);ge.setCommentRange(f,ge.getCommentRange(o)),_.push(f)}_.push(ge.createPropertyAssignment("enumerable",ge.createTrue()),ge.createPropertyAssignment("configurable",ge.createTrue()));var m=ge.createCall(ge.createPropertyAccess(ge.createIdentifier("Object"),"defineProperty"),void 0,[c,u,ge.createObjectLiteral(_,!0)]);return n&&ge.startOnNewLine(m),C(s,49152,49152&I?16384:0),m}function J(e,t,r,n){var a=O;O=void 0;var i=n&&ge.isClassLike(n)&&!ge.hasModifier(e,32)?S(16286,73):S(16286,65),o=ge.visitParameterList(e.parameters,R,w),s=j(e);return 16384&I&&!r&&(232===e.kind||190===e.kind)&&(r=ge.getGeneratedNameForNode(e)),C(i,49152,0),O=a,ge.setOriginalNode(ge.setTextRange(ge.createFunctionExpression(void 0,e.asteriskToken,r,void 0,o,void 0,s),t),e)}function j(e){var t,r,n,a=!1,i=!1,o=[],s=e.body;if(f(),ge.isBlock(s)&&(n=ge.addStandardPrologue(o,s.statements,!1)),h(o,e),y(o,e),v(o,e,!1),!a&&0<o.length&&(a=!0),ge.isBlock(s))n=ge.addCustomPrologue(o,s.statements,n,R),t=s.statements,ge.addRange(o,ge.visitNodes(s.statements,R,ge.isStatement,n)),!a&&s.multiLine&&(a=!0);else{ge.Debug.assert(191===e.kind),t=ge.moveRangeEnd(s,-1);var c=e.equalsGreaterThanToken;ge.nodeIsSynthesized(c)||ge.nodeIsSynthesized(s)||(ge.rangeEndIsOnSameLineAsRangeStart(c,s,b)?i=!0:a=!0);var u=ge.visitNode(s,R,ge.isExpression),_=ge.createReturn(u);ge.setTextRange(_,s),ge.setEmitFlags(_,1440),o.push(_),r=s}var l=w.endLexicalEnvironment();ge.addRange(o,l),F(o,e,!1),!a&&l&&l.length&&(a=!0);var d=ge.createBlock(ge.setTextRange(ge.createNodeArray(o),t),a);return ge.setTextRange(d,e.body),!a&&i&&ge.setEmitFlags(d,1),r&&ge.setTokenSourceMapRange(d,18,r),ge.setOriginalNode(d,e.body),d}function K(e){var t=ge.visitFunctionBody(e.body,n,w);return ge.updateBlock(t,ge.setTextRange(ge.createNodeArray(F(t.statements,e,!0)),t.statements))}function U(e,t){if(t)return ge.visitEachChild(e,R,w);var r=256&I?S(4032,512):S(3904,128),n=ge.visitEachChild(e,R,w);return C(r,0,0),n}function q(e,t){if(!t)switch(e.expression.kind){case 189:return ge.updateParen(e,q(e.expression,!1));case 198:return ge.updateParen(e,V(e.expression,!1))}return ge.visitEachChild(e,R,w)}function V(e,t){return ge.isDestructuringAssignment(e)?ge.flattenDestructuringAssignment(e,R,w,0,t):ge.visitEachChild(e,R,w)}function W(e){var t,r,n,a,i=e.name;if(ge.isBindingPattern(i))return H(e);if(!e.initializer&&(t=e,r=D.getNodeCheckFlags(t),n=131072&r,a=262144&r,!(0!=(64&I)||n&&a&&0!=(512&I))&&0==(2048&I)&&(!D.isDeclarationWithCollidingName(t)||a&&!n&&0==(3072&I)))){var o=ge.getMutableClone(e);return o.initializer=ge.createVoidZero(),o}return ge.visitEachChild(e,R,w)}function H(e){var t,r=S(32,0);return t=ge.isBindingPattern(e.name)?ge.flattenDestructuringBinding(e,R,w,0,void 0,0!=(32&r)):ge.visitEachChild(e,R,w),C(r,0,0),t}function G(e){O.labels.set(ge.idText(e.label),!0)}function X(e){O.labels.set(ge.idText(e.label),!1)}function o(e,t,r,n,a){var i=S(e,t),o=function(e,t,r){if(!te(e)){var n=void 0;O&&(n=O.allowedNonLabeledJumps,O.allowedNonLabeledJumps=6);var a=r?r(e,t,void 0):ge.restoreEnclosingLabel(ge.visitEachChild(e,R,w),t,O&&X);return O&&(O.allowedNonLabeledJumps=n),a}var i,o=ge.createUniqueName("_loop");switch(e.kind){case 218:case 219:case 220:var s=e.initializer;s&&231===s.kind&&(i=s)}var c=[],u=[];if(i&&3&ge.getCombinedNodeFlags(i))for(var _=0,l=i.declarations;_<l.length;_++){var d=l[_];oe(d,c,u)}var p=O;O={loopOutParameters:u},p&&(p.argumentsName&&(O.argumentsName=p.argumentsName),p.thisName&&(O.thisName=p.thisName),p.hoistedLocalVariables&&(O.hoistedLocalVariables=p.hoistedLocalVariables)),M();var f=ge.visitNode(e.statement,R,ge.isStatement,ge.liftToBlock),m=L(),g=O;if(O=p,u.length||m){var y=ge.isBlock(f)?f.statements.slice():[f];u.length&&ne(u,1,y),ge.addRange(y,m),f=ge.createBlock(y,!0)}ge.isBlock(f)?f.multiLine=!0:f=ge.createBlock([f],!0);var v=0!=(16777216&e.statement.transformFlags),h=v&&0!=(4&I),b=0;g.containsLexicalThis&&(b|=8),h&&(b|=262144);var x,k=[ge.createVariableStatement(void 0,ge.setEmitFlags(ge.createVariableDeclarationList([ge.createVariableDeclaration(o,void 0,ge.setEmitFlags(ge.createFunctionExpression(void 0,v?ge.createToken(39):void 0,void 0,void 0,c,void 0,f),b))]),2097152))];if(g.argumentsName&&(p?p.argumentsName=g.argumentsName:(x||(x=[])).push(ge.createVariableDeclaration(g.argumentsName,void 0,ge.createIdentifier("arguments")))),g.thisName&&(p?p.thisName=g.thisName:(x||(x=[])).push(ge.createVariableDeclaration(g.thisName,void 0,ge.createIdentifier("this")))),g.hoistedLocalVariables)if(p)p.hoistedLocalVariables=g.hoistedLocalVariables;else{x||(x=[]);for(var D=0,S=g.hoistedLocalVariables;D<S.length;D++){var C=S[D];x.push(ge.createVariableDeclaration(C))}}if(u.length){x||(x=[]);for(var T=0,E=u;T<E.length;T++){var N=E[T];x.push(ge.createVariableDeclaration(N.outParamName))}}x&&k.push(ge.createVariableStatement(void 0,ge.createVariableDeclarationList(x)));var A,P=function(e,t,r,n){var a=O,i=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=ge.createCall(e,void 0,ge.map(t,function(e){return e.name})),c=n?ge.createYield(ge.createToken(39),ge.setEmitFlags(s,8388608)):s;if(o)i.push(ge.createStatement(c)),ne(r.loopOutParameters,0,i);else{var u=ge.createUniqueName("state"),_=ge.createVariableStatement(void 0,ge.createVariableDeclarationList([ge.createVariableDeclaration(u,void 0,c)]));if(i.push(_),ne(r.loopOutParameters,0,i),8&r.nonLocalJumps){var l=void 0;a?(a.nonLocalJumps|=8,l=ge.createReturn(u)):l=ge.createReturn(ge.createPropertyAccess(u,"value")),i.push(ge.createIf(ge.createBinary(ge.createTypeOf(u),34,ge.createLiteral("object")),l))}if(2&r.nonLocalJumps&&i.push(ge.createIf(ge.createBinary(u,34,ge.createLiteral("break")),ge.createBreak())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var d=[];ie(r.labeledNonLocalBreaks,!0,u,a,d),ie(r.labeledNonLocalContinues,!1,u,a,d),i.push(ge.createSwitch(u,ge.createCaseBlock(d)))}}return i}(o,c,g,v);if(r)A=r(e,t,P);else{var F=ge.getMutableClone(e);F.statement=void 0,(F=ge.visitEachChild(F,R,w)).statement=ge.createBlock(P,!0),F.transformFlags=0,ge.aggregateTransformFlags(F),A=ge.restoreEnclosingLabel(F,t,O&&X)}return k.push(A),k}(r,n,a);return C(i,0,0),o}function Q(e,t){return o(0,256,e,t)}function Y(e,t){return o(3008,1280,e,t)}function Z(e,t){return o(1984,2304,e,t)}function $(e,t){return o(1984,2304,e,t,c.downlevelIteration?u:s)}function ee(e,t,r){var n,a,i=[];if(ge.isVariableDeclarationList(e.initializer)){3&e.initializer.flags&&pe();var o=ge.firstOrUndefined(e.initializer.declarations);if(o&&ge.isBindingPattern(o.name)){var s=ge.flattenDestructuringBinding(o,R,w,0,t),c=ge.setTextRange(ge.createVariableDeclarationList(s),e.initializer);ge.setOriginalNode(c,e.initializer);var u=s[0],_=ge.lastOrUndefined(s);ge.setSourceMapRange(c,ge.createRange(u.pos,_.end)),i.push(ge.createVariableStatement(void 0,c))}else i.push(ge.setTextRange(ge.createVariableStatement(void 0,ge.setOriginalNode(ge.setTextRange(ge.createVariableDeclarationList([ge.createVariableDeclaration(o?o.name:ge.createTempVariable(void 0),void 0,t)]),ge.moveRangePos(e.initializer,-1)),e.initializer)),ge.moveRangeEnd(e.initializer,-1)))}else{var l=ge.createAssignment(e.initializer,t);ge.isDestructuringAssignment(l)?(ge.aggregateTransformFlags(l),i.push(ge.createStatement(V(l,!1)))):(l.end=e.initializer.end,i.push(ge.setTextRange(ge.createStatement(ge.visitNode(l,R,ge.isExpression)),ge.moveRangeEnd(e.initializer,-1))))}if(r)ge.addRange(i,r);else{var d=ge.visitNode(e.statement,R,ge.isStatement,ge.liftToBlock);ge.isBlock(d)?(ge.addRange(i,d.statements),a=(n=d).statements):i.push(d)}return ge.setEmitFlags(ge.setTextRange(ge.createBlock(ge.setTextRange(ge.createNodeArray(i),a),!0),n),432)}function s(e,t,r){var n=ge.visitNode(e.expression,R,ge.isExpression),a=ge.createLoopVariable(),i=ge.isIdentifier(n)?ge.getGeneratedNameForNode(n):ge.createTempVariable(void 0);ge.setEmitFlags(n,48|ge.getEmitFlags(n));var o=ge.setTextRange(ge.createFor(ge.setEmitFlags(ge.setTextRange(ge.createVariableDeclarationList([ge.setTextRange(ge.createVariableDeclaration(a,void 0,ge.createLiteral(0)),ge.moveRangePos(e.expression,-1)),ge.setTextRange(ge.createVariableDeclaration(i,void 0,n),e.expression)]),e.expression),2097152),ge.setTextRange(ge.createLessThan(a,ge.createPropertyAccess(i,"length")),e.expression),ge.setTextRange(ge.createPostfixIncrement(a),e.expression),ee(e,ge.createElementAccess(i,a),r)),e);return ge.setEmitFlags(o,256),ge.setTextRange(o,e),ge.restoreEnclosingLabel(o,t,O&&X)}function u(e,t,r){var n=ge.visitNode(e.expression,R,ge.isExpression),a=ge.isIdentifier(n)?ge.getGeneratedNameForNode(n):ge.createTempVariable(void 0),i=ge.isIdentifier(n)?ge.getGeneratedNameForNode(a):ge.createTempVariable(void 0),o=ge.createUniqueName("e"),s=ge.getGeneratedNameForNode(o),c=ge.createTempVariable(void 0),u=ge.createValuesHelper(w,n,e.expression),_=ge.createCall(ge.createPropertyAccess(a,"next"),void 0,[]);k(o),k(c);var l=ge.setEmitFlags(ge.setTextRange(ge.createFor(ge.setEmitFlags(ge.setTextRange(ge.createVariableDeclarationList([ge.setTextRange(ge.createVariableDeclaration(a,void 0,u),e.expression),ge.createVariableDeclaration(i,void 0,_)]),e.expression),2097152),ge.createLogicalNot(ge.createPropertyAccess(i,"done")),ge.createAssignment(i,_),ee(e,ge.createPropertyAccess(i,"value"),r)),e),256);return ge.createTry(ge.createBlock([ge.restoreEnclosingLabel(l,t,O&&X)]),ge.createCatchClause(ge.createVariableDeclaration(s),ge.setEmitFlags(ge.createBlock([ge.createStatement(ge.createAssignment(o,ge.createObjectLiteral([ge.createPropertyAssignment("error",s)])))]),1)),ge.createBlock([ge.createTry(ge.createBlock([ge.setEmitFlags(ge.createIf(ge.createLogicalAnd(ge.createLogicalAnd(i,ge.createLogicalNot(ge.createPropertyAccess(i,"done"))),ge.createAssignment(c,ge.createPropertyAccess(a,"return"))),ge.createStatement(ge.createFunctionCall(c,a,[]))),1)]),void 0,ge.setEmitFlags(ge.createBlock([ge.setEmitFlags(ge.createIf(o,ge.createThrow(ge.createPropertyAccess(o,"error"))),1)]),1))]))}function te(e){return 0!=(65536&D.getNodeCheckFlags(e))}function re(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return ge.createBinary(n,58,r)}function ne(e,t,r){for(var n=0,a=e;n<a.length;n++){var i=a[n];r.push(ge.createStatement(re(i,t)))}}function ae(e,t,r,n){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=ge.createMap()),e.labeledNonLocalBreaks.set(r,n)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=ge.createMap()),e.labeledNonLocalContinues.set(r,n))}function ie(e,a,i,o,s){e&&e.forEach(function(e,t){var r=[];if(!o||o.labels&&o.labels.get(t)){var n=ge.createIdentifier(t);r.push(a?ge.createBreak(n):ge.createContinue(n))}else ae(o,a,t,e),r.push(ge.createReturn(i));s.push(ge.createCaseClause(ge.createLiteral(e),r))})}function oe(e,t,r){var n=e.name;if(ge.isBindingPattern(n))for(var a=0,i=n.elements;a<i.length;a++){var o=i[a];ge.isOmittedExpression(o)||oe(o,t,r)}else if(t.push(ge.createParameter(void 0,void 0,void 0,n)),2097152&D.getNodeCheckFlags(e)){var s=ge.createUniqueName("out_"+ge.idText(n));r.push({originalName:n,outParamName:s})}}function se(e,t){if(524288&e.transformFlags||97===e.expression.kind||ge.isSuperProperty(ge.skipOuterExpressions(e.expression))){var r=ge.createCallBinding(e.expression,k),n=r.target,a=r.thisArg;97===e.expression.kind&&ge.setEmitFlags(a,4);var i=void 0;if(i=524288&e.transformFlags?ge.createFunctionApply(ge.visitNode(n,E,ge.isExpression),ge.visitNode(a,R,ge.isExpression),ce(e.arguments,!1,!1,!1)):ge.createFunctionCall(ge.visitNode(n,E,ge.isExpression),ge.visitNode(a,R,ge.isExpression),ge.visitNodes(e.arguments,R,ge.isExpression),e),97===e.expression.kind){var o=ge.createThis();ge.setEmitFlags(o,4);var s=ge.createLogicalOr(i,o);i=t?ge.createAssignment(ge.createIdentifier("_this"),s):s}return ge.setOriginalNode(i,e)}return ge.visitEachChild(e,R,w)}function ce(e,t,a,i){var o=e.length,r=ge.flatten(ge.spanMap(e,_,function(e,t,r,n){return t(e,a,i&&n===o)}));if(c.downlevelIteration){if(1===r.length){var n=r[0];if(ge.isCallExpression(n)&&ge.isIdentifier(n.expression)&&4096&ge.getEmitFlags(n.expression)&&"___spread"===n.expression.escapedText)return r[0]}return ge.createSpreadHelper(w,r)}if(1===r.length){var s=e[0];return t&&ge.isSpreadElement(s)&&181!==s.expression.kind?ge.createArraySlice(r[0]):r[0]}return ge.createArrayConcat(r.shift(),r)}function _(e){return ge.isSpreadElement(e)?l:ue}function l(e){return ge.map(e,_e)}function ue(e,t,r){return ge.createArrayLiteral(ge.visitNodes(ge.createNodeArray(e,r),R,ge.isExpression),t)}function _e(e){return ge.visitNode(e.expression,R,ge.isExpression)}function le(e){var t=ge.getSourceTextOfNodeFromSourceFile(b,e),r=13===e.kind||16===e.kind;return t=(t=t.substring(1,t.length-(r?1:2))).replace(/\r\n?/g,"\n"),ge.setTextRange(ge.createLiteral(t),e)}function de(e){return 8&I&&!e?ge.createPropertyAccess(ge.createIdentifier("_super"),"prototype"):ge.createIdentifier("_super")}function pe(){0==(2&a)&&(a|=2,w.enableSubstitution(71))}function fe(){0==(1&a)&&(a|=1,w.enableSubstitution(99),w.enableEmitNotification(154),w.enableEmitNotification(153),w.enableEmitNotification(155),w.enableEmitNotification(156),w.enableEmitNotification(191),w.enableEmitNotification(190),w.enableEmitNotification(232))}function me(e,t){return ge.hasModifier(t,32)?ge.getInternalName(e):ge.createPropertyAccess(ge.getInternalName(e),"prototype")}};var ye={name:"typescript:extends",scoped:!1,priority:0,text:"\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = Object.setPrototypeOf ||\n                    ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                    function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n                return function (d, b) {\n                    extendStatics(d, b);\n                    function __() { this.constructor = d; }\n                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n                };\n            })();"},ve={name:"typescript:makeTemplateObject",scoped:!1,priority:0,text:'\n            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n                return cooked;\n            };'}}(ts||(ts={})),function(u){u.transformES5=function(e){var a,o,t=e.getCompilerOptions();1!==t.jsx&&3!==t.jsx||(a=e.onEmitNode,e.onEmitNode=function(e,t,r){switch(t.kind){case 255:case 256:case 254:var n=t.tagName;o[u.getOriginalNodeId(n)]=!0}a(e,t,r)},e.enableEmitNotification(255),e.enableEmitNotification(256),e.enableEmitNotification(254),o=[]);var s=e.onSubstituteNode;return e.onSubstituteNode=function(e,t){return t.id&&o&&o[t.id]?s(e,t):(t=s(e,t),u.isPropertyAccessExpression(t)?(i=c((a=t).name))?u.setTextRange(u.createElementAccess(a.expression,i),a):a:u.isPropertyAssignment(t)?(r=t,(n=u.isIdentifier(r.name)&&c(r.name))?u.updatePropertyAssignment(r,n,r.initializer):r):t);var r,n,a,i},e.enableSubstitution(183),e.enableSubstitution(268),function(e){return e};function c(e){var t=e.originalKeywordKind||(u.nodeIsSynthesized(e)?u.stringToToken(u.idText(e)):void 0);if(72<=t&&t<=107)return u.setTextRange(u.createLiteral(e),e)}}}(ts||(ts={})),function(Ae){var e,t,r,n,a,i,o,s,c,u;(t=e||(e={}))[t.Nop=0]="Nop",t[t.Statement=1]="Statement",t[t.Assign=2]="Assign",t[t.Break=3]="Break",t[t.BreakWhenTrue=4]="BreakWhenTrue",t[t.BreakWhenFalse=5]="BreakWhenFalse",t[t.Yield=6]="Yield",t[t.YieldStar=7]="YieldStar",t[t.Return=8]="Return",t[t.Throw=9]="Throw",t[t.Endfinally=10]="Endfinally",(n=r||(r={}))[n.Open=0]="Open",n[n.Close=1]="Close",(i=a||(a={}))[i.Exception=0]="Exception",i[i.With=1]="With",i[i.Switch=2]="Switch",i[i.Loop=3]="Loop",i[i.Labeled=4]="Labeled",(s=o||(o={}))[s.Try=0]="Try",s[s.Catch=1]="Catch",s[s.Finally=2]="Finally",s[s.Done=3]="Done",(u=c||(c={}))[u.Next=0]="Next",u[u.Throw=1]="Throw",u[u.Return=2]="Return",u[u.Break=3]="Break",u[u.Yield=4]="Yield",u[u.YieldStar=5]="YieldStar",u[u.Catch=6]="Catch",u[u.Endfinally=7]="Endfinally",Ae.transformGenerators=function(h){var b,x,y,v,k,D,S,C,T,E,N=h.resumeLexicalEnvironment,A=h.endLexicalEnvironment,n=h.hoistFunctionDeclaration,P=h.hoistVariableDeclaration,e=h.getCompilerOptions(),s=Ae.getEmitScriptTarget(e),i=h.getEmitResolver(),a=h.onSubstituteNode;h.onSubstituteNode=function(e,t){return t=a(e,t),1===e?(r=t,Ae.isIdentifier(r)?function(e){if(!Ae.isGeneratedIdentifier(e)&&b&&b.has(Ae.idText(e))){var t=Ae.getOriginalNode(e);if(Ae.isIdentifier(t)&&t.parent){var r=i.getReferencedValueDeclaration(t);if(r){var n=x[Ae.getOriginalNodeId(r)];if(n){var a=Ae.getMutableClone(n);return Ae.setSourceMapRange(a,e),Ae.setCommentRange(a,e),a}}}}return e}(r):r):t;var r};var F,w,I,O,M,L,R,B,z,J,j,K,U=1,q=0,V=0;return function(e){if(e.isDeclarationFile||0==(512&e.transformFlags))return e;var t=Ae.visitEachChild(e,W,h);return Ae.addEmitHelpers(t,h.readEmitHelpers()),t};function W(e){var t=e.transformFlags;return v?function(e){switch(e.kind){case 216:return a=e,v?(m(),a=Ae.visitEachChild(a,W,h),oe(),a):Ae.visitEachChild(a,W,h);case 217:return n=e,v?(m(),n=Ae.visitEachChild(n,W,h),oe(),n):Ae.visitEachChild(n,W,h);case 225:return r=e,v&&te({kind:2,isScript:!0,breakLabel:-1}),r=Ae.visitEachChild(r,W,h),v&&se(),r;case 226:return t=e,v&&te({kind:4,isScript:!0,labelText:Ae.idText(t.label),breakLabel:-1}),t=Ae.visitEachChild(t,W,h),v&&ce(),t;default:return o(e)}var t,r,n,a}(e):y?o(e):256&t?function(e){switch(e.kind){case 232:return c(e);case 190:return u(e);default:return Ae.Debug.failBadSyntaxKind(e),Ae.visitEachChild(e,W,h)}}(e):512&t?Ae.visitEachChild(e,W,h):e}function o(e){switch(e.kind){case 232:return c(e);case 190:return u(e);case 155:case 156:return a=e,i=y,o=v,v=y=!1,a=Ae.visitEachChild(a,W,h),y=i,v=o,a;case 212:return function(e){if(16777216&e.transformFlags)X(e.declarationList);else{if(1048576&Ae.getEmitFlags(e))return e;for(var t=0,r=e.declarationList.declarations;t<r.length;t++){var n=r[t];P(n.name)}var a=Ae.getInitializedVariables(e.declarationList);if(0!==a.length)return Ae.setSourceMapRange(Ae.createStatement(Ae.inlineExpressions(Ae.map(a,p))),e)}}(e);case 218:return function(e){v&&m();var t=e.initializer;if(t&&Ae.isVariableDeclarationList(t)){for(var r=0,n=t.declarations;r<n.length;r++){var a=n[r];P(a.name)}var i=Ae.getInitializedVariables(t);e=Ae.updateFor(e,0<i.length?Ae.inlineExpressions(Ae.map(i,p)):void 0,Ae.visitNode(e.condition,W,Ae.isExpression),Ae.visitNode(e.incrementor,W,Ae.isExpression),Ae.visitNode(e.statement,W,Ae.isStatement,Ae.liftToBlock))}else e=Ae.visitEachChild(e,W,h);return v&&oe(),e}(e);case 219:return function(e){v&&m();var t=e.initializer;if(Ae.isVariableDeclarationList(t)){for(var r=0,n=t.declarations;r<n.length;r++){var a=n[r];P(a.name)}e=Ae.updateForIn(e,t.declarations[0].name,Ae.visitNode(e.expression,W,Ae.isExpression),Ae.visitNode(e.statement,W,Ae.isStatement,Ae.liftToBlock))}else e=Ae.visitEachChild(e,W,h);return v&&oe(),e}(e);case 222:return function(e){if(v){var t=de(e.label&&Ae.idText(e.label));if(0<t)return ge(t,e)}return Ae.visitEachChild(e,W,h)}(e);case 221:return function(e){if(v){var t=pe(e.label&&Ae.idText(e.label));if(0<t)return ge(t,e)}return Ae.visitEachChild(e,W,h)}(e);case 223:return t=e,r=Ae.visitNode(t.expression,W,Ae.isExpression),n=t,Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral(r?[me(2),r]:[me(2)])),n);default:return 16777216&e.transformFlags?function(e){switch(e.kind){case 198:return function(e){switch(Ae.getExpressionAssociativity(e)){case 0:return function(e){if(Q(e.right)){if(Ae.isLogicalOperator(e.operatorToken.kind))return r=e,n=$(),he(a=Z(),Ae.visitNode(r.left,W,Ae.isExpression),r.left),53===r.operatorToken.kind?ke(n,a,r.left):xe(n,a,r.left),he(a,Ae.visitNode(r.right,W,Ae.isExpression),r.right),ee(n),a;if(26===e.operatorToken.kind)return function(e){var t=[];return r(e.left),r(e.right),Ae.inlineExpressions(t);function r(e){Ae.isBinaryExpression(e)&&26===e.operatorToken.kind?(r(e.left),r(e.right)):(Q(e)&&0<t.length&&(De(1,[Ae.createStatement(Ae.inlineExpressions(t))]),t=[]),t.push(Ae.visitNode(e,W,Ae.isExpression)))}}(e);var t=Ae.getMutableClone(e);return t.left=Y(Ae.visitNode(e.left,W,Ae.isExpression)),t.right=Ae.visitNode(e.right,W,Ae.isExpression),t}var r,n,a;return Ae.visitEachChild(e,W,h)}(e);case 1:return function(e){var t,r=e.left,n=e.right;if(Q(n)){var a=void 0;switch(r.kind){case 183:a=Ae.updatePropertyAccess(r,Y(Ae.visitNode(r.expression,W,Ae.isLeftHandSideExpression)),r.name);break;case 184:a=Ae.updateElementAccess(r,Y(Ae.visitNode(r.expression,W,Ae.isLeftHandSideExpression)),Y(Ae.visitNode(r.argumentExpression,W,Ae.isExpression)));break;default:a=Ae.visitNode(r,W,Ae.isExpression)}var i=e.operatorToken.kind;return 59<=(t=i)&&t<=70?Ae.setTextRange(Ae.createAssignment(a,Ae.setTextRange(Ae.createBinary(Y(a),function(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}(i),Ae.visitNode(n,W,Ae.isExpression)),e)),e):Ae.updateBinary(e,a,Ae.visitNode(n,W,Ae.isExpression))}return Ae.visitEachChild(e,W,h)}(e);default:Ae.Debug.fail("Unknown associativity.")}}(e);case 199:return function(e){if(Q(e.whenTrue)||Q(e.whenFalse)){var t=$(),r=$(),n=Z();return ke(t,Ae.visitNode(e.condition,W,Ae.isExpression),e.condition),he(n,Ae.visitNode(e.whenTrue,W,Ae.isExpression),e.whenTrue),be(r),ee(t),he(n,Ae.visitNode(e.whenFalse,W,Ae.isExpression),e.whenFalse),ee(r),n}return Ae.visitEachChild(e,W,h)}(e);case 201:return function(e){var t,r=$(),n=Ae.visitNode(e.expression,W,Ae.isExpression);if(e.asteriskToken){var a=0==(8388608&Ae.getEmitFlags(e.expression))?Ae.createValuesHelper(h,n,e):n;De(7,[a],e)}else De(6,[n],e);return ee(r),t=e,Ae.setTextRange(Ae.createCall(Ae.createPropertyAccess(O,"sent"),void 0,[]),t)}(e);case 181:return l((t=e).elements,void 0,void 0,t.multiLine);case 182:return function(a){var e=a.properties,i=a.multiLine,t=f(e),o=Z();he(o,Ae.createObjectLiteral(Ae.visitNodes(e,W,Ae.isObjectLiteralElementLike,0,t),i));var r=Ae.reduceLeft(e,function(e,t){Q(t)&&0<e.length&&(ve(Ae.createStatement(Ae.inlineExpressions(e))),e=[]);var r=Ae.createExpressionForObjectLiteralElementLike(a,t,o),n=Ae.visitNode(r,W,Ae.isExpression);return n&&(i&&Ae.startOnNewLine(n),e.push(n)),e},[],t);return r.push(i?Ae.startOnNewLine(Ae.getMutableClone(o)):o),Ae.inlineExpressions(r)}(e);case 184:return function(e){if(Q(e.argumentExpression)){var t=Ae.getMutableClone(e);return t.expression=Y(Ae.visitNode(e.expression,W,Ae.isLeftHandSideExpression)),t.argumentExpression=Ae.visitNode(e.argumentExpression,W,Ae.isExpression),t}return Ae.visitEachChild(e,W,h)}(e);case 185:return function(e){if(!Ae.isImportCall(e)&&Ae.forEach(e.arguments,Q)){var t=Ae.createCallBinding(e.expression,P,s,!0),r=t.target,n=t.thisArg;return Ae.setOriginalNode(Ae.createFunctionApply(Y(Ae.visitNode(r,W,Ae.isLeftHandSideExpression)),n,l(e.arguments),e),e)}return Ae.visitEachChild(e,W,h)}(e);case 186:return function(e){if(Ae.forEach(e.arguments,Q)){var t=Ae.createCallBinding(Ae.createPropertyAccess(e.expression,"bind"),P),r=t.target,n=t.thisArg;return Ae.setOriginalNode(Ae.setTextRange(Ae.createNew(Ae.createFunctionApply(Y(Ae.visitNode(r,W,Ae.isExpression)),n,l(e.arguments,Ae.createVoidZero())),void 0,[]),e),e)}return Ae.visitEachChild(e,W,h)}(e);default:return Ae.visitEachChild(e,W,h)}var t}(e):33554944&e.transformFlags?Ae.visitEachChild(e,W,h):e}var t,r,n,a,i,o}function c(e){if(e.asteriskToken)e=Ae.setOriginalNode(Ae.setTextRange(Ae.createFunctionDeclaration(void 0,e.modifiers,void 0,e.name,void 0,Ae.visitParameterList(e.parameters,W,h),void 0,_(e.body)),e),e);else{var t=y,r=v;v=y=!1,e=Ae.visitEachChild(e,W,h),y=t,v=r}return y?void n(e):e}function u(e){if(e.asteriskToken)e=Ae.setOriginalNode(Ae.setTextRange(Ae.createFunctionExpression(void 0,void 0,e.name,void 0,Ae.visitParameterList(e.parameters,W,h),void 0,_(e.body)),e),e);else{var t=y,r=v;v=y=!1,e=Ae.visitEachChild(e,W,h),y=t,v=r}return e}function _(e){var t=[],r=y,n=v,a=k,i=D,o=S,s=C,c=T,u=E,_=U,l=F,d=w,p=I,f=O;y=!0,v=!1,U=1,I=w=F=E=T=C=S=D=k=void 0,O=Ae.createTempVariable(void 0),N();var m=Ae.addPrologue(t,e.statements,!1,W);H(e.statements,m);var g=function(){V=q=0,R=L=!1,K=j=J=z=B=M=void 0;var e,t,r=function(){if(F){for(var e=0;e<F.length;e++)Te(e);Se(F.length)}else Se(0);if(B){var t=Ae.createPropertyAccess(O,"label"),r=Ae.createSwitch(t,Ae.createCaseBlock(B));return[Ae.startOnNewLine(r)]}return z||[]}();return e=h,t=Ae.setEmitFlags(Ae.createFunctionExpression(void 0,void 0,void 0,void 0,[Ae.createParameter(void 0,void 0,void 0,O)],void 0,Ae.createBlock(r,0<r.length)),524288),e.requestEmitHelper(Pe),Ae.createCall(Ae.getHelperName("__generator"),void 0,[Ae.createThis(),t])}();return Ae.addRange(t,A()),t.push(Ae.createReturn(g)),y=r,v=n,k=a,D=i,S=o,C=s,T=c,E=u,U=_,F=l,w=d,I=p,O=f,Ae.setTextRange(Ae.createBlock(t,e.multiLine),e)}function l(e,n,t,a){var i,r=f(e);if(0<r){i=Z();var o=Ae.visitNodes(e,W,Ae.isExpression,0,r);he(i,Ae.createArrayLiteral(n?[n].concat(o):o)),n=void 0}var s=Ae.reduceLeft(e,function(e,t){if(Q(t)&&0<e.length){var r=void 0!==i;i||(i=Z()),he(i,r?Ae.createArrayConcat(i,[Ae.createArrayLiteral(e,a)]):Ae.createArrayLiteral(n?[n].concat(e):e,a)),n=void 0,e=[]}return e.push(Ae.visitNode(t,W,Ae.isExpression)),e},[],r);return i?Ae.createArrayConcat(i,[Ae.createArrayLiteral(s,a)]):Ae.setTextRange(Ae.createArrayLiteral(n?[n].concat(s):s,a),t)}function H(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)d(e[n])}function G(e){Ae.isBlock(e)?H(e.statements):d(e)}function d(e){var t=v;v||(v=Q(e)),function(e){switch(e.kind){case 211:return Q(v=e)?H(v.statements):ve(Ae.visitNode(v,W,Ae.isStatement));case 214:return y=e,ve(Ae.visitNode(y,W,Ae.isStatement));case 215:return function(e){if(Q(e))if(Q(e.thenStatement)||Q(e.elseStatement)){var t=$(),r=e.elseStatement?$():void 0;ke(e.elseStatement?r:t,Ae.visitNode(e.expression,W,Ae.isExpression),e.expression),G(e.thenStatement),e.elseStatement&&(be(t),ee(r),G(e.elseStatement)),ee(t)}else ve(Ae.visitNode(e,W,Ae.isStatement));else ve(Ae.visitNode(e,W,Ae.isStatement))}(e);case 216:return function(e){if(Q(e)){var t=$(),r=$();ie(t),ee(r),G(e.statement),ee(t),xe(r,Ae.visitNode(e.expression,W,Ae.isExpression)),oe()}else ve(Ae.visitNode(e,W,Ae.isStatement))}(e);case 217:return function(e){if(Q(e)){var t=$(),r=ie(t);ee(t),ke(r,Ae.visitNode(e.expression,W,Ae.isExpression)),G(e.statement),be(t),oe()}else ve(Ae.visitNode(e,W,Ae.isStatement))}(e);case 218:return function(e){if(Q(e)){var t=$(),r=$(),n=ie(r);if(e.initializer){var a=e.initializer;Ae.isVariableDeclarationList(a)?X(a):ve(Ae.setTextRange(Ae.createStatement(Ae.visitNode(a,W,Ae.isExpression)),a))}ee(t),e.condition&&ke(n,Ae.visitNode(e.condition,W,Ae.isExpression)),G(e.statement),ee(r),e.incrementor&&ve(Ae.setTextRange(Ae.createStatement(Ae.visitNode(e.incrementor,W,Ae.isExpression)),e.incrementor)),be(t),oe()}else ve(Ae.visitNode(e,W,Ae.isStatement))}(e);case 219:return function(e){if(Q(e)){var t=Z(),r=Z(),n=Ae.createLoopVariable(),a=e.initializer;P(n),he(t,Ae.createArrayLiteral()),ve(Ae.createForIn(r,Ae.visitNode(e.expression,W,Ae.isExpression),Ae.createStatement(Ae.createCall(Ae.createPropertyAccess(t,"push"),void 0,[r])))),he(n,Ae.createLiteral(0));var i=$(),o=$(),s=ie(o);ee(i),ke(s,Ae.createLessThan(n,Ae.createPropertyAccess(t,"length")));var c=void 0;if(Ae.isVariableDeclarationList(a)){for(var u=0,_=a.declarations;u<_.length;u++){var l=_[u];P(l.name)}c=Ae.getSynthesizedClone(a.declarations[0].name)}else c=Ae.visitNode(a,W,Ae.isExpression),Ae.Debug.assert(Ae.isLeftHandSideExpression(c));he(c,Ae.createElementAccess(t,n)),G(e.statement),ee(o),ve(Ae.createStatement(Ae.createPostfixIncrement(n))),be(i),oe()}else ve(Ae.visitNode(e,W,Ae.isStatement))}(e);case 221:return 0<(g=pe((m=e).label?Ae.idText(m.label):void 0))?be(g,m):ve(m);case 222:return 0<(f=de((p=e).label?Ae.idText(p.label):void 0))?be(f,p):ve(p);case 223:return d=e,De(8,[Ae.visitNode(d.expression,W,Ae.isExpression)],d);case 224:return Q(c=e)?(u=Y(Ae.visitNode(c.expression,W,Ae.isExpression)),_=$(),l=$(),ee(_),te({kind:1,expression:u,startLabel:_,endLabel:l}),G(c.statement),Ae.Debug.assert(1===ae()),ee(re().endLabel)):ve(Ae.visitNode(c,W,Ae.isStatement));case 225:return function(e){if(Q(e.caseBlock)){for(var t=e.caseBlock,r=t.clauses.length,n=(te({kind:2,isScript:!1,breakLabel:d=$()}),d),a=Y(Ae.visitNode(e.expression,W,Ae.isExpression)),i=[],o=-1,s=0;s<r;s++){var c=t.clauses[s];i.push($()),265===c.kind&&-1===o&&(o=s)}for(var u=0,_=[];u<r;){for(var l=0,s=u;s<r;s++){var c=t.clauses[s];if(264===c.kind){if(Q(c.expression)&&0<_.length)break;_.push(Ae.createCaseClause(Ae.visitNode(c.expression,W,Ae.isExpression),[ge(i[s],c.expression)]))}else l++}_.length&&(ve(Ae.createSwitch(a,Ae.createCaseBlock(_))),u+=_.length,_=[]),0<l&&(u+=l,l=0)}be(0<=o?i[o]:n);for(var s=0;s<r;s++)ee(i[s]),H(t.clauses[s].statements);se()}else ve(Ae.visitNode(e,W,Ae.isStatement));var d}(e);case 226:return Q(i=e)?(o=Ae.idText(i.label),s=$(),te({kind:4,isScript:!1,labelText:o,breakLabel:s}),G(i.statement),ce()):ve(Ae.visitNode(i,W,Ae.isStatement));case 227:return a=e,De(9,[Ae.visitNode(a.expression,W,Ae.isExpression)],a);case 228:return Q(t=e)?(r=$(),n=$(),ee(r),te({kind:0,state:0,startLabel:r,endLabel:n}),ye(),G(t.tryBlock),t.catchClause&&(function(e){var t;if(Ae.Debug.assert(0===ae()),Ae.isGeneratedIdentifier(e.name))t=e.name,P(e.name);else{var r=Ae.idText(e.name);t=Z(r),b||(b=Ae.createMap(),x=[],h.enableSubstitution(71)),b.set(r,!0),x[Ae.getOriginalNodeId(e)]=t}var n=ne();Ae.Debug.assert(n.state<1),be(n.endLabel);var a=$();ee(a),n.state=1,n.catchVariable=t,n.catchLabel=a,he(t,Ae.createCall(Ae.createPropertyAccess(O,"sent"),void 0,[])),ye()}(t.catchClause.variableDeclaration),G(t.catchClause.block)),t.finallyBlock&&(function(){Ae.Debug.assert(0===ae());var e=ne();Ae.Debug.assert(e.state<2),be(e.endLabel);var t=$();ee(t),e.state=2,e.finallyLabel=t}(),G(t.finallyBlock)),function(){Ae.Debug.assert(0===ae());var e=re();e.state<2?be(e.endLabel):De(10),ee(e.endLabel),ye(),e.state=3}()):ve(Ae.visitEachChild(t,W,h));default:return ve(Ae.visitNode(e,W,Ae.isStatement))}var t,r,n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v}(e),v=t}function X(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t],a=Ae.getSynthesizedClone(n.name);Ae.setCommentRange(a,n.name),P(a)}for(var i=Ae.getInitializedVariables(e),o=i.length,s=0,c=[];s<o;){for(var u=s;u<o&&!(Q((n=i[u]).initializer)&&0<c.length);u++)c.push(p(n));c.length&&(ve(Ae.createStatement(Ae.inlineExpressions(c))),s+=c.length,c=[])}}function p(e){return Ae.setSourceMapRange(Ae.createAssignment(Ae.setSourceMapRange(Ae.getSynthesizedClone(e.name),e.name),Ae.visitNode(e.initializer,W,Ae.isExpression)),e)}function Q(e){return e&&0!=(16777216&e.transformFlags)}function f(e){for(var t=e.length,r=0;r<t;r++)if(Q(e[r]))return r;return-1}function Y(e){var t;return Ae.isGeneratedIdentifier(e)||4096&Ae.getEmitFlags(e)?e:(he(t=Ae.createTempVariable(P),e,e),t)}function Z(e){var t=e?Ae.createUniqueName(e):Ae.createTempVariable(void 0);return P(t),t}function $(){T||(T=[]);var e=U;return U++,T[e]=-1,e}function ee(e){Ae.Debug.assert(void 0!==T,"No labels were defined."),T[e]=F?F.length:0}function te(e){k||(k=[],S=[],D=[],C=[]);var t=S.length;return S[t]=0,D[t]=F?F.length:0,k[t]=e,C.push(e),t}function re(){var e=ne();Ae.Debug.assert(void 0!==e,"beginBlock was never called.");var t=S.length;return S[t]=1,D[t]=F?F.length:0,k[t]=e,C.pop(),e}function ne(){return Ae.lastOrUndefined(C)}function ae(){var e=ne();return e&&e.kind}function m(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var t=$();return te({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function oe(){Ae.Debug.assert(3===ae());var e=re(),t=e.breakLabel;e.isScript||ee(t)}function se(){Ae.Debug.assert(2===ae());var e=re(),t=e.breakLabel;e.isScript||ee(t)}function ce(){Ae.Debug.assert(4===ae());var e=re();e.isScript||ee(e.breakLabel)}function g(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function _e(e){return 3===e.kind}function le(e,t){for(var r=t;0<=r;r--){var n=C[r];if(!ue(n))break;if(n.labelText===e)return!0}return!1}function de(e){if(C)if(e)for(var t=C.length-1;0<=t;t--){if(ue(r=C[t])&&r.labelText===e)return r.breakLabel;if(g(r)&&le(e,t-1))return r.breakLabel}else for(t=C.length-1;0<=t;t--){var r;if(g(r=C[t]))return r.breakLabel}return 0}function pe(e){if(C)if(e){for(var t=C.length-1;0<=t;t--)if(_e(r=C[t])&&le(e,t-1))return r.continueLabel}else for(t=C.length-1;0<=t;t--){var r;if(_e(r=C[t]))return r.continueLabel}return 0}function fe(e){if(0<e){void 0===E&&(E=[]);var t=Ae.createLiteral(-1);return void 0===E[e]?E[e]=[t]:E[e].push(t),t}return Ae.createOmittedExpression()}function me(e){var t=Ae.createLiteral(e);return Ae.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"}}(e)),t}function ge(e,t){return Ae.Debug.assertLessThan(0,e,"Invalid label"),Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral([me(3),fe(e)])),t)}function ye(){De(0)}function ve(e){e?De(1,[e]):ye()}function he(e,t,r){De(2,[e,t],r)}function be(e,t){De(3,[e],t)}function xe(e,t,r){De(4,[e,t],r)}function ke(e,t,r){De(5,[e,t],r)}function De(e,t,r){void 0===F&&(F=[],w=[],I=[]),void 0===T&&ee($());var n=F.length;F[n]=e,w[n]=t,I[n]=r}function Se(e){(function(e){if(!R)return!0;if(!T||!E)return!1;for(var t=0;t<T.length;t++)if(T[t]===e&&E[t])return!0;return!1})(e)&&(Ce(e),Ne(K=void 0,void 0)),z&&B&&r(!1),function(){if(void 0!==E&&void 0!==M)for(var e=0;e<M.length;e++){var t=M[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var a=n[r],i=E[a];if(void 0!==i)for(var o=0,s=i;o<s.length;o++){var c=s[o];c.text=String(e)}}}}()}function r(e){if(B||(B=[]),z){if(K)for(var t=K.length-1;0<=t;t--){var r=K[t];z=[Ae.createWith(r.expression,Ae.createBlock(z))]}if(j){var n=j.startLabel,a=j.catchLabel,i=j.finallyLabel,o=j.endLabel;z.unshift(Ae.createStatement(Ae.createCall(Ae.createPropertyAccess(Ae.createPropertyAccess(O,"trys"),"push"),void 0,[Ae.createArrayLiteral([fe(n),fe(a),fe(i),fe(o)])]))),j=void 0}e&&z.push(Ae.createStatement(Ae.createAssignment(Ae.createPropertyAccess(O,"label"),Ae.createLiteral(V+1))))}B.push(Ae.createCaseClause(Ae.createLiteral(V),z||[])),z=void 0}function Ce(e){if(T)for(var t=0;t<T.length;t++)T[t]===e&&(z&&(r(!L),R=L=!1,V++),void 0===M&&(M=[]),void 0===M[V]?M[V]=[t]:M[V].push(t))}function Te(e){if(Ce(e),function(e){if(k)for(;q<S.length&&D[q]<=e;q++){var t=k[q],r=S[q];switch(t.kind){case 0:0===r?(J||(J=[]),z||(z=[]),J.push(j),j=t):1===r&&(j=J.pop());break;case 1:0===r?(K||(K=[]),K.push(t)):1===r&&K.pop()}}}(e),!L){R=L=!1;var t=F[e];if(0!==t){if(10===t)return L=!0,void Ee(Ae.createReturn(Ae.createArrayLiteral([me(7)])));var r=w[e];if(1===t)return Ee(r[0]);var n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h,b=I[e];switch(t){case 2:return y=r[0],v=r[1],h=b,void Ee(Ae.setTextRange(Ae.createStatement(Ae.createAssignment(y,v)),h));case 3:return m=r[0],g=b,L=!0,void Ee(Ae.setEmitFlags(Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral([me(3),fe(m)])),g),384));case 4:return d=r[0],p=r[1],f=b,void Ee(Ae.setEmitFlags(Ae.createIf(p,Ae.setEmitFlags(Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral([me(3),fe(d)])),f),384)),1));case 5:return u=r[0],_=r[1],l=b,void Ee(Ae.setEmitFlags(Ae.createIf(Ae.createLogicalNot(_),Ae.setEmitFlags(Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral([me(3),fe(u)])),l),384)),1));case 6:return s=r[0],c=b,L=!0,void Ee(Ae.setEmitFlags(Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral(s?[me(4),s]:[me(4)])),c),384));case 7:return i=r[0],o=b,L=!0,void Ee(Ae.setEmitFlags(Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral([me(5),i])),o),384));case 8:return Ne(r[0],b);case 9:return n=r[0],a=b,R=L=!0,void Ee(Ae.setTextRange(Ae.createThrow(n),a))}}}}function Ee(e){e&&(z?z.push(e):z=[e])}function Ne(e,t){R=L=!0,Ee(Ae.setEmitFlags(Ae.setTextRange(Ae.createReturn(Ae.createArrayLiteral(e?[me(2),e]:[me(2)])),t),384))}};var Pe={name:"typescript:generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (_) try {\n                        if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [0, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'}}(ts||(ts={})),function(W){W.transformModule=function(_){var i=_.startLexicalEnvironment,o=_.endLexicalEnvironment,a=_.hoistVariableDeclaration,p=_.getCompilerOptions(),f=_.getEmitResolver(),m=_.getEmitHost(),c=W.getEmitScriptTarget(p),u=W.getEmitModuleKind(p),r=_.onSubstituteNode,n=_.onEmitNode;_.onSubstituteNode=function(e,t){return(t=r(e,t)).id&&s[t.id]?t:1===e?function(e){switch(e.kind){case 71:return q(e);case 198:return function(e){if(W.isAssignmentOperator(e.operatorToken.kind)&&W.isIdentifier(e.left)&&!W.isGeneratedIdentifier(e.left)&&!W.isLocalName(e.left)&&!W.isDeclarationNameOfEnumOrNamespace(e.left)){var t=V(e.left);if(t){for(var r=e,n=0,a=t;n<a.length;n++){var i=a[n];s[W.getNodeId(r)]=!0,r=K(i,r,e)}return r}}return e}(e);case 197:case 196:return function(e){if((43===e.operator||44===e.operator)&&W.isIdentifier(e.operand)&&!W.isGeneratedIdentifier(e.operand)&&!W.isLocalName(e.operand)&&!W.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=V(e.operand);if(t){for(var r=197===e.kind?W.setTextRange(W.createBinary(e.operand,W.createToken(43===e.operator?59:60),W.createLiteral(1)),e):e,n=0,a=t;n<a.length;n++){var i=a[n];s[W.getNodeId(r)]=!0,r=K(i,r)}return r}}return e}(e)}return e}(t):W.isShorthandPropertyAssignment(t)?function(e){var t=e.name,r=q(t);if(r!==t){if(e.objectAssignmentInitializer){var n=W.createAssignment(r,e.objectAssignmentInitializer);return W.setTextRange(W.createPropertyAssignment(t,n),e)}return W.setTextRange(W.createPropertyAssignment(t,r),e)}return e}(t):t},_.onEmitNode=function(e,t,r){272===t.kind?(g=t,y=d[W.getOriginalNodeId(g)],s=[],n(e,t,r),s=y=g=void 0):n(e,t,r)},_.enableSubstitution(71),_.enableSubstitution(198),_.enableSubstitution(196),_.enableSubstitution(197),_.enableSubstitution(269),_.enableEmitNotification(272);var g,y,s,l,d=[],v=[];return function(e){if(e.isDeclarationFile||!(W.isEffectiveExternalModule(e,p)||67108864&e.transformFlags))return e;g=e,y=W.collectExternalModuleInfo(e,f,p),d[W.getOriginalNodeId(e)]=y;var t=function(e){switch(e){case W.ModuleKind.AMD:return x;case W.ModuleKind.UMD:return k;default:return b}}(u)(e);return y=g=void 0,l=!1,W.aggregateTransformFlags(t)};function h(){return!(y.exportEquals||!W.isExternalModule(g))}function b(e){i();var t=[],r=W.getStrictOptionValue(p,"alwaysStrict")||!p.noImplicitUseStrict&&W.isExternalModule(g),n=W.addPrologue(t,e.statements,r,E);h()&&W.append(t,j()),W.append(t,W.visitNode(y.externalHelpersImportDeclaration,E,W.isStatement)),W.addRange(t,W.visitNodes(e.statements,E,W.isStatement,n)),T(t,!1),W.addRange(t,o());var a=W.updateSourceFileNode(e,W.setTextRange(W.createNodeArray(t),e.statements));return y.hasExportStarsToExportValues&&!p.importHelpers&&W.addEmitHelper(a,H),W.addEmitHelpers(a,_.readEmitHelpers()),a}function x(e){var t=W.createIdentifier("define"),r=W.tryGetModuleNameFromFile(e,m,p),n=D(e,!0),a=n.aliasedModuleNames,i=n.unaliasedModuleNames,o=n.importAliasNames,s=W.updateSourceFileNode(e,W.setTextRange(W.createNodeArray([W.createStatement(W.createCall(t,void 0,(r?[r]:[]).concat([W.createArrayLiteral([W.createLiteral("require"),W.createLiteral("exports")].concat(a,i)),W.createFunctionExpression(void 0,void 0,void 0,void 0,[W.createParameter(void 0,void 0,void 0,"require"),W.createParameter(void 0,void 0,void 0,"exports")].concat(o),void 0,C(e))])))]),e.statements));return W.addEmitHelpers(s,_.readEmitHelpers()),s}function k(e){var t=D(e,!1),r=t.aliasedModuleNames,n=t.unaliasedModuleNames,a=t.importAliasNames,i=W.tryGetModuleNameFromFile(e,m,p),o=W.createFunctionExpression(void 0,void 0,void 0,void 0,[W.createParameter(void 0,void 0,void 0,"factory")],void 0,W.setTextRange(W.createBlock([W.createIf(W.createLogicalAnd(W.createTypeCheck(W.createIdentifier("module"),"object"),W.createTypeCheck(W.createPropertyAccess(W.createIdentifier("module"),"exports"),"object")),W.createBlock([W.createVariableStatement(void 0,[W.createVariableDeclaration("v",void 0,W.createCall(W.createIdentifier("factory"),void 0,[W.createIdentifier("require"),W.createIdentifier("exports")]))]),W.setEmitFlags(W.createIf(W.createStrictInequality(W.createIdentifier("v"),W.createIdentifier("undefined")),W.createStatement(W.createAssignment(W.createPropertyAccess(W.createIdentifier("module"),"exports"),W.createIdentifier("v")))),1)]),W.createIf(W.createLogicalAnd(W.createTypeCheck(W.createIdentifier("define"),"function"),W.createPropertyAccess(W.createIdentifier("define"),"amd")),W.createBlock([W.createStatement(W.createCall(W.createIdentifier("define"),void 0,(i?[i]:[]).concat([W.createArrayLiteral([W.createLiteral("require"),W.createLiteral("exports")].concat(r,n)),W.createIdentifier("factory")])))])))],!0),void 0)),s=W.updateSourceFileNode(e,W.setTextRange(W.createNodeArray([W.createStatement(W.createCall(o,void 0,[W.createFunctionExpression(void 0,void 0,void 0,void 0,[W.createParameter(void 0,void 0,void 0,"require"),W.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,C(e))]))]),e.statements));return W.addEmitHelpers(s,_.readEmitHelpers()),s}function D(e,t){for(var r=[],n=[],a=[],i=0,o=e.amdDependencies;i<o.length;i++){var s=o[i];s.name?(r.push(W.createLiteral(s.path)),a.push(W.createParameter(void 0,void 0,void 0,s.name))):n.push(W.createLiteral(s.path))}for(var c=0,u=y.externalImports;c<u.length;c++){var _=u[c],l=W.getExternalModuleNameLiteral(_,g,m,f,p),d=W.getLocalNameForExternalImport(_,g);l&&(t&&d?(W.setEmitFlags(d,4),r.push(l),a.push(W.createParameter(void 0,void 0,void 0,d))):n.push(l))}return{aliasedModuleNames:r,unaliasedModuleNames:n,importAliasNames:a}}function S(e){if(!W.isImportEqualsDeclaration(e)&&!W.isExportDeclaration(e)&&W.getExternalModuleNameLiteral(e,g,m,f,p)){var t=W.getLocalNameForExternalImport(e,g),r=F(e,t);if(r!==t)return W.createStatement(W.createAssignment(t,r))}}function C(e){i();var t=[],r=W.addPrologue(t,e.statements,!p.noImplicitUseStrict,E);h()&&W.append(t,j()),W.append(t,W.visitNode(y.externalHelpersImportDeclaration,E,W.isStatement)),u===W.ModuleKind.AMD&&W.addRange(t,W.mapDefined(y.externalImports,S)),W.addRange(t,W.visitNodes(e.statements,E,W.isStatement,r)),T(t,!0),W.addRange(t,o());var n=W.createBlock(t,!0);return y.hasExportStarsToExportValues&&!p.importHelpers&&W.addEmitHelper(n,H),l&&W.addEmitHelper(n,G),n}function T(e,t){if(y.exportEquals){var r=W.visitNode(y.exportEquals.expression,N);if(r)if(t){var n=W.createReturn(r);W.setTextRange(n,y.exportEquals),W.setEmitFlags(n,1920),e.push(n)}else n=W.createStatement(W.createAssignment(W.createPropertyAccess(W.createIdentifier("module"),"exports"),r)),W.setTextRange(n,y.exportEquals),W.setEmitFlags(n,1536),e.push(n)}}function E(e){switch(e.kind){case 242:return function(e){var t,r=W.getNamespaceDeclarationNode(e);if(u!==W.ModuleKind.AMD){if(!e.importClause)return W.setTextRange(W.createStatement(w(e)),e);var n=[];r&&!W.isDefaultImport(e)?n.push(W.createVariableDeclaration(W.getSynthesizedClone(r.name),void 0,F(e,w(e)))):(n.push(W.createVariableDeclaration(W.getGeneratedNameForNode(e),void 0,F(e,w(e)))),r&&W.isDefaultImport(e)&&n.push(W.createVariableDeclaration(W.getSynthesizedClone(r.name),void 0,W.getGeneratedNameForNode(e)))),t=W.append(t,W.setTextRange(W.createVariableStatement(void 0,W.createVariableDeclarationList(n,2<=c?2:0)),e))}else r&&W.isDefaultImport(e)&&(t=W.append(t,W.createVariableStatement(void 0,W.createVariableDeclarationList([W.setTextRange(W.createVariableDeclaration(W.getSynthesizedClone(r.name),void 0,W.getGeneratedNameForNode(e)),e)],2<=c?2:0))));if(I(e)){var a=W.getOriginalNodeId(e);v[a]=O(v[a],e)}else t=O(t,e);return W.singleOrMany(t)}(e);case 241:return function(e){var t;if(W.Debug.assert(W.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),u!==W.ModuleKind.AMD?t=W.hasModifier(e,1)?W.append(t,W.setTextRange(W.createStatement(K(e.name,w(e))),e)):W.append(t,W.setTextRange(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(W.getSynthesizedClone(e.name),void 0,w(e))],2<=c?2:0)),e)):W.hasModifier(e,1)&&(t=W.append(t,W.setTextRange(W.createStatement(K(W.getExportName(e),W.getLocalName(e))),e))),I(e)){var r=W.getOriginalNodeId(e);v[r]=M(v[r],e)}else t=M(t,e);return W.singleOrMany(t)}(e);case 248:return function(e){if(e.moduleSpecifier){var t,r,n=W.getGeneratedNameForNode(e);if(e.exportClause){var a=[];u!==W.ModuleKind.AMD&&a.push(W.setTextRange(W.createVariableStatement(void 0,W.createVariableDeclarationList([W.createVariableDeclaration(n,void 0,w(e))])),e));for(var i=0,o=e.exportClause.elements;i<o.length;i++){var s=o[i],c=W.createPropertyAccess(n,s.propertyName||s.name);a.push(W.setTextRange(W.createStatement(K(W.getExportName(s),c)),s))}return W.singleOrMany(a)}return W.setTextRange(W.createStatement((t=_,r=u!==W.ModuleKind.AMD?w(e):n,t.getCompilerOptions().importHelpers?W.createCall(W.getHelperName("__exportStar"),void 0,[r,W.createIdentifier("exports")]):W.createCall(W.createIdentifier("__export"),void 0,[r]))),e)}}(e);case 247:return function(e){if(!e.isExportEquals){var t,r=e.original;if(r&&I(r)){var n=W.getOriginalNodeId(e);v[n]=J(v[n],W.createIdentifier("default"),W.visitNode(e.expression,N),e,!0)}else t=J(t,W.createIdentifier("default"),W.visitNode(e.expression,N),e,!0);return W.singleOrMany(t)}}(e);case 212:return function(e){var t,r,n,a;if(W.hasModifier(e,1)){for(var i=void 0,o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];W.isIdentifier(c.name)&&W.isLocalName(c.name)?(i||(i=W.visitNodes(e.modifiers,U,W.isModifier)),r=W.append(r,c)):c.initializer&&(n=W.append(n,(a=c,W.isBindingPattern(a.name)?W.flattenDestructuringAssignment(W.visitNode(a,N),void 0,_,0,!1,K):W.createAssignment(W.setTextRange(W.createPropertyAccess(W.createIdentifier("exports"),a.name),a.name),W.visitNode(a.initializer,N)))))}r&&(t=W.append(t,W.updateVariableStatement(e,i,W.updateVariableDeclarationList(e.declarationList,r)))),n&&(t=W.append(t,W.setTextRange(W.createStatement(W.inlineExpressions(n)),e)))}else t=W.append(t,W.visitEachChild(e,N,_));if(I(e)){var u=W.getOriginalNodeId(e);v[u]=L(v[u],e)}else t=L(t,e);return W.singleOrMany(t)}(e);case 232:return function(e){var t;if(t=W.hasModifier(e,1)?W.append(t,W.setOriginalNode(W.setTextRange(W.createFunctionDeclaration(void 0,W.visitNodes(e.modifiers,U,W.isModifier),e.asteriskToken,W.getDeclarationName(e,!0,!0),void 0,W.visitNodes(e.parameters,N),void 0,W.visitEachChild(e.body,N,_)),e),e)):W.append(t,W.visitEachChild(e,N,_)),I(e)){var r=W.getOriginalNodeId(e);v[r]=B(v[r],e)}else t=B(t,e);return W.singleOrMany(t)}(e);case 233:return function(e){var t;if(t=W.hasModifier(e,1)?W.append(t,W.setOriginalNode(W.setTextRange(W.createClassDeclaration(void 0,W.visitNodes(e.modifiers,U,W.isModifier),W.getDeclarationName(e,!0,!0),void 0,W.visitNodes(e.heritageClauses,N),W.visitNodes(e.members,N)),e),e)):W.append(t,W.visitEachChild(e,N,_)),I(e)){var r=W.getOriginalNodeId(e);v[r]=B(v[r],e)}else t=B(t,e);return W.singleOrMany(t)}(e);case 297:return function(e){if(I(e)&&212===e.original.kind){var t=W.getOriginalNodeId(e);v[t]=L(v[t],e.original)}return e}(e);case 298:return t=e,r=W.getOriginalNodeId(t),(n=v[r])?(delete v[r],W.append(n,t)):t;default:return W.visitEachChild(e,N,_)}var t,r,n}function N(e){return 67108864&e.transformFlags?W.isImportCall(e)?function(e){var t=W.visitNode(W.firstOrUndefined(e.arguments),N),r=!!(16384&e.transformFlags);switch(p.module){case W.ModuleKind.AMD:return A(t,r);case W.ModuleKind.UMD:return function(e,t){if(l=!0,W.isSimpleCopiableExpression(e)){var r=W.isGeneratedIdentifier(e)?e:W.isStringLiteral(e)?W.createLiteral(e):W.setEmitFlags(W.setTextRange(W.getSynthesizedClone(e),e),1536);return W.createConditional(W.createIdentifier("__syncRequire"),P(e,t),A(r,t))}var n=W.createTempVariable(a);return W.createComma(W.createAssignment(n,e),W.createConditional(W.createIdentifier("__syncRequire"),P(n,t),A(n,t)))}(t,r);case W.ModuleKind.CommonJS:default:return P(t,r)}}(e):W.visitEachChild(e,N,_):e}function A(e,t){var r,n=W.createUniqueName("resolve"),a=W.createUniqueName("reject"),i=[W.createParameter(void 0,void 0,void 0,n),W.createParameter(void 0,void 0,void 0,a)],o=W.createBlock([W.createStatement(W.createCall(W.createIdentifier("require"),void 0,[W.createArrayLiteral([e||W.createOmittedExpression()]),n,a]))]);2<=c?r=W.createArrowFunction(void 0,void 0,i,void 0,void 0,o):(r=W.createFunctionExpression(void 0,void 0,void 0,void 0,i,void 0,o),t&&W.setEmitFlags(r,8));var s=W.createNew(W.createIdentifier("Promise"),void 0,[r]);return p.esModuleInterop?(_.requestEmitHelper(X),W.createCall(W.createPropertyAccess(s,W.createIdentifier("then")),void 0,[W.getHelperName("__importStar")])):s}function P(e,t){var r,n=W.createCall(W.createPropertyAccess(W.createIdentifier("Promise"),"resolve"),void 0,[]),a=W.createCall(W.createIdentifier("require"),void 0,e?[e]:[]);return p.esModuleInterop&&(_.requestEmitHelper(X),a=W.createCall(W.getHelperName("__importStar"),void 0,[a])),2<=c?r=W.createArrowFunction(void 0,void 0,[],void 0,void 0,a):(r=W.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,W.createBlock([W.createReturn(a)])),t&&W.setEmitFlags(r,8)),W.createCall(W.createPropertyAccess(n,"then"),void 0,[r])}function F(e,t){return!p.esModuleInterop||67108864&W.getEmitFlags(e)?t:W.getImportNeedsImportStarHelper(e)?(_.requestEmitHelper(X),W.createCall(W.getHelperName("__importStar"),void 0,[t])):W.getImportNeedsImportDefaultHelper(e)?(_.requestEmitHelper(Q),W.createCall(W.getHelperName("__importDefault"),void 0,[t])):t}function w(e){var t=W.getExternalModuleNameLiteral(e,g,m,f,p),r=[];return t&&r.push(t),W.createCall(W.createIdentifier("require"),void 0,r)}function I(e){return 0!=(4194304&W.getEmitFlags(e))}function O(e,t){if(y.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=z(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 244:e=z(e,n);break;case 245:for(var a=0,i=n.elements;a<i.length;a++)e=z(e,i[a])}return e}function M(e,t){return y.exportEquals?e:z(e,t)}function L(e,t){if(y.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=R(e,n[r]);return e}function R(e,t){if(y.exportEquals)return e;if(W.isBindingPattern(t.name))for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];W.isOmittedExpression(a)||(e=R(e,a))}else W.isGeneratedIdentifier(t.name)||(e=z(e,t));return e}function B(e,t){return y.exportEquals||(W.hasModifier(t,1)&&(e=J(e,W.hasModifier(t,512)?W.createIdentifier("default"):W.getDeclarationName(t),W.getLocalName(t),t)),t.name&&(e=z(e,t))),e}function z(e,t){var r=W.getDeclarationName(t),n=y.exportSpecifiers.get(W.idText(r));if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];e=J(e,o.name,r,o.name)}return e}function J(e,t,r,n,a){return e=W.append(e,(i=t,o=r,s=n,c=a,u=W.setTextRange(W.createStatement(K(i,o)),s),W.startOnNewLine(u),c||W.setEmitFlags(u,1536),u));var i,o,s,c,u}function j(){var e;return e=0===c?W.createStatement(K(W.createIdentifier("__esModule"),W.createLiteral(!0))):W.createStatement(W.createCall(W.createPropertyAccess(W.createIdentifier("Object"),"defineProperty"),void 0,[W.createIdentifier("exports"),W.createLiteral("__esModule"),W.createObjectLiteral([W.createPropertyAssignment("value",W.createLiteral(!0))])])),W.setEmitFlags(e,1048576),e}function K(e,t,r){return W.setTextRange(W.createAssignment(W.createPropertyAccess(W.createIdentifier("exports"),W.getSynthesizedClone(e)),t),r)}function U(e){switch(e.kind){case 84:case 79:return}return e}function q(e){if(4096&W.getEmitFlags(e)){var t=W.getExternalHelpersModuleName(g);return t?W.createPropertyAccess(t,e):e}if(!W.isGeneratedIdentifier(e)&&!W.isLocalName(e)){var r=f.getReferencedExportContainer(e,W.isExportName(e));if(r&&272===r.kind)return W.setTextRange(W.createPropertyAccess(W.createIdentifier("exports"),W.getSynthesizedClone(e)),e);var n=f.getReferencedImportDeclaration(e);if(n){if(W.isImportClause(n))return W.setTextRange(W.createPropertyAccess(W.getGeneratedNameForNode(n.parent),W.createIdentifier("default")),e);if(W.isImportSpecifier(n)){var a=n.propertyName||n.name;return W.setTextRange(W.createPropertyAccess(W.getGeneratedNameForNode(n.parent.parent.parent),W.getSynthesizedClone(a)),e)}}}return e}function V(e){if(!W.isGeneratedIdentifier(e)){var t=f.getReferencedImportDeclaration(e)||f.getReferencedValueDeclaration(e);if(t)return y&&y.exportedBindings[W.getOriginalNodeId(t)]}}};var H={name:"typescript:export-star",scoped:!0,text:"\n            function __export(m) {\n                for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }\n        "};var G={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'},X={name:"typescript:commonjsimportstar",scoped:!1,text:'\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result["default"] = mod;\n    return result;\n};'},Q={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(ts||(ts={})),function(G){G.transformSystemModule=function(S){var c=S.startLexicalEnvironment,u=S.endLexicalEnvironment,C=S.hoistVariableDeclaration,_=S.getCompilerOptions(),l=S.getEmitResolver(),d=S.getEmitHost(),n=S.onSubstituteNode,a=S.onEmitNode;S.onSubstituteNode=function(e,t){return r=t=n(e,t),f&&r.id&&f[r.id]?t:1===e?function(e){switch(e.kind){case 71:return function(e){if(4096&G.getEmitFlags(e)){var t=G.getExternalHelpersModuleName(y);return t?G.createPropertyAccess(t,e):e}if(!G.isGeneratedIdentifier(e)&&!G.isLocalName(e)){var r=l.getReferencedImportDeclaration(e);if(r){if(G.isImportClause(r))return G.setTextRange(G.createPropertyAccess(G.getGeneratedNameForNode(r.parent),G.createIdentifier("default")),e);if(G.isImportSpecifier(r))return G.setTextRange(G.createPropertyAccess(G.getGeneratedNameForNode(r.parent.parent.parent),G.getSynthesizedClone(r.propertyName||r.name)),e)}}return e}(e);case 198:return function(e){if(G.isAssignmentOperator(e.operatorToken.kind)&&G.isIdentifier(e.left)&&!G.isGeneratedIdentifier(e.left)&&!G.isLocalName(e.left)&&!G.isDeclarationNameOfEnumOrNamespace(e.left)){var t=W(e.left);if(t){for(var r=e,n=0,a=t;n<a.length;n++){var i=a[n];r=J(i,H(r))}return r}}return e}(e);case 196:case 197:return function(e){if((43===e.operator||44===e.operator)&&G.isIdentifier(e.operand)&&!G.isGeneratedIdentifier(e.operand)&&!G.isLocalName(e.operand)&&!G.isDeclarationNameOfEnumOrNamespace(e.operand)){var t=W(e.operand);if(t){for(var r=197===e.kind?G.setTextRange(G.createPrefix(e.operator,e.operand),e):e,n=0,a=t;n<a.length;n++){var i=a[n];r=J(i,H(r))}return 197===e.kind&&(r=43===e.operator?G.createSubtract(H(r),G.createLiteral(1)):G.createAdd(H(r),G.createLiteral(1))),r}}return e}(e)}return e}(t):4===e?function(e){switch(e.kind){case 269:return function(e){var t=e.name;if(!G.isGeneratedIdentifier(t)&&!G.isLocalName(t)){var r=l.getReferencedImportDeclaration(t);if(r){if(G.isImportClause(r))return G.setTextRange(G.createPropertyAssignment(G.getSynthesizedClone(t),G.createPropertyAccess(G.getGeneratedNameForNode(r.parent),G.createIdentifier("default"))),e);if(G.isImportSpecifier(r))return G.setTextRange(G.createPropertyAssignment(G.getSynthesizedClone(t),G.createPropertyAccess(G.getGeneratedNameForNode(r.parent.parent.parent),G.getSynthesizedClone(r.propertyName||r.name))),e)}}return e}(e)}return e}(t):t;var r},S.onEmitNode=function(e,t,r){if(272===t.kind){var n=G.getOriginalNodeId(t);y=t,v=m[n],h=g[n],(f=b[n])&&delete b[n],a(e,t,r),f=h=v=y=void 0}else a(e,t,r)},S.enableSubstitution(71),S.enableSubstitution(269),S.enableSubstitution(198),S.enableSubstitution(196),S.enableSubstitution(197),S.enableEmitNotification(272);var y,v,h,p,T,E,f,m=[],N=[],g=[],b=[];return function(e){if(e.isDeclarationFile||!(G.isEffectiveExternalModule(e,_)||67108864&e.transformFlags))return e;var t=G.getOriginalNodeId(e);E=y=e,v=m[t]=G.collectExternalModuleInfo(e,l,_),h=G.createUniqueName("exports"),g[t]=h,p=G.createUniqueName("context");var r=function(e){for(var t=G.createMap(),r=[],n=0,a=e;n<a.length;n++){var i=a[n],o=G.getExternalModuleNameLiteral(i,y,d,l,_);if(o){var s=o.text,c=t.get(s);void 0!==c?r[c].externalImports.push(i):(t.set(s,r.length),r.push({name:o,externalImports:[i]}))}}return r}(v.externalImports),n=function(e,t){var r=[];c();var n=G.getStrictOptionValue(_,"alwaysStrict")||!_.noImplicitUseStrict&&G.isExternalModule(y),a=G.addPrologue(r,e.statements,n,k);r.push(G.createVariableStatement(void 0,G.createVariableDeclarationList([G.createVariableDeclaration("__moduleName",void 0,G.createLogicalAnd(p,G.createPropertyAccess(p,"id")))]))),G.visitNode(v.externalHelpersImportDeclaration,k,G.isStatement);var i=G.visitNodes(e.statements,k,G.isStatement,a);G.addRange(r,T),G.addRange(r,u());var o=function(e){if(v.hasExportStarsToExportValues){if(!v.exportedNames&&0===v.exportSpecifiers.size){for(var t=!1,r=0,n=v.externalImports;r<n.length;r++){var a=n[r];if(248===a.kind&&a.exportClause){t=!0;break}}if(!t){var i=x(void 0);return e.push(i),i.name}}var o=[];if(v.exportedNames)for(var s=0,c=v.exportedNames;s<c.length;s++){var u=c[s];"default"!==u.escapedText&&o.push(G.createPropertyAssignment(G.createLiteral(u),G.createTrue()))}for(var _=0,l=v.externalImports;_<l.length;_++){var a=l[_];if(248===a.kind&&a.exportClause)for(var d=0,p=a.exportClause.elements;d<p.length;d++){var f=p[d];o.push(G.createPropertyAssignment(G.createLiteral(G.idText(f.name||f.propertyName)),G.createTrue()))}}var m=G.createUniqueName("exportedNames");e.push(G.createVariableStatement(void 0,G.createVariableDeclarationList([G.createVariableDeclaration(m,void 0,G.createObjectLiteral(o,!0))])));var g=x(m);return e.push(g),g.name}}(r),s=G.createObjectLiteral([G.createPropertyAssignment("setters",function(e,t){for(var r=[],n=0,a=t;n<a.length;n++){for(var i=a[n],o=G.forEach(i.externalImports,function(e){return G.getLocalNameForExternalImport(e,y)}),s=o?G.getGeneratedNameForNode(o):G.createUniqueName(""),c=[],u=0,_=i.externalImports;u<_.length;u++){var l=_[u],d=G.getLocalNameForExternalImport(l,y);switch(l.kind){case 242:if(!l.importClause)break;case 241:G.Debug.assert(void 0!==d),c.push(G.createStatement(G.createAssignment(d,s)));break;case 248:if(G.Debug.assert(void 0!==d),l.exportClause){for(var p=[],f=0,m=l.exportClause.elements;f<m.length;f++){var g=m[f];p.push(G.createPropertyAssignment(G.createLiteral(G.idText(g.name)),G.createElementAccess(s,G.createLiteral(G.idText(g.propertyName||g.name)))))}c.push(G.createStatement(G.createCall(h,void 0,[G.createObjectLiteral(p,!0)])))}else c.push(G.createStatement(G.createCall(e,void 0,[s])))}}r.push(G.createFunctionExpression(void 0,void 0,void 0,void 0,[G.createParameter(void 0,void 0,void 0,s)],void 0,G.createBlock(c,!0)))}return G.createArrayLiteral(r,!0)}(o,t)),G.createPropertyAssignment("execute",G.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,G.createBlock(i,!0)))]);return s.multiLine=!0,r.push(G.createReturn(s)),G.createBlock(r,!0)}(e,r),a=G.createFunctionExpression(void 0,void 0,void 0,void 0,[G.createParameter(void 0,void 0,void 0,h),G.createParameter(void 0,void 0,void 0,p)],void 0,n),i=G.tryGetModuleNameFromFile(e,d,_),o=G.createArrayLiteral(G.map(r,function(e){return e.name})),s=G.setEmitFlags(G.updateSourceFileNode(e,G.setTextRange(G.createNodeArray([G.createStatement(G.createCall(G.createPropertyAccess(G.createIdentifier("System"),"register"),void 0,i?[i,o,a]:[o,a]))]),e.statements)),1024);return _.outFile||_.out||G.moveEmitHelpers(s,n,function(e){return!e.scoped}),f&&(b[t]=f,f=void 0),E=T=p=h=v=y=void 0,G.aggregateTransformFlags(s)};function x(e){var t=G.createUniqueName("exportStar"),r=G.createIdentifier("m"),n=G.createIdentifier("n"),a=G.createIdentifier("exports"),i=G.createStrictInequality(n,G.createLiteral("default"));return e&&(i=G.createLogicalAnd(i,G.createLogicalNot(G.createCall(G.createPropertyAccess(e,"hasOwnProperty"),void 0,[n])))),G.createFunctionDeclaration(void 0,void 0,void 0,t,void 0,[G.createParameter(void 0,void 0,void 0,r)],void 0,G.createBlock([G.createVariableStatement(void 0,G.createVariableDeclarationList([G.createVariableDeclaration(a,void 0,G.createObjectLiteral([]))])),G.createForIn(G.createVariableDeclarationList([G.createVariableDeclaration(n,void 0)]),r,G.createBlock([G.setEmitFlags(G.createIf(i,G.createStatement(G.createAssignment(G.createElementAccess(a,n),G.createElementAccess(r,n)))),1)])),G.createStatement(G.createCall(h,void 0,[a]))],!0))}function k(e){switch(e.kind){case 242:return function(e){var t;if(e.importClause&&C(G.getLocalNameForExternalImport(e,y)),w(e)){var r=G.getOriginalNodeId(e);N[r]=D(N[r],e)}else t=D(t,e);return G.singleOrMany(t)}(e);case 241:return function(e){var t;if(G.Debug.assert(G.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),C(G.getLocalNameForExternalImport(e,y)),w(e)){var r=G.getOriginalNodeId(e);N[r]=I(N[r],e)}else t=I(t,e);return G.singleOrMany(t)}(e);case 248:return;case 247:return function(e){if(!e.isExportEquals){var t=G.visitNode(e.expression,U,G.isExpression),r=e.original;if(!r||!w(r))return z(G.createIdentifier("default"),t,!0);var n=G.getOriginalNodeId(e);N[n]=B(N[n],G.createIdentifier("default"),t,!0)}}(e);default:return j(e)}}function A(e){if(G.isBindingPattern(e.name))for(var t=0,r=e.name.elements;t<r.length;t++){var n=r[t];G.isOmittedExpression(n)||A(n)}else C(G.getSynthesizedClone(e.name))}function P(e){return 0==(2097152&G.getEmitFlags(e))&&(272===E.kind||0==(3&G.getOriginalNode(e).flags))}function F(e,t){var r=t?i:o;return G.isBindingPattern(e.name)?G.flattenDestructuringAssignment(e,U,S,0,!1,r):e.initializer?r(e.name,G.visitNode(e.initializer,U,G.isExpression)):e.name}function i(e,t,r){return s(e,t,r,!0)}function o(e,t,r){return s(e,t,r,!1)}function s(e,t,r,n){return C(G.getSynthesizedClone(e)),n?J(e,H(G.setTextRange(G.createAssignment(e,t),r))):H(G.setTextRange(G.createAssignment(e,t),r))}function w(e){return 0!=(4194304&G.getEmitFlags(e))}function D(e,t){if(v.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=R(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 244:e=R(e,n);break;case 245:for(var a=0,i=n.elements;a<i.length;a++)e=R(e,i[a])}return e}function I(e,t){return v.exportEquals?e:R(e,t)}function O(e,t,r){if(v.exportEquals)return e;for(var n=0,a=t.declarationList.declarations;n<a.length;n++){var i=a[n];(i.initializer||r)&&(e=M(e,i,r))}return e}function M(e,t,r){if(v.exportEquals)return e;if(G.isBindingPattern(t.name))for(var n=0,a=t.name.elements;n<a.length;n++){var i=a[n];G.isOmittedExpression(i)||(e=M(e,i,r))}else if(!G.isGeneratedIdentifier(t.name)){var o=void 0;r&&(e=B(e,t.name,G.getLocalName(t)),o=G.idText(t.name)),e=R(e,t,o)}return e}function L(e,t){if(v.exportEquals)return e;var r;if(G.hasModifier(t,1)){var n=G.hasModifier(t,512)?G.createLiteral("default"):t.name;e=B(e,n,G.getLocalName(t)),r=G.getTextOfIdentifierOrLiteral(n)}return t.name&&(e=R(e,t,r)),e}function R(e,t,r){if(v.exportEquals)return e;var n=G.getDeclarationName(t),a=v.exportSpecifiers.get(G.idText(n));if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];s.name.escapedText!==r&&(e=B(e,s.name,n))}return e}function B(e,t,r,n){return e=G.append(e,z(t,r,n))}function z(e,t,r){var n=G.createStatement(J(e,t));return G.startOnNewLine(n),r||G.setEmitFlags(n,1536),n}function J(e,t){var r=G.isIdentifier(e)?G.createLiteral(e):e;return G.setEmitFlags(t,1536|G.getEmitFlags(t)),G.setCommentRange(G.createCall(h,void 0,[r,t]),t)}function j(e){switch(e.kind){case 212:return function(e){if(!P(e.declarationList))return G.visitNode(e,U,G.isStatement);for(var t,r,n=G.hasModifier(e,1),a=w(e),i=0,o=e.declarationList.declarations;i<o.length;i++){var s=o[i];s.initializer?t=G.append(t,F(s,n&&!a)):A(s)}if(t&&(r=G.append(r,G.setTextRange(G.createStatement(G.inlineExpressions(t)),e))),a){var c=G.getOriginalNodeId(e);N[c]=O(N[c],e,n)}else r=O(r,e,!1);return G.singleOrMany(r)}(e);case 232:return function(e){if(T=G.hasModifier(e,1)?G.append(T,G.updateFunctionDeclaration(e,e.decorators,G.visitNodes(e.modifiers,V,G.isModifier),e.asteriskToken,G.getDeclarationName(e,!0,!0),void 0,G.visitNodes(e.parameters,U,G.isParameterDeclaration),void 0,G.visitNode(e.body,U,G.isBlock))):G.append(T,G.visitEachChild(e,U,S)),w(e)){var t=G.getOriginalNodeId(e);N[t]=L(N[t],e)}else T=L(T,e)}(e);case 233:return function(e){var t,r=G.getLocalName(e);if(C(r),t=G.append(t,G.setTextRange(G.createStatement(G.createAssignment(r,G.setTextRange(G.createClassExpression(void 0,e.name,void 0,G.visitNodes(e.heritageClauses,U,G.isHeritageClause),G.visitNodes(e.members,U,G.isClassElement)),e))),e)),w(e)){var n=G.getOriginalNodeId(e);N[n]=L(N[n],e)}else t=L(t,e);return G.singleOrMany(t)}(e);case 218:return D=E,E=k=e,k=G.updateFor(k,K(k.initializer),G.visitNode(k.condition,U,G.isExpression),G.visitNode(k.incrementor,U,G.isExpression),G.visitNode(k.statement,j,G.isStatement)),E=D,k;case 219:return x=E,E=b=e,b=G.updateForIn(b,K(b.initializer),G.visitNode(b.expression,U,G.isExpression),G.visitNode(b.statement,j,G.isStatement,G.liftToBlock)),E=x,b;case 220:return h=E,E=v=e,v=G.updateForOf(v,v.awaitModifier,K(v.initializer),G.visitNode(v.expression,U,G.isExpression),G.visitNode(v.statement,j,G.isStatement,G.liftToBlock)),E=h,v;case 216:return y=e,G.updateDo(y,G.visitNode(y.statement,j,G.isStatement,G.liftToBlock),G.visitNode(y.expression,U,G.isExpression));case 217:return g=e,G.updateWhile(g,G.visitNode(g.expression,U,G.isExpression),G.visitNode(g.statement,j,G.isStatement,G.liftToBlock));case 226:return m=e,G.updateLabel(m,m.label,G.visitNode(m.statement,j,G.isStatement,G.liftToBlock));case 224:return f=e,G.updateWith(f,G.visitNode(f.expression,U,G.isExpression),G.visitNode(f.statement,j,G.isStatement,G.liftToBlock));case 225:return p=e,G.updateSwitch(p,G.visitNode(p.expression,U,G.isExpression),G.visitNode(p.caseBlock,j,G.isCaseBlock));case 239:return d=E,E=l=e,l=G.updateCaseBlock(l,G.visitNodes(l.clauses,j,G.isCaseOrDefaultClause)),E=d,l;case 264:return _=e,G.updateCaseClause(_,G.visitNode(_.expression,U,G.isExpression),G.visitNodes(_.statements,j,G.isStatement));case 265:return u=e,G.visitEachChild(u,j,S);case 228:return c=e,G.visitEachChild(c,j,S);case 267:return s=E,E=o=e,o=G.updateCatchClause(o,o.variableDeclaration,G.visitNode(o.block,j,G.isBlock)),E=s,o;case 211:return i=E,E=a=e,a=G.visitEachChild(a,j,S),E=i,a;case 297:return function(e){if(w(e)&&212===e.original.kind){var t=G.getOriginalNodeId(e),r=G.hasModifier(e.original,1);N[t]=O(N[t],e.original,r)}return e}(e);case 298:return t=e,r=G.getOriginalNodeId(t),(n=N[r])?(delete N[r],G.append(n,t)):t;default:return U(e)}var t,r,n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h,b,x,k,D}function K(e){if(!e)return e;if(i=e,G.isVariableDeclarationList(i)&&P(i)){for(var t=void 0,r=0,n=e.declarations;r<n.length;r++){var a=n[r];t=G.append(t,F(a,!1)),a.initializer||A(a)}return t?G.inlineExpressions(t):G.createOmittedExpression()}return G.visitEachChild(e,j,S);var i}function U(e){return 1024&e.transformFlags&&198===e.kind?q((t=e).left)?G.flattenDestructuringAssignment(t,U,S,0,!0):G.visitEachChild(t,U,S):G.isImportCall(e)?(r=e,G.createCall(G.createPropertyAccess(p,G.createIdentifier("import")),void 0,G.some(r.arguments)?[G.visitNode(r.arguments[0],U)]:[])):2048&e.transformFlags||67108864&e.transformFlags?G.visitEachChild(e,U,S):e;var t,r}function q(e){if(G.isAssignmentExpression(e,!0))return q(e.left);if(G.isSpreadElement(e))return q(e.expression);if(G.isObjectLiteralExpression(e))return G.some(e.properties,q);if(G.isArrayLiteralExpression(e))return G.some(e.elements,q);if(G.isShorthandPropertyAssignment(e))return q(e.name);if(G.isPropertyAssignment(e))return q(e.initializer);if(G.isIdentifier(e)){var t=l.getReferencedExportContainer(e);return void 0!==t&&272===t.kind}return!1}function V(e){switch(e.kind){case 84:case 79:return}return e}function W(e){var t;if(!G.isGeneratedIdentifier(e)){var r=l.getReferencedImportDeclaration(e)||l.getReferencedValueDeclaration(e);if(r){var n=l.getReferencedExportContainer(e,!1);n&&272===n.kind&&(t=G.append(t,G.getDeclarationName(r))),t=G.addRange(t,v&&v.exportedBindings[G.getOriginalNodeId(r)])}}return t}function H(e){return void 0===f&&(f=[]),f[G.getNodeId(e)]=!0,e}}}(ts||(ts={})),function(c){c.transformES2015Module=function(i){var n,o=i.getCompilerOptions(),a=i.onEmitNode,r=i.onSubstituteNode;return i.onEmitNode=function(e,t,r){c.isSourceFile(t)?(a(e,n=t,r),n=void 0):a(e,t,r)},i.onSubstituteNode=function(e,t){return t=r(e,t),c.isIdentifier(t)&&1===e?function(e){if(4096&c.getEmitFlags(e)){var t=c.getExternalHelpersModuleName(n);if(t)return c.createPropertyAccess(t,e)}return e}(t):t},i.enableEmitNotification(272),i.enableSubstitution(71),function(e){if(e.isDeclarationFile)return e;if(c.isExternalModule(e)||o.isolatedModules){var t=c.getOrCreateExternalHelpersModuleNameIfNeeded(e,o);if(t){var r=[],n=c.addPrologue(r,e.statements),a=c.createImportDeclaration(void 0,void 0,c.createImportClause(void 0,c.createNamespaceImport(t)),c.createLiteral(c.externalHelpersModuleNameText));return c.addEmitFlags(a,67108864),c.append(r,a),c.addRange(r,c.visitNodes(e.statements,s,c.isStatement,n)),c.updateSourceFileNode(e,c.setTextRange(c.createNodeArray(r),e.statements))}return c.visitEachChild(e,s,i)}return e};function s(e){switch(e.kind){case 241:return;case 247:return(t=e).isExportEquals?void 0:t}var t;return e}}}(ts||(ts={})),function(C){var e,t,r,n;(t=e||(e={}))[t.Uninitialized=0]="Uninitialized",t[t.Initialized=1]="Initialized",t[t.Completed=2]="Completed",t[t.Disposed=3]="Disposed",(n=r||(r={}))[n.Substitution=1]="Substitution",n[n.EmitNotifications=2]="EmitNotifications",C.getTransformers=function(e,t){var r=e.jsx,n=C.getEmitScriptTarget(e),a=C.getEmitModuleKind(e),i=[];return C.addRange(i,t&&t.before),i.push(C.transformTypeScript),2===r&&i.push(C.transformJsx),n<6&&i.push(C.transformESNext),n<4&&i.push(C.transformES2017),n<3&&i.push(C.transformES2016),n<2&&(i.push(C.transformES2015),i.push(C.transformGenerators)),i.push(function(e){switch(e){case C.ModuleKind.ESNext:case C.ModuleKind.ES2015:return C.transformES2015Module;case C.ModuleKind.System:return C.transformSystemModule;default:return C.transformModule}}(a)),n<1&&i.push(C.transformES5),C.addRange(i,t&&t.after),i},C.transformNodes=function(e,t,r,n,a,i){for(var o,s,c,u=new Array(299),_=[],l=[],d=0,p=!1,f=function(e,t){return t},m=function(e,t,r){return r(e,t)},g=0,y={getCompilerOptions:function(){return r},getEmitResolver:function(){return e},getEmitHost:function(){return t},startLexicalEnvironment:function(){C.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),C.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),C.Debug.assert(!p,"Lexical environment is suspended."),_[d]=o,l[d]=s,d++,s=o=void 0},suspendLexicalEnvironment:function(){C.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),C.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),C.Debug.assert(!p,"Lexical environment is already suspended."),p=!0},resumeLexicalEnvironment:function(){C.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),C.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),C.Debug.assert(p,"Lexical environment is not suspended."),p=!1},endLexicalEnvironment:function(){var e;if(C.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),C.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),C.Debug.assert(!p,"Lexical environment is suspended."),(o||s)&&(s&&(e=s.slice()),o)){var t=C.createVariableStatement(void 0,C.createVariableDeclarationList(o));e?e.push(t):e=[t]}return o=_[--d],s=l[d],0===d&&(_=[],l=[]),e},hoistVariableDeclaration:function(e){C.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),C.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed.");var t=C.setEmitFlags(C.createVariableDeclaration(e),64);o?o.push(t):o=[t]},hoistFunctionDeclaration:function(e){C.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),C.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),s?s.push(e):s=[e]},requestEmitHelper:function(e){C.Debug.assert(0<g,"Cannot modify the transformation context during initialization."),C.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),C.Debug.assert(!e.scoped,"Cannot request a scoped emit helper."),c=C.append(c,e)},readEmitHelpers:function(){C.Debug.assert(0<g,"Cannot modify the transformation context during initialization."),C.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed.");var e=c;return c=void 0,e},enableSubstitution:function(e){C.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),u[e]|=1},enableEmitNotification:function(e){C.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),u[e]|=2},isSubstitutionEnabled:D,isEmitNotificationEnabled:S,get onSubstituteNode(){return f},set onSubstituteNode(e){C.Debug.assert(g<1,"Cannot modify transformation hooks after initialization has completed."),C.Debug.assert(void 0!==e,"Value must not be 'undefined'"),f=e},get onEmitNode(){return m},set onEmitNode(e){C.Debug.assert(g<1,"Cannot modify transformation hooks after initialization has completed."),C.Debug.assert(void 0!==e,"Value must not be 'undefined'"),m=e}},v=0,h=n;v<h.length;v++){var b=h[v];C.disposeEmitNodes(C.getSourceFileOfNode(C.getParseTreeNode(b)))}C.performance.mark("beforeTransform");var x=C.chain.apply(void 0,a)(y);g=1;var k=C.map(n,i?x:function(e){return!e||C.isSourceFile(e)&&e.isDeclarationFile?e:x(e)});return g=2,C.performance.mark("afterTransform"),C.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:k,substituteNode:function(e,t){return C.Debug.assert(g<3,"Cannot substitute a node after the result is disposed."),t&&D(t)&&f(e,t)||t},emitNodeWithNotification:function(e,t,r){C.Debug.assert(g<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(S(t)?m(e,t,r):r(e,t))},dispose:function(){if(g<3){for(var e=0,t=n;e<t.length;e++){var r=t[e];C.disposeEmitNodes(C.getSourceFileOfNode(C.getParseTreeNode(r)))}c=m=f=l=s=_=o=void 0,g=3}}};function D(e){return 0!=(1&u[e.kind])&&0==(4&C.getEmitFlags(e))}function S(e){return 0!=(2&u[e.kind])||0!=(2&C.getEmitFlags(e))}}}(ts||(ts={})),function(x){var k={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};x.createSourceMapWriter=function(n,a){var l,i,o,s,c,u,_,d,p=n.getCompilerOptions(),f=p.extendedDiagnostics,m=!(p.sourceMap||p.inlineSourceMap);return{initialize:function(e,t,r){m||(d&&y(),s=-1,c=i=l=void 0,u=k,_=0,(d={sourceMapFilePath:t,jsSourceMappingURL:p.inlineSourceMap?void 0:x.getBaseFileName(x.normalizeSlashes(t)),sourceMapFile:x.getBaseFileName(x.normalizeSlashes(e)),sourceMapSourceRoot:p.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:p.inlineSources?[]:void 0,sourceMapDecodedMappings:[]}).sourceMapSourceRoot=x.normalizeSlashes(d.sourceMapSourceRoot),d.sourceMapSourceRoot.length&&47!==d.sourceMapSourceRoot.charCodeAt(d.sourceMapSourceRoot.length-1)&&(d.sourceMapSourceRoot+=x.directorySeparator),p.mapRoot?(o=x.normalizeSlashes(p.mapRoot),272===r.kind&&(o=x.getDirectoryPath(x.getSourceFilePathInNewDir(r,n,o))),x.isRootedDiskPath(o)||x.isUrl(o)?d.jsSourceMappingURL=x.combinePaths(o,d.jsSourceMappingURL):(o=x.combinePaths(n.getCommonSourceDirectory(),o),d.jsSourceMappingURL=x.getRelativePathToDirectoryOrUrl(x.getDirectoryPath(x.normalizePath(e)),x.combinePaths(o,d.jsSourceMappingURL),n.getCurrentDirectory(),n.getCanonicalFileName,!0))):o=x.getDirectoryPath(x.normalizePath(e)))},reset:y,getSourceMapData:function(){return d},setSourceFile:b,emitPos:h,emitNodeWithSourceMap:function(e,t,r){if(m)return r(e,t);if(t){var n=t.emitNode,a=n&&n.flags,i=n&&n.sourceMapRange,o=i||t,s=o.pos,c=o.end,u=i&&i.source,_=l;u===_&&(u=void 0),u&&b(u),294!==t.kind&&0==(16&a)&&0<=s&&h(g(s)),u&&b(_),64&a?(m=!0,r(e,t),m=!1):r(e,t),u&&b(u),294!==t.kind&&0==(32&a)&&0<=c&&h(c),u&&b(_)}},emitTokenWithSourceMap:function(e,t,r,n,a){if(m)return a(t,r,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=g(s?s.pos:n),0==(128&o)&&0<=n&&h(n),n=a(t,r,n),s&&(n=s.end),0==(256&o)&&0<=n&&h(n),n},getText:t,getSourceMappingURL:function(){if(!m){if(p.inlineSourceMap){var e=x.convertToBase64(t());return d.jsSourceMappingURL="data:application/json;base64,"+e}return d.jsSourceMappingURL}}};function g(e){return l.skipTrivia?l.skipTrivia(e):x.skipTrivia(i,e)}function y(){m||(d=_=u=c=s=o=l=void 0)}function v(){if(c&&c!==u){var e=u.emittedColumn;if(u.emittedLine===c.emittedLine)d.sourceMapMappings&&(d.sourceMapMappings+=",");else{for(var t=u.emittedLine;t<c.emittedLine;t++)d.sourceMapMappings+=";";e=1}d.sourceMapMappings+=r(c.emittedColumn-e),d.sourceMapMappings+=r(c.sourceIndex-u.sourceIndex),d.sourceMapMappings+=r(c.sourceLine-u.sourceLine),d.sourceMapMappings+=r(c.sourceColumn-u.sourceColumn),0<=c.nameIndex&&(x.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),d.sourceMapMappings+=r(c.nameIndex-_),_=c.nameIndex),u=c,d.sourceMapDecodedMappings.push(u)}}function h(e){if(!m&&!x.positionIsSynthesized(e)){f&&x.performance.mark("beforeSourcemap");var t=x.getLineAndCharacterOfPosition(l,e);t.line++,t.character++;var r=a.getLine(),n=a.getColumn();!c||c.emittedLine!==r||c.emittedColumn!==n||c.sourceIndex===s&&(c.sourceLine>t.line||c.sourceLine===t.line&&c.sourceColumn>t.character)?(v(),c={emittedLine:r,emittedColumn:n,sourceLine:t.line,sourceColumn:t.character,sourceIndex:s}):(c.sourceLine=t.line,c.sourceColumn=t.character,c.sourceIndex=s),f&&(x.performance.mark("afterSourcemap"),x.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function b(e){if(!m){i=(l=e).text;var t=p.sourceRoot?n.getCommonSourceDirectory():o,r=x.getRelativePathToDirectoryOrUrl(t,l.fileName,n.getCurrentDirectory(),n.getCanonicalFileName,!0);-1===(s=d.sourceMapSources.indexOf(r))&&(s=d.sourceMapSources.length,d.sourceMapSources.push(r),d.inputSourceFileNames.push(l.fileName),p.inlineSources&&d.sourceMapSourcesContent.push(l.text))}}function t(){if(!m)return v(),JSON.stringify({version:3,file:d.sourceMapFile,sourceRoot:d.sourceMapSourceRoot,sources:d.sourceMapSources,names:d.sourceMapNames,mappings:d.sourceMapMappings,sourcesContent:d.sourceMapSourcesContent})}};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e){if(e<64)return t.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;0<(e>>=5)&&(r|=32),t+=n(r)}while(0<e);return t}}(ts||(ts={})),function(E){E.createCommentWriter=function(e,o){var u,t,_,l,d,f=e.extendedDiagnostics,p=E.getNewLineCharacter(e),m=-1,g=-1,y=-1,v=!1,h=e.removeComments;return{reset:function(){d=l=_=t=void 0},setWriter:function(e){u=e},setSourceFile:function(e){_=(t=e).text,l=E.getLineStarts(t),d=void 0},emitNodeWithComments:function(e,t,r){if(h)r(e,t);else if(t){v=!1;var n=t.emitNode,a=n&&n.flags,i=n&&n.commentRange||t,o=i.pos,s=i.end;if(o<0&&s<0||o===s)b(e,t,n,a,r);else{f&&E.performance.mark("preEmitNodeWithComment");var c=294!==t.kind,u=o<0||0!=(512&a)||10===t.kind,_=s<0||0!=(1024&a)||10===t.kind;u||D(o,c);var l=m,d=g,p=y;u||(m=o),_||(g=s,231===t.kind&&(y=s)),f&&E.performance.measure("commentTime","preEmitNodeWithComment"),b(e,t,n,a,r),f&&E.performance.mark("postEmitNodeWithComment"),m=l,g=d,y=p,!_&&c&&C(s,S),f&&E.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(e,t,r){f&&E.performance.mark("preEmitBodyWithDetachedComments");var n,a,i=t.pos,o=t.end,s=E.getEmitFlags(e),c=h||o<0||0!=(1024&s);i<0||0!=(512&s)||(n=t,(a=E.emitDetachedComments(_,l,u,T,n,p,h))&&(d?d.push(a):d=[a])),f&&E.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&s&&!h?(h=!0,r(e),h=!1):r(e),f&&E.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(D(t.end,!0),v&&!u.isAtStartOfLine()&&u.writeLine()),f&&E.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(e,t){h||(f&&E.performance.mark("beforeEmitTrailingCommentsOfPosition"),C(e,t?S:a),f&&E.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){h||-1===e||D(e,!0)}};function b(e,t,r,n,a){var i,o,s,c=r&&r.leadingComments;E.some(c)&&(f&&E.performance.mark("preEmitNodeWithSynthesizedComments"),E.forEach(c,x),f&&E.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),i=e,o=t,s=a,2048&n?(h=!0,s(i,o),h=!1):s(i,o);var u=r&&r.trailingComments;E.some(u)&&(f&&E.performance.mark("postEmitNodeWithSynthesizedComments"),E.forEach(u,k),f&&E.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function x(e){2===e.kind&&u.writeLine(),r(e),e.hasTrailingNewLine||2===e.kind?u.writeLine():u.write(" ")}function k(e){u.isAtStartOfLine()||u.write(" "),r(e),e.hasTrailingNewLine&&u.writeLine()}function r(e){var t,r=3===(t=e).kind?"/*"+t.text+"*/":"//"+t.text,n=3===e.kind?E.computeLineStarts(r):void 0;E.writeCommentRange(r,n,u,0,r.length,p)}function D(e,t){v=!1,t?i(e,s):0===e&&i(e,n)}function n(e,t,r,n,a){var i,o;i=e,o=t,E.isRecognizedTripleSlashComment(_,i,o)&&s(e,t,r,n,a)}function s(e,t,r,n,a){v||(E.emitNewLineBeforeLeadingCommentOfPosition(l,u,a,e),v=!0),o&&o(e),E.writeCommentRange(_,l,u,e,t,p),o&&o(t),n?u.writeLine():3===r&&u.write(" ")}function S(e,t,r,n){u.isAtStartOfLine()||u.write(" "),o&&o(e),E.writeCommentRange(_,l,u,e,t,p),o&&o(t),n&&u.writeLine()}function a(e,t,r,n){o&&o(e),E.writeCommentRange(_,l,u,e,t,p),o&&o(t),n?u.writeLine():u.write(" ")}function i(e,t){var r,n,a;-1!==m&&e===m||(r=e,void 0!==d&&E.lastOrUndefined(d).nodePos===r?(n=t,a=E.lastOrUndefined(d).detachedCommentEndPos,d.length-1?d.pop():d=void 0,E.forEachLeadingCommentRange(_,a,n,a)):E.forEachLeadingCommentRange(_,e,t,e))}function C(e,t){(-1===g||e!==g&&e!==y)&&E.forEachTrailingCommentRange(_,e,t)}function T(e,t,r,n,a,i){o&&o(n),E.writeCommentRange(e,t,r,n,a,i),o&&o(a)}}}(ts||(ts={})),function(xe){function _(s,d,r,c,e,n){var p,f,m,g,y,u,v,a,h,i,o,_,t=273===e.kind?e.sourceFiles:[e],l=273===e.kind,b=s.getNewLine(),x=s.getCompilerOptions();M();var k,D,S,C=!1,T=x.removeComments?xe.noop:function(e){if(e){var t=xe.getJSDocCommentRanges(e,h);xe.emitNewLineBeforeLeadingComments(i,u,e,t),xe.emitComments(h,i,u,t,!1,!0,b,xe.writeCommentRange)}},E=x.stripInternal?function(e){if(e){var t=xe.getLeadingCommentRanges(h,e.pos);if(xe.forEach(t,O))return;be(e)}}:be,N=!0,A=[],P="",F=[],w=!1,I=[];return xe.forEach(t,function(r){if(!xe.isSourceFileJavaScript(r)){if(x.noResolve||xe.forEach(r.referencedFiles,function(e){var t=xe.tryResolveScriptReference(s,r,e);t&&!xe.contains(F,t)&&(function(n,a,e){var i,o=!1;n.isDeclarationFile?i=n.fileName:xe.forEachEmittedFile(s,function(e,t){var r=273===t.kind;if(r&&!a)return;xe.Debug.assert(!!e.declarationFilePath||xe.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),i=e.declarationFilePath||e.jsFilePath,o=r},n,e);i&&(i=xe.getRelativePathToDirectoryOrUrl(xe.getDirectoryPath(xe.normalizeSlashes(c)),i,s.getCurrentDirectory(),s.getCanonicalFileName,!1),P+='/// <reference path="'+i+'" />'+b);return o}(t,!l&&!w,n)&&(w=!0),F.push(t))}),a=!1,l&&xe.isExternalModule(r)?xe.isExternalModule(r)&&(N=!1,p('declare module "'+xe.getResolvedExternalModuleName(s,r)+'" {'),f(),m(),Q(r),g(),p("}"),f()):(N=!0,Q(r)),A.length){var e=u;xe.forEach(A,function(e){if(e.isVisible&&!e.asynchronousOutput){xe.Debug.assert(242===e.node.kind),M(),xe.Debug.assert(0===e.indent||1===e.indent&&l);for(var t=0;t<e.indent;t++)m();ne(e.node),e.asynchronousOutput=u.getText();for(t=0;t<e.indent;t++)g()}}),L(e),I=I.concat(A),A=[]}l||!xe.isExternalModule(r)||a||(p("export {};"),f())}}),S&&xe.forEachKey(S,function(e){P+='/// <reference types="'+e+'" />'+b}),{reportedDeclarationError:C,moduleElementDeclarationEmitInfo:I,synchronousDeclarationOutput:u.getText(),referencesOutput:P};function O(e){var t=h.substring(e.pos,e.end);return xe.stringContains(t,"@internal")}function M(){var e=xe.createTextWriter(b);e.trackSymbol=J,e.reportInaccessibleThisError=U,e.reportInaccessibleUniqueSymbolError=K,e.reportPrivateInBaseOfClassExpression=j,e.writeKeyword=e.write,e.writeOperator=e.write,e.writePunctuation=e.write,e.writeSpace=e.write,e.writeStringLiteral=e.writeLiteral,e.writeParameter=e.write,e.writeProperty=e.write,e.writeSymbol=e.write,L(e)}function L(e){p=(u=e).write,y=e.writeTextOfNode,f=e.writeLine,m=e.increaseIndent,g=e.decreaseIndent}function R(e){var t=u;xe.forEach(e,function(e){var t;230===e.kind?t=e.parent.parent:245===e.kind||246===e.kind||243===e.kind?xe.Debug.fail("We should be getting ImportDeclaration instead to write"):t=e;var r=xe.forEach(A,function(e){return e.node===t?e:void 0});if(!r&&D&&(r=xe.forEach(D,function(e){return e.node===t?e:void 0})),r)if(242===r.node.kind)r.isVisible=!0;else{M();for(var n=r.indent;n;n--)m();237===t.kind&&(xe.Debug.assert(void 0===D),D=[]),$(t),237===t.kind&&(r.subModuleElementDeclarationEmitInfo=D,D=void 0),r.asynchronousOutput=u.getText()}}),L(t)}function B(e){if(e){S||(S=xe.createMap());for(var t=0,r=e;t<r.length;t++){var n=r[t];S.has(n)||S.set(n,n)}}}function z(e){if(0===e.accessibility)e&&e.aliasesToMakeVisible&&R(e.aliasesToMakeVisible);else{C=!0;var t=u.getSymbolAccessibilityDiagnostic(e);t&&(t.typeName?r.add(xe.createDiagnosticForNode(e.errorNode||t.errorNode,t.diagnosticMessage,xe.getTextOfNodeFromSourceText(h,t.typeName),e.errorSymbolName,e.errorModuleName)):r.add(xe.createDiagnosticForNode(e.errorNode||t.errorNode,t.diagnosticMessage,e.errorSymbolName,e.errorModuleName)))}}function J(e,t,r){z(d.isSymbolAccessible(e,t,r,!0)),B(d.getTypeReferenceDirectivesForSymbol(e,r))}function j(e){k&&(C=!0,r.add(xe.createDiagnosticForNode(k,xe.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e)))}function K(){k&&(C=!0,r.add(xe.createDiagnosticForNode(k,xe.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe.declarationNameToString(k),"unique symbol")))}function U(){k&&(C=!0,r.add(xe.createDiagnosticForNode(k,xe.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,xe.declarationNameToString(k),"this")))}function q(e,t,r){u.getSymbolAccessibilityDiagnostic=r,p(": ");var n=148===e.kind&&(d.isRequiredInitializedParameter(e)||d.isOptionalUninitializedParameterProperty(e));if(t&&!n)X(t);else{k=e.name;var a=6152|(n?131072:0);d.writeTypeOfDeclaration(e,v,a,u),k=void 0}}function V(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];E(n)}}function W(e,t,r,n){for(var a=u.getTextPos(),i=0,o=e;i<o.length;i++){var s=o[i];n&&!n(s)||(a!==u.getTextPos()&&p(t),a=u.getTextPos(),r(s))}}function H(e,t,r){W(e,", ",t,r)}function G(e,t){u.getSymbolAccessibilityDiagnostic=t,X(e)}function X(e){switch(e.kind){case 119:case 137:case 134:case 122:case 135:case 138:case 105:case 140:case 95:case 131:case 173:case 177:return y(h,e);case 205:return u=e,void(xe.isEntityNameExpression(u.expression)&&(xe.Debug.assert(71===u.expression.kind||183===u.expression.kind),l(u.expression),u.typeArguments&&(p("<"),H(u.typeArguments,X),p(">"))));case 161:return l((c=e).typeName),void(c.typeArguments&&(p("<"),H(c.typeArguments,X),p(">")));case 164:return s=e,p("typeof "),void l(s.exprName);case 166:return X(e.elementType),void p("[]");case 167:return o=e,p("["),H(o.elementTypes,X),void p("]");case 168:return void W(e.types," | ",X);case 169:return void W(e.types," & ",X);case 170:return function(e){X(e.checkType),p(" extends "),X(e.extendsType),p(" ? ");var t=v;v=e.trueType,X(e.trueType),v=t,p(" : "),X(e.falseType)}(e);case 171:return i=e,p("infer "),void y(h,i.typeParameter.name);case 172:return a=e,p("("),X(a.type),void p(")");case 174:return n=e,p(xe.tokenToString(n.operator)),p(" "),void X(n.type);case 175:return X((r=e).objectType),p("["),X(r.indexType),void p("]");case 176:return function(e){var t=v;v=e,p("{"),f(),m(),e.readonlyToken&&p(37===e.readonlyToken.kind?"+readonly ":38===e.readonlyToken.kind?"-readonly ":"readonly ");p("["),_(e.typeParameter.name),p(" in "),X(e.typeParameter.constraint),p("]"),e.questionToken&&p(37===e.questionToken.kind?"+?":38===e.questionToken.kind?"-?":"?");p(": "),e.type?X(e.type):p("any");p(";"),f(),g(),p("}"),v=t}(e);case 162:case 163:return ye(e);case 165:return function(e){p("{"),e.members.length&&(f(),m(),V(e.members),g());p("}")}(e);case 71:case 145:return l(e);case 160:return y(h,(t=e).parameterName),p(" is "),void X(t.type)}var t,r,n,a,i,o,s,c,u;function _(e){if(71===e.kind)y(h,e);else{var t=145===e.kind?e.left:e.expression,r=145===e.kind?e.right:e.name;_(t),p("."),y(h,r)}}function l(e){z(d.isEntityNameVisible(e,241===e.parent.kind?e.parent:v)),B(d.getTypeReferenceDirectivesForEntityName(e)),_(e)}}function Q(e){h=e.text,i=xe.getLineStarts(e),o=e.identifiers,_=xe.isExternalModule(e),v=e,xe.emitDetachedComments(h,i,u,xe.writeCommentRange,e,b,!0),V(e.statements)}function Y(e,t,r,n){var a=function(e){if(!o.has(e))return e;for(var t=0;;){var r=e+"_"+ ++t;if(!o.has(r))return r}}(t);return n&&p("declare "),p("const "),p(a),p(": "),u.getSymbolAccessibilityDiagnostic=function(){return r},d.writeTypeOfExpression(e,v,6152,u),p(";"),f(),a}function Z(e,t){if(t)$(e);else if(241===e.kind||272===e.parent.kind&&_){var r=void 0;if(D&&272!==e.parent.kind)D.push({node:e,outputPos:u.getTextPos(),indent:u.getIndent(),isVisible:r});else{if(242===e.kind){var n=e;n.importClause&&(r=n.importClause.name&&d.isDeclarationVisible(n.importClause)||re(n.importClause.namedBindings))}A.push({node:e,outputPos:u.getTextPos(),indent:u.getIndent(),isVisible:r})}}}function $(e){switch(e.kind){case 232:return me(e);case 212:return function(e){if(xe.every(e.declarationList&&e.declarationList.declarations,function(e){return e.name&&xe.isEmptyBindingPattern(e.name)}))return;T(e),ee(e),xe.isLet(e.declarationList)?p("let "):xe.isConst(e.declarationList)?p("const "):p("var ");H(e.declarationList.declarations,de,le),p(";"),f()}(e);case 234:return function(e){T(e),ee(e),p("interface "),y(h,e.name);var t=v;ce((v=e).typeParameters);var r=xe.filter(xe.getInterfaceBaseTypeNodes(e),function(e){return xe.isEntityNameExpression(e.expression)});r&&r.length&&ue(r,!1);p(" {"),f(),m(),V(e.members),g(),p("}"),f(),v=t}(e);case 233:return function(e){var t=v;v=e;var r,n=xe.getClassExtendsHeritageClauseElement(e);n&&!xe.isEntityNameExpression(n.expression)&&(r=95===n.expression.kind?"null":Y(n.expression,e.name.escapedText+"_base",{diagnosticMessage:xe.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:n,typeName:e.name},!xe.findAncestor(e,function(e){return 237===e.kind})));T(e),ee(e),xe.hasModifier(e,128)&&p("abstract ");p("class "),y(h,e.name),ce(e.typeParameters),n&&(xe.isEntityNameExpression(n.expression)?ue([n],!1):(p(" extends "),p(r),n.typeArguments&&(p("<"),H(n.typeArguments,X),p(">"))));ue(xe.getClassImplementsHeritageClauseElements(e),!0),p(" {"),f(),m(),a=xe.getFirstConstructorWithBody(e),a&&xe.forEach(a.parameters,function(e){xe.hasModifier(e,92)&&_e(e)}),V(e.members),g(),p("}"),f(),v=t;var a}(e);case 235:return r=v,T(v=t=e),ee(t),p("type "),y(h,t.name),ce(t.typeParameters),p(" = "),G(t.type,function(){return{diagnosticMessage:xe.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}),p(";"),f(),void(v=r);case 236:return function(e){T(e),ee(e),xe.isConst(e)&&p("const ");p("enum "),y(h,e.name),p(" {"),f(),m(),V(e.members),g(),p("}"),f()}(e);case 237:return function(e){T(e),ee(e),xe.isGlobalScopeAugmentation(e)?p("global "):(16&e.flags?p("namespace "):p("module "),xe.isExternalModuleAugmentation(e)?ae(e):y(h,e.name));for(;e.body&&238!==e.body.kind;)e=e.body,p("."),y(h,e.name);var t=v;e.body?(v=e,p(" {"),f(),m(),V(e.body.statements),g(),p("}"),f(),v=t):p(";")}(e);case 241:return function(e){T(e),xe.hasModifier(e,1)&&p("export ");p("import "),y(h,e.name),p(" = "),xe.isInternalModuleImportEqualsDeclaration(e)?(G(e.moduleReference,function(){return{diagnosticMessage:xe.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}),p(";")):(p("require("),ae(e),p(");"));u.writeLine()}(e);case 242:return ne(e);default:xe.Debug.fail("Unknown symbol kind")}var t,r}function ee(e){if(272===e.parent.kind){var t=xe.getModifierFlags(e);1&t&&(a=!0,p("export ")),512&t?p("default "):234!==e.kind&&N&&p("declare ")}}function te(e){8&e?p("private "):16&e&&p("protected "),32&e&&p("static "),64&e&&p("readonly "),128&e&&p("abstract ")}function re(e){if(e)return 244===e.kind?d.isDeclarationVisible(e):e.elements.some(function(e){return d.isDeclarationVisible(e)})}function ne(e){if(T(e),xe.hasModifier(e,1)&&p("export "),p("import "),e.importClause){var t=u.getTextPos();e.importClause.name&&d.isDeclarationVisible(e.importClause)&&y(h,e.importClause.name),e.importClause.namedBindings&&re(e.importClause.namedBindings)&&(t!==u.getTextPos()&&p(", "),244===e.importClause.namedBindings.kind?(p("* as "),y(h,e.importClause.namedBindings.name)):(p("{ "),H(e.importClause.namedBindings.elements,ie,d.isDeclarationVisible),p(" }"))),p(" from ")}ae(e),p(";"),u.writeLine()}function ae(e){a=a||237!==e.kind;var t=241===e.kind?xe.getExternalModuleImportEqualsDeclarationExpression(e):237===e.kind?e.name:e.moduleSpecifier;if(9===t.kind&&l&&(x.out||x.outFile)){var r=xe.getExternalModuleNameFromDeclaration(s,d,e);if(r)return p('"'),p(r),void p('"')}y(h,t)}function ie(e){e.propertyName&&(y(h,e.propertyName),p(" as ")),y(h,e.name)}function oe(e){ie(e),R(d.collectLinkedAliases(e.propertyName||e.name))}function se(e){return 153===e.parent.kind&&xe.hasModifier(e.parent,8)}function ce(e){e&&(p("<"),H(e,function(t){function e(){var e;switch(t.parent.kind){case 233:e=xe.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 234:e=xe.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 158:e=xe.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:e=xe.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:case 152:e=xe.hasModifier(t.parent,32)?xe.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:233===t.parent.parent.kind?xe.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:xe.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 232:e=xe.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 235:e=xe.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:xe.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:e,errorNode:t,typeName:t.name}}m(),T(t),g(),y(h,t.name),t.constraint&&!se(t)&&(p(" extends "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(xe.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),X(t.constraint)):G(t.constraint,e)),t.default&&!se(t)&&(p(" = "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(xe.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),X(t.default)):G(t.default,e))}),p(">"))}function ue(e,r){e&&(p(r?" implements ":" extends "),H(e,function(t){xe.isEntityNameExpression(t.expression)?G(t,function(){var e;e=233===t.parent.parent.kind?r?xe.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:xe.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:xe.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:t,typeName:xe.getNameOfDeclaration(t.parent.parent)}}):r||95!==t.expression.kind||p("null")}))}function _e(e){xe.hasDynamicName(e)&&!d.isLateBound(e)||(T(e),te(xe.getModifierFlags(e)),de(e),p(";"),f())}function le(e){return d.isDeclarationVisible(e)||!!(t=e.name)&&xe.isBindingPattern(t)&&xe.some(t.elements,function(e){return!xe.isOmittedExpression(e)&&le(e)});var t}function de(r){function n(e){return 230===r.kind?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:151===r.kind||150===r.kind||148===r.kind&&xe.hasModifier(r.parent,8)?xe.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:233===r.parent.kind||148===r.kind?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:e.errorModuleName?xe.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function e(e){var t=n(e);return void 0!==t?{diagnosticMessage:t,errorNode:r,typeName:r.name}:void 0}function t(e){for(var t=[],r=0,n=e.elements;r<n.length;r++){var a=n[r];204!==a.kind&&le(a)&&t.push(a)}H(t,i)}function i(r){r.name&&(xe.isBindingPattern(r.name)?t(r.name):(y(h,r.name),q(r,void 0,function(e){var t=n(e);return void 0!==t?{diagnosticMessage:t,errorNode:r,typeName:r.name}:void 0})))}(230!==r.kind||le(r))&&(xe.isBindingPattern(r.name)?t(r.name):(ge(r,e),(151===r.kind||150===r.kind||148===r.kind&&!xe.isParameterPropertyDeclaration(r))&&xe.hasQuestionToken(r)&&p("?"),151!==r.kind&&150!==r.kind||165!==r.parent.kind?d.isLiteralConstDeclaration(r)?(p(" = "),d.writeLiteralConstValue(r,u)):xe.hasModifier(r,8)||q(r,r.type,e):pe(r)))}function pe(e){xe.hasType(e)&&(p(": "),X(e.type))}function fe(n){if(!xe.hasDynamicName(n)||d.isLateBound(n)){var r,e=xe.getAllAccessorDeclarations(n.parent.members,n);if(n===e.firstAccessor){if(T(e.getAccessor),T(e.setAccessor),te(xe.getModifierFlags(n)|(e.setAccessor?0:64)),ge(n,function(e){var t=(r=e,xe.hasModifier(n,32)?r.errorModuleName?2===r.accessibility?xe.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:233===n.parent.kind?r.errorModuleName?2===r.accessibility?xe.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?xe.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1);var r;return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0}),!xe.hasModifier(n,8)){var t=i(r=n);if(!t){var a=155===n.kind?e.setAccessor:e.getAccessor;(t=i(a))&&(r=a)}q(n,t,function(e){var t;t=156===r.kind?xe.hasModifier(r,32)?e.errorModuleName?xe.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?xe.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:xe.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?xe.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:xe.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?2===e.accessibility?xe.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:r.name,typeName:r.name}})}p(";"),f()}}function i(e){if(e)return 155===e.kind?e.type:0<e.parameters.length?e.parameters[0].type:void 0}}function me(n){xe.hasDynamicName(n)&&!d.isLateBound(n)||d.isImplementationOfOverload(n)||(T(n),232===n.kind?ee(n):153!==n.kind&&154!==n.kind||te(xe.getModifierFlags(n)),232===n.kind?(p("function "),y(h,n.name)):154===n.kind?p("constructor"):(ge(n,function(e){var t=(r=e,xe.hasModifier(n,32)?r.errorModuleName?2===r.accessibility?xe.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:233===n.parent.kind?r.errorModuleName?2===r.accessibility?xe.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?xe.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1);var r;return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0}),xe.hasQuestionToken(n)&&p("?")),ve(n))}function ge(e,t){xe.hasDynamicName(e)?(xe.Debug.assert(d.isLateBound(e)),function(e,t){u.getSymbolAccessibilityDiagnostic=t;var r=e.name.expression;z(d.isEntityNameVisible(r,v)),B(d.getTypeReferenceDirectivesForEntityName(r)),y(h,e.name)}(e,t)):y(h,e.name)}function ye(e){T(e),ve(e)}function ve(r){var e=v,t=!1;if(159===(v=r).kind)te(xe.getModifierFlags(r)),p("[");else{if(154===r.kind&&xe.hasModifier(r,8))return p("();"),void f();if(158===r.kind||163===r.kind)p("new ");else if(162===r.kind){var n=u.getText();r.typeParameters&&"<"===n.charAt(n.length-1)&&(t=!0,p("("))}ce(r.typeParameters),p("(")}H(r.parameters,he),159===r.kind?p("]"):p(")");var a,i,o=162===r.kind||163===r.kind;o||165===r.parent.kind?r.type&&(p(o?" => ":": "),X(r.type)):154===r.kind||xe.hasModifier(r,8)||(a=r,i=function(e){var t;switch(r.kind){case 158:t=e.errorModuleName?xe.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:t=e.errorModuleName?xe.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 159:t=e.errorModuleName?xe.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 153:case 152:t=xe.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:xe.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:233===r.parent.kind?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:xe.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:e.errorModuleName?xe.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 232:t=e.errorModuleName?2===e.accessibility?xe.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:xe.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:xe.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:xe.Debug.fail("This is unknown kind for signature: "+r.kind)}return{diagnosticMessage:t,errorNode:r.name||r}},u.getSymbolAccessibilityDiagnostic=i,p(": "),a.type?X(a.type):(k=a.name,d.writeReturnTypeOfSignatureDeclaration(a,v,6152,u),k=void 0)),v=e,o?t&&p(")"):(p(";"),f())}function he(r){function t(e){if(178===e.kind)p("{"),H(e.elements,n),p("}");else if(179===e.kind){p("[");var t=e.elements;H(t,n),t&&t.hasTrailingComma&&p(", "),p("]")}}function n(e){204===e.kind?p(" "):180===e.kind&&(e.propertyName&&(y(h,e.propertyName),p(": ")),e.name&&(xe.isBindingPattern(e.name)?t(e.name):(xe.Debug.assert(71===e.name.kind),e.dotDotDotToken&&p("..."),y(h,e.name))))}m(),T(r),r.dotDotDotToken&&p("..."),xe.isBindingPattern(r.name)?t(r.name):y(h,r.name),d.isOptionalParameter(r)&&p("?"),g(),162===r.parent.kind||163===r.parent.kind||165===r.parent.parent.kind?pe(r):xe.hasModifier(r.parent,8)||q(r,r.type,function(e){var t=function(e){switch(r.parent.kind){case 154:return e.errorModuleName?2===e.accessibility?xe.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 158:return e.errorModuleName?xe.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return e.errorModuleName?xe.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 159:return e.errorModuleName?xe.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 153:case 152:return xe.hasModifier(r.parent,32)?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:233===r.parent.parent.kind?e.errorModuleName?2===e.accessibility?xe.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?xe.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 232:return e.errorModuleName?2===e.accessibility?xe.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:xe.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:xe.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:xe.Debug.fail("This is unknown parent for parameter: "+r.parent.kind)}}(e);return void 0!==t?{diagnosticMessage:t,errorNode:r,typeName:r.name}:void 0})}function be(e){switch(e.kind){case 232:case 237:case 241:case 234:case 233:case 235:case 236:return Z(e,(n=e,d.isDeclarationVisible(n)));case 212:return Z(e,(r=e,xe.forEach(r.declarationList.declarations,function(e){return le(e)})));case 242:return Z(e,!e.importClause);case 248:return a=!0,T(t=e),p("export "),t.exportClause?(p("{ "),H(t.exportClause.elements,oe),p(" }")):p("*"),t.moduleSpecifier&&(p(" from "),ae(t)),p(";"),void u.writeLine();case 154:case 153:case 152:return me(e);case 158:case 157:case 159:return ye(e);case 155:case 156:return fe(e);case 151:case 150:return _e(e);case 271:return function(e){T(e),y(h,e.name);var t=d.getConstantValue(e);void 0!==t&&(p(" = "),p(xe.getTextOfConstantValue(t))),p(","),f()}(e);case 247:return function(e){if(xe.isSourceFile(e.parent)&&(a=!0),71===e.expression.kind)p(e.isExportEquals?"export = ":"export default "),y(h,e.expression);else{var t=Y(e.expression,"_default",{diagnosticMessage:xe.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e},N);p(e.isExportEquals?"export = ":"export default "),p(t)}p(";"),f(),71===e.expression.kind&&R(d.collectLinkedAliases(e.expression))}(e);case 272:return Q(e)}var t,r,n}}xe.getDeclarationDiagnostics=function(n,a,e){var i=xe.createDiagnosticCollection();return xe.forEachEmittedFile(n,function(e,t){var r=e.declarationFilePath;_(n,a,i,r,t,!1)},e),i.getDiagnostics(e?e.fileName:void 0)},xe.writeDeclarationFile=function(e,t,r,n,a,i){var o=_(r,n,a,e,t,i),s=o.reportedDeclarationError||r.isEmitBlocked(e)||r.getCompilerOptions().noEmit;if(!s||i){var c=273===t.kind?t.sourceFiles:[t],u=o.referencesOutput+function t(r,e){var n=0,a="";return xe.forEach(e,function(e){e.asynchronousOutput&&(a+=r.substring(n,e.outputPos),a+=t(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),n=e.outputPos)}),a+=r.substring(n)}(o.synchronousDeclarationOutput,o.moduleElementDeclarationEmitInfo);xe.writeFile(r,a,e,u,r.getCompilerOptions().emitBOM,c)}return s}}(ts||(ts={})),function(Ot){var e,t,r,De=((e=[])[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e);function i(e,t,r,n){var a=Ot.isArray(r)?r:Ot.getSourceFilesToEmit(e,r),i=e.getCompilerOptions();if(i.outFile||i.out){if(a.length&&(u=t({jsFilePath:c=i.outFile||i.out,sourceMapFilePath:l(c,i),declarationFilePath:i.declaration?Ot.removeFileExtension(c)+".d.ts":""},Ot.createBundle(a),n)))return u}else for(var o=0,s=a;o<s.length;o++){var c,u,_=s[o];if(u=t({jsFilePath:c=Ot.getOwnEmitOutputFilePath(_,e,d(_,i)),sourceMapFilePath:l(c,i),declarationFilePath:Ot.isSourceFileJavaScript(_)||!n&&!i.declaration?void 0:Ot.getDeclarationEmitOutputFilePath(_,e)},_,n))return u}}function l(e,t){return t.sourceMap?e+".map":void 0}function d(e,t){if(1===t.jsx)if(Ot.isSourceFileJavaScript(e)){if(Ot.fileExtensionIs(e.fileName,".jsx"))return".jsx"}else if(1===e.languageVariant)return".jsx";return".js"}function x(I,e){void 0===I&&(I={}),void 0===e&&(e={});var O,r,a,n,t,i,o,s,Ie,c,u=e.hasGlobalName,_=e.onEmitSourceMapOfNode,l=e.onEmitSourceMapOfToken,d=e.onEmitSourceMapOfPosition,p=e.onEmitNode,f=e.onEmitHelpers,m=e.onSetSourceFile,g=e.substituteNode,y=e.onBeforeEmitNodeArray,v=e.onAfterEmitNodeArray,h=e.onBeforeEmitToken,b=e.onAfterEmitToken,x=Ot.getNewLineCharacter(I),k=Ot.createCommentWriter(I,d),D=k.emitNodeWithComments,S=k.emitBodyWithDetachedComments,Oe=k.emitTrailingCommentsOfPosition,M=k.emitLeadingCommentsOfPosition,Me=function(e){Le(),Ie.write(e)},Le=Ot.noop,Re=oe,C=!1;I.omitTrailingSemicolon&&(Le=function(){C&&(oe(),C=!1)},Re=function(){C=!0});var T={pos:-1,end:-1};return j(),{printNode:function(e,t,r){switch(e){case 0:Ot.Debug.assert(Ot.isSourceFile(t),"Expected a SourceFile node.");break;case 2:Ot.Debug.assert(Ot.isIdentifier(t),"Expected an Identifier node.");break;case 1:Ot.Debug.assert(Ot.isExpression(t),"Expected an Expression node.")}switch(t.kind){case 272:return N(t);case 273:return E(t)}return A(e,t,r,L()),R()},printList:function(e,t,r){return P(e,t,r,L()),R()},printFile:N,printBundle:E,writeNode:A,writeList:P,writeFile:w,writeBundle:F};function E(e){return F(e,L()),R()}function N(e){return w(e,L()),R()}function A(e,t,r,n){var a=Ie;J(n),B(e,t,r),j(),Ie=a}function P(e,t,r,n){var a=Ie;J(n),r&&z(r),gt(T,t,e),j(),Ie=a}function F(e,t){var r=Ie;J(t),te(e),ee(e),W(e);for(var n=0,a=e.sourceFiles;n<a.length;n++){var i=a[n];B(0,i,i)}j(),Ie=r}function w(e,t){var r=Ie;J(t),te(e),ee(e),B(0,e,e),j(),Ie=r}function L(){return c||(c=Ot.createTextWriter(x))}function R(){var e=c.getText();return c.clear(),e}function B(e,t,r){r&&z(r),je(e,t)}function z(e){O=e,k.setSourceFile(e),m&&m(e)}function J(e){Ie=e,k.setWriter(e)}function j(){r=[],a=[],n=Ot.createMap(),t=[],i=0,o=[],k.reset(),J(void 0)}function Be(e){e&&ze(e)}function ze(e){je(4,e)}function K(e){je(2,e)}function Je(e){je(1,e)}function je(e,t){p?p(e,t,U):U(e,t)}function U(e,t){t=Ue(e,t),D&&0!==e?D(e,t,q):q(e,t)}function q(e,t){_&&0!==e&&2!==e?_(e,t,V):V(e,t)}function V(e,t){switch(e){case 0:return a=t,Ot.Debug.assertNode(a,Ot.isSourceFile),void function(e){Dt();var t=e.statements;if(S){var r=0===t.length||!Ot.isPrologueDirective(t[0])||Ot.nodeIsSynthesized(t[0]);if(r)return S(e,t,Z)}Z(e)}(a);case 2:return n=t,Ot.Debug.assertNode(n,Ot.isIdentifier),void Ve(n);case 1:return Ke(t);case 3:return ze((r=Ot.cast(t,Ot.isTypeParameterDeclaration)).name),xt(),vt("in"),xt(),void ze(r.constraint);case 4:return function(e){var t=e.kind;if(Ot.isKeyword(t))return void Et(e,vt);switch(t){case 14:case 15:case 16:return qe(e);case 71:return Ve(e);case 145:return 71===(we=(Fe=e).left).kind?Je(we):ze(we),yt("."),void ze(Fe.right);case 146:return Pe=e,yt("["),Je(Pe.expression),void yt("]");case 147:return function(e){ze(e.name),e.constraint&&(xt(),vt("extends"),xt(),ze(e.constraint));e.default&&(xt(),ht("="),xt(),ze(e.default))}(e);case 148:return function(e){lt(e,e.decorators),it(e,e.modifiers),Be(e.dotDotDotToken),e.name&&at(e.name,bt);Be(e.questionToken),e.parent&&280===e.parent.kind&&!e.name?ze(e.type):ot(e.type);st(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(e);case 149:return Ae=e,yt("@"),void Je(Ae.expression);case 150:return lt(Ne=e,Ne.decorators),it(Ne,Ne.modifiers),at(Ne.name,kt),Be(Ne.questionToken),ot(Ne.type),void Re();case 151:return lt(Ee=e,Ee.decorators),it(Ee,Ee.modifiers),ze(Ee.name),Be(Ee.questionToken),Be(Ee.exclamationToken),ot(Ee.type),st(Ee.initializer,Ee.type?Ee.type.end:Ee.questionToken?Ee.questionToken.end:Ee.name.end,Ee),void Re();case 152:return lt(Te=e,Te.decorators),it(Te,Te.modifiers),ze(Te.name),Be(Te.questionToken),pt(Te,Te.typeParameters),ft(Te,Te.parameters),ot(Te.type),void Re();case 153:return lt(Ce=e,Ce.decorators),it(Ce,Ce.modifiers),Be(Ce.asteriskToken),ze(Ce.name),Be(Ce.questionToken),void Ye(Ce,Ze);case 154:return it(Se=e,Se.modifiers),vt("constructor"),void Ye(Se,Ze);case 155:case 156:return lt(De=e,De.decorators),it(De,De.modifiers),vt(155===De.kind?"get":"set"),xt(),ze(De.name),void Ye(De,Ze);case 157:return lt(ke=e,ke.decorators),it(ke,ke.modifiers),pt(ke,ke.typeParameters),ft(ke,ke.parameters),ot(ke.type),void Re();case 158:return lt(xe=e,xe.decorators),it(xe,xe.modifiers),vt("new"),xt(),pt(xe,xe.typeParameters),ft(xe,xe.parameters),ot(xe.type),void Re();case 159:return lt(ve=e,ve.decorators),it(ve,ve.modifiers),be=(he=ve).parameters,gt(he,be,4432),ot(ve.type),void Re();case 160:return ze((ye=e).parameterName),xt(),vt("is"),xt(),void ze(ye.type);case 161:return ze((ge=e).typeName),void dt(ge,ge.typeArguments);case 162:return pt(me=e,me.typeParameters),mt(me,me.parameters),xt(),yt("=>"),xt(),void ze(me.type);case 280:return fe=e,Me("function"),ft(fe,fe.parameters),Me(":"),void ze(fe.type);case 163:return pe=e,vt("new"),xt(),pt(pe,pe.typeParameters),ft(pe,pe.parameters),xt(),yt("=>"),xt(),void ze(pe.type);case 164:return de=e,vt("typeof"),xt(),void ze(de.exprName);case 165:return function(e){yt("{");var t=1&Ot.getEmitFlags(e)?448:65;gt(e,e.members,262144|t),yt("}")}(e);case 166:return ze(e.elementType),yt("["),void yt("]");case 167:return le=e,yt("["),gt(le,le.elementTypes,336),void yt("]");case 168:return void gt(_e=e,_e.types,260);case 169:return void gt(ue=e,ue.types,264);case 170:return ze((ce=e).checkType),xt(),vt("extends"),xt(),ze(ce.extendsType),xt(),yt("?"),xt(),ze(ce.trueType),xt(),yt(":"),xt(),void ze(ce.falseType);case 171:return se=e,vt("infer"),xt(),void ze(se.typeParameter);case 172:return oe=e,yt("("),ze(oe.type),void yt(")");case 205:return Je((ie=e).expression),void dt(ie,ie.typeArguments);case 173:return void vt("this");case 174:return Nt((ae=e).operator,vt),xt(),void ze(ae.type);case 175:return ze((ne=e).objectType),yt("["),ze(ne.indexType),void yt("]");case 176:return function(e){var t=Ot.getEmitFlags(e);yt("{"),1&t?xt():(Dt(),St());e.readonlyToken&&(ze(e.readonlyToken),132!==e.readonlyToken.kind&&vt("readonly"),xt());yt("["),je(3,e.typeParameter),yt("]"),e.questionToken&&(ze(e.questionToken),55!==e.questionToken.kind&&yt("?"));yt(":"),xt(),ze(e.type),Re(),1&t?xt():(Dt(),Ct());yt("}")}(e);case 177:return void Je(e.literal);case 275:return void Me("*");case 276:return void Me("?");case 277:return re=e,Me("?"),void ze(re.type);case 278:return te=e,Me("!"),void ze(te.type);case 279:return ze(e.type),void Me("=");case 281:return ee=e,Me("..."),void ze(ee.type);case 178:return $=e,yt("{"),gt($,$.elements,262576),void yt("}");case 179:return Z=e,yt("["),gt(Z,Z.elements,262448),void yt("]");case 180:return function(e){Be(e.dotDotDotToken),e.propertyName&&(ze(e.propertyName),yt(":"),xt());ze(e.name),st(e.initializer,e.name.end,e)}(e);case 209:return Je((Y=e).expression),void ze(Y.literal);case 210:return void Re();case 211:return void We(Q=e,!Q.multiLine&&Pt(Q));case 212:return it(X=e,X.modifiers),ze(X.declarationList),void Re();case 213:return void Re();case 214:return Je(e.expression),void Re();case 215:return G=Xe(90,(H=e).pos,vt,H),xt(),Xe(19,G,yt,H),Je(H.expression),Xe(20,H.expression.end,yt,H),_t(H,H.thenStatement),void(H.elseStatement&&(At(H),Xe(82,H.thenStatement.end,vt,H),215===H.elseStatement.kind?(xt(),ze(H.elseStatement)):_t(H,H.elseStatement)));case 216:return function(e){Xe(81,e.pos,vt,e),_t(e,e.statement),Ot.isBlock(e.statement)?xt():At(e);He(e,e.statement.end),yt(";")}(e);case 217:return He(W=e,W.pos),void _t(W,W.statement);case 218:return function(e){var t=Xe(88,e.pos,vt,e);xt();var r=Xe(19,t,yt,e);Ge(e.initializer),r=Xe(25,e.initializer?e.initializer.end:r,Re,e),ut(e.condition),r=Xe(25,e.condition?e.condition.end:r,Re,e),ut(e.incrementor),Xe(20,e.incrementor?e.incrementor.end:r,yt,e),_t(e,e.statement)}(e);case 219:return V=Xe(88,(q=e).pos,vt,q),xt(),Xe(19,V,yt,q),Ge(q.initializer),xt(),Xe(92,q.initializer.end,vt,q),xt(),Je(q.expression),Xe(20,q.expression.end,yt,q),void _t(q,q.statement);case 220:return K=Xe(88,(j=e).pos,vt,j),xt(),(U=j.awaitModifier)&&(ze(U),xt()),Xe(19,K,yt,j),Ge(j.initializer),xt(),Xe(144,j.initializer.end,vt,j),xt(),Je(j.expression),Xe(20,j.expression.end,yt,j),void _t(j,j.statement);case 221:return Xe(77,(J=e).pos,vt,J),ct(J.label),void Re();case 222:return Xe(72,(z=e).pos,vt,z),ct(z.label),void Re();case 223:return Xe(96,(B=e).pos,vt,B),ut(B.expression),void Re();case 224:return R=Xe(107,(L=e).pos,vt,L),xt(),Xe(19,R,yt,L),Je(L.expression),Xe(20,L.expression.end,yt,L),void _t(L,L.statement);case 225:return M=Xe(98,(O=e).pos,vt,O),xt(),Xe(19,M,yt,O),Je(O.expression),Xe(20,O.expression.end,yt,O),xt(),void ze(O.caseBlock);case 226:return ze((I=e).label),Xe(56,I.label.end,yt,I),xt(),void ze(I.statement);case 227:return Xe(100,(w=e).pos,vt,w),ut(w.expression),void Re();case 228:return function(e){Xe(102,e.pos,vt,e),xt(),ze(e.tryBlock),e.catchClause&&(At(e),ze(e.catchClause));e.finallyBlock&&(At(e),Xe(87,(e.catchClause||e.tryBlock).end,vt,e),xt(),ze(e.finallyBlock))}(e);case 229:return Tt(78,e.pos,vt),void Re();case 230:return ze((F=e).name),ot(F.type),void st(F.initializer,F.type?F.type.end:F.name.end,F);case 231:return P=e,vt(Ot.isLet(P)?"let":Ot.isConst(P)?"const":"var"),xt(),void gt(P,P.declarations,272);case 232:return void Qe(e);case 233:return void $e(e);case 234:return lt(A=e,A.decorators),it(A,A.modifiers),vt("interface"),xt(),ze(A.name),pt(A,A.typeParameters),gt(A,A.heritageClauses,256),xt(),yt("{"),gt(A,A.members,65),void yt("}");case 235:return lt(N=e,N.decorators),it(N,N.modifiers),vt("type"),xt(),ze(N.name),pt(N,N.typeParameters),xt(),yt("="),xt(),ze(N.type),void Re();case 236:return it(E=e,E.modifiers),vt("enum"),xt(),ze(E.name),xt(),yt("{"),gt(E,E.members,81),void yt("}");case 237:return function(e){it(e,e.modifiers),512&~e.flags&&(vt(16&e.flags?"namespace":"module"),xt());ze(e.name);var t=e.body;for(;237===t.kind;)yt("."),ze(t.name),t=t.body;xt(),ze(t)}(e);case 238:return wt(T=e),We(T,Pt(T)),void It(T);case 239:return Xe(17,(C=e).pos,yt,C),gt(C,C.clauses,65),void Xe(18,C.clauses.end,yt,C,!0);case 240:return S=Xe(84,(D=e).pos,vt,D),xt(),S=Xe(118,S,vt,D),xt(),S=Xe(130,S,vt,D),xt(),ze(D.name),void Re();case 241:return it(x=e,x.modifiers),Xe(91,x.modifiers?x.modifiers.end:x.pos,vt,x),xt(),ze(x.name),xt(),Xe(58,x.name.end,yt,x),xt(),71===(k=x.moduleReference).kind?Je(k):ze(k),void Re();case 242:return function(e){it(e,e.modifiers),Xe(91,e.modifiers?e.modifiers.end:e.pos,vt,e),xt(),e.importClause&&(ze(e.importClause),xt(),Xe(142,e.importClause.end,vt,e),xt());Je(e.moduleSpecifier),Re()}(e);case 243:return function(e){ze(e.name),e.name&&e.namedBindings&&(Xe(26,e.name.end,yt,e),xt());ze(e.namedBindings)}(e);case 244:return b=Xe(39,(h=e).pos,yt,h),xt(),Xe(118,b,vt,h),xt(),void ze(h.name);case 245:return void et(e);case 246:return void tt(e);case 247:return function(e){var t=Xe(84,e.pos,vt,e);xt(),e.isExportEquals?Xe(58,t,ht,e):Xe(79,t,vt,e);xt(),Je(e.expression),Re()}(e);case 248:return function(e){var t=Xe(84,e.pos,vt,e);xt(),e.exportClause?ze(e.exportClause):t=Xe(39,t,yt,e);if(e.moduleSpecifier){xt();var r=e.exportClause?e.exportClause.end:t;Xe(142,r,vt,e),xt(),Je(e.moduleSpecifier)}Re()}(e);case 249:return void et(e);case 250:return void tt(e);case 251:return;case 252:return v=e,vt("require"),yt("("),Je(v.expression),void yt(")");case 10:return y=e,Le(),void Ie.writeLiteral(Ft(y,!0));case 255:case 258:return function(e){yt("<"),Ot.isJsxOpeningElement(e)&&(rt(e.tagName),e.attributes.properties&&0<e.attributes.properties.length&&(xt(),ze(e.attributes)));yt(">")}(e);case 256:case 259:return function(e){yt("</"),Ot.isJsxClosingElement(e)&&rt(e.tagName);yt(">")}(e);case 260:return ze((d=e).name),p="=",f=yt,m=d.initializer,g=ze,void(m&&(f(p),g(m)));case 261:return void gt(l=e,l.properties,131328);case 262:return _=e,yt("{..."),Je(_.expression),void yt("}");case 263:return void((u=e).expression&&(yt("{"),Be(u.dotDotDotToken),Je(u.expression),yt("}")));case 264:return Xe(73,(c=e).pos,vt,c),xt(),Je(c.expression),void nt(c,c.statements,c.expression.end);case 265:return s=Xe(79,(o=e).pos,vt,o),void nt(o,o.statements,s);case 266:return i=e,xt(),Nt(i.token,vt),xt(),void gt(i,i.types,272);case 267:return function(e){var t=Xe(74,e.pos,vt,e);xt(),e.variableDeclaration&&(Xe(19,t,yt,e),ze(e.variableDeclaration),Xe(20,e.variableDeclaration.end,yt,e),xt());ze(e.block)}(e);case 268:return function(e){ze(e.name),yt(":"),xt();var t=e.initializer;if(Oe&&0==(512&Ot.getEmitFlags(t))){var r=Ot.getCommentRange(t);Oe(r.pos)}Je(t)}(e);case 269:return ze((a=e).name),void(a.objectAssignmentInitializer&&(xt(),yt("="),xt(),Je(a.objectAssignmentInitializer)));case 270:return void((n=e).expression&&(yt("..."),Je(n.expression)));case 271:return ze((r=e).name),void st(r.initializer,r.name.end,r)}var r;var n;var a;var i;var o,s;var c;var u;var _;var l;var d,p,f,m,g;var y;var v;var h,b;var x,k;var D,S;var C;var T;var E;var N;var A;var P;var F;var w;var I;var O,M;var L,R;var B;var z;var J;var j,K,U;var q,V;var W;var H,G;var X;var Q;var Y;var Z;var $;var ee;var te;var re;var ne;var ae;var ie;var oe;var se;var ce;var ue;var _e;var le;var de;var pe;var fe;var me;var ge;var ye;var ve,he,be;var xe;var ke;var De;var Se;var Ce;var Te;var Ee;var Ne;var Ae;var Pe;var Fe,we;if(Ot.isExpression(e))return Ke(Ue(1,e));if(Ot.isToken(e))return void Et(e,yt)}(t)}var r,n,a}function Ke(e){var t,r,n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h,b,x,k,D,S,C,T,E,N,A,P,F,w;switch(e.kind){case 8:return void qe(e);case 9:case 12:case 13:return qe(e);case 71:return Ve(e);case 86:case 95:case 97:case 101:case 99:case 91:return void Et(e,vt);case 181:return F=(P=e).elements,w=P.multiLine?32768:0,void re(P,F,4466|w);case 182:return function(e){var t=65536&Ot.getEmitFlags(e);t&&St();var r=e.multiLine?32768:0,n=1<=O.languageVersion?32:0;gt(e,e.properties,263122|n|r),t&&Ct()}(e);case 183:return function(e){var t=!1,r=!1;if(!(131072&Ot.getEmitFlags(e))){var n=e.expression.end,a=Ot.skipTrivia(O.text,e.expression.end)+1,i=Ot.createToken(23);i.pos=n,i.end=a,t=fe(e,e.expression,i),r=fe(e,i,e.name)}Je(e.expression),ce(t),!t&&function(e){if(e=Ot.skipPartiallyEmittedExpressions(e),Ot.isNumericLiteral(e)){var t=ge(e);return!e.numericLiteralFlags&&!Ot.stringContains(t,Ot.tokenToString(23))}if(Ot.isPropertyAccessExpression(e)||Ot.isElementAccessExpression(e)){var r=Ot.getConstantValue(e);return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r&&I.removeComments}}(e.expression)&&yt(".");Xe(23,e.expression.end,yt,e),ce(r),ze(e.name),ue(t,r)}(e);case 184:return function(e){Je(e.expression);var t=Xe(21,e.expression.end,yt,e);Je(e.argumentExpression),Xe(22,e.argumentExpression?e.argumentExpression.end:t,yt,e)}(e);case 185:return Je((A=e).expression),dt(A,A.typeArguments),void re(A,A.arguments,1296);case 186:return Xe(94,(N=e).pos,vt,N),xt(),Je(N.expression),dt(N,N.typeArguments),void re(N,N.arguments,9488);case 187:return Je((E=e).tag),xt(),void Je(E.template);case 188:return T=e,yt("<"),ze(T.type),yt(">"),void Je(T.expression);case 189:return C=Xe(19,(S=e).pos,yt,S),Je(S.expression),void Xe(20,S.expression?S.expression.end:C,yt,S);case 190:return void Qe(e);case 191:return lt(D=e,D.decorators),it(D,D.modifiers),void Ye(D,H);case 192:return Xe(80,(k=e).pos,vt,k),xt(),void Je(k.expression);case 193:return Xe(103,(x=e).pos,vt,x),xt(),void Je(x.expression);case 194:return Xe(105,(b=e).pos,vt,b),xt(),void Je(b.expression);case 195:return Xe(121,(h=e).pos,vt,h),xt(),void Je(h.expression);case 196:return function(e){Nt(e.operator,ht),t=e,r=t.operand,196!==r.kind||(37!==t.operator||37!==r.operator&&43!==r.operator)&&(38!==t.operator||38!==r.operator&&44!==r.operator)||xt();var t,r;Je(e.operand)}(e);case 197:return Je((v=e).operand),void Nt(v.operator,ht);case 198:return m=26!==(f=e).operatorToken.kind,g=fe(f,f.left,f.operatorToken),y=fe(f,f.operatorToken,f.right),Je(f.left),ce(g,m?" ":void 0),M(f.operatorToken.pos),Et(f.operatorToken,ht),Oe(f.operatorToken.end,!0),ce(y," "),Je(f.right),void ue(g,y);case 199:return _=fe(u=e,u.condition,u.questionToken),l=fe(u,u.questionToken,u.whenTrue),d=fe(u,u.whenTrue,u.colonToken),p=fe(u,u.colonToken,u.whenFalse),Je(u.condition),ce(_," "),ze(u.questionToken),ce(l," "),Je(u.whenTrue),ue(_,l),ce(d," "),ze(u.colonToken),ce(p," "),Je(u.whenFalse),void ue(d,p);case 200:return ze((c=e).head),void gt(c,c.templateSpans,131072);case 201:return Xe(116,(s=e).pos,vt,s),ze(s.asteriskToken),void ut(s.expression);case 202:return o=e,yt("..."),void Je(o.expression);case 203:return void $e(e);case 204:return;case 206:return Je((i=e).expression),void(i.type&&(xt(),vt("as"),xt(),ze(i.type)));case 207:return Je(e.expression),void ht("!");case 208:return Tt((a=e).keywordToken,a.pos,yt),yt("."),void ze(a.name);case 253:return ze((n=e).openingElement),gt(n,n.children,131072),void ze(n.closingElement);case 254:return function(e){yt("<"),rt(e.tagName),xt(),e.attributes.properties&&0<e.attributes.properties.length&&ze(e.attributes);yt("/>")}(e);case 257:return ze((r=e).openingFragment),gt(r,r.children,131072),void ze(r.closingFragment);case 295:return void Je(e.expression);case 296:return void re(t=e,t.elements,272)}}function Ue(e,t){return t&&g&&g(e,t)||t}function W(e){f&&f(e,se)}function qe(e){var t,r,n=ge(e);!I.sourceMap&&!I.inlineSourceMap||9!==e.kind&&!Ot.isTemplateLiteralKind(e.kind)?(t=n,Le(),Ie.writeStringLiteral(t)):(r=n,Le(),Ie.writeLiteral(r))}function Ve(e){(e.symbol?ie:Me)(Ft(e,!1),e.symbol),gt(e,e.typeArguments,26896)}function H(e){pt(e,e.typeParameters),mt(e,e.parameters),ot(e.type),xt(),ze(e.equalsGreaterThanToken)}function We(e,t){Xe(17,e.pos,yt,e);var r=t||1&Ot.getEmitFlags(e)?384:65;gt(e,e.statements,r),Xe(18,e.statements.end,yt,e,!!(1&r))}function He(e,t){var r=Xe(106,t,vt,e);xt(),Xe(19,r,yt,e),Je(e.expression),Xe(20,e.expression.end,yt,e)}function Ge(e){void 0!==e&&(231===e.kind?ze(e):Je(e))}function Xe(e,t,r,n,a){var i=n&&Ot.getParseTreeNode(n),o=i&&i.kind===n.kind,s=t;if(o&&(t=Ot.skipTrivia(O.text,t)),M&&o){var c=a&&!Ot.positionsAreOnSameLine(s,t,O);c&&St(),M(s),c&&Ct()}return t=Nt(e,r,t),Oe&&o&&Oe(t,!0),t}function Qe(e){lt(e,e.decorators),it(e,e.modifiers),vt("function"),Be(e.asteriskToken),xt(),K(e.name),Ye(e,Ze)}function G(e,t){X(t)}function Ye(e,t){var r=e.body;if(r)if(Ot.isBlock(r)){var n=65536&Ot.getEmitFlags(e);n&&St(),wt(e),t(e),p?p(4,r,G):X(r),It(e),n&&Ct()}else t(e),xt(),Je(r);else t(e),Re()}function Ze(e){pt(e,e.typeParameters),ft(e,e.parameters),ot(e.type)}function X(e){xt(),yt("{"),St();var t=function(e){if(1&Ot.getEmitFlags(e))return!0;if(e.multiLine)return!1;if(!Ot.nodeIsSynthesized(e)&&!Ot.rangeIsOnSingleLine(e,O))return!1;if(_e(e,e.statements,2)||de(e,e.statements,2))return!1;for(var t,r=0,n=e.statements;r<n.length;r++){var a=n[r];if(le(t,a,2))return!1;t=a}return!0}(e)?Q:Y;S?S(e,e.statements,t):t(e),Ct(),Tt(18,e.statements.end,yt,e)}function Q(e){Y(e,!0)}function Y(e,t){var r=$(e.statements,!0),n=Ie.getTextPos();W(e),0===r&&n===Ie.getTextPos()&&t?(Ct(),gt(e,e.statements,384),St()):gt(e,e.statements,1,r)}function $e(e){lt(e,e.decorators),it(e,e.modifiers),vt("class"),e.name&&(xt(),K(e.name));var t=65536&Ot.getEmitFlags(e);t&&St(),pt(e,e.typeParameters),gt(e,e.heritageClauses,256),xt(),yt("{"),gt(e,e.members,65),yt("}"),t&&Ct()}function et(e){yt("{"),gt(e,e.elements,432),yt("}")}function tt(e){e.propertyName&&(ze(e.propertyName),xt(),Xe(118,e.propertyName.end,vt,e),xt()),ze(e.name)}function rt(e){71===e.kind?Je(e):ze(e)}function nt(e,t,r){var n=81985;1===t.length&&(Ot.nodeIsSynthesized(e)||Ot.nodeIsSynthesized(t[0])||Ot.rangeStartPositionsAreOnSameLine(e,t[0],O))?(Tt(56,r,yt,e),xt(),n&=-66):Xe(56,r,yt,e),gt(e,t,n)}function Z(e){var t=e.statements;wt(e),W(e);var r=Ot.findIndex(t,function(e){return!Ot.isPrologueDirective(e)});gt(e,t,1,-1===r?t.length:r),It(e)}function $(e,t,r){for(var n=0;n<e.length;n++){var a=e[n];if(!Ot.isPrologueDirective(a))return n;(!r||!r.has(a.expression.text))&&((t||0<n)&&Dt(),ze(a),r&&r.set(a.expression.text,!0))}return e.length}function ee(e){if(Ot.isSourceFile(e))z(e),$(e.statements);else for(var t=Ot.createMap(),r=0,n=e.sourceFiles;r<n.length;r++){var a=n[r];z(a),$(a.statements,!0,t)}}function te(e){if(Ot.isSourceFile(e)){var t=Ot.getShebang(e.text);if(t)return Me(t),Dt(),!0}else for(var r=0,n=e.sourceFiles;r<n.length;r++){if(te(n[r]))break}}function at(e,t){var r=Me;Me=t,ze(e),Me=r}function it(e,t){t&&t.length&&(gt(e,t,131328),xt())}function ot(e){e&&(yt(":"),xt(),ze(e))}function st(e,t,r){e&&(xt(),Xe(58,t,ht,r),xt(),Je(e))}function ct(e){e&&(xt(),ze(e))}function ut(e){e&&(xt(),Je(e))}function _t(e,t){Ot.isBlock(t)||1&Ot.getEmitFlags(e)?(xt(),ze(t)):(Dt(),St(),ze(t),Ct())}function lt(e,t){gt(e,t,24577)}function dt(e,t){gt(e,t,26896)}function pt(e,t){if(Ot.isFunctionLike(e)&&e.typeArguments)return dt(e,e.typeArguments);gt(e,t,26896)}function ft(e,t){gt(e,t,1296)}function mt(e,t){var r,n,a;r=e,n=t,!(a=Ot.singleOrUndefined(n))||a.pos!==r.pos||Ot.isArrowFunction(r)&&r.type||Ot.some(r.decorators)||Ot.some(r.modifiers)||Ot.some(r.typeParameters)||Ot.some(a.decorators)||Ot.some(a.modifiers)||a.dotDotDotToken||a.questionToken||a.type||a.initializer||!Ot.isIdentifier(a.name)?ft(e,t):gt(e,t,272)}function gt(e,t,r,n,a){ae(ze,e,t,r,n,a)}function re(e,t,r,n,a){ae(Je,e,t,r,n,a)}function ne(e){switch(28&e){case 0:break;case 16:yt(",");break;case 4:xt(),yt("|");break;case 8:xt(),yt("&")}}function ae(e,t,r,n,a,i){void 0===a&&(a=0),void 0===i&&(i=r?r.length-a:0);var o=void 0===r;if(!(o&&8192&n)){var s=o||a>=r.length||0===i;if(s&&16384&n)return y&&y(r),void(v&&v(r));if(7680&n&&(yt(De[7680&n][0]),s&&Oe(r.pos,!0)),y&&y(r),s)1&n?Dt():128&n&&!(262144&n)&&xt();else{var c=0==(131072&n),u=c;_e(t,r,n)?(Dt(),u=!1):128&n&&xt(),64&n&&St();for(var _=void 0,l=void 0,d=0;d<i;d++){var p=r[a+d];if(_&&(28&n&&_.end!==t.end&&M(_.end),ne(n),le(_,p,n)?(0==(67&n)&&(St(),l=!0),Dt(),u=!1):_&&256&n&&xt()),u){if(Oe){var f=Ot.getCommentRange(p);Oe(f.pos)}}else u=c;e(p),l&&(Ct(),l=!1),_=p}var m=32&n&&r.hasTrailingComma;16&n&&m&&yt(","),_&&28&n&&_.end!==t.end&&!(1024&Ot.getEmitFlags(_))&&M(_.end),64&n&&Ct(),de(t,r,n)?Dt():128&n&&xt()}v&&v(r),7680&n&&(s&&M(r.end),yt(De[7680&n][1]))}}function ie(e,t){Le(),Ie.writeSymbol(e,t)}function yt(e){Le(),Ie.writePunctuation(e)}function oe(){Ie.writePunctuation(";")}function vt(e){Le(),Ie.writeKeyword(e)}function ht(e){Le(),Ie.writeOperator(e)}function bt(e){Le(),Ie.writeParameter(e)}function xt(){Le(),Ie.writeSpace(" ")}function kt(e){Le(),Ie.writeProperty(e)}function Dt(){Le(),Ie.writeLine()}function St(){Le(),Ie.increaseIndent()}function Ct(){Le(),Ie.decreaseIndent()}function Tt(e,t,r,n){return l?l(n,e,r,t,Nt):Nt(e,r,t)}function Et(e,t){h&&h(e),t(Ot.tokenToString(e.kind)),b&&b(e)}function Nt(e,t,r){var n=Ot.tokenToString(e);return t(n),r<0?r:r+n.length}function At(e){1&Ot.getEmitFlags(e)?xt():Dt()}function se(e){for(var t=e.split(/\r\n?|\n/g),r=function(e){for(var t,r=0,n=e;r<n.length;r++)for(var a=n[r],i=0;i<a.length&&(void 0===t||i<t);i++)if(!Ot.isWhiteSpaceLike(a.charCodeAt(i))&&(void 0===t||i<t)){t=i;break}return t}(t),n=0,a=t;n<a.length;n++){var i=a[n],o=r?i.slice(r):i;o.length&&(Dt(),Me(o),Dt())}}function ce(e,t){e?(St(),Dt()):t&&Me(t)}function ue(e,t){e&&Ct(),t&&Ct()}function _e(e,t,r){if(1&r)return!0;if(2&r){if(32768&r)return!0;var n=t[0];return void 0===n?!Ot.rangeIsOnSingleLine(e,O):Ot.positionIsSynthesized(e.pos)||Ot.nodeIsSynthesized(n)?pe(n,r):!Ot.rangeStartPositionsAreOnSameLine(e,n,O)}return!1}function le(e,t,r){return!!(1&r)||(2&r?void 0!==e&&void 0!==t&&(Ot.nodeIsSynthesized(e)||Ot.nodeIsSynthesized(t)?pe(e,r)||pe(t,r):!Ot.rangeEndIsOnSameLineAsRangeStart(e,t,O)):Ot.getStartsOnNewLine(t))}function de(e,t,r){if(1&r)return 0==(65536&r);if(2&r){if(32768&r)return!0;var n=Ot.lastOrUndefined(t);return void 0===n?!Ot.rangeIsOnSingleLine(e,O):Ot.positionIsSynthesized(e.pos)||Ot.nodeIsSynthesized(n)?pe(n,r):!Ot.rangeEndPositionsAreOnSameLine(e,n,O)}return!1}function pe(e,t){if(Ot.nodeIsSynthesized(e)){var r=Ot.getStartsOnNewLine(e);return void 0===r?0!=(32768&t):r}return 0!=(32768&t)}function fe(e,t,r){return e=me(e),t=me(t),r=me(r),!!Ot.getStartsOnNewLine(r)||!(Ot.nodeIsSynthesized(e)||Ot.nodeIsSynthesized(t)||Ot.nodeIsSynthesized(r)||Ot.rangeEndIsOnSameLineAsRangeStart(t,r,O))}function Pt(e){return 0===e.statements.length&&Ot.rangeEndIsOnSameLineAsRangeStart(e,e,O)}function me(e){for(;189===e.kind&&Ot.nodeIsSynthesized(e);)e=e.expression;return e}function Ft(e,t){return Ot.isGeneratedIdentifier(e)?function(e){{if(4==(7&e.autoGenerateFlags)){if(8&e.autoGenerateFlags){var t=i;It(void 0);var r=ve(ke(e));return wt(void 0),i=t,r}return ve(ke(e))}var n=e.autoGenerateId;return a[n]||(a[n]=function(e){switch(7&e.autoGenerateFlags){case 1:return be(0,!!(16&e.autoGenerateFlags));case 2:return be(268435456,!!(16&e.autoGenerateFlags));case 3:return xe(Ot.idText(e))}Ot.Debug.fail("Unsupported GeneratedIdentifierKind.")}(e))}}(e):!Ot.isIdentifier(e)||!Ot.nodeIsSynthesized(e)&&e.parent?9===e.kind&&e.textSourceNode?Ft(e.textSourceNode,t):!Ot.isLiteralExpression(e)||!Ot.nodeIsSynthesized(e)&&e.parent?Ot.getSourceTextOfNodeFromSourceFile(O,e,t):e.text:Ot.idText(e)}function ge(e){if(9===e.kind&&e.textSourceNode){var t=e.textSourceNode;return Ot.isIdentifier(t)?16777216&Ot.getEmitFlags(e)?'"'+Ot.escapeString(Ft(t))+'"':'"'+Ot.escapeNonAsciiString(Ft(t))+'"':ge(t)}return Ot.getLiteralText(e,O)}function wt(e){e&&524288&Ot.getEmitFlags(e)||(t.push(i),i=0,o.push(s))}function It(e){e&&524288&Ot.getEmitFlags(e)||(i=t.pop(),s=o.pop())}function ye(e){s&&s!==Ot.lastOrUndefined(o)||(s=Ot.createMap()),s.set(e,!0)}function ve(e){var t=Ot.getNodeId(e);return r[t]||(r[t]=function(e){switch(e.kind){case 71:return xe(Ft(e));case 237:case 236:return function(e,t){for(var r=t;Ot.isNodeDescendantOf(r,t);r=r.nextContainer)if(r.locals){var n=r.locals.get(Ot.escapeLeadingUnderscores(e));if(n&&70362047&n.flags)return!1}return!0}(a=Ft((n=e).name),n)?a:xe(a);case 242:case 248:return t=e,r=Ot.getExternalModuleName(t),xe(Ot.isStringLiteral(r)?Ot.makeIdentifierFromModuleName(r.text):"module");case 232:case 233:case 247:return xe("default");case 203:return xe("class");case 153:case 155:case 156:return function(e){if(Ot.isIdentifier(e.name))return ve(e.name);return be(0)}(e);default:return be(0)}var t,r;var n,a}(e))}function he(e){return!(u&&u(e)||O.identifiers.has(e)||n.has(e)||s&&s.has(e))}function be(e,t){if(e&&!(i&e)&&he(r=268435456===e?"_i":"_n"))return i|=e,t&&ye(r),r;for(;;){var r,n=268435455&i;if(i++,8!==n&&13!==n)if(he(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&ye(r),r}}function xe(e){95!==e.charCodeAt(e.length-1)&&(e+="_");for(var t=1;;){var r=e+t;if(he(r))return n.set(r,!0),r;t++}}function ke(e){for(var t=e.autoGenerateId,r=e,n=r.original;n&&(r=n,!Ot.isIdentifier(r)||4!==r.autoGenerateFlags||r.autoGenerateId===t);)n=r.original;return r}}Ot.forEachEmittedFile=i,Ot.emitFiles=function(o,s,e,c,t){var f,m,g,y=s.getCompilerOptions(),v=Ot.getEmitModuleKind(y),u=y.sourceMap||y.inlineSourceMap?[]:void 0,_=y.listEmittedFiles?[]:void 0,l=Ot.createDiagnosticCollection(),r=s.getNewLine(),d=Ot.createTextWriter(r),p=Ot.createSourceMapWriter(s,d),h=!1,n=Ot.getSourceFilesToEmit(s,e),a=Ot.transformNodes(o,s,y,n,t,!1),b=x(y,{hasGlobalName:o.hasGlobalName,onEmitNode:a.emitNodeWithNotification,substituteNode:a.substituteNode,onEmitSourceMapOfNode:p.emitNodeWithSourceMap,onEmitSourceMapOfToken:p.emitTokenWithSourceMap,onEmitSourceMapOfPosition:p.emitPos,onEmitHelpers:function(e,t){var r=!1,n=273===e.kind?e:void 0;if(!n||v!==Ot.ModuleKind.None){for(var a=n?n.sourceFiles.length:1,i=0;i<a;i++){var o=n?n.sourceFiles[i]:e,s=Ot.isSourceFile(o)?o:f,c=y.noEmitHelpers||void 0!==Ot.getExternalHelpersModuleName(s),u=Ot.isSourceFile(o)&&!g,_=Ot.getEmitHelpers(o);if(_)for(var l=0,d=Ot.stableSort(_,Ot.compareEmitHelpers);l<d.length;l++){var p=d[l];if(p.scoped){if(n)continue}else{if(c)continue;if(u){if(m.get(p.name))continue;m.set(p.name,!0)}}t(p.text),r=!0}}return r}},onSetSourceFile:function(e){f=e,p.setSourceFile(e)}});return Ot.performance.mark("beforePrint"),i(s,function(e,t){var r,n=e.jsFilePath,a=e.sourceMapFilePath,i=e.declarationFilePath;s.isEmitBlocked(n)||y.noEmit||y.emitDeclarationOnly?h=!0:c||function(e,t,r){var n=273===r.kind?r:void 0,a=272===r.kind?r:void 0,i=n?n.sourceFiles:[a];p.initialize(e,t,r),n?(m=Ot.createMap(),g=!1,b.writeBundle(n,d)):(g=!0,b.writeFile(a,d)),d.writeLine();var o=p.getSourceMappingURL();o&&d.write("//# sourceMappingURL="+o),y.sourceMap&&!y.inlineSourceMap&&Ot.writeFile(s,l,t,p.getText(),!1,i),u&&u.push(p.getSourceMapData()),Ot.writeFile(s,l,e,d.getText(),y.emitBOM,i),p.reset(),d.clear(),m=f=void 0,g=!1}(n,a,t),i&&(h=Ot.writeDeclarationFile(i,273===(r=t).kind?Ot.updateBundle(r,Ot.sameMap(r.sourceFiles,Ot.getOriginalSourceFile)):Ot.getOriginalSourceFile(r),s,o,l,c)||h),!h&&_&&(c||_.push(n),a&&_.push(a),i&&_.push(i))},a.transformed,c),Ot.performance.measure("printTime","beforePrint"),a.dispose(),{emitSkipped:h,diagnostics:l.getDiagnostics(),emittedFiles:_,sourceMaps:u}},Ot.createPrinter=x,(r=t||(t={}))[r.Auto=0]="Auto",r[r.CountMask=268435455]="CountMask",r[r._i=268435456]="_i"}(ts||(ts={})),function(Ke){var C,e,Ue=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function qe(e,t){var r=Ke.getDirectoryPath(t),n=Ke.isRootedDiskPath(e)?e:Ke.combinePaths(r,e);return Ke.normalizePath(n)}function Ve(e,a,i){var o;return Ke.forEach(e,function(e){var t=Ke.getNormalizedPathComponents(e,a);if(t.pop(),o){for(var r=Math.min(o.length,t.length),n=0;n<r;n++)if(i(o[n])!==i(t[n])){if(0===n)return!0;o.length=n;break}t.length<o.length&&(o.length=t.length)}else o=t})?"":o?Ke.getNormalizedPathFromPathComponents(o):a}function We(a,i){var s,r=Ke.createMap();function o(e){var t;e.length>Ke.getRootLength(e)&&(t=e,!(r.has(t)||Ke.sys.directoryExists(t)&&(r.set(t,!0),1)))&&(o(Ke.getDirectoryPath(e)),Ke.sys.createDirectory(e))}function t(){return Ke.getDirectoryPath(Ke.normalizePath(Ke.sys.getExecutingFilePath()))}var n=Ke.getNewLineCharacter(a),e=Ke.sys.realpath&&function(e){return Ke.sys.realpath(e)};return{getSourceFile:function(e,t,r){var n;try{Ke.performance.mark("beforeIORead"),n=Ke.sys.readFile(e,a.charset),Ke.performance.mark("afterIORead"),Ke.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message),n=""}return void 0!==n?Ke.createSourceFile(e,n,t,i):void 0},getDefaultLibLocation:t,getDefaultLibFileName:function(e){return Ke.combinePaths(t(),Ke.getDefaultLibFileName(e))},writeFile:function(e,t,r,n){try{Ke.performance.mark("beforeIOWrite"),o(Ke.getDirectoryPath(Ke.normalizePath(e))),Ke.isWatchSet(a)&&Ke.sys.createHash&&Ke.sys.getModifiedTime?function(e,t,r){s||(s=Ke.createMap());var n=Ke.sys.createHash(t),a=Ke.sys.getModifiedTime(e);if(a){var i=s.get(e);if(i&&i.byteOrderMark===r&&i.hash===n&&i.mtime.getTime()===a.getTime())return}Ke.sys.writeFile(e,t,r);var o=Ke.sys.getModifiedTime(e);s.set(e,{hash:n,byteOrderMark:r,mtime:o})}(e,t,r):Ke.sys.writeFile(e,t,r),Ke.performance.mark("afterIOWrite"),Ke.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:Ke.memoize(function(){return Ke.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return Ke.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(e){return Ke.sys.useCaseSensitiveFileNames?e:e.toLowerCase()},getNewLine:function(){return n},fileExists:function(e){return Ke.sys.fileExists(e)},readFile:function(e){return Ke.sys.readFile(e)},trace:function(e){return Ke.sys.write(e+n)},directoryExists:function(e){return Ke.sys.directoryExists(e)},getEnvironmentVariable:function(e){return Ke.sys.getEnvironmentVariable?Ke.sys.getEnvironmentVariable(e):""},getDirectories:function(e){return Ke.sys.getDirectories(e)},realpath:e}}function i(e,t){var r=Ke.diagnosticCategoryName(e)+" TS"+e.code+": "+I(e.messageText,t.getNewLine())+t.getNewLine();if(e.file){var n=Ke.getLineAndCharacterOfPosition(e.file,e.start),a=n.line,i=n.character,o=e.file.fileName;return Ke.convertToRelativePath(o,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)})+"("+(a+1)+","+(i+1)+"): "+r}return r}Ke.findConfigFile=function(e,r,n){return void 0===n&&(n="tsconfig.json"),Ke.forEachAncestorDirectory(e,function(e){var t=Ke.combinePaths(e,n);return r(t)?t:void 0})},Ke.resolveTripleslashReference=qe,Ke.computeCommonSourceDirectoryOfFilenames=Ve,Ke.createCompilerHost=We,Ke.getPreEmitDiagnostics=function(e,t,r){var n=e.getOptionsDiagnostics(r).concat(e.getSyntacticDiagnostics(t,r),e.getGlobalDiagnostics(r),e.getSemanticDiagnostics(t,r));return e.getCompilerOptions().declaration&&Ke.addRange(n,e.getDeclarationDiagnostics(t,r)),Ke.sortAndDeduplicateDiagnostics(n)},Ke.formatDiagnostics=function(e,t){for(var r="",n=0,a=e;n<a.length;n++)r+=i(a[n],t);return r},Ke.formatDiagnostic=i,(e=C=Ke.ForegroundColorEscapeSequences||(Ke.ForegroundColorEscapeSequences={})).Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m";var T="[30;47m",E=" ",N="[0m",A="...";function P(e){switch(e){case Ke.DiagnosticCategory.Error:return C.Red;case Ke.DiagnosticCategory.Warning:return C.Yellow;case Ke.DiagnosticCategory.Suggestion:return Ke.Debug.fail("Should never get an Info diagnostic on the command line.");case Ke.DiagnosticCategory.Message:return C.Blue}}function F(e,t){return t+e+N}function w(e,t){for(;e.length<t;)e=" "+e;return e}function I(e,t){if(Ke.isString(e))return e;for(var r=e,n="",a=0;r;){if(a){n+=t;for(var i=0;i<a;i++)n+="  "}n+=r.messageText,a++,r=r.next}return n}function He(e,t,r){if(0===e.length)return[];for(var n=[],a=Ke.createMap(),i=0,o=e;i<o.length;i++){var s=o[i],c=void 0;a.has(s)?c=a.get(s):a.set(s,c=r(s,t)),n.push(c)}return n}function Ge(e,t){switch(t.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||n();case".js":return n()}function r(){return e.jsx?void 0:Ke.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function n(){return e.allowJs||!Ke.getStrictOptionValue(e,"noImplicitAny")?void 0:Ke.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function Xe(e){return Ke.Debug.assert(e.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(e)}),e}function Qe(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map(function(e){return e.text}),a=0,i=r;a<i.length;a++){var o=i[a];9===o.kind&&n.push(o.text)}return n}Ke.formatColorAndReset=F,Ke.formatDiagnosticsWithColorAndContext=function(e,t){for(var r="",n=0,a=e;n<a.length;n++){var i=a[n],o="";if(i.file){var s=i.start,c=i.length,u=i.file,_=Ke.getLineAndCharacterOfPosition(u,s),l=_.line,d=_.character,p=Ke.getLineAndCharacterOfPosition(u,s+c),f=p.line,m=p.character,g=Ke.getLineAndCharacterOfPosition(u,u.text.length).line,y=t?Ke.convertToRelativePath(u.fileName,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)}):u.fileName,v=4<=f-l,h=(f+1+"").length;v&&(h=Math.max(A.length,h));for(var b=l;b<=f;b++){o+=t.getNewLine(),v&&l+1<b&&b<f-1&&(o+=F(w(A,h),T)+E+t.getNewLine(),b=f-1);var x=Ke.getPositionOfLineAndCharacter(u,b,0),k=b<g?Ke.getPositionOfLineAndCharacter(u,b+1,0):u.text.length,D=u.text.slice(x,k);if(D=(D=D.replace(/\s+$/g,"")).replace("\t"," "),o+=F(w(b+1+"",h),T)+E,o+=D+t.getNewLine(),o+=F(w("",h),T)+E,o+=C.Red,b===l){var S=b===f?m:void 0;o+=D.slice(0,d).replace(/\S/g," "),o+=D.slice(d,S).replace(/./g,"~")}else o+=b===f?D.slice(0,m).replace(/./g,"~"):D.replace(/./g,"~");o+=N}r+=F(y,C.Cyan),r+=":",r+=F(""+(l+1),C.Yellow),r+=":",r+=F(""+(d+1),C.Yellow),r+=" - "}r+=F(Ke.diagnosticCategoryName(i),P(i.category)),r+=F(" TS"+i.code+": ",C.Grey),r+=I(i.messageText,t.getNewLine()),i.file&&(r+=t.getNewLine(),r+=o),r+=t.getNewLine()}return r+t.getNewLine()},Ke.flattenDiagnosticMessageText=I,Ke.isProgramUptoDate=function(e,t,r,n,a,i,o){if(!e||o)return!1;if(e.getRootFileNames().length!==t.length)return!1;if(e.getSourceFiles().some(function(e){return e.version!==n(e.path)||i(e.path)}))return!1;if(e.getMissingFilePaths().some(a))return!1;var s=e.getCompilerOptions();return!(!Ke.compareDataObjects(s,r)||s.configFile&&r.configFile&&s.configFile.text!==r.configFile.text)},Ke.createProgram=function(P,F,w,I){var i,t,r,n,a,O,M=[],o={},s={},L=Ke.createMap(),R=Ke.createDiagnosticCollection(),h="number"==typeof F.maxNodeModuleJsDepth?F.maxNodeModuleJsDepth:0,b=0,x=Ke.createMap(),B=Ke.createMap();Ke.performance.mark("beforeProgram"),w=w||We(F);var c,u,z,J,k=F.noLib,e=Ke.memoize(function(){return w.getDefaultLibFileName(F)}),_=w.getDefaultLibLocation?w.getDefaultLibLocation():Ke.getDirectoryPath(e()),g=Ke.createDiagnosticCollection(),j=w.getCurrentDirectory(),l=Ke.getSupportedExtensions(F),d=Ke.createMap(),K=w.hasInvalidatedResolution||Ke.returnFalse;if(w.resolveModuleNames)z=function(e,t,r){return w.resolveModuleNames(Xe(e),t,r).map(function(e){if(!e||void 0!==e.extension)return e;var t=Ke.clone(e);return t.extension=Ke.extensionFromPath(e.resolvedFileName),t})};else{u=Ke.createModuleResolutionCache(j,function(e){return w.getCanonicalFileName(e)});var p=function(e,t){return Ke.resolveModuleName(e,t,F,w,u).resolvedModule};z=function(e,t){return He(Xe(e),t,p)}}if(w.resolveTypeReferenceDirectives)J=function(e,t){return w.resolveTypeReferenceDirectives(Xe(e),t)};else{var f=function(e,t){return Ke.resolveTypeReferenceDirective(e,t,F,w).resolvedTypeReferenceDirective};J=function(e,t){return He(Xe(e),t,f)}}var U,m,y,v,D=Ke.createMap(),q=Ke.createMap(),V=Ke.createMap(),W=Ke.createMap(),S=w.useCaseSensitiveFileNames()?Ke.createMap():void 0,H=(y=F,(v=(m=I)&&m.getCompilerOptions())&&(v.target!==y.target||v.module!==y.module||v.moduleResolution!==y.moduleResolution||v.noResolve!==y.noResolve||v.jsx!==y.jsx||v.allowJs!==y.allowJs||v.disableSizeLimit!==y.disableSizeLimit||v.baseUrl!==y.baseUrl||!Ke.equalOwnProperties(v.paths,y.paths))),C=function(){if(!I)return 0;var e=I.getCompilerOptions();if(Ke.changesAffectModuleResolution(e,F))return I.structureIsReused=0;Ke.Debug.assert(!(3&I.structureIsReused));var t=I.getRootFileNames();if(!Ke.arrayIsEqualTo(t,P))return I.structureIsReused=0;if(!Ke.arrayIsEqualTo(F.types,e.types))return I.structureIsReused=0;var r=[],n=[],a=[];if(I.structureIsReused=2,I.getMissingFilePaths().some(function(e){return w.fileExists(e)}))return I.structureIsReused=0;var i,o,s=I.getSourceFiles();(o=i||(i={}))[o.Exists=0]="Exists",o[o.Modified=1]="Modified";for(var c=Ke.createMap(),u=0,_=s;u<_.length;u++){var l=_[u],d=w.getSourceFileByPath?w.getSourceFileByPath(l.fileName,l.path,F.target,void 0,H):w.getSourceFile(l.fileName,F.target,void 0,H);if(!d)return I.structureIsReused=0;Ke.Debug.assert(!d.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var p=void 0;if(l.redirectInfo){if(d!==l.redirectInfo.unredirected)return I.structureIsReused=0;p=!1,d=l}else if(I.redirectTargetsSet.has(l.path)){if(d!==l)return I.structureIsReused=0;p=!1}else p=d!==l;d.path=l.path,n.push(d.path);var f=I.sourceFileToPackageName.get(l.path);if(void 0!==f){var m=c.get(f),g=p?1:0;if(void 0!==m&&1===g||1===m)return I.structureIsReused=0;c.set(f,g)}p?(l.hasNoDefaultLib!==d.hasNoDefaultLib&&(I.structureIsReused=1),Ke.arrayIsEqualTo(l.referencedFiles,d.referencedFiles,he)||(I.structureIsReused=1),xe(d),Ke.arrayIsEqualTo(l.imports,d.imports,be)||(I.structureIsReused=1),Ke.arrayIsEqualTo(l.moduleAugmentations,d.moduleAugmentations,be)||(I.structureIsReused=1),(524288&l.flags)!=(524288&d.flags)&&(I.structureIsReused=1),Ke.arrayIsEqualTo(l.typeReferenceDirectives,d.typeReferenceDirectives,he)||(I.structureIsReused=1),a.push({oldFile:l,newFile:d})):K(l.path)&&(I.structureIsReused=1,a.push({oldFile:l,newFile:d})),r.push(d)}if(2!==I.structureIsReused)return I.structureIsReused;O=a.map(function(e){return e.newFile.path});for(var y=0,v=a;y<v.length;y++){var h=v[y],l=h.oldFile,d=h.newFile,b=Ke.getNormalizedAbsolutePath(d.fileName,j);if(z){var x=Qe(d),k={program:I,oldSourceFile:l,modifiedFilePaths:O},D=ee(x,b,d,k),S=Ke.hasChangesInResolutions(x,D,l.resolvedModules,Ke.moduleResolutionIsEqualTo);S?(I.structureIsReused=1,d.resolvedModules=Ke.zipToMap(x,D)):d.resolvedModules=l.resolvedModules}if(J){var C=Ke.map(d.typeReferenceDirectives,function(e){return e.fileName}),D=J(C,b),S=Ke.hasChangesInResolutions(C,D,l.resolvedTypeReferenceDirectiveNames,Ke.typeDirectiveIsEqualTo);S?(I.structureIsReused=1,d.resolvedTypeReferenceDirectiveNames=Ke.zipToMap(C,D)):d.resolvedTypeReferenceDirectiveNames=l.resolvedTypeReferenceDirectiveNames}}if(2!==I.structureIsReused)return I.structureIsReused;if(w.hasChangedAutomaticTypeDirectiveNames)return I.structureIsReused=1;U=I.getMissingFilePaths();for(var T=0;T<r.length;T++)W.set(n[T],r[T]),I.isSourceFileFromExternalLibrary(I.getSourceFileByPath(n[T]))&&B.set(n[T],!0);M=r,R=I.getFileProcessingDiagnostics();for(var E=0,N=a;E<N.length;E++){var A=N[E];R.reattachFileDiagnostics(A.newFile)}return L=I.getResolvedTypeReferenceDirectives(),q=I.sourceFileToPackageName,V=I.redirectTargetsSet,I.structureIsReused=2}();if(2!==C){Ke.forEach(P,function(e){return ve(e,!1)});var T=Ke.getAutomaticTypeDirectiveNames(F,w);if(T.length)for(var E=F.configFilePath?Ke.getDirectoryPath(F.configFilePath):w.getCurrentDirectory(),N=Ke.combinePaths(E,"__inferred type names__.ts"),A=J(T,N),G=0;G<T.length;G++)Ne(T[G],A[G]);k||(F.lib?Ke.forEach(F.lib,function(e){ve(Ke.combinePaths(_,e),!0)}):ve(e(),!0)),U=Ke.arrayFrom(W.keys(),function(e){return e}).filter(function(e){return!W.get(e)})}if(Ke.Debug.assert(!!U),u=void 0,I&&w.onReleaseOldSourceFile)for(var X=0,Q=I.getSourceFiles();X<Q.length;X++){var Y=Q[X];oe(Y.path)&&!H||w.onReleaseOldSourceFile(Y,I.getCompilerOptions())}return I=void 0,i={getRootFileNames:function(){return P},getSourceFile:oe,getSourceFileByPath:se,getSourceFiles:function(){return M},getMissingFilePaths:function(){return U},getCompilerOptions:function(){return F},getSyntacticDiagnostics:function(e,t){return ce(e,ue,t)},getOptionsDiagnostics:function(){return Ke.sortAndDeduplicateDiagnostics(Ke.concatenate(R.getGlobalDiagnostics(),Ke.concatenate(g.getGlobalDiagnostics(),F.configFile?g.getDiagnostics(F.configFile.fileName):[])))},getGlobalDiagnostics:function(){return Ke.sortAndDeduplicateDiagnostics(ne().getGlobalDiagnostics().slice())},getSemanticDiagnostics:function(e,t){return ce(e,le,t)},getDeclarationDiagnostics:function(e,t){var r=i.getCompilerOptions();return!e||r.out||r.outFile?fe(e,t):ce(e,ye,t)},getTypeChecker:ae,getClassifiableNames:function(){if(!a){ae(),a=Ke.createUnderscoreEscapedMap();for(var e=0,t=M;e<t.length;e++){var r=t[e];Ke.copyEntries(r.classifiableNames,a)}}return a},getDiagnosticsProducingTypeChecker:ne,getCommonSourceDirectory:$,emit:function(e,t,r,n,a){return _e(function(){return function(e,t,r,n,a,i){var o=[];if(!a){if(F.noEmit)return{diagnostics:o,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(F.noEmitOnError){var s=e.getOptionsDiagnostics(n).concat(e.getSyntacticDiagnostics(t,n),e.getGlobalDiagnostics(n),e.getSemanticDiagnostics(t,n));if(0===s.length&&e.getCompilerOptions().declaration&&(o=e.getDeclarationDiagnostics(void 0,n)),0<s.length||0<o.length)return{diagnostics:Ke.concatenate(s,o),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var c=ne().getEmitResolver(F.outFile||F.out?void 0:t,n);Ke.performance.mark("beforeEmit");var u=a?[]:Ke.getTransformers(F,i),_=Ke.emitFiles(c,te(r),t,a,u);return Ke.performance.mark("afterEmit"),Ke.performance.measure("Emit","beforeEmit","afterEmit"),_}(i,e,t,r,n,a)})},getCurrentDirectory:function(){return j},getNodeCount:function(){return ne().getNodeCount()},getIdentifierCount:function(){return ne().getIdentifierCount()},getSymbolCount:function(){return ne().getSymbolCount()},getTypeCount:function(){return ne().getTypeCount()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return L},isSourceFileFromExternalLibrary:re,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!F.noLib)return!1;var r=w.useCaseSensitiveFileNames()?Ke.equateStringsCaseSensitive:Ke.equateStringsCaseInsensitive;return F.lib?Ke.forEach(F.lib,function(e){return r(t.fileName,Ke.combinePaths(_,e))}):r(t.fileName,e())},dropDiagnosticsProducingTypeChecker:function(){r=void 0},getSourceFileFromReference:function(e,t){return ke(qe(t.fileName,e.fileName),function(e){return W.get(Z(e))})},sourceFileToPackageName:q,redirectTargetsSet:V,isEmittedFile:function(e){if(F.noEmit)return!1;var t=Z(e);if(se(t))return!1;var r=F.outFile||F.out;if(r)return je(t,r)||je(t,Ke.removeFileExtension(r)+".d.ts");if(F.outDir)return Ke.containsPath(F.outDir,t,j,!w.useCaseSensitiveFileNames());if(Ke.fileExtensionIsOneOf(t,Ke.supportedJavascriptExtensions)||Ke.fileExtensionIs(t,".d.ts")){var n=Ke.removeFileExtension(t);return!!se(Ke.combinePaths(n,".ts"))||!!se(Ke.combinePaths(n,".tsx"))}return!1}},function(){if(F.isolatedModules&&(F.declaration&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules"),F.noEmitOnError&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),F.out&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),F.outFile&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),F.inlineSourceMap&&(F.sourceMap&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),F.mapRoot&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),F.paths&&void 0===F.baseUrl&&Me(Ke.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),F.paths)for(var e in F.paths)if(Ke.hasProperty(F.paths,e))if(Ke.hasZeroOrOneAsteriskCharacter(e)||Ie(!0,e,Ke.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,e),Ke.isArray(F.paths[e])){var t=F.paths[e].length;0===t&&Ie(!1,e,Ke.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(var r=0;r<t;r++){var n=F.paths[e][r],a=typeof n;"string"===a?Ke.hasZeroOrOneAsteriskCharacter(n)||we(e,r,Ke.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,n,e):we(e,r,Ke.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,n,e,a)}}else Ie(!1,e,Ke.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,e);F.sourceMap||F.inlineSourceMap||(F.inlineSources&&Me(Ke.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),F.sourceRoot&&Me(Ke.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),F.out&&F.outFile&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),F.mapRoot&&!F.sourceMap&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"mapRoot","sourceMap"),F.declarationDir&&(F.declaration||Me(Ke.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"declarationDir","declaration"),(F.out||F.outFile)&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",F.out?"out":"outFile")),F.lib&&F.noLib&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),F.noImplicitUseStrict&&Ke.getStrictOptionValue(F,"alwaysStrict")&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var i=F.target||0,o=F.outFile||F.out,s=Ke.forEach(M,function(e){return Ke.isExternalModule(e)&&!e.isDeclarationFile?e:void 0});if(F.isolatedModules){F.module===Ke.ModuleKind.None&&i<2&&Me(Ke.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var c=Ke.forEach(M,function(e){return Ke.isExternalModule(e)||e.isDeclarationFile?void 0:e});if(c){var u=Ke.getErrorSpanForNode(c,c);g.add(Ke.createFileDiagnostic(c,u.start,u.length,Ke.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(s&&i<2&&F.module===Ke.ModuleKind.None){var _=Ke.getErrorSpanForNode(s,s.externalModuleIndicator);g.add(Ke.createFileDiagnostic(s,_.start,_.length,Ke.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(o)if(F.module&&F.module!==Ke.ModuleKind.AMD&&F.module!==Ke.ModuleKind.System)Me(Ke.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,F.out?"out":"outFile","module");else if(void 0===F.module&&s){var l=Ke.getErrorSpanForNode(s,s.externalModuleIndicator);g.add(Ke.createFileDiagnostic(s,l.start,l.length,Ke.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,F.out?"out":"outFile"))}if(F.outDir||F.sourceRoot||F.mapRoot){var d=$();F.outDir&&""===d&&Ke.forEach(M,function(e){return 1<Ke.getRootLength(e.fileName)})&&Me(Ke.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!F.noEmit&&F.allowJs&&F.declaration&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),F.checkJs&&!F.allowJs&&g.add(Ke.createCompilerDiagnostic(Ke.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),F.emitDeclarationOnly&&(F.declaration||Me(Ke.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),F.noEmit&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),F.emitDecoratorMetadata&&!F.experimentalDecorators&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),F.jsxFactory?(F.reactNamespace&&Me(Ke.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),Ke.parseIsolatedEntityName(F.jsxFactory,i)||Le("jsxFactory",Ke.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,F.jsxFactory)):F.reactNamespace&&!Ke.isIdentifierText(F.reactNamespace,i)&&Le("reactNamespace",Ke.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,F.reactNamespace),!F.noEmit&&!F.suppressOutputPathCheck){var p=te(),f=Ke.createMap();Ke.forEachEmittedFile(p,function(e){F.emitDeclarationOnly||m(e.jsFilePath,f),m(e.declarationFilePath,f)})}function m(e,t){if(e){var r,n=Z(e);W.has(n)&&(F.configFilePath||(r=Ke.chainDiagnosticMessages(void 0,Ke.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)),r=Ke.chainDiagnosticMessages(r,Ke.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Je(e,Ke.createCompilerDiagnosticFromMessageChain(r)));var a=w.useCaseSensitiveFileNames()?n:n.toLocaleLowerCase();t.has(a)?Je(e,Ke.createCompilerDiagnostic(Ke.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.set(a,!0)}}}(),Ke.performance.mark("afterProgram"),Ke.performance.measure("Program","beforeProgram","afterProgram"),i;function Z(e){return Ke.toPath(e,j,Pe)}function $(){if(void 0===t){var e=Ke.filter(M,function(e){return Ke.sourceFileMayBeEmitted(e,F,re)});(t=F.rootDir&&function(e,t){var r=!0;if(e)for(var n=w.getCanonicalFileName(Ke.getNormalizedAbsolutePath(t,j)),a=0,i=e;a<i.length;a++){var o=i[a];if(!o.isDeclarationFile){var s=w.getCanonicalFileName(Ke.getNormalizedAbsolutePath(o.fileName,j));0!==s.indexOf(n)&&(g.add(Ke.createCompilerDiagnostic(Ke.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,o.fileName,F.rootDir)),r=!1)}}return r}(e,F.rootDir)?Ke.getNormalizedAbsolutePath(F.rootDir,j):function(e){for(var t=[],r=0,n=e;r<n.length;r++){var a=n[r];a.isDeclarationFile||t.push(a.fileName)}return Ve(t,j,Pe)}(e))&&t[t.length-1]!==Ke.directorySeparator&&(t+=Ke.directorySeparator)}return t}function ee(e,t,r,n){if(0===C&&!r.ambientModuleNames.length)return z(e,t);var a,i,o,s=n.program&&n.program.getSourceFile(t);if(s!==r&&r.resolvedModules){for(var c=[],u=0,_=e;u<_.length;u++){var l=_[u],d=r.resolvedModules.get(l);c.push(d)}return c}for(var p={},f=0;f<e.length;f++){if(l=e[f],r===s&&!K(s.path)){var m=s&&s.resolvedModules.get(l);if(m){Ke.isTraceEnabled(F,w)&&Ke.trace(w,Ke.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,l,t),(i||(i=new Array(e.length)))[f]=m,(o||(o=[])).push(l);continue}}var g=!1;Ke.contains(r.ambientModuleNames,l)?(g=!0,Ke.isTraceEnabled(F,w)&&Ke.trace(w,Ke.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,l,t)):g=h(l,n),g?(i||(i=new Array(e.length)))[f]=p:(a||(a=[])).push(l)}var y=a&&a.length?z(a,t,o):Ke.emptyArray;if(!i)return Ke.Debug.assert(y.length===e.length),y;var v=0;for(f=0;f<i.length;f++)i[f]?i[f]===p&&(i[f]=void 0):(i[f]=y[v],v++);return Ke.Debug.assert(v===y.length),i;function h(e,r){var t=Ke.getResolvedModule(r.oldSourceFile,e),n=t&&r.program&&r.program.getSourceFile(t.resolvedFileName);if(t&&n&&!n.externalModuleIndicator)return!1;var a=r.program&&r.program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(e);if(!a||!a.declarations)return!1;var i=Ke.forEach(a.declarations,function(e){var t=Ke.getSourceFileOfNode(e);return!Ke.contains(r.modifiedFilePaths,t.path)&&t});return!!i&&(Ke.isTraceEnabled(F,w)&&Ke.trace(w,Ke.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,i.fileName),!0)}}function te(e){return{getCanonicalFileName:Pe,getCommonSourceDirectory:i.getCommonSourceDirectory,getCompilerOptions:i.getCompilerOptions,getCurrentDirectory:function(){return j},getNewLine:function(){return w.getNewLine()},getSourceFile:i.getSourceFile,getSourceFileByPath:i.getSourceFileByPath,getSourceFiles:i.getSourceFiles,isSourceFileFromExternalLibrary:re,writeFile:e||function(e,t,r,n,a){return w.writeFile(e,t,r,n,a)},isEmitBlocked:ie}}function re(e){return B.get(e.path)}function ne(){return r||(r=Ke.createTypeChecker(i,!0))}function ae(){return n||(n=Ke.createTypeChecker(i,!1))}function ie(e){return d.has(Z(e))}function oe(e){return se(Z(e))}function se(e){return W.get(e)}function ce(e,t,r){return e?t(e,r):Ke.sortAndDeduplicateDiagnostics(Ke.flatMap(i.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),t(e,r)}))}function ue(e){return Ke.isSourceFileJavaScript(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(o=e,_e(function(){var s=[],c=o;return u(o),s;function u(e){switch(c.kind){case 148:case 151:if(c.questionToken===e)return void s.push(l(e,Ke.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:case 230:if(c.type===e)return void s.push(l(e,Ke.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(e.kind){case 241:return void s.push(l(e,Ke.Diagnostics.import_can_only_be_used_in_a_ts_file));case 247:if(e.isExportEquals)return void s.push(l(e,Ke.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 266:var t=e;if(108===t.token)return void s.push(l(e,Ke.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 234:return void s.push(l(e,Ke.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 237:return void s.push(l(e,Ke.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 235:return void s.push(l(e,Ke.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 236:return void s.push(l(e,Ke.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 207:return void s.push(l(e,Ke.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 206:return void s.push(l(e.type,Ke.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 188:Ke.Debug.fail()}var r=c;c=e,Ke.forEachChild(e,u,n),c=r}function n(e){switch(c.decorators!==e||F.experimentalDecorators||s.push(l(c,Ke.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),c.kind){case 233:case 153:case 152:case 154:case 155:case 156:case 190:case 232:case 191:if(e===c.typeParameters)return void s.push(_(e,Ke.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 212:if(e===c.modifiers)return function(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];switch(a.kind){case 76:if(t)continue;case 114:case 112:case 113:case 132:case 124:case 117:s.push(l(a,Ke.Diagnostics._0_can_only_be_used_in_a_ts_file,Ke.tokenToString(a.kind)))}}}(e,212===c.kind);break;case 151:if(e===c.modifiers){for(var t=0,r=e;t<r.length;t++){var n=r[t];115!==n.kind&&s.push(l(n,Ke.Diagnostics._0_can_only_be_used_in_a_ts_file,Ke.tokenToString(n.kind)))}return}break;case 148:if(e===c.modifiers)return void s.push(_(e,Ke.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 185:case 186:case 205:if(e===c.typeArguments)return void s.push(_(e,Ke.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var a=0,i=e;a<i.length;a++){var o=i[a];u(o)}}function _(e,t,r,n,a){var i=e.pos;return Ke.createFileDiagnostic(o,i,e.end-i,t,r,n,a)}function l(e,t,r,n,a){return Ke.createDiagnosticForNodeInSourceFile(o,e,t,r,n,a)}}))),Ke.concatenate(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics;var o}function _e(e){try{return e()}catch(e){throw e instanceof Ke.OperationCanceledException&&(r=n=void 0),e}}function le(e,t){return ge(e,t,o,de)}function de(c,u){return _e(function(){if(F.skipLibCheck&&c.isDeclarationFile||F.skipDefaultLibCheck&&c.hasNoDefaultLib)return Ke.emptyArray;var e=ne();Ke.Debug.assert(!!c.bindDiagnostics);var t=Ke.isCheckJsEnabledForFile(c,F),r=3===c.scriptKind||4===c.scriptKind||5===c.scriptKind||t,n=r?c.bindDiagnostics:Ke.emptyArray,a=r?e.getDiagnostics(c,u):Ke.emptyArray,i=R.getDiagnostics(c.fileName),o=g.getDiagnostics(c.fileName),s=n.concat(a,i,o);return t&&(s=Ke.concatenate(s,c.jsDocDiagnostics)),Ke.filter(s,pe)})}function pe(e){var t=e.file,r=e.start;if(t)for(var n=Ke.getLineStarts(t),a=Ke.computeLineAndCharacterOfPosition(n,r).line;0<a;){var i=t.text.slice(n[a-1],n[a]),o=Ue.exec(i);if(!o)return!0;if(o[3])return!1;a--}return!0}function fe(e,t){return ge(e,t,s,me)}function me(t,r){return _e(function(){var e=ne().getEmitResolver(t,r);return Ke.getDeclarationDiagnostics(te(Ke.noop),e,t)})}function ge(e,t,r,n){var a=e?r.perFile&&r.perFile.get(e.path):r.allDiagnostics;if(a)return a;var i=n(e,t)||Ke.emptyArray;return e?(r.perFile||(r.perFile=Ke.createMap()),r.perFile.set(e.path,i)):r.allDiagnostics=i,i}function ye(e,t){return e.isDeclarationFile?[]:fe(e,t)}function ve(e,t){De(Ke.normalizePath(e),t,void 0)}function he(e,t){return e.fileName===t.fileName}function be(e,t){return 9===e.kind?9===t.kind&&e.text===t.text:71===t.kind&&e.escapedText===t.escapedText}function xe(c){if(!c.imports){var u,_,l,e=Ke.isSourceFileJavaScript(c),d=Ke.isExternalModule(c);if(F.importHelpers&&(F.isolatedModules||d)&&!c.isDeclarationFile){var t=Ke.createLiteral(Ke.externalHelpersModuleNameText),r=Ke.createImportDeclaration(void 0,void 0,void 0);Ke.addEmitFlags(r,67108864),(t.parent=r).parent=c,u=[t]}for(var n=0,a=c.statements;n<a.length;n++){var i=a[n];p(i,!1),(524288&c.flags||e)&&o(i)}return c.imports=u||Ke.emptyArray,c.moduleAugmentations=_||Ke.emptyArray,void(c.ambientModuleNames=l||Ke.emptyArray)}function p(e,t){switch(e.kind){case 242:case 241:case 248:var r=Ke.getExternalModuleName(e);if(!r||!Ke.isStringLiteral(r))break;if(!r.text)break;t&&Ke.isExternalModuleNameRelative(r.text)||(u||(u=[])).push(r);break;case 237:if(Ke.isAmbientModule(e)&&(t||Ke.hasModifier(e,2)||c.isDeclarationFile)){var n=e.name,a=Ke.getTextOfIdentifierOrLiteral(n);if(d||t&&!Ke.isExternalModuleNameRelative(a))(_||(_=[])).push(n);else if(!t){c.isDeclarationFile&&(l||(l=[])).push(a);var i=e.body;if(i)for(var o=0,s=i.statements;o<s.length;o++)p(s[o],!0)}}}}function o(e){Ke.isRequireCall(e,!0)?(u||(u=[])).push(e.arguments[0]):Ke.isImportCall(e)&&1===e.arguments.length&&9===e.arguments[0].kind?(u||(u=[])).push(e.arguments[0]):Ke.forEachChild(e,o)}}function ke(t,r,e,n){if(Ke.hasExtension(t)){if(!F.allowNonTsExtensions&&!Ke.forEach(l,function(e){return Ke.fileExtensionIs(w.getCanonicalFileName(t),e)}))return void(e&&e(Ke.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+l.join("', '")+"'"));var a=r(t);return e&&(a?n&&w.getCanonicalFileName(t)===w.getCanonicalFileName(n.fileName)&&e(Ke.Diagnostics.A_file_cannot_have_a_reference_to_itself):e(Ke.Diagnostics.File_0_not_found,t)),a}var i=F.allowNonTsExtensions&&r(t);if(i)return i;if(!e||!F.allowNonTsExtensions){var o=Ke.forEach(l,function(e){return r(t+e)});return e&&!o&&e(Ke.Diagnostics.File_0_not_found,t+".ts"),o}e(Ke.Diagnostics.File_0_not_found,t)}function De(e,t,r,n,a,i){ke(e,function(e){return Ce(e,Z(e),t,n,a,i,r)},function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];R.add(void 0!==n&&void 0!==i&&void 0!==a?Ke.createFileDiagnostic.apply(void 0,[n,a,i-a,e].concat(t)):Ke.createCompilerDiagnostic.apply(void 0,[e].concat(t)))},n)}function Se(e,t,r,n,a){void 0!==r&&void 0!==n&&void 0!==a?R.add(Ke.createFileDiagnostic(r,n,a-n,Ke.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,t)):R.add(Ke.createCompilerDiagnostic(Ke.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,t))}function Ce(t,e,r,n,a,i,o){if(W.has(e)){var s=W.get(e);return s&&F.forceConsistentCasingInFileNames&&Ke.getNormalizedAbsolutePath(s.fileName,j)!==Ke.getNormalizedAbsolutePath(t,j)&&Se(t,s.fileName,n,a,i),s&&B.get(s.path)&&0===b?(B.set(s.path,!1),F.noResolve||(Te(s,r),Ee(s)),x.set(s.path,!1),Fe(s)):s&&x.get(s.path)&&b<h&&(x.set(s.path,!1),Fe(s)),s}var c,u,_,l,d,p=w.getSourceFile(t,F.target,function(e){void 0!==n&&void 0!==a&&void 0!==i?R.add(Ke.createFileDiagnostic(n,a,i-a,Ke.Diagnostics.Cannot_read_file_0_Colon_1,t,e)):R.add(Ke.createCompilerDiagnostic(Ke.Diagnostics.Cannot_read_file_0_Colon_1,t,e))},H);if(o){var f=Ke.packageIdToString(o),m=D.get(f);if(m){var g=(c=m,u=p,_=t,l=e,(d=Object.create(c)).fileName=_,d.path=l,d.redirectInfo={redirectTarget:c,unredirected:u},Object.defineProperties(d,{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}}}),d);return V.set(m.path,!0),W.set(e,g),q.set(e,o.name),M.push(g),g}p&&(D.set(f,p),q.set(e,o.name))}if(W.set(e,p),p){if(B.set(e,0<b),p.path=e,w.useCaseSensitiveFileNames()){var y=e.toLowerCase(),v=S.get(y);v?Se(t,v.fileName,n,a,i):S.set(y,p)}k=k||p.hasNoDefaultLib,F.noResolve||(Te(p,r),Ee(p)),Fe(p),r?M.unshift(p):M.push(p)}return p}function Te(t,r){Ke.forEach(t.referencedFiles,function(e){De(qe(e.fileName,t.fileName),r,void 0,t,e.pos,e.end)})}function Ee(e){for(var t=Ke.map(e.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=J(t,e.fileName),n=0;n<t.length;n++){var a=e.typeReferenceDirectives[n],i=r[n],o=a.fileName.toLocaleLowerCase();Ke.setResolvedTypeReferenceDirective(e,o,i),Ne(o,i,e,a.pos,a.end)}}function Ne(e,t,r,n,a){var i=L.get(e);if(!i||!i.primary){var o=!0;t?t.primary?De(t.resolvedFileName,!1,t.packageId,r,n,a):i?(t.resolvedFileName!==i.resolvedFileName&&w.readFile(t.resolvedFileName)!==oe(i.resolvedFileName).text&&R.add(Ae(r,n,a,Ke.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,e,t.resolvedFileName,i.resolvedFileName)),o=!1):De(t.resolvedFileName,!1,t.packageId,r,n,a):R.add(Ae(r,n,a,Ke.Diagnostics.Cannot_find_type_definition_file_for_0,e)),o&&L.set(e,t)}}function Ae(e,t,r,n){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];return void 0===e||void 0===t||void 0===r?Ke.createCompilerDiagnostic.apply(void 0,[n].concat(a)):Ke.createFileDiagnostic.apply(void 0,[e,t,r-t,n].concat(a))}function Pe(e){return w.getCanonicalFileName(e)}function Fe(e){if(xe(e),e.imports.length||e.moduleAugmentations.length){var t=Qe(e),r={program:I,oldSourceFile:I&&I.getSourceFile(e.fileName),modifiedFilePaths:O},n=ee(t,Ke.getNormalizedAbsolutePath(e.fileName,j),e,r);Ke.Debug.assert(n.length===t.length);for(var a=0;a<t.length;a++){var i=n[a];if(Ke.setResolvedModule(e,t[a],i),i){var o=i.isExternalLibraryImport,s=!Ke.extensionIsTypeScript(i.extension),c=o&&s,u=i.resolvedFileName;o&&b++;var _=c&&h<b,l=u&&!Ge(F,i)&&!F.noResolve&&a<e.imports.length&&!_&&!(s&&!F.allowJs);_?x.set(e.path,!0):l&&Ce(u,Z(u),!1,e,Ke.skipTrivia(e.text,e.imports[a].pos),e.imports[a].end,i.packageId),o&&b--}}}else e.resolvedModules=void 0}function we(e,t,r,n,a,i){for(var o=!0,s=0,c=Oe();s<c.length;s++){var u=c[s];if(Ke.isObjectLiteralExpression(u.initializer))for(var _=0,l=Ke.getPropertyAssignment(u.initializer,e);_<l.length;_++){var d=l[_];Ke.isArrayLiteralExpression(d.initializer)&&d.initializer.elements.length>t&&(g.add(Ke.createDiagnosticForNodeInSourceFile(F.configFile,d.initializer.elements[t],r,n,a,i)),o=!1)}}o&&g.add(Ke.createCompilerDiagnostic(r,n,a,i))}function Ie(e,t,r,n){for(var a=!0,i=0,o=Oe();i<o.length;i++){var s=o[i];Ke.isObjectLiteralExpression(s.initializer)&&ze(s.initializer,e,t,void 0,r,n)&&(a=!1)}a&&g.add(Ke.createCompilerDiagnostic(r,n))}function Oe(){var e=Be();return e?Ke.getPropertyAssignment(e,"paths"):Ke.emptyArray}function Me(e,t,r){Re(!0,t,r,e,t,r)}function Le(e,t,r){Re(!1,e,void 0,t,r)}function Re(e,t,r,n,a,i){var o=Be();(!o||!ze(o,e,t,r,n,a,i))&&g.add(Ke.createCompilerDiagnostic(n,a,i))}function Be(){if(void 0===c&&(c=null,F.configFile&&F.configFile.jsonObject))for(var e=0,t=Ke.getPropertyAssignment(F.configFile.jsonObject,"compilerOptions");e<t.length;e++){var r=t[e];if(Ke.isObjectLiteralExpression(r.initializer)){c=r.initializer;break}}return c}function ze(e,t,r,n,a,i,o){for(var s=Ke.getPropertyAssignment(e,r,n),c=0,u=s;c<u.length;c++){var _=u[c];g.add(Ke.createDiagnosticForNodeInSourceFile(F.configFile,t?_.name:_.initializer,a,i,o))}return!!s.length}function Je(e,t){d.set(Z(e),!0),g.add(t)}function je(e,t){return 0===Ke.comparePaths(e,t,j,!w.useCaseSensitiveFileNames())}},Ke.getResolutionDiagnostic=Ge}(ts||(ts={})),(ts||(ts={})).getFileEmitOutput=function(e,t,r,n,a){var i=[],o=e.emit(t,function(e,t,r){i.push({name:e,writeByteOrderMark:r,text:t})},n,r,a);return{outputFiles:i,emitSkipped:o.emitSkipped}},function(v){!function(e){function p(e,t,r){var n;if(t.imports&&0<t.imports.length)for(var a=e.getTypeChecker(),i=0,o=t.imports;i<o.length;i++){var s=o[i],c=a.getSymbolAtLocation(s);if(c&&c.declarations&&c.declarations[0]){var u=v.getSourceFileOfNode(c.declarations[0]);u&&f(u.path)}}var _=v.getDirectoryPath(t.path);if(t.referencedFiles&&0<t.referencedFiles.length)for(var l=0,d=t.referencedFiles;l<d.length;l++){var p=d[l];f(v.toPath(p.fileName,_,r))}return t.resolvedTypeReferenceDirectiveNames&&t.resolvedTypeReferenceDirectiveNames.forEach(function(e){if(e){var t=e.resolvedFileName;f(v.toPath(t,_,r))}}),n;function f(e){n||(n=v.createMap()),n.set(e,!0)}}function f(e,t){return t&&!t.referencedMap==!e}function u(r,e){e.forEach(function(e,t){r.fileInfos.get(t).signature=e,r.hasCalledUpdateShapeSignature.set(t,!0)})}function l(e,t,r,n,a,i){if(v.Debug.assert(!!r),e.hasCalledUpdateShapeSignature.has(r.path)||n.has(r.path))return!1;var o=e.fileInfos.get(r.path);v.Debug.assert(!!o);var s,c=o.signature;if(r.isDeclarationFile)s=r.version;else{var u=v.getFileEmitOutput(t,r,!0,a);s=u.outputFiles&&0<u.outputFiles.length?i(u.outputFiles[0].text):c}return n.set(r.path,s),!c||s!==c}function m(e,t){if(!e.allFileNames){var r=t.getSourceFiles();e.allFileNames=r===v.emptyArray?v.emptyArray:r.map(function(e){return e.fileName})}return e.allFileNames}function d(e,r){return v.arrayFrom(v.mapDefinedIterator(e.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function g(e){for(var t=0,r=e.statements;t<r.length;t++){var n=r[t];if(!v.isModuleWithStringLiteralName(n))return!1}return!0}function y(e,t,r){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;var n;s(r);for(var a=0,i=t.getSourceFiles();a<i.length;a++){var o=i[a];o!==r&&s(o)}return e.allFilesExcludingDefaultLibraryFile=n||v.emptyArray,e.allFilesExcludingDefaultLibraryFile;function s(e){t.isSourceFileDefaultLibrary(e)||(n||(n=[])).push(e)}}e.canReuseOldState=f,e.create=function(e,t,r){for(var n=v.createMap(),a=e.getCompilerOptions().module!==v.ModuleKind.None?v.createMap():void 0,i=v.createMap(),o=f(a,r),s=0,c=e.getSourceFiles();s<c.length;s++){var u=c[s],_=u.version,l=o&&r.fileInfos.get(u.path);if(a){var d=p(e,u,t);d&&a.set(u.path,d)}n.set(u.path,{version:_,signature:l&&l.signature})}return{fileInfos:n,referencedMap:a,hasCalledUpdateShapeSignature:i,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},e.getFilesAffectedBy=function(e,t,r,n,a,i){var o=i||v.createMap(),s=t.getSourceFileByPath(r);if(!s)return v.emptyArray;if(!l(e,t,s,o,n,a))return[s];var c=(e.referencedMap?function(e,t,r,n,a,i){if(!v.isExternalModule(r)&&!g(r))return y(e,t,r);var o=t.getCompilerOptions();if(o&&(o.isolatedModules||o.out||o.outFile))return[r];var s=v.createMap();s.set(r.path,r);for(var c=d(e,r.path);0<c.length;){var u=c.pop();if(!s.has(u)){var _=t.getSourceFileByPath(u);s.set(u,_),_&&l(e,t,_,n,a,i)&&c.push.apply(c,d(e,u))}}return v.arrayFrom(v.mapDefinedIterator(s.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:y(e,t,r)})(e,t,s,o,n,a);return i||u(e,o),c},e.updateSignaturesFromCache=u,e.getAllDependencies=function(e,r,t){var n=r.getCompilerOptions();if(n.outFile||n.out)return m(e,r);if(!e.referencedMap||!v.isExternalModule(t)&&!g(t))return m(e,r);for(var a,i=v.createMap(),o=[t.path];o.length;){var s=o.pop();if(!i.has(s)){i.set(s,!0);var c=e.referencedMap.get(s);if(c)for(var u=c.keys(),_=u.next(),l=_.value,d=_.done;!d;l=(a=u.next()).value,d=a.done,a)o.push(l)}}return v.arrayFrom(v.mapDefinedIterator(i.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}}(v.BuilderState||(v.BuilderState={}))}(ts||(ts={})),function(f){function o(e,t,s){var c=f.BuilderState.create(e,t,s),r=(c.program=e).getCompilerOptions();r.outFile||r.out||(c.semanticDiagnosticsPerFile=f.createMap()),c.changedFilesSet=f.createMap();var u=f.BuilderState.canReuseOldState(c.referencedMap,s),_=u&&s.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile;u&&(s.currentChangedFilePath||f.Debug.assert(!(s.affectedFiles||s.currentAffectedFilesSignatures&&s.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),_&&f.Debug.assert(!f.forEachKey(s.changedFilesSet,function(e){return s.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),f.copyEntries(s.changedFilesSet,c.changedFilesSet));var l=c.referencedMap,d=u&&s.referencedMap;return c.fileInfos.forEach(function(e,t){var r,n,a,i;if(u&&(r=s.fileInfos.get(t))&&r.version===e.version&&(a=n=l&&l.get(t),i=d&&d.get(t),a===i||a&&i&&a.size===i.size&&!f.forEachKey(a,function(e){return!i.has(e)}))&&(!n||!f.forEachKey(n,function(e){return!c.fileInfos.has(e)&&s.fileInfos.has(e)}))){if(_){var o=s.semanticDiagnosticsPerFile.get(t);o&&c.semanticDiagnosticsPerFile.set(t,o)}}else c.changedFilesSet.set(t,!0)}),c}function m(e,t){f.Debug.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.path))}function u(e,t,r){for(;;){var n=e.affectedFiles;if(n){for(var a=e.seenAffectedFiles,i=e.semanticDiagnosticsPerFile,o=e.affectedFilesIndex;o<n.length;){var s=n[o];if(!a.has(s.path))return e.affectedFilesIndex=o,i.delete(s.path),s;a.set(s.path,!0),o++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,f.BuilderState.updateSignaturesFromCache(e,e.currentAffectedFilesSignatures),e.currentAffectedFilesSignatures.clear(),e.affectedFiles=void 0}var c=e.changedFilesSet.keys().next();if(c.done)return;var u=e.program.getCompilerOptions();if(u.outFile||u.out)return f.Debug.assert(!e.semanticDiagnosticsPerFile),e.program;e.currentAffectedFilesSignatures=e.currentAffectedFilesSignatures||f.createMap(),e.affectedFiles=f.BuilderState.getFilesAffectedBy(e,e.program,c.value,t,r,e.currentAffectedFilesSignatures),e.currentChangedFilePath=c.value,e.semanticDiagnosticsPerFile.delete(c.value),e.affectedFilesIndex=0,e.seenAffectedFiles=e.seenAffectedFiles||f.createMap()}}function g(e,t){t===e.program?e.changedFilesSet.clear():(e.seenAffectedFiles.set(t.path,!0),e.affectedFilesIndex++)}function s(e,t,r){return g(e,r),{result:t,affected:r}}function y(e,t,r){var n=t.path,a=e.semanticDiagnosticsPerFile.get(n);if(a)return a;var i=e.program.getSemanticDiagnostics(t,r);return e.semanticDiagnosticsPerFile.set(n,i),i}var v,e;(e=v=f.BuilderProgramKind||(f.BuilderProgramKind={}))[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",f.getBuilderCreationParameters=function(e,t,r,n){var a,i;return f.isArray(e)?(i=f.createProgram(e,t,r,n&&n.getProgram()),a=r):(i=e,a=t,n=r),{host:a,newProgram:i,oldProgram:n}},f.createBuilderProgram=function(_,e){var t=e.newProgram,l=e.host,r=e.oldProgram,n=r&&r.getState();if(n&&t===n.program)return n=t=void 0,r;var a=f.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),c=l.createHash||f.identity,d=o(t,a,n);n=r=t=void 0;var i={getState:function(){return d},getProgram:function(){return d.program},getCompilerOptions:function(){return d.program.getCompilerOptions()},getSourceFile:function(e){return d.program.getSourceFile(e)},getSourceFiles:function(){return d.program.getSourceFiles()},getOptionsDiagnostics:function(e){return d.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return d.program.getGlobalDiagnostics(e)},getSyntacticDiagnostics:function(e,t){return d.program.getSyntacticDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){m(d,e);var r,n=d.program.getCompilerOptions();if(n.outFile||n.out)return f.Debug.assert(!d.semanticDiagnosticsPerFile),d.program.getSemanticDiagnostics(e,t);if(e)return y(d,e,t);if(_===v.SemanticDiagnosticsBuilderProgram)for(var a=void 0;a=u(d,t,c);)g(d,a);for(var i=0,o=d.program.getSourceFiles();i<o.length;i++){var s=o[i];r=f.addRange(r,y(d,s,t))}return r||f.emptyArray},emit:function(e,t,r,n,a){if(_===v.EmitAndSemanticDiagnosticsBuilderProgram&&(m(d,e),!e)){for(var i=[],o=void 0,s=void 0,c=[],u=void 0;u=p(t,r,n,a);)o=o||u.result.emitSkipped,s=f.addRange(s,u.result.diagnostics),c=f.addRange(c,u.result.emittedFiles),i=f.addRange(i,u.result.sourceMaps);return{emitSkipped:o,diagnostics:s||f.emptyArray,emittedFiles:c,sourceMaps:i}}return d.program.emit(e,t||l.writeFile,r,n,a)},getAllDependencies:function(e){return f.BuilderState.getAllDependencies(d,d.program,e)},getCurrentDirectory:function(){return d.program.getCurrentDirectory()}};return _===v.SemanticDiagnosticsBuilderProgram?i.getSemanticDiagnosticsOfNextAffectedFile=function(e,t){for(;;){var r=u(d,e,c);if(!r)return;if(r===d.program)return s(d,d.program.getSemanticDiagnostics(void 0,e),r);if(!t||!t(r))return s(d,y(d,r,e),r);g(d,r)}}:_===v.EmitAndSemanticDiagnosticsBuilderProgram?i.emitNextAffectedFile=p:f.notImplemented(),i;function p(e,t,r,n){var a=u(d,t,c);if(a)return s(d,d.program.emit(a===d.program?void 0:a,e||l.writeFile,t,r,n),a)}}}(ts||(ts={})),function(i){i.createSemanticDiagnosticsBuilderProgram=function(e,t,r,n){return i.createBuilderProgram(i.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,i.getBuilderCreationParameters(e,t,r,n))},i.createEmitAndSemanticDiagnosticsBuilderProgram=function(e,t,r,n){return i.createBuilderProgram(i.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,i.getBuilderCreationParameters(e,t,r,n))},i.createAbstractBuilder=function(e,t,r,n){var a=i.getBuilderCreationParameters(e,t,r,n).newProgram;return{getProgram:function(){return a},getState:i.notImplemented,getCompilerOptions:i.notImplemented,getSourceFile:i.notImplemented,getSourceFiles:i.notImplemented,getOptionsDiagnostics:i.notImplemented,getGlobalDiagnostics:i.notImplemented,getSyntacticDiagnostics:i.notImplemented,getSemanticDiagnostics:i.notImplemented,emit:i.notImplemented,getAllDependencies:i.notImplemented,getCurrentDirectory:i.notImplemented}}}(ts||(ts={})),function(y){var e,a,t;function i(e,t,r,n){return e.watchFile(t,r,n)}function p(e,t,r,n){return e.watchDirectory(t,r,0!=(1&n))}function f(e,t){switch(e){case a.None:return t;case a.TriggerOnly:return d;case a.Verbose:return r}}function r(e,t,r,n,a,i,o,s,c,u,_){c(u+":: Added:: "+m(t,n,i,o,_));var l=d(e,t,r,n,a,i,o,s,c,u,_);return{close:function(){c(u+":: Close:: "+m(t,n,i,o,_)),l.close()}}}function d(e,i,o,s,c,u,_,t,l,d,p){return t(e,i,function(e,t){var r=d+":: Triggered with "+e+(void 0!==t?t:"")+":: "+m(i,s,u,_,p);l(r);var n=y.timestamp();o(e,t,c);var a=y.timestamp()-n;l("Elapsed:: "+a+"ms "+r)},s)}function m(e,t,r,n,a){return"WatchInfo: "+e+" "+t+" "+(a?a(r,n):"")}function o(e){e.watcher.close()}y.createCachedDirectoryStructureHost=function(s,c,u){if(s.getDirectories&&s.readDirectory){var o=y.createMap(),r=y.createGetCanonicalFileName(u);return{useCaseSensitiveFileNames:u,fileExists:function(e){var t=i(_(e));return t&&f(t.files,d(e))||s.fileExists(e)},readFile:function(e,t){return s.readFile(e,t)},directoryExists:s.directoryExists&&function(e){var t=_(e);return o.has(t)||s.directoryExists(e)},getDirectories:function(e){var t=_(e),r=p(e,t);return r?r.directories.slice():s.getDirectories(e)},readDirectory:function(e,t,r,n,a){var i=_(e),o=p(e,i);return o?y.matchFiles(e,t,r,n,u,c,a,function(e){var t=_(e);return t===i?o:p(e,t)||y.emptyFileSystemEntries}):s.readDirectory(e,t,r,n,a)},createDirectory:s.createDirectory&&function(e){var t=i(_(e)),r=d(e);t&&a(t.directories,r,!0),s.createDirectory(e)},writeFile:s.writeFile&&function(e,t,r){var n=i(_(e));return n&&m(n,d(e),!0),s.writeFile(e,t,r)},addOrDeleteFileOrDirectory:function(e,t){if(l(t))g();else{var r=i(t);if(r){if(s.directoryExists){var n=d(e),a={fileExists:s.fileExists(t),directoryExists:s.directoryExists(t)};return a.directoryExists||f(r.directories,n)?g():m(r,n,a.fileExists),a}g()}}},addOrDeleteFile:function(e,t,r){if(r!==y.FileWatcherEventKind.Changed){var n=i(t);n&&m(n,d(e),r===y.FileWatcherEventKind.Created)}},clearCache:g}}function _(e){return y.toPath(e,c,r)}function l(e){return o.get(e)}function i(e){return l(y.getDirectoryPath(e))}function d(e){return y.getBaseFileName(y.normalizePath(e))}function p(e,t){var r,n,a,i=l(t);if(i)return i;try{return r=e,n=t,a={files:y.map(s.readDirectory(r,void 0,void 0,["*.*"]),d)||[],directories:s.getDirectories(r)||[]},o.set(n,a),a}catch(e){return void y.Debug.assert(!o.has(t))}}function n(e,t){return r(e)===r(t)}function f(e,t){return y.some(e,function(e){return n(e,t)})}function a(e,t,r){if(f(e,t)){if(!r)return y.filterMutate(e,function(e){return!n(e,t)})}else if(r)return e.push(t)}function m(e,t,r){a(e.files,t,r)}function g(){o.clear()}},(e=y.ConfigFileProgramReloadLevel||(y.ConfigFileProgramReloadLevel={}))[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",y.updateMissingFilePathsWatch=function(e,t,r){var n=e.getMissingFilePaths(),a=y.arrayToSet(n);y.mutateMap(t,a,{createNewValue:r,onDeleteValue:y.closeFileWatcher})},y.updateWatchingWildcardDirectories=function(n,e,r){function a(e,t){return{watcher:r(e,t),flags:t}}y.mutateMap(n,e,{createNewValue:a,onDeleteValue:o,onExistingValue:function(e,t,r){e.flags!==t&&(e.watcher.close(),n.set(r,a(r,t)))}})},y.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},(t=a=y.WatchLogLevel||(y.WatchLogLevel={}))[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",y.getWatchFactory=function(e,t,r){return s=t,c=r,o=p,_=f(n=e,u=i),l=n===a.None?function(e,t,r,n,a){return u(e,t,function(e,t){return r(e,t,a)},n)}:_,d=f(n,o),{watchFile:function(e,t,r,n,a,i){return _(e,t,r,n,void 0,a,i,u,s,"FileWatcher",c)},watchFilePath:function(e,t,r,n,a,i,o){return l(e,t,r,n,a,i,o,u,s,"FileWatcher",c)},watchDirectory:function(e,t,r,n,a,i){return d(e,t,r,n,void 0,a,i,o,s,"DirectoryWatcher",c)}};var n,s,c,u,o,_,l,d},y.closeFileWatcherOf=o}(ts||(ts={})),function(V){V.maxNumberOfFilesToIterateForInvalidation=256,V.createResolutionCache=function(k,e,n){var D,s,S=!1,r=V.memoize(function(){return k.getCurrentDirectory()}),i=k.getCachedDirectoryStructureHost(),a=V.createMap(),o=V.createMap(),t=V.createMap(),u=V.createModuleResolutionCacheWithMaps(o,t,r(),k.getCanonicalFileName),c=V.createMap(),_=V.createMap(),l=[".ts",".tsx",".js",".jsx",".json"],d=V.createMap(),p=V.createMap(),f=e&&V.removeTrailingDirectorySeparator(V.getNormalizedAbsolutePath(e,r())),m=f&&k.toPath(f),g=V.createMap();return{startRecordingFilesWithChangedResolutions:function(){D=[]},finishRecordingFilesWithChangedResolutions:function(){var e=D;return D=void 0,e},startCachingPerDirectoryResolution:b,finishCachingPerDirectoryResolution:function(){S=!1,p.forEach(function(e,t){0===e.refCount&&(p.delete(t),e.watcher.close())}),b()},resolveModuleNames:function(e,t,r){return C(e,t,a,o,x,y,r,n)},resolveTypeReferenceDirectives:function(e,t){return C(e,t,c,_,V.resolveTypeReferenceDirective,v,void 0,!1)},removeResolutionsOfFile:B,invalidateResolutionOfFile:function(n){B(n),J(function(e,t){var r=t(e);return r&&k.toPath(r.resolvedFileName)===n})},createHasInvalidatedResolution:function(e){if(S||e)return s=void 0,V.returnTrue;var t=s;return s=void 0,function(e){return t&&t.has(e)}},updateTypeRootsWatch:function(){var e=k.getCompilationSettings();if(e.types)K();else{var t=V.getEffectiveTypeRoots(e,{directoryExists:q,getCurrentDirectory:r});t?V.mutateMap(g,V.arrayToMap(t,function(e){return k.toPath(e)}),{createNewValue:U,onDeleteValue:V.closeFileWatcher}):K()}},closeTypeRootsWatch:K,clear:function(){V.clearMap(p,V.closeFileWatcherOf),d.clear(),K(),a.clear(),c.clear(),S=!1,b()}};function y(e){return e.resolvedModule}function v(e){return e.resolvedTypeReferenceDirective}function h(e,t){return!(void 0===e||t.length<=e.length)&&V.startsWith(t,e)&&t[e.length]===V.directorySeparator}function b(){o.clear(),t.clear(),_.clear()}function x(e,t,r,n){var a=V.resolveModuleName(e,t,r,n,u);if(!k.getGlobalCache)return a;var i=k.getGlobalCache();if(!(void 0===i||V.isExternalModuleNameRelative(e)||a.resolvedModule&&V.extensionIsTypeScript(a.resolvedModule.extension))){var o=V.loadModuleFromGlobalCache(e,k.projectName,r,n,i),s=o.resolvedModule,c=o.failedLookupLocations;if(s)return{resolvedModule:s,failedLookupLocations:V.addRange(a.failedLookupLocations,c)}}return a}function C(e,t,r,n,a,i,o,s){var c=k.toPath(t),u=r.get(c)||r.set(c,V.createMap()).get(c),_=V.getDirectoryPath(c),l=n.get(_);l||(l=V.createMap(),n.set(_,l));for(var d=[],p=k.getCompilationSettings(),f=V.createMap(),m=0,g=e;m<g.length;m++){var y=g[m],v=u.get(y);if(!f.has(y)&&S||!v||v.isInvalidated){var h=v,b=l.get(y);b?v=b:(v=a(y,t,p,k),l.set(y,v)),u.set(y,v),I(v),h&&M(h),s&&D&&!x(h,v)&&(D.push(c),s=!1)}V.Debug.assert(void 0!==v&&!v.isInvalidated),f.set(y,!0),d.push(i(v))}return u.forEach(function(e,t){f.has(t)||V.contains(o,t)||(M(e),u.delete(t))}),d;function x(e,t){if(e===t)return!0;if(!e||!t||e.isInvalidated)return!1;var r=i(e),n=i(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function T(e){return V.endsWith(e,"/node_modules")}function E(e){return V.endsWith(e,"/node_modules/@types")}function N(e){return function(e,t){for(var r=V.getRootLength(e);0<t;t--)if(0===(r=e.indexOf(V.directorySeparator,r)+1))return!1;return!0}(e,47===e.charCodeAt(0)?3:1)}function A(e,t){return N(t)||(e.ignore=!0),e}function P(e,t){return h(m,t)?{dir:f,dirPath:m}:F(V.getDirectoryPath(V.getNormalizedAbsolutePath(e,r())),V.getDirectoryPath(t))}function F(e,t){for(;V.stringContains(t,"/node_modules/");)e=V.getDirectoryPath(e),t=V.getDirectoryPath(t);if(T(t))return A({dir:e,dirPath:t},V.getDirectoryPath(t));if(void 0!==m)for(;!h(t,m);){var r=V.getDirectoryPath(t);if(r===t)break;t=r,e=V.getDirectoryPath(e)}return A({dir:e,dirPath:t},t)}function w(e){return V.fileExtensionIsOneOf(e,l)}function I(e){if(e.failedLookupLocations&&e.failedLookupLocations.length)if(void 0===e.refCount){for(var t=!(e.refCount=1),r=0,n=e.failedLookupLocations;r<n.length;r++){var a=n[r],i=k.toPath(a),o=P(a,i),s=o.dir,c=o.dirPath;if(!o.ignore){if(!w(i)){var u=d.get(i)||0;d.set(i,u+1)}c===m?t=!0:O(s,c)}}t&&O(f,m)}else e.refCount++}function O(e,t){var r,n,a=p.get(t);a?a.refCount++:p.set(t,{watcher:(r=e,n=t,k.watchDirectoryOfFailedLookupLocation(r,function(e){var t=k.toPath(e);i&&i.addOrDeleteFileOrDirectory(e,t),(!S&&n===m||T(n)||V.getDirectoryPath(t)===n)&&j(t,n===t)&&k.onInvalidatedResolution()},1)),refCount:1})}function M(e){if(e.failedLookupLocations&&e.failedLookupLocations.length&&(e.refCount--,!e.refCount)){for(var t=!1,r=0,n=e.failedLookupLocations;r<n.length;r++){var a=n[r],i=k.toPath(a),o=P(a,i),s=o.dirPath;if(!o.ignore){var c=d.get(i);c&&(1===c?d.delete(i):(V.Debug.assert(1<c),d.set(i,c-1))),s===m?t=!0:L(s)}}t&&L(m)}}function L(e){p.get(e).refCount--}function R(e,t){var r=e.get(t);r&&(r.forEach(M),e.delete(t))}function B(e){R(a,e),R(c,e)}function z(e,a,i){var o=V.createMap();e.forEach(function(e,r){var t=V.getDirectoryPath(r),n=o.get(t);n||(n=V.createMap(),o.set(t,n)),e.forEach(function(e,t){n.has(t)||(n.set(t,!0),!e.isInvalidated&&a(e,i)&&(e.isInvalidated=!0,(s||(s=V.createMap())).set(r,!0)))})})}function J(e){var t;t=k.maxNumberOfFilesToIterateForInvalidation||V.maxNumberOfFilesToIterateForInvalidation,a.size>t||c.size>t?S=!0:(z(a,e,y),z(c,e,v))}function j(t,e){var r;if(e)r=function(e){return h(t,k.toPath(e))};else{var n=V.getDirectoryPath(t);if(E(t)||T(t)||E(n)||T(n))r=function(e){return k.toPath(e)===t||V.startsWith(k.toPath(e),t)};else{if(!w(t)&&!d.has(t))return!1;if(V.isEmittedFileOfProgram(k.getCurrentProgram(),t))return!1;r=function(e){return k.toPath(e)===t}}}var a=s&&s.size;return J(function(e){return V.some(e.failedLookupLocations,r)}),S||s&&s.size!==a}function K(){V.clearMap(g,V.closeFileWatcher)}function U(n,a){return k.watchTypeRootsDirectory(a,function(e){var t=k.toPath(e);i&&i.addOrDeleteFileOrDirectory(e,t),k.onChangedAutomaticTypeDirectiveNames();var r=function(e,t){if(!S){if(h(m,t))return m;var r=F(e,t),n=r.dirPath;return!r.ignore&&p.has(n)&&n}}(a,n);r&&j(t,r===t)&&k.onInvalidatedResolution()},1)}function q(e){var t=V.getDirectoryPath(V.getDirectoryPath(e)),r=k.toPath(t);return r===m||N(r)}}}(ts||(ts={})),function(_){var a=_.sys?{getCurrentDirectory:function(){return _.sys.getCurrentDirectory()},getNewLine:function(){return _.sys.newLine},getCanonicalFileName:_.createGetCanonicalFileName(_.sys.useCaseSensitiveFileNames)}:void 0;function s(t,e){var r=t===_.sys?a:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:_.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!e)return function(e){return t.write(_.formatDiagnostic(e,r))};var n=new Array(1);return function(e){n[0]=e,t.write(_.formatDiagnosticsWithColorAndContext(n,r)+r.getNewLine()),n[0]=void 0}}function i(e,t,r){!e.clearScreen||r.preserveWatchOutput||t.code===_.Diagnostics.Compilation_complete_Watching_for_file_changes.code||r.extendedDiagnostics||r.diagnostics||e.clearScreen()}function o(a,e){return e?function(e,t,r){i(a,e,r);var n="["+_.formatColorAndReset((new Date).toLocaleTimeString(),_.ForegroundColorEscapeSequences.Grey)+"] ";n+=""+_.flattenDiagnosticMessageText(e.messageText,a.newLine)+(t+t+t),a.write(n)}:function(e,t,r){i(a,e,r);var n=(new Date).toLocaleTimeString()+" - ";n+=""+_.flattenDiagnosticMessageText(e.messageText,a.newLine)+(t+t+t),a.write(n)}}function c(t,e,r){var n;try{n=r.readFile(t)}catch(e){var a=_.createCompilerDiagnostic(_.Diagnostics.Cannot_read_file_0_Colon_1,t,e.message);return void r.onUnRecoverableConfigFileDiagnostic(a)}if(n){var i=_.parseJsonText(t,n);i.parseDiagnostics.forEach(function(e){return r.onConfigFileDiagnostic(e)});var o=r.getCurrentDirectory(),s=_.parseJsonSourceFileConfigFileContent(i,r,_.getNormalizedAbsolutePath(_.getDirectoryPath(t),o),e,_.getNormalizedAbsolutePath(t,o));return s.errors.forEach(function(e){return r.onConfigFileDiagnostic(e)}),s}a=_.createCompilerDiagnostic(_.Diagnostics.File_0_not_found,t);r.onUnRecoverableConfigFileDiagnostic(a)}function u(e,t,r){var n=e.getSyntacticDiagnostics().slice(),a=!1;0===n.length&&(_.addRange(n,e.getOptionsDiagnostics()),_.addRange(n,e.getGlobalDiagnostics()),0===n.length&&(a=!0));var i=e.emit(),o=i.emittedFiles,s=i.emitSkipped,c=i.diagnostics;if(_.addRange(n,c),a&&_.addRange(n,e.getSemanticDiagnostics()),_.sortAndDeduplicateDiagnostics(n).forEach(t),r){var u=e.getCurrentDirectory();_.forEach(o,function(e){var t=_.getNormalizedAbsolutePath(e,u);r("TSFILE: "+t)}),e.getCompilerOptions().listFiles&&_.forEach(e.getSourceFiles(),function(e){r(e.fileName)})}return s&&0<n.length?_.ExitStatus.DiagnosticsPresent_OutputsSkipped:0<n.length?_.ExitStatus.DiagnosticsPresent_OutputsGenerated:_.ExitStatus.Success}_.createDiagnosticReporter=s,_.createWatchStatusReporter=o,_.parseConfigFileWithSystem=function(e,t,r,n){var a=r;a.onConfigFileDiagnostic=n,a.onUnRecoverableConfigFileDiagnostic=function(e){return p(_.sys,n,e)};var i=c(e,t,a);return a.onConfigFileDiagnostic=void 0,a.onUnRecoverableConfigFileDiagnostic=void 0,i},_.getParsedCommandLineOfConfigFile=c,_.emitFilesAndReportErrors=u;var l={close:_.noop};function d(i,e,t,r){void 0===i&&(i=_.sys),e||(e=_.createEmitAndSemanticDiagnosticsBuilderProgram);var n=function(e){return i.write(e+i.newLine)};return{useCaseSensitiveFileNames:function(){return i.useCaseSensitiveFileNames},getNewLine:function(){return i.newLine},getCurrentDirectory:function(){return i.getCurrentDirectory()},getDefaultLibLocation:a,getDefaultLibFileName:function(e){return _.combinePaths(a(),_.getDefaultLibFileName(e))},fileExists:function(e){return i.fileExists(e)},readFile:function(e,t){return i.readFile(e,t)},directoryExists:function(e){return i.directoryExists(e)},getDirectories:function(e){return i.getDirectories(e)},readDirectory:function(e,t,r,n,a){return i.readDirectory(e,t,r,n,a)},realpath:i.realpath&&function(e){return i.realpath(e)},getEnvironmentVariable:i.getEnvironmentVariable&&function(e){return i.getEnvironmentVariable(e)},watchFile:i.watchFile?function(e,t,r){return i.watchFile(e,t,r)}:function(){return l},watchDirectory:i.watchDirectory?function(e,t,r){return i.watchDirectory(e,t,r)}:function(){return l},setTimeout:i.setTimeout?function(e,t){for(var r,n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];return(r=i.setTimeout).call.apply(r,[i,e,t].concat(n))}:_.noop,clearTimeout:i.clearTimeout?function(e){return i.clearTimeout(e)}:_.noop,trace:function(e){return i.write(e)},onWatchStatusChange:r||o(i),createDirectory:function(e){return i.createDirectory(e)},writeFile:function(e,t,r){return i.writeFile(e,t,r)},onCachedDirectoryStructureHostCreate:function(e){return e||i},createHash:i.createHash&&function(e){return i.createHash(e)},createProgram:e,afterProgramCreate:function(e){u(e,t,n)}};function a(){return _.getDirectoryPath(_.normalizePath(i.getExecutingFilePath()))}}function p(e,t,r){t(r),e.exit(_.ExitStatus.DiagnosticsPresent_OutputsSkipped)}_.createWatchCompilerHostOfConfigFile=function(e,t,r,n,a,i){a=a||s(r);var o=d(r,n,a,i);return o.onConfigFileDiagnostic=a,o.onUnRecoverableConfigFileDiagnostic=function(e){return p(r,a,e)},o.configFileName=e,o.optionsToExtend=t,o},_.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,r,n,a,i){var o=d(r,n,a||s(r),i);return o.rootFiles=e,o.options=t,o}}(ts||(ts={})),function(ie){ie.createWatchCompilerHost=function(e,t,r,n,a,i){return ie.isArray(e)?ie.createWatchCompilerHostOfFilesAndCompilerOptions(e,t,r,n,a,i):ie.createWatchCompilerHostOfConfigFile(e,t,r,n,a,i)};var oe=1;ie.createWatchProgram=function(c){var o,n,s,e,t,u,_=ie.createMap(),l=!1,d=!1,r=c.useCaseSensitiveFileNames(),a=c.getCurrentDirectory(),i=function(){return a},p=function(e,t){return c.readFile(e,t)},f=c.configFileName,m=c.optionsToExtend,g=void 0===m?{}:m,y=c.createProgram,v=c.rootFiles,h=c.options,b=c.configFileSpecs,x=c.configFileWildCardDirectories,k=f&&ie.createCachedDirectoryStructureHost(c,a,r);k&&c.onCachedDirectoryStructureHostCreate&&c.onCachedDirectoryStructureHostCreate(k);var D=k||c,S={useCaseSensitiveFileNames:r,readDirectory:function(e,t,r,n,a){return D.readDirectory(e,t,r,n,a)},fileExists:function(e){return c.fileExists(e)},readFile:p,getCurrentDirectory:i,onConfigFileDiagnostic:c.onConfigFileDiagnostic,onUnRecoverableConfigFileDiagnostic:c.onUnRecoverableConfigFileDiagnostic};f&&!v&&Y();var C=c.trace&&function(e){c.trace(e+I)},T=C?h.extendedDiagnostics?ie.WatchLogLevel.Verbose:h.diagnostis?ie.WatchLogLevel.TriggerOnly:ie.WatchLogLevel.None:ie.WatchLogLevel.None,E=T!==ie.WatchLogLevel.None?C:ie.noop,N=ie.getWatchFactory(T,E),A=N.watchFile,P=N.watchFilePath,F=N.watchDirectory,w=ie.createGetCanonicalFileName(r),I=J();E("Current directory: "+a+" CaseSensitiveFileNames: "+r),f&&A(c,f,function(){ie.Debug.assert(!!f),n=ie.ConfigFileProgramReloadLevel.Full,X()},ie.PollingInterval.High);var O={getSourceFile:function(e,t,r,n){return V(e,j(e),t,r,n)},getSourceFileByPath:V,getDefaultLibLocation:c.getDefaultLibLocation&&function(){return c.getDefaultLibLocation()},getDefaultLibFileName:function(e){return c.getDefaultLibFileName(e)},writeFile:function(e,t,r,n){try{ie.performance.mark("beforeIOWrite"),function e(t){if(t.length>ie.getRootLength(t)&&!c.directoryExists(t)){var r=ie.getDirectoryPath(t);e(r),c.createDirectory(t)}}(ie.getDirectoryPath(ie.normalizePath(e))),c.writeFile(e,t,r),ie.performance.mark("afterIOWrite"),ie.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){n&&n(e.message)}},getCurrentDirectory:i,useCaseSensitiveFileNames:function(){return r},getCanonicalFileName:w,getNewLine:function(){return I},fileExists:q,readFile:p,trace:C,directoryExists:D.directoryExists&&function(e){return D.directoryExists(e)},getDirectories:D.getDirectories&&function(e){return D.getDirectories(e)},realpath:c.realpath&&function(e){return c.realpath(e)},getEnvironmentVariable:c.getEnvironmentVariable?function(e){return c.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t){var r=_.get(e.path);r&&(K(r)?(u||(u=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),_.delete(e.path),M.removeResolutionsOfFile(e.path)))},createHash:c.createHash&&function(e){return c.createHash(e)},toPath:j,getCompilationSettings:function(){return h},watchDirectoryOfFailedLookupLocation:ee,watchTypeRootsDirectory:ee,getCachedDirectoryStructureHost:function(){return k},onInvalidatedResolution:X,onChangedAutomaticTypeDirectiveNames:function(){d=!0,X()},maxNumberOfFilesToIterateForInvalidation:c.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:B,writeLog:E},M=ie.createResolutionCache(O,f?ie.getDirectoryPath(ie.getNormalizedAbsolutePath(f,a)):a,!1);O.resolveModuleNames=c.resolveModuleNames?function(e,t,r){return c.resolveModuleNames(e,t,r)}:function(e,t,r){return M.resolveModuleNames(e,t,r)},O.resolveTypeReferenceDirectives=c.resolveTypeReferenceDirectives?function(e,t){return c.resolveTypeReferenceDirectives(e,t)}:function(e,t){return M.resolveTypeReferenceDirectives(e,t)};var L=!!c.resolveModuleNames||!!c.resolveTypeReferenceDirectives;return G(ie.Diagnostics.Starting_compilation_in_watch_mode),z(),ne(),f?{getCurrentProgram:R,getProgram:z}:{getCurrentProgram:R,getProgram:z,updateRootFileNames:function(e){ie.Debug.assert(!f,"Cannot update root file names with config file watch mode"),v=e,X()}};function R(){return o}function B(){return o&&o.getProgram()}function z(){E("Synchronizing program");var e=B();l&&(I=J(),e&&ie.changesAffectModuleResolution(e.getCompilerOptions(),h)&&M.clear());var t=M.createHasInvalidatedResolution(L);if(ie.isProgramUptoDate(B(),v,h,H,q,t,d))return o;T!==ie.WatchLogLevel.None&&(E("CreatingProgramWith::"),E("  roots: "+JSON.stringify(v)),E("  options: "+JSON.stringify(h)));var r=l||!e;if(l=!1,M.startCachingPerDirectoryResolution(),O.hasInvalidatedResolution=t,O.hasChangedAutomaticTypeDirectiveNames=d,o=y(v,h,O,o),M.finishCachingPerDirectoryResolution(),ie.updateMissingFilePathsWatch(o.getProgram(),s||(s=ie.createMap()),te),r&&M.updateTypeRootsWatch(),u){for(var n=0,a=u;n<a.length;n++){var i=a[n];s.has(i)||_.delete(i)}u=void 0}return c.afterProgramCreate&&c.afterProgramCreate(o),G(ie.Diagnostics.Compilation_complete_Watching_for_file_changes),o}function J(){return ie.getNewLineCharacter(h,function(){return c.getNewLine()})}function j(e){return ie.toPath(e,a,w)}function K(e){return"number"==typeof e}function U(e){return!!e.sourceFile}function q(e){var t=j(e);return!!K(_.get(t))||D.fileExists(e)}function V(t,e,r,n,a){var i=_.get(e);if(!K(i)){if(!i||a||!U(i)||i.version.toString()!==i.sourceFile.version){var o=function(){var e;try{ie.performance.mark("beforeIORead"),e=c.readFile(t,h.charset),ie.performance.mark("afterIORead"),ie.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){n&&n(e.message)}return void 0!==e?ie.createSourceFile(t,e,r):void 0}();if(i)a&&i.version++,o?((i.sourceFile=o).version=i.version.toString(),i.fileWatcher||(i.fileWatcher=P(c,t,Z,ie.PollingInterval.Low,e))):(U(i)&&i.fileWatcher.close(),_.set(e,i.version));else if(o){o.version=oe.toString();var s=P(c,t,Z,ie.PollingInterval.Low,e);_.set(e,{sourceFile:o,version:oe,fileWatcher:s})}else _.set(e,oe);return o}return i.sourceFile}}function W(e){var t=_.get(e);void 0!==t&&(K(t)?_.set(e,{version:Number(t)+1}):t.version++)}function H(e){var t=_.get(e);return!t||K(t)?void 0:t.version.toString()}function G(e){c.onWatchStatusChange&&c.onWatchStatusChange(ie.createCompilerDiagnostic(e),I,h)}function X(){c.setTimeout&&c.clearTimeout&&(t&&c.clearTimeout(t),t=c.setTimeout(Q,250))}function Q(){switch(t=void 0,G(ie.Diagnostics.File_change_detected_Starting_incremental_compilation),n){case ie.ConfigFileProgramReloadLevel.Partial:return e=ie.getFileNamesFromConfigSpecs(b,ie.getDirectoryPath(f),h,S),b.filesSpecs||0!==e.fileNames.length||c.onConfigFileDiagnostic(ie.getErrorForNoInputFiles(b,f)),v=e.fileNames,void z();case ie.ConfigFileProgramReloadLevel.Full:return E("Reloading config file: "+f),n=ie.ConfigFileProgramReloadLevel.None,k&&k.clearCache(),Y(),l=!0,z(),void ne();default:return void z()}var e}function Y(){var e=ie.getParsedCommandLineOfConfigFile(f,g,S);v=e.fileNames,h=e.options,b=e.configFileSpecs,x=e.wildcardDirectories}function Z(e,t,r){$(e,r,t),t===ie.FileWatcherEventKind.Deleted&&_.get(r)&&M.invalidateResolutionOfFile(r),W(r),X()}function $(e,t,r){k&&k.addOrDeleteFile(e,t,r)}function ee(e,t,r){return F(c,e,t,r)}function te(e){return P(c,e,re,ie.PollingInterval.Medium,e)}function re(e,t,r){$(e,r,t),t===ie.FileWatcherEventKind.Created&&s.has(r)&&(s.get(r).close(),s.delete(r),W(r),X())}function ne(){x?ie.updateWatchingWildcardDirectories(e||(e=ie.createMap()),ie.createMapFromTemplate(x),ae):e&&ie.clearMap(e,ie.closeFileWatcherOf)}function ae(r,e){return ee(r,function(e){ie.Debug.assert(!!f);var t=j(e);k&&k.addOrDeleteFileOrDirectory(e,t),W(t),t===r||!ie.hasExtension(t)||ie.isSupportedSourceFileName(e,h)?n!==ie.ConfigFileProgramReloadLevel.Full&&(n=ie.ConfigFileProgramReloadLevel.Partial,X()):E("Project: "+f+" Detected file add/remove of non supported extension: "+e)},e)}}}(ts||(ts={})),function(k){var e,p;function o(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function c(){if(e)return e;var t=k.createMap(),r=k.createMap();return k.forEach(k.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&r.set(e.shortName,e.name)}),e={optionNameMap:t,shortOptionNames:r}}function i(e){return _(e,k.createCompilerDiagnostic)}function _(e,t){var r=k.arrayFrom(e.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return t(k.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+e.name,r)}function l(e,t,r){return M(e,L(t||""),r)}function d(t,e,r){if(void 0===e&&(e=""),e=L(e),!k.startsWith(e,"-")){if(""===e)return[];var n=e.split(",");switch(t.element.type){case"number":return k.map(n,parseInt);case"string":return k.map(n,function(e){return e||""});default:return k.filter(k.map(n,function(e){return l(t.element,e,r)}),function(e){return!!e})}}}function f(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=c(),n=r.optionNameMap,a=r.shortOptionNames;if(t){var i=a.get(e);void 0!==i&&(e=i)}return n.get(e)}function n(e,t){var r=k.parseJsonText(e,t);return{config:y(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function m(e,t){var r=a(e,t);return k.isString(r)?k.parseJsonText(e,r):{parseDiagnostics:[r]}}function a(t,e){var r;try{r=e(t)}catch(e){return k.createCompilerDiagnostic(k.Diagnostics.Cannot_read_file_0_Colon_1,t,e.message)}return void 0===r?k.createCompilerDiagnostic(k.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function g(e){return k.arrayToMap(e,function(e){return e.name})}function y(e,t){return v(e,t,void 0,void 0)}function v(d,p,f,m){return d.jsonObject?u(d.jsonObject,f,void 0,void 0):{};function u(e,t,r,n){for(var a={},i=0,o=e.properties;i<o.length;i++){var s=o[i];if(268===s.kind){s.questionToken&&p.push(k.createDiagnosticForNodeInSourceFile(d,s.questionToken,k.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),y(s.name)||p.push(k.createDiagnosticForNodeInSourceFile(d,s.name,k.Diagnostics.String_literal_with_double_quotes_expected));var c=k.unescapeLeadingUnderscores(k.getTextOfPropertyName(s.name)),u=t?t.get(c):void 0;r&&!u&&p.push(k.createDiagnosticForNodeInSourceFile(d,s.name,r,c));var _=g(s.initializer,u);if(void 0!==c&&(a[c]=_,m&&(n||t===f))){var l=b(u,_);n?l&&m.onSetValidOptionKeyValueInParent(n,u,_):t===f&&(l?m.onSetValidOptionKeyValueInRoot(c,s.name,_,s.initializer):u||m.onSetUnknownOptionKeyValueInRoot(c,s.name,_,s.initializer))}}else p.push(k.createDiagnosticForNodeInSourceFile(d,s,k.Diagnostics.Property_assignment_expected))}return a}function g(n,t){switch(n.kind){case 101:return c(t&&"boolean"!==t.type),!0;case 86:return c(t&&"boolean"!==t.type),!1;case 95:return c(t&&"extends"===t.name),null;case 9:y(n)||p.push(k.createDiagnosticForNodeInSourceFile(d,n,k.Diagnostics.String_literal_with_double_quotes_expected)),c(t&&k.isString(t.type)&&"string"!==t.type);var e=n.text;if(t&&!k.isString(t.type)){var r=t;r.type.has(e.toLowerCase())||p.push(_(r,function(e,t,r){return k.createDiagnosticForNodeInSourceFile(d,n,e,t,r)}))}return e;case 8:return c(t&&"number"!==t.type),Number(n.text);case 196:if(38!==n.operator||8!==n.operand.kind)break;return c(t&&"number"!==t.type),-Number(n.operand.text);case 182:c(t&&"object"!==t.type);var a=n;if(t){var i=t;return u(a,i.elementOptions,i.extraKeyDiagnosticMessage,i.name)}return u(a,void 0,void 0,void 0);case 181:return c(t&&"list"!==t.type),o=n.elements,s=t&&t.element,o.map(function(e){return g(e,s)})}var o,s;return void(t?c(!0):p.push(k.createDiagnosticForNodeInSourceFile(d,n,k.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function c(e){e&&p.push(k.createDiagnosticForNodeInSourceFile(d,n,k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,h(t)))}}function y(e){return k.isStringLiteral(e)&&k.isStringDoubleQuoted(e,d)}}function h(e){return"list"===e.type?"Array":k.isString(e.type)?e.type:"string"}function b(e,t){if(e)return!!D(t)||("list"===e.type?k.isArray(t):typeof t===(k.isString(e.type)?e.type:"string"))}function x(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function D(e){return null==e}function S(e,t){return k.getDirectoryPath(k.getNormalizedAbsolutePath(e,t))}function s(e,i,o,s,t,c,u,_){void 0===t&&(t={}),void 0===u&&(u=[]),void 0===_&&(_=[]),k.Debug.assert(void 0===e&&void 0!==i||void 0!==e&&void 0===i);var l=[],r=E(e,i,o,s,c,u,l),d=r.raw,p=k.extend(t,r.options||{});p.configFilePath=c,x(p,i);var n=function(){var e,t,r;k.hasProperty(d,"files")&&!D(d.files)&&(k.isArray(d.files)?0===(e=d.files).length&&g(k.Diagnostics.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json"):g(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array"));k.hasProperty(d,"include")&&!D(d.include)&&(k.isArray(d.include)?t=d.include:g(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(k.hasProperty(d,"exclude")&&!D(d.exclude))k.isArray(d.exclude)?r=d.exclude:g(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else{var n=d.compilerOptions&&d.compilerOptions.outDir;n&&(r=[n])}void 0===e&&void 0===t&&(t=["**/*"]);var a=function(e,t,r,n,a,i,o,s,c){var u,_;n=k.normalizePath(n),t&&(u=K(t,o,!1,c,"include"));r&&(_=K(r,o,!0,c,"exclude"));var l=function(e,t,r,n){var a=k.getRegularExpressionForWildcard(t,r,"exclude"),i=a&&new RegExp(a,n?"":"i"),o={};if(void 0!==e){for(var s=[],c=0,u=e;c<u.length;c++){var _=u[c],l=k.normalizePath(k.combinePaths(r,_));if(!i||!i.test(l)){var d=U(l,n);if(d){var p=d.key,f=d.flags,m=o[p];(void 0===m||m<f)&&1===(o[p]=f)&&s.push(p)}}}for(var p in o)if(k.hasProperty(o,p))for(var g=0,y=s;g<y.length;g++){var v=y[g];p!==v&&k.containsPath(v,p,r,!n)&&delete o[p]}}return o}(u,_,n,i.useCaseSensitiveFileNames);return j({filesSpecs:e,includeSpecs:t,excludeSpecs:r,validatedIncludeSpecs:u,validatedExcludeSpecs:_,wildcardDirectories:l},n,a,i,s)}(e,t,r,c?S(c,s):s,p,o,l,_,i);0!==a.fileNames.length||k.hasProperty(d,"files")||0!==u.length||l.push(C(a.spec,c));return a}(),a=n.fileNames,f=n.wildcardDirectories,m=n.spec;return{options:p,fileNames:a,typeAcquisition:r.typeAcquisition||F(),raw:d,errors:l,wildcardDirectories:f,compileOnSave:!!d.compileOnSave,configFileSpecs:m};function g(e,t,r){i||l.push(k.createCompilerDiagnostic(e,t,r))}}function C(e,t){var r=e.includeSpecs,n=e.excludeSpecs;return k.createCompilerDiagnostic(k.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,t||"tsconfig.json",JSON.stringify(r||[]),JSON.stringify(n||[]))}function T(e){return!!e.options}function E(e,t,r,n,a,i,o){n=k.normalizeSlashes(n);var s=k.getNormalizedAbsolutePath(a||"",n);if(0<=i.indexOf(s))return o.push(k.createCompilerDiagnostic(k.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i.concat([s]).join(" -> "))),{raw:e||y(t,o)};var c=e?function(e,t,r,n,a){k.hasProperty(e,"excludes")&&a.push(k.createCompilerDiagnostic(k.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var i,o=P(e.compilerOptions,r,a,n),s=w(e.typeAcquisition||e.typingOptions,r,a,n);if(e.compileOnSave=function(e,t,r){if(k.hasProperty(e,k.compileOnSaveCommandLineOption.name)){var n=I(k.compileOnSaveCommandLineOption,e.compileOnSave,t,r);return!("boolean"!=typeof n||!n)&&n}}(e,r,a),e.extends)if(k.isString(e.extends)){var c=n?S(n,r):r;i=N(e.extends,t,c,a,k.createCompilerDiagnostic)}else a.push(k.createCompilerDiagnostic(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:e,options:o,typeAcquisition:s,extendedConfigPath:i}}(e,r,n,a,o):function(i,o,s,c,u){var a,_,l,d=A(c),e={onSetValidOptionKeyValueInParent:function(e,t,r){k.Debug.assert("compilerOptions"===e||"typeAcquisition"===e||"typingOptions"===e);var n="compilerOptions"===e?d:"typeAcquisition"===e?a||(a=F(c)):_||(_=F(c));n[t.name]=function t(e,r,n){if(D(n))return;{if("list"===e.type){var a=e;return a.element.isFilePath||!k.isString(a.element.type)?k.filter(k.map(n,function(e){return t(a.element,r,e)}),function(e){return!!e}):n}if(!k.isString(e.type))return e.type.get(k.isString(n)?n.toLowerCase():n)}return O(e,r,n)}(t,s,r)},onSetValidOptionKeyValueInRoot:function(e,t,r,n){switch(e){case"extends":var a=c?S(c,s):s;return void(l=N(r,o,a,u,function(e,t){return k.createDiagnosticForNodeInSourceFile(i,n,e,t)}));case"files":return void(0===r.length&&u.push(k.createDiagnosticForNodeInSourceFile(i,n,k.Diagnostics.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(e,t,r,n){"excludes"===e&&u.push(k.createDiagnosticForNodeInSourceFile(i,t,k.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},t=v(i,u,(void 0===p&&(p=g([{name:"compilerOptions",type:"object",elementOptions:g(k.optionDeclarations),extraKeyDiagnosticMessage:k.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:g(k.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:k.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:g(k.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:k.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{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"}},k.compileOnSaveCommandLineOption])),p),e);a||(a=_?void 0!==_.enableAutoDiscovery?{enable:_.enableAutoDiscovery,include:_.include,exclude:_.exclude}:_:F(c));return{raw:t,options:d,typeAcquisition:a,extendedConfigPath:l}}(t,r,n,a,o);if(c.extendedConfigPath){i=i.concat([s]);var u=function(e,t,r,n,a,i){var o=m(t,function(e){return r.readFile(e)});e&&(e.extendedSourceFiles||(e.extendedSourceFiles=[])).push(o.fileName);if(o.parseDiagnostics.length)return void i.push.apply(i,o.parseDiagnostics);var s,c=k.getDirectoryPath(t),u=E(void 0,o,r,c,k.getBaseFileName(t),a,i);e&&(s=e.extendedSourceFiles).push.apply(s,o.extendedSourceFiles);if(T(u)){var _=k.convertToRelativePath(c,n,k.identity),l=function(e){return k.isRootedDiskPath(e)?e:k.combinePaths(_,e)},d=function(e){p[e]&&(p[e]=k.map(p[e],l))},p=u.raw;d("include"),d("exclude"),d("files")}return u}(t,c.extendedConfigPath,r,n,i,o);if(u&&T(u)){var _=u.raw,l=c.raw,d=function(e){var t=l[e]||_[e];t&&(l[e]=t)};d("include"),d("exclude"),d("files"),void 0===l.compileOnSave&&(l.compileOnSave=_.compileOnSave),c.options=k.assign({},u.options,c.options)}}return c}function N(e,t,r,n,a){if(e=k.normalizeSlashes(e),k.isRootedDiskPath(e)||k.startsWith(e,"./")||k.startsWith(e,"../")){var i=k.getNormalizedAbsolutePath(e,r);if(t.fileExists(i)||k.endsWith(i,".json")||(i+=".json",t.fileExists(i)))return i;n.push(a(k.Diagnostics.File_0_does_not_exist,e))}else n.push(a(k.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,e))}function A(e){return"jsconfig.json"===k.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function P(e,t,r,n){var a=A(n);return u(k.optionDeclarations,e,t,a,k.Diagnostics.Unknown_compiler_option_0,r),a}function F(e){return{enable:"jsconfig.json"===k.getBaseFileName(e),include:[],exclude:[]}}function w(e,t,r,n){var a=F(n),i=o(e);return u(k.typeAcquisitionDeclarations,i,t,a,k.Diagnostics.Unknown_type_acquisition_option_0,r),a}function u(e,t,r,n,a,i){if(t){var o=g(e);for(var s in t){var c=o.get(s);c?n[c.name]=I(c,t[s],r,i):i.push(k.createCompilerDiagnostic(a,s))}}}function I(e,t,r,n){if(b(e,t)){var a=e.type;return"list"===a&&k.isArray(t)?(i=e,o=t,s=r,c=n,k.filter(k.map(o,function(e){return I(i.element,e,s,c)}),function(e){return!!e})):k.isString(a)?O(e,r,t):M(e,t,n)}var i,o,s,c;n.push(k.createCompilerDiagnostic(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,h(e)))}function O(e,t,r){return e.isFilePath&&""===(r=k.normalizePath(k.combinePaths(t,r)))&&(r="."),r}function M(e,t,r){if(!D(t)){var n=t.toLowerCase(),a=e.type.get(n);if(void 0!==a)return a;r.push(i(e))}}function L(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}k.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"},k.optionDeclarations=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,paramType:k.Diagnostics.FILE_OR_DIRECTORY,description:k.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Watch_input_files},{name:"target",shortName:"t",type:k.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),paramType:k.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT},{name:"module",shortName:"m",type:k.createMapFromTemplate({none:k.ModuleKind.None,commonjs:k.ModuleKind.CommonJS,amd:k.ModuleKind.AMD,system:k.ModuleKind.System,umd:k.ModuleKind.UMD,es6:k.ModuleKind.ES2015,es2015:k.ModuleKind.ES2015,esnext:k.ModuleKind.ESNext}),paramType:k.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:k.createMapFromTemplate({es5:"lib.es5.d.ts",es6:"lib.es2015.d.ts",es2015:"lib.es2015.d.ts",es7:"lib.es2016.d.ts",es2016:"lib.es2016.d.ts",es2017:"lib.es2017.d.ts",es2018:"lib.es2018.d.ts",esnext:"lib.esnext.d.ts",dom:"lib.dom.d.ts","dom.iterable":"lib.dom.iterable.d.ts",webworker:"lib.webworker.d.ts",scripthost:"lib.scripthost.d.ts","es2015.core":"lib.es2015.core.d.ts","es2015.collection":"lib.es2015.collection.d.ts","es2015.generator":"lib.es2015.generator.d.ts","es2015.iterable":"lib.es2015.iterable.d.ts","es2015.promise":"lib.es2015.promise.d.ts","es2015.proxy":"lib.es2015.proxy.d.ts","es2015.reflect":"lib.es2015.reflect.d.ts","es2015.symbol":"lib.es2015.symbol.d.ts","es2015.symbol.wellknown":"lib.es2015.symbol.wellknown.d.ts","es2016.array.include":"lib.es2016.array.include.d.ts","es2017.object":"lib.es2017.object.d.ts","es2017.sharedmemory":"lib.es2017.sharedmemory.d.ts","es2017.string":"lib.es2017.string.d.ts","es2017.intl":"lib.es2017.intl.d.ts","es2017.typedarrays":"lib.es2017.typedarrays.d.ts","es2018.promise":"lib.es2018.promise.d.ts","es2018.regexp":"lib.es2018.regexp.d.ts","esnext.array":"lib.esnext.array.d.ts","esnext.asynciterable":"lib.esnext.asynciterable.d.ts"})},showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:k.createMapFromTemplate({preserve:1,"react-native":3,react:2}),paramType:k.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Generates_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:k.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:k.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:k.Diagnostics.LOCATION,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictPropertyInitialization",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:k.createMapFromTemplate({node:k.ModuleResolutionKind.NodeJs,classic:k.ModuleResolutionKind.Classic}),paramType:k.Diagnostics.STRATEGY,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",isFilePath:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",isTSConfigOnly:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},showInSimplifiedHelpView:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",isFilePath:!0,paramType:k.Diagnostics.LOCATION,category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",isFilePath:!0,paramType:k.Diagnostics.LOCATION,category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:k.Diagnostics.Experimental_Options,description:k.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:k.Diagnostics.Experimental_Options,description:k.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"diagnostics",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Show_verbose_diagnostic_information},{name:"traceResolution",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"listFiles",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"out",type:"string",isFilePath:!1,category:k.Diagnostics.Advanced_Options,paramType:k.Diagnostics.FILE,description:k.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:k.createMapFromTemplate({crlf:0,lf:1}),paramType:k.Diagnostics.NEWLINE,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:k.Diagnostics.DIRECTORY,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:k.Diagnostics.List_of_language_service_plugins}],k.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"}}],k.defaultInitCompilerOptions={module:k.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},k.convertEnableAutoDiscoveryToEnable=o,k.createCompilerDiagnosticForInvalidCustomType=i,k.parseCustomTypeOption=l,k.parseListTypeOption=d,k.parseCommandLine=function(e,i){var o={},s=[],c=[];return u(e),{options:o,fileNames:s,errors:c};function u(e){for(var t=0;t<e.length;){var r=e[t];if(t++,64===r.charCodeAt(0))_(r.slice(1));else if(45===r.charCodeAt(0)){var n=f(r.slice(45===r.charCodeAt(1)?2:1),!0);if(n)if(n.isTSConfigOnly)c.push(k.createCompilerDiagnostic(k.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,n.name));else switch(e[t]||"boolean"===n.type||c.push(k.createCompilerDiagnostic(k.Diagnostics.Compiler_option_0_expects_an_argument,n.name)),n.type){case"number":o[n.name]=parseInt(e[t]),t++;break;case"boolean":var a=e[t];o[n.name]="false"!==a,"false"!==a&&"true"!==a||t++;break;case"string":o[n.name]=e[t]||"",t++;break;case"list":var i=d(n,e[t],c);o[n.name]=i||[],i&&t++;break;default:o[n.name]=l(n,e[t],c),t++}else c.push(k.createCompilerDiagnostic(k.Diagnostics.Unknown_compiler_option_0,r))}else s.push(r)}}function _(e){var t=i?i(e):k.sys.readFile(e);if(t){for(var r=[],n=0;;){for(;n<t.length&&t.charCodeAt(n)<=32;)n++;if(n>=t.length)break;var a=n;if(34===t.charCodeAt(a)){for(n++;n<t.length&&34!==t.charCodeAt(n);)n++;n<t.length?(r.push(t.substring(a+1,n)),n++):c.push(k.createCompilerDiagnostic(k.Diagnostics.Unterminated_quoted_string_in_response_file_0,e))}else{for(;32<t.charCodeAt(n);)n++;r.push(t.substring(a,n))}}u(r)}else c.push(k.createCompilerDiagnostic(k.Diagnostics.File_0_not_found,e))}},k.readConfigFile=function(e,t){var r=a(e,t);return k.isString(r)?n(e,r):{config:{},error:r}},k.parseConfigFileTextToJson=n,k.readJsonConfigFile=m,k.convertToObject=y,k.generateTSConfig=function(e,f,m){var g=function(a){var i=k.createMap(),o=c().optionNameMap,e=function(e){if(k.hasProperty(a,e)){if(o.has(e)&&o.get(e).category===k.Diagnostics.Command_line_Options)return"continue";var t=a[e],r=o.get(e.toLowerCase());if(r){var n=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type?void 0:"list"===t.type?e(t.element):t.type}(r);n?"list"===r.type?i.set(e,t.map(function(e){return s(e,n)})):i.set(e,s(t,n)):i.set(e,t)}}};for(var t in a)e(t);return i}(k.extend(e,k.defaultInitCompilerOptions));return function(){for(var e=k.createMultiMap(),t=0,r=k.optionDeclarations;t<r.length;t++){var n=r[t],a=n.category;void 0!==a&&a!==k.Diagnostics.Command_line_Options&&a!==k.Diagnostics.Advanced_Options&&e.add(k.getLocaleSpecificMessage(a),n)}var o=0,s=0,c=[],u=[];e.forEach(function(e,t){0!==c.length&&(c.push(""),u.push("")),c.push("/* "+t+" */"),u.push("");for(var r=0,n=e;r<n.length;r++){var a=n[r],i=void 0;i=g.has(a.name)?'"'+a.name+'": '+JSON.stringify(g.get(a.name))+((s+=1)===g.size?"":","):'// "'+a.name+'": '+JSON.stringify(y(a))+",",c.push(i),u.push("/* "+(a.description&&k.getLocaleSpecificMessage(a.description)||a.name)+" */"),o=Math.max(i.length,o)}});var i=v(2),_=[];_.push("{"),_.push(i+'"compilerOptions": {');for(var l=0;l<c.length;l++){var d=c[l],p=u[l];_.push(d&&""+i+i+d+(p&&v(o-d.length+2)+p))}if(f.length){_.push(i+"},"),_.push(i+'"files": [');for(var l=0;l<f.length;l++)_.push(""+i+i+JSON.stringify(f[l])+(l===f.length-1?"":","));_.push(i+"]")}else _.push(i+"}");return _.push("}"),_.join(m)}();function s(r,e){return k.forEachEntry(e,function(e,t){if(e===r)return t})}function y(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function v(e){return Array(e+1).join(" ")}},k.parseJsonConfigFileContent=function(e,t,r,n,a,i,o){return s(e,void 0,t,r,n,a,i,o)},k.parseJsonSourceFileConfigFileContent=function(e,t,r,n,a,i,o){return s(void 0,e,t,r,n,a,i,o)},k.setConfigFileInOptions=x,k.isErrorNoInputFiles=function(e){return e.code===k.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code},k.getErrorForNoInputFiles=C,k.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:P(e,t,n,r),errors:n}},k.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:w(e,t,n,r),errors:n}};var R=/(^|\/)\*\*\/?$/,B=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,z=/\/[^/]*?[*?][^/]*\//,J=/^[^*?]*(?=\/[^/]*[*?])/;function j(e,t,r,n,a){void 0===a&&(a=[]),t=k.normalizePath(t);var i=n.useCaseSensitiveFileNames?k.identity:k.toLowerCase,o=k.createMap(),s=k.createMap(),c=e.filesSpecs,u=e.validatedIncludeSpecs,_=e.validatedExcludeSpecs,l=e.wildcardDirectories,d=k.getSupportedExtensions(r,a);if(c)for(var p=0,f=c;p<f.length;p++){var m=f[p],g=k.getNormalizedAbsolutePath(m,t);o.set(i(g),g)}if(u&&0<u.length)for(var y=0,v=n.readDirectory(t,d,_,u,void 0);y<v.length;y++){if(!q(g=v[y],o,s,d,i)){V(g,s,d,i);var h=i(g);o.has(h)||s.has(h)||s.set(h,g)}}var b=k.arrayFrom(o.values()),x=k.arrayFrom(s.values());return{fileNames:b.concat(x),wildcardDirectories:l,spec:e}}function K(e,r,n,c,u){return e.filter(function(e){var t=function(e,t){{if(!t&&R.test(e))return k.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(B.test(e))return k.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}}(e,n);return void 0!==t&&r.push(function(e,t){if(c&&c.jsonObject)for(var r=0,n=k.getPropertyAssignment(c.jsonObject,u);r<n.length;r++){var a=n[r];if(k.isArrayLiteralExpression(a.initializer))for(var i=0,o=a.initializer.elements;i<o.length;i++){var s=o[i];if(k.isStringLiteral(s)&&s.text===t)return k.createDiagnosticForNodeInSourceFile(c,s,e,t)}}return k.createCompilerDiagnostic(e,t)}(t,e)),void 0===t})}function U(e,t){var r=J.exec(e);return r?{key:t?r[0]:r[0].toLowerCase(),flags:z.test(e)?1:0}:k.isImplicitGlob(e)?{key:e,flags:1}:void 0}function q(e,t,r,n,a){for(var i=k.getExtensionPriority(e,n),o=k.adjustExtensionPriority(i,n),s=0;s<o;s++){var c=n[s],u=a(k.changeExtension(e,c));if(t.has(u)||r.has(u))return!0}return!1}function V(e,t,r,n){for(var a=k.getExtensionPriority(e,r),i=k.getNextLowestExtensionPriority(a,r);i<r.length;i++){var o=r[i],s=n(k.changeExtension(e,o));t.delete(s)}}function W(r,e){switch(e.type){case"object":case"string":return"";case"number":return"number"==typeof r?r:"";case"boolean":return"boolean"==typeof r?r:"";case"list":var t=e.element;return k.isArray(r)?r.map(function(e){return W(e,t)}):"";default:return k.forEachEntry(e.type,function(e,t){if(e===r)return t})}}k.getFileNamesFromConfigSpecs=j,k.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=f(r);void 0!==n&&(t[r]=W(e[r],n))}return t}}(ts||(ts={})),function(e){var t,r;t=e.ScriptSnapshot||(e.ScriptSnapshot={}),r=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}(),t.fromString=function(e){return new r(e)};var n,a,i,o,s,c,u,_,l,d,p=function(){};e.TextChange=p,(n=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",n.definition="definition",n.reference="reference",n.writtenReference="writtenReference",(a=e.IndentStyle||(e.IndentStyle={}))[a.None=0]="None",a[a.Block=1]="Block",a[a.Smart=2]="Smart",(i=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[i.aliasName=0]="aliasName",i[i.className=1]="className",i[i.enumName=2]="enumName",i[i.fieldName=3]="fieldName",i[i.interfaceName=4]="interfaceName",i[i.keyword=5]="keyword",i[i.lineBreak=6]="lineBreak",i[i.numericLiteral=7]="numericLiteral",i[i.stringLiteral=8]="stringLiteral",i[i.localName=9]="localName",i[i.methodName=10]="methodName",i[i.moduleName=11]="moduleName",i[i.operator=12]="operator",i[i.parameterName=13]="parameterName",i[i.propertyName=14]="propertyName",i[i.punctuation=15]="punctuation",i[i.space=16]="space",i[i.text=17]="text",i[i.typeParameterName=18]="typeParameterName",i[i.enumMemberName=19]="enumMemberName",i[i.functionName=20]="functionName",i[i.regularExpressionLiteral=21]="regularExpressionLiteral",(o=e.OutputFileType||(e.OutputFileType={}))[o.JavaScript=0]="JavaScript",o[o.SourceMap=1]="SourceMap",o[o.Declaration=2]="Declaration",(s=e.EndOfLineState||(e.EndOfLineState={}))[s.None=0]="None",s[s.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",s[s.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",s[s.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",s[s.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",s[s.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",s[s.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(c=e.TokenClass||(e.TokenClass={}))[c.Punctuation=0]="Punctuation",c[c.Keyword=1]="Keyword",c[c.Operator=2]="Operator",c[c.Comment=3]="Comment",c[c.Whitespace=4]="Whitespace",c[c.Identifier=5]="Identifier",c[c.NumberLiteral=6]="NumberLiteral",c[c.StringLiteral=7]="StringLiteral",c[c.RegExpLiteral=8]="RegExpLiteral",(u=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",u.warning="warning",u.keyword="keyword",u.scriptElement="script",u.moduleElement="module",u.classElement="class",u.localClassElement="local class",u.interfaceElement="interface",u.typeElement="type",u.enumElement="enum",u.enumMemberElement="enum member",u.variableElement="var",u.localVariableElement="local var",u.functionElement="function",u.localFunctionElement="local function",u.memberFunctionElement="method",u.memberGetAccessorElement="getter",u.memberSetAccessorElement="setter",u.memberVariableElement="property",u.constructorImplementationElement="constructor",u.callSignatureElement="call",u.indexSignatureElement="index",u.constructSignatureElement="construct",u.parameterElement="parameter",u.typeParameterElement="type parameter",u.primitiveType="primitive type",u.label="label",u.alias="alias",u.constElement="const",u.letElement="let",u.directory="directory",u.externalModuleName="external module name",u.jsxAttribute="JSX attribute",(_=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",_.publicMemberModifier="public",_.privateMemberModifier="private",_.protectedMemberModifier="protected",_.exportedModifier="export",_.ambientModifier="declare",_.staticModifier="static",_.abstractModifier="abstract",_.optionalModifier="optional",(l=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",l.identifier="identifier",l.keyword="keyword",l.numericLiteral="number",l.operator="operator",l.stringLiteral="string",l.whiteSpace="whitespace",l.text="text",l.punctuation="punctuation",l.className="class name",l.enumName="enum name",l.interfaceName="interface name",l.moduleName="module name",l.typeParameterName="type parameter name",l.typeAliasName="type alias name",l.parameterName="parameter name",l.docCommentTagName="doc comment tag name",l.jsxOpenTagName="jsx open tag name",l.jsxCloseTagName="jsx close tag name",l.jsxSelfClosingTagName="jsx self closing tag name",l.jsxAttribute="jsx attribute",l.jsxText="jsx text",l.jsxAttributeStringLiteralValue="jsx attribute string literal value",(d=e.ClassificationType||(e.ClassificationType={}))[d.comment=1]="comment",d[d.identifier=2]="identifier",d[d.keyword=3]="keyword",d[d.numericLiteral=4]="numericLiteral",d[d.operator=5]="operator",d[d.stringLiteral=6]="stringLiteral",d[d.regularExpressionLiteral=7]="regularExpressionLiteral",d[d.whiteSpace=8]="whiteSpace",d[d.text=9]="text",d[d.punctuation=10]="punctuation",d[d.className=11]="className",d[d.enumName=12]="enumName",d[d.interfaceName=13]="interfaceName",d[d.moduleName=14]="moduleName",d[d.typeParameterName=15]="typeParameterName",d[d.typeAliasName=16]="typeAliasName",d[d.parameterName=17]="parameterName",d[d.docCommentTagName=18]="docCommentTagName",d[d.jsxOpenTagName=19]="jsxOpenTagName",d[d.jsxCloseTagName=20]="jsxCloseTagName",d[d.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",d[d.jsxAttribute=22]="jsxAttribute",d[d.jsxText=23]="jsxText",d[d.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue"}(ts||(ts={})),function(d){var e;function a(e){switch(e.kind){case 148:case 230:case 180:case 151:case 150:case 268:case 269:case 153:case 152:case 154:case 155:case 156:case 232:case 190:case 191:case 267:case 260:return 1;case 147:case 234:case 235:case 165:return 2;case 291:return void 0===e.name?3:2;case 271:case 233:return 3;case 237:return d.isAmbientModule(e)?5:1===d.getModuleInstanceState(e)?5:4;case 236:case 245:case 246:case 241:case 242:case 247:case 248:return 7;case 272:return 5}return 7}function i(e){for(;145===e.parent.kind;)e=e.parent;return d.isInternalModuleImportEqualsDeclaration(e.parent)&&e.parent.moduleReference===e}function t(e,t){var r=n(e);return r&&r.parent&&r.parent.kind===t&&r.parent.expression===r}function n(e){return s(e)?e.parent:e}function r(e){return 71===e.kind&&d.isBreakOrContinueStatement(e.parent)&&e.parent.label===e}function o(e){return 71===e.kind&&d.isLabeledStatement(e.parent)&&e.parent.label===e}function s(e){return e&&e.parent&&183===e.parent.kind&&e.parent.name===e}d.scanner=d.createScanner(6,!0),(e=d.SemanticMeaning||(d.SemanticMeaning={}))[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",d.getMeaningFromDeclaration=a,d.getMeaningFromLocation=function(e){return 272===e.kind?1:247===e.parent.kind?7:i(e)?(n=145===(r=e).kind?r:d.isQualifiedName(r.parent)&&r.parent.right===r?r.parent:void 0)&&241===n.parent.kind?7:4:d.isDeclarationName(e)?a(e.parent):function(e){switch(d.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),e.kind){case 99:return!d.isExpressionNode(e);case 173:return!0}switch(e.parent.kind){case 161:return!0;case 205:return!d.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)}return!1}(e)?2:function(e){var t=e,r=!0;if(145===t.parent.kind){for(;t.parent&&145===t.parent.kind;)t=t.parent;r=t.right===e}return 161===t.parent.kind&&!r}(t=e)||function(e){var t=e,r=!0;if(183===t.parent.kind){for(;t.parent&&183===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&205===t.parent.kind&&266===t.parent.parent.kind){var n=t.parent.parent.parent;return 233===n.kind&&108===t.parent.parent.token||234===n.kind&&85===t.parent.parent.token}return!1}(t)?4:d.isTypeParameterDeclaration(e.parent)?(d.Debug.assert(d.isJSDocTemplateTag(e.parent.parent)),2):1;var t,r,n},d.isInRightSideOfInternalImportEqualsDeclaration=i,d.isCallExpressionTarget=function(e){return t(e,185)},d.isNewExpressionTarget=function(e){return t(e,186)},d.climbPastPropertyAccess=n,d.getTargetLabel=function(e,t){for(;e;){if(226===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},d.isJumpStatementTarget=r,d.isLabelOfLabeledStatement=o,d.isLabelName=function(e){return o(e)||r(e)},d.isRightSideOfQualifiedName=function(e){return 145===e.parent.kind&&e.parent.right===e},d.isRightSideOfPropertyAccess=s,d.isNameOfModuleDeclaration=function(e){return 237===e.parent.kind&&e.parent.name===e},d.isNameOfFunctionDeclaration=function(e){return 71===e.kind&&d.isFunctionLike(e.parent)&&e.parent.name===e},d.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(e){switch(e.parent.kind){case 151:case 150:case 268:case 271:case 153:case 152:case 155:case 156:case 237:return d.getNameOfDeclaration(e.parent)===e;case 184:return e.parent.argumentExpression===e;case 146:return!0;case 177:return 175===e.parent.parent.kind}},d.isExpressionOfExternalModuleImportEqualsDeclaration=function(e){return d.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&d.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e},d.getContainerNode=function(e){for(291===e.kind&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 272:case 153:case 152:case 232:case 190:case 155:case 156:case 233:case 234:case 236:case 237:return e}}},d.getNodeKind=function e(t){switch(t.kind){case 272:return d.isExternalModule(t)?"module":"script";case 237:return"module";case 233:case 203:return"class";case 234:return"interface";case 235:return"type";case 236:return"enum";case 230:return i(t);case 180:return i(d.getRootDeclaration(t));case 191:case 232:case 190:return"function";case 155:return"getter";case 156:return"setter";case 153:case 152:return"method";case 151:case 150:return"property";case 159:return"index";case 158:return"construct";case 157:return"call";case 154:return"constructor";case 147:return"type parameter";case 271:return"enum member";case 148:return d.hasModifier(t,92)?"property":"parameter";case 241:case 246:case 243:case 250:case 244:return"alias";case 291:return"type";case 198:var r=d.getSpecialPropertyAssignmentKind(t),n=t.right;switch(r){case 0:return"";case 1:case 2:var a=e(n);return""===a?"const":a;case 3:return d.isFunctionExpression(n)?"method":"property";case 4:return"property";case 5:return d.isFunctionExpression(n)?"method":"property";case 6:return"local class";default:return d.assertTypeIsNever(r),""}default:return""}function i(e){return d.isConst(e)?"const":d.isLet(e)?"let":"var"}},d.isThis=function(e){switch(e.kind){case 99:return!0;case 71:return d.identifierIsThisKeyword(e)&&148===e.parent.kind;default:return!1}};var c=/^\/\/\/\s*</;function u(e,t){return _(e.pos,e.end,t)}function _(e,t,r){return e<=r.pos&&t>=r.end}function l(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function p(e,t,r){var n=e.getChildren(r);if(n.length){var a=d.lastOrUndefined(n);if(a.kind===t)return!0;if(25===a.kind&&1!==n.length)return n[n.length-2].kind===t}return!1}function f(e,t,r){return!!m(e,t,r)}function m(e,t,r){return d.find(e.getChildren(r),function(e){return e.kind===t})}function g(t){var e=d.find(t.parent.getChildren(),function(e){return d.isSyntaxList(e)&&u(e,t)});return d.Debug.assert(!e||d.contains(e.getChildren(),t)),e}function y(e,t,r,n){return h(e,t,!1,n,!1,r)}function v(e,t,r,n){return h(e,t,!0,void 0,n,r)}function h(e,t,r,n,a,i){var o=e;e:for(;;){if(d.isToken(o))return o;for(var s=0,c=o.getChildren();s<c.length;s++){var u=c[s];if(i||!d.isJSDocNode(u)){if(t<(r?u.getFullStart():u.getStart(e,i)))break;var _=u.getEnd();if(t<_||t===_&&(1===u.kind||a)){o=u;continue e}if(n&&_===t){var l=b(t,e,u);if(l&&n(l))return l}}}return o}}function b(c,u,_,l){var e=function e(t){if(x(t))return t;var r=t.getChildren(u);for(var n=0;n<r.length;n++){var a=r[n];if(c<a.end){var i=a.getStart(u,l),o=c<=i||!E(a)||S(a);if(o){var s=D(r,n);return s&&k(s,u)}return e(a)}}d.Debug.assert(void 0!==_||272===t.kind||d.isJSDocCommentContainingNode(t));if(r.length){var s=D(r,r.length);return s&&k(s,u)}}(_||u);return d.Debug.assert(!(e&&S(e))),e}function x(e){return d.isToken(e)&&!S(e)}function k(e,t){if(x(e))return e;var r=e.getChildren(t),n=D(r,r.length);return n&&k(n,t)}function D(e,t){for(var r=t-1;0<=r;r--){if(S(e[r]))d.Debug.assert(0<r,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(E(e[r]))return e[r]}}function S(e){return d.isJsxText(e)&&e.containsOnlyWhiteSpaces}function C(e,t,r){for(var n=e.kind,a=0;;){if(!(e=b(e.getFullStart(),r)))return;if(e.kind===t){if(0===a)return e;a--}else e.kind===n&&a++}}function T(e,t,r,n){return!!d.formatting.getRangeOfEnclosingComment(e,t,!1,void 0,r,n)}function E(e){return 0!==e.getWidth()}function N(e){return 71===e||d.isKeyword(e)}function A(e,t){return{span:e,newText:t}}d.getLineStartPositionForPosition=function(e,t){return d.getLineStarts(t)[t.getLineAndCharacterOfPosition(e).line]},d.rangeContainsRange=u,d.startEndContainsRange=_,d.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},d.rangeOverlapsWithStartEnd=function(e,t,r){return l(e.pos,e.end,t,r)},d.startEndOverlapsWithStartEnd=l,d.positionBelongsToNode=function(e,t,r){return d.Debug.assert(e.pos<=t),t<e.end||!function e(t,r){if(d.nodeIsMissing(t))return!1;switch(t.kind){case 233:case 234:case 236:case 182:case 178:case 165:case 211:case 238:case 239:case 245:case 249:return p(t,18,r);case 267:return e(t.block,r);case 186:if(!t.arguments)return!0;case 185:case 189:case 172:return p(t,20,r);case 162:case 163:return e(t.type,r);case 154:case 155:case 156:case 232:case 190:case 153:case 152:case 158:case 157:case 191:return t.body?e(t.body,r):t.type?e(t.type,r):f(t,20,r);case 237:return t.body&&e(t.body,r);case 215:return t.elseStatement?e(t.elseStatement,r):e(t.thenStatement,r);case 214:return e(t.expression,r)||f(t,25,r);case 181:case 179:case 184:case 146:case 167:return p(t,22,r);case 159:return t.type?e(t.type,r):f(t,22,r);case 264:case 265:return!1;case 218:case 219:case 220:case 217:return e(t.statement,r);case 216:return f(t,106,r)?p(t,20,r):e(t.statement,r);case 164:return e(t.exprName,r);case 193:case 192:case 194:case 201:case 202:var n=t;return e(n.expression,r);case 187:return e(t.template,r);case 200:var a=d.lastOrUndefined(t.templateSpans);return e(a,r);case 209:return d.nodeIsPresent(t.literal);case 248:case 242:return d.nodeIsPresent(t.moduleSpecifier);case 196:return e(t.operand,r);case 198:return e(t.right,r);case 199:return e(t.whenFalse,r);default:return!0}}(e,r)},d.findListItemInfo=function(e){var t=g(e);if(t){var r=t.getChildren();return{listItemIndex:d.indexOfNode(r,e),list:t}}},d.hasChildOfKind=f,d.findChildOfKind=m,d.findContainingList=g,d.getTouchingWord=function(e,t,r){return y(e,t,r,function(e){return N(e.kind)})},d.getTouchingPropertyName=function(e,t,r){return y(e,t,r,function(e){return 9===(t=e.kind)||8===t||N(t);var t})},d.getTouchingToken=y,d.getTokenAtPosition=v,d.findTokenOnLeftOfPosition=function(e,t){var r=v(e,t,!1);return d.isToken(r)&&t>r.getStart(e)&&t<r.getEnd()?r:b(t,e)},d.findNextToken=function(s,e){return function e(t){if(d.isToken(t)&&t.pos===s.end)return t;for(var r=t.getChildren(),n=0,a=r;n<a.length;n++){var i=a[n],o=i.pos<=s.pos&&i.end>s.end||i.pos===s.end;if(o&&E(i))return e(i)}}(e)},d.findPrecedingToken=b,d.isInString=function(e,t,r){if(void 0===r&&(r=b(t,e)),r&&d.isStringTextContainingNode(r)){var n=r.getStart(),a=r.getEnd();if(n<t&&t<a)return!0;if(t===a)return!!r.isUnterminated}return!1},d.isInsideJsxElementOrAttribute=function(e,t){var r=v(e,t,!1);return!!r&&(10===r.kind||27===r.kind&&10===r.parent.kind||27===r.kind&&263===r.parent.kind||!(!r||18!==r.kind||263!==r.parent.kind)||27===r.kind&&256===r.parent.kind)},d.isInTemplateString=function(e,t){var r=v(e,t,!1);return d.isTemplateLiteralKind(r.kind)&&t>r.getStart(e)},d.findPrecedingMatchingToken=C,d.isPossiblyTypeArgumentPosition=function(e,t){for(var r=0;e;){switch(e.kind){case 27:var n=(e=b(e.getFullStart(),t))&&d.isIdentifier(e);if(!r||!n)return n;r--;break;case 47:r=3;break;case 46:r=2;break;case 29:r++;break;case 18:if(!(e=C(e,17,t)))return!1;break;case 20:if(!(e=C(e,19,t)))return!1;break;case 22:if(!(e=C(e,21,t)))return!1;break;case 26:case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(d.isTypeNode(e))break;return!1}e=b(e.getFullStart(),t)}return!1},d.isInComment=T,d.hasDocComment=function(r,e){var t=v(r,e,!1),n=d.getLeadingCommentRanges(r.text,t.pos);return d.forEach(n,function(e){var t=r.text;return t.length>=e.pos+3&&"/"===t[e.pos]&&"*"===t[e.pos+1]&&"*"===t[e.pos+2]})},d.getNodeModifiers=function(e){var t=d.getCombinedModifierFlags(e),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"),2097152&e.flags&&r.push("declare"),0<r.length?r.join(","):""},d.getTypeArgumentOrTypeParameterList=function(e){return 161===e.kind||185===e.kind?e.typeArguments:d.isFunctionLike(e)||233===e.kind||234===e.kind?e.typeParameters:void 0},d.isWord=N,d.isComment=function(e){return 2===e||3===e},d.isStringOrRegularExpressionOrTemplateLiteral=function(e){return!(9!==e&&12!==e&&!d.isTemplateLiteralKind(e))},d.isPunctuation=function(e){return 17<=e&&e<=70},d.isInsideTemplateLiteral=function(e,t){return d.isTemplateLiteralKind(e.kind)&&e.getStart()<t&&t<e.getEnd()||!!e.isUnterminated&&t===e.getEnd()},d.isAccessibilityModifier=function(e){switch(e){case 114:case 112:case 113:return!0}return!1},d.cloneCompilerOptions=function(e){var t=d.clone(e);return d.setConfigFileInOptions(t,e&&e.configFile),t},d.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(181===t.kind||182===t.kind){if(198===t.parent.kind&&t.parent.left===t&&58===t.parent.operatorToken.kind)return!0;if(220===t.parent.kind&&t.parent.initializer===t)return!0;if(e(268===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},d.hasTrailingDirectorySeparator=function(e){var t=e.charAt(e.length-1);return"/"===t||"\\"===t},d.isInReferenceComment=function(r,e){return T(r,e,void 0,function(e){var t=r.text.substring(e.pos,e.end);return c.test(t)})},d.isInNonReferenceComment=function(r,e){return T(r,e,void 0,function(e){var t=r.text.substring(e.pos,e.end);return!c.test(t)})},d.createTextSpanFromNode=function(e,t){return d.createTextSpanFromBounds(e.getStart(t),e.getEnd())},d.createTextSpanFromRange=function(e){return d.createTextSpanFromBounds(e.pos,e.end)},d.createTextChangeFromStartLength=function(e,t,r){return A(d.createTextSpan(e,t),r)},d.createTextChange=A,d.typeKeywords=[119,122,128,131,95,134,135,137,138,105,140,141],d.isTypeKeyword=function(e){return d.contains(d.typeKeywords,e)},d.isExternalModuleSymbol=function(e){return d.Debug.assert(!!(1536&e.flags)),34===e.name.charCodeAt(0)},d.nodeSeenTracker=function(){var r=[];return function(e){var t=d.getNodeId(e);return!r[t]&&(r[t]=!0)}},d.addToSeen=function(e,t){return t=String(t),!e.has(t)&&(e.set(t,!0),!0)},d.getSnapshotText=function(e){return e.getText(0,e.getLength())},d.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r}}(ts||(ts={})),function(s){function r(e){return e.declarations&&0<e.declarations.length&&148===e.declarations[0].kind}s.isFirstDeclarationOfSymbolParameter=r;var t=function(){var r,t,n;o();var e=function(e){return i(e,s.SymbolDisplayPartKind.text)};return{displayParts:function(){return r},writeKeyword:function(e){return i(e,s.SymbolDisplayPartKind.keyword)},writeOperator:function(e){return i(e,s.SymbolDisplayPartKind.operator)},writePunctuation:function(e){return i(e,s.SymbolDisplayPartKind.punctuation)},writeSpace:function(e){return i(e,s.SymbolDisplayPartKind.space)},writeStringLiteral:function(e){return i(e,s.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(e){return i(e,s.SymbolDisplayPartKind.parameterName)},writeProperty:function(e){return i(e,s.SymbolDisplayPartKind.propertyName)},writeLiteral:function(e){return i(e,s.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,t){a(),r.push(c(e,t))},writeLine:function(){r.push(_()),t=!0},write:e,writeTextOfNode:e,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:s.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:o,trackSymbol:s.noop,reportInaccessibleThisError:s.noop,reportInaccessibleUniqueSymbolError:s.noop,reportPrivateInBaseOfClassExpression:s.noop};function a(){if(t){var e=s.getIndentString(n);e&&r.push(u(e,s.SymbolDisplayPartKind.space)),t=!1}}function i(e,t){a(),r.push(u(e,t))}function o(){r=[],t=!0,n=0}}();function c(e,t){return u(e,function(e){var t=e.flags;{if(3&t)return r(e)?s.SymbolDisplayPartKind.parameterName:s.SymbolDisplayPartKind.localName;if(4&t)return s.SymbolDisplayPartKind.propertyName;if(32768&t)return s.SymbolDisplayPartKind.propertyName;if(65536&t)return s.SymbolDisplayPartKind.propertyName;if(8&t)return s.SymbolDisplayPartKind.enumMemberName;if(16&t)return s.SymbolDisplayPartKind.functionName;if(32&t)return s.SymbolDisplayPartKind.className;if(64&t)return s.SymbolDisplayPartKind.interfaceName;if(384&t)return s.SymbolDisplayPartKind.enumName;if(1536&t)return s.SymbolDisplayPartKind.moduleName;if(8192&t)return s.SymbolDisplayPartKind.methodName;if(262144&t)return s.SymbolDisplayPartKind.typeParameterName;if(524288&t)return s.SymbolDisplayPartKind.aliasName;if(2097152&t)return s.SymbolDisplayPartKind.aliasName}return s.SymbolDisplayPartKind.text}(t))}function u(e,t){return{text:e,kind:s.SymbolDisplayPartKind[t]}}function n(e){return u(s.tokenToString(e),s.SymbolDisplayPartKind.keyword)}function a(e){return u(e,s.SymbolDisplayPartKind.text)}s.symbolPart=c,s.displayPart=u,s.spacePart=function(){return u(" ",s.SymbolDisplayPartKind.space)},s.keywordPart=n,s.punctuationPart=function(e){return u(s.tokenToString(e),s.SymbolDisplayPartKind.punctuation)},s.operatorPart=function(e){return u(s.tokenToString(e),s.SymbolDisplayPartKind.operator)},s.textOrKeywordPart=function(e){var t=s.stringToToken(e);return void 0===t?a(e):n(t)},s.textPart=a;var i="\r\n";function _(){return u("\n",s.SymbolDisplayPartKind.lineBreak)}function e(e){try{return e(t),t.displayParts()}finally{t.clear()}}function o(e){return s.isSingleOrDoubleQuote(e.charCodeAt(0))}function l(e,t){return s.ensureScriptKind(e,t&&t.getScriptKind&&t.getScriptKind(e))}function d(e){if(void 0!==e){var t=s.visitEachChild(e,d,s.nullTransformationContext);if(t===e){var r=s.getSynthesizedClone(e);return s.isStringLiteral(r)?r.textSourceNode=e:s.isNumericLiteral(r)&&(r.numericLiteralFlags=e.numericLiteralFlags),r.pos=e.pos,r.end=e.end,r}return t.parent=void 0,t}}function p(e){return e.forEachChild(function(e){return e})}function f(e){var t;return e.forEachChild(function(e){t=e},function(e){e.length&&(t=s.last(e))}),t}s.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||i},s.lineBreakPart=_,s.mapToDisplayParts=e,s.typeToDisplayParts=function(t,r,n,a){return e(function(e){t.writeType(r,n,1024|a,e)})},s.symbolToDisplayParts=function(t,r,n,a,i){return e(function(e){t.writeSymbol(r,n,a,8|i,e)})},s.signatureToDisplayParts=function(t,r,n,a){return a|=25632,e(function(e){t.writeSignature(r,n,a,void 0,e)})},s.isImportOrExportSpecifierName=function(e){return e.parent&&(246===e.parent.kind||250===e.parent.kind)&&e.parent.propertyName===e},s.stripQuotes=function(e){var t=e.length;return 2<=t&&e.charCodeAt(0)===e.charCodeAt(t-1)&&o(e)?e.substring(1,t-1):e},s.startsWithQuote=o,s.scriptKindIs=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=l(e,t);return s.forEach(r,function(e){return e===a})},s.getScriptKind=l,s.getUniqueSymbolId=function(e,t){return s.getSymbolId(s.skipAlias(e,t))},s.getFirstNonSpaceCharacterPosition=function(e,t){for(;s.isWhiteSpaceLike(e.charCodeAt(t));)t+=1;return t},s.getSynthesizedDeepClone=d,s.getSynthesizedDeepClones=function(e){return e&&s.createNodeArray(e.map(d),e.hasTrailingComma)},s.suppressLeadingAndTrailingTrivia=function(e){function a(e,t,r){s.addEmitFlags(e,t);var n=r(e);n&&a(n,t,r)}s.Debug.assertDefined(e),a(e,512,p),a(e,1024,f)}}(ts||(ts={})),function(h){h.createClassifier=function(){var g=h.createScanner(6,!1);function n(e,t,r){var n=0,a=0,i=[],o=function(e){switch(e){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 h.Debug.assertNever(e)}}(t),s=o.prefix,c=o.pushTemplate;e=s+e;var u=s.length;c&&i.push(14),g.setText(e);var _=0,l=[],d=0;do{n=g.scan(),h.isTrivia(n)||(m(),a=n);var p=g.getTextPos();if(b(g.getTokenPos(),p,u,x(n),l),p>=e.length){var f=v(g,n,h.lastOrUndefined(i));void 0!==f&&(_=f)}}while(1!==n);function m(){switch(n){case 41:case 63:y[a]||12!==g.reScanSlashToken()||(n=12);break;case 27:71===a&&d++;break;case 29:0<d&&d--;break;case 119:case 137:case 134:case 122:case 138:0<d&&!r&&(n=71);break;case 14:i.push(n);break;case 17:0<i.length&&i.push(n);break;case 18:if(0<i.length){var e=h.lastOrUndefined(i);14===e?16===(n=g.reScanTemplateToken())?i.pop():h.Debug.assertEqual(n,15,"Should have been a template middle."):(h.Debug.assertEqual(e,17,"Should have been an open brace"),i.pop())}break;default:if(!h.isKeyword(n))break;23===a?n=71:h.isKeyword(a)&&h.isKeyword(n)&&!function(e,t){if(!h.isAccessibilityModifier(e))return!0;switch(t){case 125:case 136:case 123:case 115:return!0;default:return!1}}(a,n)&&(n=71)}}return{endOfLineState:_,spans:l}}return{getClassificationsForLine:function(e,t,r){return function(e,t){for(var r=[],n=e.spans,a=0,i=0;i<n.length;i+=3){var o=n[i],s=n[i+1],c=n[i+2];if(0<=a){var u=o-a;0<u&&r.push({length:u,classification:h.TokenClass.Whitespace})}r.push({length:s,classification:l(c)}),a=o+s}var _=t.length-a;return 0<_&&r.push({length:_,classification:h.TokenClass.Whitespace}),{entries:r,finalLexState:e.endOfLineState}}(n(e,t,r),e)},getEncodedLexicalClassifications:n}};var y=h.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function v(e,t,r){switch(t){case 9:if(!e.isUnterminated())return;for(var n=e.getTokenText(),a=n.length-1,i=0;92===n.charCodeAt(a-i);)i++;if(0==(1&i))return;return 34===n.charCodeAt(0)?3:2;case 3:return e.isUnterminated()?1:void 0;default:if(h.isTemplateLiteralKind(t)){if(!e.isUnterminated())return;switch(t){case 16:return 5;case 13:return 4;default:return h.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 14===r?6:void 0}}function b(e,t,r,n,a){if(8!==n){0===e&&0<r&&(e+=r);var i=t-e;0<i&&a.push(e-r,i,n)}}function l(e){switch(e){case 1:return h.TokenClass.Comment;case 3:return h.TokenClass.Keyword;case 4:return h.TokenClass.NumberLiteral;case 5:return h.TokenClass.Operator;case 6:return h.TokenClass.StringLiteral;case 8:return h.TokenClass.Whitespace;case 10:return h.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return h.TokenClass.Identifier}}function x(e){if(h.isKeyword(e))return 3;if(function(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}(e)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(e))return 5;if(17<=e&&e<=70)return 10;switch(e){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return h.isTemplateLiteralKind(e)?6:2}}function k(e,t){switch(t){case 237:case 233:case 234:case 232:e.throwIfCancellationRequested()}}function i(s,c,u,_,l){var d=[];return u.forEachChild(function e(t){if(t&&h.textSpanIntersectsWith(l,t.pos,t.getFullWidth())){if(k(c,t.kind),h.isIdentifier(t)&&!h.nodeIsMissing(t)&&_.has(t.escapedText)){var r=s.getSymbolAtLocation(t),n=r&&function e(t,r,n){var a=t.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&r||1&r&&(i=t,h.some(i.declarations,function(e){return h.isModuleDeclaration(e)&&1===h.getModuleInstanceState(e)}))?14:void 0:2097152&a?e(n.getAliasedSymbol(t),r,n):2&r?64&a?13:262144&a?15:void 0:void 0;var i}(r,h.getMeaningFromLocation(t),s);n&&(a=t.getStart(u),i=t.getEnd(),o=n,d.push(a),d.push(i-a),d.push(o))}var a,i,o;t.forEachChild(e)}}),{spans:d,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";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"}}function o(e){h.Debug.assert(e.spans.length%3==0);for(var t=e.spans,r=[],n=0;n<t.length;n+=3)r.push({textSpan:h.createTextSpan(t[n],t[n+1]),classificationType:a(t[n+2])});return r}function n(a,s,e){var i=e.start,o=e.length,c=h.createScanner(6,!1,s.languageVariant,s.text),u=h.createScanner(6,!1,s.languageVariant,s.text),n=[];return v(s),{spans:n,endOfLineState:0};function _(e,t,r){n.push(e),n.push(t),n.push(r)}function l(e,t,r,n){if(3===t){var a=h.parseIsolatedJSDocComment(s.text,r,n);if(a&&a.jsDoc)return a.jsDoc.parent=e,void function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var a=n[r];switch(a.pos!==t&&d(t,a.pos-t),_(a.atToken.pos,a.atToken.end-a.atToken.pos,10),_(a.tagName.pos,a.tagName.end-a.tagName.pos,18),t=a.tagName.end,a.kind){case 287:i(a);break;case 290:p(a);break;case 289:case 288:v(a.typeExpression)}t=a.end}t!==e.end&&d(t,e.end-t);return;function i(e){e.isNameFirst&&(d(t,e.name.pos-t),_(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(d(t,e.typeExpression.pos-t),v(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(d(t,e.name.pos-t),_(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}}(a.jsDoc)}d(r,n)}function d(e,t){_(e,t,1)}function p(e){for(var t=0,r=e.getChildren();t<r.length;t++){v(r[t])}}function f(e,t,r){var n;for(n=t;n<r&&!h.isLineBreak(e.charCodeAt(n));n++);for(_(t,n-t,1),u.setTextPos(n);u.getTextPos()<r;)m()}function m(){var e=u.getTextPos(),t=u.scan(),r=u.getTextPos(),n=y(t);n&&_(e,r-e,n)}function g(e){if(h.isJSDoc(e))return!0;if(h.nodeIsMissing(e))return!0;var t=function(e){switch(e.parent&&e.parent.kind){case 255:if(e.parent.tagName===e)return 19;break;case 256:if(e.parent.tagName===e)return 20;break;case 254:if(e.parent.tagName===e)return 21;break;case 260:if(e.parent.name===e)return 22}return}(e);if(!h.isToken(e)&&10!==e.kind&&void 0===t)return!1;var r=10===e.kind?e.pos:function(e){for(c.setTextPos(e.pos);;){var t=c.getTextPos();if(!h.couldStartTrivia(s.text,t))return t;var r=c.scan(),n=c.getTextPos(),a=n-t;if(!h.isTrivia(r))return t;switch(r){case 4:case 5:continue;case 2:case 3:l(e,r,t,a),c.setTextPos(n);continue;case 7:var i=s.text,o=i.charCodeAt(t);if(60===o||62===o){_(t,a,1);continue}h.Debug.assert(124===o||61===o),f(i,t,n);break;case 6:break;default:h.Debug.assertNever(r)}}}(e),n=e.end-r;if(h.Debug.assert(0<=n),0<n){var a=t||y(e.kind,e);a&&_(r,n,a)}return!0}function y(e,t){if(h.isKeyword(e))return 3;if((27===e||29===e)&&t&&h.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(h.isPunctuation(e)){if(t){if(58===e&&(230===t.parent.kind||151===t.parent.kind||148===t.parent.kind||260===t.parent.kind))return 5;if(198===t.parent.kind||196===t.parent.kind||197===t.parent.kind||199===t.parent.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 260===t.parent.kind?24:6;if(12===e)return 6;if(h.isTemplateLiteralKind(e))return 6;if(10===e)return 23;if(71===e){if(t)switch(t.parent.kind){case 233:return t.parent.name===t?11:void 0;case 147:return t.parent.name===t?15:void 0;case 234:return t.parent.name===t?13:void 0;case 236:return t.parent.name===t?12:void 0;case 237:return t.parent.name===t?14:void 0;case 148:return t.parent.name===t?h.isThisIdentifier(t)?3:17:void 0}return 2}}function v(e){if(e&&h.decodedTextSpanIntersectsWith(i,o,e.pos,e.getFullWidth())){k(a,e.kind);for(var t=0,r=e.getChildren(s);t<r.length;t++){var n=r[t];g(n)||v(n)}}}}h.getSemanticClassifications=function(e,t,r,n,a){return o(i(e,t,r,n,a))},h.getEncodedSemanticClassifications=i,h.getSyntacticClassifications=function(e,t,r){return o(n(e,t,r))},h.getEncodedSyntacticClassifications=n}(ts||(ts={})),function(I){var e;(function(e){function D(e,t,r){return{name:e,kind:t,span:r}}function S(e,t,r,n,a,i,o,s){void 0===s&&(s=[]),void 0===e&&(e=""),e=I.normalizeSlashes(e),""===(e=I.getDirectoryPath(e))&&(e="."+I.directorySeparator),e=I.ensureTrailingDirectorySeparator(e);var c=k(I.isRootedDiskPath(e)?e:I.combinePaths(t,e)),u=I.getDirectoryPath(c),_=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(F(i,u)){var l=P(i,u,r,void 0,["./*"]);if(l){for(var d=I.createMap(),p=0,f=l;p<f.length;p++){var m=f[p];if(m=I.normalizePath(m),!o||0!==I.comparePaths(m,o,t,_)){var g=n?I.getBaseFileName(m):I.removeFileExtension(I.getBaseFileName(m));d.has(g)||d.set(g,!0)}}I.forEachKey(d,function(e){s.push(D(e,"script",a))})}var y=A(i,u);if(y)for(var v=0,h=y;v<h.length;v++){var b=h[v],x=I.getBaseFileName(I.normalizePath(b));s.push(D(x,"directory",a))}}return s}function C(e,t,r,n,a,i){if(!I.endsWith(e,"*"))return!I.stringContains(e,"*")&&I.startsWith(e,r)?[{name:e,kind:"directory"}]:I.emptyArray;var o=e.slice(0,e.length-1);if(!I.startsWith(r,o))return[{name:o,kind:"directory"}];var s=r.slice(o.length);return I.flatMap(t,function(e){return function(e,t,r,n,a){if(a.readDirectory){var i=I.hasZeroOrOneAsteriskCharacter(r)?I.tryParsePattern(r):void 0;if(i){var o=k(i.prefix),s=I.getDirectoryPath(o),c=I.getBaseFileName(o),u=I.stringContains(e,I.directorySeparator),_=u?I.combinePaths(s,c+I.getDirectoryPath(e)):s,l=I.normalizePath(i.suffix),d=I.normalizePath(I.combinePaths(t,_)),p=u?d:I.ensureTrailingDirectorySeparator(d)+c,f=P(a,d,n,void 0,[l?"**/*":"./*"]).map(function(e){return{name:e,kind:"script"}}),m=A(a,d).map(function(e){return I.combinePaths(d,e)}).map(function(e){return{name:e,kind:"directory"}});return I.mapDefined(I.concatenate(f,m),function(e){var t,r,n,a,i=e.name,o=e.kind,s=I.normalizePath(i),c=(t=s,r=p,n=l,I.startsWith(t,r)&&I.endsWith(t,n)?t.slice(r.length,t.length-n.length):void 0);return void 0!==c?{name:(a=I.removeFileExtension(c),a[0]===I.directorySeparator?a.slice(1):a),kind:o}:void 0})}}}(s,n,e,a,i)})}function T(o,e,t,r,n){void 0===n&&(n=[]);var a=I.createMap();if(e.types)for(var i=0,s=e.types;i<s.length;i++){var c=s[i];g(I.getUnmangledNameForScopedPackage(c))}else if(o.getDirectories){var u=void 0;try{u=I.getEffectiveTypeRoots(e,o)}catch(e){}if(u)for(var _=0,l=u;_<l.length;_++)m(l[_]);for(var d=0,p=E(t,o);d<p.length;d++){var f=p[d];m(I.combinePaths(I.getDirectoryPath(f),"node_modules/@types"))}}return n;function m(e){if(I.Debug.assert(!!o.getDirectories),F(o,e)){var t=A(o,e);if(t)for(var r=0,n=t;r<n.length;r++){var a=n[r];a=I.normalizePath(a);var i=I.getBaseFileName(a);g(I.getUnmangledNameForScopedPackage(i))}}}function g(e){a.has(e)||(n.push(D(e,"external module name",r)),a.set(e,!0))}}function E(e,n){var r=[];return I.forEachAncestorDirectory(e,function(e){var t=I.findConfigFile(e,function(e){return r=e,w(t=n,t.fileExists,r);var t,r},"package.json");if(!t)return!0;r.push(t)}),r}function f(e,t){var r=e.lastIndexOf(I.directorySeparator),n=-1!==r?r+1:0;return{start:t+n,length:e.length-n}}function k(e){if("./"===I.normalizeSlashes(e))return"";var t=I.normalizePath(e);return I.hasTrailingDirectorySeparator(e)?I.ensureTrailingDirectorySeparator(t):t}e.getStringLiteralCompletionsFromModuleNames=function(e,t,r,n,a){var i=I.normalizeSlashes(t.text),o=t.getSourceFile().path,s=I.getDirectoryPath(o),c=f(t.text,t.getStart(e)+1);if(function(e){if(e&&2<=e.length&&46===e.charCodeAt(0)){var t=3<=e.length&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(i)||I.isRootedDiskPath(i)){var u=I.getSupportedExtensions(r);return r.rootDirs?function(e,t,r,n,a,i,o,s,c){for(var u=o.project||s.getCurrentDirectory(),_=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),l=function(e,t,r,n){e=e.map(function(e){return I.normalizePath(I.isRootedDiskPath(e)?e:I.combinePaths(t,e))});var a=I.firstDefined(e,function(e){return I.containsPath(e,r,t,n)?r.substr(e.length):void 0});return I.deduplicate(e.map(function(e){return I.combinePaths(e,a)}),I.equateStringsCaseSensitive,I.compareStringsCaseSensitive)}(e,u,r,_),d=[],p=0,f=l;p<f.length;p++){var m=f[p];S(t,m,n,a,i,s,c,d)}return d}(r.rootDirs,i,s,u,!1,c,r,n,o):S(i,s,u,!1,c,n,o)}return function(r,e,n,t,a,i){var o=t.baseUrl,s=t.paths,c=[],u=I.getSupportedExtensions(t);if(o){var _=t.project||a.getCurrentDirectory(),l=I.isRootedDiskPath(o)?o:I.combinePaths(_,o);for(var d in S(r,I.normalizePath(l),u,!1,n,a,void 0,c),s){var p=s[d];if(s.hasOwnProperty(d)&&p)for(var f=function(t,e){c.some(function(e){return e.name===t})||c.push(D(t,e,n))},m=0,g=C(d,p,r,o,u,a);m<g.length;m++){var y=g[m],v=y.name,h=y.kind;f(v,h)}}}t.moduleResolution===I.ModuleResolutionKind.NodeJs&&I.forEachAncestorDirectory(e,function(e){var t=I.combinePaths(e,"node_modules");a.directoryExists(t)&&S(r,t,u,!1,n,a,void 0,c)}),T(a,t,e,n,c);for(var b=0,x=function(t,e,r,n,a){var i=I.stringContains(t,I.directorySeparator),o=i?t.substr(0,t.lastIndexOf(I.directorySeparator)):void 0,s=I.map(n.getAmbientModules(),function(e){return I.stripQuotes(e.name)}),c=I.filter(s,function(e){return I.startsWith(e,t)});if(i){var u=I.ensureTrailingDirectorySeparator(o);c=I.map(c,function(e){return I.removePrefix(e,u)})}if(!r.moduleResolution||r.moduleResolution===I.ModuleResolutionKind.NodeJs)for(var _=0,l=function(a,e){var t=[];if(a.readFile&&a.fileExists)for(var r=0,n=E(e,a);r<n.length;r++){var i=n[r],o=g(i);if(!o)return;for(var s=I.combinePaths(I.getDirectoryPath(i),"node_modules"),c=[],u=0,_=N;u<_.length;u++){var l=_[u];y(o[l],c)}for(var d=0,p=c;d<p.length;d++){var f=p[d],m=I.combinePaths(s,f);t.push({moduleName:f,moduleDir:m})}}return t;function g(e){try{var t=(n=e,w(r=a,r.readFile,n));return t?JSON.parse(t):void 0}catch(e){return}var r,n}function y(e,t){if(e)for(var r in e)e.hasOwnProperty(r)&&!I.startsWith(r,"@types/")&&t.push(r)}}(a,e);_<l.length;_++){var d=l[_];if(i){if(I.startsWith(d.moduleName,o)){var p=P(a,d.moduleDir,I.supportedTypeScriptExtensions,void 0,["./*"]);if(p)for(var f=0,m=p;f<m.length;f++){var g=m[f];g=I.normalizePath(g);var y=I.removeFileExtension(I.getBaseFileName(g));c.push(y)}}}else c.push(d.moduleName)}return I.deduplicate(c,I.equateStringsCaseSensitive,I.compareStringsCaseSensitive)}(r,e,t,i,a);b<x.length;b++){var k=x[b];c.push(D(k,"external module name",n))}return c}(i,s,c,r,n,a)},e.getTripleSlashReferenceCompletion=function(e,t,r,n){var a=I.getTokenAtPosition(e,t,!1),i=I.getLeadingCommentRanges(e.text,a.pos),o=i&&I.find(i,function(e){return t>=e.pos&&t<=e.end});if(o){var s=e.text.slice(o.pos,t),c=m.exec(s);if(c){var u=c[1],_=c[2],l=c[3],d=I.getDirectoryPath(e.path);switch(_){case"path":var p=f(l,o.pos+u.length);return S(l,d,I.getSupportedExtensions(r),!0,p,n,e.path);case"types":return T(n,r,d,I.createTextSpan(o.pos+u.length,c[0].length-u.length));default:return}}}};var m=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,N=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function A(e,t){return w(e,e.getDirectories,t)||[]}function P(e,t,r,n,a){return w(e,e.readDirectory,t,r,n,a)||I.emptyArray}function F(e,t){try{return I.directoryProbablyExists(t,e)}catch(e){}}function w(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];try{return t&&t.apply(e,r)}catch(e){}}})((e=I.Completions||(I.Completions={})).PathCompletions||(e.PathCompletions={}))}(ts||(ts={})),function(ne){!function(f){var e,t,r,n,a,i,o,s;function l(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){return{name:e.name,kind:e.kind,kindModifiers:"",sortText:"0",replacementSpan:e.span}})}}function d(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function x(e,t,r,n,a,i,o,s,c,u,_){var l=C(e,a,o,i);if(l){var d,p,f,m,g,y=l.name,v=l.needsConvertPropertyAccess;if(_){if(o&&"this-type"===o.type)d=v?"this["+k(y)+"]":"this."+y;else if(v){d="["+k(y)+"]";var h=ne.findChildOfKind(c,23,r),b=ne.startsWith(y,c.name.text)?c.name.end:h.end;p=ne.createTextSpanFromBounds(h.getStart(r),b)}u&&(void 0===d&&(d=y),d="{"+d+"}","boolean"!=typeof u&&(p=ne.createTextSpanFromNode(u,r)))}if(void 0===d||_)return{name:y,kind:ne.SymbolDisplay.getSymbolKind(n,e,t),kindModifiers:ne.SymbolDisplay.getSymbolModifiers(e),sortText:"0",source:S(o),hasAction:D(!!o&&"export"===o.type),isRecommended:D((f=e,m=s,g=n,f===m||!!(1048576&f.flags)&&g.getExportSymbolOfSymbol(f)===m)),insertText:d,replacementSpan:p}}}function k(e){return JSON.stringify(e)}function D(e){return!!e||void 0}function S(e){return e&&"export"===e.type?ne.stripQuotes(e.moduleSymbol.name):void 0}function T(e,t,r,n,a,i,o,s,c,u,_,l,d){for(var p=ne.timestamp(),f=ne.createMap(),m=0,g=e;m<g.length;m++){var y=g[m],v=d?d[ne.getSymbolId(y)]:void 0,h=x(y,r,n,a,i,s,v,l,u,_,c);if(h){var b=h.name;f.has(b)||(v||void 0===y.parent&&!ne.some(y.declarations,function(e){return e.getSourceFile()===r.getSourceFile()})||f.set(b,!0),t.push(h))}}return o("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(ne.timestamp()-p)),f}function m(e,t,r){return void 0===r&&(r=ne.createMap()),e&&32768&e.flags&&(e=e.getConstraint()),e&&131072&e.flags?ne.flatMap(e.types,function(e){return m(e,t,r)}):e&&32&e.flags&&!(256&e.flags)&&ne.addToSeen(r,e.value)?[e]:ne.emptyArray}function ee(e,t,n,r,a,i,o){var s=i.name,c=i.source,u=y(e,t,r,a,o,{includeExternalModuleExports:!0,includeInsertTextCompletions:!0},n.target);if(!u)return{type:"none"};if(0!==u.kind)return{type:"request",request:u};var _=u.symbols,l=u.location,d=u.completionKind,p=u.symbolToOriginInfoMap,f=u.previousToken,m=u.isJsxInitializer;return ne.firstDefined(_,function(e){var t=p[ne.getSymbolId(e)],r=C(e,n.target,t,d);return r&&r.name===s&&S(t)===c?{type:"symbol",symbol:e,location:l,symbolToOriginInfoMap:p,previousToken:f,isJsxInitializer:m}:void 0})||{type:"none"}}function te(e,t,r){return t&&"export"===t.type&&t.isDefaultExport&&"default"===e.escapedName?ne.firstDefined(e.declarations,function(e){return ne.isExportAssignment(e)&&ne.isIdentifier(e.expression)?e.expression.text:void 0})||ne.codefix.moduleSymbolToValidIdentifier(t.moduleSymbol,r):e.name}function H(e,t,r,n){var a=function(e,t,r,n){var a=e.parent;switch(e.kind){case 71:return g(e,n);case 58:switch(a.kind){case 230:return n.getContextualType(a.initializer);case 198:return n.getTypeAtLocation(a.left);case 260:return n.getContextualTypeForJsxAttribute(a);default:return}case 94:return n.getContextualType(a);case 73:return c(ne.cast(a,ne.isCaseClause),n);case 17:return ne.isJsxExpression(a)&&253!==a.parent.kind?n.getContextualTypeForJsxAttribute(a.parent):void 0;default:var i=ne.SignatureHelp.getImmediatelyContainingArgumentInfo(e,t,r);return i?n.getContextualTypeForArgumentAtIndex(i.invocation,i.argumentIndex+(26===e.kind?1:0)):u(e.kind)&&ne.isBinaryExpression(a)&&u(a.operatorToken.kind)?n.getTypeAtLocation(a.left):n.getContextualType(e)}}(e,t,r,n),i=a&&a.symbol;return i&&(384&i.flags||32&i.flags&&!ne.isAbstractConstructorSymbol(i))?function e(t,r,n){var a=n.getAccessibleSymbolChain(t,r,67108863,!1);if(a)return ne.first(a);return t.parent&&(i=t.parent,i.declarations.some(function(e){return 272===e.kind})?t:e(t.parent,r,n));var i}(i,e,n):void 0}function g(e,t){var r=e.parent;switch(r.kind){case 186:return t.getContextualType(r);case 198:var n=r,a=n.left,i=n.operatorToken,o=n.right;return u(i.kind)?t.getTypeAtLocation(e===o?a:o):t.getContextualType(e);case 264:return r.expression===e?c(r,t):void 0;default:return t.getContextualType(e)}}function c(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function y(m,e,g,y,v,h,b){var t=ne.timestamp(),r=ne.getTokenAtPosition(g,y,!1);e("getCompletionData: Get current token: "+(ne.timestamp()-t)),t=ne.timestamp();var n=ne.isInComment(g,y,r);e("getCompletionData: Is inside comment: "+(ne.timestamp()-t));var x=!1,k=!1;if(n){if(ne.hasDocComment(g,y)){if(64===g.text.charCodeAt(y-1))return{kind:1};var a=ne.getLineStartPositionForPosition(y,g);if(!g.text.substring(a,y).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var i=function(e,t){var r=function(e){if(!ne.isToken(e))return e;switch(e.kind){case 104:case 110:case 76:return e.parent.parent;default:return e.parent}}(e).jsDoc;if(!r)return;for(var n=0,a=r;n<a.length;n++){var i=a[n],o=i.pos,s=i.end,c=i.tags;if(!(!c||t<o||s<t))for(var u=c.length-1;0<=u;u--){var _=c[u];if(t>=_.pos)return _}}}(r,y);if(i){if(i.tagName.pos<=y&&y<=i.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 287:case 292:case 288:case 289:case 291:return!0}}(i)&&i.typeExpression&&274===i.typeExpression.kind&&((r=ne.getTokenAtPosition(g,y,!0))&&(ne.isDeclarationName(r)||292===r.parent.kind&&r.parent.name===r)||(x=W(i.typeExpression))),ne.isJSDocParameterTag(i)&&(ne.nodeIsMissing(i.name)||i.name.pos<=y&&y<=i.name.end))return{kind:3,tag:i}}if(!x)return void e("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}t=ne.timestamp();var D=ne.findPrecedingToken(y,g,void 0,x);e("getCompletionData: Get previous token 1: "+(ne.timestamp()-t));var S=D;if(S&&y<=S.end&&ne.isWord(S.kind)){var o=ne.timestamp();S=ne.findPrecedingToken(S.getFullStart(),g,void 0,x),e("getCompletionData: Get previous token 2: "+(ne.timestamp()-o))}var s,c,u,_,l=r,d=!1,p=!1,f=!1,C=!1,T=ne.getTouchingPropertyName(g,y,x);if(S){if(c=S,u=ne.timestamp(),_=function(e){if(9===e.kind||12===e.kind||ne.isTemplateLiteralKind(e.kind)){var t=e.getStart(),r=e.getEnd();if(t<y&&y<r)return!0;if(y===r)return!!e.isUnterminated||12===e.kind}return!1}(c)||function(e){var t=e.parent.kind;switch(e.kind){case 26:return 230===t||231===t||212===t||236===t||V(t)||234===t||179===t||235===t||ne.isClassLike(e.parent)&&e.parent.typeParameters&&e.parent.typeParameters.end>=e.pos;case 23:return 179===t;case 56:return 180===t;case 21:return 179===t;case 19:return 267===t||V(t);case 17:return 236===t||234===t||165===t;case 25:return 150===t&&e.parent&&e.parent.parent&&(234===e.parent.parent.kind||165===e.parent.parent.kind);case 27:return 233===t||203===t||234===t||235===t||ne.isFunctionLikeKind(t);case 115:return 151===t&&!ne.isClassLike(e.parent.parent);case 24:return 148===t||e.parent&&e.parent.parent&&179===e.parent.parent.kind;case 114:case 112:case 113:return 148===t&&!ne.isConstructorDeclaration(e.parent.parent);case 118:return 246===t||250===t||244===t;case 125:case 136:if(U(e))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(X(e.getText())&&U(e))return!1;if(q(e)&&(!ne.isIdentifier(e)||(r=e.getText(),Q(ne.stringToToken(r)))||W(e)))return!1;var r;switch(e.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return ne.isDeclarationName(e)&&!ne.isJsxAttribute(e.parent)&&!(ne.isClassLike(e.parent)&&(e!==D||y>D.end))}(c)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(c)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(255===e.parent.kind)return!0;if(256===e.parent.kind||254===e.parent.kind)return e.parent.parent&&253===e.parent.parent.kind}return!1}(c),e("getCompletionsAtPosition: isCompletionListBlocker: "+(ne.timestamp()-u)),_)return void e("Returning an empty list because completion was requested in an invalid position.");var E=S.parent;if(23===S.kind)switch(d=!0,E.kind){case 183:l=(s=E).expression;break;case 145:l=E.left;break;default:return}else if(1===g.languageVariant){if(E&&183===E.kind&&(E=(S=E).parent),r.parent===T)switch(r.kind){case 29:253!==r.parent.kind&&255!==r.parent.kind||(T=r);break;case 41:254===r.parent.kind&&(T=r)}switch(E.kind){case 256:41===S.kind&&(f=!0,T=S);break;case 198:if(!(32768&E.left.flags))break;case 254:case 253:case 255:27===S.kind&&(p=!0,T=S);break;case 260:switch(D.kind){case 58:C=!0;break;case 71:D!==E.name&&(C=D)}}}}var N=ne.timestamp(),A=5,P=!1,F=0,w=[],I=[];if(d)!function(){A=2;var e=x||ne.isPartOfTypeNode(l.parent),t=ne.isInRightSideOfInternalImportEqualsDeclaration(l)||!e&&ne.isPossiblyTypeArgumentPosition(S,g);if(ne.isEntityName(l)){var r=m.getSymbolAtLocation(l);if(r&&1920&(r=ne.skipAlias(r,m)).flags){for(var n=ne.Debug.assertEachDefined(m.getExportsOfModule(r),"getExportsOfModule() should all be defined"),a=function(e){return m.isValidPropertyAccess(l.parent,e.name)},i=function(e){return j(e)},o=t?function(e){return i(e)||a(e)}:e?i:a,s=0,c=n;s<c.length;s++){var u=c[s];o(u)&&w.push(u)}return!e&&r.declarations.some(function(e){return 272!==e.kind&&237!==e.kind&&236!==e.kind})&&B(m.getTypeOfSymbolAtLocation(r,l))}}e||B(m.getTypeAtLocation(l))}();else if(p){var O=ne.Debug.assertEachDefined(m.getJsxIntrinsicTagNamesAt(T),"getJsxIntrinsicTagNames() should all be defined");w=z()?O.concat(w.filter(function(e){return!!(69313471&e.flags)})):O,A=3}else if(f){var M=S.parent.parent.openingElement.tagName,L=m.getSymbolAtLocation(M);L&&(w=[L]),A=3}else if(!z())return;e("getCompletionData: Semantic work: "+(ne.timestamp()-N));var R=D&&H(D,y,g,m);return{kind:0,symbols:w,completionKind:A,isInSnippetScope:k,propertyAccessToConvert:s,isNewIdentifierLocation:P,location:T,keywordFilters:F,symbolToOriginInfoMap:I,recommendedCompletion:R,previousToken:D,isJsxInitializer:C};function B(e){if(ne.isSourceFileJavaScript(g))w.push.apply(w,Y(e,m,!0));else for(var t=0,r=e.getApparentProperties();t<r.length;t++){var n=r[t];m.isValidPropertyAccessForCompletions(l.parent,e,n)&&w.push(n)}}function z(){var e,t,r,n;if(e=function(e){if(e)switch(e.kind){case 17:case 26:var t=e.parent;if(ne.isObjectLiteralExpression(t)||ne.isObjectBindingPattern(t))return t}return}(S))return function(e){var t,r;if(A=0,182===e.kind){P=!0;var n=m.getContextualType(e);if(!n)return!1;t=Y(n,m,!1),r=e.properties}else{ne.Debug.assert(178===e.kind),P=!1;var a=ne.getRootDeclaration(e.parent);if(!ne.isVariableLike(a))return ne.Debug.fail("Root declaration is not variable-like.");var i=ne.hasInitializer(a)||ne.hasType(a)||220===a.parent.parent.kind;if(i||148!==a.kind||(ne.isExpression(a.parent)?i=!!m.getContextualType(a.parent):153!==a.parent.kind&&156!==a.parent.kind||(i=ne.isExpression(a.parent.parent)&&!!m.getContextualType(a.parent.parent))),i){var n=m.getTypeAtLocation(e);if(!n)return!1;t=m.getPropertiesOfType(n).filter(function(e){return!(24&ne.getDeclarationModifierFlagsFromSymbol(e))}),r=e.elements}}t&&0<t.length&&(w=function(e,t){if(0===t.length)return e;for(var r=ne.createUnderscoreEscapedMap(),n=0,a=t;n<a.length;n++){var i=a[n];if((268===i.kind||269===i.kind||180===i.kind||153===i.kind||155===i.kind||156===i.kind)&&!W(i)){var o=void 0;if(180===i.kind&&i.propertyName)71===i.propertyName.kind&&(o=i.propertyName.escapedText);else{var s=ne.getNameOfDeclaration(i);o=ne.isPropertyNameLiteral(s)?ne.getEscapedTextOfIdentifierOrLiteral(s):void 0}r.set(o,!0)}}return e.filter(function(e){return!r.get(e.escapedName)})}(t,ne.Debug.assertDefined(r)));return!0}(e);if(t=function(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 245:case 249:return e.parent}}return}(S))return function(e){var t=245===e.kind?242:248,r=ne.getAncestor(e,t).moduleSpecifier;if(!r)return!1;A=3,P=!1;var n=m.getSymbolAtLocation(r);if(!n)return w=ne.emptyArray,!0;var a=m.getExportsAndPropertiesOfModule(n);return w=function(e,t){for(var r=ne.createUnderscoreEscapedMap(),n=0,a=t;n<a.length;n++){var i=a[n];if(!W(i)){var o=i.propertyName||i.name;r.set(o.escapedText,!0)}}return e.filter(function(e){return"default"!==e.escapedName&&!r.get(e.escapedName)})}(a,e.elements),!0}(t);if(function(e){if(e)switch(e.kind){case 19:case 26:return ne.isConstructorDeclaration(e.parent)&&e.parent;default:if(q(e))return e.parent.parent}return}(S))return A=5,F=2,P=!0;if(r=function(e){if(e)switch(e.kind){case 17:case 26:if(ne.isClassLike(e.parent))return e.parent;break;case 25:case 18:if(ne.isClassLike(T))return T;if(U(T)&&T.parent.name===T)return T.parent.parent;break;default:if(U(e)&&(G(e.kind)||X(e.getText())))return e.parent.parent}if(T&&293===T.kind&&ne.isClassLike(T.parent))return T.parent;return}(S))return function(e){A=3,P=!0,F=1;var t=ne.getClassExtendsHeritageClauseElement(e),r=ne.getClassImplementsHeritageClauseElements(e);if(t||r){var n=S.parent,a=ne.isClassElement(n)&&ne.getModifierFlags(n);if(71===S.kind&&!W(S))switch(S.getText()){case"private":a|=8;break;case"static":a|=32}if(!(8&a)){var i=void 0;t&&(i=m.getTypeAtLocation(t),32&a&&(i=m.getTypeOfSymbolAtLocation(i.symbol,e)));var o=32&a?ne.emptyArray:ne.flatMap(r||ne.emptyArray,function(e){return m.getPropertiesOfType(m.getTypeAtLocation(e))});w=function(e,t,r,n){for(var s=ne.createUnderscoreEscapedMap(),a=0,i=r;a<i.length;a++){var o=i[a];if((151===o.kind||153===o.kind||155===o.kind||156===o.kind)&&(!W(o)&&!ne.hasModifier(o,8))){var c=ne.hasModifier(o,32),u=!!(32&n);if(!(c&&!u||!c&&u)){var _=ne.getPropertyNameForPropertyNameNode(o.name);_&&s.set(_,!0)}}}var l=[];return d(e,8),d(t,24),l;function d(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];i=a,o=t,s.get(i.escapedName)||!i.getDeclarations()||ne.getDeclarationModifierFlagsFromSymbol(i)&o||l.push(a)}var i,o}}(i?m.getPropertiesOfType(i):ne.emptyArray,o,e.members,a)}}}(r),!0;if(n=function(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 183:case 261:case 260:case 262:if(t&&(254===t.kind||255===t.kind))return t;if(260===t.kind)return t.parent.parent;break;case 9:if(t&&(260===t.kind||262===t.kind))return t.parent.parent;break;case 18:if(t&&263===t.kind&&t.parent&&260===t.parent.kind)return t.parent.parent.parent;if(t&&262===t.kind)return t.parent.parent}}return}(S)){var a=void 0;if((254===n.kind||255===n.kind)&&(a=m.getAllAttributesTypeFromJsxOpeningLikeElement(n)))return w=function(e,t){for(var r=ne.createUnderscoreEscapedMap(),n=0,a=t;n<a.length;n++){var i=a[n];W(i)||260===i.kind&&r.set(i.name.escapedText,!0)}return e.filter(function(e){return!r.get(e.escapedName)})}(m.getPropertiesOfType(a),n.attributes.properties),A=3,P=!1,!0}(function(e){if(e){var t,r=ne.findAncestor(e.parent,function(e){return ne.isClassLike(e)?"quit":!(!ne.isFunctionLikeDeclaration(e)||t!==e.body)||void(t=e)});return r&&r}})(S)&&(F=3),A=1,P=function(e){if(e){var t=e.parent.kind;switch(e.kind){case 26:return 185===t||154===t||186===t||181===t||198===t||162===t;case 19:return 185===t||154===t||186===t||189===t||172===t;case 21:return 181===t||159===t||146===t;case 129:case 130:return!0;case 23:return 237===t;case 17:return 233===t;case 58:return 230===t||198===t;case 14:return 200===t;case 15:return 209===t;case 114:case 112:case 113:return 151===t}switch(e.getText()){case"public":case"protected":case"private":return!0}}return!1}(S),D!==S&&ne.Debug.assert(!!D,"Expected 'contextToken' to be defined when different from 'previousToken'.");var i=D!==S?D.getStart():y,o=function(e,t,r){var n=e;for(;n&&!ne.positionBelongsToNode(n,t,r);)n=n.parent;return n}(S,i,g)||g;k=function(e){switch(e.kind){case 272:case 200:case 263:case 211:return!0;default:return ne.isStatement(e)}}(o);var s,c,u,_;if(w=ne.Debug.assertEachDefined(m.getSymbolsInScope(o,70107135),"getSymbolsInScope() should all be defined"),h.includeInsertTextCompletions&&272!==o.kind){var l=m.tryGetThisTypeAt(o);if(l)for(var d=0,p=Y(l,m,!0);d<p.length;d++){var f=p[d];I[ne.getSymbolId(f)]={type:"this-type"},w.push(f)}}return h.includeExternalModuleExports&&(s=w,c=D&&ne.isIdentifier(D)?D.text:"",u=b,_=c.toLowerCase(),ne.codefix.forEachExternalModuleToImportFrom(m,g,v,function(e){for(var t=0,r=m.getExportsOfModule(e);t<r.length;t++){var n=r[t];if(m.getMergedSymbol(n.parent)===m.resolveExternalModuleSymbol(e)&&!ne.some(n.declarations,function(e){return ne.isExportSpecifier(e)&&!!e.parent.parent.moduleSpecifier})){var a="default"===n.name;a&&(n=ne.getLocalSymbolForExportDefault(n)||n);var i={type:"export",moduleSymbol:e,isDefaultExport:a};K(te(n,i,u).toLowerCase(),_)&&(s.push(n),I[ne.getSymbolId(n)]=i)}}})),function(e){var r=x||!J(S)&&(ne.isPartOfTypeNode(T)||function(e){if(e){var t=e.parent.kind;switch(e.kind){case 56:return 151===t||150===t||148===t||230===t||ne.isFunctionLikeKind(t);case 58:return 235===t;case 118:return 206===t}}return!1}(S)),n=r||!J(S)&&ne.isPossiblyTypeArgumentPosition(S,g);r&&(F=4);ne.filterMutate(e,function(e){if(!ne.isSourceFile(T)){if(ne.isExportAssignment(T.parent))return!0;if(e=ne.skipAlias(e,m),ne.isInRightSideOfInternalImportEqualsDeclaration(T))return!!(1920&e.flags);if(n){var t=j(e);if(t||r)return t}}return!!(67216319&ne.getCombinedLocalAndExportSymbolFlags(e))})}(w),!0}function J(e){return e&&103===e.kind&&(164===e.parent.kind||ne.isTypeOfExpression(e.parent))}function j(e){if(e=e.exportSymbol||e,67901928&(e=ne.skipAlias(e,m)).flags)return!0;if(1536&e.flags){var t=m.getExportsOfModule(e);return ne.forEach(t,j)}}function K(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}function U(e){return ne.isClassElement(e.parent)&&ne.isClassLike(e.parent.parent)}function q(e){return e.parent&&(t=e.parent,ne.isParameter(t)&&ne.isConstructorDeclaration(t.parent))&&(Q(e.kind)||ne.isDeclarationName(e));var t}function V(e){return ne.isFunctionLikeKind(e)&&154!==e}function W(e){return e.getStart()<=y&&y<=e.getEnd()}}function C(e,t,r,n){var a=te(e,r,t);if(!(void 0===a||1536&e.flags&&ne.startsWithQuote(a)||ne.isKnownSymbol(e))){var i={name:a,needsConvertPropertyAccess:!1};if(ne.isIdentifierText(a,t))return i;switch(n){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return i;default:ne.Debug.assertNever(n)}}}(t=e||(e={}))[t.None=0]="None",t[t.ClassElementKeywords=1]="ClassElementKeywords",t[t.ConstructorParameterKeywords=2]="ConstructorParameterKeywords",t[t.FunctionLikeBodyKeywords=3]="FunctionLikeBodyKeywords",t[t.TypeKeywords=4]="TypeKeywords",f.getCompletionsAtPosition=function(e,t,r,n,a,i,o,s){if(ne.isInReferenceComment(a,i)){var c=f.PathCompletions.getTripleSlashReferenceCompletion(a,i,n,e);return c&&l(c)}var u=ne.findPrecedingToken(i,a);if(ne.isInString(a,i,u))return u&&ne.isStringLiteralLike(u)?function(e,t,r,n){if(void 0!==e)switch(e.kind){case 0:return l(e.paths);case 1:var a=[];return T(e.symbols,a,t,t,r,6,n,4),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!0,entries:a};case 2:var a=e.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"var",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:a};default:return ne.Debug.assertNever(e)}}(function(e,t,r,n,a,i){switch(t.parent.kind){case 177:switch(t.parent.parent.kind){case 161:return{kind:2,types:m(n.getTypeArgumentConstraint(t.parent),n)};case 175:return{kind:1,symbols:n.getTypeFromTypeNode(t.parent.parent.objectType).getApparentProperties()};default:return}case 268:if(ne.isObjectLiteralExpression(t.parent.parent)&&t.parent.name===t){var o=n.getContextualType(t.parent.parent);return{kind:1,symbols:o&&o.getApparentProperties()}}return p();case 184:var s=t.parent,c=s.expression,u=s.argumentExpression;return t===u?{kind:1,symbols:n.getTypeAtLocation(c).getApparentProperties()}:void 0;case 185:case 186:if(!ne.isRequireCall(t.parent,!1)&&!ne.isImportCall(t.parent)){var _=ne.SignatureHelp.getImmediatelyContainingArgumentInfo(t,r,e);if(_){var l=[];n.getResolvedSignature(_.invocation,l,_.argumentCount);var d=ne.createMap();return{kind:2,types:ne.flatMap(l,function(e){return m(n.getParameterType(e,_.argumentIndex),n,d)})}}return p()}case 242:case 248:case 252:return{kind:0,paths:f.PathCompletions.getStringLiteralCompletionsFromModuleNames(e,t,a,i,n)};default:return p()}function p(){return{kind:2,types:m(g(t,n),n)}}}(a,u,i,t,n,e),a,t,r):void 0;if(u&&ne.isBreakOrContinueStatement(u.parent)&&(72===u.kind||77===u.kind||71===u.kind))return function(e){var t=function(e){for(var t=[],r=ne.createMap(),n=e;n&&!ne.isFunctionLike(n);){if(ne.isLabeledStatement(n)){var a=n.label.text;r.has(a)||(r.set(a,!0),t.push({name:a,kindModifiers:"",kind:"label",sortText:"0"}))}n=n.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(u.parent);var _=y(t,r,a,i,o,s,n.target);if(_)switch(_.kind){case 0:return function(e,t,r,n,a,i){var o=a.symbols,s=a.completionKind,c=a.isInSnippetScope,u=a.isNewIdentifierLocation,_=a.location,l=a.propertyAccessToConvert,d=a.keywordFilters,p=a.symbolToOriginInfoMap,f=a.recommendedCompletion,m=a.isJsxInitializer;if(1===e.languageVariant&&_&&_.parent&&ne.isJsxClosingElement(_.parent)){var g=_.parent.parent.openingElement.tagName;return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[{name:g.getFullText(),kind:"class",kindModifiers:void 0,sortText:"0"}]}}var y,v,h,b,x,k=[];if(ne.isSourceFileJavaScript(e)){var D=T(o,k,_,e,t,r.target,n,s,i,l,m,f,p);y=e,v=_.pos,h=D,b=r.target,x=k,ne.getNameTable(y).forEach(function(e,t){if(e!==v){var r=ne.unescapeLeadingUnderscores(t);ne.addToSeen(h,r)&&ne.isIdentifierText(r,b)&&!ne.isStringANonContextualKeyword(r)&&x.push({name:r,kind:"warning",kindModifiers:"",sortText:"1"})}})}else{if((!o||0===o.length)&&0===d)return;T(o,k,_,e,t,r.target,n,s,i,l,m,f,p)}var S,C=function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(s);return 0===d&&C||ne.addRange(k,E[S=d]||(E[S]=re().filter(function(e){var t=ne.stringToToken(e.name);switch(S){case 0:return 140!==t;case 1:return G(t);case 2:return Q(t);case 3:return function(e){switch(e){case 114:case 112:case 113:case 132:case 123:case 115:case 117:case 125:case 136:case 140:return!1}return!0}(t);case 4:return ne.isTypeKeyword(t);default:return ne.Debug.assertNever(S)}}))),{isGlobalCompletion:c,isMemberCompletion:C,isNewIdentifierLocation:u,entries:k}}(a,t,n,r,_,s.includeInsertTextCompletions);case 1:return d(ne.JsDoc.getJSDocTagNameCompletions());case 2:return d(ne.JsDoc.getJSDocTagCompletions());case 3:return d(ne.JsDoc.getJSDocParameterNameCompletions(_.tag));default:return ne.Debug.assertNever(_)}},(n=r||(r={}))[n.Paths=0]="Paths",n[n.Properties=1]="Properties",n[n.Types=2]="Types",f.getCompletionEntryDetails=function(e,t,r,n,a,i,o,s,c,u){var _,l,d,p,f,m,g,y,v,h,b,x,k,D,S,C,T,E,N,A,P,F,w,I,O,M,L,R=e.getTypeChecker(),B=i.name,z=ee(R,t,r,n,a,i,o);switch(z.type){case"request":var J=z.request;switch(J.kind){case 1:return ne.JsDoc.getJSDocTagNameCompletionDetails(B);case 2:return ne.JsDoc.getJSDocTagCompletionDetails(B);case 3:return ne.JsDoc.getJSDocParameterNameCompletionDetails(B);default:return ne.Debug.assertNever(J)}case"symbol":var j=z.symbol,K=z.location,U=z.symbolToOriginInfoMap,q=z.previousToken,V=(_=j,l=e,d=R,p=s,f=r,m=n,g=q,y=c,v=u,h=o,(b=U[ne.getSymbolId(_)])&&"export"===b.type?(k=_,D=l,S=d,C=p,T=f,E=m,N=g,A=y,P=v,F=h,w=(x=b).moduleSymbol,I=ne.skipAlias(k.exportSymbol||k,S),O=ne.codefix.getImportCompletionAction(I,w,E,te(k,x,T.target),C,D,S,T,F,A,P,N),M=O.moduleSpecifier,L=O.codeAction,{sourceDisplay:[ne.textPart(M)],codeActions:[L]}):{codeActions:void 0,sourceDisplay:void 0}),W=V.codeActions,H=V.sourceDisplay,G=ne.SymbolDisplay.getSymbolModifiers(j),X=ne.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(R,j,n,K,K,7),Q=X.displayParts,Y=X.documentation,Z=X.symbolKind,$=X.tags;return{name:B,kindModifiers:G,kind:Z,displayParts:Q,documentation:Y,tags:$,codeActions:W,source:H};case"none":return re().some(function(e){return e.name===B})?{name:B,kind:"keyword",kindModifiers:"",displayParts:[ne.displayPart(B,ne.SymbolDisplayPartKind.keyword)],documentation:void 0,tags:void 0,codeActions:void 0,source:void 0}:void 0}},f.getCompletionEntrySymbol=function(e,t,r,n,a,i,o){var s=ee(e,t,r,n,a,i,o);return"symbol"===s.type?s.symbol:void 0},(i=a||(a={}))[i.Data=0]="Data",i[i.JsDocTagName=1]="JsDocTagName",i[i.JsDocTag=2]="JsDocTag",i[i.JsDocParameterName=3]="JsDocParameterName",(s=o||(o={}))[s.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",s[s.Global=1]="Global",s[s.PropertyAccess=2]="PropertyAccess",s[s.MemberLike=3]="MemberLike",s[s.String=4]="String",s[s.None=5]="None";var E=[],re=ne.memoize(function(){for(var e=[],t=72;t<=144;t++)e.push({name:ne.tokenToString(t),kind:"keyword",kindModifiers:"",sortText:"0"});return e});function G(e){switch(e){case 114:case 113:case 112:case 117:case 115:case 123:case 132:case 125:case 136:case 120:return!0}}function X(e){return G(ne.stringToToken(e))}function Q(e){switch(e){case 114:case 112:case 113:case 132:return!0}}function u(e){switch(e){case 34:case 32:case 35:case 33:return!0;default:return!1}}function Y(e,t,r){if(!(131072&e.flags))return ne.Debug.assertEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined");var n=e.types,a=r?n:n.filter(function(e){return!(16382&e.flags||t.isArrayLikeType(e)||ne.typeHasCallOrConstructSignatures(e,t))});return ne.Debug.assertEachDefined(t.getAllPossiblePropertiesOfTypes(a),"getAllPossiblePropertiesOfTypes() should all be defined")}}(ne.Completions||(ne.Completions={}))}(ts||(ts={})),function(v){!function(e){function _(e,t){return{fileName:t.fileName,textSpan:v.createTextSpanFromNode(e,t),kind:"none"}}function a(e){return v.isThrowStatement(e)?[e]:v.isTryStatement(e)?v.concatenate(e.catchClause?a(e.catchClause):e.tryBlock&&a(e.tryBlock),a(e.finallyBlock)):v.isFunctionLike(e)?void 0:t(e,a)}function i(e){return v.isBreakOrContinueStatement(e)?[e]:v.isFunctionLike(e)?void 0:t(e,i)}function t(e,r){var n=[];return e.forEachChild(function(e){var t=r(e);void 0!==t&&n.push.apply(n,v.toArray(t))}),n}function o(e,t){var r=n(t);return r&&r===e}function n(n){return v.findAncestor(n,function(e){switch(e.kind){case 225:if(221===n.kind)return!1;case 218:case 219:case 220:case 217:case 216:return!n.label||(t=e,r=n.label.escapedText,!!v.findAncestor(t.parent,function(e){return v.isLabeledStatement(e)?e.label.escapedText===r:"quit"}));default:return v.isFunctionLike(e)&&"quit"}var t,r})}function l(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!(!t||!v.contains(r,t.kind))&&(e.push(t),!0)}function d(t){var r=[];if(l(r,t.getFirstToken(),88,106,81)&&216===t.kind)for(var e=t.getChildren(),n=e.length-1;0<=n&&!l(r,e[n],106);n--);return v.forEach(i(t.statement),function(e){o(t,e)&&l(r,e.getFirstToken(),72,77)}),r}function p(e){var t=n(e);if(t)switch(t.kind){case 218:case 219:case 220:case 216:case 217:return d(t);case 225:return f(t)}}function f(t){var r=[];return l(r,t.getFirstToken(),98),v.forEach(t.caseBlock.clauses,function(e){l(r,e.getFirstToken(),73,79),v.forEach(i(e),function(e){o(t,e)&&l(r,e.getFirstToken(),72)})}),r}function m(e,t){var r=[];(l(r,e.getFirstToken(),102),e.catchClause&&l(r,e.catchClause.getFirstToken(),74),e.finallyBlock)&&l(r,v.findChildOfKind(e,87,t),87);return r}function g(e,t){var r=function(e){for(var t=e;t.parent;){var r=t.parent;if(v.isFunctionBlock(r)||272===r.kind)return r;if(v.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(e);if(r){var n=[];return v.forEach(a(r),function(e){n.push(v.findChildOfKind(e,100,t))}),v.isFunctionBlock(r)&&v.forEachReturnStatement(r,function(e){n.push(v.findChildOfKind(e,96,t))}),n}}function y(e,t){var r=v.getContainingFunction(e);if(r){var n=[];return v.forEachReturnStatement(v.cast(r.body,v.isBlock),function(e){n.push(v.findChildOfKind(e,96,t))}),v.forEach(a(r.body),function(e){n.push(v.findChildOfKind(e,100,t))}),n}}(v.DocumentHighlights||(v.DocumentHighlights={})).getDocumentHighlights=function(e,t,r,n,a){var i,o,s=v.getTouchingWord(r,n,!0);if(s.parent&&(v.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||v.isJsxClosingElement(s.parent))){var c=s.parent.parent,u=[c.openingElement,c.closingElement].map(function(e){return _(e.tagName,r)});return[{fileName:r.fileName,highlightSpans:u}]}return function(e,t,r,n,a){var i=v.FindAllReferences.getReferenceEntriesForNode(e,t,r,a,n);if(i){var o=v.arrayToMultiMap(i.map(v.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return v.arrayFrom(o.entries(),function(e){var t=e[0],r=e[1];return{fileName:t,highlightSpans:r}})}}(n,s,e,t,a)||(o=function(e,n){switch(e.kind){case 90:case 82:return v.isIfStatement(e.parent)?function(e,t){for(var r=function(e,t){for(var r=[];v.isIfStatement(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var n=e.getChildren(t);l(r,n[0],90);for(var a=n.length-1;0<=a&&!l(r,n[a],82);a--);if(!e.elseStatement||!v.isIfStatement(e.elseStatement))break;e=e.elseStatement}return r}(e,t),n=[],a=0;a<r.length;a++){if(82===r[a].kind&&a<r.length-1){for(var i=r[a],o=r[a+1],s=!0,c=o.getStart(t)-1;c>=i.end;c--)if(!v.isWhiteSpaceSingleLine(t.text.charCodeAt(c))){s=!1;break}if(s){n.push({fileName:t.fileName,textSpan:v.createTextSpanFromBounds(i.getStart(),o.end),kind:"reference"}),a++;continue}}n.push(_(r[a],t))}return n}(e.parent,n):void 0;case 96:return s(e.parent,v.isReturnStatement,y);case 100:return s(e.parent,v.isThrowStatement,g);case 102:case 74:case 87:var t=74===e.kind?e.parent.parent:e.parent;return s(t,v.isTryStatement,m);case 98:return s(e.parent,v.isSwitchStatement,f);case 73:case 79:return s(e.parent.parent.parent,v.isSwitchStatement,f);case 72:case 77:return s(e.parent,v.isBreakOrContinueStatement,p);case 88:case 106:case 81:return s(e.parent,function(e){return v.isIterationStatement(e,!0)},d);case 123:return o(v.isConstructorDeclaration,[123]);case 125:case 136:return o(v.isAccessor,[125,136]);default:return v.isModifierKind(e.kind)&&(v.isDeclaration(e.parent)||v.isVariableStatement(e.parent))?c((r=e.kind,a=e.parent,i=v.modifierToFlag(r),v.mapDefined(function(e,t){var r=e.parent;switch(r.kind){case 238:case 272:case 211:case 264:case 265:return 128&t&&v.isClassDeclaration(e)?e.members.concat([e]):r.statements;case 154:case 153:case 232:return r.parameters.concat(v.isClassLike(r.parent)?r.parent.members:[]);case 233:case 203:var n=r.members;if(28&t){var a=v.find(r.members,v.isConstructorDeclaration);if(a)return n.concat(a.parameters)}else if(128&t)return n.concat([r]);return n;default:v.Debug.assertNever(r,"Invalid container kind.")}}(a,i),function(e){if(v.getModifierFlags(e)&i){var t=v.find(e.modifiers,function(e){return e.kind===r});return v.Debug.assert(!!t),t}}))):void 0}var r,a,i;function o(t,r){return s(e.parent,t,function(e){return v.mapDefined(e.symbol.declarations,function(e){return t(e)?v.find(e.getChildren(n),function(e){return v.contains(r,e.kind)}):void 0})})}function s(e,t,r){return t(e)?c(r(e,n)):void 0}function c(e){return e&&e.map(function(e){return _(e,n)})}}(s,i=r))&&[{fileName:i.fileName,highlightSpans:o}]}}()}(ts||(ts={})),function(d){d.createDocumentRegistry=function(e,i){void 0===i&&(i="");var n=d.createMap(),o=d.createGetCanonicalFileName(!!e);function s(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function _(e,t){var r=n.get(e);return!r&&t&&n.set(e,r=d.createMap()),r}function c(e,t,r,n,a,i,o){return l(e,t,r,n,a,i,!0,o)}function u(e,t,r,n,a,i,o){return l(e,t,r,n,a,i,!1,o)}function l(e,t,r,n,a,i,o,s){var c=_(n,!0),u=c.get(t);return u?(u.sourceFile.version!==i&&(u.sourceFile=d.updateLanguageServiceSourceFile(u.sourceFile,a,i,a.getChangeRange(u.sourceFile.scriptSnapshot))),o&&u.languageServiceRefCount++):(u={sourceFile:d.createLanguageServiceSourceFile(e,a,r.target,i,!1,s),languageServiceRefCount:1,owners:[]},c.set(t,u)),u.sourceFile}function r(e,t){var r=_(t,!1);d.Debug.assert(void 0!==r);var n=r.get(e);n.languageServiceRefCount--,d.Debug.assert(0<=n.languageServiceRefCount),0===n.languageServiceRefCount&&r.delete(e)}return{acquireDocument:function(e,t,r,n,a){return c(e,d.toPath(e,i,o),t,s(t),r,n,a)},acquireDocumentWithKey:c,updateDocument:function(e,t,r,n,a){return u(e,d.toPath(e,i,o),t,s(t),r,n,a)},updateDocumentWithKey:u,releaseDocument:function(e,t){return r(d.toPath(e,i,o),s(t))},releaseDocumentWithKey:r,reportStats:function(){var e=d.arrayFrom(n.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=n.get(e),r=[];return t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount,references:e.owners.slice(0)})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:s}}}(ts||(ts={})),function(x){!function(e){var t,r;function _(e,t){return x.forEach(272===e.kind?e.statements:e.body.statements,function(e){return t(e)||a(e)&&x.forEach(e.body&&e.body.statements,t)})}function m(e,n){if(e.externalModuleIndicator||void 0!==e.imports)for(var t=0,r=e.imports;t<r.length;t++){var a=r[t];n(i(a),a)}else _(e,function(e){switch(e.kind){case 248:case 242:(t=e).moduleSpecifier&&9===t.moduleSpecifier.kind&&n(t,t.moduleSpecifier);break;case 241:var t,r=(t=e).moduleReference;252===r.kind&&9===r.expression.kind&&n(t,r.expression)}})}function i(e){var t=e.parent;switch(t.kind){case 185:case 242:case 248:return t;case 252:return t.parent;default:x.Debug.fail("Unexpected module specifier parent: "+t.kind)}}function n(e,t,r){var n=e.parent;if(n){var a=r.getMergedSymbol(n);return x.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:t}:void 0}}function g(e){return"default"!==e.escapedName?e.escapedName:x.forEach(e.declarations,function(e){var t=x.getNameOfDeclaration(e);return t&&71===t.kind&&t.escapedText})}function b(e){if(185===e.kind)return e.getSourceFile();var t=e.parent;return 272===t.kind?t:(x.Debug.assert(238===t.kind),x.cast(t.parent,a))}function a(e){return 237===e.kind&&9===e.name.kind}function y(e){var t=e.moduleReference;return 252===t.kind&&9===t.expression.kind}e.createImportTracker=function(o,s,c){var u=function(e,i,t){for(var o=x.createMap(),r=0,n=e;r<n.length;r++){var a=n[r];t.throwIfCancellationRequested(),m(a,function(e,t){var r=i.getSymbolAtLocation(t);if(r){var n=x.getSymbolId(r).toString(),a=o.get(n);a||o.set(n,a=[]),a.push(e)}})}return o}(o,s,c);return function(e,t,r){var n=function(n,t,e,l,d){var a=e.exportingModuleSymbol,p=e.exportKind,f=x.nodeSeenTracker(),r=x.nodeSeenTracker(),m=[],g=!!a.globalExports,i=g?void 0:[];return function e(t){var r,n=h(t);if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];if(f(o))switch(d.throwIfCancellationRequested(),o.kind){case 185:if(!g){var s=o.parent;if(2===p&&230===s.kind){var c=s.name;if(71===c.kind){m.push(c);break}}v(o.getSourceFile())}break;case 241:y(o,o.name,x.hasModifier(o,1));break;case 242:var u=o.importClause&&o.importClause.namedBindings;if(u&&244===u.kind)y(o,u.name);else if(x.isDefaultImport(o)){var _=b(o);g||v(_),m.push(o)}else m.push(o);break;case 248:o.exportClause?m.push(o):e((r=o,l.getMergedSymbol(b(r).symbol)))}}}(a),{directImports:m,indirectUsers:function(){if(g)return n;for(var e=0,t=a.declarations;e<t.length;e++){var r=t[e];x.isExternalModuleAugmentation(r)&&v(r)}return i.map(x.getSourceFileOfNode)}()};function y(e,t,r){if(2===p)m.push(e);else if(!g){var n=b(e);x.Debug.assert(272===n.kind||237===n.kind),r||(a=n,i=t,c=(s=l).getSymbolAtLocation(i),_(a,function(e){if(248===e.kind){var t=e,r=t.exportClause,n=t.moduleSpecifier;if(!n&&r)for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];if(s.getExportSpecifierLocalTargetSymbol(o)===c)return!0}}}))?function e(t){if(v(t)){var r=l.getMergedSymbol(t.symbol);x.Debug.assert(!!(1536&r.flags));var n=h(r);if(n)for(var a=0,i=n;a<i.length;a++){var o=i[a];e(b(o))}}}(n):v(n)}var a,i,s,c}function v(e){x.Debug.assert(!g);var t=r(e);return t&&i.push(e),t}function h(e){return t.get(x.getSymbolId(e).toString())}}(o,u,t,s,c),a=n.directImports,i=n.indirectUsers;return __assign({indirectUsers:i},function(e,i,o,s,c){var r=[],u=[];function _(e,t){r.push([e,t])}if(e)for(var t=0,n=e;t<n.length;t++){var a=n[t];l(a)}return{importSearches:r,singleReferences:u};function l(e){if(241!==e.kind)if(71!==e.kind){if(9===e.moduleSpecifier.kind)if(248!==e.kind){var t=e.importClause;if(t){var r=t.namedBindings;if(r&&244===r.kind)d(r.name);else if(0===o)p(r);else{var n=t.name;if(n&&(!c||n.escapedText===g(i))){var a=s.getSymbolAtLocation(n);_(n,a)}c||1!==o||p(r)}}}else p(e.exportClause)}else d(e);else y(e)&&d(e.name)}function d(e){2!==o||c&&!f(e.escapedText)||_(e,s.getSymbolAtLocation(e))}function p(e){if(e)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t],a=n.name,i=n.propertyName;if(f((i||a).escapedText))if(i)u.push(i),c||_(a,s.getSymbolAtLocation(a));else{var o=250===n.kind&&n.propertyName?s.getExportSpecifierLocalTargetSymbol(n):s.getSymbolAtLocation(a);_(a,o)}}}function f(e){return e===i.escapedName||0!==o&&"default"===e}}(a,e,t.exportKind,s,r))}},(t=e.ExportKind||(e.ExportKind={}))[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",(r=e.ImportExport||(e.ImportExport={}))[r.Import=0]="Import",r[r.Export=1]="Export",e.findModuleReferences=function(e,t,r){for(var n=[],a=e.getTypeChecker(),i=0,o=t;i<o.length;i++){var s=o[i],c=r.valueDeclaration;if(272===c.kind){for(var u=0,_=s.referencedFiles;u<_.length;u++){var l=_[u];e.getSourceFileFromReference(s,l)===c&&n.push({kind:"reference",referencingFile:s,ref:l})}for(var d=0,p=s.typeReferenceDirectives;d<p.length;d++){l=p[d];var f=e.getResolvedTypeReferenceDirectives().get(l.fileName);void 0!==f&&f.resolvedFileName===c.fileName&&n.push({kind:"reference",referencingFile:s,ref:l})}}m(s,function(e,t){a.getSymbolAtLocation(t)===r&&n.push({kind:"import",literal:t})})}return n},e.getImportOrExportSymbol=function(a,i,o,s){return s?e():e()||function(){var e=function(e){var t=e.parent;switch(t.kind){case 241:return t.name===e&&y(t)?{isNamedImport:!1}:void 0;case 246:return t.propertyName?void 0:{isNamedImport:!0};case 243:case 244:return x.Debug.assert(t.name===e),{isNamedImport:!1};default:return}}(a);if(e){var t=o.getImmediateAliasedSymbol(i);if(t){"export="===(t=function(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var a=n[r];if(x.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(a)}return e}(t,o)).escapedName&&(t=function(e,t){if(2097152&e.flags)return x.Debug.assertDefined(t.getImmediateAliasedSymbol(e));var r=e.valueDeclaration;return x.isExportAssignment(r)?x.Debug.assertDefined(r.expression.symbol):x.isBinaryExpression(r)?x.Debug.assertDefined(r.right.symbol):x.Debug.fail()}(t,o));var r=g(t);return void 0===r||"default"===r||r===i.escapedName?__assign({kind:0,symbol:t},e):void 0}}}();function e(){var t=a.parent;if(i.exportSymbol)return 183===t.kind?i.declarations.some(function(e){return e===t})&&x.isBinaryExpression(t.parent)?n(t.parent,!1):void 0:c(i.exportSymbol,u(t));var e=function(e,t){if(230===e.kind){var r=e;return r.name!==t?void 0:267===r.parent.kind?void 0:212===r.parent.parent.kind?r.parent.parent:void 0}return e}(t,a);if(e&&x.hasModifier(e,1)){if(x.isImportEqualsDeclaration(e)&&e.moduleReference===a){if(s)return;return{kind:0,symbol:o.getSymbolAtLocation(e.name),isNamedImport:!1}}return c(i,u(e))}if(x.isExportAssignment(t))return r(t);if(x.isExportAssignment(t.parent))return r(t.parent);if(x.isBinaryExpression(t))return n(t,!0);if(x.isBinaryExpression(t.parent))return n(t.parent,!0);function r(e){var t=x.Debug.assertDefined(e.symbol.parent,"Expected export symbol to have a parent"),r=e.isExportEquals?2:1;return{kind:1,symbol:i,exportInfo:{exportingModuleSymbol:t,exportKind:r}}}function n(e,t){var r;switch(x.getSpecialPropertyAssignmentKind(e)){case 1:r=0;break;case 2:r=2;break;default:return}var n=t?o.getSymbolAtLocation(x.cast(e.left,x.isPropertyAccessExpression).name):i;return!n||1536&o.getMergedSymbol(n.parent).flags||x.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+x.Debug.showSymbol(n)+", parent is "+x.Debug.showSymbol(n.parent)),n&&c(n,r)}}function c(e,t){var r=n(e,t,o);return r&&{kind:1,symbol:e,exportInfo:r}}function u(e){return x.hasModifier(e,512)?1:0}},e.getExportInfo=n}(x.FindAllReferences||(x.FindAllReferences={}))}(ts||(ts={})),function(g){!function(c){function u(e,t){return{type:"node",node:e,isInString:t}}function _(e,t,r,n,a,i){return void 0===i&&(i={}),s(c.Core.getReferencedSymbolsForNode(e,t,r,n,a,i))}function s(e){return e&&g.flatMap(e,function(e){return e.references})}function f(e,t,r){var n=c.Core.getIntersectingMeaningFromDeclarations(r,e),a=g.firstOrUndefined(e.declarations)||r,i=g.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,a.getSourceFile(),a,a,n);return{displayParts:i.displayParts,kind:i.symbolKind}}function m(e){if("span"===e.type)return{textSpan:e.textSpan,fileName:e.fileName,isWriteAccess:!1,isDefinition:!1};var t=e.node,r=e.isInString;return{fileName:t.getSourceFile().fileName,textSpan:l(t),isWriteAccess:i(t),isDefinition:79===t.kind||g.isAnyDeclarationName(t)||g.isLiteralComputedPropertyDeclarationName(t),isInString:r}}function l(e){var t=e.getStart(),r=e.getEnd();return 9===e.kind&&(t+=1,r-=1),g.createTextSpanFromBounds(t,r)}function i(e){return 79===e.kind||g.isAnyDeclarationName(e)||g.isWriteAccess(e)}c.nodeEntry=u,c.findReferencedSymbols=function(e,t,r,n,a){var u=g.getTouchingPropertyName(n,a,!0),i=c.Core.getReferencedSymbolsForNode(a,u,e,r,t,{}),_=e.getTypeChecker();return i&&i.length?g.mapDefined(i,function(e){var l,d,p,t,r,n,a,i,o,s=e.definition,c=e.references;return s&&{definition:(l=s,d=_,p=u,t=function(){switch(l.type){case"symbol":var e=l.symbol,t=f(e,d,p),r=t.displayParts,n=t.kind,a=r.map(function(e){return e.text}).join("");return{node:e.declarations?g.getNameOfDeclaration(g.first(e.declarations))||g.first(e.declarations):p,name:a,kind:n,displayParts:r};case"label":var i=l.node;return{node:i,name:i.text,kind:"label",displayParts:[g.displayPart(i.text,g.SymbolDisplayPartKind.text)]};case"keyword":var o=l.node,s=g.tokenToString(o.kind);return{node:o,name:s,kind:"keyword",displayParts:[{text:s,kind:"keyword"}]};case"this":var c=l.node,e=d.getSymbolAtLocation(c),u=e&&g.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(d,e,c.getSourceFile(),g.getContainerNode(c),c).displayParts;return{node:c,name:"this",kind:"var",displayParts:u};case"string":var _=l.node;return{node:_,name:_.text,kind:"var",displayParts:[g.displayPart(g.getTextOfNode(_),g.SymbolDisplayPartKind.stringLiteral)]};default:return g.Debug.assertNever(l)}}(),r=t.node,n=t.name,a=t.kind,i=t.displayParts,o=r.getSourceFile(),{containerKind:"",containerName:"",fileName:o.fileName,kind:a,name:n,textSpan:g.createTextSpanFromNode(r,o),displayParts:i}),references:c.map(m)}}):void 0},c.getImplementationsAtPosition=function(e,t,r,n,a){var i=function(e,t,r,n,a){if(272!==n.kind){var i=e.getTypeChecker();if(269===n.parent.kind){var o=[];return c.Core.getReferenceEntriesForShorthandPropertyAssignment(n,i,function(e){return o.push(u(e))}),o}if(97===n.kind||g.isSuperProperty(n.parent)){var s=i.getSymbolAtLocation(n);return s.valueDeclaration&&[u(s.valueDeclaration)]}return _(a,n,e,r,t,{implementations:!0})}}(e,t,r,g.getTouchingPropertyName(n,a,!1),a),o=e.getTypeChecker();return g.map(i,function(e){return function(e,t){if("node"===e.type){var r=e.node;return __assign({textSpan:l(r),fileName:r.getSourceFile().fileName},(n=r,(i=(a=t).getSymbolAtLocation(g.isDeclaration(n)&&n.name?n.name:n))?f(i,a,n):182===n.kind?{kind:"interface",displayParts:[g.punctuationPart(19),g.textPart("object literal"),g.punctuationPart(20)]}:203===n.kind?{kind:"local class",displayParts:[g.punctuationPart(19),g.textPart("anonymous local class"),g.punctuationPart(20)]}:{kind:g.getNodeKind(n),displayParts:[]}))}var n,a,i,o=e.textSpan,s=e.fileName;return{textSpan:o,fileName:s,kind:"",displayParts:[]}}(e,o)})},c.findReferencedEntries=function(e,t,r,n,a,i){var o=g.getTouchingPropertyName(n,a,!0);return g.map(s(c.Core.getReferencedSymbolsForNode(a,o,e,r,t,i)),m)},c.getReferenceEntriesForNode=_,c.toHighlightSpan=function(e){if("span"===e.type)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var t=e.node,r=e.isInString,n=e.node.getSourceFile().fileName,a=i(t);return{fileName:n,span:{textSpan:l(t),kind:a?"writtenReference":"reference",isInString:r}}}}(g.FindAllReferences||(g.FindAllReferences={}))}(ts||(ts={})),function(M){var L;(function(e){function f(e,t,r){M.Debug.assert(!!t.valueDeclaration);for(var n=L.findModuleReferences(e,r,t).map(function(e){return"import"===e.kind?{type:"node",node:e.literal}:{type:"span",fileName:e.referencingFile.fileName,textSpan:M.createTextSpanFromRange(e.ref)}}),a=0,i=t.declarations;a<i.length;a++){var o=i[a];switch(o.kind){case 272:break;case 237:n.push({type:"node",node:o.name});break;default:M.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}return[{definition:{type:"symbol",symbol:t},references:n}]}var t,r;e.getReferencedSymbolsForNode=function(e,t,r,n,a,i){if(void 0===i&&(i={}),M.isSourceFile(t)){var o=M.GoToDefinition.getReferenceAtPosition(t,e,r);return o&&f(r,r.getTypeChecker().getMergedSymbol(o.file.symbol),n)}if(!i.implementations){var s=function(e,t,r){if(M.isTypeKeyword(e.kind))return n=t,a=e.kind,i=r,(o=M.flatMap(n,function(r){return i.throwIfCancellationRequested(),M.mapDefined(m(r,M.tokenToString(a),r),function(e){var t=M.getTouchingPropertyName(r,e,!0);return t.kind===a?L.nodeEntry(t):void 0})})).length?[{definition:{type:"keyword",node:o[0].node},references:o}]:void 0;var n,a,i,o;if(M.isJumpStatementTarget(e)){var s=M.getTargetLabel(e.parent,e.text);return s&&g(s.parent,s)}return M.isLabelOfLabeledStatement(e)?g(e.parent,e):M.isThis(e)?function(e,t,r){var n=M.getThisContainer(e,!1),a=32;switch(n.kind){case 153:case 152:if(M.isObjectLiteralMethod(n))break;case 151:case 150:case 154:case 155:case 156:a&=M.getModifierFlags(n),n=n.parent;break;case 272:if(M.isExternalModule(n))return;case 232:case 190:break;default:return}for(var i=[],o=0,s=272===n.kind?t:[n.getSourceFile()];o<s.length;o++){var c=s[o];r.throwIfCancellationRequested();var u=m(c,"this",M.isSourceFile(n)?c:n);A(c,272===n.kind?c:n,u,a,i)}return[{definition:{type:"this",node:e},references:i}]}(e,t,r):97===e.kind?function(e){var n=M.getSuperContainer(e,!1);if(n){var a=32;switch(n.kind){case 151:case 150:case 153:case 152:case 154:case 155:case 156:a&=M.getModifierFlags(n),n=n.parent;break;default:return}var i=n.getSourceFile(),t=M.mapDefined(m(i,"super",n),function(e){var t=M.getTouchingWord(i,e,!1);if(t&&97===t.kind){var r=M.getSuperContainer(t,!1);return r&&(32&M.getModifierFlags(r))===a&&r.parent.symbol===n.symbol?L.nodeEntry(t):void 0}});return[{definition:{type:"symbol",symbol:n.symbol},references:t}]}}(e):void 0}(t,n,a);if(s)return s}var c,u,_,l,d=r.getTypeChecker(),p=d.getSymbolAtLocation(t);return p?1536&p.flags&&function(e){if(!M.isStringLiteralLike(e))return!1;switch(e.parent.kind){case 237:case 252:case 242:case 248:return!0;case 185:return M.isRequireCall(e.parent,!1)||M.isImportCall(e.parent);default:return!1}}(t)?f(r,p,n):function(e,t,r,n,a,i){var o,s,c,u;o=e,c=n,u=(s=t).parent,e=(M.isExportSpecifier(u)?E(s,o,u,c):M.isImportSpecifier(u)&&u.propertyName===s?c.getImmediateAliasedSymbol(o):M.firstDefined(o.declarations,function(e){return e.parent||(M.Debug.assert(272===e.kind),M.Debug.fail("Unexpected symbol at "+M.Debug.showSyntaxKind(s)+": "+M.Debug.showSymbol(o))),M.isTypeLiteralNode(e.parent)&&M.isUnionTypeNode(e.parent.parent)?c.getPropertyOfType(c.getTypeFromTypeNode(e.parent.parent),o.name):void 0}))||e;var _=I(t,e),l=[],d=new v(r,function(e){switch(e.kind){case 123:return 1;case 71:if(M.isClassLike(e.parent))return M.Debug.assert(e.parent.name===e),2;default:return 0}}(t),n,a,_,i,l);if(79===t.kind)N(t,e,d),h(t,e,{exportingModuleSymbol:M.Debug.assertDefined(e.parent,"Expected export symbol to have a parent"),exportKind:1},d);else{var p=d.createSearch(t,e,void 0,{allSearchSymbols:function(e,t,a,i){var o=[],r=M.getContainingObjectLiteralElement(t);if(r){if(269!==r.kind){var n=x(t,a);n&&o.push(n)}for(var s=0,c=w(r,a);s<c.length;s++){var u=c[s];d(u)}var _=a.getShorthandAssignmentValueSymbol(t.parent);_&&o.push(_)}M.addRange(o,P(e,a));var l=D(e,a);return l&&(o.push(l),d(l)),d(e),o;function d(e){for(var t=0,r=a.getRootSymbols(e);t<r.length;t++){var n=r[t];o.push(n),!i&&n.parent&&96&n.parent.flags&&F(n.parent,n.name,o,M.createSymbolTable(),a)}}}(e,t,n,i.implementations)}),f=function(e){var t=e.declarations,r=e.flags,n=e.parent,a=e.valueDeclaration;if(a&&(190===a.kind||203===a.kind))return a;if(t){if(8196&r){var i=M.find(t,function(e){return M.hasModifier(e,8)});return i?M.getAncestor(i,233):void 0}if(!k(e)){var o,s=n&&!(262144&e.flags);if(!s||1536&n.flags&&M.isExternalModuleSymbol(n)&&!n.globalExports){for(var c=0,u=t;c<u.length;c++){var _=u[c],l=M.getContainerNode(_);if(o&&o!==l)return;if(!l||272===l.kind&&!M.isExternalOrCommonJsModule(l))return;o=l}return s?o.getSourceFile():o}}}}(e);if(f)T(f,f.getSourceFile(),p,d);else for(var m=0,g=d.sourceFiles;m<g.length;m++){var y=g[m];d.cancellationToken.throwIfCancellationRequested(),b(y,p,d)}}return l}(p,t,n,d,a,i):!i.implementations&&M.isStringLiteral(t)?(c=t,u=n,_=a,l=M.flatMap(u,function(r){return _.throwIfCancellationRequested(),M.mapDefined(m(r,c.text),function(e){var t=M.tryCast(M.getTouchingWord(r,e,!1),M.isStringLiteral);return t&&t.text===c.text?L.nodeEntry(t,!0):void 0})}),[{definition:{type:"string",node:c},references:l}]):void 0},(r=t||(t={}))[r.None=0]="None",r[r.Constructor=1]="Constructor",r[r.Class=2]="Class";var v=function(){function e(e,t,r,n,a,i,o){this.sourceFiles=e,this.specialSearchKind=t,this.checker=r,this.cancellationToken=n,this.searchMeaning=a,this.options=i,this.result=o,this.inheritsFromCache=M.createMap(),this.markSeenContainingTypeReference=M.nodeSeenTracker(),this.markSeenReExportRHS=M.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[],this.includedSourceFiles=M.arrayToSet(e,function(e){return e.fileName})}return e.prototype.includesSourceFile=function(e){return this.includedSourceFiles.has(e.fileName)},e.prototype.getImportSearches=function(e,t){return this.importTracker||(this.importTracker=L.createImportTracker(this.sourceFiles,this.checker,this.cancellationToken)),this.importTracker(e,t,this.options.isForRename)},e.prototype.createSearch=function(e,t,r,n){void 0===n&&(n={});var a=n.text,i=void 0===a?M.stripQuotes(M.unescapeLeadingUnderscores((M.getLocalSymbolForExportDefault(t)||t).escapedName)):a,o=n.allSearchSymbols,s=M.escapeLeadingUnderscores(i),c=this.options.implementations&&function(e,t,r){var n,a=(n=e,M.isRightSideOfPropertyAccess(n)&&n.parent);if(a){var i=r.getTypeAtLocation(a.expression);if(i)return i.symbol&&96&i.symbol.flags&&i.symbol!==t.parent?[i.symbol]:393216&i.flags?function e(t,r){void 0===r&&(r=[]);for(var n=0,a=t.types;n<a.length;n++){var i=a[n];i.symbol&&96&i.symbol.getFlags()&&r.push(i.symbol),393216&i.getFlags()&&e(i,r)}return r}(i):void 0}}(e,t,this.checker);return{symbol:t,comingFrom:r,text:i,escapedText:s,parents:c,includes:function(e){return o?M.contains(o,e):e===t}}},e.prototype.referenceAdder=function(e){var t=M.getSymbolId(e),r=this.symbolIdToReferences[t];return r||(r=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:"symbol",symbol:e},references:r})),function(e){return r.push(L.nodeEntry(e))}},e.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{type:"span",fileName:e,textSpan:t}]})},e.prototype.markSearchedSymbol=function(e,t){var r=M.getNodeId(e),n=M.getSymbolId(t),a=this.sourceFileToSeenSymbols[r]||(this.sourceFileToSeenSymbols[r]=[]);return!a[n]&&(a[n]=!0)},e}();function h(e,t,r,n){var a=n.getImportSearches(t,r),i=a.importSearches,o=a.singleReferences,s=a.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),u=0,_=o;u<_.length;u++)c(_[u]);for(var l=0,d=i;l<d.length;l++){var p=d[l],f=p[0],m=p[1];C(f.getSourceFile(),n.createSearch(f,m,1),n)}if(s.length){var g=void 0;switch(r.exportKind){case 0:g=n.createSearch(e,t,1);break;case 1:g=n.options.isForRename?void 0:n.createSearch(e,t,1,{text:"default"})}if(g)for(var y=0,v=s;y<v.length;y++)b(v[y],g,n)}}function y(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var a=n[r],i=a.getSourceFile();t.includesSourceFile(i)&&C(i,t.createSearch(a,e,0),t)}}function b(e,t,r){void 0!==M.getNameTable(e).get(t.escapedText)&&C(e,t,r)}function x(e,t){return M.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent)&&t.getPropertySymbolOfDestructuringAssignment(e)}function k(e){var t=M.getDeclarationOfKind(e,180);if(t&&178===t.parent.kind&&!t.propertyName)return t}function D(e,t){var r=k(e);if(r){var n=t.getTypeAtLocation(r.parent),a=n&&t.getPropertyOfType(n,r.name.text);return a&&98304&a.flags?(M.Debug.assert(!!(33554432&a.flags)),a.target):a}}function m(e,t,r){void 0===r&&(r=e);var n=[];if(!t||!t.length)return n;for(var a=e.text,i=a.length,o=t.length,s=a.indexOf(t,r.pos);0<=s&&!(s>r.end);){var c=s+o;0!==s&&M.isIdentifierPart(a.charCodeAt(s-1),6)||c!==i&&M.isIdentifierPart(a.charCodeAt(c),6)||n.push(s),s=a.indexOf(t,s+o+1)}return n}function g(e,r){var n=e.getSourceFile(),a=r.text,t=M.mapDefined(m(n,a,e),function(e){var t=M.getTouchingWord(n,e,!1);return t&&(t===r||M.isJumpStatementTarget(t)&&M.getTargetLabel(t,a)===r)?L.nodeEntry(t):void 0});return[{definition:{type:"label",node:r},references:t}]}function S(e,t){switch(e.kind){case 71:return e.text.length===t.length;case 9:return(M.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)||9===(r=e).kind&&(M.isNameOfModuleDeclaration(r)||M.isExpressionOfExternalModuleImportEqualsDeclaration(r)))&&e.text.length===t.length;case 8:return M.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)&&e.text.length===t.length;case 79:return"default".length===t.length;default:return!1}var r}function C(e,t,r){return r.cancellationToken.throwIfCancellationRequested(),T(e,e,t,r)}function T(e,t,r,n){if(n.markSearchedSymbol(t,r.symbol))for(var a=0,i=m(t,r.text,e);a<i.length;a++)o(t,i[a],r,n)}function o(e,t,r,n){var a=M.getTouchingPropertyName(e,t,!0);if(S(a,r.text)){if(M.getMeaningFromLocation(a)&n.searchMeaning){var i=n.checker.getSymbolAtLocation(a);if(i){var o=a.parent;if(!M.isImportSpecifier(o)||o.propertyName!==a){if(M.isExportSpecifier(o))return M.Debug.assert(71===a.kind),void function(e,t,r,n,a){var i=r.parent,o=r.propertyName,s=r.name,c=i.parent,u=E(e,t,r,a.checker);if(n.includes(u)){if(o?e===o?(c.moduleSpecifier||p(),!a.options.isForRename&&a.markSeenReExportRHS(s)&&N(s,t,a)):a.markSeenReExportRHS(e)&&p():p(),e!==o||!a.options.isForRename){var _=79===e.originalKeywordKind?1:0,l=L.getExportInfo(t,_,a.checker);M.Debug.assert(!!l),h(e,t,l,a)}if(1!==n.comingFrom&&c.moduleSpecifier&&!o){var d=a.checker.getExportSpecifierLocalTargetSymbol(r);d&&y(d,a)}}function p(){N(e,u,a)}}(a,i,o,r,n);var s,c,u,_,l,d,p,f,m,g=function e(r,t,n,a){var i=a.checker;if(r.includes(t))return t;if(1&t.flags){M.Debug.assert(!(4&t.flags));var o=P(t,i);if(o)return e(r,M.find(o,function(e){return!!(4&e.flags)}),n,a)}var s=M.getContainingObjectLiteralElement(n);if(s){var c=M.firstDefined(w(s,i),d);if(c)return c;var u=x(n,i);if(u&&r.includes(u))return u}var _=D(t,i);if(_){var l=d(_);if(l)return l}return d(t);function d(e){return M.firstDefined(i.getRootSymbols(e),function(t){if(r.includes(t))return t;if(t.parent&&96&t.parent.flags){if(r.parents&&!M.some(r.parents,function(e){return function(e,a,i,r){var o=64&a.getFlags();return n(e);function n(e){if(e===a)return!0;var t=M.getSymbolId(e)+","+M.getSymbolId(a),r=i.get(t);if(void 0!==r)return r;i.set(t,!1);var n=M.forEach(e.getDeclarations(),function(e){if(M.isClassLike(e)){if(o){var t=M.getClassImplementsHeritageClauseElements(e);if(t)for(var r=0,n=t;r<n.length;r++){var a=n[r];if(s(a))return!0}}return s(M.getClassExtendsHeritageClauseElement(e))}return!(234!==e.kind||!o)&&M.forEach(M.getInterfaceBaseTypeNodes(e),s)});return i.set(t,n),n}function s(e){if(e){var t=r.getTypeAtLocation(e);if(t&&t.symbol)return n(t.symbol)}return!1}}(t.parent,e,a.inheritsFromCache,i)}))return;var e=[];return F(t.parent,t.name,e,M.createSymbolTable(),i),M.find(e,r.includes)}})}}(r,i,a,n);if(!g)return c=r,u=n,_=(s=i).flags,l=s.valueDeclaration,d=u.checker.getShorthandAssignmentValueSymbol(l),void(33554432&_||!c.includes(d)||N(M.getNameOfDeclaration(l),d,u));switch(n.specialSearchKind){case 0:N(a,g,n);break;case 1:!function(e,t,r,n){M.isNewExpressionTarget(e)&&N(e,r.symbol,n);var a,i=function(){return n.referenceAdder(r.symbol)};if(M.isClassLike(e.parent))M.Debug.assert(79===e.kind||e.parent.name===e),function(e,t,n){for(var r=0,a=e.members.get("__constructor").declarations;r<a.length;r++){var i=a[r],o=M.findChildOfKind(i,123,t);M.Debug.assert(154===i.kind&&!!o),n(o)}e.exports.forEach(function(e){var t=e.valueDeclaration;if(t&&153===t.kind){var r=t.body;r&&O(r,99,function(e){M.isNewExpressionTarget(e)&&n(e)})}})}(r.symbol,t,i());else{var o=(a=e,M.tryGetClassExtendingExpressionWithTypeArguments(M.climbPastPropertyAccess(a).parent));o&&function(e,t){var r=e.symbol.members.get("__constructor");if(r)for(var n=0,a=r.declarations;n<a.length;n++){var i=a[n];M.Debug.assert(154===i.kind);var o=i.body;o&&O(o,97,function(e){M.isCallExpressionTarget(e)&&t(e)})}}(o,i())}}(a,e,r,n);break;case 2:m=n,N(p=a,(f=r).symbol,m),!m.options.isForRename&&M.isClassLike(p.parent)&&(M.Debug.assert(p.parent.name===p),function(e,r){for(var t=0,n=e.members;t<n.length;t++){var a=n[t];M.isMethodOrAccessor(a)&&M.hasModifier(a,32)&&a.body.forEachChild(function e(t){99===t.kind?r(t):M.isFunctionLike(t)||t.forEachChild(e)})}}(p.parent,m.referenceAdder(f.symbol)));break;default:M.Debug.assertNever(n.specialSearchKind)}!function(e,t,r,n){var a=L.getImportOrExportSymbol(e,t,n.checker,1===r.comingFrom);if(a){var i=a.symbol;0===a.kind?n.options.isForRename&&!a.isNamedImport||y(i,n):h(e,i,a.exportInfo,n)}}(a,i,r,n)}}}}else!n.options.implementations&&(n.options.findInStrings&&M.isInString(e,t)||n.options.findInComments&&M.isInNonReferenceComment(e,t))&&n.addStringOrCommentReference(e.fileName,M.createTextSpan(t,r.text.length))}function E(e,t,r,n){return a=e,o=(i=r).parent,s=i.propertyName,c=i.name,M.Debug.assert(s===a||c===a),(s?s===a:!o.parent.moduleSpecifier)&&n.getExportSpecifierLocalTargetSymbol(r)||t;var a,i,o,s,c}function N(e,t,r){var n=r.referenceAdder(t);r.options.implementations?function(e,t,r){if(M.isDeclarationName(e)&&function(e){if(!e)return!1;if(M.isVariableLike(e)&&M.hasInitializer(e))return!0;if(230===e.kind){var t=function(e){if(e.parent&&e.parent.parent&&212===e.parent.parent.kind)return M.Debug.assert(231===e.parent.kind),e.parent.parent}(e);return t&&M.hasModifier(t,2)}if(M.isFunctionLike(e))return!!e.body||M.hasModifier(e,2);switch(e.kind){case 233:case 203:case 236:case 237:return!0}return!1}(e.parent))return t(e.parent);if(71===e.kind){269===e.parent.kind&&c(e,r.checker,t);var n=function e(t){if(t&&t.parent){if(205===t.kind&&266===t.parent.kind&&M.isClassLike(t.parent.parent))return t.parent.parent;if(71===t.kind||183===t.kind)return e(t.parent)}}(e);if(n)return t(n);var a=function(e){for(var t;e;)M.isTypeNode(e)&&(t=e),e=e.parent;return t}(e);if(a&&r.markSeenContainingTypeReference(a)){var i=a.parent;if(M.hasType(i)&&i.type===a&&M.hasInitializer(i)&&s(i.initializer))t(i.initializer);else if(M.isFunctionLike(i)&&i.type===a&&i.body){var o=i.body;211===o.kind?M.forEachReturnStatement(o,function(e){e.expression&&s(e.expression)&&t(e.expression)}):s(o)&&t(o)}else M.isAssertionExpression(i)&&s(i.expression)&&t(i.expression)}}}(e,n,r):n(e)}function s(e){switch(e.kind){case 189:return s(e.expression);case 191:case 190:case 182:case 203:case 181:return!0;default:return!1}}function A(n,a,e,i,o){M.forEach(e,function(e){var t=M.getTouchingWord(n,e,!1);if(t&&M.isThis(t)){var r=M.getThisContainer(t,!1);switch(a.kind){case 190:case 232:a.symbol===r.symbol&&o.push(L.nodeEntry(t));break;case 153:case 152:M.isObjectLiteralMethod(a)&&a.symbol===r.symbol&&o.push(L.nodeEntry(t));break;case 203:case 233:r.parent&&a.symbol===r.parent.symbol&&(32&M.getModifierFlags(r))===i&&o.push(L.nodeEntry(t));break;case 272:272!==r.kind||M.isExternalModule(r)||o.push(L.nodeEntry(t))}}})}function P(e,t){return e.valueDeclaration&&M.isParameter(e.valueDeclaration)&&M.isParameterPropertyDeclaration(e.valueDeclaration)?t.getSymbolsOfParameterPropertyDeclaration(e.valueDeclaration,e.name):void 0}function F(n,a,i,o,s){function t(e){if(e){var t=s.getTypeAtLocation(e);if(t){var r=s.getPropertyOfType(t,a);r&&i.push.apply(i,s.getRootSymbols(r)),o.set(n.escapedName,n),F(t.symbol,a,i,o,s)}}}!n||o.has(n.escapedName)||96&n.flags&&M.forEach(n.getDeclarations(),function(e){M.isClassLike(e)?(t(M.getClassExtendsHeritageClauseElement(e)),M.forEach(M.getClassImplementsHeritageClauseElements(e),t)):234===e.kind&&M.forEach(M.getInterfaceBaseTypeNodes(e),t)})}function w(e,t){var r=t.getContextualType(e.parent),n=function(e){if(146===e.name.kind){var t=e.name.expression;return M.isStringOrNumericLiteral(t)?t.text:void 0}return M.getTextOfIdentifierOrLiteral(e.name)}(e),a=r&&n&&r.getProperty(n);return a?[a]:r&&131072&r.flags?M.mapDefined(r.types,function(e){return e.getProperty(n)}):M.emptyArray}function I(e,t){var r=M.getMeaningFromLocation(e),n=t.declarations;if(n){var a=void 0;do{a=r;for(var i=0,o=n;i<o.length;i++){var s=o[i],c=M.getMeaningFromDeclaration(s);c&r&&(r|=c)}}while(r!==a)}return r}function c(e,t,r){var n=t.getSymbolAtLocation(e),a=t.getShorthandAssignmentValueSymbol(n.valueDeclaration);if(a)for(var i=0,o=a.getDeclarations();i<o.length;i++){var s=o[i];1&M.getMeaningFromDeclaration(s)&&r(s)}}function O(e,t,r){M.forEachChild(e,function(e){e.kind===t&&r(e),O(e,t,r)})}e.isSymbolReferencedInFile=function(r,n,a){var i=n.getSymbolAtLocation(r);return!i||m(a,i.name).some(function(e){var t=M.tryCast(M.getTouchingPropertyName(a,e,!0),M.isIdentifier);return t&&t!==r&&t.escapedText===r.escapedText&&n.getSymbolAtLocation(t)===i})},e.getIntersectingMeaningFromDeclarations=I,e.getReferenceEntriesForShorthandPropertyAssignment=c})((L=M.FindAllReferences||(M.FindAllReferences={})).Core||(L.Core={}))}(ts||(ts={})),function(w){!function(e){function o(e,t,r){var n,a,i=T(t,r,e);if(i)return[(n=i.fileName,a=i.file.fileName,{fileName:a,textSpan:w.createTextSpanFromBounds(0,0),kind:"script",name:n,containerName:void 0,containerKind:void 0})];var o=w.getTouchingPropertyName(t,r,!0);if(o!==t){if(w.isJumpStatementTarget(o)){var s=w.getTargetLabel(o.parent,o.text);return s?[P(s,"label",o.text,void 0)]:void 0}var c,u,_,l,d,p,f=e.getTypeChecker(),m=function(e,t){var r=(a=t,i=function e(t){return w.isRightSideOfPropertyAccess(t)?e(t.parent):t}(a),o=i.parent,o&&w.isCallLikeExpression(o)&&w.getInvokedExpression(o)===i&&o),n=r&&e.getResolvedSignature(r);var a,i,o;if(n){var s=n.declaration;if(s&&N(s))return s}return}(f,o);if(m)return[(c=f,u=m,_=F(c,u.symbol,u),l=_.symbolName,d=_.symbolKind,p=_.containerName,A(u,d,l,p))];var g=f.getSymbolAtLocation(o);if(g){if(2097152&g.flags&&function(e,t){if(71!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 243:case 241:return!0;case 246:return 245===t.parent.kind;default:return!1}}(o,g.declarations[0])){var y=f.getAliasedSymbol(g);y.declarations&&(g=y)}if(269===o.parent.kind){var v=f.getShorthandAssignmentValueSymbol(g.valueDeclaration);if(!v)return[];var h=v.getDeclarations(),b=w.SymbolDisplay.getSymbolKind(f,v,o),x=f.symbolToString(v),k=f.symbolToString(g.parent,o);return w.map(h,function(e){return A(e,b,x,k)})}if(w.isPropertyName(o)&&w.isBindingElement(o.parent)&&w.isObjectBindingPattern(o.parent.parent)&&o===(o.parent.propertyName||o.parent.name)){var D=f.getTypeAtLocation(o.parent.parent);if(D){var S=w.getPropertySymbolsFromType(D,o);if(S)return w.flatMap(S,function(e){return E(f,e,o)})}}var C=w.getContainingObjectLiteralElement(o);return C&&f.getContextualType(C.parent)?w.flatMap(w.getPropertySymbolsFromContextualType(f,C),function(e){return E(f,e,o)}):E(f,g,o)}}}function T(e,t,r){var n=s(e.referencedFiles,t);if(n)return(i=w.tryResolveScriptReference(r,e,n))&&{fileName:n.fileName,file:i};var a=s(e.typeReferenceDirectives,t);if(a){var i,o=r.getResolvedTypeReferenceDirectives().get(a.fileName);return(i=o&&r.getSourceFile(o.resolvedFileName))&&{fileName:a.fileName,file:i}}}function E(e,t,r){var n=F(e,t,r),a=n.symbolName,i=n.symbolKind,o=n.containerName;return function(){if(32&t.flags&&(w.isNewExpressionTarget(r)||123===r.kind)){var e=w.find(t.declarations,w.isClassLike)||w.Debug.fail("Expected declaration to have at least one class-like declaration");return s(e.members,!0)}}()||(w.isCallExpressionTarget(r)||w.isNewExpressionTarget(r)||w.isNameOfFunctionDeclaration(r)?s(t.declarations,!1):void 0)||w.map(t.declarations,function(e){return A(e,i,a,o)});function s(e,t){if(e){var r=e.filter(t?w.isConstructorDeclaration:N);return r.length?[A(w.find(r,function(e){return!!e.body})||w.last(r),i,a,o)]:void 0}}}function N(e){switch(e.kind){case 154:case 158:case 232:case 153:case 152:return!0;default:return!1}}function A(e,t,r,n){return P(w.getNameOfDeclaration(e)||e,t,r,n)}function P(e,t,r,n){var a=e.getSourceFile();return{fileName:a.fileName,textSpan:w.createTextSpanFromNode(e,a),kind:t,name:r,containerKind:void 0,containerName:n}}function F(e,t,r){return{symbolName:e.symbolToString(t),symbolKind:w.SymbolDisplay.getSymbolKind(e,t,r),containerName:t.parent?e.symbolToString(t.parent,r):""}}function s(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];if(a.pos<=t&&t<=a.end)return a}}e.getDefinitionAtPosition=o,e.getReferenceAtPosition=T,e.getTypeDefinitionAtPosition=function(t,e,r){var n=w.getTouchingPropertyName(e,r,!0);if(n!==e){var a=t.getSymbolAtLocation(n),i=a&&t.getTypeOfSymbolAtLocation(a,n);if(i)return 131072&i.flags&&!(16&i.flags)?w.flatMap(i.types,function(e){return e.symbol&&E(t,e.symbol,n)}):i.symbol&&E(t,i.symbol,n)}},e.getDefinitionAndBoundSpan=function(e,t,r){var n=o(e,t,r);if(n&&0!==n.length){var a=s(t.referencedFiles,r)||s(t.typeReferenceDirectives,r);if(a)return{definitions:n,textSpan:w.createTextSpanFromRange(a)};var i=w.getTouchingPropertyName(t,r,!0);return{definitions:n,textSpan:w.createTextSpan(i.getStart(),i.getWidth())}}},e.findReferenceInPosition=s}(w.GoToDefinition||(w.GoToDefinition={}))}(ts||(ts={})),function(v){!function(e){var t,r,n=["augments","author","argument","borrows","class","constant","constructor","constructs","default","deprecated","description","event","example","extends","field","fileOverview","function","ignore","inheritDoc","inner","lends","link","memberOf","method","name","namespace","param","private","prop","property","public","requires","returns","see","since","static","template","throws","type","typedef","version"];function i(e){var t=e.comment;switch(e.kind){case 285:return n(e.class);case 290:return a(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 289:return n(e.typeExpression);case 291:case 292:case 287:var r=e.name;return r?n(r):t;default:return t}function n(e){return a(e.getText())}function a(e){return void 0===t?e:e+" "+t}}function o(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}}function a(e){return{name:e,kind:"",kindModifiers:"",displayParts:[v.textPart(e)],documentation:v.emptyArray,tags:v.emptyArray,codeActions:void 0}}function y(e){for(;189===e.kind;)e=e.expression;switch(e.kind){case 190:case 191:return e.parameters;case 203:for(var t=0,r=e.members;t<r.length;t++){var n=r[t];if(154===n.kind)return n.parameters}}return v.emptyArray}e.getJsDocCommentsFromDeclarations=function(e){var a=[];return o(e,function(e){for(var t=0,r=function(e){switch(e.kind){case 292:return[e];case 291:return[e.parent];default:return v.getJSDocCommentsAndTags(e)}}(e);t<r.length;t++){var n=r[t].comment;void 0!==n&&(a.length&&a.push(v.lineBreakPart()),a.push(v.textPart(n)))}}),a},e.getJsDocTagsFromDeclarations=function(e){var a=[];return o(e,function(e){for(var t=0,r=v.getJSDocTags(e);t<r.length;t++){var n=r[t];a.push({name:n.tagName.text,text:i(n)})}}),a},e.getJSDocTagNameCompletions=function(){return t||(t=v.map(n,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},e.getJSDocTagNameCompletionDetails=a,e.getJSDocTagCompletions=function(){return r||(r=v.map(n,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},e.getJSDocTagCompletionDetails=a,e.getJSDocParameterNameCompletions=function(r){if(!v.isIdentifier(r.name))return v.emptyArray;var n=r.name.text,a=r.parent,e=a.parent;return v.isFunctionLike(e)?v.mapDefined(e.parameters,function(e){if(v.isIdentifier(e.name)){var t=e.name.text;if(!a.tags.some(function(e){return e!==r&&v.isJSDocParameterTag(e)&&v.isIdentifier(e.name)&&e.name.escapedText===t})&&(void 0===n||v.startsWith(t,n)))return{name:t,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},e.getJSDocParameterNameCompletionDetails=function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[v.textPart(e)],documentation:v.emptyArray,tags:v.emptyArray,codeActions:void 0}},e.getDocCommentTemplateAtPosition=function(e,t,r){if(!(v.isInString(t,r)||v.isInComment(t,r)||v.hasDocComment(t,r))){var n=v.getTokenAtPosition(t,r,!1),a=n.getStart();if(n&&!(a<r)){var i=function(e){for(var t=e;t;t=t.parent)switch(t.kind){case 232:case 153:case 154:case 152:var r=t.parameters;return{commentOwner:t,parameters:r};case 233:case 234:case 150:case 236:case 271:case 235:return{commentOwner:t};case 212:var n=t,a=n.declarationList.declarations,i=1===a.length&&a[0].initializer?y(a[0].initializer):void 0;return{commentOwner:t,parameters:i};case 272:return;case 237:return 237===t.parent.kind?void 0:{commentOwner:t};case 198:var o=t;if(0===v.getSpecialPropertyAssignmentKind(o))return;var s=v.isFunctionLike(o.right)?o.right.parameters:v.emptyArray;return{commentOwner:t,parameters:s}}}(n);if(i){var o=i.commentOwner,s=i.parameters;if(!(o.getStart()<r)){if(!s||0===s.length)return{newText:"/** */",caretOffset:3};for(var c=t.getLineAndCharacterOfPosition(r),u=t.getLineStarts()[c.line],_=t.text.substr(u,c.character).replace(/\S/i,function(){return" "}),l=v.hasJavaScriptFileExtension(t.fileName),d="",p=0;p<s.length;p++){var f=s[p].name,m=71===f.kind?f.escapedText:"param"+p;d+=l?_+" * @param {any} "+m+e:_+" * @param "+m+e}var g="/**"+e+_+" * ";return{newText:g+e+d+_+" */"+(a===r?e+_:""),caretOffset:g.length}}}}}}}(v.JsDoc||(v.JsDoc={}))}(ts||(ts={})),function(e){function a(e){var t=parseInt(e,10);if(isNaN(t))throw new Error("Error in parseInt("+JSON.stringify(e)+")");return t}var i=/^(.*)-next.\d+/,o=/^(\d+)\.(\d+)\.0-next.(\d+)$/,s=/^(\d+)\.(\d+)\.(\d+)$/,t=function(){function n(e,t,r,n){this.major=e,this.minor=t,this.patch=r,this.isPrerelease=n}return n.parse=function(e){var t=i.test(e),r=n.tryParse(e,t);if(!r)throw new Error("Unexpected semver: "+e+" (isPrerelease: "+t+")");return r},n.fromRaw=function(e){return new n(e.major,e.minor,e.patch,e.isPrerelease)},n.tryParse=function(e,t){var r=(t?o:s).exec(e);return r?new n(a(r[1]),a(r[2]),a(r[3]),t):void 0},Object.defineProperty(n.prototype,"versionString",{get:function(){return this.isPrerelease?this.major+"."+this.minor+".0-next."+this.patch:this.major+"."+this.minor+"."+this.patch},enumerable:!0,configurable:!0}),n.prototype.equals=function(e){return this.major===e.major&&this.minor===e.minor&&this.patch===e.patch&&this.isPrerelease===e.isPrerelease},n.prototype.greaterThan=function(e){return this.major>e.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},n}();e.Semver=t}(ts||(ts={})),function(E){!function(e){function C(e,t){return!E.Semver.parse(E.getProperty(t,"ts"+E.versionMajorMinor)||E.getProperty(t,"latest")).greaterThan(e.version)}e.isTypingUpToDate=C,e.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var t,T=E.arrayToSet(e.nodeCoreModuleList);e.loadSafeList=function(t,e){var r=E.readConfigFile(e,function(e){return t.readFile(e)});return E.createMapFromTemplate(r.config)},e.loadTypesMap=function(t,e){var r=E.readConfigFile(e,function(e){return t.readFile(e)});if(r.config)return E.createMapFromTemplate(r.config.simpleMap)},e.discoverTypings=function(d,p,e,t,n,r,a,i,o){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var f=E.createMap();e=E.mapDefined(e,function(e){var t=E.normalizePath(e);if(E.hasJavaScriptFileExtension(t))return t});var s=[];a.include&&k(a.include,"Explicitly included types");var c=a.exclude||[],u=E.arrayToSet(e,E.getDirectoryPath);u.set(t,!0),u.forEach(function(e,t){D(E.combinePaths(t,"package.json"),s),D(E.combinePaths(t,"bower.json"),s),S(E.combinePaths(t,"bower_components"),s),S(E.combinePaths(t,"node_modules"),s)}),_=e,l=E.mapDefined(_,function(e){if(E.hasJavaScriptFileExtension(e)){var t=E.removeFileExtension(E.getBaseFileName(e.toLowerCase())),r=E.removeMinAndVersionNumbers(t);return n.get(r)}}),l.length&&k(l,"Inferred typings from file names"),E.some(_,function(e){return E.fileExtensionIs(e,".jsx")})&&(p&&p("Inferred 'react' typings due to presence of '.jsx' extension"),x("react")),i&&k(E.deduplicate(i.map(function(e){return T.has(e)?"node":e}),E.equateStringsCaseSensitive,E.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),r.forEach(function(e,t){f.has(t)&&void 0===f.get(t)&&C(e,o.get(t))&&f.set(t,e.typingLocation)});var _,l;for(var m=0,g=c;m<g.length;m++){var y=g[m];f.delete(y)&&p&&p("Typing for "+y+" is in exclude list, will be ignored.")}var v=[],h=[];f.forEach(function(e,t){void 0!==e?h.push(e):v.push(t)});var b={cachedTypingPaths:h,newTypingNames:v,filesToWatch:s};return p&&p("Result: "+JSON.stringify(b)),b;function x(e){f.has(e)||f.set(e,void 0)}function k(e,t){p&&p(t+": "+JSON.stringify(e)),E.forEach(e,x)}function D(e,t){if(d.fileExists(e)){t.push(e);var r=E.readConfigFile(e,function(e){return d.readFile(e)}).config;k(E.flatMap([r.dependencies,r.devDependencies,r.optionalDependencies,r.peerDependencies],E.getOwnKeys),"Typing names in '"+e+"' dependencies")}}function S(e,t){if(t.push(e),d.directoryExists(e)){var r=d.readDirectory(e,[".json"],void 0,void 0,2);p&&p("Searching for typing names in "+e+"; all files: "+JSON.stringify(r));for(var n=[],a=0,i=r;a<i.length;a++){var o=i[a],s=E.normalizePath(o),c=E.getBaseFileName(s);if("package.json"===c||"bower.json"===c){var u=E.readConfigFile(s,function(e){return d.readFile(e)}).config;if(("package.json"!==c||!u._requiredBy||0!==E.filter(u._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&u.name){var _=u.types||u.typings;if(_){var l=E.getNormalizedAbsolutePath(_,E.getDirectoryPath(s));p&&p("    Package '"+u.name+"' provides its own types."),f.set(u.name,l)}else n.push(u.name)}}}k(n,"    Found package names")}}},(t=e.PackageNameValidationResult||(e.PackageNameValidationResult={}))[t.Ok=0]="Ok",t[t.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",t[t.EmptyName=2]="EmptyName",t[t.NameTooLong=3]="NameTooLong",t[t.NameStartsWithDot=4]="NameStartsWithDot",t[t.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters";var r=214;e.validatePackageName=function(e){return e?e.length>r?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},e.renderPackageNameValidationFailure=function(e,t){switch(e){case 2:return"Package name '"+t+"' cannot be empty";case 3:return"Package name '"+t+"' should be less than "+r+" characters";case 4:return"Package name '"+t+"' cannot start with '.'";case 5:return"Package name '"+t+"' cannot start with '_'";case 1:return"Package '"+t+"' is scoped and currently is not supported";case 6:return"Package name '"+t+"' contains non URI safe characters";case 0:return E.Debug.fail();default:E.Debug.assertNever(e)}}}(E.JsTyping||(E.JsTyping={}))}(ts||(ts={})),function(y){!function(e){function p(e,t){switch(e.kind){case 243:case 246:case 241:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function f(e){y.Debug.assert(0<e.length);for(var t=0,r=e;t<r.length;t++){if(!r[t].isCaseSensitive)return!1}return!0}function o(e,t,r){if(y.isPropertyNameLiteral(e)){var n=y.getTextOfIdentifierOrLiteral(e);return r&&t.unshift(n),!0}return!!y.isPropertyAccessExpression(e)&&(r&&t.unshift(e.name.text),o(e.expression,t,!0))}function m(e){var t=[],r=y.getNameOfDeclaration(e);if(146!==r.kind||o(r.expression,t,!1)){for(e=y.getContainerNode(e);e;){if(n=e,a=t,void 0,!((i=y.getNameOfDeclaration(n))&&y.isPropertyNameLiteral(i)?(a.unshift(y.getTextOfIdentifierOrLiteral(i)),1):i&&146===i.kind&&o(i.expression,a,!0)))return;e=y.getContainerNode(e)}var n,a,i;return t}}function g(e){y.Debug.assert(0<e.length);for(var t=y.PatternMatchKind.camelCase,r=0,n=e;r<n.length;r++){var a=n[r].kind;a<t&&(t=a)}return t}function l(e,t){return y.compareValues(e.matchKind,t.matchKind)||y.compareStringsCaseSensitiveUI(e.name,t.name)}function d(e){var t=e.declaration,r=y.getContainerNode(t),n=r&&y.getNameOfDeclaration(r);return{name:e.name,kind:y.getNodeKind(t),kindModifiers:y.getNodeModifiers(t),matchKind:y.PatternMatchKind[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:y.createTextSpanFromNode(t),containerName:n?n.text:"",containerKind:n?y.getNodeKind(r):""}}(y.NavigateTo||(y.NavigateTo={})).getNavigateToItems=function(e,n,t,r,a,i){for(var o=y.createPatternMatcher(r),s=[],c=function(r){if(t.throwIfCancellationRequested(),i&&y.fileExtensionIs(r.fileName,".d.ts"))return"continue";y.forEachEntry(r.getNamedDeclarations(),function(e,t){!function(e,t,r,n,a,i){var o=e.getMatchesForLastSegmentOfPattern(t);if(o)for(var s=0,c=r;s<c.length;s++){var u=c[s];if(p(u,n)){var _=o;if(!e.patternContainsDots||(_=e.getMatches(m(u),t))){var l=g(_),d=f(_);i.push({name:t,fileName:a,matchKind:l,isCaseSensitive:d,declaration:u})}}}}(o,t,e,n,r.fileName,s)})},u=0,_=e;u<_.length;u++)c(_[u]);return s.sort(l),void 0!==a&&(s=s.slice(0,a)),s.map(d)}}()}(ts||(ts={})),function(w){!function(e){var h,n,a,t=/\s+/g,i=[],r=[];function o(){i=[],a=h=n=void 0,r=[]}function c(e){return e.getText(n)}function s(e){return e.node.kind}function u(e,t){e.children?e.children.push(t):e.children=[t]}function _(e){w.Debug.assert(!i.length);var t={node:e,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=t;for(var r=0,n=e.statements;r<n.length;r++){S(n[r])}return k(),w.Debug.assert(!a&&!i.length),t}function b(e){u(a,l(e))}function l(e){return{node:e,additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function x(e){var t=l(e);u(a,t),i.push(a),a=t}function k(){a.children&&(d(a.children),f(a.children)),a=i.pop()}function D(e,t){x(e),S(t),k()}function S(e){var t;if(h.throwIfCancellationRequested(),e&&!w.isToken(e))switch(e.kind){case 154:var r=e;D(r,r.body);for(var n=0,a=r.parameters;n<a.length;n++){var i=a[n];w.isParameterPropertyDeclaration(i)&&b(i)}break;case 153:case 155:case 156:case 152:w.hasDynamicName(e)||D(e,e.body);break;case 151:case 150:w.hasDynamicName(e)||b(e);break;case 243:var o=e;o.name&&b(o);var s=o.namedBindings;if(s)if(244===s.kind)b(s);else for(var c=0,u=s.elements;c<u.length;c++){b(u[c])}break;case 180:case 230:var _=e,l=_.name,d=_.initializer;w.isBindingPattern(l)?S(l):d&&function(e){switch(e.kind){case 191:case 190:case 203:return!0;default:return!1}}(d)?d.name?S(d):(x(e),w.forEachChild(d,S),k()):D(e,d);break;case 191:case 232:case 190:D(e,e.body);break;case 236:x(e);for(var p=0,f=e.members;p<f.length;p++){var m=f[p];(t=m).name&&146!==t.name.kind&&b(m)}k();break;case 233:case 203:case 234:x(e);for(var g=0,y=e.members;g<y.length;g++){S(m=y[g])}k();break;case 237:D(e,function e(t){return 237===t.body.kind?e(t.body):t}(e).body);break;case 250:case 241:case 159:case 157:case 158:case 235:b(e);break;case 198:var v=w.getSpecialPropertyAssignmentKind(e);switch(v){case 1:case 2:case 3:case 6:D(e,e.right);break;case 4:case 5:case 0:break;default:w.Debug.assertNever(v)}default:w.hasJSDocNodes(e)&&w.forEach(e.jsDoc,function(e){w.forEach(e.tags,function(e){291===e.kind&&b(e)})}),w.forEachChild(e,S)}}function d(e){var s=w.createMap();w.filterMutate(e,function(e){var t=w.getNameOfDeclaration(e.node),r=t&&c(t);if(!r)return!0;var n=s.get(r);if(!n)return s.set(r,e),!0;if(n instanceof Array){for(var a=0,i=n;a<i.length;a++){var o;if(p(o=i[a],e))return!1}return n.push(e),!0}return!p(o=n,e)&&(s.set(r,[o,e]),!0)})}function p(e,t){return!!function(e,t){if(e.kind!==t.kind)return!1;switch(e.kind){case 151:case 153:case 155:case 156:return w.hasModifier(e,32)===w.hasModifier(t,32);case 237:return function e(t,r){return t.body.kind===r.body.kind&&(237!==t.body.kind||e(t.body,r.body))}(e,t);default:return!0}}(e.node,t.node)&&(function(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&(r=e.additionalNodes).push.apply(r,t.additionalNodes);e.children=w.concatenate(e.children,t.children),e.children&&(d(e.children),f(e.children));var r}(e,t),!0)}function f(e){e.sort(m)}function m(e,t){return w.compareStringsCaseSensitiveUI(g(e.node),g(t.node))||w.compareValues(s(e),s(t))}function g(e){if(237===e.kind)return N(e);var t=w.getNameOfDeclaration(e);if(t)return w.unescapeLeadingUnderscores(w.getPropertyNameForPropertyNameNode(t));switch(e.kind){case 190:case 191:case 203:return F(e);case 291:return v(e);default:return}}function y(e){if(237===e.kind)return N(e);var t=w.getNameOfDeclaration(e);if(t){var r=c(t);if(0<r.length)return r}switch(e.kind){case 272:var n=e;return w.isExternalModule(n)?'"'+w.escapeString(w.getBaseFileName(w.removeFileExtension(w.normalizePath(n.fileName))))+'"':"<global>";case 191:case 232:case 190:case 233:case 203:return 512&w.getModifierFlags(e)?"default":F(e);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";case 291:return v(e);default:return"<unknown>"}}function v(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&212===t.kind&&0<t.declarationList.declarations.length){var r=t.declarationList.declarations[0].name;if(71===r.kind)return r.text}return"<typedef>"}function C(e){return{text:y(e.node),kind:w.getNodeKind(e.node),kindModifiers:P(e.node),spans:E(e),childItems:w.map(e.children,C)}}function T(e){return{text:y(e.node),kind:w.getNodeKind(e.node),kindModifiers:P(e.node),spans:E(e),childItems:w.map(e.children,function(e){return{text:y(e.node),kind:w.getNodeKind(e.node),kindModifiers:w.getNodeModifiers(e.node),spans:E(e),childItems:r,indent:0,bolded:!1,grayed:!1}})||r,indent:e.indent,bolded:!1,grayed:!1}}function E(e){var t=[A(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var a=n[r];t.push(A(a))}return t}function N(e){if(w.isAmbientModule(e))return w.getTextOfNode(e.name);var t=[];for(t.push(w.getTextOfIdentifierOrLiteral(e.name));e.body&&237===e.body.kind;)e=e.body,t.push(w.getTextOfIdentifierOrLiteral(e.name));return t.join(".")}function A(e){return 272===e.kind?w.createTextSpanFromRange(e):w.createTextSpanFromNode(e,n)}function P(e){return e.parent&&230===e.parent.kind&&(e=e.parent),w.getNodeModifiers(e)}function F(e){return e.name&&0<w.getFullWidth(e.name)?w.declarationNameToString(e.name):230===e.parent.kind?w.declarationNameToString(e.parent.name):198===e.parent.kind&&58===e.parent.operatorToken.kind?c(e.parent.left).replace(t,""):268===e.parent.kind&&e.parent.name?c(e.parent.name):512&w.getModifierFlags(e)?"default":w.isClassLike(e)?"<class>":"<function>"}e.getNavigationBarItems=function(e,t){h=t,n=e;try{return w.map((r=_(e),i=[],function e(t){if(function(e){switch(s(e)){case 233:case 203:case 236:case 234:case 237:case 272:case 235:case 291:return!0;case 154:case 153:case 155:case 156:case 230:return t(e);case 191:case 232:case 190:return function(e){if(!e.node.body)return!1;switch(s(e.parent)){case 238:case 272:case 153:case 154:return!0;default:return t(e)}}(e);default:return!1}function t(e){return w.forEach(e.children,function(e){var t=s(e);return 230!==t&&180!==t})}}(t)&&(i.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++){var a=n[r];e(a)}}(r),i),T)}finally{o()}var r,i},e.getNavigationTree=function(e,t){h=t,n=e;try{return C(_(e))}finally{o()}}}(w.NavigationBar||(w.NavigationBar={}))}(ts||(ts={})),function(b){!function(e){function n(e){var t=e.body;return t&&!b.isIdentifier(t)&&(b.isModuleBlock(t)?t:n(t))}function _(e){return b.isStringLiteral(e)||b.isNoSubstitutionTemplateLiteral(e)?e.text:void 0}function l(e){if(0===e.length)return e;var t=function(e){for(var t,r=[],n=[],a=[],i=0,o=e;i<o.length;i++){var s=o[i];if(void 0!==s.importClause){var c=s.importClause,u=c.name,_=c.namedBindings;u&&r.push(s),_&&(b.isNamespaceImport(_)?n.push(s):a.push(s))}else t=t||s}return{importWithoutClause:t,defaultImports:r,namespaceImports:n,namedImports:a}}(e),r=t.importWithoutClause,n=t.defaultImports,a=t.namespaceImports,i=t.namedImports,o=[];if(r&&o.push(r),1===n.length&&1===a.length&&0===i.length){var s=n[0];return o.push(h(s,s.importClause.name,a[0].importClause.namedBindings)),o}for(var c,u=0,_=b.stableSort(a,function(e,t){return v(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});u<_.length;u++){var l=_[u];o.push(h(l,void 0,l.importClause.namedBindings))}if(0===n.length&&0===i.length)return o;var d=[];if(1===n.length)c=n[0].importClause.name;else for(var p=0,f=n;p<f.length;p++){s=f[p];d.push(b.createImportSpecifier(b.createIdentifier("default"),s.importClause.name))}d.push.apply(d,b.flatMap(i,function(e){return e.importClause.namedBindings.elements}));var m=b.stableSort(d,function(e,t){return v(e.propertyName||e.name,t.propertyName||t.name)||v(e.name,t.name)}),g=0<n.length?n[0]:i[0],y=0===m.length?void 0:0===i.length?b.createNamedImports(m):b.updateNamedImports(i[0].importClause.namedBindings,m);return o.push(h(g,c,y)),o;function v(e,t){return b.compareStringsCaseSensitive(e.text,t.text)}}function h(e,t,r){return b.updateImportDeclaration(e,e.decorators,e.modifiers,b.updateImportClause(e.importClause,t,r),e.moduleSpecifier)}function d(e,t){var r=_(e),n=_(t);return b.compareBooleans(void 0===r,void 0===n)||b.compareBooleans(b.isExternalModuleNameRelative(r),b.isExternalModuleNameRelative(n))||b.compareStringsCaseSensitive(r,n)}e.organizeImports=function(i,o,s,c){var u=b.textChanges.ChangeTracker.fromContext({host:s,formatContext:o});r(i.statements.filter(b.isImportDeclaration));for(var e=0,t=i.statements.filter(b.isAmbientModule);e<t.length;e++)r(n(t[e]).statements.filter(b.isImportDeclaration));return u.getChanges();function r(e){if(0!==b.length(e)){var t=b.group(e,function(e){return _(e.moduleSpecifier)}),r=b.stableSort(t,function(e,t){return d(e[0].moduleSpecifier,t[0].moduleSpecifier)}),n=b.flatMap(r,function(e){return _(e[0].moduleSpecifier)?l(function(e,t,r){for(var n=r.getTypeChecker(),a=n.getJsxNamespace(),i=1===t.languageVariant&&r.getCompilerOptions().jsx,o=[],s=0,c=e;s<c.length;s++){var u=c[s],_=u.importClause;if(_){var l=_.name,d=_.namedBindings;if(l&&!f(l)&&(l=void 0),d)if(b.isNamespaceImport(d))f(d.name)||(d=void 0);else{var p=d.elements.filter(function(e){return f(e.propertyName||e.name)});p.length<d.elements.length&&(d=p.length?b.updateNamedImports(d,p):void 0)}(l||d)&&o.push(h(u,l,d))}else o.push(u)}return o;function f(e){return i&&e.text===a||b.FindAllReferences.Core.isSymbolReferencedInFile(e,n,t)}}(e,i,c)):e});0===n.length?u.deleteNode(i,e[0]):u.replaceNodeWithNodes(i,e[0],n,{useNonAdjustedStartPosition:!1,useNonAdjustedEndPosition:!1,suffix:b.getNewLineOrDefaultFromHost(s,o.options)});for(var a=1;a<e.length;a++)u.deleteNode(i,e[a])}}},e.coalesceImports=l,e.compareModuleSpecifiers=d}(b.OrganizeImports||(b.OrganizeImports={}))}(ts||(ts={})),function(g){!function(e){function m(e,t){return l(g.createTextSpanFromBounds(e,t))}function l(e,t,r,n){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===n&&(n="..."),{textSpan:e,hintSpan:t,bannerText:n,autoCollapse:r}}(g.OutliningElementsCollector||(g.OutliningElementsCollector={})).collectElements=function(e,t){var n,a,i,o,r=[];return a=t,i=r,o=40,(n=e).forEachChild(function e(t){if(0!==o){a.throwIfCancellationRequested(),g.isDeclaration(t)&&function(e,t,r,n){var a=g.getLeadingCommentRangesOfNode(e,t);if(a){for(var i=-1,o=-1,s=0,c=0,u=a;c<u.length;c++){var _=u[c],l=_.kind,d=_.pos,p=_.end;switch(r.throwIfCancellationRequested(),l){case 2:0===s&&(i=d),o=p,s++;break;case 3:f(),n.push(m(d,p)),s=0;break;default:g.Debug.assertNever(l)}}f()}function f(){1<s&&n.push(m(i,o))}}(t,n,a,i);var r=function(c,u){switch(c.kind){case 211:if(g.isFunctionBlock(c))return r(c.parent,191!==c.parent.kind);switch(c.parent.kind){case 216:case 219:case 220:case 218:case 215:case 217:case 224:case 267:return r(c.parent);case 228:var e=c.parent;if(e.tryBlock===c)return r(c.parent);if(e.finallyBlock===c)return r(g.findChildOfKind(e,87,u));default:return l(g.createTextSpanFromNode(c,u))}case 238:return r(c.parent);case 233:case 234:case 236:case 239:return r(c);case 182:return t(c);case 181:return t(c,21)}function t(e,t){return void 0===t&&(t=17),r(e,!1,!g.isArrayLiteralExpression(e.parent),t)}function r(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=17);var a=g.findChildOfKind(c,n,u),i=17===n?18:22,o=g.findChildOfKind(c,i,u);if(a&&o){var s=g.createTextSpanFromBounds(r?a.getFullStart():a.getStart(u),o.getEnd());return l(s,g.createTextSpanFromNode(e,u),t)}}}(t,n);r&&i.push(r),o--,t.forEachChild(e),o++}}),function(e,t){for(var r=[],n=e.getLineStarts(),a=0;a<n.length;a++){var i=n[a],o=a+1===n.length?e.getEnd():n[a+1]-1,s=e.text.substring(i,o),c=s.match(/^\s*\/\/\s*#(end)?region(?:\s+(.*))?$/);if(c&&!g.isInComment(e,i))if(c[1]){var u=r.pop();u&&(u.textSpan.length=o-u.textSpan.start,u.hintSpan.length=o-u.textSpan.start,t.push(u))}else{var _=g.createTextSpanFromBounds(e.text.indexOf("//",i),o);r.push(l(_,_,!1,c[2]||"#region"))}}}(e,r),r.sort(function(e,t){return e.textSpan.start-t.textSpan.start})}}()}(ts||(ts={})),function(m){var g,e;function y(e,t,r,n){return{kind:e,punctuationStripped:t,isCaseSensitive:r,camelCaseWeight:n}}function n(e){return 0===e.subWordTextChunks.length}function v(e){if(65<=e&&e<=90)return!0;if(e<127||!m.isUnicodeIdentifierStart(e,6))return!1;var t=String.fromCharCode(e);return t===t.toUpperCase()}function c(e){if(97<=e&&e<=122)return!0;if(e<127||!m.isUnicodeIdentifierStart(e,6))return!1;var t=String.fromCharCode(e);return t===t.toLowerCase()}function h(e,t,r){for(var n=0;n<t.length;n++){if(b(e.charCodeAt(n+r))!==t.charCodeAt(n))return!1}return!0}function b(e){return 65<=e&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function x(e){return 48<=e&&e<=57}function k(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:r(e)}}function r(e){return t(e,!1)}function a(e){return t(e,!0)}function t(e,t){for(var r,n,a,i,o,s=[],c=0,u=1;u<e.length;u++){var _=x(e.charCodeAt(u-1)),l=x(e.charCodeAt(u)),d=(n=t,a=u,void 0,i=v((r=e).charCodeAt(a-1)),o=v(r.charCodeAt(a)),n?o&&!i:o),p=S(e,t,u,c);(f(e.charCodeAt(u-1))||f(e.charCodeAt(u))||_!==l||d||p)&&(D(e,c,u)||s.push(m.createTextSpan(c,u-c)),c=u)}return D(e,c,e.length)||s.push(m.createTextSpan(c,e.length-c)),s}function f(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function D(e,t,r){for(var n=t;n<r;n++){var a=e.charCodeAt(n);if(!f(a)||95===a||36===a)return!1}return!0}function S(e,t,r,n){if(t&&r!==n&&r+1<e.length){var a=v(e.charCodeAt(r)),i=c(e.charCodeAt(r+1));if(a&&i){for(var o=n;o<r;o++)if(!v(e.charCodeAt(o)))return!1;return!0}}return!1}(e=g=m.PatternMatchKind||(m.PatternMatchKind={}))[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",m.createPatternMatcher=function(e){var r=m.createMap(),u=(e=e.trim()).split(".").map(function(e){return{totalTextChunk:k(t=e.trim()),subWordTextChunks:function(e){for(var t=[],r=0,n=0,a=0;a<e.length;a++){var i=e.charCodeAt(a);v(o=i)||c(o)||x(o)||95===o||36===o?(0===n&&(r=a),n++):0<n&&(t.push(k(e.substr(r,n))),n=0)}var o;return 0<n&&t.push(k(e.substr(r,n))),t}(t)};var t}),t=0===u.length||m.forEach(u,n);return{getMatches:function(e,t){if(!_(t)){var r=d(t,m.lastOrUndefined(u));if(r&&(e=e||[],!(u.length-1>e.length))){for(var n=r,a=u.length-2,i=e.length-1;0<=a;a-=1,i-=1){var o=u[a],s=e[i],c=d(s,o);if(!c)return;m.addRange(n,c)}return n}}},getMatchesForLastSegmentOfPattern:function(e){if(!_(e))return d(e,m.lastOrUndefined(u))},patternContainsDots:1<u.length};function _(e){return t||!e}function l(e){var t=r.get(e);return t||r.set(e,t=a(e)),t}function s(e,t,r){var n=function(e,t){for(var r=e.length-t.length,n=0;n<=r;n++)if(h(e,t,n))return n;return-1}(e,t.textLowerCase);if(0===n)return t.text.length===e.length?y(g.exact,r,e===t.text):y(g.prefix,r,m.startsWith(e,t.text));var a=t.isLowerCase;if(a){if(0<n)for(var i=0,o=l(e);i<o.length;i++){var s=o[i];if(p(e,s,t.text,!0))return y(g.substring,r,p(e,s,t.text,!1))}}else if(0<e.indexOf(t.text))return y(g.substring,r,!0);if(!a&&0<t.characterSpans.length){var c=l(e),u=f(e,c,t,!1);if(void 0!==u)return y(g.camelCase,r,!0,u);if(void 0!==(u=f(e,c,t,!0)))return y(g.camelCase,r,!1,u)}return a&&t.text.length<e.length&&0<n&&v(e.charCodeAt(n))?y(g.substring,r,!1):void 0}function d(e,t){if(!function(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(32===r||42===r)return!0}return!1}(t.totalTextChunk.text)){var r=s(e,t.totalTextChunk,!1);if(r)return[r]}for(var n,a=0,i=t.subWordTextChunks;a<i.length;a++){var o=s(e,i[a],!0);if(!o)return;(n=n||[]).push(o)}return n}function p(e,t,r,n,a){var i=a?a.start:0,o=a?a.length:r.length;if(o>t.length)return!1;if(n)for(var s=0;s<o;s++){var c=r.charCodeAt(i+s),u=e.charCodeAt(t.start+s);if(b(c)!==b(u))return!1}else for(s=0;s<o;s++)if((c=r.charCodeAt(i+s))!==(u=e.charCodeAt(t.start+s)))return!1;return!0}function f(e,t,r,n){for(var a,i,o=r.characterSpans,s=0,c=0;;){if(c===o.length){var u=0;return i&&(u+=1),0===a&&(u+=2),u}if(s===t.length)return;for(var _=t[s],l=!1;c<o.length;c++){var d=o[c];if(l&&(!v(r.text.charCodeAt(o[c-1].start))||!v(r.text.charCodeAt(o[c].start))))break;if(!p(e,_,r.text,n,d))break;l=!0,a=void 0===a?s:a,i=void 0===i||i,_=m.createTextSpan(_.start+d.length,_.length-d.length)}l||void 0===i||(i=!1),s++}}},m.breakIntoCharacterSpans=r,m.breakIntoWordSpans=a}(ts||(ts={})),function(D){D.preProcessFile=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var n,a={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[],o=0,s=!1;function c(){var e=D.scanner.scan();return 17===e?o++:18===e&&o--,e}function u(){var e=D.scanner.getTokenValue(),t=D.scanner.getTokenPos();return{fileName:e,pos:t,end:t+e.length}}function _(){i.push(u()),l()}function l(){0===o&&(s=!0)}function d(){var e=D.scanner.getToken();return 124===e&&(129===(e=c())&&9===(e=c())&&(n||(n=[]),n.push({ref:u(),depth:o})),!0)}function p(){var e=D.scanner.getToken();if(91===e){if(19===(e=c())){if(9===(e=c()))return _(),!0}else{if(9===e)return _(),!0;if(71===e||D.isKeyword(e))if(142===(e=c())){if(9===(e=c()))return _(),!0}else if(58===e){if(m(!0))return!0}else{if(26!==e)return!0;e=c()}if(17===e){for(e=c();18!==e&&1!==e;)e=c();18===e&&142===(e=c())&&9===(e=c())&&_()}else 39===e&&118===(e=c())&&(71===(e=c())||D.isKeyword(e))&&142===(e=c())&&9===(e=c())&&_()}return!0}return!1}function f(){var e=D.scanner.getToken();if(84===e){if(l(),17===(e=c())){for(e=c();18!==e&&1!==e;)e=c();18===e&&142===(e=c())&&9===(e=c())&&_()}else if(39===e)142===(e=c())&&9===(e=c())&&_();else if(91===e&&(71===(e=c())||D.isKeyword(e))&&58===(e=c())&&m(!0))return!0;return!0}return!1}function m(e){var t=e?c():D.scanner.getToken();return 133===t&&(19===(t=c())&&9===(t=c())&&_(),!0)}function g(){var e=D.scanner.getToken();if(71===e&&"define"===D.scanner.getTokenValue()){if(19!==(e=c()))return!0;if(9===(e=c())){if(26!==(e=c()))return!0;e=c()}if(21!==e)return!0;for(e=c();22!==e&&1!==e;)9===e&&_(),e=c();return!0}return!1}if(t&&function(){for(D.scanner.setText(e),c();1!==D.scanner.getToken();)d()||p()||f()||r&&(m(!1)||g())||c();D.scanner.setText(void 0)}(),D.processCommentPragmas(a,e),D.processPragmasIntoFields(a,D.noop),s){if(n)for(var y=0,v=n;y<v.length;y++){var h=v[y];i.push(h.ref)}return{referencedFiles:a.referencedFiles,typeReferenceDirectives:a.typeReferenceDirectives,importedFiles:i,isLibFile:a.hasNoDefaultLib,ambientExternalModules:void 0}}var b=void 0;if(n)for(var x=0,k=n;x<k.length;x++)0===(h=k[x]).depth?(b||(b=[]),b.push(h.ref.fileName)):i.push(h.ref);return{referencedFiles:a.referencedFiles,typeReferenceDirectives:a.typeReferenceDirectives,importedFiles:i,isLibFile:a.hasNoDefaultLib,ambientExternalModules:b}}}(ts||(ts={})),function(d){!function(e){function _(e,t,r,n,a,i){return{canRename:!0,kind:r,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:n,triggerSpan:function(e,t){var r=e.getStart(t),n=e.getWidth(t);9===e.kind&&(r+=1,n-=2);return d.createTextSpan(r,n)}(a,i)}}function l(e){return{canRename:!1,localizedErrorMessage:d.getLocaleSpecificMessage(e),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}(d.Rename||(d.Rename={})).getRenameInfo=function(e,r,n,t,a){var i=d.memoize(function(){return n(d.normalizePath(r))}),o=d.getTouchingWord(t,a,!0);return(o&&function(e){switch(e.kind){case 71:case 9:case 99:return!0;case 8:return d.isLiteralNameOfPropertyDeclarationOrIndexAccess(e);default:return!1}}(o)?function(e,t,r,n){var a=t.getSymbolAtLocation(e);if(a){var i=a.declarations;if(i&&0<i.length){if(i.some(n))return l(d.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(d.isIdentifier(e)&&79===e.originalKeywordKind&&1536&a.parent.flags)return;var o=d.SymbolDisplay.getSymbolKind(t,a,e),s=d.isImportOrExportSpecifierName(e)||d.isStringOrNumericLiteral(e)&&146===e.parent.kind?d.stripQuotes(d.getTextOfIdentifierOrLiteral(e)):void 0,c=s||t.symbolToString(a),u=s||t.getFullyQualifiedName(a);return _(c,u,o,d.SymbolDisplay.getSymbolModifiers(a),e,r)}}else if(d.isStringLiteral(e))return n(e)?l(d.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):_(e.text,e.text,"var","",e,r)}(o,e,t,function(e){if(!r)return!1;var t=e.getSourceFile();return n(d.normalizePath(t.fileName))===i()}):void 0)||l(d.Diagnostics.You_cannot_rename_this_element)}}()}(ts||(ts={})),function(k){!function(e){var t;function i(e,t,r){if(k.isCallOrNewExpression(e.parent)){var n=e.parent,a=void 0,i=void 0;if(27===e.kind||19===e.kind)y=e,v=r,h=n.getChildren(v),b=h.indexOf(y),k.Debug.assert(0<=b&&h.length>b+1),a=h[b+1],k.Debug.assert(void 0!==a),i=0;else{if(!(a=k.findContainingList(e)))return;i=function(e,t){for(var r=0,n=0,a=e.getChildren();n<a.length;n++){var i=a[n];if(i===t)break;26!==i.kind&&r++}return r}(a,e)}var o=n.typeArguments&&n.typeArguments.pos===a.pos?0:1,s=function(e){var t=e.getChildren(),r=k.countWhere(t,function(e){return 26!==e.kind});0<t.length&&26===k.lastOrUndefined(t).kind&&r++;return r}(a);return 0!==i&&k.Debug.assertLessThan(i,s),{kind:o,invocation:n,argumentsSpan:(f=r,m=(p=a).getFullStart(),g=k.skipTrivia(f.text,p.getEnd(),!1),k.createTextSpan(m,g-m)),argumentIndex:i,argumentCount:s}}if(13===e.kind&&187===e.parent.kind){if(k.isInsideTemplateLiteral(e,t))return x(e.parent,0,r)}else{if(14===e.kind&&187===e.parent.parent.kind){var c=(u=e.parent).parent;return k.Debug.assert(200===u.kind),x(c,i=k.isInsideTemplateLiteral(e,t)?0:1,r)}if(209===e.parent.kind&&187===e.parent.parent.parent.kind){var u,_=e.parent;c=(u=_.parent).parent;if(k.Debug.assert(200===u.kind),16===e.kind&&!k.isInsideTemplateLiteral(e,t))return;return x(c,i=function(e,t,r){if(k.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),k.isTemplateLiteralKind(t.kind))return k.isInsideTemplateLiteral(t,r)?0:e+2;return e+1}(u.templateSpans.indexOf(_),e,t),r)}if(e.parent&&k.isJsxOpeningLikeElement(e.parent)){var l=e.parent.attributes.getFullStart(),d=k.skipTrivia(r.text,e.parent.attributes.getEnd(),!1);return{kind:3,invocation:e.parent,argumentsSpan:k.createTextSpan(l,d-l),argumentIndex:0,argumentCount:1}}}var p,f,m,g,y,v,h,b}function x(e,t,r){var n=k.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&k.Debug.assertLessThan(t,n),{kind:2,invocation:e,argumentsSpan:function(e,t){var r=e.template,n=r.getStart(),a=r.getEnd();if(200===r.kind){var i=k.lastOrUndefined(r.templateSpans);0===i.literal.getFullWidth()&&(a=k.skipTrivia(t.text,a,!1))}return k.createTextSpan(n,a-n)}(e,r),argumentIndex:t,argumentCount:n}}function _(e,t,r){for(var n=e;272!==n.kind;n=n.parent){if(k.isFunctionBlock(n))return;(n.pos<n.parent.pos||n.end>n.parent.end)&&k.Debug.fail("Node of kind "+n.kind+" is not a subspan of its parent of kind "+n.parent.kind);var a=i(n,t,r);if(a)return a}}(t=e.ArgumentListKind||(e.ArgumentListKind={}))[t.TypeArguments=0]="TypeArguments",t[t.CallArguments=1]="CallArguments",t[t.TaggedTemplateArguments=2]="TaggedTemplateArguments",t[t.JSXAttributesArguments=3]="JSXAttributesArguments",e.getSignatureHelpItems=function(e,t,r,n){var a=e.getTypeChecker(),i=k.findTokenOnLeftOfPosition(t,r);if(i){var o=_(i,r,t);if(o){n.throwIfCancellationRequested();var s=o.invocation,c=[],u=a.getResolvedSignature(s,c,o.argumentCount);return n.throwIfCancellationRequested(),c.length?g(c,u,o,a):k.isSourceFileJavaScript(t)?function(e,t){if(185===e.invocation.kind){var r=e.invocation.expression,n=k.isIdentifier(r)?r:k.isPropertyAccessExpression(r)?r.name:void 0;if(n&&n.escapedText)for(var a=t.getTypeChecker(),i=0,o=t.getSourceFiles();i<o.length;i++){var s=o[i],c=s.getNamedDeclarations(),u=c.get(n.text);if(u)for(var _=0,l=u;_<l.length;_++){var d=l[_],p=d.symbol;if(p){var f=a.getTypeOfSymbolAtLocation(p,d);if(f){var m=f.getCallSignatures();if(m&&m.length)return g(m,m[0],e,a)}}}}}}(o,e):void 0}}},e.getImmediatelyContainingArgumentInfo=i,e.getContainingArgumentInfo=_;var y=3121152;function g(e,t,r,u){var n=r.argumentCount,a=r.argumentsSpan,_=r.invocation,i=r.argumentIndex,l=0===r.kind,o=k.getInvokedExpression(_),s=u.getSymbolAtLocation(o),d=s&&k.symbolToDisplayParts(u,s,void 0,void 0),p=k.createPrinter({removeComments:!0}),c=k.map(e,function(n){var e,t,r=[],a=[];if(d&&k.addRange(r,d),l){t=!1,r.push(k.punctuationPart(27));var i=(n.target||n).typeParameters;e=i&&0<i.length?k.map(i,g):k.emptyArray,a.push(k.punctuationPart(29));var o=k.mapToDisplayParts(function(e){var t=n.thisParameter?[u.symbolToParameterDeclaration(n.thisParameter,_,y)]:[],r=k.createNodeArray(t.concat(k.map(n.parameters,function(e){return u.symbolToParameterDeclaration(e,_,y)})));p.writeList(1296,r,k.getSourceFileOfNode(k.getParseTreeNode(_)),e)});k.addRange(a,o)}else{t=n.hasRestParameter;var s=k.mapToDisplayParts(function(e){if(n.typeParameters&&n.typeParameters.length){var t=k.createNodeArray(k.map(n.typeParameters,function(e){return u.typeParameterToDeclaration(e,_)}));p.writeList(26896,t,k.getSourceFileOfNode(k.getParseTreeNode(_)),e)}});k.addRange(r,s),r.push(k.punctuationPart(19)),e=k.map(n.parameters,m),a.push(k.punctuationPart(20))}var c=k.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var t=u.getTypePredicateOfSignature(n);t?u.writeTypePredicate(t,_,void 0,e):u.writeType(u.getReturnTypeOfSignature(n),_,void 0,e)});return k.addRange(a,c),{isVariadic:t,prefixDisplayParts:r,suffixDisplayParts:a,separatorDisplayParts:[k.punctuationPart(26),k.spacePart()],parameters:e,documentation:n.getDocumentationComment(u),tags:n.getJsDocTags()}});0!==i&&k.Debug.assertLessThan(i,n);var f=e.indexOf(t);return k.Debug.assert(-1!==f),{items:c,applicableSpan:a,selectedItemIndex:f,argumentIndex:i,argumentCount:n};function m(r){var e=k.mapToDisplayParts(function(e){var t=u.symbolToParameterDeclaration(r,_,y);p.writeNode(4,t,k.getSourceFileOfNode(k.getParseTreeNode(_)),e)});return{name:r.name,documentation:r.getDocumentationComment(u),displayParts:e,isOptional:u.isOptionalParameter(r.valueDeclaration)}}function g(r){var e=k.mapToDisplayParts(function(e){var t=u.typeParameterToDeclaration(r,_);p.writeNode(4,t,k.getSourceFileOfNode(k.getParseTreeNode(_)),e)});return{name:r.symbol.name,documentation:k.emptyArray,displayParts:e,isOptional:!1}}}}(k.SignatureHelp||(k.SignatureHelp={}))}(ts||(ts={})),function(l){function d(e){if(l.isExternalModuleReference(e))return e.parent.name;if(l.isImportDeclaration(e)){var t=e.importClause,r=e.moduleSpecifier;return t&&!t.name&&244===t.namedBindings.kind&&l.isStringLiteral(r)?t.namedBindings.name:void 0}}l.computeSuggestionDiagnostics=function(e,t){t.getSemanticDiagnostics(e);var r=t.getDiagnosticsProducingTypeChecker(),n=[];e.commonJsModuleIndicator&&n.push(l.createDiagnosticForNode(e.commonJsModuleIndicator,l.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var a=l.isSourceFileJavaScript(e);if(function e(t){switch(t.kind){case 232:case 190:if(a){var r=t.symbol;r.members&&0<r.members.size&&n.push(l.createDiagnosticForNode(l.isVariableDeclaration(t.parent)?t.parent.name:t,l.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}}!a&&l.codefix.parameterShouldGetTypeFromJSDoc(t)&&n.push(l.createDiagnosticForNode(t.name||t,l.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)),t.forEachChild(e)}(e),l.getAllowSyntheticDefaultImports(t.getCompilerOptions()))for(var i=0,o=e.imports;i<o.length;i++){var s=o[i],c=d(s.parent);if(c){var u=l.getResolvedModule(e,s.text),_=u&&t.getSourceFile(u.resolvedFileName);_&&_.externalModuleIndicator&&l.isExportAssignment(_.externalModuleIndicator)&&_.externalModuleIndicator.isExportEquals&&n.push(l.createDiagnosticForNode(c,l.Diagnostics.Import_may_be_converted_to_a_default_import))}}return n.concat(r.getSuggestionDiagnostics(e))}}(ts||(ts={})),function(X){!function(e){function H(e,t,r){var n=G(e,t,r);if(""!==n)return n;var a=X.getCombinedLocalAndExportSymbolFlags(t);return 32&a?X.getDeclarationOfKind(t,203)?"local class":"class":384&a?"enum":524288&a?"type":64&a?"interface":262144&a?"type parameter":262144&a?"type parameter":8&a?"enum member":2097152&a?"alias":1536&a?"module":n}function G(e,t,r){if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(99===r.kind&&X.isExpression(r))return"parameter";var n=X.getCombinedLocalAndExportSymbolFlags(t);if(3&n)return X.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&X.isConst(t.valueDeclaration)?"const":X.forEach(t.declarations,X.isLet)?"let":i(t)?"local var":"var";if(16&n)return i(t)?"local function":"function";if(32768&n)return"getter";if(65536&n)return"setter";if(8192&n)return"method";if(16384&n)return"constructor";if(4&n){if(33554432&n&&6&t.checkFlags){var a=X.forEach(e.getRootSymbols(t),function(e){var t=e.getFlags();if(98311&t)return"property";X.Debug.assert(!!(8208&t))});return a||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}switch(r.parent&&r.parent.kind){case 255:case 253:case 254:return 71===r.kind?"property":"JSX attribute";case 260:return"JSX attribute";default:return"property"}}return""}function i(e){return!e.parent&&X.forEach(e.declarations,function(e){if(190===e.kind)return!0;if(230!==e.kind&&232!==e.kind)return!1;for(var t=e.parent;!X.isFunctionBlock(t);t=t.parent)if(272===t.kind||238===t.kind)return!1;return!0})}e.getSymbolKind=H,e.getSymbolModifiers=function(e){var t=e&&e.declarations&&0<e.declarations.length?X.getNodeModifiers(e.declarations[0]):"",r=e&&16777216&e.flags?"optional":"";return t&&r?t+","+r:t||r},e.getSymbolDisplayPartsDocumentationAndSymbolKind=function e(a,n,i,o,t,r,s){void 0===r&&(r=X.getMeaningFromLocation(t));var c,u,_,l,d,p,f=[],m=X.getCombinedLocalAndExportSymbolFlags(n),g=G(a,n,t),y=99===t.kind&&X.isExpression(t);if(""!==g||32&m||2097152&m){"getter"!==g&&"setter"!==g||(g="property");var v=void 0;if(l=y?a.getTypeAtLocation(t):a.getTypeOfSymbolAtLocation(n.exportSymbol||n,t),t.parent&&183===t.parent.kind){var h=t.parent.name;(h===t||h&&0===h.getFullWidth())&&(t=t.parent)}var b=void 0;if(X.isCallOrNewExpression(t)?b=t:X.isCallExpressionTarget(t)||X.isNewExpressionTarget(t)?b=t.parent:t.parent&&X.isJsxOpeningLikeElement(t.parent)&&X.isFunctionLike(n.valueDeclaration)&&(b=t.parent),b){v=a.getResolvedSignature(b,[]);var x=186===b.kind||X.isCallExpression(b)&&97===b.expression.kind,k=x?l.getConstructSignatures():l.getCallSignatures();if(X.contains(k,v.target)||X.contains(k,v)||(v=k.length?k[0]:void 0),v){switch(x&&32&m?(g="constructor",U(l.symbol,g)):2097152&m?(q(g="alias"),f.push(X.spacePart()),x&&(f.push(X.keywordPart(94)),f.push(X.spacePart())),K(n)):U(n,g),g){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":f.push(X.punctuationPart(56)),f.push(X.spacePart()),65536&l.flags&&16&l.objectFlags||!l.symbol||(X.addRange(f,X.symbolToDisplayParts(a,l.symbol,o,void 0,5)),f.push(X.lineBreakPart())),x&&(f.push(X.keywordPart(94)),f.push(X.spacePart())),V(v,k,262144);break;default:V(v,k)}_=!0}}else if(X.isNameOfFunctionDeclaration(t)&&!(98304&m)||123===t.kind&&154===t.parent.kind){var D=t.parent;X.find(n.declarations,function(e){return e===(123===t.kind?D.parent:D)})&&(k=154===D.kind?l.getNonNullableType().getConstructSignatures():l.getNonNullableType().getCallSignatures(),v=a.isImplementationOfOverload(D)?k[0]:a.getSignatureFromDeclaration(D),154===D.kind?(g="constructor",U(l.symbol,g)):U(157!==D.kind||2048&l.symbol.flags||4096&l.symbol.flags?n:l.symbol,g),V(v,k),_=!0)}}if(32&m&&!_&&!y&&(J(),X.getDeclarationOfKind(n,203)?q("local class"):f.push(X.keywordPart(75)),f.push(X.spacePart()),K(n),W(n,i)),64&m&&2&r&&(z(),f.push(X.keywordPart(109)),f.push(X.spacePart()),K(n),W(n,i)),524288&m&&(z(),f.push(X.keywordPart(139)),f.push(X.spacePart()),K(n),W(n,i),f.push(X.spacePart()),f.push(X.operatorPart(58)),f.push(X.spacePart()),X.addRange(f,X.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(n),o,8388608))),384&m&&(z(),X.forEach(n.declarations,X.isConstEnumDeclaration)&&(f.push(X.keywordPart(76)),f.push(X.spacePart())),f.push(X.keywordPart(83)),f.push(X.spacePart()),K(n)),1536&m){z();var S=(L=X.getDeclarationOfKind(n,237))&&L.name&&71===L.name.kind;f.push(X.keywordPart(S?130:129)),f.push(X.spacePart()),K(n)}if(262144&m&&2&r)if(z(),f.push(X.punctuationPart(19)),f.push(X.textPart("type parameter")),f.push(X.punctuationPart(20)),f.push(X.spacePart()),K(n),n.parent)j(),K(n.parent,o),W(n.parent,o);else{var C=X.getDeclarationOfKind(n,147);X.Debug.assert(void 0!==C),(L=C.parent)&&(X.isFunctionLikeKind(L.kind)?(j(),v=a.getSignatureFromDeclaration(L),158===L.kind?(f.push(X.keywordPart(94)),f.push(X.spacePart())):157!==L.kind&&L.name&&K(L.symbol),X.addRange(f,X.signatureToDisplayParts(a,v,i,32))):235===L.kind&&(j(),f.push(X.keywordPart(139)),f.push(X.spacePart()),K(L.symbol),W(L.symbol,i)))}if(8&m&&(U(n,g="enum member"),271===(L=n.declarations[0]).kind)){var T=a.getConstantValue(L);void 0!==T&&(f.push(X.spacePart()),f.push(X.operatorPart(58)),f.push(X.spacePart()),f.push(X.displayPart(X.getTextOfConstantValue(T),"number"==typeof T?X.SymbolDisplayPartKind.numericLiteral:X.SymbolDisplayPartKind.stringLiteral)))}if(2097152&m){if(z(),!_){var E=a.getAliasedSymbol(n);if(E!==n&&E.declarations&&0<E.declarations.length){var N=E.declarations[0],A=X.getNameOfDeclaration(N);if(A){var P=X.isModuleWithStringLiteralName(N)&&X.hasModifier(N,2),F="default"!==n.name&&!P,w=e(a,E,X.getSourceFileOfNode(N),N,A,r,F?n:E);f.push.apply(f,w.displayParts),f.push(X.lineBreakPart()),p=w.documentation}}}switch(n.declarations[0].kind){case 240:f.push(X.keywordPart(84)),f.push(X.spacePart()),f.push(X.keywordPart(130));break;case 247:f.push(X.keywordPart(84)),f.push(X.spacePart()),f.push(X.keywordPart(n.declarations[0].isExportEquals?58:79));break;default:f.push(X.keywordPart(91))}f.push(X.spacePart()),K(n),X.forEach(n.declarations,function(e){if(241===e.kind){var t=e;if(X.isExternalModuleImportEqualsDeclaration(t))f.push(X.spacePart()),f.push(X.operatorPart(58)),f.push(X.spacePart()),f.push(X.keywordPart(133)),f.push(X.punctuationPart(19)),f.push(X.displayPart(X.getTextOfNode(X.getExternalModuleImportEqualsDeclarationExpression(t)),X.SymbolDisplayPartKind.stringLiteral)),f.push(X.punctuationPart(20));else{var r=a.getSymbolAtLocation(t.moduleReference);r&&(f.push(X.spacePart()),f.push(X.operatorPart(58)),f.push(X.spacePart()),K(r,o))}return!0}})}if(!_)if(""!==g){if(l)if(y?(z(),f.push(X.keywordPart(99))):U(n,g),"property"===g||"JSX attribute"===g||3&m||"local var"===g||y)if(f.push(X.punctuationPart(56)),f.push(X.spacePart()),l.symbol&&262144&l.symbol.flags){var I=X.mapToDisplayParts(function(e){var t=a.typeParameterToDeclaration(l,o);B().writeNode(4,t,X.getSourceFileOfNode(X.getParseTreeNode(o)),e)});X.addRange(f,I)}else X.addRange(f,X.typeToDisplayParts(a,l,o));else(16&m||8192&m||16384&m||131072&m||98304&m||"method"===g)&&(k=l.getNonNullableType().getCallSignatures()).length&&V(k[0],k)}else g=H(a,n,t);if(!c&&(c=n.getDocumentationComment(a),u=n.getJsDocTags(),0===c.length&&4&m&&n.parent&&X.forEach(n.parent.declarations,function(e){return 272===e.kind})))for(var O=0,M=n.declarations;O<M.length;O++){var L;if((L=M[O]).parent&&198===L.parent.kind){var R=a.getSymbolAtLocation(L.parent.right);if(R&&(c=R.getDocumentationComment(a),u=R.getJsDocTags(),0<c.length))break}}return 0===c.length&&p&&(c=p),{displayParts:f,documentation:c,symbolKind:g,tags:u};function B(){return d||(d=X.createPrinter({removeComments:!0})),d}function z(){f.length&&f.push(X.lineBreakPart()),J()}function J(){s&&(q("alias"),f.push(X.spacePart()))}function j(){f.push(X.spacePart()),f.push(X.keywordPart(92)),f.push(X.spacePart())}function K(e,t){s&&e===n&&(e=s);var r=X.symbolToDisplayParts(a,e,t||i,void 0,7);X.addRange(f,r)}function U(e,t){z(),t&&(q(t),e&&!X.some(e.declarations,function(e){return X.isArrowFunction(e)||(X.isFunctionExpression(e)||X.isClassExpression(e))&&!e.name})&&(f.push(X.spacePart()),K(e)))}function q(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void f.push(X.textOrKeywordPart(e));default:return f.push(X.punctuationPart(19)),f.push(X.textOrKeywordPart(e)),void f.push(X.punctuationPart(20))}}function V(e,t,r){X.addRange(f,X.signatureToDisplayParts(a,e,o,32|r)),1<t.length&&(f.push(X.spacePart()),f.push(X.punctuationPart(19)),f.push(X.operatorPart(37)),f.push(X.displayPart((t.length-1).toString(),X.SymbolDisplayPartKind.numericLiteral)),f.push(X.spacePart()),f.push(X.textPart(2===t.length?"overload":"overloads")),f.push(X.punctuationPart(20))),c=e.getDocumentationComment(a),u=e.getJsDocTags()}function W(r,n){var e=X.mapToDisplayParts(function(e){var t=a.symbolToTypeParameterDeclarations(r,n);B().writeList(26896,t,X.getSourceFileOfNode(X.getParseTreeNode(n)),e)});X.addRange(f,e)}}}(X.SymbolDisplay||(X.SymbolDisplay={}))}(ts||(ts={})),function(l){function o(e,t){var r=[],n=t.compilerOptions?d(t.compilerOptions,r):l.getDefaultCompilerOptions();n.isolatedModules=!0,n.suppressOutputPathCheck=!0,n.allowNonTsExtensions=!0,n.noLib=!0,n.lib=void 0,n.types=void 0,n.noEmit=void 0,n.noEmitOnError=void 0,n.paths=void 0,n.rootDirs=void 0,n.declaration=void 0,n.declarationDir=void 0,n.out=void 0,n.outFile=void 0,n.noResolve=!0;var a=t.fileName||(n.jsx?"module.tsx":"module.ts"),i=l.createSourceFile(a,e,n.target);t.moduleName&&(i.moduleName=t.moduleName),t.renamedDependencies&&(i.renamedDependencies=l.createMapFromTemplate(t.renamedDependencies));var o,s,c=l.getNewLineCharacter(n),u={getSourceFile:function(e){return e===l.normalizePath(a)?i:void 0},writeFile:function(e,t){l.fileExtensionIs(e,".map")?(l.Debug.assertEqual(s,void 0,"Unexpected multiple source map outputs, file:",e),s=t):(l.Debug.assertEqual(o,void 0,"Unexpected multiple outputs, file:",e),o=t)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return c},fileExists:function(e){return e===a},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},_=l.createProgram([a],n,u);return t.reportDiagnostics&&(l.addRange(r,_.getSyntacticDiagnostics(i)),l.addRange(r,_.getOptionsDiagnostics())),_.emit(void 0,void 0,void 0,void 0,t.transformers),l.Debug.assert(void 0!==o,"Output generation failed"),{outputText:o,diagnostics:r,sourceMapText:s}}var i;function d(r,n){i=i||l.filter(l.optionDeclarations,function(e){return"object"==typeof e.type&&!l.forEachEntry(e.type,function(e){return"number"!=typeof e})}),r=l.cloneCompilerOptions(r);for(var e=function(e){if(!l.hasProperty(r,e.name))return"continue";var t=r[e.name];l.isString(t)?r[e.name]=l.parseCustomTypeOption(e,t,n):l.forEachEntry(e.type,function(e){return e===t})||n.push(l.createCompilerDiagnosticForInvalidCustomType(e))},t=0,a=i;t<a.length;t++){e(a[t])}return r}l.transpileModule=o,l.transpile=function(e,t,r,n,a){var i=o(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!n,moduleName:a});return l.addRange(n,i.diagnostics),i.outputText},l.fixupCompilerOptions=d}(ts||(ts={})),function(i){!function(e){var t;(t=e.FormattingRequestKind||(e.FormattingRequestKind={}))[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var r=function(){function e(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return e.prototype.updateContext=function(e,t,r,n,a){i.Debug.assert(void 0!==e,"currentTokenSpan is null"),i.Debug.assert(void 0!==t,"currentTokenParent is null"),i.Debug.assert(void 0!==r,"nextTokenSpan is null"),i.Debug.assert(void 0!==n,"nextTokenParent is null"),i.Debug.assert(void 0!==a,"commonParent is null"),this.currentTokenSpan=e,this.currentTokenParent=t,this.nextTokenSpan=r,this.nextTokenParent=n,this.contextNode=a,this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},e.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},e.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},e.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},e.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},e.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},e.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},e.prototype.BlockIsOnOneLine=function(e){var t=i.findChildOfKind(e,17,this.sourceFile),r=i.findChildOfKind(e,18,this.sourceFile);return!(!t||!r)&&this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line},e}();e.FormattingContext=r}(i.formatting||(i.formatting={}))}(ts||(ts={})),function(m){var e,t,r,g,y;e=m.formatting||(m.formatting={}),g=m.createScanner(6,!1,0),y=m.createScanner(6,!1,1),(r=t||(t={}))[r.Scan=0]="Scan",r[r.RescanGreaterThanToken=1]="RescanGreaterThanToken",r[r.RescanSlashToken=2]="RescanSlashToken",r[r.RescanTemplateToken=3]="RescanTemplateToken",r[r.RescanJsxIdentifier=4]="RescanJsxIdentifier",r[r.RescanJsxText=5]="RescanJsxText",e.getFormattingScanner=function(e,t,n,o,r){var s=1===t?y:g;s.setText(e),s.setTextPos(n);var c,u,_,l,d,a=!0,i=r({advance:function(){d=void 0,s.getStartPos()!==n?a=u&&4===m.lastOrUndefined(u).kind:s.scan(),u=c=void 0;for(var e=s.getStartPos();e<o;){var t=s.getToken();if(!m.isTrivia(t))break;s.scan();var r={pos:e,end:s.getStartPos(),kind:t};e=s.getStartPos(),c=m.append(c,r)}_=s.getStartPos()},readTokenInfo:function(e){m.Debug.assert(p());var t,r=function(e){switch(e.kind){case 31:case 66:case 67:case 47:case 46:return!0}return!1}(e)?1:12===e.kind?2:15===(t=e).kind||16===t.kind?3:function(e){if(e.parent)switch(e.parent.kind){case 260:case 255:case 256:case 254:return m.isKeyword(e.kind)||71===e.kind}return!1}(e)?4:10===e.kind?5:0;if(d&&r===l)return f(d,e);s.getStartPos()!==_&&(m.Debug.assert(void 0!==d),s.setTextPos(_),s.scan());var n=function(e,t){var r,n=s.getToken();switch(l=0,t){case 1:if(29===n){l=1;var a=s.reScanGreaterToken();return m.Debug.assert(e.kind===a),a}break;case 2:if(41===(r=n)||63===r){l=2;var a=s.reScanSlashToken();return m.Debug.assert(e.kind===a),a}break;case 3:if(18===n)return l=3,s.reScanTemplateToken();break;case 4:return l=4,s.scanJsxIdentifier();case 5:return l=5,s.reScanJsxToken();case 0:break;default:m.Debug.assertNever(t)}return n}(e,r),a={pos:s.getStartPos(),end:s.getTextPos(),kind:n};for(u&&(u=void 0);s.getStartPos()<o&&(n=s.scan(),m.isTrivia(n));){var i={pos:s.getStartPos(),end:s.getTextPos(),kind:n};if(u||(u=[]),u.push(i),4===n){s.scan();break}}return f(d={leadingTrivia:c,trailingTrivia:u,token:a},e)},isOnToken:p,getCurrentLeadingTrivia:function(){return c},lastTrailingTriviaWasNewLine:function(){return a},skipToEndOf:function(e){s.setTextPos(e.end),_=s.getStartPos(),a=!1,u=c=d=l=void 0}});return d=void 0,s.setText(void 0),i;function p(){var e=d?d.token.kind:s.getToken();return(d?d.token.pos:s.getStartPos())<o&&1!==e&&!m.isTrivia(e)}function f(e,t){return m.isToken(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}}(ts||(ts={})),function(e){var t,r,n;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(r=t.RuleAction||(t.RuleAction={}))[r.Ignore=1]="Ignore",r[r.Space=2]="Space",r[r.NewLine=4]="NewLine",r[r.Delete=8]="Delete",(n=t.RuleFlags||(t.RuleFlags={}))[n.None=0]="None",n[n.CanDeleteNewLines=1]="CanDeleteNewLines"}(ts||(ts={})),function(_e){!function(m){function g(e,t,r,n,a,i){return void 0===i&&(i=0),{leftTokenRange:o(t),rightTokenRange:o(r),rule:{debugName:e,context:n,action:a,flags:i}}}function y(e){return{tokens:e,isSpecific:!0}}function o(e){return"number"==typeof e?y([e]):_e.isArray(e)?y(e):e}function v(e,t,r){void 0===r&&(r=[]);for(var n=[],a=e;a<=t;a++)_e.contains(r,a)||n.push(a);return y(n)}function h(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!!e.options[t]}}function b(t){return function(e){return e.options&&e.options.hasOwnProperty(t)&&!e.options[t]}}function x(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]}}function k(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!e.options[t]||e.TokensAreOnSameLine()}}function D(t){return function(e){return!e.options||!e.options.hasOwnProperty(t)||!!e.options[t]}}function S(e){return 218===e.contextNode.kind}function C(e){return!S(e)}function T(e){switch(e.contextNode.kind){case 198:case 199:case 170:case 206:case 250:case 246:case 160:case 168:case 169:return!0;case 180:case 235:case 241:case 230:case 148:case 271:case 151:case 150:return 58===e.currentTokenSpan.kind||58===e.nextTokenSpan.kind;case 219:case 147:return 92===e.currentTokenSpan.kind||92===e.nextTokenSpan.kind;case 220:return 144===e.currentTokenSpan.kind||144===e.nextTokenSpan.kind}return!1}function E(e){return!T(e)}function N(e){return!A(e)}function A(e){var t=e.contextNode.kind;return 151===t||150===t||148===t||230===t||_e.isFunctionLikeKind(t)}function P(e){return 199===e.contextNode.kind||170===e.contextNode.kind}function F(e){return e.TokensAreOnSameLine()||M(e)}function w(e){return 178===e.contextNode.kind||176===e.contextNode.kind||r(t=e)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine());var t}function I(e){return M(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function O(e){return r(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function r(e){return t(e.contextNode)}function M(e){return t(e.nextTokenParent)}function t(e){if(n(e))return!0;switch(e.kind){case 211:case 239:case 182:case 238:return!0}return!1}function L(e){switch(e.contextNode.kind){case 232:case 153:case 152:case 155:case 156:case 157:case 190:case 154:case 191:case 234:return!0}return!1}function R(e){return 232===e.contextNode.kind||190===e.contextNode.kind}function B(e){return n(e.contextNode)}function n(e){switch(e.kind){case 233:case 203:case 234:case 236:case 165:case 237:case 248:case 249:case 242:case 245:return!0}return!1}function z(e){switch(e.currentTokenParent.kind){case 233:case 237:case 236:case 267:case 238:case 225:return!0;case 211:var t=e.currentTokenParent.parent;if(!t||191!==t.kind&&190!==t.kind)return!0}return!1}function J(e){switch(e.contextNode.kind){case 215:case 225:case 218:case 219:case 220:case 217:case 228:case 216:case 224:case 267:return!0;default:return!1}}function j(e){return 182===e.contextNode.kind}function K(e){return 185===e.contextNode.kind||186===e.contextNode.kind}function U(e){return 26!==e.currentTokenSpan.kind}function q(e){return 22!==e.nextTokenSpan.kind}function V(e){return 191===e.contextNode.kind}function W(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind}function H(e){return 253!==e.contextNode.kind&&257!==e.contextNode.kind}function G(e){return 263===e.contextNode.kind||262===e.contextNode.kind}function X(e){return 260===e.nextTokenParent.kind}function Q(e){return 260===e.contextNode.kind}function Y(e){return 254===e.contextNode.kind}function Z(e){return!L(e)&&!M(e)}function $(e){return e.TokensAreOnSameLine()&&e.contextNode.decorators&&a(e.currentTokenParent)&&!a(e.nextTokenParent)}function a(e){for(;_e.isExpressionNode(e);)e=e.parent;return 149===e.kind}function ee(e){return 231===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function te(e){return 2!==e.formattingRequestKind}function re(e){return 237===e.contextNode.kind}function ne(e){return 165===e.contextNode.kind}function ae(e){return 158===e.contextNode.kind}function i(e,t){if(27!==e.kind&&29!==e.kind)return!1;switch(t.kind){case 161:case 188:case 235:case 233:case 203:case 234:case 232:case 190:case 191:case 153:case 152:case 157:case 158:case 185:case 186:case 205:return!0;default:return!1}}function ie(e){return i(e.currentTokenSpan,e.currentTokenParent)||i(e.nextTokenSpan,e.nextTokenParent)}function oe(e){return 188===e.contextNode.kind}function se(e){return 105===e.currentTokenSpan.kind&&194===e.currentTokenParent.kind}function ce(e){return 201===e.contextNode.kind&&void 0!==e.contextNode.expression}function ue(e){return 207===e.contextNode.kind}m.getAllRules=function(){for(var r=[],e=0;e<=144;e++)r.push(e);function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:r.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var n={tokens:r,isSpecific:!1},a=y(r.concat([3])),i=v(72,144),o=v(27,70),s=[92,93,144,118,127],c=[71].concat(_e.typeKeywords),u=a,_=y([71,3,75,84,91]),l=y([20,3,81,102,87,82]),d=[g("IgnoreBeforeComment",n,[2,3],m.anyContext,1),g("IgnoreAfterLineComment",2,n,m.anyContext,1),g("NotSpaceBeforeColon",n,56,[W,E,N],8),g("SpaceAfterColon",56,n,[W,E],2),g("NoSpaceBeforeQuestionMark",n,55,[W,E],8),g("SpaceAfterQuestionMarkInConditionalOperator",55,n,[W,P],2),g("NoSpaceAfterQuestionMark",55,n,[W],8),g("NoSpaceBeforeDot",n,23,[W],8),g("NoSpaceAfterDot",23,n,[W],8),g("NoSpaceAfterUnaryPrefixOperator",[43,44,52,51],[8,71,19,21,17,99,94],[W,E],8),g("NoSpaceAfterUnaryPreincrementOperator",43,[71,19,99,94],[W],8),g("NoSpaceAfterUnaryPredecrementOperator",44,[71,19,99,94],[W],8),g("NoSpaceBeforeUnaryPostincrementOperator",[71,20,22,94],43,[W],8),g("NoSpaceBeforeUnaryPostdecrementOperator",[71,20,22,94],44,[W],8),g("SpaceAfterPostincrementWhenFollowedByAdd",43,37,[W,T],2),g("SpaceAfterAddWhenFollowedByUnaryPlus",37,37,[W,T],2),g("SpaceAfterAddWhenFollowedByPreincrement",37,43,[W,T],2),g("SpaceAfterPostdecrementWhenFollowedBySubtract",44,38,[W,T],2),g("SpaceAfterSubtractWhenFollowedByUnaryMinus",38,38,[W,T],2),g("SpaceAfterSubtractWhenFollowedByPredecrement",38,44,[W,T],2),g("NoSpaceAfterCloseBrace",18,[26,25],[W],8),g("NewLineBeforeCloseBraceInBlockContext",a,18,[O],4),g("SpaceAfterCloseBrace",18,t(20),[W,z],2),g("SpaceBetweenCloseBraceAndElse",18,82,[W],2),g("SpaceBetweenCloseBraceAndWhile",18,106,[W],2),g("NoSpaceBetweenEmptyBraceBrackets",17,18,[W,j],8),g("SpaceAfterConditionalClosingParen",20,21,[J],2),g("NoSpaceBetweenFunctionKeywordAndStar",89,39,[R],8),g("SpaceAfterStarInGeneratorDeclaration",39,[71,19],[R],2),g("SpaceAfterFunctionInFuncDecl",89,n,[L],2),g("NewLineAfterOpenBraceInBlockContext",17,n,[O],4),g("SpaceAfterGetSetInMember",[125,136],71,[L],2),g("NoSpaceBetweenYieldKeywordAndStar",116,39,[W,ce],8),g("SpaceBetweenYieldOrYieldStarAndOperand",[116,39],n,[W,ce],2),g("NoSpaceBetweenReturnAndSemicolon",96,25,[W],8),g("SpaceAfterCertainKeywords",[104,100,94,80,96,103,121],n,[W],2),g("SpaceAfterLetConstInVariableDeclaration",[110,76],n,[W,ee],2),g("NoSpaceBeforeOpenParenInFuncCall",n,19,[W,K,U],8),g("SpaceBeforeBinaryKeywordOperator",n,s,[W,T],2),g("SpaceAfterBinaryKeywordOperator",s,n,[W,T],2),g("SpaceAfterVoidOperator",105,n,[W,se],2),g("SpaceBetweenAsyncAndOpenParen",120,19,[V,W],2),g("SpaceBetweenAsyncAndFunctionKeyword",120,89,[W],2),g("NoSpaceBetweenTagAndTemplateString",71,[13,14],[W],8),g("SpaceBeforeJsxAttribute",n,71,[X,W],2),g("SpaceBeforeSlashInJsxOpeningElement",n,41,[Y,W],2),g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",41,29,[Y,W],8),g("NoSpaceBeforeEqualInJsxAttribute",n,58,[Q,W],8),g("NoSpaceAfterEqualInJsxAttribute",58,n,[Q,W],8),g("NoSpaceAfterModuleImport",[129,133],19,[W],8),g("SpaceAfterCertainTypeScriptKeywords",[117,75,124,79,83,84,85,125,108,91,109,129,130,112,114,113,132,136,115,139,142,128,126],n,[W],2),g("SpaceBeforeCertainTypeScriptKeywords",n,[85,108,142],[W],2),g("SpaceAfterModuleName",9,17,[re],2),g("SpaceBeforeArrow",n,36,[W],2),g("SpaceAfterArrow",36,n,[W],2),g("NoSpaceAfterEllipsis",24,71,[W],8),g("NoSpaceAfterOptionalParameters",55,[20,26],[W,E],8),g("NoSpaceBetweenEmptyInterfaceBraceBrackets",17,18,[W,ne],8),g("NoSpaceBeforeOpenAngularBracket",c,27,[W,ie],8),g("NoSpaceBetweenCloseParenAndAngularBracket",20,27,[W,ie],8),g("NoSpaceAfterOpenAngularBracket",27,n,[W,ie],8),g("NoSpaceBeforeCloseAngularBracket",n,29,[W,ie],8),g("NoSpaceAfterCloseAngularBracket",29,[19,21,29,26],[W,ie],8),g("SpaceBeforeAt",[20,71],57,[W],2),g("NoSpaceAfterAt",57,n,[W],8),g("SpaceAfterDecorator",n,[117,71,84,79,75,115,114,112,113,125,136,21,39],[$],2),g("NoSpaceBeforeNonNullAssertionOperator",n,51,[W,ue],8),g("NoSpaceAfterNewKeywordOnConstructorSignature",94,19,[W,ae],8)],p=[g("SpaceAfterConstructor",123,19,[h("insertSpaceAfterConstructor"),W],2),g("NoSpaceAfterConstructor",123,19,[x("insertSpaceAfterConstructor"),W],8),g("SpaceAfterComma",26,n,[h("insertSpaceAfterCommaDelimiter"),W,H,q],2),g("NoSpaceAfterComma",26,n,[x("insertSpaceAfterCommaDelimiter"),W,H],8),g("SpaceAfterAnonymousFunctionKeyword",89,19,[h("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),L],2),g("NoSpaceAfterAnonymousFunctionKeyword",89,19,[x("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),L],8),g("SpaceAfterKeywordInControl",i,19,[h("insertSpaceAfterKeywordsInControlFlowStatements"),J],2),g("NoSpaceAfterKeywordInControl",i,19,[x("insertSpaceAfterKeywordsInControlFlowStatements"),J],8),g("SpaceAfterOpenParen",19,n,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),W],2),g("SpaceBeforeCloseParen",n,20,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),W],2),g("SpaceBetweenOpenParens",19,19,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),W],2),g("NoSpaceBetweenParens",19,20,[W],8),g("NoSpaceAfterOpenParen",19,n,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),W],8),g("NoSpaceBeforeCloseParen",n,20,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),W],8),g("SpaceAfterOpenBracket",21,n,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),W],2),g("SpaceBeforeCloseBracket",n,22,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),W],2),g("NoSpaceBetweenBrackets",21,22,[W],8),g("NoSpaceAfterOpenBracket",21,n,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),W],8),g("NoSpaceBeforeCloseBracket",n,22,[x("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),W],8),g("SpaceAfterOpenBrace",17,n,[D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],2),g("SpaceBeforeCloseBrace",n,18,[D("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),w],2),g("NoSpaceBetweenEmptyBraceBrackets",17,18,[W,j],8),g("NoSpaceAfterOpenBrace",17,n,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),W],8),g("NoSpaceBeforeCloseBrace",n,18,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),W],8),g("SpaceAfterTemplateHeadAndMiddle",[14,15],n,[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),W],2),g("SpaceBeforeTemplateMiddleAndTail",n,[15,16],[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),W],2),g("NoSpaceAfterTemplateHeadAndMiddle",[14,15],n,[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),W],8),g("NoSpaceBeforeTemplateMiddleAndTail",n,[15,16],[x("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),W],8),g("SpaceAfterOpenBraceInJsxExpression",17,n,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),W,G],2),g("SpaceBeforeCloseBraceInJsxExpression",n,18,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),W,G],2),g("NoSpaceAfterOpenBraceInJsxExpression",17,n,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),W,G],8),g("NoSpaceBeforeCloseBraceInJsxExpression",n,18,[x("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),W,G],8),g("SpaceAfterSemicolonInFor",25,n,[h("insertSpaceAfterSemicolonInForStatements"),W,S],2),g("NoSpaceAfterSemicolonInFor",25,n,[x("insertSpaceAfterSemicolonInForStatements"),W,S],8),g("SpaceBeforeBinaryOperator",n,o,[h("insertSpaceBeforeAndAfterBinaryOperators"),W,T],2),g("SpaceAfterBinaryOperator",o,n,[h("insertSpaceBeforeAndAfterBinaryOperators"),W,T],2),g("NoSpaceBeforeBinaryOperator",n,o,[x("insertSpaceBeforeAndAfterBinaryOperators"),W,T],8),g("NoSpaceAfterBinaryOperator",o,n,[x("insertSpaceBeforeAndAfterBinaryOperators"),W,T],8),g("SpaceBeforeOpenParenInFuncDecl",n,19,[h("insertSpaceBeforeFunctionParenthesis"),W,L],2),g("NoSpaceBeforeOpenParenInFuncDecl",n,19,[x("insertSpaceBeforeFunctionParenthesis"),W,L],8),g("NewLineBeforeOpenBraceInControl",l,17,[h("placeOpenBraceOnNewLineForControlBlocks"),J,I],4,1),g("NewLineBeforeOpenBraceInFunction",u,17,[h("placeOpenBraceOnNewLineForFunctions"),L,I],4,1),g("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,17,[h("placeOpenBraceOnNewLineForFunctions"),B,I],4,1),g("SpaceAfterTypeAssertion",29,n,[h("insertSpaceAfterTypeAssertion"),W,oe],2),g("NoSpaceAfterTypeAssertion",29,n,[x("insertSpaceAfterTypeAssertion"),W,oe],8),g("SpaceBeforeTypeAnnotation",n,56,[h("insertSpaceBeforeTypeAnnotation"),W,A],2),g("NoSpaceBeforeTypeAnnotation",n,56,[x("insertSpaceBeforeTypeAnnotation"),W,A],8)],f=[g("NoSpaceBeforeSemicolon",n,25,[W],8),g("SpaceBeforeOpenBraceInControl",l,17,[k("placeOpenBraceOnNewLineForControlBlocks"),J,te,F],2,1),g("SpaceBeforeOpenBraceInFunction",u,17,[k("placeOpenBraceOnNewLineForFunctions"),L,M,te,F],2,1),g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,17,[k("placeOpenBraceOnNewLineForFunctions"),B,te,F],2,1),g("NoSpaceBeforeComma",n,26,[W],8),g("NoSpaceBeforeOpenBracket",t(120,73),21,[W],8),g("NoSpaceAfterCloseBracket",22,n,[W,Z],8),g("SpaceAfterSemicolon",25,n,[W],2),g("SpaceBetweenForAndAwaitKeyword",88,121,[W],2),g("SpaceBetweenStatements",[20,81,82,73],n,[W,H,C],2),g("SpaceAfterTryFinally",[102,87],17,[W],2)];return d.concat(p,f)}}(_e.formatting||(_e.formatting={}))}(ts||(ts={})),function(f){!function(_){var n;function m(e,t){return f.Debug.assert(e<=144&&t<=144,"Must compute formatting context from tokens"),e*g+t}_.getFormatContext=function(e){return{options:e,getRule:(void 0===n&&(t=_.getAllRules(),r=function(e){for(var t=new Array(g*g),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var i=a[n],o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific,s=0,c=i.leftTokenRange.tokens;s<c.length;s++)for(var u=c[s],_=0,l=i.rightTokenRange.tokens;_<l.length;_++){var d=l[_],p=m(u,d),f=t[p];void 0===f&&(f=t[p]=[]),y(f,i.rule,o,r,p)}return t}(t),n=function(t){var e=r[m(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];return e&&f.find(e,function(e){return f.every(e.context,function(e){return e(t)})})}),n)};var t,r};var l,e,d=5,p=31,g=145;function y(e,t,r,n,a){var i,o,s,c=1===t.action?r?l.IgnoreRulesSpecific:l.IgnoreRulesAny:t.context!==_.anyContext?r?l.ContextRulesSpecific:l.ContextRulesAny:r?l.NoContextRulesSpecific:l.NoContextRulesAny,u=n[a]||0;e.splice(function(e,t){for(var r=0,n=0;n<=t;n+=d)r+=e&p,e>>=d;return r}(u,c),0,t),n[a]=(s=1+((i=u)>>(o=c)&p),f.Debug.assert((s&p)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),i&~(p<<o)|s<<o)}(e=l||(l={}))[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*d]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*d]="ContextRulesSpecific",e[e.ContextRulesAny=3*d]="ContextRulesAny",e[e.NoContextRulesSpecific=4*d]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*d]="NoContextRulesAny"}(f.formatting||(f.formatting={}))}(ts||(ts={})),function(R){!function(M){var e,t,r,n,c,u,_;function i(e,t,r){var n=R.findPrecedingToken(e,r);return n&&n.kind===t&&e===n.getEnd()?n:void 0}function o(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!a(t.parent,t);)t=t.parent;return t}function a(e,t){switch(e.kind){case 233:case 234:return R.rangeContainsRange(e.members,t);case 237:var r=e.body;return r&&238===r.kind&&R.rangeContainsRange(r.statements,t);case 272:case 211:case 238:return R.rangeContainsRange(e.statements,t);case 267:return R.rangeContainsRange(e.block.statements,t)}return!1}function s(e,t,r,n){return e?l({pos:R.getLineStartPositionForPosition(e.getStart(t),t),end:e.end},t,r,n):[]}function l(t,r,n,a){var i,o,s=(i=t,function e(t){var r=R.forEachChild(t,function(e){return R.startEndContainsRange(e.getStart(o),e.end,i)&&e});if(r){var n=e(r);if(n)return n}return t}(o=r));return M.getFormattingScanner(r.text,r.languageVariant,function(e,t,r){var n=e.getStart(r);if(n===t.pos&&e.end===t.end)return n;var a=R.findPrecedingToken(t.pos,r);return a?a.end>=t.pos?e.pos:a.end:e.pos}(s,t,r),t.end,function(e){return d(t,s,M.SmartIndenter.getIndentationForNode(s,t,r,n.options),function(e,t,r){for(var n,a=-1;e;){var i=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&i!==a)break;if(M.SmartIndenter.shouldIndentChildNode(e,n))return t.indentSize;a=i,e=(n=e).parent}return 0}(s,n.options,r),e,n,a,function(e,t){if(!e.length)return a;var r=e.filter(function(e){return R.rangeOverlapsWithStartEnd(t,e.start,e.start+e.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return a;var n=0;return function(e){for(;;){if(n>=r.length)return!1;var t=r[n];if(e.end<=t.start)return!1;if(R.startEndOverlapsWithStartEnd(e.pos,e.end,t.start,t.start+t.length))return!0;n++}};function a(){return!1}}(r.parseDiagnostics,t),r)})}function d(b,e,t,r,x,n,a,k,D){var S,o,s,C,T,i,c,u,E=n.options,l=n.getRule,d=new M.FormattingContext(D,a,E),_=[];if(x.advance(),x.isOnToken()){var p=D.getLineAndCharacterOfPosition(e.getStart(D)).line,f=p;e.decorators&&(f=D.getLineAndCharacterOfPosition(R.getNonDecoratorTokenPosOfNode(e,D)).line),function g(y,e,t,r,n,a){if(!R.rangeOverlapsWithStartEnd(b,y.getStart(D),y.getEnd()))return;var i=A(y,t,n,a);var h=e;R.forEachChild(y,function(e){p(e,-1,y,i,t,r,!1)},function(e){!function(e,t,r,n){R.Debug.assert(R.isNodeArray(e));var a=function(e,t){switch(e.kind){case 154:case 232:case 190:case 153:case 152:case 191:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 185:case 186:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 161:if(e.typeArguments===t)return 27}return 0}(t,e),i=function(e){switch(e){case 19:return 20;case 27:return 29}return 0}(a),o=n,s=r;if(0!==a)for(;x.isOnToken();){var c=x.readTokenInfo(t);if(c.token.end>e.pos)break;if(c.token.kind===a){s=D.getLineAndCharacterOfPosition(c.token.pos).line;var u=N(c.token,s,-1,t,n,r);o=A(t,r,u.indentation,u.delta),v(c,t,o,t)}else v(c,t,n,t)}for(var _=-1,l=0;l<e.length;l++){var d=e[l];_=p(d,_,y,o,s,s,!0,0===l)}if(0!==i&&x.isOnToken()){var c=x.readTokenInfo(t);c.token.kind===i&&R.rangeContainsRange(t,c.token)&&v(c,t,o,t)}}(e,y,t,i)});for(;x.isOnToken();){var o=x.readTokenInfo(y);if(o.token.end>y.end)break;v(o,y,i,y)}function p(e,t,r,n,a,i,o,s){var c=e.getStart(D),u=D.getLineAndCharacterOfPosition(c).line,_=u;e.decorators&&(_=D.getLineAndCharacterOfPosition(R.getNonDecoratorTokenPosOfNode(e,D)).line);var l=-1;if(o&&R.rangeContainsRange(b,r)&&-1!==(l=function(e,t,r,n,a){if(R.rangeOverlapsWithStartEnd(n,e,t)||R.rangeContainsStartEnd(n,e,t)){if(-1!==a)return a}else{var i=D.getLineAndCharacterOfPosition(e).line,o=R.getLineStartPositionForPosition(e,D),s=M.SmartIndenter.findFirstNonWhitespaceColumn(o,e,D,E);if(i!==r||e===s){var c=M.SmartIndenter.getBaseIndentation(E);return s<c?c:s}}return-1}(c,e.end,a,b,t))&&(t=l),!R.rangeOverlapsWithStartEnd(b,e.pos,e.end))return e.end<b.pos&&x.skipToEndOf(e),t;if(0===e.getFullWidth())return t;for(;x.isOnToken();){var d=x.readTokenInfo(y);if(d.token.end>c)break;v(d,y,n,y)}if(!x.isOnToken())return t;if(R.isToken(e)&&10!==e.kind){var d=x.readTokenInfo(e);return R.Debug.assert(d.token.end===e.end,"Token end is child end"),v(d,y,n,e),t}var p=149===e.kind?u:i,f=N(e,u,l,y,n,p);if(g(e,h,u,_,f.indentation,f.delta),10===e.kind){var m={pos:e.getStart(),end:e.getEnd()};I(m,f.indentation,!0,!1)}return h=y,s&&181===r.kind&&-1===t&&(t=f.indentation),t}function v(e,t,r,n){R.Debug.assert(R.rangeContainsRange(t,e.token));var a=x.lastTrailingTriviaWasNewLine(),i=!1;e.leadingTrivia&&P(e.leadingTrivia,t,h,r);var o=0,s=R.rangeContainsRange(b,e.token),c=D.getLineAndCharacterOfPosition(e.token.pos);if(s){var u=k(e.token),_=S;if(o=F(e.token,c,t,h,r),!u)if(0===o){var l=_&&D.getLineAndCharacterOfPosition(_.end).line;i=a&&c.line!==l}else i=1===o}if(e.trailingTrivia&&P(e.trailingTrivia,t,h,r),i){var d=s&&!k(e.token)?r.getIndentationForToken(c.line,e.token.kind,n):-1,p=!0;if(e.leadingTrivia)for(var f=r.getIndentationForComment(e.token.kind,d,n),m=0,g=e.leadingTrivia;m<g.length;m++){var y=g[m],v=R.rangeContainsRange(b,y);switch(y.kind){case 3:v&&I(y,f,!p),p=!1;break;case 2:p&&v&&w(y.pos,f,!1),p=!1;break;case 4:p=!0}}-1!==d&&p&&(w(e.token.pos,d,1===o),C=c.line,T=d)}x.advance(),h=t}}(e,e,p,f,t,r)}if(!x.isOnToken()){var m=x.getCurrentLeadingTrivia();m&&(P(m,e,e,void 0),i=S?S.end:b.pos,c=D.getLineAndCharacterOfPosition(i).line,u=D.getLineAndCharacterOfPosition(b.end).line,g(c,u+1,S))}return _;function N(e,t,r,n,a,i){var o=M.SmartIndenter.shouldIndentChildNode(e)?E.indentSize:0;return i===t?{indentation:t===C?T:a.getIndentation(),delta:Math.min(E.indentSize,a.getDelta(e)+o)}:-1===r?19===e.kind&&t===C?{indentation:T,delta:a.getDelta(e)}:M.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(n,e,t,D)?{indentation:a.getIndentation(),delta:o}:{indentation:a.getIndentation()+a.getDelta(e),delta:o}:{indentation:r,delta:o}}function A(n,a,i,t){return{getIndentationForComment:function(e,t,r){switch(e){case 18:case 22:case 20:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(e,t,r){return function(e,t,r){switch(t){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(r.kind){case 255:case 256:case 254:return!1}break;case 21:case 22:if(176!==r.kind)return!1}return a!==e&&!(n.decorators&&t===function(e){if(e.modifiers&&e.modifiers.length)return e.modifiers[0].kind;switch(e.kind){case 233:return 75;case 234:return 109;case 232:return 89;case 236:return 236;case 155:return 125;case 156:return 136;case 153:if(e.asteriskToken)return 39;case 151:case 148:return R.getNameOfDeclaration(e).kind}}(n))}(e,t,r)?i+o(r):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){n.parent&&M.SmartIndenter.shouldIndentChildNode(n.parent,n)&&(i+=e?E.indentSize:-E.indentSize,t=M.SmartIndenter.shouldIndentChildNode(n)?E.indentSize:0)}};function o(e){return M.SmartIndenter.nodeWillIndentChild(n,e,!0)?t:0}}function P(e,t,r,n){for(var a=0,i=e;a<i.length;a++){var o=i[a];if(R.isComment(o.kind)&&R.rangeContainsRange(b,o))F(o,D.getLineAndCharacterOfPosition(o.pos),t,r,n)}}function F(e,t,r,n,a){var i=0;k(e)||(S?i=function(e,t,r,n,a,i,o,s){d.updateContext(n,i,e,r,o);var c,u=l(d),_=0;if(u){switch(_=function(e,t,r,n,a){var i=a!==r;switch(e.action){case 1:return 0;case 8:if(t.end!==n.pos)return h(t.end,n.pos-t.end),i?2:0;break;case 4:if(1!==e.flags&&r!==a)return 0;var o=a-r;if(1!==o)return O(t.end,n.pos-t.end,E.newLineCharacter),i?0:1;break;case 2:if(1!==e.flags&&r!==a)return 0;var s=n.pos-t.end;if(1!==s||32!==D.text.charCodeAt(t.end))return O(t.end,n.pos-t.end," "),i?2:0}return 0}(u,n,a,e,t)){case 2:r.getStart(D)===e.pos&&s.recomputeIndentation(!1);break;case 1:r.getStart(D)===e.pos&&s.recomputeIndentation(!0);break;default:R.Debug.assert(0===_)}c=!(8&u.action)&&1!==u.flags}else c=!0;t!==a&&c&&g(a,t,n);return _}(e,t.line,r,S,s,o,n,a):g(D.getLineAndCharacterOfPosition(b.pos).line,t.line));return S=e,o=r,s=t.line,i}function w(e,t,r){var n,a,i=L(t,E);if(r)O(e,0,i);else{var o=D.getLineAndCharacterOfPosition(e),s=R.getStartPositionOfLine(o.line,D);t===function(e,t){for(var r=0,n=0;n<t;n++)9===D.text.charCodeAt(e+n)?r+=E.tabSize-r%E.tabSize:r++;return r}(s,o.character)&&(a=s,(n=i)===D.text.substr(a,n.length))||O(s,o.character,i)}}function I(e,t,r,n){void 0===n&&(n=!0);var a,i=D.getLineAndCharacterOfPosition(e.pos).line,o=D.getLineAndCharacterOfPosition(e.end).line;if(i!==o){a=[];for(var s=e.pos,c=i;c<o;c++){var u=R.getEndLinePosition(c,D);a.push({pos:s,end:u}),s=R.getStartPositionOfLine(c+1,D)}n&&a.push({pos:s,end:e.end});var _=R.getStartPositionOfLine(i,D),l=M.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(_,a[0].pos,D,E);if(t!==l.column){var d=0;r&&(d=1,i++);for(var p=t-l.column,f=d;f<a.length;f++,i++){var m=R.getStartPositionOfLine(i,D),g=0===f?l:M.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(a[f].pos,a[f].end,D,E),y=g.column+p;if(0<y){var v=L(y,E);O(m,g.character,v)}else h(m,g.character)}}}else r||w(e.pos,t,!1)}function g(e,t,r){for(var n=e;n<t;n++){var a=R.getStartPositionOfLine(n,D),i=R.getEndLinePosition(n,D);if(!(r&&(R.isComment(r.kind)||R.isStringOrRegularExpressionOrTemplateLiteral(r.kind))&&r.pos<=i&&r.end>i)){var o=y(a,i);-1!==o&&(R.Debug.assert(o===a||!R.isWhiteSpaceSingleLine(D.text.charCodeAt(o-1))),h(o,i+1-o))}}}function y(e,t){for(var r=t;e<=r&&R.isWhiteSpaceSingleLine(D.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function h(e,t){t&&_.push(R.createTextChangeFromStartLength(e,t,""))}function O(e,t,r){(t||r)&&_.push(R.createTextChangeFromStartLength(e,t,r))}}function L(e,t){if((!c||c.tabSize!==t.tabSize||c.indentSize!==t.indentSize)&&(c={tabSize:t.tabSize,indentSize:t.indentSize},u=_=void 0),t.convertTabsToSpaces){var r=void 0,n=Math.floor(e/t.indentSize),a=e%t.indentSize;return _||(_=[]),void 0===_[n]?(r=R.repeatString(" ",t.indentSize*n),_[n]=r):r=_[n],a?r+R.repeatString(" ",a):r}var i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s=void 0;return u||(u=[]),void 0===u[i]?u[i]=s=R.repeatString("\t",i):s=u[i],o?s+R.repeatString(" ",o):s}(t=e||(e={}))[t.Unknown=-1]="Unknown",M.formatOnEnter=function(e,t,r){var n=t.getLineAndCharacterOfPosition(e).line;if(0===n)return[];for(var a=R.getEndLinePosition(n,t);R.isWhiteSpaceSingleLine(t.text.charCodeAt(a));)a--;return R.isLineBreak(t.text.charCodeAt(a))&&a--,l({pos:R.getStartPositionOfLine(n-1,t),end:a+1},t,r,2)},M.formatOnSemicolon=function(e,t,r){return s(o(i(e,25,t)),t,r,3)},M.formatOnOpeningCurly=function(e,t,r){var n=i(e,17,t);if(!n)return[];var a=o(n.parent);return l({pos:R.getLineStartPositionForPosition(a.getStart(t),t),end:e},t,r,4)},M.formatOnClosingCurly=function(e,t,r){return s(o(i(e,18,t)),t,r,5)},M.formatDocument=function(e,t){return l({pos:0,end:e.text.length},e,t,0)},M.formatSelection=function(e,t,r,n){return l({pos:R.getLineStartPositionForPosition(e,r),end:t},r,n,1)},M.formatNodeGivenIndentation=function(t,r,e,n,a,i){var o={pos:0,end:r.text.length};return M.getFormattingScanner(r.text,e,o.pos,o.end,function(e){return d(o,t,n,a,e,i,1,function(e){return!1},r)})},(n=r||(r={}))[n.None=0]="None",n[n.LineAdded=1]="LineAdded",n[n.LineRemoved=2]="LineRemoved",M.getRangeOfEnclosingComment=function(e,t,r,n,a,i){if(void 0===a&&(a=R.getTokenAtPosition(e,t,!1)),!(a.getStart(e)<=t&&t<a.getEnd())){void 0===n&&(n=R.findPrecedingToken(t,e));var o=n&&R.getTrailingCommentRanges(e.text,n.end),s=R.getLeadingCommentRangesOfNode(a,e),c=o&&s?o.concat(s):o||s;if(c)for(var u=0,_=c;u<_.length;u++){var l=_[u];if(l.pos<t&&t<l.end||t===l.end&&(2===l.kind||t===e.getFullWidth()))return 3!==l.kind&&r||i&&!i(l)?void 0:l}}},M.getIndentationString=L}(R.formatting||(R.formatting={}))}(ts||(ts={})),function(w){var m;(function(e){var t,r,n,a;function S(e){return e.baseIndentSize||0}function y(e,t,r,n,a,i,o){for(var s,c,u,_,l=e.parent;l;){var d=!0;if(r){var p=e.getStart(a);d=p<r.pos||p>r.end}if(d&&-1!==(g=N(e,a,o)))return g+n;var f=(s=l,u=E(e,c=a),_=u?u.pos:s.getStart(c),c.getLineAndCharacterOfPosition(_)),m=f.line===t.line||T(l,e,t.line,a);if(d){var g;if(-1!==(v=e,h=l,b=t,x=m,k=a,D=o,g=!w.isDeclaration(v)&&!w.isStatementButNotDeclaration(v)||272!==h.kind&&x?-1:P(b,k,D)))return g+n;if(-1!==(g=A(e,a,o)))return g+n}F(l,e,i)&&!m&&(n+=o.indentSize);var y=C(l,e,t.line,a);l=(e=l).parent,t=y?a.getLineAndCharacterOfPosition(e.getStart(a)):f}var v,h,b,x,k,D;return n+S(o)}function v(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function C(e,t,r,n){if(!w.isCallExpression(e)||!w.contains(e.arguments,t))return!1;var a=e.expression.getEnd();return w.getLineAndCharacterOfPosition(n,a).line===r}function T(e,t,r,n){if(215===e.kind&&e.elseStatement===t){var a=w.findChildOfKind(e,82,n);return w.Debug.assert(void 0!==a),v(a,n).line===r}return!1}function i(e,t,r){return e&&w.rangeContainsStartEnd(e,t,r)?e:void 0}function E(e,t){if(e.parent)switch(e.parent.kind){case 161:return i(e.parent.typeArguments,e.getStart(t),e.getEnd());case 182:return e.parent.properties;case 181:return e.parent.elements;case 232:case 190:case 191:case 153:case 152:case 157:case 154:case 163:case 158:var r=e.getStart(t);return i(e.parent.typeParameters,r,e.getEnd())||i(e.parent.parameters,r,e.getEnd());case 233:return i(e.parent.typeParameters,e.getStart(t),e.getEnd());case 186:case 185:return r=e.getStart(t),i(e.parent.typeArguments,r,e.getEnd())||i(e.parent.arguments,r,e.getEnd());case 231:return i(e.parent.declarations,e.getStart(t),e.getEnd());case 245:case 249:return i(e.parent.elements,e.getStart(t),e.getEnd())}}function N(e,t,r){var n=E(e,t);if(n){var a=n.indexOf(e);if(-1!==a)return d(n,a,t,r)}return-1}function A(e,t,r){if(20===e.kind)return-1;if(e.parent&&w.isCallOrNewExpression(e.parent)&&e.parent.expression!==e){var n=e.parent.expression,a=function(e){for(;;)switch(e.kind){case 185:case 186:case 183:case 184:e=e.expression;break;default:return e}}(n);if(n===a)return-1;var i=t.getLineAndCharacterOfPosition(n.end),o=t.getLineAndCharacterOfPosition(a.end);return i.line===o.line?-1:P(i,t,r)}return-1}function d(e,t,r,n){w.Debug.assert(0<=t&&t<e.length);for(var a=v(e[t],r),i=t-1;0<=i;i--)if(26!==e[i].kind){if(r.getLineAndCharacterOfPosition(e[i].end).line!==a.line)return P(a,r,n);a=v(e[i],r)}return-1}function P(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return f(n,n+e.character,t,r)}function p(e,t,r,n){for(var a=0,i=0,o=e;o<t;o++){var s=r.text.charCodeAt(o);if(!w.isWhiteSpaceSingleLine(s))break;9===s?i+=n.tabSize+i%n.tabSize:i++,a++}return{column:i,character:a}}function f(e,t,r,n){return p(e,t,r,n).column}function o(e,t,r){var n=t?t.kind:0;switch(e.kind){case 216:case 217:case 219:case 220:case 218:case 215:case 232:case 190:case 153:case 191:case 154:case 155:case 156:return 211!==n;case 248:return 249!==n;case 242:return 243!==n||!!t.namedBindings&&245!==t.namedBindings.kind;case 253:return 256!==n;case 257:return 259!==n}return r}function F(e,t,r){return void 0===r&&(r=!1),(function(e){switch(e){case 214:case 233:case 203:case 234:case 236:case 235:case 181:case 211:case 238:case 182:case 165:case 176:case 167:case 239:case 265:case 264:case 189:case 183:case 185:case 186:case 212:case 230:case 247:case 223:case 199:case 179:case 178:case 255:case 258:case 254:case 263:case 152:case 157:case 158:case 148:case 162:case 163:case 172:case 187:case 195:case 249:case 245:case 250:case 246:case 268:case 151:return!0}return!1}(e.kind)||o(e,t,!1))&&!(r&&t&&function(e,t){switch(e){case 223:case 227:if(211!==t.kind)return!0;var r=t.parent;return!(r&&190===r.kind||232===r.kind);case 221:case 222:return!0;default:return!1}}(t.kind,e))}(r=t||(t={}))[r.Unknown=-1]="Unknown",e.getIndentation=function(e,t,r,n){if(void 0===n&&(n=!1),e>t.text.length)return S(r);if(r.indentStyle===w.IndentStyle.None)return 0;var a=w.findPrecedingToken(e,t),i=m.getRangeOfEnclosingComment(t,e,!0,a||null);if(i)return function(e,t,r,n){var a=w.getLineAndCharacterOfPosition(e,t).line-1,i=w.getLineAndCharacterOfPosition(e,n.pos).line;if(w.Debug.assert(0<=i),a<=i)return f(w.getStartPositionOfLine(i,e),t,e,r);var o=w.getStartPositionOfLine(a,e),s=p(o,t,e,r),c=s.column,u=s.character;return 0===c?c:42===e.text.charCodeAt(o+u)?c-1:c}(t,e,r,i);if(!a)return S(r);if(w.isStringOrRegularExpressionOrTemplateLiteral(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;var o,s,c,u,_=t.getLineAndCharacterOfPosition(e).line;if(r.indentStyle===w.IndentStyle.Block)return function(e,t,r){for(var n=t;0<n;){var a=e.text.charCodeAt(n);if(!w.isWhiteSpaceLike(a))break;n--}return f(w.getLineStartPositionForPosition(n,e),n,e,r)}(t,e,r);if(26===a.kind&&198!==a.parent.kind){var l=(o=a,s=t,c=r,(u=w.findListItemInfo(o))&&0<u.listItemIndex?d(u.list.getChildren(),u.listItemIndex-1,s,c):-1);if(-1!==l)return l}return function(e,t,r,n,a,i){for(var o,s=r;s;){if(w.positionBelongsToNode(s,t,e)&&F(s,o,!0)){var c=v(s,e),u=(d=r,p=s,f=n,m=e,void 0,(g=w.findNextToken(d,p))?17===g.kind?1:18===g.kind&&f===v(g,m).line?2:0:0),_=0!==u?a&&2===u?i.indentSize:0:n!==c.line?i.indentSize:0;return y(s,c,void 0,_,e,!0,i)}var l=N(s,e,i);if(-1!==l)return l;if(-1!==(l=A(s,e,i)))return l+i.indentSize;s=(o=s).parent}var d,p,f,m,g;return S(i)}(t,e,a,_,n,r)},e.getIndentationForNode=function(e,t,r,n){return y(e,r.getLineAndCharacterOfPosition(e.getStart(r)),t,0,r,!1,n)},e.getBaseIndentation=S,(a=n||(n={}))[a.Unknown=0]="Unknown",a[a.OpenBrace=1]="OpenBrace",a[a.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=C,e.childStartsOnTheSameLineWithElseInIfStatement=T,e.getContainingList=E,e.findFirstNonWhitespaceCharacterAndColumn=p,e.findFirstNonWhitespaceColumn=f,e.nodeWillIndentChild=o,e.shouldIndentChildNode=F})((m=w.formatting||(w.formatting={})).SmartIndenter||(m.SmartIndenter={}))}(ts||(ts={})),function(S){!function(s){function c(e){var t=e.__pos;return S.Debug.assert("number"==typeof t),t}function a(e,t){S.Debug.assert("number"==typeof t),e.__pos=t}function u(e){var t=e.__end;return S.Debug.assert("number"==typeof t),t}function i(e,t){S.Debug.assert("number"==typeof t),e.__end=t}var p,e,v,t;function h(e,t){return S.skipTrivia(e,t,!1,!0)}function f(e,t,r,n){if(r.useNonAdjustedStartPosition)return t.getStart(e);var a=t.getFullStart(),i=t.getStart(e);if(a===i)return i;var o=S.getLineStartPositionForPosition(a,e);if(S.getLineStartPositionForPosition(i,e)===o)return n===p.Start?i:a;var s=0<a?1:0,c=S.getStartPositionOfLine(S.getLineOfLocalPosition(e,o)+s,e);return c=h(e.text,c),S.getStartPositionOfLine(S.getLineOfLocalPosition(e,c),e)}function m(e,t,r){if(r.useNonAdjustedEndPosition||S.isExpression(t))return t.getEnd();var n=t.getEnd(),a=S.skipTrivia(e.text,n,!0);return a!==n&&S.isLineBreak(e.text.charCodeAt(a-1))?a:n}function b(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&182===e.parent.kind)}(e=p=s.Position||(s.Position={}))[e.FullStart=0]="FullStart",e[e.Start=1]="Start",s.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},(t=v||(v={}))[t.Remove=0]="Remove",t[t.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",t[t.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",s.getSeparatorCharacter=function(e){return S.tokenToString(e.kind)},s.getAdjustedStartPosition=f,s.getAdjustedEndPosition=m;var r,n=function(){function n(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.deletedNodesInLists=[],this.nodesInsertedAtClassStarts=S.createMap()}return n.fromContext=function(e){return new n(S.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),e.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.deleteRange=function(e,t){return this.changes.push({kind:v.Remove,sourceFile:e,range:t}),this},n.prototype.deleteNode=function(e,t,r){void 0===r&&(r={});var n=f(e,t,r,p.FullStart),a=m(e,t,r);return this.deleteRange(e,{pos:n,end:a}),this},n.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var a=f(e,t,n,p.FullStart),i=m(e,r,n);return this.deleteRange(e,{pos:a,end:i}),this},n.prototype.deleteNodeInList=function(e,t){var r=S.formatting.SmartIndenter.getContainingList(t,e);if(!r)return S.Debug.fail("node is not a list element"),this;var n=S.indexOfNode(r,t);if(n<0)return this;if(1===r.length)return this.deleteNode(e,t),this;var a=S.getNodeId(t);if(S.Debug.assert(!this.deletedNodesInLists[a],"Deleting a node twice"),this.deletedNodesInLists[a]=!0,n!==r.length-1){var i=S.getTokenAtPosition(e,t.end,!1);if(i&&b(t,i)){var o=S.skipTrivia(e.text,f(e,t,{},p.FullStart),!1,!0),s=r[n+1],c=S.skipTrivia(e.text,f(e,s,{},p.FullStart),!1,!0);this.deleteRange(e,{pos:o,end:c})}}else{var u=r[n-1];if(this.deletedNodesInLists[S.getNodeId(u)]){var _=S.skipTrivia(e.text,f(e,t,{},p.FullStart),!1,!0),l=m(e,t,{});this.deleteRange(e,{pos:_,end:l})}else{var d=S.getTokenAtPosition(e,r[n-1].end,!1);d&&b(t,d)&&this.deleteNodeRange(e,d,t)}}return this},n.prototype.replaceRange=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r}),this},n.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n={});var a=f(e,t,n,p.Start),i=m(e,t,n);return this.replaceRange(e,{pos:a,end:i},r,n)},n.prototype.replaceNodeRange=function(e,t,r,n,a){void 0===a&&(a={});var i=f(e,t,a,p.Start),o=m(e,r,a);return this.replaceRange(e,{pos:i,end:o},n,a)},n.prototype.replaceRangeWithNodes=function(e,t,r,n){return void 0===n&&(n=s.useNonAdjustedPositions),this.changes.push({kind:v.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r}),this},n.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=s.useNonAdjustedPositions);var a=f(e,t,n,p.Start),i=m(e,t,n);return this.replaceRangeWithNodes(e,{pos:a,end:i},r,n)},n.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,a){void 0===a&&(a=s.useNonAdjustedPositions);var i=f(e,t,a,p.Start),o=m(e,r,a);return this.replaceRangeWithNodes(e,{pos:i,end:o},n,a)},n.prototype.insertNodeAt=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,options:n,node:r,range:{pos:t,end:t}}),this},n.prototype.insertNodesAt=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:v.ReplaceWithMultipleNodes,sourceFile:e,options:n,nodes:r,range:{pos:t,end:t}})},n.prototype.insertNodeAtTopOfFile=function(e,t,r){var n=function(e){var t=e.text,r=S.getShebang(t),n=0;void 0!==r&&(n=r.length,c());var a=S.getLeadingCommentRanges(t,n);if(!a)return n;a.length&&3===a[0].kind&&S.isPinnedComment(t,a[0])&&(n=a[0].end,c(),a=a.slice(1));for(var i=0,o=a;i<o.length;i++){var s=o[i];if(2!==s.kind||!S.isRecognizedTripleSlashComment(t,s.pos,s.end))break;n=s.end,c()}return n;function c(){if(n<t.length){var e=t.charCodeAt(n);S.isLineBreak(e)&&++n<t.length&&13===e&&10===t.charCodeAt(n)&&n++}}}(e);this.insertNodeAt(e,n,t,{prefix:0===n?void 0:this.newLineCharacter,suffix:(S.isLineBreak(e.text.charCodeAt(n))?"":this.newLineCharacter)+(r?this.newLineCharacter:"")})},n.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n=!1);var a=f(e,t,{},p.Start);return this.replaceRange(e,{pos:a,end:a},r,this.getOptionsForInsertNodeBefore(t,n))},n.prototype.insertModifierBefore=function(e,t,r){var n=r.getStart(e);this.replaceRange(e,{pos:n,end:n},S.createToken(t),{suffix:" "})},n.prototype.insertTypeAnnotation=function(e,t,r){var n=(S.isFunctionLike(t)?S.findChildOfKind(t,20,e)||S.first(t.parameters):230!==t.kind&&t.questionToken?t.questionToken:t.name).end;this.insertNodeAt(e,n,r,{prefix:": "})},n.prototype.insertTypeParameters=function(e,t,r){var n=(S.findChildOfKind(t,19,e)||S.first(t.parameters)).getStart(e);this.insertNodesAt(e,n,r,{prefix:"<",suffix:">"})},n.prototype.getOptionsForInsertNodeBefore=function(e,t){return S.isStatement(e)||S.isClassElement(e)?{suffix:t?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:S.isVariableDeclaration(e)?{suffix:", "}:S.isParameter(e)?{}:S.Debug.failBadSyntaxKind(e)},n.prototype.insertNodeAtConstructorStart=function(e,t,r){var n=S.firstOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeBefore(e,n,r):this.replaceConstructorBody(e,t,[r].concat(t.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(e,t,r){var n=S.lastOrUndefined(t.body.statements);n&&t.body.multiLine?this.insertNodeAfter(e,n,r):this.replaceConstructorBody(e,t,t.body.statements.concat([r]))},n.prototype.replaceConstructorBody=function(e,t,r){this.replaceNode(e,t.body,S.createBlock(r,!0),{useNonAdjustedEndPosition:!0})},n.prototype.insertNodeAtEndOfScope=function(e,t,r){var n=f(e,t.getLastToken(),{},p.Start);this.replaceRange(e,{pos:n,end:n},r,{prefix:S.isLineBreak(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,t,r){var n=S.firstOrUndefined(t.members);if(n)this.insertNodeBefore(e,n,r);else{var a=S.getNodeId(t).toString(),i=this.nodesInsertedAtClassStarts.get(a);i?(S.Debug.assert(i.sourceFile===e&&i.cls===t),i.members.push(r)):this.nodesInsertedAtClassStarts.set(a,{sourceFile:e,cls:t,members:[r]})}},n.prototype.insertNodeAfter=function(e,t,r){(S.isStatementButNotDeclaration(t)||151===t.kind||150===t.kind||152===t.kind)&&59!==e.text.charCodeAt(t.end-1)&&this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,options:{},range:{pos:t.end,end:t.end},node:S.createToken(25)});var n=m(e,t,{});return this.replaceRange(e,{pos:n,end:n},r,this.getInsertNodeAfterOptions(t))},n.prototype.getInsertNodeAfterOptions=function(e){return S.isClassDeclaration(e)||S.isModuleDeclaration(e)?{prefix:this.newLineCharacter,suffix:this.newLineCharacter}:S.isStatement(e)||S.isClassElement(e)||S.isTypeElement(e)?{suffix:this.newLineCharacter}:S.isVariableDeclaration(e)?{prefix:", "}:S.isParameter(e)?{}:S.Debug.failBadSyntaxKind(e)},n.prototype.insertNodeInListAfter=function(e,t,r){var n=S.formatting.SmartIndenter.getContainingList(t,e);if(!n)return S.Debug.fail("node is not a list element"),this;var a=S.indexOfNode(n,t);if(a<0)return this;var i=t.getEnd();if(a!==n.length-1){var o=S.getTokenAtPosition(e,t.end,!1);if(o&&b(t,o)){var s=S.getLineAndCharacterOfPosition(e,h(e.text,n[a+1].getFullStart())),c=S.getLineAndCharacterOfPosition(e,o.end),u=void 0,_=void 0;c.line===s.line?(_=o.end,u=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(s.character-c.character)):_=S.getStartPositionOfLine(s.line,e),this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,range:{pos:_,end:n[a+1].getStart(e)},node:r,options:{prefix:u,suffix:""+S.tokenToString(o.kind)+e.text.substring(o.end,n[a+1].getStart(e))}})}}else{var l=t.getStart(e),d=S.getLineStartPositionForPosition(l,e),p=void 0,f=!1;if(1===n.length)p=26;else{var m=S.findPrecedingToken(t.pos,e);p=b(t,m)?m.kind:26,f=S.getLineStartPositionForPosition(n[a-1].getStart(e),e)!==d}if(function(e,t){for(var r=t;r<e.length;){var n=e.charCodeAt(r);if(!S.isWhiteSpaceSingleLine(n))return 47===n;r++}return!1}(e.text,t.end)&&(f=!0),f){this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,range:{pos:i,end:i},node:S.createToken(p),options:{}});var g=S.formatting.SmartIndenter.findFirstNonWhitespaceColumn(d,l,e,this.formatContext.options),y=S.skipTrivia(e.text,i,!0,!1);y!==i&&S.isLineBreak(e.text.charCodeAt(y-1))&&y--,this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,range:{pos:y,end:y},node:r,options:{indentation:g,prefix:this.newLineCharacter}})}else this.changes.push({kind:v.ReplaceWithSingleNode,sourceFile:e,range:{pos:i,end:i},node:r,options:{prefix:S.tokenToString(p)+" "}})}return this},n.prototype.finishInsertNodeAtClassStart=function(){var i=this;this.nodesInsertedAtClassStarts.forEach(function(e){var t=e.sourceFile,r=e.cls,n=e.members,a=233===r.kind?S.updateClassDeclaration(r,r.decorators,r.modifiers,r.name,r.typeParameters,r.heritageClauses,n):S.updateClassExpression(r,r.modifiers,r.name,r.typeParameters,r.heritageClauses,n);i.replaceNode(t,r,a,{useNonAdjustedEndPosition:!0})})},n.prototype.getChanges=function(e){return this.finishInsertNodeAtClassStart(),r.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e)},n}();function x(e,t){for(var r=t.length-1;0<=r;r--){var n=t[r];e=""+e.substring(0,n.span.start)+n.newText+e.substring(S.textSpanEnd(n.span))}return e}function k(e){var t=S.visitEachChild(e,k,S.nullTransformationContext,o,k),r=S.nodeIsSynthesized(t)?t:Object.create(t);return r.pos=c(e),r.end=u(e),r}function o(e,t,r,n,a){var i=S.visitNodes(e,t,r,n,a);if(!i)return i;var o=i===e?S.createNodeArray(i.slice(0)):i;return o.pos=c(e),o.end=u(e),o}s.ChangeTracker=n,(r||(r={})).getTextChangesFromChanges=function(e,o,s,c){return S.group(e,function(e){return e.sourceFile.path}).map(function(e){for(var t=e[0].sourceFile,r=S.stableSort(e,function(e,t){return e.range.pos-t.range.pos}),n=function(e){S.Debug.assert(r[e].range.end<=r[e+1].range.pos,"Changes overlap",function(){return JSON.stringify(r[e].range)+" and "+JSON.stringify(r[e+1].range)})},a=0;a<r.length-2;a++)n(a);var i=r.map(function(e){return S.createTextChange(S.createTextSpanFromRange(e.range),function(e,t,r,n,a){if(e.kind===v.Remove)return"";var i=e.options,o=void 0===i?{}:i,s=e.range.pos,c=function(e){return function(e,t,r,n,a,i,o){var s,c,u,_,l,d=(s=e,c=t,_=new D(u=a),l="\n"===u?1:0,S.createPrinter({newLine:l},_).writeNode(4,s,c,_),{text:_.getText(),node:k(s)}),p=d.node,f=d.text;o&&o(p,f);var m=i.options,g=void 0!==n.indentation?n.indentation:!1!==n.useIndentationFromFile?S.formatting.SmartIndenter.getIndentation(r,t,m,n.prefix===a||S.getLineStartPositionForPosition(r,t)===r):0,y=void 0!==n.delta?n.delta:S.formatting.SmartIndenter.shouldIndentChildNode(e)&&m.indentSize||0,v={text:f,getLineAndCharacterOfPosition:function(e){return S.getLineAndCharacterOfPosition(this,e)}},h=S.formatting.formatNodeGivenIndentation(p,v,t.languageVariant,g,y,i);return x(f,h)}(e,t,s,o,r,n,a)},u=e.kind===v.ReplaceWithMultipleNodes?e.nodes.map(function(e){return S.removeSuffix(c(e),r)}).join(r):c(e.node),_=o.preserveLeadingWhitespace||void 0!==o.indentation||S.getLineStartPositionForPosition(s,t)===s?u:u.replace(/^\s+/,"");return(o.prefix||"")+_+(o.suffix||"")}(e,t,o,s,c))});return{fileName:t.fileName,textChanges:i}})},s.applyChanges=x;var D=function(){function e(e){var n=this;this.lastNonTriviaPosition=0,this.writer=S.createTextWriter(e),this.onEmitNode=function(e,t,r){t&&a(t,n.lastNonTriviaPosition),r(e,t),t&&i(t,n.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&a(e,n.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&i(e,n.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&a(e,n.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&i(e,n.lastNonTriviaPosition)}}return e.prototype.setLastNonTriviaPosition=function(e,t){if(t||(n=e,S.skipTrivia(n,0)!==n.length)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var r=0;S.isWhiteSpaceLike(e.charCodeAt(e.length-r-1));)r++;this.lastNonTriviaPosition-=r}var n},e.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeSymbol=function(e,t){this.writer.writeSymbol(e,t),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeTextOfNode=function(e,t){this.writer.writeTextOfNode(e,t)},e.prototype.writeLine=function(){this.writer.writeLine()},e.prototype.increaseIndent=function(){this.writer.increaseIndent()},e.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},e.prototype.getText=function(){return this.writer.getText()},e.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},e.prototype.getTextPos=function(){return this.writer.getTextPos()},e.prototype.getLine=function(){return this.writer.getLine()},e.prototype.getColumn=function(){return this.writer.getColumn()},e.prototype.getIndent=function(){return this.writer.getIndent()},e.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},e.prototype.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},e}()}(S.textChanges||(S.textChanges={}))}(ts||(ts={})),function(c){var e,u,_;e=c.codefix||(c.codefix={}),u=[],_=c.createMap(),e.registerCodeFix=function(e){for(var t=0,r=e.errorCodes;t<r.length;t++){var n=r[t],a=u[n];a||(a=[],u[n]=a),a.push(e)}if(e.fixIds)for(var i=0,o=e.fixIds;i<o.length;i++){var s=o[i];c.Debug.assert(!_.has(s)),_.set(s,e)}},e.getSupportedErrorCodes=function(){return Object.keys(u)},e.getFixes=function(i){var e=u[i.errorCode],o=[];return c.forEach(e,function(e){var t=e.getCodeActions(i);if(t&&0<t.length)for(var r=0,n=t;r<n.length;r++){var a=n[r];void 0===a?i.host.log("Action for error code "+i.errorCode+" added an invalid action entry; please log a bug"):o.push(a)}}),o},e.getAllFixes=function(e){return _.get(c.cast(e.fixId,c.isString)).getAllCodeActions(e)},e.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},e.codeFixAll=function(e,r,n){var a=[];return{changes:c.textChanges.ChangeTracker.with(e,function(t){return function(e,t,r){for(var n=e.program,a=e.sourceFile,i=0,o=n.getSemanticDiagnostics(a).concat(c.computeSuggestionDiagnostics(a,n));i<o.length;i++){var s=o[i];c.contains(t,s.code)&&r(s)}}(e,r,function(e){return n(t,e,a)})}),commands:0===a.length?void 0:a}}}(ts||(ts={})),function(e){var t,a;t=e.refactor||(e.refactor={}),a=e.createMap(),t.registerRefactor=function(e,t){a.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(a.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,r){var n=a.get(t);return n&&n.getEditsForAction(e,r)},e.getRefactorContextLength=function(e){return void 0===e.endPosition?0:e.endPosition-e.startPosition}}(ts||(ts={})),function(o){!function(t){var r="addMissingInvocationForDecorator",n=[o.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(e,t,r){var n=o.getTokenAtPosition(t,r,!1),a=o.findAncestor(n,o.isDecorator);o.Debug.assert(!!a,"Expected position to be owned by a decorator.");var i=o.createCall(a.expression,void 0,void 0);e.replaceNode(t,a.expression,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(t){var e=o.textChanges.ChangeTracker.with(t,function(e){return a(e,t.sourceFile,t.span.start)});return[{description:o.getLocaleSpecificMessage(o.Diagnostics.Call_decorator_expression),changes:e,fixId:r}]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return a(e,t.file,t.start)})}})}(o.codefix||(o.codefix={}))}(ts||(ts={})),function(d){!function(t){var e="annotateWithTypeFromJSDoc",r=[d.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function n(e,t){var r=d.getTokenAtPosition(e,t,!1);return d.tryCast(d.isParameter(r.parent)?r.parent.parent:r.parent,a)}function a(e){return t=e,(d.isFunctionLikeDeclaration(t)||230===t.kind||150===t.kind||151===t.kind)&&i(e);var t}function i(e){return d.isFunctionLikeDeclaration(e)?e.parameters.some(i)||!e.type&&!!d.getJSDocReturnType(e):!e.type&&!!d.getJSDocType(e)}function o(e,t,r){if(d.isFunctionLikeDeclaration(r)&&(d.getJSDocReturnType(r)||r.parameters.some(function(e){return!!d.getJSDocType(e)}))){if(!r.typeParameters){var n=d.getJSDocTypeParameterDeclarations(r);n&&e.insertTypeParameters(t,r,n)}var a=d.isArrowFunction(r)&&!d.findChildOfKind(r,19,t);a&&e.insertNodeBefore(t,d.first(r.parameters),d.createToken(19));for(var i=0,o=r.parameters;i<o.length;i++){var s=o[i];if(!s.type){var c=d.getJSDocType(s);c&&e.insertTypeAnnotation(t,s,l(c))}}if(a&&e.insertNodeAfter(t,d.last(r.parameters),d.createToken(20)),!r.type){var u=d.getJSDocReturnType(r);u&&e.insertTypeAnnotation(t,r,l(u))}}else{var _=d.Debug.assertDefined(d.getJSDocType(r));d.Debug.assert(!r.type),e.insertTypeAnnotation(t,r,l(_))}}function l(e){switch(e.kind){case 275:case 276:return d.createTypeReferenceNode("any",d.emptyArray);case 279:return i=e,d.createUnionTypeNode([d.visitNode(i.type,l),d.createTypeReferenceNode("undefined",d.emptyArray)]);case 278:return l(e.type);case 277:return a=e,d.createUnionTypeNode([d.visitNode(a.type,l),d.createTypeReferenceNode("null",d.emptyArray)]);case 281:return n=e,d.createArrayTypeNode(d.visitNode(n.type,l));case 280:return r=e,d.createFunctionTypeNode(d.emptyArray,r.parameters.map(s),r.type);case 161:return function(e){var t=e.typeName,r=e.typeArguments;if(d.isIdentifier(e.typeName)){if(d.isJSDocIndexSignature(e))return a=e,i=d.createParameter(void 0,void 0,void 0,134===a.typeArguments[0].kind?"n":"s",void 0,d.createTypeReferenceNode(134===a.typeArguments[0].kind?"number":"string",[]),void 0),o=d.createTypeLiteralNode([d.createIndexSignature(void 0,void 0,[i],a.typeArguments[1])]),d.setEmitFlags(o,1),o;var n=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":n=n.toLowerCase();break;case"array":case"date":case"promise":n=n[0].toUpperCase()+n.slice(1)}t=d.createIdentifier(n),r="Array"!==n&&"Promise"!==n||e.typeArguments?d.visitNodes(e.typeArguments,l):d.createNodeArray([d.createTypeReferenceNode("any",d.emptyArray)])}var a,i,o;return d.createTypeReferenceNode(t,r)}(e);default:var t=d.visitEachChild(e,l,void 0);return d.setEmitFlags(t,1),t}var r,n,a,i}function s(e){var t=e.parent.parameters.indexOf(e),r=281===e.type.kind&&t===e.parent.parameters.length-1,n=e.name||(r?"rest":"arg"+t),a=r?d.createToken(24):e.dotDotDotToken;return d.createParameter(e.decorators,e.modifiers,a,n,e.questionToken,d.visitNode(e.type,l),e.initializer)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=n(t.sourceFile,t.span.start);if(r)return[{description:d.getLocaleSpecificMessage(d.Diagnostics.Annotate_with_type_from_JSDoc),changes:d.textChanges.ChangeTracker.with(t,function(e){return o(e,t.sourceFile,r)}),fixId:e}]},fixIds:[e],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var r=n(t.file,t.start);r&&o(e,t.file,r)})}}),t.parameterShouldGetTypeFromJSDoc=a}(d.codefix||(d.codefix={}))}(ts||(ts={})),function(g){!function(e){var r="convertFunctionToEs6Class",t=[g.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function n(r,d,e,t){var n=[],a=[],i=t.getSymbolAtLocation(g.getTokenAtPosition(d,e,!1));if(i&&19&i.flags){var o,s,c=i.valueDeclaration;switch(c.kind){case 232:p(o=c),s=function(e){var t=l(i);e.body&&t.unshift(g.createConstructor(void 0,void 0,e.parameters,e.body));var r=m(e,84);return g.createClassDeclaration(void 0,r,e.name,void 0,void 0,t)}(c);break;case 230:o=c.parent.parent,1===c.parent.declarations.length?p(o):p(c,!0),s=function(e){var t=e.initializer;if(!t||190!==t.kind)return;if(71!==e.name.kind)return;var r=l(t.symbol);t.body&&r.unshift(g.createConstructor(void 0,void 0,t.parameters,t.body));var n=m(o,84);return g.createClassDeclaration(void 0,n,e.name,void 0,void 0,r)}(c)}if(s){f(c,s,d),r.insertNodeAfter(d,o,s);for(var u=0,_=a;u<_.length;u++){(0,_[u])()}}}function p(t,e){void 0===e&&(e=!1),n.some(function(e){return g.isNodeDescendantOf(t,e)})||(n.push(t),e?a.push(function(){return r.deleteNodeInList(d,t)}):a.push(function(){return r.deleteNode(d,t)}))}function l(e){var r=[];return e.members&&e.members.forEach(function(e){var t=n(e,void 0);t&&r.push(t)}),e.exports&&e.exports.forEach(function(e){var t=n(e,[g.createToken(115)]);t&&r.push(t)}),r;function n(e,t){if(4&e.flags){var r=e.valueDeclaration,n=r.parent;if(a=n.right,g.isFunctionLike(a)){var a;if(p(n.parent&&214===n.parent.kind?n.parent:n),!n.right)return g.createProperty([],t,e.name,void 0,void 0,void 0);switch(n.right.kind){case 190:var i=n.right,o=g.concatenate(t,m(i,120));return f(n,_=g.createMethod(void 0,o,void 0,r.name,void 0,void 0,i.parameters,void 0,i.body),d),_;case 191:var s=n.right,c=s.body,u=void 0;u=211===c.kind?c:g.createBlock([g.createReturn(c)]);var _;o=g.concatenate(t,m(s,120));return f(n,_=g.createMethod(void 0,o,void 0,r.name,void 0,void 0,s.parameters,void 0,u),d),_;default:if(g.isSourceFileJavaScript(d))return;var l=g.createProperty(void 0,t,r.name,void 0,void 0,n.right);return f(n.parent,l,d),l}}}}}}function f(e,a,i){g.forEachLeadingCommentRange(i.text,e.pos,function(e,t,r,n){3===r?(e+=2,t-=2):e+=2,g.addSyntheticLeadingComment(a,r,i.text.slice(e,t),n)})}function m(e,t){return g.filter(e.modifiers,function(e){return e.kind===t})}e.registerCodeFix({errorCodes:t,getCodeActions:function(t){var e=g.textChanges.ChangeTracker.with(t,function(e){return n(e,t.sourceFile,t.span.start,t.program.getTypeChecker())});return[{description:g.getLocaleSpecificMessage(g.Diagnostics.Convert_function_to_an_ES2015_class),changes:e,fixId:r}]},fixIds:[r],getAllCodeActions:function(r){return e.codeFixAll(r,t,function(e,t){return n(e,t.file,t.start,r.program.getTypeChecker())})}})}(g.codefix||(g.codefix={}))}(ts||(ts={})),function(O){!function(x){function i(e,t,r){for(var n=0,a=e.imports;n<a.length;n++){var i=a[n],o=O.getResolvedModule(e,i.text);if(o&&o.resolvedFileName===t.fileName){var s=i.parent;switch(s.kind){case 252:var c=s.parent;r.replaceNode(e,c,P(c.name,void 0,i.text));break;case 185:var u=s;O.isRequireCall(u,!1)&&r.replaceNode(e,s,O.createPropertyAccess(O.getSynthesizedDeepClone(u),"default"))}}}}function b(n,a){n.forEachChild(function e(t){if(O.isPropertyAccessExpression(t)&&O.isExportsOrModuleExportsOrAlias(n,t.expression)){var r=t.parent;a(t,O.isBinaryExpression(r)&&r.left===t&&58===r.operatorToken.kind)}t.forEachChild(e)})}function k(e,t,r,n,a,i,o){switch(t.kind){case 212:return d=e,f=n,m=r,g=a,y=i,v=(p=t).declarationList,h=!1,b=O.flatMap(v.declarations,function(e){var t=e.name,r=e.initializer;return O.isExportsOrModuleExportsOrAlias(d,r)?(h=!0,[]):O.isRequireCall(r,!0)?(h=!0,function(e,t,r,n,a,i,o){switch(t.kind){case 178:var s=O.mapAllOrFail(t.elements,function(e){return e.dotDotDotToken||e.initializer||e.propertyName&&!O.isIdentifier(e.propertyName)||!O.isIdentifier(e.name)?void 0:F(e.propertyName&&e.propertyName.text,e.name.text)});if(s)return[P(void 0,s,r)];case 179:var c=T(x.moduleSpecifierToValidIdentifier(r,o),i);return[P(O.createIdentifier(c),void 0,r),w(void 0,O.getSynthesizedDeepClone(t),O.createIdentifier(c))];case 71:return function(e,t,r,n,a,i){for(var o=a.getSymbolAtLocation(t),s=O.createMap(),c=!1,u=0,_=i.original.get(t.text);u<_.length;u++){var l=_[u];if(a.getSymbolAtLocation(l)===o&&l!==t){var d=l.parent;if(O.isPropertyAccessExpression(d)){var p=d.expression,f=d.name.text;O.Debug.assert(p===l);var m=s.get(f);void 0===m&&(m=T(f,i),s.set(f,m)),n.replaceNode(e,d,O.createIdentifier(m))}else c=!0}}var g=0===s.size?void 0:O.arrayFrom(O.mapIterator(s.entries(),function(e){var t=e[0],r=e[1];return O.createImportSpecifier(t===r?void 0:O.createIdentifier(t),O.createIdentifier(r))}));g||(c=!0);return[P(c?O.getSynthesizedDeepClone(t):void 0,g,r)]}(e,t,r,n,a,i);default:O.Debug.assertNever(t)}}(d,t,r.arguments[0].text,f,m,g,y)):O.isPropertyAccessExpression(r)&&O.isRequireCall(r.expression,!0)?(h=!0,function(e,t,r,n){switch(e.kind){case 178:case 179:var a=T(t,n);return[A(a,t,r),w(void 0,e,O.createIdentifier(a))];case 71:return[A(e.text,t,r)];default:O.Debug.assertNever(e)}}(t,r.name.text,r.expression.arguments[0].text,g)):O.createVariableStatement(void 0,O.createVariableDeclarationList([e],v.flags))}),h&&f.replaceNodeWithNodes(d,p,b),!1;case 214:var s=t.expression;switch(s.kind){case 185:return O.isRequireCall(s,!0)&&n.replaceNode(e,t,P(void 0,void 0,s.arguments[0].text)),!1;case 198:var c=s,u=c.left,_=c.operatorToken,l=c.right;return 58===_.kind&&function(e,t,r,n,a,i,o){if(!O.isPropertyAccessExpression(n))return!1;if(O.isExportsOrModuleExportsOrAlias(e,n)){if(!O.isExportsOrModuleExportsOrAlias(e,a)){var s=O.isObjectLiteralExpression(a)?(u=a,O.mapAllOrFail(u.properties,function(e){switch(e.kind){case 155:case 156:case 269:case 270:return;case 268:return O.isIdentifier(e.name)?C(e.name.text,e.initializer):void 0;case 153:return O.isIdentifier(e.name)?E(e.name.text,[O.createToken(84)],e):void 0;default:O.Debug.assertNever(e)}})):void 0,c=!1;return s||(_=function(e,t){var r=[O.createToken(84),O.createToken(79)];switch(e.kind){case 190:case 191:var n=e;return[[E(n.name&&n.name.text,r,n)],!0];case 203:var a=e;return[[N(a.name&&a.name.text,r,a)],!0];case 185:if(O.isRequireCall(e,!0))return i=e.arguments[0],o=t,s=i.text,c=o.getSymbolAtLocation(i),(u=c?c.exports:O.emptyUnderscoreEscapedMap).has("export=")?[[S(s)],!0]:u.has("default")?1<u.size?[[D(s),S(s)],!0]:[[S(s)],!0]:[[D(s)],!1];default:return[[O.createExportAssignment(void 0,void 0,!1,e)],!0]}var i,o,s,c,u}(a,t),s=_[0],c=_[1]),i.replaceNodeWithNodes(e,r,s),c}i.deleteNode(e,r)}else O.isExportsOrModuleExportsOrAlias(e,n.expression)&&function(e,t,r,n,a,i){var o=r.text,s=i.get(o);if(void 0!==s){var c=[w(void 0,s,n),I([O.createExportSpecifier(s,o)])];a.replaceNodeWithNodes(e,t,c)}else a.replaceNode(e,t,C(o,n),{useNonAdjustedEndPosition:!0})}(e,r,n.name,a,i,o);var u;return!1;var _}(e,r,t,u,l,n,o)}default:return!1}var d,p,f,m,g,y,v,h,b}function D(e){return I(void 0,e)}function S(e){return I([O.createExportSpecifier(void 0,"default")],e)}function C(e,t){var r=[O.createToken(84)];switch(t.kind){case 190:var n=t.name;if(n&&n.text!==e)return a();case 191:return E(e,r,t);case 203:return N(e,r,t);default:return a()}function a(){return w(r,O.createIdentifier(e),t)}}function T(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function E(e,t,r){return O.createFunctionDeclaration(O.getSynthesizedDeepClones(r.decorators),O.concatenate(t,O.getSynthesizedDeepClones(r.modifiers)),O.getSynthesizedDeepClone(r.asteriskToken),e,O.getSynthesizedDeepClones(r.typeParameters),O.getSynthesizedDeepClones(r.parameters),O.getSynthesizedDeepClone(r.type),O.convertToFunctionBody(O.getSynthesizedDeepClone(r.body)))}function N(e,t,r){return O.createClassDeclaration(O.getSynthesizedDeepClones(r.decorators),O.concatenate(t,O.getSynthesizedDeepClones(r.modifiers)),e,O.getSynthesizedDeepClones(r.typeParameters),O.getSynthesizedDeepClones(r.heritageClauses),O.getSynthesizedDeepClones(r.members))}function A(e,t,r){return"default"===t?P(O.createIdentifier(e),void 0,r):P(void 0,[F(t,e)],r)}function P(e,t,r){return n(e,t,O.createLiteral(r))}function n(e,t,r){var n=(e||t)&&O.createImportClause(e,t&&O.createNamedImports(t));return O.createImportDeclaration(void 0,void 0,n,r)}function F(e,t){return O.createImportSpecifier(void 0!==e&&e!==t?O.createIdentifier(e):void 0,O.createIdentifier(t))}function w(e,t,r){return O.createVariableStatement(e,O.createVariableDeclarationList([O.createVariableDeclaration(t,void 0,r)],2))}function I(e,t){return O.createExportDeclaration(void 0,void 0,e&&O.createNamedExports(e),void 0===t?void 0:O.createLiteral(t))}x.registerCodeFix({errorCodes:[O.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(e){var t=O.getLocaleSpecificMessage(O.Diagnostics.Convert_to_ES6_module),n=e.sourceFile,a=e.program;return[{description:t,changes:O.textChanges.ChangeTracker.with(e,function(e){if(function(e,t,r,n){var a={original:(_=e,l=O.createMultiMap(),_.forEachChild(function e(t){O.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 183:return t.name!==e;case 180:return t.propertyName!==e;default:return!0}}(t)&&l.add(t.text,t),t.forEachChild(e)}),l),additional:O.createMap()},i=(o=e,s=t,c=a,u=O.createMap(),b(o,function(e){var t=e.name,r=t.text,n=t.originalKeywordKind;!u.has(r)&&(void 0!==n&&O.isNonContextualKeyword(n)||s.resolveName(e.name.text,e,67216319,!0))&&u.set(r,T("_"+r,c))}),u);var o,s,c,u;var _,l;d=e,p=i,f=r,b(d,function(e,t){if(!t){var r=e.name.text;f.replaceNode(d,e,O.createIdentifier(p.get(r)||r))}});var d,p,f;for(var m=!1,g=0,y=e.statements;g<y.length;g++){var v=y[g],h=k(e,v,t,r,a,n,i);m=m||h}return m}(n,a.getTypeChecker(),e,a.getCompilerOptions().target))for(var t=0,r=a.getSourceFiles();t<r.length;t++){i(r[t],n,e)}}),fixId:void 0}]}}),x.makeImportDeclaration=n}(O.codefix||(O.codefix={}))}(ts||(ts={})),function(o){!function(t){var n="correctQualifiedNameToIndexedAccessType",r=[o.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function a(e,t){var r=o.findAncestor(o.getTokenAtPosition(e,t,!0),o.isQualifiedName);return o.Debug.assert(!!r,"Expected position to be owned by a qualified name."),o.isIdentifier(r.left)?r:void 0}function i(e,t,r){var n=r.right.text,a=o.createIndexedAccessTypeNode(o.createTypeReferenceNode(r.left,void 0),o.createLiteralTypeNode(o.createLiteral(n)));e.replaceNode(t,r,a)}t.registerCodeFix({errorCodes:r,getCodeActions:function(t){var r=a(t.sourceFile,t.span.start);if(r){var e=o.textChanges.ChangeTracker.with(t,function(e){return i(e,t.sourceFile,r)});return[{description:o.formatStringFromArgs(o.getLocaleSpecificMessage(o.Diagnostics.Rewrite_as_the_indexed_access_type_0),[r.left.text+'["'+r.right.text+'"]']),changes:e,fixId:n}]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)})}})}(o.codefix||(o.codefix={}))}(ts||(ts={})),function(l){!function(u){var e=[l.Diagnostics.Class_0_incorrectly_implements_interface_1.code,l.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],o="fixClassIncorrectlyImplementsInterface";function c(e,t){return l.Debug.assertDefined(l.getContainingClass(l.getTokenAtPosition(e,t,!1)))}function _(n,e,a,i,o){var t=n.getTypeAtLocation(e),r=n.getPropertiesOfType(t).filter(function(e){return!(8&l.getModifierFlags(e.valueDeclaration))}),s=n.getTypeAtLocation(i);function c(e,t){var r=n.getIndexInfoOfType(e,t);r&&o.insertNodeAtClassStart(a,i,n.indexInfoToIndexSignatureDeclaration(r,t,i))}n.getIndexTypeOfType(s,1)||c(t,1),n.getIndexTypeOfType(s,0)||c(t,0),u.createMissingMemberNodes(i,r,n,function(e){return o.insertNodeAtClassStart(a,i,e)})}u.registerCodeFix({errorCodes:e,getCodeActions:function(r){var e=r.program,n=r.sourceFile,t=r.span,a=c(n,t.start),i=e.getTypeChecker();return l.mapDefined(l.getClassImplementsHeritageClauseElements(a),function(t){var e=l.textChanges.ChangeTracker.with(r,function(e){return _(i,t,n,a,e)});if(0!==e.length)return{description:l.formatStringFromArgs(l.getLocaleSpecificMessage(l.Diagnostics.Implement_interface_0),[t.getText()]),changes:e,fixId:o}})},fixIds:[o],getAllCodeActions:function(o){var s=l.createMap();return u.codeFixAll(o,e,function(e,t){var r=c(t.file,t.start);if(l.addToSeen(s,l.getNodeId(r)))for(var n=0,a=l.getClassImplementsHeritageClauseElements(r);n<a.length;n++){var i=a[n];_(o.program.getTypeChecker(),i,t.file,r,e)}})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(te){!function(c){var e=[te.Diagnostics.Property_0_does_not_exist_on_type_1.code,te.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],X="addMissingMember";function Q(e,t,r){var n=te.getTokenAtPosition(e,t,!1);if(te.isIdentifier(n)){var a=function(e,t){var r=e.parent;if(!te.isPropertyAccessExpression(r))return;{if(99===r.expression.kind){var n=te.getThisContainer(e,!1);if(!te.isClassElement(n))return;var a=n.parent;return te.isClassLike(a)?{classDeclaration:a,makeStatic:te.hasModifier(n,32)}:void 0}var i=t.getTypeAtLocation(r.expression),o=i.symbol;if(!(o&&65536&i.flags&&32&o.flags))return;var a=te.cast(te.first(o.declarations),te.isClassLike);return{classDeclaration:a,makeStatic:i!==t.getDeclaredTypeOfSymbol(o)}}}(n,r);if(a){var i=a.classDeclaration,o=a.makeStatic,s=i.getSourceFile();return{token:n,classDeclaration:i,makeStatic:o,classDeclarationSourceFile:s,inJs:te.isInJavaScriptFile(s),call:te.tryCast(n.parent.parent,te.isCallExpression)}}}}function Y(e,t,r,n,a){if(a){if(203===r.kind)return;var i=r.name.getText(),o=u(te.createIdentifier(i),n);e.insertNodeAfter(t,r,o)}else{var s=te.getFirstConstructorWithBody(r);if(!s)return;var c=u(te.createThis(),n);e.insertNodeAtConstructorEnd(t,s,c)}}function u(e,t){return te.createStatement(te.createAssignment(te.createPropertyAccess(e,t),te.createIdentifier("undefined")))}function Z(e,t,r){var n;if(198===r.parent.parent.kind){var a=r.parent.parent,i=r.parent===a.left?a.right:a.left,o=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(i)));n=e.typeToTypeNode(o,t)}return n||te.createKeywordTypeNode(119)}function $(e,t,r,n,a,i){var o=te.createProperty(void 0,i?[te.createToken(115)]:void 0,n,void 0,a,void 0);e.insertNodeAtClassStart(t,r,o)}function ee(e,t,r,n,a,i,o){var s=c.createMethodFromCallExpression(a,n.text,o,i);e.insertNodeAtClassStart(t,r,s)}c.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=Q(e.sourceFile,e.span.start,e.program.getTypeChecker());if(t){var r,n,a,i,o,s,c,u,_,l,d,p,f,m,g,y,v,h,b,x,k,D,S,C,T,E,N,A,P,F,w,I,O,M,L,R,B,z,J,j=t.classDeclaration,K=t.classDeclarationSourceFile,U=t.inJs,q=t.makeStatic,V=t.token,W=t.call,H=W&&(r=e,n=K,a=j,i=V,o=W,s=q,c=U,u=te.formatStringFromArgs(te.getLocaleSpecificMessage(s?te.Diagnostics.Declare_static_method_0:te.Diagnostics.Declare_method_0),[i.text]),_=te.textChanges.ChangeTracker.with(r,function(e){return ee(e,n,a,i,o,s,c)}),{description:u,changes:_,fixId:X}),G=U?te.singleElementArray((M=e,L=K,R=j,B=V.text,z=q,0===(J=te.textChanges.ChangeTracker.with(M,function(e){return Y(e,L,R,B,z)})).length?void 0:{description:te.formatStringFromArgs(te.getLocaleSpecificMessage(z?te.Diagnostics.Initialize_static_property_0:te.Diagnostics.Initialize_property_0_in_the_constructor),[B]),changes:J,fixId:X})):(d=K,p=j,f=V,m=q,g=Z((l=e).program.getTypeChecker(),p,f),v=l,h=d,b=p,x=m,k=f.text,D=g,S=te.formatStringFromArgs(te.getLocaleSpecificMessage(x?te.Diagnostics.Declare_static_property_0:te.Diagnostics.Declare_property_0),[k]),C=te.textChanges.ChangeTracker.with(v,function(e){return $(e,h,b,k,D,x)}),y={description:S,changes:C,fixId:X},m?[y]:[y,(T=l,E=d,N=p,A=f.text,P=g,F=te.createKeywordTypeNode(137),w=te.createParameter(void 0,void 0,void 0,"x",void 0,F,void 0),I=te.createIndexSignature(void 0,void 0,[w],P),O=te.textChanges.ChangeTracker.with(T,function(e){return e.insertNodeAtClassStart(E,N,I)}),{description:te.formatStringFromArgs(te.getLocaleSpecificMessage(te.Diagnostics.Add_index_signature_for_property_0),[A]),changes:O,fixId:void 0})]);return te.concatenate(te.singleElementArray(H),G)}},fixIds:[X],getAllCodeActions:function(l){var d=te.createMap();return c.codeFixAll(l,e,function(e,t){var r=l.program,n=Q(t.file,t.start,r.getTypeChecker());if(n){var a=n.classDeclaration,i=n.classDeclarationSourceFile,o=n.inJs,s=n.makeStatic,c=n.token,u=n.call;if(te.addToSeen(d,c.text))if(u)ee(e,i,a,c,u,s,o);else if(o)Y(e,i,a,c.text,s);else{var _=Z(r.getTypeChecker(),a,c);$(e,i,a,c.text,_,s)}}})}})}(te.codefix||(te.codefix={}))}(ts||(ts={})),function(u){!function(e){var o="fixSpelling",t=[u.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,u.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code];function s(e,t,r){var n,a=u.getTokenAtPosition(e,t,!1);if(u.isPropertyAccessExpression(a.parent)&&a.parent.name===a){u.Debug.assert(71===a.kind);var i=r.getTypeAtLocation(a.parent.expression);n=r.getSuggestionForNonexistentProperty(a,i)}else{var o=u.getMeaningFromLocation(a),s=u.getTextOfNode(a);u.Debug.assert(void 0!==s,"name should be defined"),n=r.getSuggestionForNonexistentSymbol(a,s,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=67901928);1&e&&(t|=67216319);return t}(o))}return void 0===n?void 0:{node:a,suggestion:n}}function c(e,t,r,n){e.replaceNode(t,r,u.createIdentifier(n))}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=s(t,e.span.start,e.program.getTypeChecker());if(r){var n=r.node,a=r.suggestion,i=u.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n,a)});return[{description:u.formatStringFromArgs(u.getLocaleSpecificMessage(u.Diagnostics.Change_spelling_to_0),[a]),changes:i,fixId:o}]}},fixIds:[o],getAllCodeActions:function(n){return e.codeFixAll(n,t,function(e,t){var r=s(t.file,t.start,n.program.getTypeChecker());r&&c(e,n.sourceFile,r.node,r.suggestion)})}})}(u.codefix||(u.codefix={}))}(ts||(ts={})),function(_){!function(e){var o="fixCannotFindModule",t=[_.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function s(e,t){return _.cast(_.getTokenAtPosition(e,t,!1),_.isStringLiteral).text}function c(e,t){return{type:"install package",file:e,packageName:t}}function u(e,t){var r=_.getPackageName(t).packageName;return e.isKnownTypesPackageName(r)?_.getTypesPackageName(r):void 0}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t,r,n,a,i=(t=e.host,r=e.sourceFile.fileName,n=s(e.sourceFile,e.span.start),void 0===(a=u(t,n))?void 0:{description:_.formatStringFromArgs(_.getLocaleSpecificMessage(_.Diagnostics.Install_0),[a]),changes:[],commands:[c(r,a)]});return i&&[__assign({fixId:o},i)]},fixIds:[o],getAllCodeActions:function(a){return e.codeFixAll(a,t,function(e,t,r){var n=u(a.host,s(t.file,t.start));n&&r.push(c(t.file.fileName,n))})}})}(_.codefix||(_.codefix={}))}(ts||(ts={})),function(_){!function(s){var e=[_.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],i="fixClassDoesntImplementInheritedAbstractMember";function o(e,t){var r=_.getTokenAtPosition(e,t,!1);return _.cast(r.parent,_.isClassLike)}function c(t,r,e,n){var a=_.getClassExtendsHeritageClauseElement(t),i=e.getTypeAtLocation(a),o=e.getPropertiesOfType(i).filter(u);s.createMissingMemberNodes(t,o,e,function(e){return n.insertNodeAtClassStart(r,t,e)})}function u(e){var t=_.getModifierFlags(_.first(e.getDeclarations()));return!(8&t||!(128&t))}s.registerCodeFix({errorCodes:e,getCodeActions:function(e){var t=e.program,r=e.sourceFile,n=e.span,a=_.textChanges.ChangeTracker.with(e,function(e){return c(o(r,n.start),r,t.getTypeChecker(),e)});return 0===a.length?void 0:[{description:_.getLocaleSpecificMessage(_.Diagnostics.Implement_inherited_abstract_class),changes:a,fixId:i}]},fixIds:[i],getAllCodeActions:function(n){var a=_.createMap();return s.codeFixAll(n,e,function(e,t){var r=o(t.file,t.start);_.addToSeen(a,_.getNodeId(r))&&c(r,n.sourceFile,n.program.getTypeChecker(),e)})}})}(_.codefix||(_.codefix={}))}(ts||(ts={})),function(_){!function(t){var s="classSuperMustPrecedeThisAccess",r=[_.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function c(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.deleteNode(t,n)}function u(e,t){var r=_.getTokenAtPosition(e,t,!1);if(99===r.kind){var n=_.getContainingFunction(r),a=i(n.body);return a&&!a.expression.arguments.some(function(e){return _.isPropertyAccessExpression(e)&&e.expression===r})?{constructor:n,superCall:a}:void 0}}function i(e){return _.isExpressionStatement(e)&&_.isSuperCall(e.expression)?e:_.isFunctionLike(e)?void 0:_.forEachChild(e,i)}t.registerCodeFix({errorCodes:r,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=u(t,r.start);if(n){var a=n.constructor,i=n.superCall,o=_.textChanges.ChangeTracker.with(e,function(e){return c(e,t,a,i)});return[{description:_.getLocaleSpecificMessage(_.Diagnostics.Make_super_call_the_first_statement_in_the_constructor),changes:o,fixId:s}]}},fixIds:[s],getAllCodeActions:function(e){var i=e.sourceFile,o=_.createMap();return t.codeFixAll(e,r,function(e,t){var r=u(t.file,t.start);if(r){var n=r.constructor,a=r.superCall;_.addToSeen(o,_.getNodeId(n.parent))&&c(e,i,n,a)}})}})}(_.codefix||(_.codefix={}))}(ts||(ts={})),function(c){!function(e){var i="constructorForDerivedNeedSuperCall",t=[c.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function o(e,t){var r=c.getTokenAtPosition(e,t,!1);return c.Debug.assert(123===r.kind),r.parent}function s(e,t,r){var n=c.createStatement(c.createCall(c.createSuper(),void 0,c.emptyArray));e.insertNodeAtConstructorStart(t,r,n)}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=o(t,r.start),a=c.textChanges.ChangeTracker.with(e,function(e){return s(e,t,n)});return[{description:c.getLocaleSpecificMessage(c.Diagnostics.Add_missing_super_call),changes:a,fixId:i}]},fixIds:[i],getAllCodeActions:function(r){return e.codeFixAll(r,t,function(e,t){return s(e,r.sourceFile,o(t.file,t.start))})}})}(c.codefix||(c.codefix={}))}(ts||(ts={})),function(u){!function(t){var o="extendsInterfaceBecomesImplements",r=[u.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function s(e,t){var r=u.getTokenAtPosition(e,t,!1),n=u.getContainingClass(r).heritageClauses,a=n[0].getFirstToken();return 85===a.kind?{extendsToken:a,heritageClauses:n}:void 0}function c(e,t,r,n){if(e.replaceNode(t,r,u.createToken(108),u.textChanges.useNonAdjustedPositions),2===n.length&&85===n[0].token&&108===n[1].token){var a=n[1].getFirstToken(),i=a.getFullStart();e.replaceRange(t,{pos:i,end:i},u.createToken(26));for(var o=t.text,s=a.end;s<o.length&&u.isWhiteSpaceSingleLine(o.charCodeAt(s));)s++;e.deleteRange(t,{pos:a.getStart(),end:s})}}t.registerCodeFix({errorCodes:r,getCodeActions:function(e){var t=e.sourceFile,r=s(t,e.span.start);if(r){var n=r.extendsToken,a=r.heritageClauses,i=u.textChanges.ChangeTracker.with(e,function(e){return c(e,t,n,a)});return[{description:u.getLocaleSpecificMessage(u.Diagnostics.Change_extends_to_implements),changes:i,fixId:o}]}},fixIds:[o],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var r=s(t.file,t.start);r&&c(e,t.file,r.extendsToken,r.heritageClauses)})}})}(u.codefix||(u.codefix={}))}(ts||(ts={})),function(s){!function(e){var a="forgottenThisPropertyAccess",t=[s.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code];function i(e,t){var r=s.getTokenAtPosition(e,t,!1);return s.isIdentifier(r)?r:void 0}function o(e,t,r){r&&(s.suppressLeadingAndTrailingTrivia(r),e.replaceNode(t,r,s.createPropertyAccess(s.createThis(),r),s.textChanges.useNonAdjustedPositions))}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=i(t,e.span.start);if(r){var n=s.textChanges.ChangeTracker.with(e,function(e){return o(e,t,r)});return[{description:s.getLocaleSpecificMessage(s.Diagnostics.Add_this_to_unresolved_variable),changes:n,fixId:a}]}},fixIds:[a],getAllCodeActions:function(r){return e.codeFixAll(r,t,function(e,t){o(e,r.sourceFile,i(t.file,t.start))})}})}(s.codefix||(s.codefix={}))}(ts||(ts={})),function(h){!function(e){var d="unusedIdentifier_prefix",p="unusedIdentifier_delete",t=[h.Diagnostics._0_is_declared_but_its_value_is_never_read.code,h.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,h.Diagnostics.All_imports_in_import_declaration_are_unused.code];function f(e,t){var r=h.getTokenAtPosition(e,t,!1);return 91===r.kind?h.tryCast(r.parent,h.isImportDeclaration):void 0}function m(e,t,r,n){t!==h.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&h.isIdentifier(n)&&o(n)&&e.replaceNode(r,n,h.createIdentifier("_"+n.text))}function o(e){switch(e.parent.kind){case 148:return!0;case 230:switch(e.parent.parent.parent.kind){case 220:case 219:return!0}}return!1}function g(e,t,r){switch(r.kind){case 71:!function(e,t,r){var n=r.parent;switch(n.kind){case 230:!function(e,t,r){switch(r.parent.parent.kind){case 218:var n=r.parent.parent,a=n.initializer;1===a.declarations.length?e.deleteNode(t,a):e.deleteNodeInList(t,r);break;case 220:var i=r.parent.parent;h.Debug.assert(231===i.initializer.kind);var o=i.initializer;e.replaceNode(t,o.declarations[0],h.createObjectLiteral());break;case 219:case 228:break;default:var s=r.parent.parent;1===s.declarationList.declarations.length?e.deleteNode(t,s):e.deleteNodeInList(t,r)}}(e,t,n);break;case 147:var a=n.parent.typeParameters;if(1===a.length){var i=h.getTokenAtPosition(t,a.pos-1,!1),o=h.getTokenAtPosition(t,a.end,!1);h.Debug.assert(27===i.kind),h.Debug.assert(29===o.kind),e.deleteNodeRange(t,i,o)}else e.deleteNodeInList(t,n);break;case 148:var s=n.parent;if(h.isArrowFunction(s)&&1===s.parameters.length){var c=h.updateArrowFunction(s,s.modifiers,s.typeParameters,void 0,s.type,s.equalsGreaterThanToken,s.body);h.suppressLeadingAndTrailingTrivia(c),e.replaceNode(t,s,c,h.textChanges.useNonAdjustedPositions)}else e.deleteNodeInList(t,n);break;case 241:var u=h.getAncestor(r,241);e.deleteNode(t,u);break;case 246:var _=n.parent;1===_.elements.length?v(e,t,_):e.deleteNodeInList(t,n);break;case 243:var l=n;if(l.namedBindings){var d=l.name.getStart(t),o=h.getTokenAtPosition(t,l.name.end,!1);if(o&&26===o.kind){var p=h.skipTrivia(t.text,o.end,!1,!0);e.deleteRange(t,{pos:d,end:p})}else e.deleteNode(t,l.name)}else e.deleteNode(t,h.getAncestor(l,242));break;case 244:v(e,t,n);break;default:y(e,t,r)}}(e,t,r);break;case 151:case 244:e.deleteNode(t,r.parent);break;default:y(e,t,r)}}function y(e,t,r){h.isDeclarationName(r)?e.deleteNode(t,r.parent):h.isLiteralComputedPropertyDeclarationName(r)&&e.deleteNode(t,r.parent.parent)}function v(e,t,r){if(r.parent.name){var n=h.getTokenAtPosition(t,r.pos-1,!1);n&&26===n.kind&&e.deleteRange(t,{pos:n.getStart(),end:r.end})}else{var a=h.getAncestor(r,242);e.deleteNode(t,a)}}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.errorCode,r=e.sourceFile,n=f(r,e.span.start);if(n)return[{description:_=h.formatStringFromArgs(h.getLocaleSpecificMessage(h.Diagnostics.Remove_import_from_0),[h.showModuleSpecifier(n)]),changes:h.textChanges.ChangeTracker.with(e,function(e){return e.deleteNode(r,n)}),fixId:p}];var a,i,o,s=(a=r,i=h.textSpanEnd(e.span),22===(o=h.findPrecedingToken(i,a)).kind?h.findPrecedingToken(i-1,a):o),c=[],u=h.textChanges.ChangeTracker.with(e,function(e){return g(e,r,s)});if(u.length){var _=h.formatStringFromArgs(h.getLocaleSpecificMessage(h.Diagnostics.Remove_declaration_for_Colon_0),[s.getText()]);c.push({description:_,changes:u,fixId:p})}var l=h.textChanges.ChangeTracker.with(e,function(e){return m(e,t,r,s)});if(l.length){_=h.formatStringFromArgs(h.getLocaleSpecificMessage(h.Diagnostics.Prefix_0_with_an_underscore),[s.getText()]);c.push({description:_,changes:l,fixId:d})}return c},fixIds:[d,p],getAllCodeActions:function(i){return e.codeFixAll(i,t,function(e,t){var r=i.sourceFile,n=h.findPrecedingToken(h.textSpanEnd(t),t.file);switch(i.fixId){case d:h.isIdentifier(n)&&o(n)&&m(e,t.code,r,n);break;case p:var a=f(t.file,t.start);a?e.deleteNode(r,a):g(e,r,n);break;default:h.Debug.fail(JSON.stringify(i.fixId))}})}})}(h.codefix||(h.codefix={}))}(ts||(ts={})),function(p){!function(r){var u="fixJSDocTypes_plain",_="fixJSDocTypes_nullable",n=[p.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function l(e,t,r,n,a){e.replaceNode(t,r,a.typeToTypeNode(n,r))}function d(e,t,r){var n=p.findAncestor(p.getTokenAtPosition(e,t,!1),i),a=n&&n.type;return a&&{typeNode:a,type:r.getTypeFromTypeNode(a)}}function i(e){switch(e.kind){case 206:case 157:case 158:case 232:case 155:case 159:case 176:case 153:case 152:case 148:case 151:case 150:case 156:case 235:case 188:case 230:return!0;default:return!1}}r.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,i=n.program.getTypeChecker(),e=d(a,n.span.start,i);if(e){var o=e.typeNode,t=e.type,s=o.getText(a),r=[c(t,u)];return 277===o.kind&&r.push(c(i.getNullableType(t,4096),_)),r}function c(t,e){var r=i.typeToString(t);return{description:p.formatStringFromArgs(p.getLocaleSpecificMessage(p.Diagnostics.Change_0_to_1),[s,r]),changes:p.textChanges.ChangeTracker.with(n,function(e){return l(e,a,o,t,i)}),fixId:e}}},fixIds:[u,_],getAllCodeActions:function(e){var o=e.fixId,t=e.program,s=e.sourceFile,c=t.getTypeChecker();return r.codeFixAll(e,n,function(e,t){var r=d(t.file,t.start,c);if(r){var n=r.typeNode,a=r.type,i=277===n.kind&&o===_?c.getNullableType(a,4096):a;l(e,s,n,i,c)}})}})}(p.codefix||(p.codefix={}))}(ts||(ts={})),function(c){!function(e){var i="fixAwaitInSyncFunction",t=[c.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,c.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function o(e,t){var r,n,a=c.getTokenAtPosition(e,t,!1),i=c.getContainingFunction(a);switch(i.kind){case 153:r=i.name;break;case 232:case 190:r=c.findChildOfKind(i,89,e);break;case 191:r=c.findChildOfKind(i,19,e)||c.first(i.parameters);break;default:return}return{insertBefore:r,returnType:(n=i,n.type?n.type:c.isVariableDeclaration(n.parent)&&n.parent.type&&c.isFunctionTypeNode(n.parent.type)?n.parent.type.type:void 0)}}function s(e,t,r){var n=r.insertBefore,a=r.returnType;if(a){var i=c.getEntityNameFromTypeNode(a);i&&71===i.kind&&"Promise"===i.text||e.replaceNode(t,a,c.createTypeReferenceNode("Promise",c.createNodeArray([a])))}e.insertModifierBefore(t,120,n)}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span,n=o(t,r.start);if(n){var a=c.textChanges.ChangeTracker.with(e,function(e){return s(e,t,n)});return[{description:c.getLocaleSpecificMessage(c.Diagnostics.Add_async_modifier_to_containing_function),changes:a,fixId:i}]}},fixIds:[i],getAllCodeActions:function(n){return e.codeFixAll(n,t,function(e,t){var r=o(t.file,t.start);r&&s(e,n.sourceFile,r)})}})}(c.codefix||(c.codefix={}))}(ts||(ts={})),function(A){!function(e){var t,r,y=A.textChanges.ChangeTracker;function v(e,t,r){return{description:A.formatMessage.apply(void 0,[void 0,e].concat(t)),changes:r,fixId:void 0}}function f(e,t,r){var n=!!e.host.useCaseSensitiveFileNames&&e.host.useCaseSensitiveFileNames(),a=e.program,i=a.getTypeChecker();return{host:e.host,formatContext:e.formatContext,sourceFile:e.sourceFile,program:a,checker:i,compilerOptions:a.getCompilerOptions(),cachedImportDeclarations:[],getCanonicalFileName:A.createGetCanonicalFileName(n),symbolName:r,symbolToken:t}}function h(e,u){var t=A.flatMap(e,function(e){return function(e,r,t,n){var a=e.moduleSymbol,i=e.importKind,o=t.imports;void 0===n&&(n=[]);var s=A.getUniqueSymbolId(a,r),c=n[s];c||(c=n[s]=A.mapDefined(o,function(e){var t=r.getSymbolAtLocation(e)===a?function(e){var t=e.parent;switch(t.kind){case 242:return t;case 252:return t.parent;case 248:case 185:return;default:A.Debug.fail()}}(e):void 0;return t&&{declaration:t,importKind:i}}));return c}(e,u.checker,u.sourceFile,u.cachedImportDeclarations)});return(u.symbolToken&&A.isIdentifier(u.symbolToken)?A.mapDefined(t,function(e){var t,r,n,a,i,o,s=function(e){{if(242===e.kind){var t=e.importClause&&A.isImportClause(e.importClause)&&e.importClause.namedBindings;return t&&244===t.kind?t.name:void 0}return e.name}}(e.declaration);if(s){var c=u.checker.getAliasedSymbol(u.checker.getSymbolAtLocation(s));if(c&&c.exports.has(A.escapeLeadingUnderscores(u.symbolName)))return t=s.text,n=(r=u).symbolToken,a=r.symbolName,i=r.sourceFile,o=y.with(r,function(e){return e.replaceNode(i,n,A.createPropertyAccess(A.createIdentifier(t),n))}),v(A.Diagnostics.Change_0_to_1,[a,t+"."+a],o)}}):A.emptyArray).concat(function(e,g,t){var r=A.firstDefined(t,function(e){var t=e.declaration,r=e.importKind;if(242===t.kind&&t.importClause){var n=function(e,t,r){var n=e.symbolName,a=e.sourceFile,i=t.name,o=(241!==t.kind&&t).namedBindings;switch(r){case 1:return i?void 0:y.with(e,function(e){return e.replaceNode(a,t,A.createImportClause(A.createIdentifier(n),o))});case 0:var s=A.createImportSpecifier(void 0,A.createIdentifier(n));return o&&245===o.kind&&0!==o.elements.length?y.with(e,function(e){return e.insertNodeInListAfter(a,o.elements[o.elements.length-1],s)}):!o||245===o.kind&&0===o.elements.length?y.with(e,function(e){return e.replaceNode(a,t,A.createImportClause(i,A.createNamedImports([s])))}):void 0;case 2:return o?void 0:y.with(e,function(e){return e.replaceNode(a,t,A.createImportClause(i,A.createNamespaceImport(A.createIdentifier(n))))});case 3:return;default:A.Debug.assertNever(r)}}(g,A.isImportClause(t.importClause)&&t.importClause||void 0,r);if(n){var a=A.stripQuotes(t.moduleSpecifier.getText());return v(A.Diagnostics.Add_0_to_existing_import_declaration_from_1,[g.symbolName,a],n)}}});if(r)return[r];var n=A.firstDefined(t,a);return(n?[n]:b(g.program,g.sourceFile,e,g.compilerOptions,g.getCanonicalFileName,g.host)).map(function(e){return t=g,n=(r=e).moduleSpecifier,a=r.importKind,i=t.sourceFile,o=t.symbolName,s=A.findLast(i.statements,A.isAnyImportSyntax),c=A.stripQuotes(n),d=i,p=c,f=A.createLiteral(p),m=A.firstOrUndefined(d.imports),f.singleQuote=!!m&&!A.isStringDoubleQuoted(m,d),u=f,_=3!==a?A.createImportDeclaration(void 0,void 0,function(e,t){var r=A.createIdentifier(t);switch(e){case 1:return A.createImportClause(r,void 0);case 2:return A.createImportClause(void 0,A.createNamespaceImport(r));case 0:return A.createImportClause(void 0,A.createNamedImports([A.createImportSpecifier(void 0,r)]));default:A.Debug.assertNever(e)}}(a,o),u):A.createImportEqualsDeclaration(void 0,void 0,A.createIdentifier(o),A.createExternalModuleReference(u)),l=y.with(t,function(e){s?e.insertNodeAfter(i,s,_):e.insertNodeAtTopOfFile(i,_,!0)}),v(A.Diagnostics.Import_0_from_module_1,[o,c],l);var t,r,n,a,i,o,s,c,u,_,l,d,p,f,m})}(e,u,t))}function b(o,m,e,g,y,v){var t,h=g.baseUrl,b=g.paths,x=g.rootDirs,k=(t=m,A.firstDefined(t.imports,function(e){var t=e.text;return A.pathIsRelative(t)?A.fileExtensionIs(t,".js"):void 0})||!1),r=A.flatMap(e,function(e){var t,r,n,a,f=e.moduleSymbol,i=e.importKind;return(t=o,r=f.valueDeclaration.getSourceFile(),n=r.fileName,a=A.mapDefined(t.getSourceFiles(),function(e){return e.resolvedModules&&A.firstDefinedIterator(e.resolvedModules.values(),function(e){return e&&e.resolvedFileName===n?e.originalPath:void 0})}),0===a.length?[n]:a).map(function(e){var r,t,n,a,i,o,s=A.getDirectoryPath(m.fileName),c=function(e){var t=e.valueDeclaration;if(A.isModuleDeclaration(t)&&A.isStringLiteral(t.name))return t.name.text}(f)||(r=g,t=v,n=y,a=e,i=k,o=A.getEffectiveTypeRoots(r,t),A.firstDefined(o,function(e){var t=A.toPath(e,void 0,n);if(A.startsWith(a,t))return C(a.substring(t.length+1),r,i)}))||function(e,t,s,c,r){if(A.getEmitModuleResolutionKind(e)!==A.ModuleResolutionKind.NodeJs)return;var u=function(e){var t,r=0,n=0,a=0,i=0;o=t||(t={}),o[o.BeforeNodeModules=0]="BeforeNodeModules",o[o.NodeModules=1]="NodeModules",o[o.Scope=2]="Scope",o[o.PackageContent=3]="PackageContent";var o;var s=0,c=0,u=0;for(;0<=c;)switch(s=c,c=e.indexOf("/",s+1),u){case 0:e.indexOf("/node_modules/",s)===s&&(r=s,n=c,u=1);break;case 1:case 2:1===u&&"@"===e.charAt(s+1)?u=2:(a=c,u=3);break;case 3:u=e.indexOf("/node_modules/",s)===s?1:3}return i=s,1<u?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:n,packageRootIndex:a,fileNameIndex:i}:void 0}(t);if(!u)return;var n=function(e){var t=e.substring(0,u.packageRootIndex),r=A.combinePaths(t,"package.json");if(s.fileExists(r)){var n=JSON.parse(s.readFile(r));if(n){var a=n.typings||n.types||n.main;if(a){var i=A.toPath(a,t,c);if(i===c(e))return t}}}var o=A.removeFileExtension(e);if("/index"===c(o.substring(u.fileNameIndex)))return o.substring(0,u.fileNameIndex);return o}(t);return a=n,i=a.substring(0,u.topLevelNodeModulesIndex),n=0===r.indexOf(i)?a.substring(u.topLevelPackageNameIndex+1):N(a,r,c),A.getPackageNameFromAtTypesDirectory(n);var a,i}(g,e,v,y,s)||x&&function(e,t,r,n){var a=S(t,e,n);if(void 0===a)return;var i=S(r,e,n),o=void 0!==i?N(a,i,n):a;return A.removeFileExtension(o)}(x,e,s,y);if(c)return[c];var u=C(N(e,s,y),g,k);if(!h)return[u];var _=T(e,h,y);if(!_)return[u];var l=C(_,g,k);if(b){var d=function(e,t,r){for(var n in r)for(var a=0,i=r[n];a<i.length;a++){var o=i[a],s=A.removeFileExtension(A.normalizePath(o)),c=s.indexOf("*");if(0!==c||1!==s.length)if(-1!==c){var u=s.substr(0,c),_=s.substr(c+1);if(t.length>=u.length+_.length&&A.startsWith(t,u)&&A.endsWith(t,_)){var l=t.substr(u.length,t.length-_.length);return n.replace("*",l)}}else if(s===t||s===e)return n}}(A.removeFileExtension(_),l,b);if(d)return[d]}if(E(_))return[u];var p=N(h,s,y);return D(u)<D(p)?[u,l]:[l,u]}).map(function(e){return e.map(function(e){return{moduleSpecifier:e,importKind:i}})})});return A.flatten(r.sort(function(e,t){return A.first(e).moduleSpecifier.length-A.first(t).moduleSpecifier.length}))}function D(e){for(var t=0,r=0;r+3<=e.length&&"../"===e.slice(r,r+3);r+=3)t++;return t}function S(r,e,n){return A.firstDefined(e,function(e){var t=T(r,e,n);return E(t)?void 0:t})}function C(e,t,r){var n=A.removeFileExtension(e);return r?n+".js":A.getEmitModuleResolutionKind(t)===A.ModuleResolutionKind.NodeJs?A.removeSuffix(n,"/index"):n}function T(e,t,r){var n=A.getRelativePathToDirectoryOrUrl(t,e,t,r,!1);return A.isRootedDiskPath(n)?void 0:n}function E(e){return A.startsWith(e,"..")}function N(e,t,r){var n=A.getRelativePathToDirectoryOrUrl(t,e,t,r,!1);return A.pathIsRelative(n)?n:"./"+n}function a(e){var t=e.declaration,r=e.importKind,n=242===t.kind?t.moduleSpecifier:252===t.moduleReference.kind?t.moduleReference.expression:void 0;return n&&A.isStringLiteral(n)?{moduleSpecifier:n.text,importKind:r}:void 0}function m(e,t){var r=e.declarations;return A.some(r,function(e){return!!(A.getMeaningFromDeclaration(e)&t)})}function g(e,i,t,o){x(e,t,function(e,t){var r,n,a;(void 0===t||t!==i&&(r=i.fileName,n=t.fileName,void 0===(a=A.forEachAncestorDirectory(n,function(e){return"node_modules"===A.getBaseFileName(e)?e:void 0}))||A.startsWith(r,A.getDirectoryPath(a))))&&o(e)})}function x(e,t,r){for(var n=0,a=e.getAmbientModules();n<a.length;n++){r(a[n],void 0)}for(var i=0,o=t;i<o.length;i++){var s=o[i];A.isExternalOrCommonJsModule(s)&&r(s.symbol,s)}}function k(e,t){return n(A.removeFileExtension(A.getBaseFileName(e.name)),t)}function n(e,t){var r="",n=!0,a=e.charCodeAt(0);A.isIdentifierStart(a,t)?r+=String.fromCharCode(a):n=!1;for(var i=1;i<e.length;i++){var o=e.charCodeAt(i),s=A.isIdentifierPart(o,t);if(s){var c=String.fromCharCode(o);n||(c=c.toUpperCase()),r+=c}n=s}return A.isStringANonContextualKeyword(r)?"_"+r:r||"_"}e.registerCodeFix({errorCodes:[A.Diagnostics.Cannot_find_name_0.code,A.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,A.Diagnostics.Cannot_find_namespace_0.code,A.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code],getCodeActions:function(e){return e.errorCode===A.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(e){var t,r=A.getTokenAtPosition(e.sourceFile,e.span.start,!1),n=e.program.getTypeChecker();A.isIdentifier(r)&&(t=n.getSymbolAtLocation(r));if(!A.isUMDExportSymbol(t)){var a=r.parent,i=A.isJsxOpeningLikeElement(a);(A.isJsxOpeningLikeElement&&a.tagName===r||258===a.kind)&&(t=n.resolveName(n.getJsxNamespace(a),i?a.tagName:a,67216319,!1))}if(A.isUMDExportSymbol(t)){var o=n.getAliasedSymbol(t);if(o)return h([{moduleSymbol:o,importKind:function(e){if(A.getAllowSyntheticDefaultImports(e))return 1;var t=A.getEmitModuleKind(e);switch(t){case A.ModuleKind.AMD:case A.ModuleKind.CommonJS:case A.ModuleKind.UMD:return 3;case A.ModuleKind.System:case A.ModuleKind.ES2015:case A.ModuleKind.ESNext:case A.ModuleKind.None:return 2;default:return A.Debug.assertNever(t)}}(e.program.getCompilerOptions())}],f(e,r,t.name))}return}(e):function(t){var e=t.sourceFile,r=t.span,n=t.program,i=t.cancellationToken,o=n.getTypeChecker(),a=A.getTokenAtPosition(e,r.start,!1),s=A.isJsxOpeningLikeElement(a.parent)&&a.parent.tagName===a;if(!s&&!A.isIdentifier(a))return;var c=s?o.getJsxNamespace():a.text,u=n.getSourceFiles(),_=n.getCompilerOptions();A.Debug.assert("default"!==c);var l=A.getMeaningFromLocation(a),d=A.createMultiMap();function p(e,t,r){d.add(A.getUniqueSymbolId(t,o).toString(),{moduleSymbol:e,importKind:r})}return g(o,e,u,function(e){i.throwIfCancellationRequested();var t,r=o.tryGetMemberInModuleExports("default",e);if(r){var n=A.getLocalSymbolForExportDefault(r);(n&&n.escapedName===c||(t=r,A.firstDefined(t.declarations,function(e){if(A.isExportAssignment(e)){if(A.isIdentifier(e.expression))return e.expression.escapedText}else if(A.isExportSpecifier(e)&&(A.Debug.assert("default"===e.name.escapedText),e.propertyName))return e.propertyName.escapedText})===c)||k(e,_.target)===c)&&m(n||r,l)&&p(e,n||r,1)}var a=o.tryGetMemberInModuleExportsAndProperties(c,e);a&&m(a,l)&&p(e,a,0)}),A.arrayFrom(A.flatMapIterator(d.values(),function(e){return h(e,f(t,a,c))}))}(e)},fixIds:[],getAllCodeActions:A.notImplemented}),(r=t||(t={}))[r.Named=0]="Named",r[r.Default=1]="Default",r[r.Namespace=2]="Namespace",r[r.Equals=3]="Equals",e.getImportCompletionAction=function(e,t,r,n,a,i,o,s,c,u,_,l){var d,p,f,m=(d=e,f=[],x(p=o,c,function(e){for(var t=0,r=p.getExportsOfModule(e);t<r.length;t++){var n=r[t];if(A.skipAlias(n,p)===d){var a=p.tryGetMemberInModuleExports("default",e)===n;f.push({moduleSymbol:e,importKind:a?1:0})}}}),f);A.Debug.assert(m.some(function(e){return e.moduleSymbol===t}));var g={host:a,program:i,checker:o,compilerOptions:s,sourceFile:r,formatContext:u,symbolName:n,getCanonicalFileName:_,symbolToken:l};return{moduleSpecifier:A.first(b(i,r,m,s,_,a)).moduleSpecifier,codeAction:A.first(h(m,g))}},e.forEachExternalModuleToImportFrom=g,e.moduleSymbolToValidIdentifier=k,e.moduleSpecifierToValidIdentifier=n}(A.codefix||(A.codefix={}))}(ts||(ts={})),function(l){!function(s){var c="disableJsDiagnostics",t=l.mapDefined(Object.keys(l.Diagnostics),function(e){var t=l.Diagnostics[e];return t.category===l.DiagnosticCategory.Error?t.code:void 0});function _(e,t){return!l.isInComment(e,t)&&!l.isInString(e,t)&&!l.isInTemplateString(e,t)}function u(e,t,r,n){var a=l.getLineAndCharacterOfPosition(t,r).line;if(!n||l.addToSeen(n,a)){var i=l.getStartPositionOfLine(a,t),o=l.getFirstNonSpaceCharacterPosition(t.text,i),s=_(t,o),c=l.getTouchingToken(t,s?o:r,!1),u=l.setStartsOnNewLine(l.getSynthesizedDeepClone(c),!0);l.addSyntheticLeadingComment(u,2," @ts-ignore"),e.replaceNode(t,c,u,{preserveLeadingWhitespace:!0,prefix:s?void 0:e.newLineCharacter})}}s.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.program,n=e.span,a=e.host,i=e.formatContext;if(l.isInJavaScriptFile(t)&&l.isCheckJsEnabledForFile(t,r.getCompilerOptions())){var o=[{description:l.getLocaleSpecificMessage(l.Diagnostics.Disable_checking_for_this_file),changes:[s.createFileTextChanges(t.fileName,[l.createTextChange(t.checkJsDirective?l.createTextSpanFromBounds(t.checkJsDirective.pos,t.checkJsDirective.end):l.createTextSpan(0,0),"// @ts-nocheck"+l.getNewLineOrDefaultFromHost(a,i.options))])],fixId:void 0}];return _(t,n.start)&&o.unshift({description:l.getLocaleSpecificMessage(l.Diagnostics.Ignore_this_error_message),changes:l.textChanges.ChangeTracker.with(e,function(e){return u(e,t,n.start)}),fixId:c}),o}},fixIds:[c],getAllCodeActions:function(e){var r=l.createMap();return s.codeFixAll(e,t,function(e,t){_(t.file,t.start)&&u(e,t.file,t.start,r)})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(D){!function(e){function c(e,i,o,s){var t=e.getDeclarations();if(t&&t.length){var r,n=t[0],a=D.getSynthesizedDeepClone(D.getNameOfDeclaration(n)),c=function(e){{if(4&e)return D.createToken(114);if(16&e)return D.createToken(113)}return}(D.getModifierFlags(n)),u=c?D.createNodeArray([c]):void 0,_=o.getWidenedType(o.getTypeOfSymbolAtLocation(e,i)),l=!!(16777216&e.flags);switch(n.kind){case 155:case 156:case 150:case 151:var d=o.typeToTypeNode(_,i);s(D.createProperty(void 0,u,a,l?D.createToken(55):void 0,d,void 0));break;case 152:case 153:var p=o.getSignaturesOfType(_,0);if(!D.some(p))break;if(1===t.length){D.Debug.assert(1===p.length),g(p[0],u,a,k());break}for(var f=0,m=p;f<m.length;f++){g(m[f],(r=u)&&D.createNodeArray(r.map(D.getSynthesizedDeepClone)),D.getSynthesizedDeepClone(a))}if(t.length>p.length)g(o.getSignatureFromDeclaration(t[t.length-1]),u,a,k());else D.Debug.assert(t.length===p.length),s(function(e,t,r,n){for(var a=e[0],i=e[0].minArgumentCount,o=!1,s=0,c=e;s<c.length;s++){var u=c[s];i=Math.min(u.minArgumentCount,i),u.hasRestParameter&&(o=!0),u.parameters.length>=a.parameters.length&&(!u.hasRestParameter||a.hasRestParameter)&&(a=u)}var _=a.parameters.length-(a.hasRestParameter?1:0),l=a.parameters.map(function(e){return e.name}),d=x(_,l,i,!1);if(o){var p=D.createArrayTypeNode(D.createKeywordTypeNode(119)),f=D.createParameter(void 0,void 0,D.createToken(24),l[_]||"rest",i<=_?D.createToken(55):void 0,p,void 0);d.push(f)}return m=n,g=t,y=r,v=void 0,h=d,b=void 0,D.createMethod(void 0,m,void 0,g,y?D.createToken(55):void 0,v,h,b,k());var m,g,y,v,h,b}(p,a,l,u))}}function g(e,t,r,n){var a=function(e,t,r,n,a,i,o){var s=e.signatureToSignatureDeclaration(t,153,r,256);if(!s)return;return s.decorators=void 0,s.modifiers=n,s.name=a,s.questionToken=i?D.createToken(55):void 0,s.body=o,s}(o,e,i,t,r,l,n);a&&s(a)}}function x(e,t,r,n){for(var a=[],i=0;i<e;i++){var o=D.createParameter(void 0,void 0,void 0,t&&t[i]||"arg"+i,void 0!==r&&r<=i?D.createToken(55):void 0,n?void 0:D.createKeywordTypeNode(119),void 0);a.push(o)}return a}function k(){return D.createBlock([D.createThrow(D.createNew(D.createIdentifier("Error"),void 0,[D.createLiteral("Method not implemented.")]))],!0)}e.createMissingMemberNodes=function(e,t,r,n){for(var a=e.symbol.members,i=0,o=t;i<o.length;i++){var s=o[i];a.has(s.escapedName)||c(s,e,r,n)}},e.createMethodFromCallExpression=function(e,t,r,n){var a=e.typeArguments,i=e.arguments;return D.createMethod(void 0,n?[D.createToken(115)]:void 0,void 0,t,void 0,r?void 0:D.map(a,function(e,t){return D.createTypeParameterDeclaration(84+a.length-1<=90?String.fromCharCode(84+t):"T"+t)}),x(i.length,void 0,void 0,r),r?void 0:D.createKeywordTypeNode(119),k())}}(D.codefix||(D.codefix={}))}(ts||(ts={})),function(v){!function(t){var _,l="inferFromUsage",o=[v.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,v.Diagnostics.Variable_0_implicitly_has_an_1_type.code,v.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,v.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,v.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,v.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,v.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,v.Diagnostics.Member_0_implicitly_has_an_1_type.code];function d(e,t,r,n,a,i,o){if(function(e){switch(e){case 71:case 24:case 114:case 112:case 113:case 132:return!0;default:return!1}}(r.kind)){switch(n){case v.Diagnostics.Member_0_implicitly_has_an_1_type.code:case v.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:return p(e,t,r.parent,a,i),r.parent;case v.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var s=a.getTypeChecker().getSymbolAtLocation(r);if(s&&s.valueDeclaration)return p(e,t,s.valueDeclaration,a,i),s.valueDeclaration}var c=v.getContainingFunction(r);if(void 0!==c)switch(n){case v.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(v.isSetAccessor(c))return f(e,t,c,a,i),c;case v.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(!o||v.addToSeen(o,v.getNodeId(c))){var u=v.cast(r.parent,v.isParameter);return function(r,e,t,n,a,i){if(!v.isIdentifier(e.name)||!function(e){switch(e.kind){case 232:case 153:case 154:return!0;case 190:return!!e.name}return!1}(t))return;var o=function(e,t,r,n){switch(e.kind){case 154:case 190:case 232:case 153:var a=154===e.kind,i=a?v.findChildOfKind(e,123,t):e.name;if(i)return _.inferTypeForParametersFromReferences(g(i,r,n),e,r.getTypeChecker(),n)}}(t,n,a,i)||t.parameters.map(function(e){return v.isIdentifier(e.name)?y(e.name,a,i):void 0});if(!o||t.parameters.length!==o.length)return;v.zipWith(t.parameters,o,function(e,t){e.type||e.initializer||m(r,n,e,t,a)})}(e,u,c,t,a,i),u}return;case v.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case v.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return v.isGetAccessor(c)&&v.isIdentifier(c.name)?(m(e,t,c,y(c.name,a,i),a),c):void 0;case v.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return v.isSetAccessor(c)?(f(e,t,c,a,i),c):void 0;default:return v.Debug.fail(String(n))}}}function p(e,t,r,n,a){v.isIdentifier(r.name)&&m(e,t,r,y(r.name,n,a),n)}function f(e,t,r,n,a){var i=v.firstOrUndefined(r.parameters);i&&v.isIdentifier(r.name)&&v.isIdentifier(i.name)&&m(e,t,i,y(r.name,n,a)||y(i.name,n,a),n)}function m(e,t,r,n,a){var i,o,s,c,u,_,l=n&&(i=n,o=r,s=a.getTypeChecker(),c=!0,u=function(){c=!1},_=s.typeToTypeNode(i,o,void 0,{trackSymbol:function(e,t,r){c=c&&0===s.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:u,reportPrivateInBaseOfClassExpression:u,reportInaccessibleUniqueSymbolError:u}),c?_:void 0);l&&e.insertTypeAnnotation(t,r,l)}function g(e,t,r){return v.mapDefined(v.FindAllReferences.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),function(e){return"node"===e.type?v.tryCast(e.node,v.isIdentifier):void 0})}function y(e,t,r){return _.inferTypeFromReferences(g(e,t,r),t.getTypeChecker(),r)}t.registerCodeFix({errorCodes:o,getCodeActions:function(e){var t=e.sourceFile,r=e.program,n=e.span.start,a=e.errorCode,i=e.cancellationToken;if(!v.isSourceFileJavaScript(t)){var o,s=v.getTokenAtPosition(t,n,!1),c=v.textChanges.ChangeTracker.with(e,function(e){o=d(e,t,s,a,r,i)});if(0!==c.length){var u=v.getNameOfDeclaration(o).getText();return[{description:v.formatStringFromArgs(v.getLocaleSpecificMessage(function(e,t){switch(e){case v.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:return v.isSetAccessor(v.getContainingFunction(t))?v.Diagnostics.Infer_type_of_0_from_usage:v.Diagnostics.Infer_parameter_types_from_usage;case v.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:return v.Diagnostics.Infer_parameter_types_from_usage;default:return v.Diagnostics.Infer_type_of_0_from_usage}}(a,s)),[u]),changes:c,fixId:l}]}}},fixIds:[l],getAllCodeActions:function(e){var r=e.sourceFile,n=e.program,a=e.cancellationToken,i=v.createMap();return t.codeFixAll(e,o,function(e,t){d(e,r,v.getTokenAtPosition(t.file,t.start,!1),t.code,n,a,i)})}}),function(e){function s(e,t,r){for(;v.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;switch(e.parent.kind){case 197:r.isNumber=!0;break;case 196:!function(e,t){switch(e.operator){case 43:case 44:case 38:case 52:t.isNumber=!0;break;case 37:t.isNumberOrString=!0}}(e.parent,r);break;case 198:!function(e,t,r,n){switch(t.operatorToken.kind){case 40:case 39:case 41:case 42:case 45:case 46:case 47:case 48:case 49:case 50:case 60:case 62:case 61:case 63:case 64:case 68:case 69:case 70:case 65:case 67:case 66:case 38:case 27:case 30:case 29:case 31:var a=r.getTypeAtLocation(t.left===e?t.right:t.left);272&a.flags?o(n,a):n.isNumber=!0;break;case 59:case 37:var i=r.getTypeAtLocation(t.left===e?t.right:t.left);272&i.flags?o(n,i):84&i.flags?n.isNumber=!0:524322&i.flags?n.isString=!0:n.isNumberOrString=!0;break;case 58:case 32:case 34:case 35:case 33:o(n,r.getTypeAtLocation(t.left===e?t.right:t.left));break;case 92:e===t.left&&(n.isString=!0);break;case 54:e!==t.left||230!==e.parent.parent.kind&&!v.isAssignmentExpression(e.parent.parent,!0)||o(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t,r);break;case 264:case 265:n=e.parent,o(r,t.getTypeAtLocation(n.parent.parent.expression));break;case 185:case 186:e.parent.expression===e?function(e,t,r){var n={argumentTypes:[],returnType:{}};if(e.arguments)for(var a=0,i=e.arguments;a<i.length;a++){var o=i[a];n.argumentTypes.push(t.getTypeAtLocation(o))}s(e,t,n.returnType),185===e.kind?(r.callContexts||(r.callContexts=[])).push(n):(r.constructContexts||(r.constructContexts=[])).push(n)}(e.parent,t,r):a(e,t,r);break;case 183:!function(e,t,r){var n=v.escapeLeadingUnderscores(e.name.text);r.properties||(r.properties=v.createUnderscoreEscapedMap());var a=r.properties.get(n)||{};s(e,t,a),r.properties.set(n,a)}(e.parent,t,r);break;case 184:!function(e,t,r,n){{if(t===e.argumentExpression)return n.isNumberOrString=!0;var a=r.getTypeAtLocation(e),i={};s(e,r,i),84&a.flags?n.numberIndexContext=i:n.stringIndexContext=i}}(e.parent,e,t,r);break;default:return a(e,t,r)}var n}function a(e,t,r){v.isExpressionNode(e)&&o(r,t.getContextualType(e))}function f(e,n){if(e.isNumberOrString&&!e.isNumber&&!e.isString)return n.getUnionType([n.getNumberType(),n.getStringType()]);if(e.isNumber)return n.getNumberType();if(e.isString)return n.getStringType();if(e.candidateTypes)return n.getWidenedType(n.getUnionType(v.map(e.candidateTypes,function(e){return n.getBaseTypeOfLiteralType(e)}),2));if(e.properties&&y(e.properties.get("then"))){var t=m(0,e.properties.get("then").callContexts,!1,n).getCallSignatures().map(function(e){return e.getReturnType()});return n.createPromiseType(t.length?n.getUnionType(t,2):n.getAnyType())}if(e.properties&&y(e.properties.get("push")))return n.createArrayType(m(0,e.properties.get("push").callContexts,!1,n));if(e.properties||e.callContexts||e.constructContexts||e.numberIndexContext||e.stringIndexContext){var a=v.createUnderscoreEscapedMap(),r=[],i=[],o=void 0,s=void 0;if(e.properties&&e.properties.forEach(function(e,t){var r=n.createSymbol(4,t);r.type=f(e,n)||n.getAnyType(),a.set(t,r)}),e.callContexts)for(var c=0,u=e.callContexts;c<u.length;c++){var _=u[c];r.push(g(_,n))}if(e.constructContexts)for(var l=0,d=e.constructContexts;l<d.length;l++){var p=d[l];i.push(g(p,n))}return e.numberIndexContext&&(s=n.createIndexInfo(f(e.numberIndexContext,n),!1)),e.stringIndexContext&&(o=n.createIndexInfo(f(e.stringIndexContext,n),!1)),n.createAnonymousType(void 0,a,r,i,o,s)}}function m(e,t,r,n){var a=[];if(t)for(var i=0,o=t;i<o.length;i++){var s=o[i];s.argumentTypes.length>e&&(r?a=v.concatenate(a,v.map(s.argumentTypes.slice(e),function(e){return n.getBaseTypeOfLiteralType(e)})):a.push(n.getBaseTypeOfLiteralType(s.argumentTypes[e])))}if(a.length){var c=n.getWidenedType(n.getUnionType(a,2));return r?n.createArrayType(c):c}}function g(e,t){for(var r=[],n=0;n<e.argumentTypes.length;n++){var a=t.createSymbol(1,v.escapeLeadingUnderscores("arg"+n));a.type=t.getWidenedType(t.getBaseTypeOfLiteralType(e.argumentTypes[n])),r.push(a)}var i=f(e.returnType,t)||t.getVoidType();return t.createSignature(void 0,void 0,void 0,r,i,void 0,e.argumentTypes.length,!1,!1)}function o(e,t){!t||1&t.flags||16384&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function y(e){return e&&e.callContexts}e.inferTypeFromReferences=function(e,t,r){for(var n={},a=0,i=e;a<i.length;a++){var o=i[a];r.throwIfCancellationRequested(),s(o,t,n)}return f(n,t)},e.inferTypeForParametersFromReferences=function(e,t,u,r){if(0!==e.length&&t.parameters){for(var n={},a=0,i=e;a<i.length;a++){var o=i[a];r.throwIfCancellationRequested(),s(o,u,n)}var _=154===t.kind?n.constructContexts:n.callContexts;return _&&t.parameters.map(function(e,t){for(var r=[],n=v.isRestParameter(e),a=0,i=_;a<i.length;a++){var o=i[a];if(!(o.argumentTypes.length<=t))if(n)for(var s=t;s<o.argumentTypes.length;s++)r.push(u.getBaseTypeOfLiteralType(o.argumentTypes[s]));else r.push(u.getBaseTypeOfLiteralType(o.argumentTypes[t]))}if(r.length){var c=u.getWidenedType(u.getUnionType(r,2));return n?u.createArrayType(c):c}})}}}(_||(_={}))}(v.codefix||(v.codefix={}))}(ts||(ts={})),function(u){!function(o){function c(e,t){var r=u.getSourceFileOfNode(t),n=u.getNamespaceDeclarationNode(t),a=e.program.getCompilerOptions(),i=[];return i.push(s(e,r,t,o.makeImportDeclaration(n.name,void 0,t.moduleSpecifier))),u.getEmitModuleKind(a)===u.ModuleKind.CommonJS&&i.push(s(e,r,t,u.createImportEqualsDeclaration(void 0,void 0,n.name,u.createExternalModuleReference(t.moduleSpecifier)))),i}function s(e,t,r,n){var a=u.textChanges.ChangeTracker.with(e,function(e){return e.replaceRange(t,{pos:r.getStart(),end:r.end},n)});return{description:u.formatStringFromArgs(u.getLocaleSpecificMessage(u.Diagnostics.Replace_import_with_0),[a[0].textChanges[0].newText]),changes:a}}o.registerCodeFix({errorCodes:[u.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime.code],getCodeActions:function(e){var t=e.sourceFile,r=u.getTokenAtPosition(t,e.span.start,!1).parent;if(!u.isImportDeclaration(r))return[];return c(e,r)}}),o.registerCodeFix({errorCodes:[u.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,u.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(t){var r=t.sourceFile,n=u.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===t.errorCode?185:186,e=u.findAncestor(u.getTokenAtPosition(r,t.span.start,!1),function(e){return e.kind===n&&e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!e)return[];var a=e.expression,i=t.program.getTypeChecker().getTypeAtLocation(a);if(!i.symbol||!i.symbol.originatingImport)return[];var o=[],s=i.symbol.originatingImport;u.isImportCall(s)||u.addRange(o,c(t,s));return o.push({description:u.getLocaleSpecificMessage(u.Diagnostics.Use_synthetic_default_member),changes:u.textChanges.ChangeTracker.with(t,function(e){return e.replaceNode(r,a,u.createPropertyAccess(a,"default"),{})})}),o}})}(u.codefix||(u.codefix={}))}(ts||(ts={})),function(x){!function(e){var p="addMissingPropertyDefiniteAssignmentAssertions",f="addMissingPropertyUndefinedType",m="addMissingPropertyInitializer",t=[x.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function g(e,t){var r=x.getTokenAtPosition(e,t,!1);return x.isIdentifier(r)?x.cast(r.parent,x.isPropertyDeclaration):void 0}function y(e,t,r,n){var a=x.updateProperty(r,r.decorators,r.modifiers,r.name,x.createToken(51),r.type,r.initializer);e.replaceNode(t,r,a,{suffix:n})}function v(e,t,r){var n=x.createKeywordTypeNode(140),a=x.isUnionTypeNode(r.type)?r.type.types.concat(n):[r.type,n];e.replaceNode(t,r.type,x.createUnionTypeNode(a))}function h(e,t,r,n,a){var i=x.updateProperty(r,r.decorators,r.modifiers,r.name,r.questionToken,r.type,n);e.replaceNode(t,r,i,{suffix:a})}function b(e,t){return function t(r,e){{if(2&e.flags)return x.createLiteral("");if(4&e.flags)return x.createNumericLiteral("0");if(8&e.flags)return x.createFalse();if(224&e.flags)return x.createLiteral(e.value);if(131072&e.flags)return x.firstDefined(e.types,function(e){return t(r,e)});if(1&x.getObjectFlags(e)){var n=x.getClassLikeDeclarationOfSymbol(e.symbol);if(!n||x.hasModifier(n,128))return;var a=x.find(n.members,function(e){return x.isConstructorDeclaration(e)&&!!e.body});if(a&&a.parameters.length)return;return x.createNew(x.createIdentifier(e.symbol.name),void 0,void 0)}}return}(e,e.getTypeFromTypeNode(t.type))}e.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=g(e.sourceFile,e.span.start);if(t){var r,n,a,i,o,s,c,u,_,l=x.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),d=[(s=e,c=t,u=x.formatStringFromArgs(x.getLocaleSpecificMessage(x.Diagnostics.Add_undefined_type_to_property_0),[c.name.getText()]),_=x.textChanges.ChangeTracker.with(s,function(e){return v(e,s.sourceFile,c)}),{description:u,changes:_,fixId:f}),(r=e,n=t,a=l,i=x.formatStringFromArgs(x.getLocaleSpecificMessage(x.Diagnostics.Add_definite_assignment_assertion_to_property_0),[n.getText()]),o=x.textChanges.ChangeTracker.with(r,function(e){return y(e,r.sourceFile,n,a)}),{description:i,changes:o,fixId:p})];return x.append(d,function(t,r,n){var a=b(t.program.getTypeChecker(),r);if(!a)return;var e=x.formatStringFromArgs(x.getLocaleSpecificMessage(x.Diagnostics.Add_initializer_to_property_0),[r.name.getText()]),i=x.textChanges.ChangeTracker.with(t,function(e){return h(e,t.sourceFile,r,a,n)});return{description:e,changes:i,fixId:m}}(e,t,l)),d}},fixIds:[p,f,m],getAllCodeActions:function(a){var i=x.getNewLineOrDefaultFromHost(a.host,a.formatContext.options);return e.codeFixAll(a,t,function(e,t){var r=g(t.file,t.start);if(r)switch(a.fixId){case p:y(e,t.file,r,i);break;case f:v(e,t.file,r);break;case m:var n=b(a.program.getTypeChecker(),r);if(!n)return;h(e,t.file,r,n,i);break;default:x.Debug.fail(JSON.stringify(a.fixId))}})}})}(x.codefix||(x.codefix={}))}(ts||(ts={})),function(s){!function(n){var a="useDefaultImport",t=[s.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(e,t){var r=s.getTokenAtPosition(e,t,!1);if(s.isIdentifier(r)){var n=r.parent;if(s.isImportEqualsDeclaration(n)&&s.isExternalModuleReference(n.moduleReference))return{importNode:n,name:r,moduleSpecifier:n.moduleReference.expression};if(s.isNamespaceImport(n)){var a=n.parent.parent;return{importNode:a,name:r,moduleSpecifier:a.moduleSpecifier}}}}function o(e,t,r){e.replaceNode(t,r.importNode,n.makeImportDeclaration(r.name,void 0,r.moduleSpecifier))}n.registerCodeFix({errorCodes:t,getCodeActions:function(e){var t=e.sourceFile,r=e.span.start,n=i(t,r);if(n)return[{description:s.getLocaleSpecificMessage(s.Diagnostics.Convert_to_default_import),changes:s.textChanges.ChangeTracker.with(e,function(e){return o(e,t,n)}),fixId:a}]},fixIds:[a],getAllCodeActions:function(e){return n.codeFixAll(e,t,function(e,t){var r=i(t.file,t.start);r&&o(e,t.file,r)})}})}(s.codefix||(s.codefix={}))}(ts||(ts={})),function(ne){var c;(function(e){var K,Y,t,r,n,a,i,b="Extract Symbol";function o(e){var t=T(e.file,{start:e.startPosition,length:ne.getRefactorContextLength(e)}).targetRange;if(void 0!==t){var r,n,a,l,d,i=(r=N(t,e),n=r.scopes,a=r.readsAndWrites,l=a.functionErrorsPerScope,d=a.constantErrorsPerScope,n.map(function(e,t){var r,n,a,i,o,s,c=(r=e,ne.isFunctionLikeDeclaration(r)?"inner function":ne.isClassLike(r)?"method":"function"),u=(n=e,ne.isClassLike(n)?"readonly field":"constant"),_=ne.isFunctionLikeDeclaration(e)?function(e){switch(e.kind){case 154:return"constructor";case 190:case 232:return e.name?"function '"+e.name.text+"'":"anonymous function";case 191:return"arrow function";case 153:return"method '"+e.name.getText();case 155:return"'get "+e.name.getText()+"'";case 156:return"'set "+e.name.getText()+"'";default:ne.Debug.assertNever(e)}}(e):ne.isClassLike(e)?233===(i=e).kind?i.name?"class '"+i.name.text+"'":"anonymous class declaration":i.name?"class expression '"+i.name.text+"'":"anonymous class expression":238===(a=e).kind?"namespace '"+a.parent.name.getText()+"'":a.externalModuleIndicator?0:1;return 1===_?(o=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[c,"global"]),s=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[u,"global"])):0===_?(o=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[c,"module"]),s=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[u,"module"])):(o=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1),[c,_]),s=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1),[u,_])),0!==t||ne.isClassLike(e)||(s=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_enclosing_scope),[u])),{functionExtraction:{description:o,errors:l[t]},constantExtraction:{description:s,errors:d[t]}}}));if(void 0!==i){for(var o=[],s=ne.createMap(),c=[],u=ne.createMap(),_=0,p=0,f=i;p<f.length;p++){var m=f[p],g=m.functionExtraction,y=m.constantExtraction;if(0===g.errors.length){var v=g.description;s.has(v)||(s.set(v,!0),o.push({description:v,name:"function_scope_"+_}))}0===y.errors.length&&(v=y.description,u.has(v)||(u.set(v,!0),c.push({description:v,name:"constant_scope_"+_}))),_++}var h=[];return o.length&&h.push({name:b,description:ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_function),actions:o}),c.length&&h.push({name:b,description:ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_constant),actions:c}),h.length?h:void 0}}}function s(e,t){var r,n,a,i,o,s,c,u,_,l,d=T(e.file,{start:e.startPosition,length:ne.getRefactorContextLength(e)}).targetRange,p=/^function_scope_(\d+)$/.exec(t);if(p){var f=+p[1];return ne.Debug.assert(isFinite(f),"Expected to parse a finite number from the function scope index"),a=f,i=N(r=d,n=e),o=i.scopes,s=i.readsAndWrites,c=s.target,u=s.usagesPerScope,_=s.functionErrorsPerScope,l=s.exposedVariableDeclarations,ne.Debug.assert(!_[a].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),function(e,i,t,r,n,a){var o,s,c=t.usages,u=t.typeParameterUsages,_=t.substitutions,l=a.program.getTypeChecker(),d=i.getSourceFile(),p=Z(ne.isClassLike(i)?"newMethod":"newFunction",d.text),f=ne.isInJavaScriptFile(i),m=ne.createIdentifier(p),g=[],y=[];c.forEach(function(e,t){var r;if(!f){var n=l.getTypeOfSymbolAtLocation(e.symbol,e.node);n=l.getBaseTypeOfLiteralType(n),r=l.typeToTypeNode(n,i,1)}var a=ne.createParameter(void 0,void 0,void 0,t,void 0,r);g.push(a),2===e.usage&&(s||(s=[])).push(e),y.push(ne.createIdentifier(t))});var v=ne.arrayFrom(u.values()).map(function(e){return{type:e,declaration:function(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,a=r.declarations;n<a.length;n++){var i=a[n];(void 0===t||i.pos<t.pos)&&(t=i)}return t}(e)}}).sort(ee),h=0===v.length?void 0:v.map(function(e){return e.declaration}),b=void 0!==h?h.map(function(e){return ne.createTypeReferenceNode(e.name,void 0)}):void 0;if(ne.isExpression(e)&&!f){var x=l.getContextualType(e);o=l.typeToTypeNode(x,i,1)}var k,D=function(e,o,s,c,t){var u,_=void 0!==s||0<o.length;if(ne.isBlock(e)&&!_&&0===c.size)return{body:ne.createBlock(e.statements,!0),returnValueProperty:void 0};var l=!1,r=ne.createNodeArray(ne.isBlock(e)?e.statements.slice(0):[ne.isStatement(e)?e:ne.createReturn(e)]);if(_||c.size){var n=ne.visitNodes(r,function e(t){if(!l&&223===t.kind&&_){var r=te(o,s);return t.expression&&(u||(u="__return"),r.unshift(ne.createPropertyAssignment(u,ne.visitNode(t.expression,e)))),1===r.length?ne.createReturn(r[0].name):ne.createReturn(ne.createObjectLiteral(r))}var n=l;l=l||ne.isFunctionLikeDeclaration(t)||ne.isClassLike(t);var a=c.get(ne.getNodeId(t).toString()),i=a?ne.getSynthesizedDeepClone(a):ne.visitEachChild(t,e,ne.nullTransformationContext);return l=n,i}).slice();if(_&&!t&&ne.isStatement(e)){var a=te(o,s);1===a.length?n.push(ne.createReturn(a[0].name)):n.push(ne.createReturn(ne.createObjectLiteral(a)))}return{body:ne.createBlock(n,!0),returnValueProperty:u}}return{body:ne.createBlock(r,!0),returnValueProperty:void 0}}(e,r,s,_,!!(n.facts&Y.HasReturn)),S=D.body,C=D.returnValueProperty;if(ne.suppressLeadingAndTrailingTrivia(S),ne.isClassLike(i)){var T=f?[]:[ne.createToken(112)];n.facts&Y.InStaticRegion&&T.push(ne.createToken(115)),n.facts&Y.IsAsyncFunction&&T.push(ne.createToken(120)),k=ne.createMethod(void 0,T.length?T:void 0,n.facts&Y.IsGenerator?ne.createToken(39):void 0,m,void 0,h,g,o,S)}else k=ne.createFunctionDeclaration(void 0,n.facts&Y.IsAsyncFunction?[ne.createToken(120)]:void 0,n.facts&Y.IsGenerator?ne.createToken(39):void 0,m,h,g,o,S);var E,N,A=ne.textChanges.ChangeTracker.fromContext(a),P=(E=(re(n.range)?ne.last(n.range):n.range).end,N=i,ne.find(function(e){if(ne.isFunctionLikeDeclaration(e)){var t=e.body;if(ne.isBlock(t))return t.statements}else{if(ne.isModuleBlock(e)||ne.isSourceFile(e))return e.statements;if(ne.isClassLike(e))return e.members;ne.assertTypeIsNever(e)}return ne.emptyArray}(N),function(e){return e.pos>=E&&ne.isFunctionLikeDeclaration(e)&&!ne.isConstructorDeclaration(e)}));P?A.insertNodeBefore(a.file,P,k,!0):A.insertNodeAtEndOfScope(a.file,i,k);var F=[],w=function(e,t,r){var n=ne.createIdentifier(r);if(ne.isClassLike(e)){var a=t.facts&Y.InStaticRegion?ne.createIdentifier(e.name.text):ne.createThis();return ne.createPropertyAccess(a,n)}return n}(i,n,p),I=ne.createCall(w,b,y);if(n.facts&Y.IsGenerator&&(I=ne.createYield(ne.createToken(39),I)),n.facts&Y.IsAsyncFunction&&(I=ne.createAwait(I)),r.length&&!s)if(ne.Debug.assert(!C),ne.Debug.assert(!(n.facts&Y.HasReturn)),1===r.length){var O=r[0];F.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(ne.getSynthesizedDeepClone(O.name),ne.getSynthesizedDeepClone(O.type),I)],O.parent.flags)))}else{for(var M=[],L=[],R=r[0].parent.flags,B=!1,z=0,J=r;z<J.length;z++){var O=J[z];M.push(ne.createBindingElement(void 0,void 0,ne.getSynthesizedDeepClone(O.name)));var j=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(O)),i,1);L.push(ne.createPropertySignature(void 0,O.symbol.name,void 0,j,void 0)),B=B||void 0!==O.type,R&=O.parent.flags}var K=B?ne.createTypeLiteralNode(L):void 0;K&&ne.setEmitFlags(K,1),F.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(ne.createObjectBindingPattern(M),K,I)],R)))}else if(r.length||s){if(r.length)for(var U=0,q=r;U<q.length;U++){var O=q[U],V=O.parent.flags;2&V&&(V=-3&V|1),F.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(O.symbol.name,Q(O.type))],V)))}C&&F.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(C,Q(o))],1)));var W=te(r,s);C&&W.unshift(ne.createShorthandPropertyAssignment(C)),1===W.length?(ne.Debug.assert(!C),F.push(ne.createStatement(ne.createAssignment(W[0].name,I))),n.facts&Y.HasReturn&&F.push(ne.createReturn())):(F.push(ne.createStatement(ne.createAssignment(ne.createObjectLiteral(W),I))),C&&F.push(ne.createReturn(ne.createIdentifier(C))))}else n.facts&Y.HasReturn?F.push(ne.createReturn(I)):re(n.range)?F.push(ne.createStatement(I)):F.push(I);re(n.range)?A.replaceNodeRangeWithNodes(a.file,ne.first(n.range),ne.last(n.range),F):A.replaceNodeWithNodes(a.file,n.range,F);var H=A.getChanges(),G=(re(n.range)?ne.first(n.range):n.range).getSourceFile().fileName,X=$(H,G,p,!1);return{renameFilename:G,renameLocation:X,edits:H};function Q(e){if(void 0!==e){for(var t=ne.getSynthesizedDeepClone(e),r=t;ne.isParenthesizedTypeNode(r);)r=r.type;return ne.isUnionTypeNode(r)&&ne.find(r.types,function(e){return 140===e.kind})?t:ne.createUnionTypeNode([t,ne.createKeywordTypeNode(140)])}}}(c,o[a],u[a],l,r,n)}var m,g,y,v,h,b,x,k,D,S,C=/^constant_scope_(\d+)$/.exec(t);if(C)return f=+C[1],ne.Debug.assert(isFinite(f),"Expected to parse a finite number from the constant scope index"),y=f,v=N(m=d,g=e),h=v.scopes,b=v.readsAndWrites,x=b.target,k=b.usagesPerScope,D=b.constantErrorsPerScope,S=b.exposedVariableDeclarations,ne.Debug.assert(!D[y].length,"The extraction went missing? How?"),ne.Debug.assert(0===S.length,"Extract constant accepted a range containing a variable declaration?"),g.cancellationToken.throwIfCancellationRequested(),function(e,t,r,n,a){var i,o,s=r.substitutions,c=a.program.getTypeChecker(),u=t.getSourceFile(),_=Z(ne.isClassLike(t)?"newProperty":"newLocal",u.text),l=ne.isInJavaScriptFile(t),d=l||!c.isContextSensitive(e)?void 0:c.typeToTypeNode(c.getContextualType(e),t,1),p=(i=e,(o=s).size?function e(t){var r=o.get(ne.getNodeId(t).toString());return r?ne.getSynthesizedDeepClone(r):ne.visitEachChild(t,e,ne.nullTransformationContext)}(i):i);ne.suppressLeadingAndTrailingTrivia(p);var f=ne.textChanges.ChangeTracker.fromContext(a);if(ne.isClassLike(t)){ne.Debug.assert(!l);var m=[];m.push(ne.createToken(112)),n&Y.InStaticRegion&&m.push(ne.createToken(115)),m.push(ne.createToken(132));var g=ne.createProperty(void 0,m,_,void 0,d,p),y=ne.createPropertyAccess(n&Y.InStaticRegion?ne.createIdentifier(t.name.getText()):ne.createThis(),ne.createIdentifier(_)),v=e.pos,h=function(e,t){var r,n=t.members;ne.Debug.assert(0<n.length);for(var a=!0,i=0,o=n;i<o.length;i++){var s=o[i];if(s.pos>e)return r||n[0];if(a&&!ne.isPropertyDeclaration(s)){if(void 0!==r)return s;a=!1}r=s}return ne.Debug.assert(void 0!==r),r}(v,t);f.insertNodeBefore(a.file,h,g,!0),f.replaceNode(a.file,e,y,ne.textChanges.useNonAdjustedPositions)}else{var b=ne.createVariableDeclaration(_,d,p),x=function(e,t){for(var r;void 0!==e&&e!==t;){if(ne.isVariableDeclaration(e)&&e.initializer===r&&ne.isVariableDeclarationList(e.parent)&&1<e.parent.declarations.length)return e;e=(r=e).parent}}(e,t);if(x){f.insertNodeBefore(a.file,x,b);var y=ne.createIdentifier(_);f.replaceNode(a.file,e,y,ne.textChanges.useNonAdjustedPositions)}else if(214===e.parent.kind&&t===ne.findAncestor(e,E)){var k=ne.createVariableStatement(void 0,ne.createVariableDeclarationList([b],2));f.replaceNode(a.file,e.parent,k,ne.textChanges.useNonAdjustedPositions)}else{var k=ne.createVariableStatement(void 0,ne.createVariableDeclarationList([b],2)),h=function(e,t){var r;ne.Debug.assert(!ne.isClassLike(t));for(var n=e;n!==t;n=n.parent)E(n)&&(r=n);for(var n=(r||e).parent;;n=n.parent){if(A(n)){for(var a=void 0,i=0,o=n.statements;i<o.length;i++){var s=o[i];if(s.pos>e.pos)break;a=s}return!a&&ne.isCaseClause(n)?(ne.Debug.assert(ne.isSwitchStatement(n.parent.parent)),n.parent.parent):(ne.Debug.assert(void 0!==a),a)}if(n===t){ne.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}(e,t);if(0===h.pos?f.insertNodeAtTopOfFile(a.file,k,!1):f.insertNodeBefore(a.file,h,k,!1),214===e.parent.kind)f.deleteNode(a.file,e.parent,ne.textChanges.useNonAdjustedPositions);else{var y=ne.createIdentifier(_);f.replaceNode(a.file,e,y,ne.textChanges.useNonAdjustedPositions)}}}var D=f.getChanges(),S=e.getSourceFile().fileName,C=$(D,S,_,!0);return{renameFilename:S,renameLocation:C,edits:D}}(ne.isExpression(x)?x:x.statements[0].expression,h[y],k[y],m.facts,g);ne.Debug.fail("Unrecognized action name")}function T(e,u){var t=u.length;if(0===t)return{errors:[ne.createFileDiagnostic(e,u.start,t,K.cannotExtractEmpty)]};var r=g(ne.getTokenAtPosition(e,u.start,!1),e,u),n=g(ne.findTokenOnLeftOfPosition(e,ne.textSpanEnd(u)),e,u),_=[],l=Y.None;if(!r||!n)return{errors:[ne.createFileDiagnostic(e,u.start,t,K.cannotExtractRange)]};if(r.parent!==n.parent)return{errors:[ne.createFileDiagnostic(e,u.start,t,K.cannotExtractRange)]};if(r!==n){if(!A(r.parent))return{errors:[ne.createFileDiagnostic(e,u.start,t,K.cannotExtractRange)]};for(var a=[],i=0,o=r.parent.statements;i<o.length;i++){var s=o[i];if(s===r||a.length){var c=m(s);if(c)return{errors:c};a.push(s)}if(s===n)break}return a.length?{targetRange:{range:a,facts:l,declarations:_}}:{errors:[ne.createFileDiagnostic(e,u.start,t,K.cannotExtractRange)]}}if(ne.isReturnStatement(r)&&!r.expression)return{errors:[ne.createFileDiagnostic(e,u.start,t,K.cannotExtractRange)]};var d,p=function(e){if(ne.isReturnStatement(e)){if(e.expression)return e.expression}else if(ne.isVariableStatement(e)){for(var t=0,r=void 0,n=0,a=e.declarationList.declarations;n<a.length;n++){var i=a[n];i.initializer&&(t++,r=i.initializer)}if(1===t)return r}else if(ne.isVariableDeclaration(e)&&e.initializer)return e.initializer;return e}(r),f=function(e){if(ne.isIdentifier(ne.isExpressionStatement(e)?e.expression:e))return[ne.createDiagnosticForNode(e,K.cannotExtractIdentifier)]}(p)||m(p);return f?{errors:f}:{targetRange:{range:(d=p,ne.isStatement(d)?[d]:ne.isExpressionNode(d)?ne.isExpressionStatement(d.parent)?[d.parent]:d:void 0),facts:l,declarations:_}};function m(e){var t,r;if((r=t||(t={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",ne.Debug.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),ne.Debug.assert(!ne.positionIsSynthesized(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(ne.isStatement(e)||ne.isExpressionNode(e)&&function(e){switch(e.parent.kind){case 271:return!1}switch(e.kind){case 9:return 242!==e.parent.kind&&246!==e.parent.kind;case 202:case 178:case 180:return!1;case 71:return 180!==e.parent.kind&&246!==e.parent.kind&&250!==e.parent.kind}return!0}(e)))return[ne.createDiagnosticForNode(e,K.statementOrExpressionExpected)];if(2097152&e.flags)return[ne.createDiagnosticForNode(e,K.cannotExtractAmbientBlock)];var o,n=ne.getContainingClass(e);n&&function(e,t){for(var r=e;r!==t;){if(151===r.kind){ne.hasModifier(r,32)&&(l|=Y.InStaticRegion);break}if(148===r.kind){154===ne.getContainingFunction(r).kind&&(l|=Y.InStaticRegion);break}153===r.kind&&ne.hasModifier(r,32)&&(l|=Y.InStaticRegion),r=r.parent}}(e,n);var s,c=4;return function e(t){if(o)return!0;if(ne.isDeclaration(t)){var r=230===t.kind?t.parent.parent:t;if(ne.hasModifier(r,1))return(o||(o=[])).push(ne.createDiagnosticForNode(t,K.cannotExtractExportedEntity)),!0;_.push(t.symbol)}switch(t.kind){case 242:return(o||(o=[])).push(ne.createDiagnosticForNode(t,K.cannotExtractImport)),!0;case 97:if(185===t.parent.kind){var n=ne.getContainingClass(t);if(n.pos<u.start||n.end>=u.start+u.length)return(o||(o=[])).push(ne.createDiagnosticForNode(t,K.cannotExtractSuper)),!0}else l|=Y.UsesThis}if(!t||ne.isFunctionLikeDeclaration(t)||ne.isClassLike(t)){switch(t.kind){case 232:case 233:ne.isSourceFile(t.parent)&&void 0===t.parent.externalModuleIndicator&&(o||(o=[])).push(ne.createDiagnosticForNode(t,K.functionWillNotBeVisibleInTheNewScope))}return!1}var a=c;switch(t.kind){case 215:case 228:c=0;break;case 211:t.parent&&228===t.parent.kind&&t.parent.finallyBlock===t&&(c=4);break;case 264:c|=1;break;default:ne.isIterationStatement(t,!1)&&(c|=3)}switch(t.kind){case 173:case 99:l|=Y.UsesThis;break;case 226:var i=t.label;(s||(s=[])).push(i.escapedText),ne.forEachChild(t,e),s.pop();break;case 222:case 221:var i=t.label;i?ne.contains(s,i.escapedText)||(o||(o=[])).push(ne.createDiagnosticForNode(t,K.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):c&(222===t.kind?1:2)||(o||(o=[])).push(ne.createDiagnosticForNode(t,K.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 195:l|=Y.IsAsyncFunction;break;case 201:l|=Y.IsGenerator;break;case 223:4&c?l|=Y.HasReturn:(o||(o=[])).push(ne.createDiagnosticForNode(t,K.cannotExtractRangeContainingConditionalReturnStatement));break;default:ne.forEachChild(t,e)}c=a}(e),o}}function E(e){return ne.isFunctionLikeDeclaration(e)||ne.isSourceFile(e)||ne.isModuleBlock(e)||ne.isClassLike(e)}function N(e,t){var r,n,a=t.file,i=function(e){var t=re(e.range)?ne.first(e.range):e.range;if(e.facts&Y.UsesThis){var r=ne.getContainingClass(t);if(r){var n=ne.findAncestor(t,ne.isFunctionLikeDeclaration);return n?[n,r]:[r]}}for(var a=[];;)if(148===(t=t.parent).kind&&(t=ne.findAncestor(t,function(e){return ne.isFunctionLikeDeclaration(e)}).parent),E(t)&&(a.push(t),272===t.kind))return a}(e);return{scopes:i,readsAndWrites:function(k,D,S,C,T,o){var s,e,c=ne.createMap(),E=[],N=[],A=[],P=[],i=[],u=ne.createMap(),_=[],t=re(k.range)?1===k.range.length&&ne.isExpressionStatement(k.range[0])?k.range[0].expression:void 0:k.range;if(void 0===t){var r=k.range,n=ne.first(r).getStart(),a=ne.last(r).end;e=ne.createFileDiagnostic(C,n,a-n,K.expressionExpected)}else 18432&T.getTypeAtLocation(t).flags&&(e=ne.createDiagnosticForNode(t,K.uselessConstantType));for(var l=0,d=D;l<d.length;l++){var p=d[l];E.push({usages:ne.createMap(),typeParameterUsages:ne.createMap(),substitutions:ne.createMap()}),N.push(ne.createMap()),A.push(ne.isFunctionLikeDeclaration(p)&&232!==p.kind?[ne.createDiagnosticForNode(p,K.cannotExtractToOtherFunctionLike)]:[]);var f=[];e&&f.push(e),ne.isClassLike(p)&&ne.isInJavaScriptFile(p)&&f.push(ne.createDiagnosticForNode(p,K.cannotExtractToJSClass)),ne.isArrowFunction(p)&&!ne.isBlock(p.body)&&f.push(ne.createDiagnosticForNode(p,K.cannotExtractToExpressionArrowFunction)),P.push(f)}var F=ne.createMap(),m=re(k.range)?ne.createBlock(k.range):k.range,g=re(k.range)?ne.first(k.range):k.range,y=function(e){for(;e;e=e.parent)if(t=e,ne.isDeclarationWithTypeParameters(t)&&void 0!==t.typeParameters&&0<t.typeParameters.length)return!0;var t;return!1}(g);if(function e(t,r){if(void 0===r&&(r=1),y){var n=T.getTypeAtLocation(t);z(n)}if(ne.isDeclaration(t)&&t.symbol&&i.push(t),ne.isAssignmentExpression(t))e(t.left,2),e(t.right);else if(ne.isUnaryExpressionWithWrite(t))e(t.operand,2);else if(ne.isPropertyAccessExpression(t)||ne.isElementAccessExpression(t))ne.forEachChild(t,e);else if(ne.isIdentifier(t)){if(!t.parent)return;if(ne.isQualifiedName(t.parent)&&t!==t.parent.left)return;if(ne.isPropertyAccessExpression(t.parent)&&t!==t.parent.expression)return;!function(e,t,r){var n=function(e,t,r){var n=J(e);if(n){var a=ne.getSymbolId(n).toString(),i=F.get(a);if(i&&t<=i)return a;if(F.set(a,t),i){for(var o=0,s=E;o<s.length;o++){var c=s[o],u=c.usages.get(e.text);u&&c.usages.set(e.text,{usage:t,symbol:n,node:e})}return a}var _=n.getDeclarations(),l=_&&ne.find(_,function(e){return e.getSourceFile()===C});if(l&&!ne.rangeContainsStartEnd(S,l.getStart(),l.end)){if(k.facts&Y.IsGenerator&&2===t){for(var d=ne.createDiagnosticForNode(e,K.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),p=0,f=A;p<f.length;p++){var m=f[p];m.push(d)}for(var g=0,y=P;g<y.length;g++){var m=y[g];m.push(d)}}for(var v=0;v<D.length;v++){var h=D[v],b=T.resolveName(n.name,h,n.flags,!1);if(b!==n&&!N[v].has(a)){var x=j(n.exportSymbol||n,h,r);if(x)N[v].set(a,x);else if(r){if(!(262144&n.flags)){var d=ne.createDiagnosticForNode(e,K.typeWillNotBeVisibleInTheNewScope);A[v].push(d),P[v].push(d)}}else E[v].usages.set(e.text,{usage:t,symbol:n,node:e})}}return a}}}(e,t,r);if(n)for(var a=0;a<D.length;a++){var i=N[a].get(n);i&&E[a].substitutions.set(ne.getNodeId(e).toString(),i)}}(t,r,ne.isPartOfTypeNode(t))}else ne.forEachChild(t,e)}(m),y&&!re(k.range)){var v=T.getContextualType(k.range);z(v)}if(0<c.size){for(var h=ne.createMap(),b=0,x=g;void 0!==x&&b<D.length;x=x.parent)if(x===D[b]&&(h.forEach(function(e,t){E[b].typeParameterUsages.set(t,e)}),b++),ne.isDeclarationWithTypeParameters(x)&&x.typeParameters)for(var w=0,I=x.typeParameters;w<I.length;w++){var O=I[w],M=T.getTypeAtLocation(O);c.has(M.id.toString())&&h.set(M.id.toString(),M)}ne.Debug.assert(b===D.length)}if(i.length){var L=ne.isBlockScope(D[0],D[0].parent)?D[0]:ne.getEnclosingBlockScopeContainer(D[0]);ne.forEachChild(L,function e(t){if(!(t===k.range||re(k.range)&&0<=k.range.indexOf(t))){var r=ne.isIdentifier(t)?J(t):T.getSymbolAtLocation(t);if(r){var n=ne.find(i,function(e){return e.symbol===r});if(n)if(ne.isVariableDeclaration(n)){var a=n.symbol.id.toString();u.has(a)||(_.push(n),u.set(a,!0))}else s=s||n}ne.forEachChild(t,e)}})}for(var R=function(e){var t=E[e];if(0<e&&(0<t.usages.size||0<t.typeParameterUsages.size)){var r=re(k.range)?k.range[0]:k.range;P[e].push(ne.createDiagnosticForNode(r,K.cannotAccessVariablesFromNestedScopes))}var n,a=!1;if(E[e].usages.forEach(function(e){2===e.usage&&(a=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&ne.hasModifier(e.symbol.valueDeclaration,64)&&(n=e.symbol.valueDeclaration))}),ne.Debug.assert(re(k.range)||0===_.length),a&&!re(k.range)){var i=ne.createDiagnosticForNode(k.range,K.cannotWriteInExpression);A[e].push(i),P[e].push(i)}else if(n&&0<e){var i=ne.createDiagnosticForNode(n,K.cannotExtractReadonlyPropertyInitializerOutsideConstructor);A[e].push(i),P[e].push(i)}else if(s){var i=ne.createDiagnosticForNode(s,K.cannotExtractExportedEntity);A[e].push(i),P[e].push(i)}},B=0;B<D.length;B++)R(B);return{target:m,usagesPerScope:E,functionErrorsPerScope:A,constantErrorsPerScope:P,exposedVariableDeclarations:_};function z(e){for(var t=T.getSymbolWalker(function(){return o.throwIfCancellationRequested(),!0}),r=t.walkType(e).visitedTypes,n=0,a=r;n<a.length;n++){var i=a[n];32768&i.flags&&c.set(i.id.toString(),i)}}function J(e){return e.parent&&ne.isShorthandPropertyAssignment(e.parent)&&e.parent.name===e?T.getShorthandAssignmentValueSymbol(e.parent):T.getSymbolAtLocation(e)}function j(e,t,r){if(e){var n=e.getDeclarations();if(n&&n.some(function(e){return e.parent===t}))return ne.createIdentifier(e.name);var a=j(e.parent,t,r);if(void 0!==a)return r?ne.createQualifiedName(a,ne.createIdentifier(e.name)):ne.createPropertyAccess(a,e.name)}}}(e,i,(n=a,re((r=e).range)?{pos:ne.first(r.range).getStart(n),end:ne.last(r.range).getEnd()}:r.range),a,t.program.getTypeChecker(),t.cancellationToken)}}function Z(e,t){for(var r=e,n=1;ne.stringContains(t,r);n++)r=e+"_"+n;return r}function $(e,t,r,n){for(var a=0,i=-1,o=0,s=e;o<s.length;o++){var c=s[o],u=c.fileName,_=c.textChanges;ne.Debug.assert(u===t);for(var l=0,d=_;l<d.length;l++){var p=d[l],f=p.span,m=p.newText,g=m.indexOf(r);if(-1!==g&&(i=f.start+a+g,!n))return i;a+=m.length-f.length}}return ne.Debug.assert(n),ne.Debug.assert(0<=i),i}function ee(e,t){var r=e.type,n=e.declaration,a=t.type,i=t.declaration;return ne.compareProperties(n,i,"pos",ne.compareValues)||ne.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",a.symbol?a.symbol.getName():"")||ne.compareValues(r.id,a.id)}function te(e,t){var r=ne.map(e,function(e){return ne.createShorthandPropertyAssignment(e.symbol.name)}),n=ne.map(t,function(e){return ne.createShorthandPropertyAssignment(e.symbol.name)});return void 0===r?n:void 0===n?r:r.concat(n)}function re(e){return ne.isArray(e)}function g(e,t,r){var n,a,i;if(e)for(;e.parent;){if(ne.isSourceFile(e.parent)||(n=r,a=e.parent,i=t,!(ne.textSpanContainsPosition(n,a.getStart(i))&&a.getEnd()<=ne.textSpanEnd(n))))return e;e=e.parent}}function A(e){switch(e.kind){case 211:case 272:case 238:case 264:return!0;default:return!1}}c.registerRefactor(b,{getAvailableActions:o,getEditsForAction:s}),e.getAvailableActions=o,e.getEditsForAction=s,function(e){function t(e){return{message:e,code:0,category:ne.DiagnosticCategory.Message,key:e}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToOtherFunctionLike=t("Cannot extract method to a function-like scope that is not a function"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block")}(K=e.Messages||(e.Messages={})),(t=Y||(Y={}))[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.InStaticRegion=16]="InStaticRegion",e.getRangeToExtract=T,(n=r||(r={}))[n.Module=0]="Module",n[n.Global=1]="Global",(i=a||(a={}))[i.Read=1]="Read",i[i.Write=2]="Write"})((c=ne.refactor||(ne.refactor={})).extractSymbol||(c.extractSymbol={}))}(ts||(ts={})),function(k){function o(e,t,r,n){var a=k.isNodeKind(e)?new i(e,t,r):71===e?new c(71,t,r):new s(e,t,r);return a.parent=n,a.flags=6387712&n.flags,a}k.servicesVersion="0.7";var i=function(){function e(e,t,r){this.pos=t,this.end=r,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return e.prototype.assertHasRealPosition=function(e){k.Debug.assert(!k.positionIsSynthesized(this.pos)&&!k.positionIsSynthesized(this.end),e||"Node must have a real position for this operation")},e.prototype.getSourceFile=function(){return k.getSourceFileOfNode(this)},e.prototype.getStart=function(e,t){return this.assertHasRealPosition(),k.getTokenPosOfNode(this,e,t)},e.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},e.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},e.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},e.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},e.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},e.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},e.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},e.prototype.addSyntheticNodes=function(e,t,r){for(k.scanner.setTextPos(t);t<r;){var n=k.scanner.scan(),a=k.scanner.getTextPos();if(a<=r&&(71===n&&k.Debug.fail("Did not expect "+k.Debug.showSyntaxKind(this)+" to have an Identifier in its trivia"),e.push(o(n,t,a,this))),t=a,1===n)break}return t},e.prototype.createSyntaxList=function(e){var t=o(293,e.pos,e.end,this);t._children=[];for(var r=e.pos,n=0,a=e;n<a.length;n++){var i=a[n];r<i.pos&&(r=this.addSyntheticNodes(t._children,r,i.pos)),t._children.push(i),r=i.end}return r<e.end&&this.addSyntheticNodes(t._children,r,e.end),t},e.prototype.createChildren=function(e){var t=this;if(k.isNodeKind(this.kind)){if(k.isJSDocCommentContainingNode(this)){var r=[];return this.forEachChild(function(e){r.push(e)}),void(this._children=r)}var n=[];k.scanner.setText((e||this.getSourceFile()).text);var a=this.pos,i=function(e){a=t.addSyntheticNodes(n,a,e.pos),n.push(e),a=e.end};if(this.jsDoc)for(var o=0,s=this.jsDoc;o<s.length;o++){i(s[o])}a=this.pos,k.forEachChild(this,i,function(e){a<e.pos&&(a=t.addSyntheticNodes(n,a,e.pos)),n.push(t.createSyntaxList(e)),a=e.end}),a<this.end&&this.addSyntheticNodes(n,a,this.end),k.scanner.setText(void 0),this._children=n}else this._children=k.emptyArray},e.prototype.getChildCount=function(e){return this.assertHasRealPosition(),this._children||this.createChildren(e),this._children.length},e.prototype.getChildAt=function(e,t){return this.assertHasRealPosition(),this._children||this.createChildren(t),this._children[e]},e.prototype.getChildren=function(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||this.createChildren(e),this._children},e.prototype.getFirstToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e);if(t.length){var r=k.find(t,function(e){return e.kind<274||292<e.kind});return r.kind<145?r:r.getFirstToken(e)}},e.prototype.getLastToken=function(e){this.assertHasRealPosition();var t=this.getChildren(e),r=k.lastOrUndefined(t);if(r)return r.kind<145?r:r.getLastToken(e)},e.prototype.forEachChild=function(e,t){return k.forEachChild(this,e,t)},e}(),e=function(){function e(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0}return e.prototype.getSourceFile=function(){return k.getSourceFileOfNode(this)},e.prototype.getStart=function(e,t){return k.getTokenPosOfNode(this,e,t)},e.prototype.getFullStart=function(){return this.pos},e.prototype.getEnd=function(){return this.end},e.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},e.prototype.getFullWidth=function(){return this.end-this.pos},e.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},e.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},e.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},e.prototype.getChildCount=function(){return 0},e.prototype.getChildAt=function(){},e.prototype.getChildren=function(){return k.emptyArray},e.prototype.getFirstToken=function(){},e.prototype.getLastToken=function(){},e.prototype.forEachChild=function(){},e}(),t=function(){function e(e,t){this.flags=e,this.escapedName=t}return e.prototype.getFlags=function(){return this.flags},Object.defineProperty(e.prototype,"name",{get:function(){return k.symbolName(this)},enumerable:!0,configurable:!0}),e.prototype.getEscapedName=function(){return this.escapedName},e.prototype.getName=function(){return this.name},e.prototype.getDeclarations=function(){return this.declarations},e.prototype.getDocumentationComment=function(e){if(void 0===this.documentationComment)if(this.declarations){if(this.documentationComment=k.JsDoc.getJsDocCommentsFromDeclarations(this.declarations),(0===this.documentationComment.length||this.declarations.some(a))&&e)for(var t=0,r=this.declarations;t<r.length;t++){var n=u(r[t],this.getName(),e);if(0<n.length){0<this.documentationComment.length&&n.push(k.lineBreakPart()),this.documentationComment=k.concatenate(n,this.documentationComment);break}}}else this.documentationComment=[];return this.documentationComment},e.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=k.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},e}(),s=function(a){function e(e,t,r){var n=a.call(this,t,r)||this;return n.kind=e,n}return __extends(e,a),e}(e),c=function(n){function e(e,t,r){return n.call(this,t,r)||this}return __extends(e,n),Object.defineProperty(e.prototype,"text",{get:function(){return k.idText(this)},enumerable:!0,configurable:!0}),e}(e);c.prototype.kind=71;var r=function(){function e(e,t){this.checker=e,this.flags=t}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 65536&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},e.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},e}(),n=function(){function e(e){this.checker=e}return e.prototype.getDeclaration=function(){return this.declaration},e.prototype.getTypeParameters=function(){return this.typeParameters},e.prototype.getParameters=function(){return this.parameters},e.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},e.prototype.getDocumentationComment=function(){if(void 0===this.documentationComment)if(this.declaration){if(this.documentationComment=k.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]),0===this.documentationComment.length||a(this.declaration)){var e=u(this.declaration,this.declaration.symbol.getName(),this.checker);0<this.documentationComment.length&&e.push(k.lineBreakPart()),this.documentationComment=k.concatenate(e,this.documentationComment)}}else this.documentationComment=[];return this.documentationComment},e.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?k.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},e}();function a(e){return k.getJSDocTags(e).some(function(e){return"inheritDoc"===e.tagName.text})}function u(e,a,i){var o=!1;return k.flatMap(function(e){var t=e.parent;if(!t||!k.isClassDeclaration(t)&&!k.isInterfaceDeclaration(t))return k.emptyArray;var r=k.getClassExtendsHeritageClauseElement(t),n=r?[r]:k.emptyArray;return k.isClassLike(t)?k.concatenate(n,k.getClassImplementsHeritageClauseElements(t)):n}(e),function(e){if(o)return k.emptyArray;var t=i.getTypeAtLocation(e);if(!t)return k.emptyArray;var r=i.getPropertyOfType(t,a);if(!r)return k.emptyArray;var n=r.getDocumentationComment(i);return o=0<n.length,n})}var _=function(n){function e(e,t,r){return n.call(this,e,t,r)||this}return __extends(e,n),e.prototype.update=function(e,t){return k.updateSourceFile(this,e,t)},e.prototype.getLineAndCharacterOfPosition=function(e){return k.getLineAndCharacterOfPosition(this,e)},e.prototype.getLineStarts=function(){return k.getLineStarts(this)},e.prototype.getPositionOfLineAndCharacter=function(e,t){return k.getPositionOfLineAndCharacter(this,e,t)},e.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var a=this.getFullText();return"\n"===a[t]&&"\r"===a[t-1]?t-1:t},e.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},e.prototype.computeNamedDeclarations=function(){var c=k.createMultiMap();return k.forEachChild(this,function e(t){switch(t.kind){case 232:case 190:case 153:case 152:var r=t,n=_(r);if(n){var a=function(e){var t=c.get(e);t||c.set(e,t=[]);return t}(n),i=k.lastOrUndefined(a);i&&r.parent===i.parent&&r.symbol===i.symbol?r.body&&!i.body&&(a[a.length-1]=r):a.push(r)}k.forEachChild(t,e);break;case 233:case 203:case 234:case 235:case 236:case 237:case 241:case 250:case 246:case 243:case 244:case 155:case 156:case 165:u(t),k.forEachChild(t,e);break;case 148:if(!k.hasModifier(t,92))break;case 230:case 180:var o=t;if(k.isBindingPattern(o.name)){k.forEachChild(o.name,e);break}o.initializer&&e(o.initializer);case 271:case 151:case 150:u(t);break;case 248:t.exportClause&&k.forEach(t.exportClause.elements,e);break;case 242:var s=t.importClause;s&&(s.name&&u(s),s.namedBindings&&(244===s.namedBindings.kind?u(s.namedBindings):k.forEach(s.namedBindings.elements,e)));break;case 198:0!==k.getSpecialPropertyAssignmentKind(t)&&u(t);default:k.forEachChild(t,e)}}),c;function u(e){var t=_(e);t&&c.add(t,e)}function _(e){var t=k.getNameOfDeclaration(e);return t&&(k.isPropertyNameLiteral(t)?k.getTextOfIdentifierOrLiteral(t):146===t.kind&&k.isPropertyAccessExpression(t.expression)?t.expression.name.text:void 0)}},e}(i),l=function(){function e(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return e.prototype.getLineAndCharacterOfPosition=function(e){return k.getLineAndCharacterOfPosition(this,e)},e}();function D(e){var t=!0;for(var r in e)if(k.hasProperty(e,r)&&!d(r)){t=!1;break}if(t)return e;var n={};for(var r in e){if(k.hasProperty(e,r))n[d(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=e[r]}return n}function d(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function p(){return{target:1,jsx:1}}k.toEditorSettings=D,k.displayPartsToString=function(e){return e?k.map(e,function(e){return e.text}).join(""):""},k.getDefaultCompilerOptions=p,k.getSupportedCodeFixes=function(){return k.codefix.getSupportedErrorCodes()};var S=function(){function e(e,t){this.host=e,this.currentDirectory=e.getCurrentDirectory(),this.fileNameToEntry=k.createMap();for(var r=0,n=e.getScriptFileNames();r<n.length;r++){var a=n[r];this.createEntry(a,k.toPath(a,this.currentDirectory,t))}this._compilationSettings=e.getCompilationSettings()||{target:1,jsx:1}}return e.prototype.compilationSettings=function(){return this._compilationSettings},e.prototype.createEntry=function(e,t){var r,n=this.host.getScriptSnapshot(e);return r=n?{hostFileName:e,version:this.host.getScriptVersion(e),scriptSnapshot:n,scriptKind:k.getScriptKind(e,this.host)}:e,this.fileNameToEntry.set(t,r),r},e.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},e.prototype.getHostFileInformation=function(e){var t=this.fileNameToEntry.get(e);return k.isString(t)?void 0:t},e.prototype.getOrCreateEntryByPath=function(e,t){var r=this.getEntryByPath(t)||this.createEntry(e,t);return k.isString(r)?void 0:r},e.prototype.getRootFileNames=function(){return k.arrayFrom(this.fileNameToEntry.values(),function(e){return k.isString(e)?e:e.hostFileName})},e.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version},e.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},e}(),C=function(){function e(e){this.host=e}return e.prototype.getCurrentSourceFile=function(e){var t=this.host.getScriptSnapshot(e);if(!t)throw new Error("Could not find file: '"+e+"'.");var r,n=k.getScriptKind(e,this.host),a=this.host.getScriptVersion(e);if(this.currentFileName!==e)r=m(e,t,6,a,!0,n);else if(this.currentFileVersion!==a){var i=t.getChangeRange(this.currentFileScriptSnapshot);r=g(this.currentSourceFile,t,a,i)}return r&&(this.currentFileVersion=a,this.currentFileName=e,this.currentFileScriptSnapshot=t,this.currentSourceFile=r),this.currentSourceFile},e}();function f(e,t,r){e.version=r,e.scriptSnapshot=t}function m(e,t,r,n,a,i){var o=k.createSourceFile(e,k.getSnapshotText(t),r,a,i);return f(o,t,n),o}function g(e,t,r,n,a){if(n&&r!==e.version&&!k.disableIncrementalParsing){var i=void 0,o=0!==n.span.start?e.text.substr(0,n.span.start):"",s=k.textSpanEnd(n.span)!==e.text.length?e.text.substr(k.textSpanEnd(n.span)):"";if(0===n.newLength)i=o&&s?o+s:o||s;else{var c=t.getText(n.span.start,n.span.start+n.newLength);i=o&&s?o+c+s:o?o+c:c+s}var u=k.updateSourceFile(e,i,n,a);return f(u,t,r),u.nameTable=void 0,e!==u&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),u}return m(e.fileName,t,e.languageVersion,r,!0,e.scriptKind)}k.createLanguageServiceSourceFile=m,k.disableIncrementalParsing=!1,k.updateLanguageServiceSourceFile=g;var T=function(){function e(e){this.cancellationToken=e}return e.prototype.isCancellationRequested=function(){return this.cancellationToken&&this.cancellationToken.isCancellationRequested()},e.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new k.OperationCanceledException},e}(),y=function(){function e(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return e.prototype.isCancellationRequested=function(){var e=k.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},e.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new k.OperationCanceledException},e}();function v(e,t){var r=k.unescapeLeadingUnderscores(k.getTextOfPropertyName(t));if(r&&e){var n=[],a=e.getProperty(r);if(131072&e.flags)return k.forEach(e.types,function(e){var t=e.getProperty(r);t&&n.push(t)}),n;if(a)return n.push(a),n}}k.ThrottledCancellationToken=y,k.createLanguageService=function(_,l){void 0===l&&(l=k.createDocumentRegistry(_.useCaseSensitiveFileNames&&_.useCaseSensitiveFileNames(),_.getCurrentDirectory()));var d,p,s=new C(_),f=0,m=_.useCaseSensitiveFileNames&&_.useCaseSensitiveFileNames(),g=new T(_.getCancellationToken&&_.getCancellationToken()),y=_.getCurrentDirectory();function v(e){_.log&&_.log(e)}!k.localizedDiagnosticMessages&&_.getLocalizedDiagnosticMessages&&(k.localizedDiagnosticMessages=_.getLocalizedDiagnosticMessages());var h=k.createGetCanonicalFileName(m);function b(e){var t=d.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function x(){if(_.getProjectVersion){var e=_.getProjectVersion();if(e){if(p===e&&!_.hasChangedAutomaticTypeDirectiveNames)return;p=e}}var t=_.getTypeRootsVersion?_.getTypeRootsVersion():0;f!==t&&(v("TypeRoots version has changed; provide new program"),d=void 0,f=t);var s=new S(_,h),r=s.getRootFileNames(),n=_.hasInvalidatedResolution||k.returnFalse;if(!k.isProgramUptoDate(d,r,s.compilationSettings(),function(e){return s.getVersion(e)},i,n,_.hasChangedAutomaticTypeDirectiveNames)){var c=s.compilationSettings(),a={getSourceFile:function(e,t,r,n){return o(e,k.toPath(e,y,h),0,0,n)},getSourceFileByPath:o,getCancellationToken:function(){return g},getCanonicalFileName:h,useCaseSensitiveFileNames:function(){return m},getNewLine:function(){return k.getNewLineCharacter(c,function(){return k.getNewLineOrDefaultFromHost(_)})},getDefaultLibFileName:function(e){return _.getDefaultLibFileName(e)},writeFile:k.noop,getCurrentDirectory:function(){return y},fileExists:i,readFile:function(e){var t=k.toPath(e,y,h),r=s.getEntryByPath(t);return r?k.isString(r)?void 0:k.getSnapshotText(r.scriptSnapshot):_.readFile&&_.readFile(e)},realpath:_.realpath&&function(e){return _.realpath(e)},directoryExists:function(e){return k.directoryProbablyExists(e,_)},getDirectories:function(e){return _.getDirectories?_.getDirectories(e):[]},onReleaseOldSourceFile:function(e,t){var r=l.getKeyForCompilationSettings(t);l.releaseDocumentWithKey(e.path,r)},hasInvalidatedResolution:n,hasChangedAutomaticTypeDirectiveNames:_.hasChangedAutomaticTypeDirectiveNames};_.trace&&(a.trace=function(e){return _.trace(e)}),_.resolveModuleNames&&(a.resolveModuleNames=function(e,t,r){return _.resolveModuleNames(e,t,r)}),_.resolveTypeReferenceDirectives&&(a.resolveTypeReferenceDirectives=function(e,t){return _.resolveTypeReferenceDirectives(e,t)});var u=l.getKeyForCompilationSettings(c);return d=k.createProgram(r,c,a,d),s=void 0,void d.getTypeChecker()}function i(e){var t=k.toPath(e,y,h),r=s.getEntryByPath(t);return r?!k.isString(r):_.fileExists&&_.fileExists(e)}function o(e,t,r,n,a){k.Debug.assert(void 0!==s);var i=s.getOrCreateEntryByPath(e,t);if(i){if(!a){var o=d&&d.getSourceFileByPath(t);if(o)return k.Debug.assertEqual(i.scriptKind,o.scriptKind,"Registered script kind should match new script kind.",t),l.updateDocumentWithKey(e,t,c,u,i.scriptSnapshot,i.version,i.scriptKind)}return l.acquireDocumentWithKey(e,t,c,u,i.scriptSnapshot,i.version,i.scriptKind)}}}function a(){return x(),d}function n(e,t,r){x();var n=k.map(r,function(e){return k.Debug.assertDefined(d.getSourceFile(e))}),a=b(e);return k.DocumentHighlights.getDocumentHighlights(d,g,a,t,n)}function i(e,t,r){x();var n=[];if(r&&r.isForRename)for(var a=0,i=d.getSourceFiles();a<i.length;a++){var o=i[a];d.isSourceFileDefaultLibrary(o)||n.push(o)}else n=d.getSourceFiles().slice();return k.FindAllReferences.findReferencedEntries(d,g,n,b(e),t,r)}function t(e){return s.getCurrentSourceFile(e)}function r(e){var t=k.getScriptKind(e,_);return 3===t||4===t}var e,o=k.createMapFromTemplate(((e={})[17]=18,e[19]=20,e[21]=22,e[29]=27,e));function c(e){switch(e.type){case"install package":return _.installPackage?_.installPackage({fileName:k.toPath(e.file,y,h),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`");default:k.Debug.fail()}}function u(e,t,r){var n="number"==typeof t?[t,void 0]:[t.pos,t.end];return{file:e,startPosition:n[0],endPosition:n[1],program:a(),host:_,formatContext:k.formatting.getFormatContext(r),cancellationToken:g}}return o.forEach(function(e,t){return o.set(e.toString(),Number(t))}),{dispose:function(){d&&(k.forEach(d.getSourceFiles(),function(e){return l.releaseDocument(e.fileName,d.getCompilerOptions())}),d=void 0),_=void 0},cleanupSemanticCache:function(){d=void 0},getSyntacticDiagnostics:function(e){return x(),d.getSyntacticDiagnostics(b(e),g).slice()},getSemanticDiagnostics:function(e){x();var t=b(e),r=d.getSemanticDiagnostics(t,g);if(!d.getCompilerOptions().declaration)return r.slice();var n=d.getDeclarationDiagnostics(t,g);return r.concat(n)},getSuggestionDiagnostics:function(e){return x(),k.computeSuggestionDiagnostics(b(e),d)},getCompilerOptionsDiagnostics:function(){return x(),d.getOptionsDiagnostics(g).concat(d.getGlobalDiagnostics(g))},getSyntacticClassifications:function(e,t){return k.getSyntacticClassifications(g,s.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t){return r(e)?(x(),k.getSemanticClassifications(d.getTypeChecker(),g,b(e),d.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(e,t){return k.getEncodedSyntacticClassifications(g,s.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t){return r(e)?(x(),k.getEncodedSemanticClassifications(d.getTypeChecker(),g,b(e),d.getClassifiableNames(),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(e,t,r){return void 0===r&&(r={includeExternalModuleExports:!1,includeInsertTextCompletions:!1}),x(),k.Completions.getCompletionsAtPosition(_,d.getTypeChecker(),v,d.getCompilerOptions(),b(e),t,d.getSourceFiles(),r)},getCompletionEntryDetails:function(e,t,r,n,a){return x(),k.Completions.getCompletionEntryDetails(d,v,d.getCompilerOptions(),b(e),t,{name:r,source:a},d.getSourceFiles(),_,n&&k.formatting.getFormatContext(n),h)},getCompletionEntrySymbol:function(e,t,r,n){return x(),k.Completions.getCompletionEntrySymbol(d.getTypeChecker(),v,d.getCompilerOptions(),b(e),t,{name:r,source:n},d.getSourceFiles())},getSignatureHelpItems:function(e,t){x();var r=b(e);return k.SignatureHelp.getSignatureHelpItems(d,r,t,g)},getQuickInfoAtPosition:function(e,t){x();var r=b(e),n=k.getTouchingPropertyName(r,t,!0);if(n!==r){var a=d.getTypeChecker(),i=function(e,t){if((k.isIdentifier(e)||k.isStringLiteral(e))&&k.isPropertyAssignment(e.parent)&&e.parent.name===e){var r=t.getContextualType(e.parent.parent),n=r&&t.getPropertyOfType(r,k.getTextOfIdentifierOrLiteral(e));if(n)return n}return t.getSymbolAtLocation(e)}(n,a);if(i&&!a.isUnknownSymbol(i)){var o=k.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(a,i,r,k.getContainerNode(n),n),s=o.symbolKind,c=o.displayParts,u=o.documentation,_=o.tags;return{kind:s,kindModifiers:k.SymbolDisplay.getSymbolModifiers(i),textSpan:k.createTextSpanFromNode(n,r),displayParts:c,documentation:u,tags:_}}switch(n.kind){case 71:if(k.isLabelName(n))return;case 183:case 145:case 99:case 173:case 97:var l=a.getTypeAtLocation(n);return l&&{kind:"",kindModifiers:"",textSpan:k.createTextSpanFromNode(n,r),displayParts:k.typeToDisplayParts(a,l,k.getContainerNode(n)),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags():void 0}}}},getDefinitionAtPosition:function(e,t){return x(),k.GoToDefinition.getDefinitionAtPosition(d,b(e),t)},getDefinitionAndBoundSpan:function(e,t){return x(),k.GoToDefinition.getDefinitionAndBoundSpan(d,b(e),t)},getImplementationAtPosition:function(e,t){return x(),k.FindAllReferences.getImplementationsAtPosition(d,g,d.getSourceFiles(),b(e),t)},getTypeDefinitionAtPosition:function(e,t){return x(),k.GoToDefinition.getTypeDefinitionAtPosition(d.getTypeChecker(),b(e),t)},getReferencesAtPosition:function(e,t){return i(e,t)},findReferences:function(e,t){return x(),k.FindAllReferences.findReferencedSymbols(d,g,d.getSourceFiles(),b(e),t)},getOccurrencesAtPosition:function(e,t){var r=h(k.normalizeSlashes(e));return k.flatMap(n(e,t,[e]),function(t){return t.highlightSpans.map(function(e){return k.Debug.assert(h(k.normalizeSlashes(t.fileName))===r),{fileName:t.fileName,textSpan:e.textSpan,isWriteAccess:"writtenReference"===e.kind,isDefinition:!1,isInString:e.isInString}})})},getDocumentHighlights:n,getNameOrDottedNameSpan:function(e,t,r){var n=s.getCurrentSourceFile(e),a=k.getTouchingPropertyName(n,t,!1);if(a!==n){switch(a.kind){case 183:case 145:case 9:case 86:case 101:case 95:case 97:case 99:case 173:case 71:break;default:return}for(var i=a;;)if(k.isRightSideOfPropertyAccess(i)||k.isRightSideOfQualifiedName(i))i=i.parent;else{if(!k.isNameOfModuleDeclaration(i))break;if(237!==i.parent.parent.kind||i.parent.parent.body!==i.parent)break;i=i.parent.parent.name}return k.createTextSpanFromBounds(i.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(e,t){var r=s.getCurrentSourceFile(e);return k.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(e,t,r,n){x();var a=r?[b(r)]:d.getSourceFiles();return k.NavigateTo.getNavigateToItems(a,d.getTypeChecker(),g,e,t,n)},getRenameInfo:function(e,t){x();var r=_.getDefaultLibFileName(_.getCompilationSettings());return k.Rename.getRenameInfo(d.getTypeChecker(),r,h,b(e),t)},findRenameLocations:function(e,t,r,n){return i(e,t,{findInStrings:r,findInComments:n,isForRename:!0})},getNavigationBarItems:function(e){return k.NavigationBar.getNavigationBarItems(s.getCurrentSourceFile(e),g)},getNavigationTree:function(e){return k.NavigationBar.getNavigationTree(s.getCurrentSourceFile(e),g)},getOutliningSpans:function(e){var t=s.getCurrentSourceFile(e);return k.OutliningElementsCollector.collectElements(t,g)},getTodoComments:function(e,t){x();var r=b(e);g.throwIfCancellationRequested();var n,a,i,o,s=r.text,c=[];if(0<t.length&&(o=r.fileName,!k.stringContains(o,"/node_modules/")))for(var u=(a="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",i="(?:"+k.map(t,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(a+"("+i+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")),_=void 0;_=u.exec(s);){g.throwIfCancellationRequested(),k.Debug.assert(_.length===t.length+3);var l=_[1],d=_.index+l.length;if(k.isInComment(r,d)){for(var p=void 0,f=0;f<t.length;f++)_[f+3]&&(p=t[f]);if(k.Debug.assert(void 0!==p),!(97<=(n=s.charCodeAt(d+p.text.length))&&n<=122||65<=n&&n<=90||48<=n&&n<=57)){var m=_[2];c.push({descriptor:p,message:m,position:d})}}}return c},getBraceMatchingAtPosition:function(e,t){var r=s.getCurrentSourceFile(e),n=k.getTouchingToken(r,t,!1),a=n.getStart(r)===t?o.get(n.kind.toString()):void 0,i=a&&k.findChildOfKind(n.parent,a,r);return i?[k.createTextSpanFromNode(n,r),k.createTextSpanFromNode(i,r)].sort(function(e,t){return e.start-t.start}):k.emptyArray},getIndentationAtPosition:function(e,t,r){var n=k.timestamp(),a=D(r),i=s.getCurrentSourceFile(e);v("getIndentationAtPosition: getCurrentSourceFile: "+(k.timestamp()-n)),n=k.timestamp();var o=k.formatting.SmartIndenter.getIndentation(t,i,a);return v("getIndentationAtPosition: computeIndentation  : "+(k.timestamp()-n)),o},getFormattingEditsForRange:function(e,t,r,n){var a=s.getCurrentSourceFile(e);return k.formatting.formatSelection(t,r,a,k.formatting.getFormatContext(D(n)))},getFormattingEditsForDocument:function(e,t){return k.formatting.formatDocument(s.getCurrentSourceFile(e),k.formatting.getFormatContext(D(t)))},getFormattingEditsAfterKeystroke:function(e,t,r,n){var a=s.getCurrentSourceFile(e),i=k.formatting.getFormatContext(D(n));if(!k.isInComment(a,t))switch(r){case"{":return k.formatting.formatOnOpeningCurly(t,a,i);case"}":return k.formatting.formatOnClosingCurly(t,a,i);case";":return k.formatting.formatOnSemicolon(t,a,i);case"\n":return k.formatting.formatOnEnter(t,a,i)}return[]},getDocCommentTemplateAtPosition:function(e,t){return k.JsDoc.getDocCommentTemplateAtPosition(k.getNewLineOrDefaultFromHost(_),s.getCurrentSourceFile(e),t)},isValidBraceCompletionAtPosition:function(e,t,r){if(60===r)return!1;var n=s.getCurrentSourceFile(e);if(k.isInString(n,t))return!1;if(k.isInsideJsxElementOrAttribute(n,t))return 123===r;if(k.isInTemplateString(n,t))return!1;switch(r){case 39:case 34:case 96:return!k.isInComment(n,t)}return!0},getSpanOfEnclosingComment:function(e,t,r){var n=s.getCurrentSourceFile(e),a=k.formatting.getRangeOfEnclosingComment(n,t,r);return a&&k.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(e,t,r,n,a){x();var i=b(e),o=k.createTextSpanFromBounds(t,r),s=k.formatting.getFormatContext(a);return k.flatMap(k.deduplicate(n,k.equateValues,k.compareValues),function(e){return g.throwIfCancellationRequested(),k.codefix.getFixes({errorCode:e,sourceFile:i,span:o,program:d,host:_,cancellationToken:g,formatContext:s})})},getCombinedCodeFix:function(e,t,r){x(),k.Debug.assert("file"===e.type);var n=b(e.fileName),a=k.formatting.getFormatContext(r);return k.codefix.getAllFixes({fixId:t,sourceFile:n,program:d,host:_,cancellationToken:g,formatContext:a})},applyCodeActionCommand:function(e,t){var r="string"==typeof e?t:e;return k.isArray(r)?Promise.all(r.map(c)):c(r)},organizeImports:function(e,t){x(),k.Debug.assert("file"===e.type);var r=b(e.fileName),n=k.formatting.getFormatContext(t);return k.OrganizeImports.organizeImports(r,n,_,d)},getEmitOutput:function(e,t){x();var r=b(e),n=_.getCustomTransformers&&_.getCustomTransformers();return k.getFileEmitOutput(d,r,t,g,n)},getNonBoundSourceFile:t,getSourceFile:function(e){return t(e)},getProgram:a,getApplicableRefactors:function(e,t){x();var r=b(e);return k.refactor.getApplicableRefactors(u(r,t))},getEditsForRefactor:function(e,t,r,n,a){x();var i=b(e);return k.refactor.getEditsForRefactor(u(i,r,t),n,a)}}},k.getNameTable=function(e){var t,c;return e.nameTable||(c=(t=e).nameTable=k.createUnderscoreEscapedMap(),t.forEachChild(function e(t){if(k.isIdentifier(t)&&t.escapedText||k.isStringOrNumericLiteral(t)&&(n=t,k.isDeclarationName(n)||252===n.parent.kind||(a=n)&&a.parent&&184===a.parent.kind&&a.parent.argumentExpression===a||k.isLiteralComputedPropertyDeclarationName(n))){var r=k.getEscapedTextOfIdentifierOrLiteral(t);c.set(r,void 0===c.get(r)?t.pos:-1)}var n,a;if(k.forEachChild(t,e),k.hasJSDocNodes(t))for(var i=0,o=t.jsDoc;i<o.length;i++){var s=o[i];k.forEachChild(s,e)}})),e.nameTable},k.getContainingObjectLiteralElement=function(e){switch(e.kind){case 9:case 8:if(146===e.parent.kind)return k.isObjectLiteralElement(e.parent.parent)?e.parent.parent:void 0;case 71:return!k.isObjectLiteralElement(e.parent)||182!==e.parent.parent.kind&&261!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}},k.getPropertySymbolsFromContextualType=function(e,t){var r=t.parent;return v(e.getContextualType(r),t.name)},k.getPropertySymbolsFromType=v,k.getDefaultLibFilePath=function(e){if("undefined"!=typeof __dirname)return __dirname+k.directorySeparator+k.getDefaultLibFileName(e);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},k.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return s},getIdentifierConstructor:function(){return c},getSourceFileConstructor:function(){return _},getSymbolConstructor:function(){return t},getTypeConstructor:function(){return r},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return l}}}(ts||(ts={})),function(P){(P.BreakpointResolver||(P.BreakpointResolver={})).spanInSourceFileAtLocation=function(D,e){if(!D.isDeclarationFile){var t=P.getTokenAtPosition(D,e,!1),r=D.getLineAndCharacterOfPosition(e).line;if((!(D.getLineAndCharacterOfPosition(t.getStart(D)).line>r)||(t=P.findPrecedingToken(t.pos,D))&&D.getLineAndCharacterOfPosition(t.getEnd()).line===r)&&!(2097152&t.flags))return A(t)}function S(e,t){var r=e.decorators?P.skipTrivia(D.text,e.decorators.end):e.getStart(D);return P.createTextSpanFromBounds(r,(t||e).getEnd())}function C(e,t){return S(e,P.findNextToken(t,t.parent))}function T(e,t){return e&&r===D.getLineAndCharacterOfPosition(e.getStart(D)).line?A(e):A(t)}function E(e){return A(P.findPrecedingToken(e.pos,D))}function N(e){return A(P.findNextToken(e,e.parent))}function A(e){if(e)switch(e.kind){case 212:return y(e.declarationList.declarations[0]);case 230:case 151:case 150:return y(e);case 148:return function e(t){if(P.isBindingPattern(t.name))return x(t.name);if((r=t).initializer||void 0!==r.dotDotDotToken||P.hasModifier(r,12))return S(t);var r,n=t.parent,a=n.parameters.indexOf(t);return P.Debug.assert(-1!==a),0!==a?e(n.parameters[a-1]):A(n.body)}(e);case 232:case 153:case 152:case 155:case 156:case 154:case 190:case 191:return function(e){if(e.body)return v(e)?S(e):A(e.body)}(e);case 211:if(P.isFunctionBlock(e))return f=(p=e).statements.length?p.statements[0]:p.getLastToken(),v(p.parent)?T(p.parent,f):A(f);case 238:return h(e);case 267:return h(e.block);case 214:return S(e.expression);case 223:return S(e.getChildAt(0),e.expression);case 217:return C(e,e.expression);case 216:return A(e.statement);case 229:return S(e.getChildAt(0));case 215:return C(e,e.expression);case 226:return A(e.statement);case 222:case 221:return S(e.getChildAt(0),e.label);case 218:return(d=e).initializer?b(d):d.condition?S(d.condition):d.incrementor?S(d.incrementor):void 0;case 219:return C(e,e.expression);case 220:return b(e);case 225:return C(e,e.expression);case 264:case 265:return A(e.statements[0]);case 228:return h(e.tryBlock);case 227:case 247:return S(e,e.expression);case 241:return S(e,e.moduleReference);case 242:case 248:return S(e,e.moduleSpecifier);case 237:if(1!==P.getModuleInstanceState(e))return;case 233:case 236:case 271:case 180:return S(e);case 224:return A(e.statement);case 149:return m=e.parent.decorators,P.createTextSpanFromBounds(P.skipTrivia(D.text,m.pos),m.end);case 178:case 179:return x(e);case 234:case 235:return;case 25:case 1:return T(P.findPrecedingToken(e.pos,D));case 26:return E(e);case 17:return function(e){switch(e.parent.kind){case 236:var t=e.parent;return T(P.findPrecedingToken(e.pos,D,e.parent),t.members.length?t.members[0]:t.getLastToken(D));case 233:var r=e.parent;return T(P.findPrecedingToken(e.pos,D,e.parent),r.members.length?r.members[0]:r.getLastToken(D));case 239:return T(e.parent.parent,e.parent.clauses[0])}return A(e.parent)}(e);case 18:return function(e){switch(e.parent.kind){case 238:if(1!==P.getModuleInstanceState(e.parent.parent))return;case 236:case 233:return S(e);case 211:if(P.isFunctionBlock(e.parent))return S(e);case 267:return A(P.lastOrUndefined(e.parent.statements));case 239:var t=e.parent,r=P.lastOrUndefined(t.clauses);return r?A(P.lastOrUndefined(r.statements)):void 0;case 178:var n=e.parent;return A(P.lastOrUndefined(n.elements)||n);default:if(P.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){var a=e.parent;return S(P.lastOrUndefined(a.properties)||a)}return A(e.parent)}}(e);case 22:return function(e){switch(e.parent.kind){case 179:var t=e.parent;return S(P.lastOrUndefined(t.elements)||t);default:if(P.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){var r=e.parent;return S(P.lastOrUndefined(r.elements)||r)}return A(e.parent)}}(e);case 19:return 216===(l=e).parent.kind||185===l.parent.kind||186===l.parent.kind?E(l):189===l.parent.kind?N(l):A(l.parent);case 20:return function(e){switch(e.parent.kind){case 190:case 232:case 191:case 153:case 152:case 155:case 156:case 154:case 217:case 216:case 218:case 220:case 185:case 186:case 189:return E(e);default:return A(e.parent)}}(e);case 56:return _=e,P.isFunctionLike(_.parent)||268===_.parent.kind||148===_.parent.kind?E(_):A(_.parent);case 29:case 27:return 188===(u=e).parent.kind?N(u):A(u.parent);case 106:return 216===(c=e).parent.kind?C(c,c.parent.expression):A(c.parent);case 82:case 74:case 87:return N(e);case 144:return 220===(s=e).parent.kind?N(s):A(s.parent);default:if(P.isArrayLiteralOrObjectLiteralDestructuringPattern(e))return k(e);if((71===e.kind||202===e.kind||268===e.kind||269===e.kind)&&P.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return S(e);if(198===e.kind){var t=e,r=t.left,n=t.operatorToken;if(P.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return k(r);if(58===n.kind&&P.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return S(e);if(26===n.kind)return A(r)}if(P.isExpressionNode(e))switch(e.parent.kind){case 216:return E(e);case 149:return A(e.parent);case 218:case 220:return S(e);case 198:if(26===e.parent.operatorToken.kind)return S(e);break;case 191:if(e.parent.body===e)return S(e)}switch(e.parent.kind){case 268:if(e.parent.name===e&&!P.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent))return A(e.parent.initializer);break;case 188:if(e.parent.type===e)return N(e.parent.type);break;case 230:case 148:var a=e.parent,i=a.initializer,o=a.type;if(i===e||o===e||P.isAssignmentOperator(e.kind))return E(e);break;case 198:if(r=e.parent.left,P.isArrayLiteralOrObjectLiteralDestructuringPattern(r)&&e!==r)return E(e);break;default:if(P.isFunctionLike(e.parent)&&e.parent.type===e)return E(e)}return A(e.parent)}var s,c,u,_,l,d,p,f,m;function g(e){return P.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]===e?S(P.findPrecedingToken(e.pos,D,e.parent),e):S(e)}function y(e){return 219===e.parent.parent.kind?A(e.parent.parent):P.isBindingPattern(e.name)?x(e.name):e.initializer||P.hasModifier(e,1)||220===e.parent.parent.kind?g(e):P.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]!==e?A(P.findPrecedingToken(e.pos,D,e.parent)):void 0}function v(e){return P.hasModifier(e,1)||233===e.parent.kind&&154!==e.kind}function h(e){switch(e.parent.kind){case 237:if(1!==P.getModuleInstanceState(e.parent))return;case 217:case 215:case 219:return T(e.parent,e.statements[0]);case 218:case 220:return T(P.findPrecedingToken(e.pos,D,e.parent),e.statements[0])}return A(e.statements[0])}function b(e){if(231!==e.initializer.kind)return A(e.initializer);var t=e.initializer;return 0<t.declarations.length?A(t.declarations[0]):void 0}function x(e){var t=P.forEach(e.elements,function(e){return 204!==e.kind?e:void 0});return t?A(t):180===e.parent.kind?S(e.parent):g(e.parent)}function k(e){P.Debug.assert(179!==e.kind&&178!==e.kind);var t=181===e.kind?e.elements:e.properties,r=P.forEach(t,function(e){return 204!==e.kind?e:void 0});return r?A(r):S(198===e.parent.kind?e.parent:e)}}}}(ts||(ts={})),function(o){o.transform=function(e,t,r){var n=[];r=o.fixupCompilerOptions(r,n);var a=o.isArray(e)?e:[e],i=o.transformNodes(void 0,void 0,r,a,t,!0);return i.diagnostics=o.concatenate(i.diagnostics,n),i}}(ts||(ts={}));var ts,TypeScript,debugObjectHost=function(){return this}();!function(c){function o(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function e(e){this.scriptSnapshotShim=e}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var t=e,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var n=JSON.parse(r);return c.createTextChangeRange(c.createTextSpan(n.span.start,n.span.length),n.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),n=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,t){var r=JSON.parse(n.shimHost.getModuleResolutionsForFile(t));return c.map(e,function(e){var t=c.getProperty(r,e);return t?{resolvedFileName:t,extension:c.extensionFromPath(t),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,t){var r=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(t));return c.map(e,function(e){return c.getProperty(r,e)})})}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},e.prototype.error=function(e){this.shimHost.error(e)},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new c.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,t,r,n,a){var i=c.getFileMatcherPatterns(e,r,n,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(i.basePaths),i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();c.LanguageServiceShimHostAdapter=n;var a=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)})}return e.prototype.readDirectory=function(e,t,r,n,a){var i=c.getFileMatcherPatterns(e,r,n,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(t),JSON.stringify(i.basePaths),i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();function i(e,t,r,n){return s(e,t,!0,r,n)}function s(t,r,e,n,a){try{var i=function(e,t,r,n){var a;n&&(e.log(t),a=c.timestamp());var i=r();if(n){var o=c.timestamp();if(e.log(t+" completed in "+(o-a)+" msec"),c.isString(i)){var s=i;128<s.length&&(s=s.substring(0,128)+"..."),e.log("  result.length="+s.length+", result='"+JSON.stringify(s)+"'")}}return i}(t,r,n,a);return e?JSON.stringify({result:i}):i}catch(e){return e instanceof c.OperationCanceledException?JSON.stringify({canceled:!0}):(o(t,e),e.description=r,JSON.stringify({error:e}))}}c.CoreServicesShimHostAdapter=a;var e=function(){function e(e){(this.factory=e).registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function u(e,n){return e.map(function(e){return t=e,r=n,{message:c.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:c.diagnosticCategoryName(t),code:t.code};var t,r})}c.realizeDiagnostics=u;var _=function(a){function e(e,t,r){var n=a.call(this,e)||this;return n.host=t,n.languageService=r,n.logPerformance=!1,n.logger=n.host,n}return __extends(e,a),e.prototype.forwardJSONCall=function(e,t){return i(this.logger,e,t,this.logPerformance)},e.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,a.prototype.dispose.call(this,e)},e.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},e.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},e.prototype.realizeDiagnostics=function(e){return u(e,c.getNewLineOrDefaultFromHost(this.host))},e.prototype.getSyntacticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+t+", "+r+")",function(){return n.languageService.getSyntacticClassifications(e,c.createTextSpan(t,r))})},e.prototype.getSemanticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+t+", "+r+")",function(){return n.languageService.getSemanticClassifications(e,c.createTextSpan(t,r))})},e.prototype.getEncodedSyntacticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+t+", "+r+")",function(){return l(n.languageService.getEncodedSyntacticClassifications(e,c.createTextSpan(t,r)))})},e.prototype.getEncodedSemanticClassifications=function(e,t,r){var n=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+t+", "+r+")",function(){return l(n.languageService.getEncodedSemanticClassifications(e,c.createTextSpan(t,r)))})},e.prototype.getSyntacticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+t+"')",function(){var e=r.languageService.getSyntacticDiagnostics(t);return r.realizeDiagnostics(e)})},e.prototype.getSemanticDiagnostics=function(t){var r=this;return this.forwardJSONCall("getSemanticDiagnostics('"+t+"')",function(){var e=r.languageService.getSemanticDiagnostics(t);return r.realizeDiagnostics(e)})},e.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},e.prototype.getCompilerOptionsDiagnostics=function(){var t=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var e=t.languageService.getCompilerOptionsDiagnostics();return t.realizeDiagnostics(e)})},e.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},e.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},e.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},e.prototype.getSignatureHelpItems=function(e,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return r.languageService.getSignatureHelpItems(e,t)})},e.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},e.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},e.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},e.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},e.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})},e.prototype.findRenameLocations=function(e,t,r,n){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return a.languageService.findRenameLocations(e,t,r,n)})},e.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},e.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},e.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},e.prototype.getIndentationAtPosition=function(t,r,n){var a=this;return this.forwardJSONCall("getIndentationAtPosition('"+t+"', "+r+")",function(){var e=JSON.parse(n);return a.languageService.getIndentationAtPosition(t,r,e)})},e.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},e.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},e.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},e.prototype.getDocumentHighlights=function(r,n,a){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+r+"', "+n+")",function(){var e=i.languageService.getDocumentHighlights(r,n,JSON.parse(a)),t=c.normalizeSlashes(r).toLowerCase();return c.filter(e,function(e){return c.normalizeSlashes(e.fileName).toLowerCase()===t})})},e.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},e.prototype.getCompletionEntryDetails=function(t,r,n,a,i){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+t+"', "+r+", '"+n+"')",function(){var e=void 0===a?void 0:JSON.parse(a);return o.languageService.getCompletionEntryDetails(t,r,n,e,i)})},e.prototype.getFormattingEditsForRange=function(t,r,n,a){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+t+"', "+r+", "+n+")",function(){var e=JSON.parse(a);return i.languageService.getFormattingEditsForRange(t,r,n,e)})},e.prototype.getFormattingEditsForDocument=function(t,r){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+t+"')",function(){var e=JSON.parse(r);return n.languageService.getFormattingEditsForDocument(t,e)})},e.prototype.getFormattingEditsAfterKeystroke=function(t,r,n,a){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+t+"', "+r+", '"+n+"')",function(){var e=JSON.parse(a);return i.languageService.getFormattingEditsAfterKeystroke(t,r,n,e)})},e.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},e.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},e.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},e.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},e.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},e.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},e.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},e.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},e}(e);function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(n){function e(e,t){var r=n.call(this,e)||this;return r.logger=t,r.logPerformance=!1,r.classifier=c.createClassifier(),r}return __extends(e,n),e.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return i(this.logger,"getEncodedLexicalClassifications",function(){return l(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},e.prototype.getClassificationsForLine=function(e,t,r){for(var n=this.classifier.getClassificationsForLine(e,t,r),a="",i=0,o=n.entries;i<o.length;i++){var s=o[i];a+=s.length+"\n",a+=s.classification+"\n"}return a+=n.finalLexState},e}(e),p=function(a){function e(e,t,r){var n=a.call(this,e)||this;return n.logger=t,n.host=r,n.logPerformance=!1,n}return __extends(e,a),e.prototype.forwardJSONCall=function(e,t){return i(this.logger,e,t,this.logPerformance)},e.prototype.resolveModuleName=function(n,a,i){var o=this;return this.forwardJSONCall("resolveModuleName('"+n+"')",function(){var e=JSON.parse(i),t=c.resolveModuleName(a,c.normalizeSlashes(n),e,o.host),r=t.resolvedModule?t.resolvedModule.resolvedFileName:void 0;return t.resolvedModule&&".ts"!==t.resolvedModule.extension&&".tsx"!==t.resolvedModule.extension&&".d.ts"!==t.resolvedModule.extension&&(r=void 0),{resolvedFileName:r,failedLookupLocations:t.failedLookupLocations}})},e.prototype.resolveTypeReferenceDirective=function(r,n,a){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+r+")",function(){var e=JSON.parse(a),t=c.resolveTypeReferenceDirective(n,c.normalizeSlashes(r),e,i.host);return{resolvedFileName:t.resolvedTypeReferenceDirective?t.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!t.resolvedTypeReferenceDirective||t.resolvedTypeReferenceDirective.primary,failedLookupLocations:t.failedLookupLocations}})},e.prototype.getPreProcessedFileInfo=function(e,t){var r=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=c.preProcessFile(c.getSnapshotText(t),!0,!0);return{referencedFiles:r.convertFileReferences(e.referencedFiles),importedFiles:r.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:r.convertFileReferences(e.typeReferenceDirectives)}})},e.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+t+"')",function(){var e=JSON.parse(t);return c.getAutomaticTypeDirectiveNames(e,r.host)})},e.prototype.convertFileReferences=function(e){if(e){for(var t=[],r=0,n=e;r<n.length;r++){var a=n[r];t.push({path:c.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return t}},e.prototype.getTSConfigFileInfo=function(n,a){var i=this;return this.forwardJSONCall("getTSConfigFileInfo('"+n+"')",function(){var e=c.parseJsonText(n,c.getSnapshotText(a)),t=c.normalizeSlashes(n),r=c.parseJsonSourceFileConfigFileContent(e,i.host,c.getDirectoryPath(t),{},t);return{options:r.options,typeAcquisition:r.typeAcquisition,files:r.fileNames,raw:r.raw,errors:u(e.parseDiagnostics.concat(r.errors),"\r\n")}})},e.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return c.getDefaultCompilerOptions()})},e.prototype.discoverTypings=function(t){var r=this,n=c.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var e=JSON.parse(t);return void 0===r.safeList&&(r.safeList=c.JsTyping.loadSafeList(r.host,c.toPath(e.safeListPath,e.safeListPath,n))),c.JsTyping.discoverTypings(r.host,function(e){return r.logger.log(e)},e.fileNames,c.toPath(e.projectRootPath,e.projectRootPath,n),r.safeList,e.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,e.typesRegistry)})},e}(e),t=function(){function e(){this._shims=[]}return e.prototype.getServicesVersion=function(){return c.servicesVersion},e.prototype.createLanguageServiceShim=function(t){try{void 0===this.documentRegistry&&(this.documentRegistry=c.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var e=new n(t),r=c.createLanguageService(e,this.documentRegistry);return new _(this,t,r)}catch(e){throw o(t,e),e}},e.prototype.createClassifierShim=function(t){try{return new d(this,t)}catch(e){throw o(t,e),e}},e.prototype.createCoreServicesShim=function(t){try{var e=new a(t);return new p(this,t,e)}catch(e){throw o(t,e),e}},e.prototype.close=function(){c.clear(this._shims),this.documentRegistry=void 0},e.prototype.registerShim=function(e){this._shims.push(e)},e.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},e}();c.TypeScriptServicesFactory=t,"undefined"!=typeof module&&module.exports&&(module.exports=c)}(ts||(ts={})),function(e){(e.Services||(e.Services={})).TypeScriptServicesFactory=ts.TypeScriptServicesFactory}(TypeScript||(TypeScript={}));var toolsVersion=ts.versionMajorMinor;define("vs/language/typescript/lib/typescriptServices",[],function(){return ts});